fc64c562b99c58ad26013418dea6a6caf0971443
[gnulib.git] / ChangeLog
1 2010-04-03  Bruno Haible  <bruno@clisp.org>
2
3         getpagesize: Fix C++ test error on mingw.
4         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5         system does not declare the function.
6         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7         declared.
8         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9         HAVE_DECL_GETPAGESIZE.
10         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
11
12 2010-04-03  Bruno Haible  <bruno@clisp.org>
13
14         stdio: Make C++ tests work on mingw.
15         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16         does not declare the function.
17
18 2010-04-03  Bruno Haible  <bruno@clisp.org>
19
20         ftello: Fix C++ test error on mingw.
21         * lib/stdio.in.h (ftello): Use modern idiom.
22         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24         is missing and that it needs to be replaced.
25         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
28
29 2010-04-03  Bruno Haible  <bruno@clisp.org>
30
31         fseeko: Fix C++ test error on mingw.
32         * lib/stdio.in.h (fseeko): Use modern idiom.
33         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35         is missing and that it needs to be replaced.
36         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
37         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
38         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
39
40 2010-04-03  Bruno Haible  <bruno@clisp.org>
41
42         mkstemp: Fix C++ test error on mingw.
43         * lib/stdlib.in.h (mkstemp): Use modern idiom.
44         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
45         function is missing and that it needs to be replaced.
46         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
47         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
48
49 2010-04-03  Bruno Haible  <bruno@clisp.org>
50
51         stpncpy: Fix C++ test error on mingw.
52         * lib/string.in.h (stpncpy): Use modern idiom.
53         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
54         function is missing and that it needs to be replaced.
55         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56         REPLACE_STPNCPY.
57         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
58
59 2010-04-03  Bruno Haible  <bruno@clisp.org>
60
61         sys_stat: Fix C++ test error on mingw.
62         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
63         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
64
65 2010-04-03  Bruno Haible  <bruno@clisp.org>
66
67         pty: Update doc.
68         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69
70 2010-04-03  Bruno Haible  <bruno@clisp.org>
71
72         unistd: Fix C++ test error on mingw.
73         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
74
75 2010-04-03  Bruno Haible  <bruno@clisp.org>
76
77         Update doc regarding mingw.
78         * doc/glibc-functions/openpty.texi: Update regarding mingw.
79         * doc/glibc-functions/login_tty.texi: Likewise.
80         * doc/glibc-functions/forkpty.texi: Likewise.
81
82 2010-04-03  Bruno Haible  <bruno@clisp.org>
83
84         stdlib: Avoid compilation failure of c-strtold on mingw.
85         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
86
87 2010-04-03  Bruno Haible  <bruno@clisp.org>
88
89         locale: Make C++ tests work on Cygwin and mingw.
90         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
91         cannot provide the function.
92         Reported by Simon Josefsson.
93
94 2010-04-03  Bruno Haible  <bruno@clisp.org>
95
96         localename: Port to MacOS X 10.6.
97         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
98         memory layout of the locales in MacOS X 10.6 as well.
99         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
100
101 2010-04-02  Bruno Haible  <bruno@clisp.org>
102
103         gnulib-tool: Ensure that long-running tests are executed last.
104         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
105         running tests after the one for the other tests.
106
107 2010-04-02  Bruno Haible  <bruno@clisp.org>
108
109         gnulib-tool: Ensure the tests in the main directory are executed first.
110         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
111         start with the current directory.
112
113 2010-04-02  Bruno Haible  <bruno@clisp.org>
114
115         Tests for module 'havelib', moved here from GNU gettext.
116         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
117         modifications.
118         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
119         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
120         with modifications.
121         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
122         modifications.
123         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
124         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
125         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
126         with modifications.
127         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
128         with modifications.
129         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
130         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
131         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
132         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
133         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
134         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
135         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
136         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
137         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
138         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
139         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
140         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
141         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
142         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
143         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
144         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
145         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
146         with modifications.
147         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
148         with modifications.
149         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
150         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
151         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
152         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
153         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
154         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
155         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
156         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
157         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
158         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
159         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
160         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
161         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
162         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
163         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
164         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
165         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
166         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
167         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
168         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
169         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
170         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
171         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
172         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
173         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
174         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
175         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
176         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
177         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
178         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
179         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
180         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
181         * tests/havelib/rpathx/rpathx.c: New file, from
182         gettext/autoconf-lib-link.
183         * tests/havelib/rpathx/Makefile.am: New file, from
184         gettext/autoconf-lib-link.
185         * tests/havelib/rpathx/configure.ac: New file, from
186         gettext/autoconf-lib-link with modifications.
187         * tests/havelib/rpathy/rpathy.c: New file, from
188         gettext/autoconf-lib-link.
189         * tests/havelib/rpathy/Makefile.am: New file, from
190         gettext/autoconf-lib-link.
191         * tests/havelib/rpathy/configure.ac: New file, from
192         gettext/autoconf-lib-link with modifications.
193         * tests/havelib/rpathz/rpathz.c: New file, from
194         gettext/autoconf-lib-link.
195         * tests/havelib/rpathz/Makefile.am: New file, from
196         gettext/autoconf-lib-link.
197         * tests/havelib/rpathz/configure.ac: New file, from
198         gettext/autoconf-lib-link with modifications.
199         * tests/havelib/rpathlx/usex.c: New file, from
200         gettext/autoconf-lib-link.
201         * tests/havelib/rpathlx/Makefile.am: New file, from
202         gettext/autoconf-lib-link.
203         * tests/havelib/rpathlx/configure.ac: New file, from
204         gettext/autoconf-lib-link with modifications.
205         * tests/havelib/rpathly/usey.c: New file, from
206         gettext/autoconf-lib-link.
207         * tests/havelib/rpathly/Makefile.am: New file, from
208         gettext/autoconf-lib-link.
209         * tests/havelib/rpathly/configure.ac: New file, from
210         gettext/autoconf-lib-link with modifications.
211         * tests/havelib/rpathlz/usez.c: New file, from
212         gettext/autoconf-lib-link.
213         * tests/havelib/rpathlz/Makefile.am: New file, from
214         gettext/autoconf-lib-link.
215         * tests/havelib/rpathlz/configure.ac: New file, from
216         gettext/autoconf-lib-link with modifications.
217         * tests/havelib/rpathlyx/usey.c: New file, from
218         gettext/autoconf-lib-link.
219         * tests/havelib/rpathlyx/Makefile.am: New file, from
220         gettext/autoconf-lib-link.
221         * tests/havelib/rpathlyx/configure.ac: New file, from
222         gettext/autoconf-lib-link with modifications.
223         * tests/havelib/rpathlzyx/usez.c: New file, from
224         gettext/autoconf-lib-link.
225         * tests/havelib/rpathlzyx/Makefile.am: New file, from
226         gettext/autoconf-lib-link.
227         * tests/havelib/rpathlzyx/configure.ac: New file, from
228         gettext/autoconf-lib-link with modifications.
229         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
230         with modifications.
231
232 2010-04-02  Bruno Haible  <bruno@clisp.org>
233
234         gnulib-tool: Create distributed built sources also for the tests.
235         * gnulib-tool (func_create_testdir): Also generate distributed built
236         sources in the tests directory.
237
238 2010-04-02  Bruno Haible  <bruno@clisp.org>
239
240         gnulib-tool: Obey user's environment variables.
241         * gnulib-tool (func_create_testdir): When creating built sources,
242         respect the environment variables for autoconf, automake, etc. given by
243         the user.
244
245 2010-04-02  Bruno Haible  <bruno@clisp.org>
246
247         gnulib-tool: Provide the value of --m4-base to modules.
248         * gnulib-tool (func_import, func_create_testdir): Emit a definition
249         of gl_m4_base.
250
251 2010-04-02  Eric Blake  <eblake@redhat.com>
252
253         maint.mk: fix some fallout
254         * NEWS: Document the incompatible change, and its effect on cfg.mk.
255         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
256
257 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
258
259         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
260         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
261         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
262         (sc_cast_of_x_alloc_return_value): Likewise.
263         (sc_cast_of_alloca_return_value): Likewise.
264         (sc_space_tab): Likewise.
265         (sc_prohibit_atoi_atof): Likewise.
266         (sc_prohibit_magic_number_exit): Likewise.
267         (sc_error_exit_success): Likewise.
268         (sc_file_system): Likewise.
269         (sc_prohibit_have_config_h): Likewise.
270         (sc_require_config_h): Likewise.
271         (sc_prohibit_HAVE_MBRTOWC): Likewise.
272         (sc_obsolete_symbols): Likewise.
273         (sc_changelog): Likewise.
274         (sc_program_name): Likewise.
275         (sc_the_the): Likewise.
276         (sc_trailing_blank): Likewise.
277         (sc_two_space_separator_in_usage): Likewise.
278         (sc_useless_cpp_parens): Likewise.
279         (sc_GPL_version): Likewise.
280         (sc_GFDL_version): Likewise.
281         (sc_texinfo_acronym): Likewise.
282         (sc_prohibit_cvs_keyword): Likewise.
283         (sc_prohibit_stat_st_blocks): Likewise.
284         (sc_prohibit_S_IS_definition): Likewise.
285         (sc_redundant_const): Likewise.
286         (sc_makefile_TAB_only_indentation): Likewise.
287         (sc_m4_quote_check): Likewise.
288         (sc_makefile_path_separator_check): Likewise.
289         (sc_copyright_check): Likewise.
290         (sc_Wundef_boolean): Likewise.
291         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
292
293         maint.mk: match 0 or more whitespace-before-function-call '('
294         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
295         that have zero or two-and-more spaces between the function name
296         and the open parenthesis.
297         (sc_error_message_warn_fatal): Likewise.
298         (sc_error_message_uppercase): Likewise.
299         (sc_error_message_period): Likewise.
300
301 2010-03-31  Eric Blake  <eblake@redhat.com>
302
303         maint.mk: check for [ as well as test
304         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
305         Based on a libvirt report by Matthias Bolte.
306
307         gnumakefile: don't squelch _version output
308         * top/GNUmakefile (_version): Create one-shot dependency rather
309         than using $(shell) when version must be regenerated.
310         (_autoreconf): Run verbosely, by default.
311
312         sys_time: avoid compiler warnings
313         * lib/sys_time.in.h (includes): Ensure gcc pragma is
314         unconditional, fixing regression from 2010-03-29.
315         Reported by Simon Josefsson.
316
317 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
318
319         maint.mk: s/_header_without_use/_sc_header_without_use/
320         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
321         (sc_prohibit_assert_without_use): Use the new name.
322         (sc_prohibit_close_stream_without_use): Likewise.
323         (sc_prohibit_getopt_without_use): Likewise.
324         (sc_prohibit_quotearg_without_use): Likewise.
325         (sc_prohibit_quote_without_use): Likewise.
326         (sc_prohibit_long_options_without_use): Likewise.
327         (sc_prohibit_inttostr_without_use): Likewise.
328         (sc_prohibit_ignore_value_without_use): Likewise.
329         (sc_prohibit_error_without_use): Likewise.
330         (sc_prohibit_xalloc_without_use): Likewise.
331         (sc_prohibit_hash_without_use): Likewise.
332         (sc_prohibit_hash_pjw_without_use): Likewise.
333         (sc_prohibit_safe_read_without_use): Likewise.
334         (sc_prohibit_argmatch_without_use): Likewise.
335         (sc_prohibit_canonicalize_without_use): Likewise.
336         (sc_prohibit_root_dev_ino_without_use): Likewise.
337         (sc_prohibit_openat_without_use): Likewise.
338         (sc_prohibit_c_ctype_without_use): Likewise.
339         (sc_prohibit_signal_without_use): Likewise.
340         (sc_prohibit_intprops_without_use): Likewise.
341
342 2010-03-30  Eric Blake  <eblake@redhat.com>
343
344         maint: improve module indicators
345         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
346         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
347         columns, and avoid extra macro expansion.
348
349         fdopendir: work around FreeBSD bug
350         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
351         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
352         * modules/dirent (Makefile.am): Substitute it.
353         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
354         declaration.
355         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
356         fix.
357         Reported by Christian Weisgerber <naddy@mips.inka.de>.
358
359 2010-03-29  Bruno Haible  <bruno@clisp.org>
360
361         Emit #pragma system_header after the inclusion guard, not before.
362         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
363         guard that spans the entire file, not before. This enables an
364         optimization in GCC's preprocessor.
365         * lib/ctype.in.h: Likewise.
366         * lib/dirent.in.h: Likewise.
367         * lib/errno.in.h: Likewise.
368         * lib/float.in.h: Likewise.
369         * lib/getopt.in.h: Likewise.
370         * lib/iconv.in.h: Likewise.
371         * lib/langinfo.in.h: Likewise.
372         * lib/locale.in.h: Likewise.
373         * lib/math.in.h: Likewise.
374         * lib/netdb.in.h: Likewise.
375         * lib/netinet_in.in.h: Likewise.
376         * lib/pty.in.h: Likewise.
377         * lib/sched.in.h: Likewise.
378         * lib/se-selinux.in.h: Likewise.
379         * lib/search.in.h: Likewise.
380         * lib/spawn.in.h: Likewise.
381         * lib/stdarg.in.h: Likewise.
382         * lib/stdint.in.h: Likewise.
383         * lib/string.in.h: Likewise.
384         * lib/strings.in.h: Likewise.
385         * lib/sys_file.in.h: Likewise.
386         * lib/sys_ioctl.in.h: Likewise.
387         * lib/sys_time.in.h: Likewise.
388         * lib/sys_times.in.h: Likewise.
389         * lib/sys_utsname.in.h: Likewise.
390         * lib/sys_wait.in.h: Likewise.
391         * lib/sysexits.in.h: Likewise.
392         * lib/wctype.in.h: Likewise.
393
394 2010-03-28  James Youngman  <jay@gnu.org>
395
396         save-cwd: don't leak a file descriptor when the caller execs.
397         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
398         saved file descriptor.
399         * modules/save-cwd (Depends-on): Depend on cloexec.
400
401 2010-03-29  Bruno Haible  <bruno@clisp.org>
402
403         Remove vestiges of fts-lgpl module.
404         * lib/fts_.h: Assume GNULIB_FTS is 1.
405         * lib/fts.c: Likewise.
406         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
407
408 2010-03-28  Bruno Haible  <bruno@clisp.org>
409
410         Fix definition of tests witness macro.
411         * gnulib-tool (func_import): Fix definition of witness macro.
412
413 2010-03-28  Bruno Haible  <bruno@clisp.org>
414
415         Fix ioctl's protoype on glibc systems.
416         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
417         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
418         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
419         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
420         signature. If not, arrange to replace the ioctl function.
421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
422         REPLACE_IOCTL.
423         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
424         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
425         Reported by Ludovic Courtès <ludo@gnu.org>.
426
427 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
428
429         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
430         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
431         made it so grep -r --include=GLOB* ... did not work.
432
433 2010-03-26  Jim Meyering  <meyering@redhat.com>
434             Eric Blake  <eblake@redhat.com>
435
436         maint.mk: prohibit use of test's -o and -a operators
437         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
438
439 2010-03-28  Bruno Haible  <bruno@clisp.org>
440
441         Remove unused GNULIB_XYZ macro definitions.
442         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
443         invocation.
444
445 2010-03-28  Bruno Haible  <bruno@clisp.org>
446
447         Mark privileged tests modules.
448         * modules/idpriv-drop-tests (Status): New section.
449         * modules/idpriv-droptemp-tests (Status): New section.
450
451 2010-03-28  Bruno Haible  <bruno@clisp.org>
452
453         Split C++ tests into separate tests modules.
454         * modules/dirent-c++-tests: New file, extracted from
455         modules/dirent-tests.
456         * modules/dirent-tests: Depend on it.
457         * modules/fcntl-h-c++-tests: New file, extracted from
458         modules/fcntl-h-tests.
459         * modules/fcntl-h-tests: Depend on it.
460         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
461         * modules/glob-tests: Depend on it.
462         * modules/iconv-h-c++-tests: New file, extracted from
463         modules/iconv-h-tests.
464         * modules/iconv-h-tests: Depend on it.
465         * modules/langinfo-c++-tests: New file, extracted from
466         modules/langinfo-tests.
467         * modules/langinfo-tests: Depend on it.
468         * modules/locale-c++-tests: New file, extracted from
469         modules/locale-tests.
470         * modules/locale-tests: Depend on it.
471         * modules/math-c++-tests: New file, extracted from modules/math-tests.
472         * modules/math-tests: Depend on it.
473         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
474         * modules/pty-tests: Depend on it.
475         * modules/search-c++-tests: New file, extracted from
476         modules/search-tests.
477         * modules/search-tests: Depend on it.
478         * modules/signal-c++-tests: New file, extracted from
479         modules/signal-tests.
480         * modules/signal-tests: Depend on it.
481         * modules/spawn-c++-tests: New file, extracted from
482         modules/spawn-tests.
483         * modules/spawn-tests: Depend on it.
484         * modules/stdio-c++-tests: New file, extracted from
485         modules/stdio-tests.
486         * modules/stdio-tests: Depend on it.
487         * modules/stdlib-c++-tests: New file, extracted from
488         modules/stdlib-tests.
489         * modules/stdlib-tests: Depend on it.
490         * modules/string-c++-tests: New file, extracted from
491         modules/string-tests.
492         * modules/string-tests: Depend on it.
493         * modules/sys_ioctl-c++-tests: New file, extracted from
494         modules/sys_ioctl-tests.
495         * modules/sys_ioctl-tests: Depend on it.
496         * modules/sys_select-c++-tests: New file, extracted from
497         modules/sys_select-tests.
498         * modules/sys_select-tests: Depend on it.
499         * modules/sys_socket-c++-tests: New file, extracted from
500         modules/sys_socket-tests.
501         * modules/sys_socket-tests: Depend on it.
502         * modules/sys_stat-c++-tests: New file, extracted from
503         modules/sys_stat-tests.
504         * modules/sys_stat-tests: Depend on it.
505         * modules/sys_time-c++-tests: New file, extracted from
506         modules/sys_time-tests.
507         * modules/sys_time-tests: Depend on it.
508         * modules/time-c++-tests: New file, extracted from modules/time-tests.
509         * modules/time-tests: Depend on it.
510         * modules/unistd-c++-tests: New file, extracted from
511         modules/unistd-tests.
512         * modules/unistd-tests: Depend on it.
513         * modules/wchar-c++-tests: New file, extracted from
514         modules/wchar-tests.
515         * modules/wchar-tests: Depend on it.
516         * modules/wctype-c++-tests: New file, extracted from
517         modules/wctype-tests.
518         * modules/wctype-tests: Depend on it.
519         Reported by Simon Josefsson.
520
521 2010-03-28  Bruno Haible  <bruno@clisp.org>
522
523         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
524         * gnulib-tool (func_exists_module): New function, extracted from
525         func_verify_module.
526         (func_verify_module): Use it.
527         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
528         'foo' only if 'foo' exists.
529         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
530         module.
531
532 2010-03-28  Bruno Haible  <bruno@clisp.org>
533
534         gnulib-tool: Add support for special categories of tests.
535         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
536         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
537         (func_usage): Document them.
538         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
539         inc_unportable_tests, inc_all_tests): New variables.
540         (func_acceptable): Consider these variables.
541         (func_modules_transitive_closure): Make it work when the 'Status' field
542         consists of multiple words.
543         (func_import): Store and restore the values of inc_cxx_tests,
544         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
545         inc_all_tests in gnulib-comp.m4.
546         (func_create_testdir): Set inc_all_tests to true.
547         * doc/gnulib.texi (Extra tests modules): New section.
548         Suggested by Jim Meyering.
549
550 2010-03-28  Bruno Haible  <bruno@clisp.org>
551
552         ansi-c++-opt: Allow turning off the C++ build by default.
553         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
554         gl_CXX_CHOICE_DEFAULT_NO is defined.
555         Requested by Eric Blake.
556
557 2010-03-28  Bruno Haible  <bruno@clisp.org>
558
559         unistd: Avoid #define replacements in C++ mode.
560         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
561         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
562         setsockopt, shutdown, select): In C++, attach a warning to the function
563         if possible, rather than #defining the symbol to a dysfunctional alias.
564         Reported by John W. Eaton <jwe@gnu.org>.
565
566 2010-03-28  Bruno Haible  <bruno@clisp.org>
567
568         Fix link errors on mingw.
569         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
570         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
571         $(LIBSOCKET).
572         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
573         $(LIBSOCKET).
574
575 2010-03-28  Bruno Haible  <bruno@clisp.org>
576             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
577
578         lib-ignore: Determine different options for different compilers.
579         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
580         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
581         Add comments.
582         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
583         * NEWS: Mention the change.
584
585 2010-03-27  Bruno Haible  <bruno@clisp.org>
586
587         Remove unused GNULIB_XYZ macro definitions.
588         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
589         * modules/fseek (configure.ac): Likewise.
590         * modules/ioctl (configure.ac): Likewise.
591         * modules/open (configure.ac): Likewise.
592         * modules/stdlib-safer (configure.ac): Likewise.
593
594 2010-03-27  Bruno Haible  <bruno@clisp.org>
595
596         Add a remark about certain modules.
597         * modules/malloc (Comment): New section.
598         * modules/realloc (Comment): Likewise.
599         * modules/sigpipe (Comment): Likewise.
600
601 2010-03-27  Bruno Haible  <bruno@clisp.org>
602
603         Resolve conflict between the two kinds of module indicators.
604         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
605         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
606         * modules/canonicalize (configure.ac): Invoke
607         gl_MODULE_INDICATOR_FOR_TESTS.
608         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
609         GNULIB_XYZ.
610         * tests/test-dirent-c++.cc: Likewise.
611         * tests/test-dirent-safer.c: Likewise.
612         * tests/test-dup2.c: Likewise.
613         * tests/test-fchdir.c: Likewise.
614         * tests/test-fcntl-h-c++.cc: Likewise.
615         * tests/test-getopt.c: Likewise.
616         * tests/test-getopt.h: Likewise.
617         * tests/test-langinfo-c++.cc: Likewise.
618         * tests/test-locale-c++.cc: Likewise.
619         * tests/test-math-c++.cc: Likewise.
620         * tests/test-pty-c++.cc: Likewise.
621         * tests/test-search-c++.cc: Likewise.
622         * tests/test-signal-c++.cc: Likewise.
623         * tests/test-spawn-c++.cc: Likewise.
624         * tests/test-stdio-c++.cc: Likewise.
625         * tests/test-stdlib-c++.cc: Likewise.
626         * tests/test-string-c++.cc: Likewise.
627         * tests/test-sys_ioctl-c++.cc: Likewise.
628         * tests/test-sys_select-c++.cc: Likewise.
629         * tests/test-sys_socket-c++.cc: Likewise.
630         * tests/test-sys_stat-c++.cc: Likewise.
631         * tests/test-sys_time-c++.cc: Likewise.
632         * tests/test-time-c++.cc: Likewise.
633         * tests/test-unistd-c++.cc: Likewise.
634         * tests/test-wchar-c++.cc: Likewise.
635         * tests/uninorm/test-u8-nfc.c: Likewise.
636         * tests/uninorm/test-u8-nfd.c: Likewise.
637         * tests/uninorm/test-u8-nfkc.c: Likewise.
638         * tests/uninorm/test-u8-nfkd.c: Likewise.
639         * tests/uninorm/test-u16-nfc.c: Likewise.
640         * tests/uninorm/test-u16-nfd.c: Likewise.
641         * tests/uninorm/test-u16-nfkc.c: Likewise.
642         * tests/uninorm/test-u16-nfkd.c: Likewise.
643         * tests/uninorm/test-u32-nfc.c: Likewise.
644         * tests/uninorm/test-u32-nfc-big.c: Likewise.
645         * tests/uninorm/test-u32-nfd.c: Likewise.
646         * tests/uninorm/test-u32-nfd-big.c: Likewise.
647         * tests/uninorm/test-u32-nfkc.c: Likewise.
648         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
649         * tests/uninorm/test-u32-nfkd.c: Likewise.
650         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
651         * tests/uninorm/test-u32-normalize-big.c: Likewise.
652
653 2010-03-27  Bruno Haible  <bruno@clisp.org>
654
655         Distinguish two kinds of module indicators.
656         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
657         gl_MODULE_INDICATOR.
658         (gl_MODULE_INDICATOR): New macro.
659         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
660         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
661         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
662         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
663         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
664         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
665         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
666         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
667         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
668         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
669         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
670         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
672         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
673         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
674         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
675         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
676         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
677         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
678         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
679         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
680         * modules/cloexec (configure.ac): Likewise.
681         * modules/getopt-gnu (configure.ac): Likewise.
682         * modules/uninorm/u8-normalize (configure.ac): Likewise.
683         * modules/uninorm/u16-normalize (configure.ac): Likewise.
684         * modules/uninorm/u32-normalize (configure.ac): Likewise.
685         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
686
687 2010-03-27  Bruno Haible  <bruno@clisp.org>
688
689         New module description field 'Comment'.
690         * gnulib-tool: New option --extract-comment.
691         (func_usage): Document it.
692         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
693         (func_get_comment): New function.
694         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
695
696 2010-03-27  Bruno Haible  <bruno@clisp.org>
697
698         Addendum to 2010-02-07 commit.
699         * gnulib-tool (func_usage): Document --extract-applicability option.
700
701 2010-03-27  Bruno Haible  <bruno@clisp.org>
702
703         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
704         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
705         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
706         rather than link errors.
707
708 2010-03-27  Bruno Haible  <bruno@clisp.org>
709
710         Avoid side effects from tests-related modules on the compilation of lib.
711         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
712         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
713         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
714         parameter. Emit into AM_CPPFLAGS a definition of the designated C
715         macro.
716         (func_import): Define a witness macro. Assign it a value that depends
717         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
718         tests-related modules.
719         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
720         Reported by Jim Meyering.
721
722 2010-03-27  Bruno Haible  <bruno@clisp.org>
723
724         Factorize common .m4 code.
725         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
726         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
727         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
728         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
729         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
730         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
731         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
732         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
733         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
734         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
735         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
736         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
737         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
738         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
739         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
740         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
741         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
742         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
744         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
745         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
746         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
747         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
748         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
749         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
750         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
751         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
752         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
753         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
754         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
755         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
756         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
757
758 2010-03-27  Bruno Haible  <bruno@clisp.org>
759
760         Fix a compilation error on Cygwin with g++ >= 4.3.
761         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
762         if it is undefined or if we alias it to chmod.
763         (lstat): Don't warn about the use of this function if it is undefined
764         or if we alias it to stat.
765         Reported by Simon Josefsson.
766
767 2010-03-27  Bruno Haible  <bruno@clisp.org>
768
769         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
770         * modules/getlogin (configure.ac): Update.
771
772         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
773         * modules/getlogin_r (configure.ac): Update.
774
775         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
777         * modules/inet_ntop (configure.ac): Update.
778
779         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
780         * modules/inet_pton (configure.ac): Update.
781
782         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
783         * modules/mbslen (configure.ac): Update.
784
785         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
786         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
787         * modules/forkpty (configure.ac): Update.
788         * modules/openpty (configure.ac): Update.
789
790 2010-03-26  Simon Josefsson  <simon@josefsson.org>
791
792         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
793         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
794
795 2010-03-25  Eric Blake  <eblake@redhat.com>
796
797         maint: use pragma consistently across replacement headers
798         * lib/ctype.in.h (system_header): Hoist for consistent placement.
799         * lib/dirent.in.h (system_header): Likewise.
800         * lib/errno.in.h (system_header): Likewise.
801         * lib/float.in.h (system_header): Likewise.
802         * lib/getopt.in.h (system_header): Likewise.
803         * lib/iconv.in.h (system_header): Likewise.
804         * lib/inttypes.in.h (system_header): Likewise.
805         * lib/langinfo.in.h (system_header): Likewise.
806         * lib/locale.in.h (system_header): Likewise.
807         * lib/math.in.h (system_header): Likewise.
808         * lib/netdb.in.h (system_header): Likewise.
809         * lib/netinet_in.in.h (system_header): Likewise.
810         * lib/pty.in.h (system_header): Likewise.
811         * lib/sched.in.h (system_header): Likewise.
812         * lib/se-selinux.in.h (system_header): Likewise.
813         * lib/search.in.h (system_header): Likewise.
814         * lib/spawn.in.h (system_header): Likewise.
815         * lib/stdarg.in.h (system_header): Likewise.
816         * lib/stdint.in.h (system_header): Likewise.
817         * lib/string.in.h (system_header): Likewise.
818         * lib/strings.in.h (system_header): Likewise.
819         * lib/sys_file.in.h (system_header): Likewise.
820         * lib/sys_ioctl.in.h (system_header): Likewise.
821         * lib/sys_socket.in.h (system_header): Likewise.
822         * lib/sys_times.in.h (system_header): Likewise.
823         * lib/sys_utsname.in.h (system_header): Likewise.
824         * lib/sys_wait.in.h (system_header): Likewise.
825         * lib/sysexits.in.h (system_header): Likewise.
826         * lib/unistd.in.h (system_header): Likewise.
827         * lib/wctype.in.h (system_header): Likewise.
828
829         arpa/inet: fix mingw compilation warning
830         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
831         Reported by Matthew Bolte.
832
833 2010-03-25  Bruno Haible  <bruno@clisp.org>
834
835         Avoid collision between gnulib wrapper and libintl wrapper.
836         * lib/printf.c (printf): Don't define if a printf wrapper is already
837         defined in intl/printf.c.
838         Reported by Michel Boaventura <michel@michelboaventura.com>.
839
840 2010-03-25  Bruno Haible  <bruno@clisp.org>
841
842         Use ANSI C.
843         * lib/readutmp.h (getutent): Provide ANSI C prototype.
844
845 2010-03-25  Bruno Haible  <bruno@clisp.org>
846
847         Minor formatting changes.
848         * lib/acosl.c: Insert space before function argument list.
849         * lib/argz.c: Likewise.
850         * lib/asinl.c: Likewise.
851         * lib/expl.c: Likewise.
852         * lib/gen-uni-tables.c: Likewise.
853         * lib/gettext.h: Likewise.
854         * lib/glthread/lock.h: Likewise.
855         * lib/tanl.c: Likewise.
856         * lib/uniname/uniname.c: Likewise.
857         * tests/test-idpriv-drop.c: Likewise.
858         * tests/test-idpriv-droptemp.c: Likewise.
859         * tests/test-lock.c: Likewise.
860         * tests/test-tls.c: Likewise.
861         * lib/argp-help.c: Insert space before function-like macro argument
862         list.
863         * lib/memcmp.c: Likewise.
864         * tests/test-base64.c: Likewise.
865         * lib/localename.c: Insert space before sizeof's argument list.
866         * lib/safe-alloc.h: Likewise.
867         * lib/file-set.h: Insert space before macro argument list.
868         * tests/test-argp.c: Likewise.
869         * lib/argp-namefrob.h: Insert space before function parameter list.
870         * lib/getaddrinfo.c: Likewise.
871         * lib/netdb.in.h: Likewise.
872         * lib/parse-duration.h: Likewise.
873         * lib/parse-duration.c: Likewise.
874         * lib/poll.c: Likewise.
875         * lib/select.c: Likewise.
876         * lib/trim.h: Likewise.
877         * tests/test-usleep.c: Likewise.
878         * lib/ldexpl.c: Insert space before function parameter list and before
879         function argument list.
880         * lib/logl.c: Likewise.
881         * lib/sqrtl.c: Likewise.
882         * lib/trim.c: Likewise.
883         * lib/cosl.c: Use GNU style indentation. Insert space before function
884         argument list.
885         * lib/sinl.c: Likewise.
886         * lib/tsearch.c: Insert space after 'for'.
887         Reported by Jim Meyering.
888
889 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
890
891         * maint.mk (sc_Wundef_boolean): Check for the presence of the
892         config header before grepping, as it's not present before
893         autoreconf/configure are run.  Reported by Simon Josefsson.
894
895 2010-03-23  Bruno Haible  <bruno@clisp.org>
896
897         pt_chown: Make it work with automake < 1.11.
898         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
899         Reported by Simon Josefsson.
900
901 2010-03-23  Bruno Haible  <bruno@clisp.org>
902
903         pt_chown: Don't depend on GPLed modules.
904         * lib/pt_chown.c: Don't include idpriv.h.
905         (main): Don't drop privileges.
906         * modules/pt_chown (Depends-on): Remove idpriv-drop.
907         Reported by Simon Josefsson.
908
909 2010-03-24  Simon Josefsson  <simon@josefsson.org>
910
911         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
912         suggestions from karl@freefriends.org (Karl Berry).
913
914 2010-03-22  Eric Blake  <eblake@redhat.com>
915
916         gethostname: further tweaks
917         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
918         are overriding gethostname.
919         Suggested by Bruno Haible.
920
921 2010-03-21  Bruno Haible  <bruno@clisp.org>
922
923         Fix comments.
924         * lib/forkpty.c (rpl_forkpty): Fix comment.
925         * lib/openpty.c (rpl_openpty): Likewise.
926         Reported by Eric Blake.
927
928 2010-03-22  Eric Blake  <eblake@redhat.com>
929
930         gethostname: fix build on mingw
931         * lib/unistd.in.h (includes): Work around fact that mingw
932         <winsock2.h> re-includes <unistd.h>, by avoiding any
933         redeclarations if we are being included by <winsock2.h>.
934         Reported by Matthias Bolte.
935
936 2010-03-21  Bruno Haible  <bruno@clisp.org>
937
938         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
939         * lib/forkpty.c (forkpty): New replacement function, from glibc with
940         modifications.
941         * lib/pty.in.h (forkpty): Update declaration. Add comments.
942         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
943         provide the replacement.
944         * modules/forkpty (Depends-on): Add openpty, login_tty.
945         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
946         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
947         * doc/glibc-functions/forkpty.texi: More supported platforms.
948         * config/srclist.txt: Add forkpty.c (commented).
949
950 2010-03-21  Bruno Haible  <bruno@clisp.org>
951
952         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
953         (Makefile.am): Verify that PTY_LIB is defined.
954
955         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
956
957 2010-03-21  Bruno Haible  <bruno@clisp.org>
958
959         Tests for module 'login_tty'.
960         * modules/login_tty-tests: New file.
961         * tests/test-login_tty.c: New file.
962
963         New module 'login_tty'.
964         * lib/login_tty.c: New file.
965         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
966         * modules/login_tty: New file.
967         * doc/glibc-functions/login_tty.texi: Mention the new module.
968
969 2010-03-21  Bruno Haible  <bruno@clisp.org>
970
971         login_tty: Documentation.
972         * doc/glibc-functions/login_tty.texi: New file.
973         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
974
975 2010-03-21  Bruno Haible  <bruno@clisp.org>
976
977         pty: Consistent macro naming.
978         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
979         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
980         * modules/pty (configure.ac): Update.
981
982 2010-03-21  Bruno Haible  <bruno@clisp.org>
983
984         Tests for openpty: Make stricter.
985         * tests/test-openpty.c (main): Add test of canonical processing and
986         erase.
987         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
988
989         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
990         * lib/openpty.c (openpty): New replacement function.
991         * lib/pty.in.h: Include <termios.h>.
992         (openpty): Update declaration. Add comments.
993         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
994         is not declared, arrange to provide the replacement. Check for _getpty
995         and posix_openpt.
996         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
997         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
998         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
999         * modules/pty-tests (test_pty_c___LDADD): New variable.
1000         * doc/glibc-functions/openpty.texi: More supported platforms.
1001
1002 2010-03-21  Bruno Haible  <bruno@clisp.org>
1003
1004         setenv: Tweaks.
1005         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1006         the test program.
1007         * doc/posix-functions/setenv.texi: Update platforms list.
1008
1009 2010-03-21  Bruno Haible  <bruno@clisp.org>
1010
1011         New module 'unlockpt'.
1012         * lib/unlockpt.c: New file, from glibc with modifications.
1013         * m4/unlockpt.m4: New file.
1014         * modules/unlockpt: New file.
1015         * lib/stdlib.in.h (unlockpt): New declaration.
1016         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1017         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1018         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1019         HAVE_UNLOCKPT.
1020         * doc/posix-functions/unlockpt.texi: Mention the new module.
1021         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1022         * config/srclist.txt: Add unlockpt.c (commented).
1023
1024 2010-03-21  Jim Meyering  <meyering@redhat.com>
1025
1026         maint.mk: prohibit inclusion of "intprops.h" without use
1027         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1028
1029 2010-03-21  Bruno Haible  <bruno@clisp.org>
1030
1031         New module 'grantpt'.
1032         * lib/grantpt.c: New file, from glibc with modifications.
1033         * m4/grantpt.m4: New file.
1034         * modules/grantpt: New file.
1035         * lib/stdlib.in.h (grantpt): New declaration.
1036         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1037         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1038         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1039         HAVE_GRANTPT.
1040         * doc/posix-functions/grantpt.texi: Mention the new module.
1041         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1042         * config/srclist.txt: Add grantpt.c (commented).
1043
1044 2010-03-21  Bruno Haible  <bruno@clisp.org>
1045
1046         New module 'pt_chown'.
1047         * lib/pt_chown.c: New file, from glibc with modifications.
1048         * lib/pty-private.h: New file, from glibc with modifications.
1049         * modules/pt_chown: New file.
1050         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1051
1052 2010-03-21  Bruno Haible  <bruno@clisp.org>
1053
1054         Tests for module 'ptsname'.
1055         * modules/ptsname-tests: New file.
1056         * tests/test-ptsname.c: New file.
1057
1058         New module 'ptsname'.
1059         * lib/ptsname.c: New file, from glibc with modifications.
1060         * m4/ptsname.m4: New file.
1061         * modules/ptsname: New file.
1062         * lib/stdlib.in.h (ptsname): New declaration.
1063         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1064         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1065         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1066         HAVE_PTSNAME.
1067         * doc/posix-functions/ptsname.texi: Mention the new module.
1068         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1069         * config/srclist.txt: Add ptsname.c (commented).
1070
1071 2010-03-21  Bruno Haible  <bruno@clisp.org>
1072
1073         Tests for module 'ttyname_r'.
1074         * modules/ttyname_r-tests: New file.
1075         * tests/test-ttyname_r.c: New file.
1076
1077         New module 'ttyname_r'.
1078         * lib/ttyname_r.c: New file.
1079         * m4/ttyname_r.m4: New file.
1080         * modules/ttyname_r: New file.
1081         * lib/unistd.in.h (ttyname_r): New declaration.
1082         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1083         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1084         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1085         HAVE_TTYNAME_R.
1086         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1087         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1088
1089 2010-03-20  Bruno Haible  <bruno@clisp.org>
1090
1091         signal: Undefine macro definitions in C++ mode.
1092         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1093         sigfillset): Undefine macro definitions from the system header in C++
1094         mode.
1095         Reported by John W. Eaton <jwe@gnu.org>.
1096
1097 2010-03-20  Bruno Haible  <bruno@clisp.org>
1098
1099         Ensure no #include statements inside extern "C" { ... }.
1100         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1101         contain #include statements.
1102         * lib/time.in.h: Likewise.
1103
1104 2010-03-20  Bruno Haible  <bruno@clisp.org>
1105
1106         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1107         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1108         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1109         Reported by John W. Eaton <jwe@gnu.org>.
1110
1111 2010-03-20  Bruno Haible  <bruno@clisp.org>
1112
1113         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1114         Reported by Jim Meyering.
1115
1116 2010-03-20  Bruno Haible  <bruno@clisp.org>
1117
1118         pipe: Set errno upon failure.
1119         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1120         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1121         errno value in error message.
1122
1123 2010-03-20  Bruno Haible  <bruno@clisp.org>
1124             Jim Meyering  <meyering@redhat.com>
1125
1126         lchown: Avoid "unused variable" warning.
1127         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1128
1129 2010-03-20  Bruno Haible  <bruno@clisp.org>
1130
1131         Work around unlink() bug on MacOS X 10.5.6.
1132         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1133         attempting to unlink a parent directory.
1134         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1135         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1136         activate for the replacement function.
1137         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1138
1139 2010-03-20  Bruno Haible  <bruno@clisp.org>
1140
1141         Fix link errors on Solaris 8.
1142         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1143         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1144
1145 2010-03-19  Jim Meyering  <meyering@redhat.com>
1146
1147         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1148         The _LIBC implementation of build_range_exp correctly honors the
1149         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1150         However, the non-_LIBC implementation would ignore that syntax-bit
1151         flag and return REG_ERANGE unconditionally.
1152         This change makes it honor that flag.
1153         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1154         Make two pointer parameters "const".
1155         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1156         (parse_bracket_exp): Update caller.
1157
1158         regex.m4: correct the reversed range endpoint ([b-a]) test
1159         * m4/regex.m4: When requiring that [b-a] evoke failure,
1160         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1161         test pass once again for x86-based systems.
1162
1163 2010-03-19  Bruno Haible  <bruno@clisp.org>
1164
1165         scandir: Fix link error on Solaris 8.
1166         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1167         macros.
1168
1169 2010-03-19  Bruno Haible  <bruno@clisp.org>
1170
1171         getusershell: Fix documentation.
1172         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1173         module.
1174         * doc/glibc-functions/setusershell.texi: Likewise.
1175
1176         getusershell: Provide declaration, missing on Solaris 9.
1177         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1178         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1179         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1180         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1182         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1183         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1184         HAVE_GETUSERSHELL.
1185         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1186
1187 2010-03-19  Bruno Haible  <bruno@clisp.org>
1188
1189         wctype: Provide iswblank function.
1190         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1191         exists and is fine.
1192         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1193         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1194         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1195         * doc/posix-functions/iswblank.texi: Update.
1196
1197 2010-03-19  Bruno Haible  <bruno@clisp.org>
1198
1199         Tests of module 'pty' in C++ mode.
1200         * modules/pty-tests: New file.
1201         * tests/test-pty-c++.cc: New file.
1202         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1203
1204 2010-03-19  Eric Blake  <eblake@redhat.com>
1205
1206         logb: fix documentation
1207         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1208         1.5 declaration bug.
1209
1210         forkpty, openpty: prefer glibc's const-safe prototype
1211         * lib/forkpty.c (rpl_forkpty): New file.
1212         * lib/openpty.c (rpl_openpty): Likewise.
1213         * modules/forkpty (Files): Distribute it.
1214         * modules/openpty (Files): Likewise.
1215         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1216         check...
1217         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1218         replacement for for non-const BSD signature.
1219         * modules/pty (Makefile.am): Substitute witnesses.
1220         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1221         * tests/test-forkpty.c: Update signature check.
1222         * tests/test-openpty.c: Likewise.
1223         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1224         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1225
1226         forkpty, openpty: split functions into new modules
1227         * modules/pty (Makefile.am): Substitute new witnesses.
1228         (Libraries): Move library detection...
1229         * modules/forkpty: ...into new module.
1230         * modules/openpty: Another new module.
1231         * modules/pty-tests: Rename and split...
1232         * modules/forkpty-tests: ...to this...
1233         * modules/openpty-tests: ...and this.
1234         * tests/test-pty.c: Rename and split...
1235         * tests/test-forkpty.c: ...to this...
1236         * tests/test-openpty.c: ...and this.
1237         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1238         (gl_PTY): Split library searching...
1239         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1240         (gl_FORKPTY, gl_OPENPTY): New macros.
1241         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1242         * NEWS: Mention the split.
1243         * MODULES.html.sh (Misc): Document the modules.
1244         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1245         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1246
1247         pty: improve replacement header
1248         * lib/pty.in.h: New file.
1249         * modules/pty (Files): Ship it.
1250         (Makefile.am): Always build replacement.
1251         * m4/pty.m4: Rename...
1252         * m4/pty_h.m4: ...to this.
1253         (gl_PTY): Modernize setting of witness macros; update check of
1254         forkpty to take proper advantage of cache.
1255         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1256
1257         getopt: avoid compiler warning
1258         * lib/getopt.c (attribute_hidden): Remove unused macro.
1259
1260 2010-03-18  Bruno Haible  <bruno@clisp.org>
1261
1262         Fix link errors on Solaris 8.
1263         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1264         * modules/search-tests (test_search_c___LDADD): Likewise.
1265         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1266         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1267         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1268         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1269         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1270         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1271         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1272
1273 2010-03-18  Bruno Haible  <bruno@clisp.org>
1274
1275         Fix bug introduced on 2010-03-14.
1276         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1277         (gl_SPAWN_H): Require it.
1278         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1279         Reported by Simon Josefsson.
1280
1281 2010-03-18  Bruno Haible  <bruno@clisp.org>
1282
1283         Fix typo introduced on 2009-12-31.
1284         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1285         posix_spawn_file_actions_adddup2.
1286
1287 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1288         and Eric Blake  <eblake@redhat.com>
1289
1290         test-vc-list-files-git: make more robust
1291         * tests/test-vc-list-files-git.sh: Unset problematic environment
1292         variables.  Chain commands together.
1293
1294 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1295
1296         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1297         `AC_CHECK_DECL' invocation.
1298
1299 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1300
1301         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1302         appears before executable statements. Suggested by Petr Sumbera
1303         <Petr.Sumbera@Sun.COM>.
1304
1305 2010-03-14  Bruno Haible  <bruno@clisp.org>
1306
1307         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1308         portability problems. Instead use a simpler test.
1309         (main): Check that invalid arguments are rejected only on Linux.
1310
1311 2010-03-14  Bruno Haible  <bruno@clisp.org>
1312
1313         Fix bug introduced on 2009-12-31.
1314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1315         gl_PREREQ_SYS_H_WINSOCK2 always.
1316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1317         SYS_SOCKET_H variable.
1318         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1319         Update comments.
1320         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1321         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1322         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1323         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1324         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1325
1326 2010-03-14  Bruno Haible  <bruno@clisp.org>
1327
1328         Fix values returned by sinl, cosl.
1329         * lib/trigl.h: Add specification comments.
1330         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1331         that combines the values from the precomputed table with the values of
1332         the Chebyshev polynomials.
1333
1334 2010-03-14  Bruno Haible  <bruno@clisp.org>
1335
1336         Fix compilation error when modules 'posix_spawn[p]' are not used.
1337         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1338         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1339
1340 2010-03-14  Bruno Haible  <bruno@clisp.org>
1341
1342         Fix compilation error on mingw when module 'time_r' is not used.
1343         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1344         is 1.
1345         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1346         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1347         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1348         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1349
1350 2010-03-14  Bruno Haible  <bruno@clisp.org>
1351
1352         Fix compilation error with Sun C.
1353         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1354         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1355         instead of GCC specific ULONG_LONG_MAX.
1356         * lib/xstrtoll.c: Likewise.
1357         * lib/xstrtoull.c: Likewise.
1358
1359 2010-03-13  Bruno Haible  <bruno@clisp.org>
1360
1361         Allow the user to disable C++ code and tests.
1362         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1363         (gl_PROG_ANSI_CXX): Require it.
1364
1365 2010-03-13  Bruno Haible  <bruno@clisp.org>
1366
1367         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1368         cases.
1369
1370 2010-03-13  Bruno Haible  <bruno@clisp.org>
1371
1372         Test that gnulib does not break the standard C++ headers.
1373         * tests/test-locale-c++2.cc: New file.
1374         * modules/locale-tests (Files): Add it.
1375         (Makefile.am): Compile it for test-locale-c++.
1376         * tests/test-math-c++2.cc: New file.
1377         * modules/math-tests (Files): Add it.
1378         (Makefile.am): Compile it for test-math-c++.
1379         * tests/test-signal-c++2.cc: New file.
1380         * modules/signal-tests (Files): Add it.
1381         (Makefile.am): Compile it for test-signal-c++.
1382         * tests/test-stdio-c++2.cc: New file.
1383         * modules/stdio-tests (Files): Add it.
1384         (Makefile.am): Compile it for test-stdio-c++.
1385         * tests/test-stdlib-c++2.cc: New file.
1386         * modules/stdlib-tests (Files): Add it.
1387         (Makefile.am): Compile it for test-stdlib-c++.
1388         * tests/test-string-c++2.cc: New file.
1389         * modules/string-tests (Files): Add it.
1390         (Makefile.am): Compile it for test-string-c++.
1391         * tests/test-time-c++2.cc: New file.
1392         * modules/time-tests (Files): Add it.
1393         (Makefile.am): Compile it for test-time-c++.
1394         Reported by John W. Eaton <jwe@gnu.org>.
1395
1396 2010-03-13  Bruno Haible  <bruno@clisp.org>
1397
1398         * gnulib-tool (func_usage): Clarify which options are available for
1399         --create-testdir and --create-megatestdir.
1400
1401 2010-03-13  Bruno Haible  <bruno@clisp.org>
1402
1403         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1404         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1405         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1406         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1407         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1408         when appropriate.
1409         Reported by Jim Meyering.
1410
1411 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1412
1413         * gnulib-tool (func_import): Explain origin of code.
1414
1415 2010-03-12  Bruno Haible  <bruno@clisp.org>
1416
1417         Fix problem with automake's definition of CXXLINK.
1418         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1419         Reported by Simon Josefsson and Ludovic Courtès.
1420
1421 2010-03-12  Bruno Haible  <bruno@clisp.org>
1422
1423         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1424         stable releases.
1425
1426 2010-03-11  Bruno Haible  <bruno@clisp.org>
1427
1428         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1429         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1430         whether the system provides one variant or multiple variants of the
1431         function.
1432         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1433         C++ compilers.
1434         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1435         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1436         Reported by Jim Meyering.
1437
1438 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1439
1440         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1441
1442 2010-03-08  Bruno Haible  <bruno@clisp.org>
1443
1444         gnulib-tool: Add support for --libtool in --create-testdir.
1445         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1446         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1447
1448 2010-03-08  Eric Blake  <eblake@redhat.com>
1449
1450         gnulib-tool.texi: mention possibility of git submodule
1451         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1452         submodules.
1453         * doc/.gitignore: Ignore another generated file.
1454
1455 2010-03-08  Karl Berry  <karl@gnu.org>
1456
1457         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1458         of committing gnulib files while skipping others.
1459
1460 2010-03-07  Bruno Haible  <bruno@clisp.org>
1461
1462         Tests of module 'wctype' in C++ mode.
1463         * tests/test-wctype-c++.cc: New file.
1464         * modules/wctype-tests (Files): Add it and tests/signature.h.
1465         (Depends-on): Add ansi-c++-opt.
1466         (Makefile.am): Arrange to compile and run test-wctype-c++.
1467
1468         Tests of module 'wchar' in C++ mode.
1469         * tests/test-wchar-c++.cc: New file.
1470         * modules/wchar-tests (Files): Add it and tests/signature.h.
1471         (Depends-on): Add ansi-c++-opt.
1472         (Makefile.am): Arrange to compile and run test-wchar-c++.
1473         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1474         gl_MODULE_INDICATOR.
1475
1476         Tests of module 'unistd' in C++ mode.
1477         * tests/test-unistd-c++.cc: New file.
1478         * modules/unistd-tests (Files): Add it and tests/signature.h.
1479         (Depends-on): Add ansi-c++-opt.
1480         (Makefile.am): Arrange to compile and run test-unistd-c++.
1481         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1482         gl_MODULE_INDICATOR.
1483
1484         Tests of module 'time' in C++ mode.
1485         * tests/test-time-c++.cc: New file.
1486         * modules/time-tests (Files): Add it and tests/signature.h.
1487         (Depends-on): Add ansi-c++-opt.
1488         (Makefile.am): Arrange to compile and run test-time-c++.
1489         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1490
1491         Tests of module 'sys_time' in C++ mode.
1492         * tests/test-sys_time-c++.cc: New file.
1493         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1494         (Depends-on): Add ansi-c++-opt.
1495         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1496         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1497         gl_MODULE_INDICATOR.
1498
1499         Tests of module 'sys_stat' in C++ mode.
1500         * tests/test-sys_stat-c++.cc: New file.
1501         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1502         (Depends-on): Add ansi-c++-opt.
1503         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1504         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1505         gl_MODULE_INDICATOR.
1506
1507         Tests of module 'sys_socket' in C++ mode.
1508         * tests/test-sys_socket-c++.cc: New file.
1509         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1510         (Depends-on): Add ansi-c++-opt.
1511         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1512         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1513         gl_MODULE_INDICATOR.
1514
1515         Tests of module 'sys_select' in C++ mode.
1516         * tests/test-sys_select-c++.cc: New file.
1517         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1518         (Depends-on): Add ansi-c++-opt.
1519         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1520         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1521         gl_MODULE_INDICATOR.
1522
1523         Tests of module 'sys_ioctl' in C++ mode.
1524         * tests/test-sys_ioctl-c++.cc: New file.
1525         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1526         (Depends-on): Add ansi-c++-opt.
1527         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1528         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1529         gl_MODULE_INDICATOR.
1530
1531         Tests of module 'string' in C++ mode.
1532         * tests/test-string-c++.cc: New file.
1533         * modules/string-tests (Files): Add it and tests/signature.h.
1534         (Depends-on): Add ansi-c++-opt.
1535         (Makefile.am): Arrange to compile and run test-string-c++.
1536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1537         gl_MODULE_INDICATOR.
1538
1539         Tests of module 'stdlib' in C++ mode.
1540         * tests/test-stdlib-c++.cc: New file.
1541         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1542         (Depends-on): Add ansi-c++-opt.
1543         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1544         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1545         gl_MODULE_INDICATOR.
1546
1547         Tests of module 'stdio' in C++ mode.
1548         * tests/test-stdio-c++.cc: New file.
1549         * modules/stdio-tests (Files): Add it and tests/signature.h.
1550         (Depends-on): Add ansi-c++-opt.
1551         (Makefile.am): Arrange to compile and run test-stdio-c++.
1552         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1553         gl_MODULE_INDICATOR.
1554
1555         Tests of module 'spawn' in C++ mode.
1556         * tests/test-spawn-c++.cc: New file.
1557         * modules/spawn-tests (Files): Add it and tests/signature.h.
1558         (Depends-on): Add ansi-c++-opt.
1559         (Makefile.am): Arrange to compile and run test-spawn-c++.
1560         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1561         gl_MODULE_INDICATOR.
1562
1563         Tests of module 'signal' in C++ mode.
1564         * tests/test-signal-c++.cc: New file.
1565         * modules/signal-tests (Files): Add it and tests/signature.h.
1566         (Depends-on): Add ansi-c++-opt.
1567         (Makefile.am): Arrange to compile and run test-signal-c++.
1568         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1569         gl_MODULE_INDICATOR.
1570
1571         Tests of module 'search' in C++ mode.
1572         * tests/test-search-c++.cc: New file.
1573         * modules/search-tests (Files): Add it and tests/signature.h.
1574         (Depends-on): Add ansi-c++-opt.
1575         (Makefile.am): Arrange to compile and run test-search-c++.
1576         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1577         gl_MODULE_INDICATOR.
1578
1579         Tests of module 'math' in C++ mode.
1580         * tests/test-math-c++.cc: New file.
1581         * modules/math-tests (Files): Add it and tests/signature.h.
1582         (Depends-on): Add ansi-c++-opt.
1583         (Makefile.am): Arrange to compile and run test-math-c++.
1584         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1585
1586         Tests of module 'locale' in C++ mode.
1587         * tests/test-locale-c++.cc: New file.
1588         * modules/locale-tests (Files): Add it and tests/signature.h.
1589         (Depends-on): Add ansi-c++-opt.
1590         (Makefile.am): Arrange to compile and run test-locale-c++.
1591         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1592         gl_MODULE_INDICATOR.
1593
1594         Tests of module 'langinfo' in C++ mode.
1595         * tests/test-langinfo-c++.cc: New file.
1596         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1597         (Depends-on): Add ansi-c++-opt.
1598         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1599         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1600         gl_MODULE_INDICATOR.
1601
1602         Tests of module 'iconv-h' in C++ mode.
1603         * tests/test-iconv-h-c++.cc: New file.
1604         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1605         (Depends-on): Add ansi-c++-opt.
1606         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1607
1608         Tests of module 'glob' in C++ mode.
1609         * tests/test-glob-c++.cc: New file.
1610         * modules/glob-tests (Files): Add it.
1611         (Depends-on): Add ansi-c++-opt.
1612         (Makefile.am): Arrange to compile and run test-glob-c++.
1613
1614         Tests of module 'fcntl-h' in C++ mode.
1615         * tests/test-fcntl-h-c++.cc: New file.
1616         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1617         (Depends-on): Add ansi-c++-opt.
1618         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1619         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1620         gl_MODULE_INDICATOR.
1621
1622         Tests of module 'dirent' in C++ mode.
1623         * tests/test-dirent-c++.cc: New file.
1624         * modules/dirent-tests (Files): Add it and tests/signature.h.
1625         (Depends-on): Add ansi-c++-opt.
1626         (Makefile.am): Arrange to compile and run test-dirent-c++.
1627         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1628         gl_MODULE_INDICATOR.
1629
1630         New module 'ansi-c++-opt'.
1631         * modules/ansi-c++-opt: New file.
1632         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1633
1634         Document C++ namespace mode.
1635         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1636
1637         wctype: Avoid #define replacements in C++ mode.
1638         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1639         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1640         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1641         In C++, define a namespaced alias symbol.
1642         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1643         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1644         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1645         rule.
1646
1647         wchar: Avoid #define replacements in C++ mode.
1648         * lib/wchar.in.h: Include c++defs.h.
1649         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1650         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1651         symbol.
1652         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1653         * modules/wchar (Depends-on): Add c++defs.
1654         (Makefile.am): Update wchar.h rule.
1655
1656         unistd: Avoid #define replacements in C++ mode.
1657         * lib/unistd.in.h: Include c++defs.h.
1658         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1659         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1660         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1661         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1662         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1663         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1664         symbol.
1665         (environ): Update.
1666         * modules/unistd (Depends-on): Add c++defs.
1667         (Makefile.am): Update unistd.h rule.
1668
1669         time: Avoid #define replacements in C++ mode.
1670         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1671         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1672         define a namespaced alias symbol.
1673         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1674         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1675         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1676         * modules/time (Depends-on): Add c++defs, warn-on-use.
1677         (Makefile.am): Update time.h rule.
1678         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1679         * modules/nanosleep (configure.ac): Likewise.
1680         * modules/strptime (configure.ac): Likewise.
1681         * modules/timegm (configure.ac): Likewise.
1682
1683         sys_time: Avoid #define replacements in C++ mode.
1684         * lib/sys_time.in.h: Include c++defs.h.
1685         (gettimeofday): In C++, define a namespaced alias symbol.
1686         * modules/sys_time (Depends-on): Add c++defs.
1687         (Makefile.am): Update sys/time.h rule.
1688
1689         sys_stat: Avoid #define replacements in C++ mode.
1690         * lib/sys_stat.in.h: Include c++defs.h.
1691         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1692         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1693         namespaced alias symbol.
1694         In C++, define a namespaced alias symbol.
1695         * modules/sys_stat (Depends-on): Add c++defs.
1696         (Makefile.am): Update sys/stat.h rule.
1697
1698         sys_socket: Avoid #define replacements in C++ mode.
1699         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1700         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1701         definitions also when the system has a <sys/socket.h>.
1702         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1703         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1704         In C++, define a namespaced alias symbol.
1705         * modules/sys_socket (Depends-on): Add c++defs.
1706         (Makefile.am): Update sys/socket.h rule.
1707
1708         sys_select: Avoid #define replacements in C++ mode.
1709         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1710         definitions also when the system has a <sys/select.h>.
1711         (select): In C++, define a namespaced alias symbol.
1712         * modules/sys_select (Depends-on): Add c++defs.
1713         (Makefile.am): Update sys/select.h rule.
1714
1715         sys_ioctl: Avoid #define replacements in C++ mode.
1716         * lib/sys_ioctl.in.h: Include c++defs.h.
1717         (ioctl): In C++, define a namespaced alias symbol.
1718         * modules/sys_ioctl (Depends-on): Add c++defs.
1719         (Makefile.am): Update sys/ioctl.h rule.
1720
1721         string: Avoid #define replacements in C++ mode.
1722         * lib/string.in.h: Include c++defs.h.
1723         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1724         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1725         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1726         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1727         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1728         * modules/string (Depends-on): Add c++defs.
1729         (Makefile.am): Update string.h rule.
1730
1731         stdlib: Avoid #define replacements in C++ mode.
1732         * lib/stdlib.in.h: Include c++defs.h.
1733         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1734         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1735         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1736         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1737         symbol.
1738         * modules/stdlib (Depends-on): Add c++defs.
1739         (Makefile.am): Update stdlib.h rule.
1740
1741         stdio: Avoid #define replacements in C++ mode.
1742         * lib/stdio.in.h: Include c++defs.h.
1743         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1744         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1745         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1746         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1747         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1748         namespaced alias symbol.
1749         * modules/stdio (Depends-on): Add c++defs.
1750         (Makefile.am): Update stdio.h rule.
1751
1752         spawn: Avoid #define replacements in C++ mode.
1753         * lib/spawn.in.h: Include c++defs.h.
1754         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1755         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1756         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1757         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1758         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1759         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1760         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1761         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1762         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1763         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1764         In C++, define a namespaced alias symbol.
1765         * modules/spawn (Depends-on): Add c++defs.
1766         (Makefile.am): Update spawn.h rule.
1767
1768         signal: Avoid #define replacements in C++ mode.
1769         * lib/signal.in.h: Include c++defs.h.
1770         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1771         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1772         namespaced alias symbol.
1773         * modules/signal (Depends-on): Add c++defs.
1774         (Makefile.am): Update signal.h rule.
1775
1776         search: Avoid #define replacements in C++ mode.
1777         * lib/search.in.h: Include c++defs.h.
1778         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1779         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1780         symbol.
1781         * modules/search (Depends-on): Add c++defs.
1782         (Makefile.am): Update search.h rule.
1783
1784         math: Avoid #define replacements in C++ mode.
1785         * lib/math.in.h: Include c++defs.h.
1786         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1787         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1788         trunc, truncl): In C++, define a namespaced alias symbol.
1789         * modules/math (Depends-on): Add c++defs.
1790         (Makefile.am): Update math.h rule.
1791
1792         locale: Avoid #define replacements in C++ mode.
1793         * lib/locale.in.h: Include c++defs.h.
1794         (duplocale): In C++, define a namespaced alias symbol.
1795         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1796         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1797         * modules/locale (Depends-on): Add c++defs.
1798         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1799
1800         langinfo: Avoid #define replacements in C++ mode.
1801         * lib/langinfo.in.h: Include c++defs.h.
1802         (nl_langinfo): In C++, define a namespaced alias symbol.
1803         * modules/langinfo (Depends-on): Add c++defs.
1804         (Makefile.am): Update langinfo.h rule.
1805
1806         iconv-h: Avoid #define replacements in C++ mode.
1807         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1808         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1809         symbol.
1810         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1811         whenever iconv is present.
1812         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1813         (Makefile.am): Update iconv.h rule.
1814
1815         glob: Avoid #define replacements in C++ mode.
1816         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1817         (_gl_glob_errfunc_fn): New type.
1818         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1819         symbol.
1820         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1821         (Makefile.am): Update glob.h rule.
1822
1823         fcntl-h: Avoid #define replacements in C++ mode.
1824         * lib/fcntl.in.h: Include c++defs.h.
1825         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1826         * modules/fcntl-h (Depends-on): Add c++defs.
1827         (Makefile.am): Update fcntl.h rule.
1828
1829         dirent: Avoid #define replacements in C++ mode.
1830         * lib/dirent.in.h: Include c++defs.h.
1831         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1832         namespaced alias symbol.
1833         (dirfd): Update declaration.
1834         * modules/dirent (Depends-on): Add c++defs.
1835         (Makefile.am): Update dirent.h rule.
1836
1837         ctype: Make it usable in C++ code.
1838         * lib/ctype.in.h: Include c++defs.h.
1839         (isblank): Declare as extern "C".
1840         * modules/ctype (Depends-on): Add c++defs.
1841         (Makefile.am): Update ctype.h rule.
1842
1843         New module 'c++defs'.
1844         * modules/c++defs: New file.
1845         * build-aux/c++defs.h: New file.
1846         Reported by John W. Eaton <jwe@gnu.org>.
1847
1848 2010-03-07  Bruno Haible  <bruno@clisp.org>
1849
1850         logb: Provide missing declaration for Cygwin.
1851         * lib/math.in.h (logb): New declaration.
1852         * m4/logb.m4: New file.
1853         * modules/logb (Files): Add m4/logb.m4.
1854         (Depends-on): Add math.
1855         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1856         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1858         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1859         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1860
1861 2010-03-07  Bruno Haible  <bruno@clisp.org>
1862
1863         Fix test-cond link error.
1864         * tests/test-cond.c: Include <stdio.h>.
1865
1866 2010-03-07  Bruno Haible  <bruno@clisp.org>
1867
1868         Fix test-dirent-safer link error.
1869         * modules/dirent-safer-tests (Makefile.am): Define
1870         test_dirent_safer_LDADD.
1871
1872 2010-03-07  Bruno Haible  <bruno@clisp.org>
1873
1874         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1875         among default module list.
1876
1877 2010-03-07  Bruno Haible  <bruno@clisp.org>
1878
1879         Fix link error on platforms with GNU libiconv.
1880         * modules/unistr/u8-strcoll-tests (Makefile): Define
1881         test_u8_strcoll_LDADD.
1882         * modules/unistr/u16-strcoll-tests (Makefile): Define
1883         test_u16_strcoll_LDADD.
1884         * modules/unistr/u32-strcoll-tests (Makefile): Define
1885         test_u32_strcoll_LDADD.
1886
1887 2010-03-07  Bruno Haible  <bruno@clisp.org>
1888
1889         Use POSIX declarations for socket functions.
1890         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1891         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1892         rpl_sendto): Change declaration to match POSIX.
1893         * lib/connect.c (rpl_connect): Likewise.
1894         * lib/accept.c (rpl_accept): Likewise.
1895         * lib/bind.c (rpl_bind): Likewise.
1896         * lib/getpeername.c (rpl_getpeername): Likewise.
1897         * lib/getsockname.c (rpl_getsockname): Likewise.
1898         * lib/recv.c (rpl_recv): Likewise.
1899         * lib/send.c (rpl_send): Likewise.
1900         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1901         * lib/sendto.c (rpl_sendto): Likewise.
1902
1903 2010-03-06  Bruno Haible  <bruno@clisp.org>
1904
1905         Clarify access, euidaccess, faccessat.
1906         * doc/posix-functions/faccessat.texi: Mention security problem under
1907         "Other problems", not "Portability problems".
1908         * doc/posix-functions/access.texi: Likewise. Mention a related security
1909         problem.
1910         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1911         * lib/euidaccess.c: Add comments about platforms.
1912         * lib/unistd.in.h (access, euidaccess): Add warnings.
1913
1914 2010-03-07  Bruno Haible  <bruno@clisp.org>
1915
1916         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1917         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1918         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1919         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1920         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1921         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1922         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1923         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1924         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1926         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1927         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1928         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1929         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1930         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1931         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1932         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1933         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1934         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1935         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1936         Likewise.
1937         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1938         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1939         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1940         Likewise.
1941         * tests/test-spawn.c (main): Make it work when
1942         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1943
1944 2010-03-07  Bruno Haible  <bruno@clisp.org>
1945
1946         Fix incorrect Makefile.am generation in German locale.
1947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1948         Execute sed command with character range in C locale.
1949
1950 2010-03-06  Bruno Haible  <bruno@clisp.org>
1951
1952         Tests for module 'iconv-h'.
1953         * modules/iconv-h-tests: New file.
1954         * tests/test-iconv-h.c: New file.
1955
1956         New module 'iconv-h'.
1957         * modules/iconv-h: New file.
1958         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1959         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1960         (configure.ac): Remove gl_ICONV_H.
1961         (Makefile.am): Remove rule for iconv.h.
1962
1963 2010-03-06  Bruno Haible  <bruno@clisp.org>
1964
1965         More consistent naming of *.m4 files.
1966         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1967         * modules/wctype (Files): Update.
1968
1969         More consistent naming of *.m4 files.
1970         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1971         * modules/wchar (Files): Update.
1972
1973 2010-03-06  Jim Meyering  <meyering@redhat.com>
1974
1975         euidaccess: relax license to LGPLv2+
1976         * modules/euidaccess (License): Relax to LGPLv2+.
1977
1978 2010-03-06  Bruno Haible  <bruno@clisp.org>
1979
1980         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1981         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1982         (Makefile.am): Augment lib_SOURCES instead.
1983
1984 2010-03-04  Jim Meyering  <meyering@redhat.com>
1985
1986         utime: remove obsolete module
1987         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1988         unnecessary for years, and has been marked as obsolete for 10 months.
1989         * modules/utime: Remove file.
1990         * lib/utime.c: Remove file.
1991         * m4/utime.m4: Remove file.
1992         * m4/utimes-null.m4: Remove file.
1993         * doc/posix-functions/utime.texi (utime): Remove reference to
1994         the module.  Move the sole "fixed by gnulib" item into the
1995         "problems not fixed by Gnulib" list.
1996         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1997
1998 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1999
2000         * modules/exit (License): Relax license to LGPLv2+.
2001         (Status): Mark as obsolete.
2002         * NEWS: Mention deprecated 'exit' module.
2003         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2004         of now obsolete 'exit'.
2005
2006 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2007
2008         fts-lgpl: remove unused module
2009         * modules/fts-lgpl: Remove.
2010         * MODULES.html.sh (func_all_modules): Adjust.
2011         * check-module (find_included_lib_files): Adjust.
2012         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2013
2014 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2015
2016         copy-acl: enhance Solaris ACL error handling
2017         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2018         * lib/set-mode-acl.c (qset_acl): Likewise.
2019
2020 2010-03-02  Bruno Haible  <bruno@clisp.org>
2021
2022         spawn: Don't override the system defined values on FreeBSD 8.
2023         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2024         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2025         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2026         if HAVE_POSIX_SPAWN is 1.
2027         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2028
2029 2010-03-01  Bruno Haible  <bruno@clisp.org>
2030
2031         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2032         regarding Automake.
2033
2034 2010-02-25  Bruno Haible  <bruno@clisp.org>
2035
2036         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2037         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2038         setting, not afterwards.
2039         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2040
2041 2010-02-24  Eric Blake  <eblake@redhat.com>
2042
2043         bootstrap, git-version-gen: use timestamp
2044         * build-aux/git-version-gen (scriptversion): Force UTC.
2045         * build-aux/bootstrap (scriptversion): New variable.
2046
2047         bootstrap: allow older git
2048         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2049         older than 1.6.4.  Requested by the libvirt project.
2050
2051 2010-02-23  Eric Blake  <eblake@redhat.com>
2052
2053         warn-on-use: work with old autoconf
2054         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2055         AS_VAR semantics of autoconf 2.60.
2056         Reported by Bruno Haible.
2057
2058         bootstrap: improve some comments
2059         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2060         clarification comments.
2061
2062         gettimeofday: provide correct function
2063         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2064         when replacement is declared, otherwise provide gettimeofday.
2065         Reported by Michael Goffioul.
2066
2067 2010-02-23  Jim Meyering  <meyering@redhat.com>
2068
2069         lib-ignore: relax license to "unlimited", not LGPLv2+
2070         * modules/lib-ignore (License): Relax to "unlimited".
2071
2072 2010-02-23  Jim Meyering  <meyering@redhat.com>
2073
2074         lib-ignore: relax license to LGPLv2+
2075         * modules/lib-ignore (License): Relax to LGPLv2+.
2076
2077 2010-02-22  Eric Blake  <eblake@redhat.com>
2078
2079         lseek: avoid bash 3.2 broken pipe bug
2080         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2081         warning from bash 3.2.
2082         Reported by Ben Pfaff, with analysis from Bruno Haible.
2083
2084         bootstrap: support non-FSF copyright holder
2085         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2086         bootstrap.conf override of COPYRIGHT_HOLDER.
2087         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2088
2089         bootstrap: interoperate with gettext 0.14.1
2090         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2091
2092         bootstrap: allow for alternate submodule location
2093         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2094         hardcoding submodule location.
2095         (gnulib_mk): Allow direct use of Makefile.am.
2096
2097         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2098         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2099         rather than reconfiguring where the submodule points.
2100
2101         gettimeofday: restore support for platforms that lack function
2102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2103         replacement if function is missing.
2104         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2105         * modules/sys_time (Makefile.am): Substitute it.
2106         * lib/sys_time.in.h (gettimeofday): Check it.
2107         Reported by Michael Goffioul.
2108
2109 2010-02-21  Bruno Haible  <bruno@clisp.org>
2110
2111         * lib/stdio.in.h (obstack_printf): Fix typo.
2112
2113 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2114
2115         vc-list-files: use bzr ls's -R option
2116         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2117         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2118
2119 2010-02-21  Jim Meyering  <meyering@redhat.com>
2120
2121         init.sh: fix EXEEXT shims to work also for names like test-prog
2122         * tests/init.sh: Re-exec a better shell, when needed.
2123         If the current shell lacks support for posix $(...), an init.sh-using
2124         test will now try to find a shell that supports that.  If EXEEXT is
2125         nonempty, we also require support for hyphen-in-alias-name and shell
2126         substitutions like ${var#glob}.  Failure to find such a shell results
2127         in a skipped test.
2128
2129 2010-02-21  Bruno Haible  <bruno@clisp.org>
2130
2131         Really work around around "broken pipe" error message from bash 3.2.
2132         * gnulib-tool (func_reset_sigpipe): Remove function.
2133         (echo): In bash 3.2, define to a function that uses printf.
2134         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2135
2136 2010-02-20  Bruno Haible  <bruno@clisp.org>
2137
2138         Restore support for automake 1.9.6 with autoconf 2.61.
2139         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2140         Reported by James Youngman <jay@gnu.org>.
2141
2142 2010-02-20  Bruno Haible  <bruno@clisp.org>
2143
2144         Improve *printf warning condition.
2145         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2146         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2147         and the function is overridden due to SIGPIPE emulation.
2148
2149 2010-02-20  Bruno Haible  <bruno@clisp.org>
2150
2151         * lib/stdio.in.h: Tweak comments.
2152
2153 2010-02-19  Bruno Haible  <bruno@clisp.org>
2154
2155         Make it easier to find modules. New gnulib-tool option '--find'.
2156         * gnulib-tool: New option --find.
2157         (func_usage): Document it.
2158         (func_sanitize_modulelist): New function, extracted from
2159         func_all_modules.
2160         (func_all_modules): Invoke it.
2161         * doc/gnulib-tool.texi (Which modules?): New node.
2162
2163 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2164
2165         * lib/sys_select.in.h: Provide select replacement even if
2166         sys/select.h exists on a system, for Interix.
2167
2168 2010-02-18  Jim Meyering  <meyering@redhat.com>
2169
2170         init.sh: don't use $(...) just yet
2171         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2172         to accommodate e.g., Solaris' /bin/sh.
2173
2174 2010-02-17  Bruno Haible  <bruno@clisp.org>
2175
2176         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2177         Reported by Ludovic Courtès <ludo@gnu.org>.
2178
2179 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2180
2181         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2182         linking with -lintl.
2183
2184 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2185
2186         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2187         if not provided by the system's netdb.h.  Reported by
2188         ludo@gnu.org (Ludovic Courtès).
2189
2190 2010-02-15  Jim Meyering  <meyering@redhat.com>
2191
2192         init.sh: improve portability and efficiency
2193         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2194         "dummy" in a for loop.
2195         Use '!', not '^' to select the complement of a character set used
2196         in a "case" statement.
2197         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2198         Suggestions from Eric Blake.
2199
2200         init.sh: automatically accommodate programs with the .exe suffix
2201         Automatically arrange for an invocation of "prog" to execute the
2202         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2203         may use the simpler "prog", yet still work when built on a system
2204         that requires specifying the added suffix.
2205         Do this by constructing a function named "prog" that invokes
2206         "prog.exe" for each .exe file in selected directories.
2207         * tests/init.sh (find_exe_basenames_): New function.
2208         (create_exe_shim_functions_): New function.
2209         (path_prepend_): Use it.
2210
2211         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2212         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2213         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2214
2215 2010-02-14  Jim Meyering  <meyering@redhat.com>
2216
2217         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2218         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2219         (sc_prohibit_hash_pjw_without_use): New rule.
2220
2221         maint.mk: allow the default upload destination dir to be overridden
2222         * top/maint.mk (upload_dest_dir_): Define with a default that
2223         preserves the status quo.
2224         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2225         Reported by Peter Simons.
2226
2227         maint.mk: prohibit inclusion of "hash.h" without_use
2228         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2229
2230 2010-02-10  Jim Meyering  <meyering@redhat.com>
2231
2232         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2233         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2234
2235 2010-02-09  Eric Blake  <ebb9@byu.net>
2236         and Bruno Haible  <bruno@clisp.org>
2237
2238         obstack-printf-posix: ensure declaration
2239         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2240         extracted from gl_FUNC_OBSTACK_PRINTF.
2241         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2242         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2243         Likewise.
2244         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2245         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2246         0.
2247
2248 2010-02-08  Bruno Haible  <bruno@clisp.org>
2249
2250         gnulib-tool: Fix typo in 2010-02-07 commit.
2251         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2252         Reported by Eric Blake.
2253
2254 2010-02-07  Bruno Haible  <bruno@clisp.org>
2255
2256         gnulib-tool: Fix up caching patches.
2257         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2258         option --no-cache. Use associative arrays when supported by the shell.
2259         (sed_comments): New variable.
2260         (modcache): Renamed from do_cache.
2261         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2262         abbreviate unnecessarily.
2263         (have_associative): New variable.
2264         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2265         way also for ksh and zsh.
2266         (func_init_sed_convert_to_cache_statements): New function, extracted
2267         from func_cache_lookup_module. Add support for associative arrays.
2268         Don't set the c_MODULE_cached variable here. Ignore all lines before
2269         the first field header. Remove only the final newline, not all trailing
2270         newlines. Support empty fields correctly. Limit the use of 'eval' to
2271         assignments.
2272         (func_get_description, func_get_status, func_get_notice,
2273         func_get_applicability, func_get_filelist, func_get_dependencies,
2274         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2275         func_get_automake_snippet, func_get_include_directive,
2276         func_get_link_directive, func_get_license, func_get_maintainer):
2277         Update documentation. List the unoptimized code first. Add support for
2278         associative arrays. Limit the use of 'eval' to assignments.
2279         (func_get_applicability): Undo stylistic pessimisations.
2280         (func_get_automake_snippet, func_get_include_directive): Reduce code
2281         duplication.
2282         (func_modules_transitive_closure, func_modules_add_dummy,
2283         func_modules_notice, func_modules_to_filelist, func_add_file,
2284         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2285         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2286         func_create_testdir, func_create_megatestdir): Update documentation.
2287
2288 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2289
2290         * gnulib-tool (func_cache_lookup_module): Store the module name
2291         belonging to the cache variable; error out if two different
2292         module names map to the same cache variable name.
2293
2294 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2295
2296         gnulib-tool: Make caching optional.
2297         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2298         Update matching short versions of --no-changelog.
2299         (func_usage): Update.
2300         (sed_extract_cache_prog): Renamed from ...
2301         (sed_extract_prog): ... this; revert to old extraction script.
2302         (func_get_description, func_get_status)
2303         (func_get_notice, func_get_applicability, func_get_filelist)
2304         (func_get_dependencies, func_get_autoconf_early_snippet)
2305         (func_get_autoconf_snippet, func_get_automake_snippet)
2306         (func_get_include_directive, func_get_link_directive)
2307         (func_get_license, func_get_maintainer): If $do_cache is false,
2308         use old, non-caching extraction scripts.
2309         Suggestion by Bruno Haible.
2310
2311 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2312
2313         gnulib-tool: cache module metainformation.
2314         * gnulib-tool (sed_extract_prog): Match newline before each
2315         header, and rewrite header to a shell variable suffix.
2316         (func_cache_var, func_cache_lookup_module): New functions,
2317         to turn a module name into a cache variable prefix, and to
2318         look up and cache module metainformation.
2319         (func_get_description, func_get_status)
2320         (func_get_notice, func_get_applicability, func_get_filelist)
2321         (func_get_dependencies, func_get_autoconf_early_snippet)
2322         (func_get_autoconf_snippet, func_get_automake_snippet)
2323         (func_get_include_directive, func_get_link_directive)
2324         (func_get_license, func_get_maintainer): Use
2325         func_cache_lookup_module.
2326
2327 2010-02-07  Bruno Haible  <bruno@clisp.org>
2328
2329         fnctl: Fix missing dependency.
2330         * modules/fcntl (Depends-on): Add getdtablesize.
2331         Reported by John W. Eaton <jwe@gnu.org>.
2332
2333 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2334
2335         Argp: fix recognition of short alias options.
2336
2337         * lib/argp-parse.c (convert_options): Fix improper use of
2338         `|' between character values.
2339         * tests/test-argp.c (group1_option): New alias option
2340         --read (-r).
2341         (group1_parser): Special handling for 'r'.
2342         (test15): New test case.
2343         (test_fun): Add test15.
2344         * tests/test-argp-2.sh: Update expected --help and --usage
2345         outputs.
2346
2347 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2348
2349         * tests/test-argp.c: Fix indentation.
2350
2351 2010-02-04  Eric Blake  <ebb9@byu.net>
2352
2353         gettimeofday: expose type of second argument
2354         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2355         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2356         * tests/test-gettimeofday.c: Use it to silence warning.
2357         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2358         the issue.
2359
2360 2010-02-03  Jim Meyering  <meyering@redhat.com>
2361
2362         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2363         * lib/regcomp.c (TYPE_SIGNED): Define.
2364         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2365
2366         regcomp.c: avoid a new -Wshadow warning
2367         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2368
2369 2010-02-01  Jim Meyering  <meyering@redhat.com>
2370
2371         removing useless parentheses in cpp #define directives
2372         For motivation, see commit c0221df4, "define STREQ(a,b)
2373         consistently, removing useless parentheses"
2374         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2375         * lib/mountlist.c (MNT_IGNORE): Likewise.
2376         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2377
2378 2010-02-01  Eric Blake  <ebb9@byu.net>
2379
2380         sys_time: use link-warning
2381         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2382         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2383         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2384         * modules/sys_time (Depends-on): Add warn-on-use.
2385         (Makefile.am): Always build replacement.
2386         (configure.ac): Update substitutions.
2387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2388         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2389         bother with SYS_TIME_H.
2390         * modules/gettimeofday (configure.ac): Declare indicator.
2391         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2392         in use.
2393
2394         closein-tests: silence compiler warning
2395         * tests/test-closein.c (main): Ignore fread result.
2396         * modules/closein-tests (Depends-on): Add ignore-value.
2397
2398         tests: silence warning about system return
2399         * tests/test-areadlink-with-size.c (main): Ignore system result.
2400         * tests/test-areadlink.c (main): Likewise.
2401         * tests/test-areadlinkat-with-size.c (main): Likewise.
2402         * tests/test-areadlinkat.c (main): Likewise.
2403         * tests/test-canonicalize-lgpl.c (main): Likewise.
2404         * tests/test-canonicalize.c (main): Likewise.
2405         * tests/test-chown.c (main): Likewise.
2406         * tests/test-fchownat.c (main): Likewise.
2407         * tests/test-fdutimensat.c (main): Likewise.
2408         * tests/test-fstatat.c (main): Likewise.
2409         * tests/test-futimens.c (main): Likewise.
2410         * tests/test-lchown.c (main): Likewise.
2411         * tests/test-link.c (main): Likewise.
2412         * tests/test-linkat.c (main): Likewise.
2413         * tests/test-lstat.c (main): Likewise.
2414         * tests/test-mkdir.c (main): Likewise.
2415         * tests/test-mkdirat.c (main): Likewise.
2416         * tests/test-mkfifo.c (main): Likewise.
2417         * tests/test-mkfifoat.c (main): Likewise.
2418         * tests/test-mknod.c (main): Likewise.
2419         * tests/test-readlink.c (main): Likewise.
2420         * tests/test-remove.c (main): Likewise.
2421         * tests/test-rename.c (main): Likewise.
2422         * tests/test-renameat.c (main): Likewise.
2423         * tests/test-rmdir.c (main): Likewise.
2424         * tests/test-symlink.c (main): Likewise.
2425         * tests/test-symlinkat.c (main): Likewise.
2426         * tests/test-unlink.c (main): Likewise.
2427         * tests/test-unlinkat.c (main): Likewise.
2428         * tests/test-utimens.c (main): Likewise.
2429         * tests/test-utimensat.c (main): Likewise.
2430         * modules/areadlink-tests (Depends-on): Add ignore-value.
2431         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2432         * modules/areadlinkat-tests (Depends-on): Likewise.
2433         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2434         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2435         * modules/canonicalize-tests (Depends-on): Likewise.
2436         * modules/chown-tests (Depends-on): Likewise.
2437         * modules/fdutimensat-tests (Depends-on): Likewise.
2438         * modules/futimens-tests (Depends-on): Likewise.
2439         * modules/lchown-tests (Depends-on): Likewise.
2440         * modules/link-tests (Depends-on): Likewise.
2441         * modules/linkat-tests (Depends-on): Likewise.
2442         * modules/lstat-tests (Depends-on): Likewise.
2443         * modules/mkdir-tests (Depends-on): Likewise.
2444         * modules/mkfifo-tests (Depends-on): Likewise.
2445         * modules/mkfifoat-tests (Depends-on): Likewise.
2446         * modules/mknod-tests (Depends-on): Likewise.
2447         * modules/openat-tests (Depends-on): Likewise.
2448         * modules/readlink-tests (Depends-on): Likewise.
2449         * modules/remove-tests (Depends-on): Likewise.
2450         * modules/rename-tests (Depends-on): Likewise.
2451         * modules/renameat-tests (Depends-on): Likewise.
2452         * modules/rmdir-tests (Depends-on): Likewise.
2453         * modules/symlink-tests (Depends-on): Likewise.
2454         * modules/symlinkat-tests (Depends-on): Likewise.
2455         * modules/unlink-tests (Depends-on): Likewise.
2456         * modules/utimens-tests (Depends-on): Likewise.
2457         * modules/utimensat-tests (Depends-on): Likewise.
2458
2459 2010-01-31  Bruno Haible  <bruno@clisp.org>
2460
2461         Perform the same test for many <math.h> functions.
2462         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2463         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2464         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2465         of gl_MATHFUNC.
2466         * modules/acos (configure.ac): Likewise.
2467         * modules/asin (configure.ac): Likewise.
2468         * modules/atan (configure.ac): Likewise.
2469         * modules/atan2 (configure.ac): Likewise.
2470         * modules/cbrt (configure.ac): Likewise.
2471         * modules/copysign (configure.ac): Likewise.
2472         * modules/cos (configure.ac): Likewise.
2473         * modules/cosh (configure.ac): Likewise.
2474         * modules/erf (configure.ac): Likewise.
2475         * modules/erfc (configure.ac): Likewise.
2476         * modules/exp (configure.ac): Likewise.
2477         * modules/fmod (configure.ac): Likewise.
2478         * modules/hypot (configure.ac): Likewise.
2479         * modules/j0 (configure.ac): Likewise.
2480         * modules/j1 (configure.ac): Likewise.
2481         * modules/jn (configure.ac): Likewise.
2482         * modules/lgamma (configure.ac): Likewise.
2483         * modules/log (configure.ac): Likewise.
2484         * modules/log10 (configure.ac): Likewise.
2485         * modules/log1p (configure.ac): Likewise.
2486         * modules/pow (configure.ac): Likewise.
2487         * modules/remainder (configure.ac): Likewise.
2488         * modules/sin (configure.ac): Likewise.
2489         * modules/sinh (configure.ac): Likewise.
2490         * modules/tan (configure.ac): Likewise.
2491         * modules/tanh (configure.ac): Likewise.
2492         * modules/y0 (configure.ac): Likewise.
2493         * modules/y1 (configure.ac): Likewise.
2494         * modules/yn (configure.ac): Likewise.
2495         Suggested by Paolo Bonzini.
2496
2497 2010-01-31  Bruno Haible  <bruno@clisp.org>
2498
2499         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2500
2501 2010-01-31  Bruno Haible  <bruno@clisp.org>
2502
2503         Work around getdelim() bug on FreeBSD 8.0.
2504         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2505         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2506         not work.
2507         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2508         is 1.
2509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2510         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2511         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2512         a non-zero size.
2513         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2514
2515 2010-01-31  Bruno Haible  <bruno@clisp.org>
2516
2517         Work around getline() bug on FreeBSD 8.0.
2518         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2519         and a non-zero size.
2520         * tests/test-getline.c (main): Likewise.
2521         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2522         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2523
2524 2010-01-28  Eric Blake  <ebb9@byu.net>
2525
2526         regex: fix build failure
2527         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2528         platforms.
2529
2530 2010-01-28  Jim Meyering  <meyering@redhat.com>
2531
2532         regex: do not ignore memory allocation failure
2533         * lib/regex_internal.c (create_cd_newstate): Detect
2534         re_node_set_init_copy failure.   Extracted from glibc commit
2535         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2536
2537         regex: sync more white-space changes from libc
2538         * lib/regex_internal.c: White-space only changes.
2539         * lib/regexec.c: Likewise.
2540
2541         regex: add many uses of __attribute_warn_unused_result__
2542         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2543         * lib/regexec.c: Likewise.
2544         Extracted from a messy glibc commit.
2545
2546         regcomp.c: spelling and merge-artifact from glibc
2547         * lib/regcomp.c: Merge remainder of glibc's
2548         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2549
2550         regcomp.c: sync white-space changes from glibc
2551         * lib/regcomp.c: Merge to accommodate white space
2552         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2553
2554         regcomp.c: do not ignore internal return values
2555         * lib/regcomp.c: Do not ignore internal return values.
2556         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2557         but without its white-space changes and spelling fixes.
2558
2559         regex_internal.h: define __attribute_warn_unused_result__
2560         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2561
2562         maint: add a syntax-check rule to check for vulnerable Makefile.in
2563         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2564
2565 2010-01-27  Jim Meyering  <meyering@redhat.com>
2566
2567         ncftpput-ftp: clean up spaces
2568         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2569         Remove trailing blanks.
2570
2571 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2572
2573         * build-aux/git-version-gen: Fix copyright statement.
2574         * build-aux/gnupload: Likewise.
2575         * tests/test-arcfour.c: Likewise.
2576         * tests/test-arctwo.c: Likewise.
2577         * tests/test-count-one-bits.c: Likewise.
2578         * tests/test-crc.c: Likewise.
2579         * tests/test-des.c: Likewise.
2580         * tests/test-gc-arcfour.c: Likewise.
2581         * tests/test-gc-arctwo.c: Likewise.
2582         * tests/test-gc-des.c: Likewise.
2583         * tests/test-gc-hmac-md5.c: Likewise.
2584         * tests/test-gc-hmac-sha1.c: Likewise.
2585         * tests/test-gc-md2.c: Likewise.
2586         * tests/test-gc-md4.c: Likewise.
2587         * tests/test-gc-md5.c: Likewise.
2588         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2589         * tests/test-gc-rijndael.c: Likewise.
2590         * tests/test-gc-sha1.c: Likewise.
2591         * tests/test-gc.c: Likewise.
2592         * tests/test-gethostname.c: Likewise.
2593         * tests/test-gettimeofday.c: Likewise.
2594         * tests/test-hash.c: Likewise.
2595         * tests/test-hmac-md5.c: Likewise.
2596         * tests/test-hmac-sha1.c: Likewise.
2597         * tests/test-md2.c: Likewise.
2598         * tests/test-md4.c: Likewise.
2599         * tests/test-md5.c: Likewise.
2600         * tests/test-memchr.c: Likewise.
2601         * tests/test-memchr2.c: Likewise.
2602         * tests/test-memcmp.c: Likewise.
2603         * tests/test-memmem.c: Likewise.
2604         * tests/test-memrchr.c: Likewise.
2605         * tests/test-rawmemchr.c: Likewise.
2606         * tests/test-read-file.c: Likewise.
2607         * tests/test-rijndael.c: Likewise.
2608         * tests/test-sockets.c: Likewise.
2609         * tests/test-strchrnul.c: Likewise.
2610         * tests/test-strstr.c: Likewise.
2611         * tests/test-strtod.c: Likewise.
2612         * build-aux/ncftpput-ftp: Likewise.
2613
2614 2010-01-26  Eric Blake  <ebb9@byu.net>
2615
2616         ignore-value: update recommended header name
2617         * modules/ignore-value (Include): Only use <> for headers that
2618         exist in glibc.
2619
2620 2010-01-26  Jim Meyering  <meyering@redhat.com>
2621
2622         test-userspec.c: avoid compiler warnings
2623         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2624         and "initialization discards qualifiers..." warnings.
2625         Put the first "uid" in its own scope, and make char* members "const".
2626
2627 2010-01-25  Bruno Haible  <bruno@clisp.org>
2628
2629         gnulib-tool: Make warning diagnostics consistent.
2630         * gnulib-tool (func_warning): New function.
2631         Use it everywhere where gnulib-tool produces output to stderr and it is
2632         not a fatal error.
2633
2634 2010-01-25  Bruno Haible  <bruno@clisp.org>
2635
2636         Fix test dependencies.
2637         * modules/xstrtol-tests (Depends-on): Add inttypes.
2638         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2639
2640 2010-01-25 Pádraig Brady <P@draigBrady.com>
2641
2642         syntax-check: detect incorrect boolean macro values in config.h
2643         * modules/maintainer-makefile (configure.ac): Parameterize the location
2644         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2645         The logic is from Eric Blake and the location indicated by Jim Meyering.
2646         Note the more natural CONFIG_HEADER name is prohibited by automake
2647         for backwards compatibility reasons.
2648         * top/maint.mk (sc_Wundef_boolean): New rule.
2649
2650 2010-01-25  Jim Meyering  <meyering@redhat.com>
2651
2652         bootstrap: detect MacOS 10.6's shasum, too
2653         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2654         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2655
2656 2010-01-23  Jim Meyering  <meyering@redhat.com>
2657
2658         xstrtoll: new module
2659         * modules/xstrtoll: New file.
2660         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2661         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2662         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2663         ./configure fails if you use this module and lack "long long".
2664         * modules/xstrtoll-tests: New module.
2665         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2666         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2667         new init.sh-based test framework.
2668
2669 2010-01-24  Bruno Haible  <bruno@clisp.org>
2670
2671         Tests for module 'yn'.
2672         * modules/yn-tests: New file.
2673         * tests/test-yn.c: New file.
2674
2675         Tests for module 'y1'.
2676         * modules/y1-tests: New file.
2677         * tests/test-y1.c: New file.
2678
2679         Tests for module 'y0'.
2680         * modules/y0-tests: New file.
2681         * tests/test-y0.c: New file.
2682
2683         Tests for module 'tanh'.
2684         * modules/tanh-tests: New file.
2685         * tests/test-tanh.c: New file.
2686
2687         Tests for module 'tan'.
2688         * modules/tan-tests: New file.
2689         * tests/test-tan.c: New file.
2690
2691         Tests for module 'sqrt'.
2692         * modules/sqrt-tests: New file.
2693         * tests/test-sqrt.c: New file.
2694
2695         Tests for module 'sinh'.
2696         * modules/sinh-tests: New file.
2697         * tests/test-sinh.c: New file.
2698
2699         Tests for module 'sin'.
2700         * modules/sin-tests: New file.
2701         * tests/test-sin.c: New file.
2702
2703         Tests for module 'rint'.
2704         * modules/rint-tests: New file.
2705         * tests/test-rint.c: New file.
2706
2707         Tests for module 'remainder'.
2708         * modules/remainder-tests: New file.
2709         * tests/test-remainder.c: New file.
2710
2711         Tests for module 'pow'.
2712         * modules/pow-tests: New file.
2713         * tests/test-pow.c: New file.
2714
2715         Tests for module 'nextafter'.
2716         * modules/nextafter-tests: New file.
2717         * tests/test-nextafter.c: New file.
2718
2719         Tests for module 'modf'.
2720         * modules/modf-tests: New file.
2721         * tests/test-modf.c: New file.
2722
2723         Tests for module 'logb'.
2724         * modules/logb-tests: New file.
2725         * tests/test-logb.c: New file.
2726
2727         Tests for module 'log1p'.
2728         * modules/log1p-tests: New file.
2729         * tests/test-log1p.c: New file.
2730
2731         Tests for module 'log10'.
2732         * modules/log10-tests: New file.
2733         * tests/test-log10.c: New file.
2734
2735         Tests for module 'log'.
2736         * modules/log-tests: New file.
2737         * tests/test-log.c: New file.
2738
2739         Tests for module 'lgamma'.
2740         * modules/lgamma-tests: New file.
2741         * tests/test-lgamma.c: New file.
2742
2743         Tests for module 'ldexp'.
2744         * modules/ldexp-tests: New file.
2745         * tests/test-ldexp.c: New file.
2746
2747         Tests for module 'jn'.
2748         * modules/jn-tests: New file.
2749         * tests/test-jn.c: New file.
2750
2751         Tests for module 'j1'.
2752         * modules/j1-tests: New file.
2753         * tests/test-j1.c: New file.
2754
2755         Tests for module 'j0'.
2756         * modules/j0-tests: New file.
2757         * tests/test-j0.c: New file.
2758
2759         Tests for module 'hypot'.
2760         * modules/hypot-tests: New file.
2761         * tests/test-hypot.c: New file.
2762
2763         Tests for module 'fmod'.
2764         * modules/fmod-tests: New file.
2765         * tests/test-fmod.c: New file.
2766
2767         Tests for module 'fabs'.
2768         * modules/fabs-tests: New file.
2769         * tests/test-fabs.c: New file.
2770
2771         Tests for module 'exp'.
2772         * modules/exp-tests: New file.
2773         * tests/test-exp.c: New file.
2774
2775         Tests for module 'erfc'.
2776         * modules/erfc-tests: New file.
2777         * tests/test-erfc.c: New file.
2778
2779         Tests for module 'erf'.
2780         * modules/erf-tests: New file.
2781         * tests/test-erf.c: New file.
2782
2783         Tests for module 'cosh'.
2784         * modules/cosh-tests: New file.
2785         * tests/test-cosh.c: New file.
2786
2787         Tests for module 'cos'.
2788         * modules/cos-tests: New file.
2789         * tests/test-cos.c: New file.
2790
2791         Tests for module 'copysign'.
2792         * modules/copysign-tests: New file.
2793         * tests/test-copysign.c: New file.
2794
2795         Tests for module 'cbrt'.
2796         * modules/cbrt-tests: New file.
2797         * tests/test-cbrt.c: New file.
2798
2799         Tests for module 'atan2'.
2800         * modules/atan2-tests: New file.
2801         * tests/test-atan2.c: New file.
2802
2803         Tests for module 'atan'.
2804         * modules/atan-tests: New file.
2805         * tests/test-atan.c: New file.
2806
2807         Tests for module 'asin'.
2808         * modules/asin-tests: New file.
2809         * tests/test-asin.c: New file.
2810
2811         Tests for module 'acos'.
2812         * modules/acos-tests: New file.
2813         * tests/test-acos.c: New file.
2814
2815 2010-01-24  Bruno Haible  <bruno@clisp.org>
2816
2817         Fix tests for common <math.h> functions.
2818         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2819         code snippet that references the function pointer, rather than merely
2820         calling the function. Substitute the FUNC_LIBM variable.
2821         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2822         * modules/acos (configure.ac): Likewise.
2823         * modules/asin (configure.ac): Likewise.
2824         * modules/atan (configure.ac): Likewise.
2825         * modules/atan2 (configure.ac): Likewise.
2826         * modules/cbrt (configure.ac): Likewise.
2827         * modules/copysign (configure.ac): Likewise.
2828         * modules/cos (configure.ac): Likewise.
2829         * modules/cosh (configure.ac): Likewise.
2830         * modules/erf (configure.ac): Likewise.
2831         * modules/erfc (configure.ac): Likewise.
2832         * modules/exp (configure.ac): Likewise.
2833         * modules/fabs (configure.ac): Likewise.
2834         * modules/fmod (configure.ac): Likewise.
2835         * modules/hypot (configure.ac): Likewise.
2836         * modules/j0 (configure.ac): Likewise.
2837         * modules/j1 (configure.ac): Likewise.
2838         * modules/jn (configure.ac): Likewise.
2839         * modules/ldexp (configure.ac): Likewise.
2840         * modules/lgamma (configure.ac): Likewise.
2841         * modules/log (configure.ac): Likewise.
2842         * modules/log10 (configure.ac): Likewise.
2843         * modules/log1p (configure.ac): Likewise.
2844         * modules/logb (configure.ac): Likewise.
2845         * modules/modf (configure.ac): Likewise.
2846         * modules/nextafter (configure.ac): Likewise.
2847         * modules/pow (configure.ac): Likewise.
2848         * modules/remainder (configure.ac): Likewise.
2849         * modules/rint (configure.ac): Likewise.
2850         * modules/sin (configure.ac): Likewise.
2851         * modules/sinh (configure.ac): Likewise.
2852         * modules/tan (configure.ac): Likewise.
2853         * modules/tanh (configure.ac): Likewise.
2854         * modules/y0 (configure.ac): Likewise.
2855         * modules/y1 (configure.ac): Likewise.
2856         * modules/yn (configure.ac): Likewise.
2857
2858 2010-01-24  Bruno Haible  <bruno@clisp.org>
2859
2860         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2861         * tests/test-acosl.c (x): New variable.
2862         (main): Store argument in x and fetch it from x.
2863         * tests/test-asinl.c (x): New variable.
2864         (main): Store argument in x and fetch it from x.
2865         * tests/test-atanl.c (x): New variable.
2866         (main): Store argument in x and fetch it from x.
2867         * tests/test-cosl.c (x): New variable.
2868         (main): Store argument in x and fetch it from x.
2869         * tests/test-expl.c (x): New variable.
2870         (main): Store argument in x and fetch it from x.
2871         * tests/test-logl.c (x): New variable.
2872         (main): Store argument in x and fetch it from x.
2873         * tests/test-sinl.c (x): New variable.
2874         (main): Store argument in x and fetch it from x.
2875         * tests/test-sqrtl.c (x): New variable.
2876         (main): Store argument in x and fetch it from x.
2877         * tests/test-tanl.c (x): New variable.
2878         (main): Store argument in x and fetch it from x.
2879
2880 2010-01-24  Bruno Haible  <bruno@clisp.org>
2881
2882         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2883         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2884         assignments to the initial TESTS_ENVIRONMENT.
2885         * doc/gnulib.texi (Unit test modules): Document it.
2886         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2887         TESTS_ENVIRONMENT.
2888         * modules/btowc-tests (Makefile.am): Likewise.
2889         * modules/c-stack-tests (Makefile.am): Likewise.
2890         * modules/c-strcase-tests (Makefile.am): Likewise.
2891         * modules/copy-file-tests (Makefile.am): Likewise.
2892         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2893         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2894         * modules/mbrtowc-tests (Makefile.am): Likewise.
2895         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2896         * modules/mbscasestr-tests (Makefile.am): Likewise.
2897         * modules/mbschr-tests (Makefile.am): Likewise.
2898         * modules/mbscspn-tests (Makefile.am): Likewise.
2899         * modules/mbsinit-tests (Makefile.am): Likewise.
2900         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2901         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2902         * modules/mbspbrk-tests (Makefile.am): Likewise.
2903         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2904         * modules/mbsrchr-tests (Makefile.am): Likewise.
2905         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2906         * modules/mbsspn-tests (Makefile.am): Likewise.
2907         * modules/mbsstr-tests (Makefile.am): Likewise.
2908         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2909         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2910         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2911         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2912         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2913         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2914         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2915         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2916         * modules/wcrtomb-tests (Makefile.am): Likewise.
2917         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2918         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2919         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2920         assignments from TESTS_ENVIRONMENT.
2921         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2922         augmentation.
2923         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2924         * modules/atexit-tests (Makefile.am): Likewise.
2925         * modules/binary-io-tests (Makefile.am): Likewise.
2926         * modules/closein-tests (Makefile.am): Likewise.
2927         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2928         * modules/exclude-tests (Makefile.am): Likewise.
2929         * modules/fflush-tests (Makefile.am): Likewise.
2930         * modules/fpending-tests (Makefile.am): Likewise.
2931         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2932         * modules/freadahead-tests (Makefile.am): Likewise.
2933         * modules/freadptr-tests (Makefile.am): Likewise.
2934         * modules/freadseek-tests (Makefile.am): Likewise.
2935         * modules/fseek-tests (Makefile.am): Likewise.
2936         * modules/fseeko-tests (Makefile.am): Likewise.
2937         * modules/ftell-tests (Makefile.am): Likewise.
2938         * modules/ftello-tests (Makefile.am): Likewise.
2939         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2940         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2941         * modules/lseek-tests (Makefile.am): Likewise.
2942         * modules/parse-duration-tests (Makefile.am): Likewise.
2943         * modules/perror-tests (Makefile.am): Likewise.
2944         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2945         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2946         * modules/pipe-tests (Makefile.am): Likewise.
2947         * modules/pread-tests (Makefile.am): Likewise.
2948         * modules/printf-posix-tests (Makefile.am): Likewise.
2949         * modules/select-tests (Makefile.am): Likewise.
2950         * modules/sigpipe-tests (Makefile.am): Likewise.
2951         * modules/tsearch-tests (Makefile.am): Likewise.
2952         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2953         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2954         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2955         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2956         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2957         * modules/version-etc-tests (Makefile.am): Likewise.
2958         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2959         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2960         * modules/xalloc-die-tests (Makefile.am): Likewise.
2961         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2962         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2963         * modules/xstrtol-tests (Makefile.am): Likewise.
2964         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2965         * modules/yesno-tests (Makefile.am): Likewise.
2966         Suggested by Jim Meyering.
2967
2968 2010-01-24  Bruno Haible  <bruno@clisp.org>
2969
2970         More documentation.
2971         * doc/gnulib.texi (Writing modules): New chapter.
2972         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2973         the new chapter.
2974
2975 2010-01-24  Jim Meyering  <meyering@redhat.com>
2976
2977         maint.mk: do not prepend "./" after filtering
2978         * top/maint.mk (_prepend_srcdir_prefix): New variable
2979         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2980         "./" when $(srcdir) is ".".
2981
2982         define STREQ(a,b) consistently, removing useless parentheses
2983         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2984         since the only risk is that "a" or "b" contains an unparenthesized
2985         comma, but if either did that, STREQ would have 3 or more arguments.
2986         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2987         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2988         * lib/hash-triple.c (STREQ): Likewise.
2989         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2990         * lib/getugroups.c (STREQ): Likewise.
2991
2992 2010-01-23  Jim Meyering  <meyering@redhat.com>
2993
2994         maint.mk: fix syntax-check in a non-srcdir build directory
2995         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2996         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2997
2998 2010-01-22  Jim Meyering  <meyering@redhat.com>
2999
3000         userspec: add unit tests
3001         * tests/test-userspec.c: New file.
3002         * modules/userspec-tests: Likewise.
3003
3004 2010-01-21  Jim Meyering  <meyering@redhat.com>
3005
3006         maint.mk: handle source file names containing "." robustly
3007         * top/maint.mk (_dot_escaped_srcdir): Define.
3008         (VC_LIST): Use it in LHS of sed substitution.
3009
3010 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3011
3012         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3013         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3014         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3015         from a non-srcdir build.
3016
3017 2010-01-20  Eric Blake  <ebb9@byu.net>
3018
3019         warn-on-use: use instead of link-warning
3020         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3021         * modules/unistd (Depends-on, Makefile.am): Likewise.
3022         * modules/arpa_inet (Depends-on): Replace link-warning with
3023         warn-on-use.
3024         (Makefile.am): Update rules accordingly.
3025         * modules/ctype (Depends-on, Makefile.am): Likewise.
3026         * modules/dirent (Depends-on, Makefile.am): Likewise.
3027         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3028         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3029         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3030         * modules/locale (Depends-on, Makefile.am): Likewise.
3031         * modules/math (Depends-on, Makefile.am): Likewise.
3032         * modules/search (Depends-on, Makefile.am): Likewise.
3033         * modules/signal (Depends-on, Makefile.am): Likewise.
3034         * modules/spawn (Depends-on, Makefile.am): Likewise.
3035         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3036         * modules/string (Depends-on, Makefile.am): Likewise.
3037         * modules/strings (Depends-on, Makefile.am): Likewise.
3038         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3039         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3040         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3041         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3042         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3043         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3044         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3045         * modules/wchar (Depends-on, Makefile.am): Likewise.
3046         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3047         should be poisoned.
3048         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3049         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3050         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3051         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3052         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3053         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3054         * m4/math_h.m4 (gl_MATH_H): Likewise.
3055         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3056         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3057         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3058         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3059         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3060         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3061         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3062         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3066         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3067         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3068         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3069         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3070         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3071         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3072         GL_LINK_WARNING.
3073         * lib/ctype.in.h: Likewise.
3074         * lib/dirent.in.h: Likewise.
3075         * lib/fcntl.in.h: Likewise.
3076         * lib/inttypes.in.h: Likewise.
3077         * lib/langinfo.in.h: Likewise.
3078         * lib/locale.in.h: Likewise.
3079         * lib/math.in.h: Likewise.
3080         * lib/search.in.h: Likewise.
3081         * lib/signal.in.h: Likewise.
3082         * lib/spawn.in.h: Likewise.
3083         * lib/stdio.in.h: Likewise.
3084         * lib/stdlib.in.h: Likewise.
3085         * lib/string.in.h: Likewise.
3086         * lib/strings.in.h: Likewise.
3087         * lib/sys_file.in.h: Likewise.
3088         * lib/sys_ioctl.in.h: Likewise.
3089         * lib/sys_select.in.h: Likewise.
3090         * lib/sys_socket.in.h: Likewise.
3091         * lib/sys_stat.in.h: Likewise.
3092         * lib/sys_times.in.h: Likewise.
3093         * lib/sys_utsname.in.h: Likewise.
3094         * lib/unistd.in.h: Likewise.
3095         * lib/wchar.in.h: Likewise.
3096
3097 2010-01-20  Bruno Haible  <bruno@clisp.org>
3098
3099         Avoid duplicate -lm.
3100         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3101         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3103         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3104         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3105         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3106         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3107         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3108         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3109         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3110         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3111         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3112         Reported by Paolo Bonzini.
3113
3114 2010-01-19  Bruno Haible  <bruno@clisp.org>
3115
3116         langinfo, nl_langinfo: Relicense under LGPLv2+.
3117         * modules/langinfo (License): Change to LGPLv2+.
3118         * modules/nl_langinfo (License): Likewise.
3119         Patch by David Lutterkort <lutter@redhat.com>.
3120
3121 2010-01-19  Bruno Haible  <bruno@clisp.org>
3122
3123         Avoid compilation error with cc on OSF/1 5.1.
3124         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3125         statement, not before.
3126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3127
3128 2010-01-18  Bruno Haible  <bruno@clisp.org>
3129
3130         Avoid a link error due to the __printf__ symbol.
3131         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3132         and 2.6.x.
3133         (__format__, __printf__): Remove definitions.
3134         * lib/argp-fmtstream.h: Likewise.
3135         * lib/argp.h: Likewise.
3136         * lib/error.h: Likewise.
3137         * lib/vasnprintf.h: Likewise.
3138         * lib/xprintf.h: Likewise.
3139         * lib/xvasprintf.h: Likewise.
3140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3141
3142 2010-01-18  Bruno Haible  <bruno@clisp.org>
3143
3144         Tests for module 'tanl'.
3145         * modules/tanl-tests: New file.
3146         * tests/test-tanl.c: New file.
3147
3148         Tests for module 'sqrtl'.
3149         * modules/sqrtl-tests: New file.
3150         * tests/test-sqrtl.c: New file.
3151
3152         Tests for module 'sinl'.
3153         * modules/sinl-tests: New file.
3154         * tests/test-sinl.c: New file.
3155
3156         Tests for module 'logl'.
3157         * modules/logl-tests: New file.
3158         * tests/test-logl.c: New file.
3159
3160         Tests for module 'expl'.
3161         * modules/expl-tests: New file.
3162         * tests/test-expl.c: New file.
3163
3164         Tests for module 'cosl'.
3165         * modules/cosl-tests: New file.
3166         * tests/test-cosl.c: New file.
3167
3168         Tests for module 'atanl'.
3169         * modules/atanl-tests: New file.
3170         * tests/test-atanl.c: New file.
3171
3172         Tests for module 'asinl'.
3173         * modules/asinl-tests: New file.
3174         * tests/test-asinl.c: New file.
3175
3176         Tests for module 'acosl'.
3177         * modules/acosl-tests: New file.
3178         * tests/test-acosl.c: New file.
3179
3180         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3181         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3182         tanl): Use the standard gnulib idiom.
3183         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3184         * lib/sinl.c: Likewise.
3185         * lib/tanl.c: Don't include trigl.c.
3186         (kernel_tanl): Make static.
3187         * lib/sincosl.c: Include trigl.h first.
3188         * lib/trigl.c: Likewise.
3189         * m4/acosl.m4: New file.
3190         * m4/asinl.m4: New file.
3191         * m4/atanl.m4: New file.
3192         * m4/cosl.m4: New file.
3193         * m4/expl.m4: New file.
3194         * m4/logl.m4: New file.
3195         * m4/sinl.m4: New file.
3196         * m4/sqrtl.m4: New file.
3197         * m4/tanl.m4: New file.
3198         * m4/mathl.m4: Remove file.
3199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3200         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3201         Don't initialize GNULIB_MATHL.
3202         * modules/acosl: New file.
3203         * modules/asinl: New file.
3204         * modules/atanl: New file.
3205         * modules/cosl: New file.
3206         * modules/expl: New file.
3207         * modules/logl: New file.
3208         * modules/sinl: New file.
3209         * modules/sqrtl: New file.
3210         * modules/tanl: New file.
3211         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3212         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3213         substitute GNULIB_MATHL.
3214         * modules/mathl: Rewritten.
3215         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3216         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3217         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3218         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3219         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3220         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3221         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3222         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3223         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3224
3225 2010-01-18  Bruno Haible  <bruno@clisp.org>
3226
3227         sqrt: Make gl_FUNC_SQRT requirable.
3228         * m4/sqrt.m4: New file.
3229         * modules/sqrt (Files): Add it.
3230         (configure.ac): Invoke gl_FUNC_SQRT.
3231
3232 2010-01-18  Bruno Haible  <bruno@clisp.org>
3233
3234         New modules for common <math.h> functions.
3235         * m4/mathfunc.m4: New file.
3236         * modules/acos: New file.
3237         * modules/asin: New file.
3238         * modules/atan: New file.
3239         * modules/atan2: New file.
3240         * modules/cbrt: New file.
3241         * modules/copysign: New file.
3242         * modules/cos: New file.
3243         * modules/cosh: New file.
3244         * modules/erf: New file.
3245         * modules/erfc: New file.
3246         * modules/exp: New file.
3247         * modules/fabs: New file.
3248         * modules/fmod: New file.
3249         * modules/hypot: New file.
3250         * modules/j0: New file.
3251         * modules/j1: New file.
3252         * modules/jn: New file.
3253         * modules/ldexp: New file.
3254         * modules/lgamma: New file.
3255         * modules/log: New file.
3256         * modules/log10: New file.
3257         * modules/log1p: New file.
3258         * modules/logb: New file.
3259         * modules/modf: New file.
3260         * modules/nextafter: New file.
3261         * modules/pow: New file.
3262         * modules/remainder: New file.
3263         * modules/rint: New file.
3264         * modules/sin: New file.
3265         * modules/sinh: New file.
3266         * modules/sqrt: New file.
3267         * modules/tan: New file.
3268         * modules/tanh: New file.
3269         * modules/y0: New file.
3270         * modules/y1: New file.
3271         * modules/yn: New file.
3272         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3273         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3274         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3275         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3276         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3277         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3278         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3279         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3280         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3281         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3282         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3283         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3284         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3285         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3286         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3287         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3288         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3289         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3290         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3291         * doc/posix-functions/log.texi: Mention the 'log' module.
3292         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3293         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3294         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3295         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3296         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3297         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3298         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3299         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3300         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3301         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3302         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3303         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3304         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3305         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3306         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3307         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3308
3309 2010-01-18  Jim Meyering  <meyering@redhat.com>
3310
3311         ignore-value: relax license to LGPLv2+
3312         * modules/ignore-value (License): Relax to LGPLv2+.
3313
3314         getdate: don't leak when TZ contains two or more '"'s
3315         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3316         double quote in TZ after the first one.
3317
3318         readtokens: do not leak internal token_lengths buffer
3319         * lib/readtokens.c (readtokens): Free the local, lengths,
3320         when the supplied "token_lengths" parameter is NULL.
3321
3322 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3323
3324         Fix a couple of missing LIBTHREAD link failures on AIX.
3325         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3326         $(LIBTHREAD).
3327         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3328
3329         Link test-poll against INET_PTON_LIB.
3330         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3331         for inet_pton on Solaris 10.
3332
3333 2010-01-17  Bruno Haible  <bruno@clisp.org>
3334
3335         unistdio/*-sprintf: Fix typo in module description.
3336         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3337         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3338         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3339         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3340         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3341         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3342         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3343         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3344
3345 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3346
3347         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3348         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3349         variables in shell case patterns, for AIX and HP-UX ksh.
3350
3351         Split large sed scripts, for HP-UX sed.
3352         * modules/stdio: Split sed scripts around 50 sed commands,
3353         to avoid HP-UX limit of 99 commands, in the near future.
3354         * modules/string: Likewise.
3355         * modules/unistd: Likewise.
3356
3357         gnulib-tool: avoid writing in the current directory.
3358         * gnulib-tool (func_emit_lib_Makefile_am)
3359         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3360         not in the current directory, so concurrent gnulib-tool
3361         instances do not interfere.
3362
3363 2010-01-16  Jim Meyering  <meyering@redhat.com>
3364
3365         doc: update users.txt
3366         * users.txt: Add grep.
3367         (diffutils, gzip): Update URLs.
3368
3369 2010-01-12  Bruno Haible  <bruno@clisp.org>
3370
3371         posix_spawn: Avoid test failure on Cygwin.
3372         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3373         characters.
3374         Reported by Simon Josefsson.
3375
3376 2010-01-12  Bruno Haible  <bruno@clisp.org>
3377
3378         * tests/test-cond.c (main): When skipping the test, show the reason.
3379
3380 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3381
3382         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3383
3384 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3385
3386         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3387         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3388
3389 2010-01-12  Eric Blake  <ebb9@byu.net>
3390
3391         build: guarantee AS_VAR_IF
3392         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3393         (gl_AS_VAR_IF): Move...
3394         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3395         Reported by Simon Josefsson.
3396
3397 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3398
3399         * lib/stdio.in.h: Fix typo.
3400
3401 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3402
3403         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3404         libgpg-error.
3405
3406 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3407
3408         * tests/test-xalloc-die.sh: Use $EXEEXT.
3409
3410 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3411             Bruno Haible  <bruno@clisp.org>
3412
3413         getlogin, getlogin_r: Avoid test failure.
3414         * tests/test-getlogin.c: Include <stdio.h>.
3415         (main): Skip the test when the function fails because stdin is not a
3416         tty.
3417         * tests/test-getlogin_r.c: Include <stdio.h>.
3418         (main): Skip the test when the function fails because stdin is not a
3419         tty.
3420
3421 2010-01-11  Eric Blake  <ebb9@byu.net>
3422
3423         tests: avoid more large file warnings
3424         * tests/test-fflush.c: Avoid warning about ftell use.
3425         * tests/test-fseek.c: Avoid warning about fseek use.
3426
3427 2010-01-10  Bruno Haible  <bruno@clisp.org>
3428
3429         nproc: Work better on Linux when /proc and /sys are not mounted.
3430         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3431         as lower bound when, on glibc/Linux systems,
3432         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3433         Suggested by Pádraig Brady <P@draigbrady.com>.
3434         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3435
3436         nproc: Refactor.
3437         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3438         extracted from num_processors.
3439         (num_processors): Call it.
3440
3441 2010-01-11  Jim Meyering  <meyering@redhat.com>
3442
3443         utimecmp: avoid new warning from upcoming gcc-4.5.0
3444         * lib/utimecmp.c (BILLION): Define using #define rather than an
3445         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3446
3447 2010-01-11  Eric Blake  <ebb9@byu.net>
3448
3449         math: add portability warnings for classification macros
3450         * modules/math (Depends-on): Add warn-on-use.
3451         (Makefile.am): Provide new substitutions.
3452         * m4/math_h.m4 (gl_MATH_H): Require inline.
3453         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3454         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3455         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3456         implement warnings.
3457
3458         unistd: warn on use of environ without module
3459         * modules/unistd (Depends-on): Add warn-on-use.
3460         (Makefile.am): Provide new substitutions.
3461         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3462         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3463
3464         stdio: warn on suspicious uses
3465         * modules/stdio (Depends-on): Add warn-on-use.
3466         (Makefile.am): Provide new substitutions.
3467         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3468         fseeko.
3469         * lib/stdio.in.h (gets): Always warn on use.
3470         (fseek, ftell): Adjust when warnings are issued, and honor
3471         _GL_NO_LARGE_FILES as a way to silence the warning.
3472         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3473         any warning about large file offsets.
3474         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3475         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3476         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3477         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3478         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3479         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3480         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3481         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3482
3483         warn-on-use: new module
3484         * modules/warn-on-use: New file.
3485         * build-aux/warn-on-use.h: Likewise.
3486         * m4/warn-on-use.m4: Likewise.
3487         * MODULES.html.sh (Support for building): Mention it.
3488
3489 2010-01-10  Bruno Haible  <bruno@clisp.org>
3490
3491         Tests for module 'unistr/u32-strdup'.
3492         * modules/unistr/u32-strdup-tests: New file.
3493         * tests/unistr/test-u32-strdup.c: New file.
3494
3495         Tests for module 'unistr/u16-strdup'.
3496         * modules/unistr/u16-strdup-tests: New file.
3497         * tests/unistr/test-u16-strdup.c: New file.
3498
3499         Tests for module 'unistr/u8-strdup'.
3500         * modules/unistr/u8-strdup-tests: New file.
3501         * tests/unistr/test-u8-strdup.c: New file.
3502         * tests/unistr/test-strdup.h: New file.
3503
3504         Tests for module 'unistr/u32-strncmp'.
3505         * modules/unistr/u32-strncmp-tests: New file.
3506         * tests/unistr/test-u32-strncmp.c: New file.
3507
3508         Tests for module 'unistr/u16-strncmp'.
3509         * modules/unistr/u16-strncmp-tests: New file.
3510         * tests/unistr/test-u16-strncmp.c: New file.
3511
3512         Tests for module 'unistr/u8-strncmp'.
3513         * modules/unistr/u8-strncmp-tests: New file.
3514         * tests/unistr/test-u8-strncmp.c: New file.
3515         * tests/unistr/test-strncmp.h: New file.
3516
3517         Tests for module 'unistr/u32-strcoll'.
3518         * modules/unistr/u32-strcoll-tests: New file.
3519         * tests/unistr/test-u32-strcoll.c: New file.
3520
3521         Tests for module 'unistr/u16-strcoll'.
3522         * modules/unistr/u16-strcoll-tests: New file.
3523         * tests/unistr/test-u16-strcoll.c: New file.
3524
3525         Tests for module 'unistr/u8-strcoll'.
3526         * modules/unistr/u8-strcoll-tests: New file.
3527         * tests/unistr/test-u8-strcoll.c: New file.
3528
3529         Tests for module 'unistr/u32-strcmp'.
3530         * modules/unistr/u32-strcmp-tests: New file.
3531         * tests/unistr/test-u32-strcmp.c: New file.
3532         * tests/unistr/test-u32-strcmp.h: New file.
3533
3534         Tests for module 'unistr/u16-strcmp'.
3535         * modules/unistr/u16-strcmp-tests: New file.
3536         * tests/unistr/test-u16-strcmp.c: New file.
3537         * tests/unistr/test-u16-strcmp.h: New file.
3538
3539         Tests for module 'unistr/u8-strcmp'.
3540         * modules/unistr/u8-strcmp-tests: New file.
3541         * tests/unistr/test-u8-strcmp.c: New file.
3542         * tests/unistr/test-u8-strcmp.h: New file.
3543         * tests/unistr/test-strcmp.h: New file.
3544
3545         Tests for module 'unistr/u32-strncat'.
3546         * modules/unistr/u32-strncat-tests: New file.
3547         * tests/unistr/test-u32-strncat.c: New file.
3548
3549         Tests for module 'unistr/u16-strncat'.
3550         * modules/unistr/u16-strncat-tests: New file.
3551         * tests/unistr/test-u16-strncat.c: New file.
3552
3553         Tests for module 'unistr/u8-strncat'.
3554         * modules/unistr/u8-strncat-tests: New file.
3555         * tests/unistr/test-u8-strncat.c: New file.
3556         * tests/unistr/test-strncat.h: New file.
3557
3558         Tests for module 'unistr/u32-strcat'.
3559         * modules/unistr/u32-strcat-tests: New file.
3560         * tests/unistr/test-u32-strcat.c: New file.
3561
3562         Tests for module 'unistr/u16-strcat'.
3563         * modules/unistr/u16-strcat-tests: New file.
3564         * tests/unistr/test-u16-strcat.c: New file.
3565
3566         Tests for module 'unistr/u8-strcat'.
3567         * modules/unistr/u8-strcat-tests: New file.
3568         * tests/unistr/test-u8-strcat.c: New file.
3569         * tests/unistr/test-strcat.h: New file.
3570
3571         Tests for module 'unistr/u32-stpncpy'.
3572         * modules/unistr/u32-stpncpy-tests: New file.
3573         * tests/unistr/test-u32-stpncpy.c: New file.
3574
3575         Tests for module 'unistr/u16-stpncpy'.
3576         * modules/unistr/u16-stpncpy-tests: New file.
3577         * tests/unistr/test-u16-stpncpy.c: New file.
3578
3579         Tests for module 'unistr/u8-stpncpy'.
3580         * modules/unistr/u8-stpncpy-tests: New file.
3581         * tests/unistr/test-u8-stpncpy.c: New file.
3582         * tests/unistr/test-stpncpy.h: New file.
3583
3584         Tests for module 'unistr/u32-strncpy'.
3585         * modules/unistr/u32-strncpy-tests: New file.
3586         * tests/unistr/test-u32-strncpy.c: New file.
3587
3588         Tests for module 'unistr/u16-strncpy'.
3589         * modules/unistr/u16-strncpy-tests: New file.
3590         * tests/unistr/test-u16-strncpy.c: New file.
3591
3592         Tests for module 'unistr/u8-strncpy'.
3593         * modules/unistr/u8-strncpy-tests: New file.
3594         * tests/unistr/test-u8-strncpy.c: New file.
3595         * tests/unistr/test-strncpy.h: New file.
3596
3597         Tests for module 'unistr/u32-stpcpy'.
3598         * modules/unistr/u32-stpcpy-tests: New file.
3599         * tests/unistr/test-u32-stpcpy.c: New file.
3600
3601         Tests for module 'unistr/u16-stpcpy'.
3602         * modules/unistr/u16-stpcpy-tests: New file.
3603         * tests/unistr/test-u16-stpcpy.c: New file.
3604
3605         Tests for module 'unistr/u8-stpcpy'.
3606         * modules/unistr/u8-stpcpy-tests: New file.
3607         * tests/unistr/test-u8-stpcpy.c: New file.
3608         * tests/unistr/test-stpcpy.h: New file.
3609
3610         Tests for module 'unistr/u32-strcpy'.
3611         * modules/unistr/u32-strcpy-tests: New file.
3612         * tests/unistr/test-u32-strcpy.c: New file.
3613
3614         Tests for module 'unistr/u16-strcpy'.
3615         * modules/unistr/u16-strcpy-tests: New file.
3616         * tests/unistr/test-u16-strcpy.c: New file.
3617
3618         Tests for module 'unistr/u8-strcpy'.
3619         * modules/unistr/u8-strcpy-tests: New file.
3620         * tests/unistr/test-u8-strcpy.c: New file.
3621         * tests/unistr/test-strcpy.h: New file.
3622
3623         Tests for module 'unistr/u32-strnlen'.
3624         * modules/unistr/u32-strnlen-tests: New file.
3625         * tests/unistr/test-u32-strnlen.c: New file.
3626
3627         Tests for module 'unistr/u16-strnlen'.
3628         * modules/unistr/u16-strnlen-tests: New file.
3629         * tests/unistr/test-u16-strnlen.c: New file.
3630
3631         Tests for module 'unistr/u8-strnlen'.
3632         * modules/unistr/u8-strnlen-tests: New file.
3633         * tests/unistr/test-u8-strnlen.c: New file.
3634         * tests/unistr/test-strnlen.h: New file.
3635
3636         Tests for module 'unistr/u32-strlen'.
3637         * modules/unistr/u32-strlen-tests: New file.
3638         * tests/unistr/test-u32-strlen.c: New file.
3639
3640         Tests for module 'unistr/u16-strlen'.
3641         * modules/unistr/u16-strlen-tests: New file.
3642         * tests/unistr/test-u16-strlen.c: New file.
3643
3644         Tests for module 'unistr/u8-strlen'.
3645         * modules/unistr/u8-strlen-tests: New file.
3646         * tests/unistr/test-u8-strlen.c: New file.
3647
3648         Tests for module 'unistr/u32-prev'.
3649         * modules/unistr/u32-prev-tests: New file.
3650         * tests/unistr/test-u32-prev.c: New file.
3651
3652         Tests for module 'unistr/u16-prev'.
3653         * modules/unistr/u16-prev-tests: New file.
3654         * tests/unistr/test-u16-prev.c: New file.
3655
3656         Tests for module 'unistr/u8-prev'.
3657         * modules/unistr/u8-prev-tests: New file.
3658         * tests/unistr/test-u8-prev.c: New file.
3659
3660         Tests for module 'unistr/u32-next'.
3661         * modules/unistr/u32-next-tests: New file.
3662         * tests/unistr/test-u32-next.c: New file.
3663
3664         Tests for module 'unistr/u16-next'.
3665         * modules/unistr/u16-next-tests: New file.
3666         * tests/unistr/test-u16-next.c: New file.
3667
3668         Tests for module 'unistr/u8-next'.
3669         * modules/unistr/u8-next-tests: New file.
3670         * tests/unistr/test-u8-next.c: New file.
3671
3672         Tests for module 'unistr/u32-strmbtouc'.
3673         * modules/unistr/u32-strmbtouc-tests: New file.
3674         * tests/unistr/test-u32-strmbtouc.c: New file.
3675
3676         Tests for module 'unistr/u16-strmbtouc'.
3677         * modules/unistr/u16-strmbtouc-tests: New file.
3678         * tests/unistr/test-u16-strmbtouc.c: New file.
3679
3680         Tests for module 'unistr/u8-strmbtouc'.
3681         * modules/unistr/u8-strmbtouc-tests: New file.
3682         * tests/unistr/test-u8-strmbtouc.c: New file.
3683
3684         Tests for module 'unistr/u32-strmblen'.
3685         * modules/unistr/u32-strmblen-tests: New file.
3686         * tests/unistr/test-u32-strmblen.c: New file.
3687
3688         Tests for module 'unistr/u16-strmblen'.
3689         * modules/unistr/u16-strmblen-tests: New file.
3690         * tests/unistr/test-u16-strmblen.c: New file.
3691
3692         Tests for module 'unistr/u8-strmblen'.
3693         * modules/unistr/u8-strmblen-tests: New file.
3694         * tests/unistr/test-u8-strmblen.c: New file.
3695
3696         Tests for module 'unistr/u32-cpy-alloc'.
3697         * modules/unistr/u32-cpy-alloc-tests: New file.
3698         * tests/unistr/test-u32-cpy-alloc.c: New file.
3699
3700         Tests for module 'unistr/u16-cpy-alloc'.
3701         * modules/unistr/u16-cpy-alloc-tests: New file.
3702         * tests/unistr/test-u16-cpy-alloc.c: New file.
3703
3704         Tests for module 'unistr/u8-cpy-alloc'.
3705         * modules/unistr/u8-cpy-alloc-tests: New file.
3706         * tests/unistr/test-u8-cpy-alloc.c: New file.
3707         * tests/unistr/test-cpy-alloc.h: New file.
3708
3709         Tests for module 'unistr/u32-mbsnlen'.
3710         * modules/unistr/u32-mbsnlen-tests: New file.
3711         * tests/unistr/test-u32-mbsnlen.c: New file.
3712
3713         Tests for module 'unistr/u16-mbsnlen'.
3714         * modules/unistr/u16-mbsnlen-tests: New file.
3715         * tests/unistr/test-u16-mbsnlen.c: New file.
3716
3717         Tests for module 'unistr/u8-mbsnlen'.
3718         * modules/unistr/u8-mbsnlen-tests: New file.
3719         * tests/unistr/test-u8-mbsnlen.c: New file.
3720
3721         Tests for module 'unistr/u32-chr'.
3722         * modules/unistr/u32-chr-tests: New file.
3723         * tests/unistr/test-u32-chr.c: New file.
3724
3725         Tests for module 'unistr/u16-chr'.
3726         * modules/unistr/u16-chr-tests: New file.
3727         * tests/unistr/test-u16-chr.c: New file.
3728
3729         Tests for module 'unistr/u8-chr'.
3730         * modules/unistr/u8-chr-tests: New file.
3731         * tests/unistr/test-u8-chr.c: New file.
3732         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3733
3734         Tests for module 'unistr/u32-cmp2'.
3735         * modules/unistr/u32-cmp2-tests: New file.
3736         * tests/unistr/test-u32-cmp2.c: New file.
3737
3738         Tests for module 'unistr/u16-cmp2'.
3739         * modules/unistr/u16-cmp2-tests: New file.
3740         * tests/unistr/test-u16-cmp2.c: New file.
3741
3742         Tests for module 'unistr/u8-cmp2'.
3743         * modules/unistr/u8-cmp2-tests: New file.
3744         * tests/unistr/test-u8-cmp2.c: New file.
3745         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3746
3747         Tests for module 'unistr/u32-cmp'.
3748         * modules/unistr/u32-cmp-tests: New file.
3749         * tests/unistr/test-u32-cmp.c: New file.
3750
3751         Tests for module 'unistr/u16-cmp'.
3752         * modules/unistr/u16-cmp-tests: New file.
3753         * tests/unistr/test-u16-cmp.c: New file.
3754
3755         Tests for module 'unistr/u8-cmp'.
3756         * modules/unistr/u8-cmp-tests: New file.
3757         * tests/unistr/test-u8-cmp.c: New file.
3758         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3759
3760         Tests for module 'unistr/u32-set'.
3761         * modules/unistr/u32-set-tests: New file.
3762         * tests/unistr/test-u32-set.c: New file.
3763
3764         Tests for module 'unistr/u16-set'.
3765         * modules/unistr/u16-set-tests: New file.
3766         * tests/unistr/test-u16-set.c: New file.
3767
3768         Tests for module 'unistr/u8-set'.
3769         * modules/unistr/u8-set-tests: New file.
3770         * tests/unistr/test-u8-set.c: New file.
3771         * tests/unistr/test-set.h: New file.
3772
3773         Tests for module 'unistr/u32-move'.
3774         * modules/unistr/u32-move-tests: New file.
3775         * tests/unistr/test-u32-move.c: New file.
3776
3777         Tests for module 'unistr/u16-move'.
3778         * modules/unistr/u16-move-tests: New file.
3779         * tests/unistr/test-u16-move.c: New file.
3780
3781         Tests for module 'unistr/u8-move'.
3782         * modules/unistr/u8-move-tests: New file.
3783         * tests/unistr/test-u8-move.c: New file.
3784         * tests/unistr/test-move.h: New file.
3785
3786         Tests for module 'unistr/u32-cpy'.
3787         * modules/unistr/u32-cpy-tests: New file.
3788         * tests/unistr/test-u32-cpy.c: New file.
3789
3790         Tests for module 'unistr/u16-cpy'.
3791         * modules/unistr/u16-cpy-tests: New file.
3792         * tests/unistr/test-u16-cpy.c: New file.
3793
3794         Tests for module 'unistr/u8-cpy'.
3795         * modules/unistr/u8-cpy-tests: New file.
3796         * tests/unistr/test-u8-cpy.c: New file.
3797         * tests/unistr/test-cpy.h: New file.
3798
3799 2010-01-09  Bruno Haible  <bruno@clisp.org>
3800
3801         Tests for module 'unistr/u32-uctomb'.
3802         * modules/unistr/u32-uctomb-tests: New file.
3803         * tests/unistr/test-u32-uctomb.c: New file.
3804
3805         Tests for module 'unistr/u16-uctomb'.
3806         * modules/unistr/u16-uctomb-tests: New file.
3807         * tests/unistr/test-u16-uctomb.c: New file.
3808
3809         Tests for module 'unistr/u8-uctomb'.
3810         * modules/unistr/u8-uctomb-tests: New file.
3811         * tests/unistr/test-u8-uctomb.c: New file.
3812
3813         Tests for module 'unistr/u32-mbtoucr'.
3814         * modules/unistr/u32-mbtoucr-tests: New file.
3815         * tests/unistr/test-u32-mbtoucr.c: New file.
3816
3817         Tests for module 'unistr/u16-mbtoucr'.
3818         * modules/unistr/u16-mbtoucr-tests: New file.
3819         * tests/unistr/test-u16-mbtoucr.c: New file.
3820
3821         Tests for module 'unistr/u8-mbtoucr'.
3822         * modules/unistr/u8-mbtoucr-tests: New file.
3823         * tests/unistr/test-u8-mbtoucr.c: New file.
3824
3825         Tests for module 'unistr/u32-mbtouc'.
3826         * modules/unistr/u32-mbtouc-tests: New file.
3827         * tests/unistr/test-u32-mbtouc.c: New file.
3828
3829         Tests for module 'unistr/u16-mbtouc'.
3830         * modules/unistr/u16-mbtouc-tests: New file.
3831         * tests/unistr/test-u16-mbtouc.c: New file.
3832
3833         Tests for module 'unistr/u8-mbtouc'.
3834         * modules/unistr/u8-mbtouc-tests: New file.
3835         * tests/unistr/test-u8-mbtouc.c: New file.
3836
3837         Tests for module 'unistr/u32-mbtouc-unsafe'.
3838         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3839         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3840         * tests/unistr/test-u32-mbtouc.h: New file.
3841
3842         Tests for module 'unistr/u16-mbtouc-unsafe'.
3843         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3844         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3845         * tests/unistr/test-u16-mbtouc.h: New file.
3846
3847         Tests for module 'unistr/u8-mbtouc-unsafe'.
3848         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3849         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3850         * tests/unistr/test-u8-mbtouc.h: New file.
3851
3852         Tests for module 'unistr/u32-mblen'.
3853         * modules/unistr/u32-mblen-tests: New file.
3854         * tests/unistr/test-u32-mblen.c: New file.
3855
3856         Tests for module 'unistr/u16-mblen'.
3857         * modules/unistr/u16-mblen-tests: New file.
3858         * tests/unistr/test-u16-mblen.c: New file.
3859
3860         Tests for module 'unistr/u8-mblen'.
3861         * modules/unistr/u8-mblen-tests: New file.
3862         * tests/unistr/test-u8-mblen.c: New file.
3863
3864         Tests for module 'unistr/u32-to-u16'.
3865         * modules/unistr/u32-to-u16-tests: New file.
3866         * tests/unistr/test-u32-to-u16.c: New file.
3867
3868         Tests for module 'unistr/u32-to-u8'.
3869         * modules/unistr/u32-to-u8-tests: New file.
3870         * tests/unistr/test-u32-to-u8.c: New file.
3871
3872         Tests for module 'unistr/u16-to-u32'.
3873         * modules/unistr/u16-to-u32-tests: New file.
3874         * tests/unistr/test-u16-to-u32.c: New file.
3875
3876         Tests for module 'unistr/u16-to-u8'.
3877         * modules/unistr/u16-to-u8-tests: New file.
3878         * tests/unistr/test-u16-to-u8.c: New file.
3879
3880         Tests for module 'unistr/u8-to-u32'.
3881         * modules/unistr/u8-to-u32-tests: New file.
3882         * tests/unistr/test-u8-to-u32.c: New file.
3883
3884         Tests for module 'unistr/u8-to-u16'.
3885         * modules/unistr/u8-to-u16-tests: New file.
3886         * tests/unistr/test-u8-to-u16.c: New file.
3887
3888         Tests for module 'unistr/u32-check'.
3889         * modules/unistr/u32-check-tests: New file.
3890         * tests/unistr/test-u32-check.c: New file.
3891
3892         Tests for module 'unistr/u16-check'.
3893         * modules/unistr/u16-check-tests: New file.
3894         * tests/unistr/test-u16-check.c: New file.
3895
3896         Tests for module 'unistr/u8-check'.
3897         * modules/unistr/u8-check-tests: New file.
3898         * tests/unistr/test-u8-check.c: New file.
3899
3900         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3901         (category_equals): New function.
3902         (main): Add more tests.
3903         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3904
3905         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3906
3907 2010-01-10  Bruno Haible  <bruno@clisp.org>
3908
3909         unistr/u*-strcoll: Try harder to distinguish different strings.
3910         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3911         compare s1 and s2 to see if they are different.
3912
3913 2010-01-10  Bruno Haible  <bruno@clisp.org>
3914
3915         unistr/u*-stpncpy: Fix the return value.
3916         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3917         description of the return value consistent with stpncpy in glibc.
3918         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3919         written non-NUL unit.
3920
3921 2010-01-10  Bruno Haible  <bruno@clisp.org>
3922
3923         unistr/u*-next: Add missing dependencies.
3924         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3925         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3926         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3927
3928 2010-01-10  Bruno Haible  <bruno@clisp.org>
3929
3930         unistr/u8-mbsnlen: Fix return value for incomplete character.
3931         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3932         u8_mblen.
3933         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3934         Remove unistr/u8-mblen.
3935         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3936         u16_mblen.
3937         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3938         Remove unistr/u16-mblen.
3939
3940 2010-01-10  Bruno Haible  <bruno@clisp.org>
3941
3942         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3943         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3944         Reported by Brian Gough <bjg@gnu.org> and
3945         Chris Clayton <chris2553@googlemail.com> via
3946         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3947
3948 2010-01-09  Bruno Haible  <bruno@clisp.org>
3949
3950         unistr/u16-to-u32: Reject invalid input.
3951         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3952         u16_mbtouc.
3953         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3954         Remove unistr/u16-mbtouc.
3955
3956         unistr/u16-to-u8: Reject invalid input.
3957         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3958         u16_mbtouc.
3959         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3960         Remove unistr/u16-mbtouc.
3961
3962         unistr/u8-to-u32: Reject invalid input.
3963         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3964         u8_mbtouc.
3965         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3966         Remove unistr/u8-mbtouc.
3967
3968         unistr/u8-to-u16: Reject invalid input.
3969         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3970         u8_mbtouc.
3971         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3972         Remove unistr/u8-mbtouc.
3973
3974 2010-01-09  Bruno Haible  <bruno@clisp.org>
3975
3976         Tests for module 'getlogin'.
3977         * modules/getlogin-tests: New file.
3978         * tests/test-getlogin.c: New file.
3979
3980         New module 'getlogin'.
3981         * lib/unistd.in.h (getlogin): New declaration.
3982         * lib/getlogin.c: New file.
3983         * m4/getlogin.m4: New file.
3984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3985         HAVE_GETLOGIN.
3986         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3987         HAVE_GETLOGIN.
3988         * modules/getlogin: New file.
3989         * doc/posix-functions/getlogin.texi: Mention the new module.
3990         Reported by John W. Eaton <jwe@gnu.org>.
3991
3992 2010-01-09  Bruno Haible  <bruno@clisp.org>
3993
3994         getlogin_r: Support for native Windows.
3995         * lib/getlogin_r.c: Include <windows.h>
3996         (getlogin_r): Implement for native Windows.
3997         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3998         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3999         via John W. Eaton <jwe@gnu.org>.
4000
4001 2010-01-09  Bruno Haible  <bruno@clisp.org>
4002
4003         getlogin_r: Small fixes.
4004         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4005         succeeds.
4006         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4007         before testing whether getlogin_r is declared. No need to set
4008         HAVE_DECL_GETLOGIN_R to 1.
4009         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4010
4011 2010-01-09  Bruno Haible  <bruno@clisp.org>
4012
4013         * lib/unistd.in.h (getlogin_r): Add comment.
4014
4015 2010-01-09  Bruno Haible  <bruno@clisp.org>
4016
4017         Tests for module 'getlogin_r'.
4018         * modules/getlogin_r-tests: New file.
4019         * tests/test-getlogin_r.c: New file.
4020
4021 2010-01-09  Jim Meyering  <meyering@redhat.com>
4022
4023         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4024         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4025         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4026
4027 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4028
4029         * lib/dup2.c (rpl_dup2): Improve comment.
4030
4031 2010-01-08  Eric Blake  <ebb9@byu.net>
4032
4033         maint.mk: allow packages to add makefile @@ exceptions
4034         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4035         (sc_makefile_check): Rename...
4036         (sc_makefile_at_at_check): ...to this, and use hook.
4037
4038         dup2: work around mingw bug
4039         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4040         Reported by Simon Josefsson.
4041
4042 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4043
4044         glob: Fix C++ compilation.
4045         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4046         C++.
4047
4048 2010-01-07  Bruno Haible  <bruno@clisp.org>
4049
4050         Fix indentation of wctype.in.h, broken since 2007-01-06.
4051         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4052
4053 2010-01-07  Bruno Haible  <bruno@clisp.org>
4054
4055         mbslen: Avoid collision with system function.
4056         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4057         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4058         * m4/mbslen.m4: New file.
4059         * modules/mbslen (Files): Add it.
4060         (configure.ac): Invoke gl_MBSLEN.
4061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4062         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4063         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4064         via Ian Beckwith <ianb@erislabs.net>.
4065
4066 2010-01-07  Bruno Haible  <bruno@clisp.org>
4067
4068         dirent: Document the last fix.
4069         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4070
4071 2010-01-07  Bruno Haible  <bruno@clisp.org>
4072
4073         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4074         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4075         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4076         va_list are defined.
4077         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4078         Reported by Eric Blake.
4079
4080 2010-01-07  Bruno Haible  <bruno@clisp.org>
4081
4082         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4083         * modules/xlist (Depends-on): Add 'list',
4084         * modules/xoset (Depends-on): Add 'oset'.
4085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4086
4087 2010-01-07  Bruno Haible  <bruno@clisp.org>
4088
4089         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4090         * doc/posix-functions/strncasecmp.texi: Likewise.
4091
4092 2010-01-07  Bruno Haible  <bruno@clisp.org>
4093
4094         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4095
4096 2010-01-07  John W. Eaton  <jwe@octave.org>
4097
4098         wctype: allow C++ use
4099         * lib/wctype.in.h: Add extern "C" block for C++.
4100
4101 2010-01-06  Eric Blake  <ebb9@byu.net>
4102
4103         maint.mk: detect incorrect GFDL usage
4104         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4105
4106 2010-01-06  Jim Meyering  <meyering@redhat.com>
4107         and Eric Blake  <ebb9@byu.net>
4108
4109         maint.mk: ignore multi-line copyright in NEWS
4110         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4111
4112 2010-01-06  Eric Blake  <ebb9@byu.net>
4113
4114         select: add missing dependency
4115         * modules/select-tests (Depends-on): Move sockets dependency...
4116         * modules/select (Depends-on): ...here.
4117         Reported by Ian Beckwith.
4118
4119         doc: regenerate INSTALL
4120         * doc/INSTALL: Reflect recent autoconf update.
4121         * doc/INSTALL.ISO: Likewise.
4122         * doc/INSTALL.UTF-8: Likewise.
4123
4124         pread: fix compilation on glibc
4125         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4126         Reported by Ralf Wildenhues.
4127
4128         dirent: fix test failure
4129         * lib/dirent.in.h (includes): Guarantee ino_t.
4130         Reported by Ralf Wildenhues.
4131
4132 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4133
4134         linkat, renameat: avoid bad free
4135         * lib/at-func2.c (at_func2): Fix typo.
4136         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4137
4138 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4139
4140         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4141         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4142         to avoid failure of symlink test later.
4143
4144 2010-01-06  Eric Blake  <ebb9@byu.net>
4145
4146         stdio, unistd: guarantee ssize_t
4147         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4148         2008 are exposed when needed.
4149         * lib/stdio.in.h (includes): Likewise.
4150         Reported by Ralf Wildenhues.
4151
4152 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4153
4154         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4155         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4156         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4157
4158 2010-01-06  Jim Meyering  <meyering@redhat.com>
4159
4160         readtokens: this module *does* require xalloc.h
4161         It uses only functions that were omitted by the old syntax-check rule.
4162         * lib/readtokens.c: Include "xalloc.h" once again.
4163         * modules/readtokens (Depends-on): Add xalloc.
4164         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4165
4166 2010-01-05  Eric Blake  <ebb9@byu.net>
4167
4168         maint: support 'make announcement' from a VPATH build
4169         * top/maint.mk (announcement): Look for correct NEWS file.
4170
4171 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4172
4173         utimens (fdutimens): ignore a negative FD, per contract
4174         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4175         when we have a valid file descriptor.  Otherwise, using a brand
4176         new glibc (with just-patched futimens that now fails with EBADF)
4177         would cause this function to fail with ENOSYS.
4178         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4179         See also http://bugzilla.redhat.com/552320.
4180
4181 2010-01-05  Eric Blake  <ebb9@byu.net>
4182
4183         strcase: document what it provides
4184         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4185         gnulib module.
4186         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4187         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4188
4189 2010-01-05  Jim Meyering  <meyering@redhat.com>
4190
4191         maint: remove useless inclusions of "xalloc.h"
4192         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4193         * lib/readtokens.c: Likewise.
4194         * lib/same.c: Likewise.
4195         * modules/getloadavg (Depends-on): Remove xalloc.
4196         * modules/readtokens: Likewise.
4197         * modules/same: Likewise.
4198
4199         maint.mk: include 4 more function names in alloca.h-checking regexp
4200         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4201         regexp.  Before, we would give a false-positive (saying alloca.h
4202         is included unnecessarily) when the only uses involved omitted symbols.
4203
4204         xalloc.h: use consistent formatting
4205         * lib/xalloc.h: Move declarations to start in the first column.
4206
4207 2010-01-05  Eric Blake  <ebb9@byu.net>
4208
4209         mkdir: avoid xalloc
4210         * lib/mkdir.c (includes): Drop unused header.
4211         Reported by John W. Eaton.
4212
4213 2010-01-04  Jim Meyering  <meyering@redhat.com>
4214
4215         nl_langinfo: avoid configure-time syntax error
4216         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4217         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4218         the empty string.  Don't let that provoke a shell syntax error.
4219
4220         regcomp, regexec, fnmatch: avoid array bounds read error
4221         * lib/regcomp.c (build_equiv_class): From glibc:
4222         Use only the low 24 bits of a findidx return value as an index
4223         into the weights array.  Patch by Ulrich Drepper:
4224         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4225         * lib/regexec.c (check_node_accept_bytes): Likewise.
4226         * lib/fnmatch_loop.c (FCT): Likewise.
4227
4228         regcomp: skip collseq lookup when there are no rules
4229         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4230         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4231
4232         regcomp: recognize ill-formed { } expressions
4233         * lib/regcomp.c (parse_dup_op): From glibc:
4234         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4235
4236         regcomp: fix typo in comment
4237         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4238         s/satisfy/satisfies/.
4239
4240         regcomp: sync from glibc: remove dead store
4241         * lib/regcomp.c (duplicate_node_closure): Remove useless
4242         search_duplicated_node call and dead store.
4243
4244         regcomp: sync from glibc; always use nl_langinfo
4245         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4246         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4247         * modules/regex (Depends-on): Add nl_langinfo.
4248
4249 2010-01-04  Eric Blake  <ebb9@byu.net>
4250
4251         fdopendir: fix configure test
4252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4253
4254 2010-01-01  Bruno Haible  <bruno@clisp.org>
4255
4256         wchar: Remove unused configure check.
4257         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4258
4259 2010-01-01  Eric Blake  <ebb9@byu.net>
4260
4261         headers: make check of system header explicit
4262         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4263         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4264         ourselves.
4265         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4268         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4269         internals.
4270         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4271         missing.
4272         Suggested by Bruno Haible.
4273
4274 2010-01-01  Jim Meyering  <meyering@redhat.com>
4275
4276         ChangeLog: tweak to eliminate unnecessary copyright line
4277         * ChangeLog: Remove a copyright line that was mistakenly updated
4278         by today's update-copyright run.  Reported by Eric Blake.
4279
4280         test-update-copyright: don't let envvar setting cause test failure
4281         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4282
4283 2010-01-01  Bruno Haible  <bruno@clisp.org>
4284
4285         localename: Avoid gcc warning.
4286         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4287         function if it is not used.
4288
4289 2010-01-01  Jim Meyering  <meyering@redhat.com>
4290
4291         update nearly all FSF copyright year lists to include 2010
4292         Use the same procedure as for 2009, outlined in
4293         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4294
4295         version-etc: set COPYRIGHT_YEAR to 2010
4296         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4297
4298 2009-12-31  Eric Blake  <ebb9@byu.net>
4299
4300         doc: correct availability of cygwin 1.5.x getopt
4301         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4302         variables.
4303         * doc/posix-functions/opterr.texi (opterr): Likewise.
4304         * doc/posix-functions/optind.texi (optind): Likewise.
4305         * doc/posix-functions/optopt.texi (optopt): Likewise.
4306         * doc/posix-functions/tzname.texi (tzname): Likewise.
4307
4308         openat: update maintainer
4309         * modules/openat (Maintainer): Add myself.
4310
4311         utimens: avoid shadowing warning
4312         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4313         buffers into one, to avoid shadowing, as well as avoiding a
4314         redundant stat.
4315         Reported by Jim Meyering.
4316
4317         test-dup2: avoid compiler warning
4318         * tests/test-dup2.c (is_inheritable): Only define if used.
4319
4320 2010-01-01  Bruno Haible  <bruno@clisp.org>
4321
4322         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4323         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4324         defined, use wctomb instead of wcrtomb.
4325
4326 2010-01-01  Bruno Haible  <bruno@clisp.org>
4327
4328         iconv: Reject native Solaris iconv.
4329         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4330         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4331
4332 2009-12-31  Bruno Haible  <bruno@clisp.org>
4333
4334         * tests/test-signal.c (main): Remove test of 'SIG'.
4335
4336 2009-12-31  Bruno Haible  <bruno@clisp.org>
4337
4338         spawn: Fix incomplete fix.
4339         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4340         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4341         warnings for GNULIB_POSIXCHECK again.
4342         Reported by Eric Blake.
4343
4344 2009-12-31  Bruno Haible  <bruno@clisp.org>
4345
4346         Avoid namespace pollution on glibc systems.
4347         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4348         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4349         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4350         glibc systems.
4351
4352 2009-12-31  Bruno Haible  <bruno@clisp.org>
4353
4354         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4355         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4356         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4357         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4358         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4359         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4360         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4361
4362 2009-12-31  Bruno Haible  <bruno@clisp.org>
4363
4364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4365         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4366         afterwards.
4367
4368 2009-12-31  Bruno Haible  <bruno@clisp.org>
4369
4370         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4371         SYS_UTSNAME_H.
4372
4373 2009-12-31  Bruno Haible  <bruno@clisp.org>
4374
4375         spawn: Fix misapplied patch.
4376         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4377         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4378         warnings for GNULIB_POSIXCHECK.
4379
4380 2009-12-31  Bruno Haible  <bruno@clisp.org>
4381
4382         times: Update after sys_times changed.
4383         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4384         * modules/times (Files): Add it.
4385         (configure.ac): Invoke gl_FUNC_TIMES.
4386
4387 2009-12-31  Bruno Haible  <bruno@clisp.org>
4388
4389         Use AC_C_INLINE where necessary.
4390         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4391         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4392         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4393         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4394         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4395         * m4/mbiter.m4 (gl_MBITER): Likewise.
4396         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4397         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4398         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4399         * modules/u64 (configure.ac): Likewise.
4400
4401 2009-12-31  Bruno Haible  <bruno@clisp.org>
4402
4403         Use AC_C_INLINE instead of module 'inline' where possible.
4404         * modules/inline (Description): Clarify purpose.
4405         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4406         * modules/count-one-bits (Depends-on): Remove inline.
4407         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4408         * modules/openat (Depends-on): Remove inline.
4409         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4410         instead of depending on module 'inline'.
4411         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4412         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4413         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4414         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4415         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4416         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4417         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4418         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4419         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4420         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4421         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4422         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4423         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4424         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4425         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4426         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4427         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4428         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4429         Likewise.
4430         * modules/unictype/property-ascii-hex-digit (Depends-on,
4431         configure.ac): Likewise.
4432         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4433         configure.ac): Likewise.
4434         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4435         configure.ac): Likewise.
4436         * modules/unictype/property-bidi-block-separator (Depends-on,
4437         configure.ac): Likewise.
4438         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4439         configure.ac): Likewise.
4440         * modules/unictype/property-bidi-common-separator (Depends-on,
4441         configure.ac): Likewise.
4442         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4443         Likewise.
4444         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4445         configure.ac): Likewise.
4446         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4447         configure.ac): Likewise.
4448         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4449         configure.ac): Likewise.
4450         * modules/unictype/property-bidi-european-digit (Depends-on,
4451         configure.ac): Likewise.
4452         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4453         configure.ac): Likewise.
4454         * modules/unictype/property-bidi-left-to-right (Depends-on,
4455         configure.ac): Likewise.
4456         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4457         configure.ac): Likewise.
4458         * modules/unictype/property-bidi-other-neutral (Depends-on,
4459         configure.ac): Likewise.
4460         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4461         Likewise.
4462         * modules/unictype/property-bidi-segment-separator (Depends-on,
4463         configure.ac): Likewise.
4464         * modules/unictype/property-bidi-whitespace (Depends-on,
4465         configure.ac): Likewise.
4466         * modules/unictype/property-combining (Depends-on, configure.ac):
4467         Likewise.
4468         * modules/unictype/property-composite (Depends-on, configure.ac):
4469         Likewise.
4470         * modules/unictype/property-currency-symbol (Depends-on,
4471         configure.ac): Likewise.
4472         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4473         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4474         Likewise.
4475         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4476         configure.ac): Likewise.
4477         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4478         Likewise.
4479         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4480         Likewise.
4481         * modules/unictype/property-extender (Depends-on, configure.ac):
4482         Likewise.
4483         * modules/unictype/property-format-control (Depends-on, configure.ac):
4484         Likewise.
4485         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4486         Likewise.
4487         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4488         Likewise.
4489         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4490         Likewise.
4491         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4492         Likewise.
4493         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4494         Likewise.
4495         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4496         Likewise.
4497         * modules/unictype/property-id-start (Depends-on, configure.ac):
4498         Likewise.
4499         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4500         Likewise.
4501         * modules/unictype/property-ids-binary-operator (Depends-on,
4502         configure.ac): Likewise.
4503         * modules/unictype/property-ids-trinary-operator (Depends-on,
4504         configure.ac): Likewise.
4505         * modules/unictype/property-ignorable-control (Depends-on,
4506         configure.ac): Likewise.
4507         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4508         Likewise.
4509         * modules/unictype/property-join-control (Depends-on, configure.ac):
4510         Likewise.
4511         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4512         Likewise.
4513         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4514         Likewise.
4515         * modules/unictype/property-logical-order-exception (Depends-on,
4516         configure.ac): Likewise.
4517         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4518         Likewise.
4519         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4520         * modules/unictype/property-non-break (Depends-on, configure.ac):
4521         Likewise.
4522         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4523         Likewise.
4524         * modules/unictype/property-numeric (Depends-on, configure.ac):
4525         Likewise.
4526         * modules/unictype/property-other-alphabetic (Depends-on,
4527         configure.ac): Likewise.
4528         * modules/unictype/property-other-default-ignorable-code-point
4529         (Depends-on, configure.ac): Likewise.
4530         * modules/unictype/property-other-grapheme-extend (Depends-on,
4531         configure.ac): Likewise.
4532         * modules/unictype/property-other-id-continue (Depends-on,
4533         configure.ac): Likewise.
4534         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4535         Likewise.
4536         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4537         Likewise.
4538         * modules/unictype/property-other-math (Depends-on, configure.ac):
4539         Likewise.
4540         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4541         Likewise.
4542         * modules/unictype/property-paired-punctuation (Depends-on,
4543         configure.ac): Likewise.
4544         * modules/unictype/property-paragraph-separator (Depends-on,
4545         configure.ac): Likewise.
4546         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4547         Likewise.
4548         * modules/unictype/property-pattern-white-space (Depends-on,
4549         configure.ac): Likewise.
4550         * modules/unictype/property-private-use (Depends-on, configure.ac):
4551         Likewise.
4552         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4553         Likewise.
4554         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4555         Likewise.
4556         * modules/unictype/property-radical (Depends-on, configure.ac):
4557         Likewise.
4558         * modules/unictype/property-sentence-terminal (Depends-on,
4559         configure.ac): Likewise.
4560         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4561         Likewise.
4562         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4563         * modules/unictype/property-terminal-punctuation (Depends-on,
4564         configure.ac): Likewise.
4565         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4566         Likewise.
4567         * modules/unictype/property-unassigned-code-value (Depends-on,
4568         configure.ac): Likewise.
4569         * modules/unictype/property-unified-ideograph (Depends-on,
4570         configure.ac): Likewise.
4571         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4572         Likewise.
4573         * modules/unictype/property-variation-selector (Depends-on,
4574         configure.ac): Likewise.
4575         * modules/unictype/property-white-space (Depends-on, configure.ac):
4576         Likewise.
4577         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4578         Likewise.
4579         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4580         Likewise.
4581         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4582         Likewise.
4583         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4584         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4585         Likewise.
4586
4587 2009-12-31  Bruno Haible  <bruno@clisp.org>
4588
4589         Remove unnecessary AC_C_INLINE invocation.
4590         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4591         since 2009-08-21.
4592
4593 2009-12-31  Jim Meyering  <meyering@redhat.com>
4594
4595         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4596         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4597         With this change, we can all remove the gpg_key_ID = ... definition
4598         from our respective cfg.mk files.
4599
4600         maint.mk: create announcement template in ~/, not in /tmp
4601         * top/maint.mk (emit_upload_commands): Adjust.
4602         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4603         Remove temporary file, .ci-msg.
4604
4605 2009-12-31  Eric Blake  <ebb9@byu.net>
4606
4607         link-warning: always build headers with link warnings
4608         * modules/arpa_inet (Makefile.am): Always build replacement
4609         header.
4610         * modules/ctype (Makefile.am): Likewise.
4611         * modules/dirent (Makefile.am): Likewise.
4612         * modules/inttypes (Makefile.am): Likewise.
4613         * modules/langinfo (Makefile.am): Likewise.
4614         * modules/locale (Makefile.am): Likewise.
4615         * modules/spawn (Makefile.am): Likewise.
4616         * modules/sys_file (Makefile.am): Likewise.
4617         * modules/sys_ioctl (Makefile.am): Likewise.
4618         * modules/sys_select (Makefile.am): Likewise.
4619         * modules/sys_socket (Makefile.am): Likewise.
4620         * modules/sys_times (Makefile.am): Likewise.
4621         * modules/sys_utsname (Makefile.am): Likewise.
4622         * modules/sys_wait (Makefile.am): Likewise.
4623         * modules/wchar (Makefile.am): Likewise.
4624         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4625         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4626         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4627         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4628         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4629         Likewise.
4630         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4631         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4632         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4633         Likewise.
4634         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4635         Likewise.
4636         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4637         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4638         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4640         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4641         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4642         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4643         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4644         (gl_WCHAR_H_DEFAULTS): Likewise.
4645
4646 2009-12-31  Eric Blake  <ebb9@byu.net>
4647
4648         signal, spawn: use link warnings
4649         * lib/signal.in.h (sigset_t): Make unconditional.
4650         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4651         (sigpending, sigprocmask, sigaction): Add link warnings.
4652         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4653         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4654         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4655         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4656         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4657         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4658         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4659         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4660         (posix_spawn_file_actions_destroy)
4661         (posix_spawn_file_actions_addopen)
4662         (posix_spawn_file_actions_addclose)
4663         (posix_spawn_file_actions_adddup2): Likewise.
4664         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4665         * tests/test-signal.c (main): Enhance test.
4666
4667         spawn: improve wrapper support
4668         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4669         (gl_SPAWN_H_DEFAULTS): New defaults.
4670         * modules/spawn (Makefile.am): Substitute them.
4671         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4672         Only declare if missing or broken.
4673
4674         sys_times, sys_utsname: use include_next
4675         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4676         header.
4677         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4678         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4679         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4680         * modules/sys_times (Depends-on): Add include_next.
4681         (Makefile.am): Substitute additional values.
4682         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4683         * lib/sys_times.in.h (includes): Include native header, if
4684         available.
4685         * lib/sys_utsname.in.h (includes): Likewise.
4686         * tests/test-sys_times.c (main): Enhance test.
4687
4688         fdutimensat: revert prior patch
4689         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4690         utimens.h.
4691         Reported by Bruno Haible.
4692
4693 2009-12-30  Eric Blake  <ebb9@byu.net>
4694
4695         sys_wait: drop link-warning dependency
4696         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4697         link-warning efforts.
4698         * lib/sys_wait.in.h: Likewise.
4699
4700         fdutimensat: remove bogus dependency
4701         * modules/fdutimensat (Depends-on): Drop inline.
4702
4703         unistd: fix typo
4704         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4705
4706 2009-12-30  Bruno Haible  <bruno@clisp.org>
4707
4708         Fix compilation error with Solaris cc.
4709         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4710         * lib/unicase/u16-is-invariant.c: Likewise.
4711         * lib/unicase/u32-is-invariant.c: Likewise.
4712         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4713
4714 2009-12-30  Bruno Haible  <bruno@clisp.org>
4715
4716         Fix test crash.
4717         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4718         locales.
4719         Reported by Simon Josefsson <simon@josefsson.org>.
4720
4721 2009-12-30  Bruno Haible  <bruno@clisp.org>
4722
4723         Fix compilation error on most platforms.
4724         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4725         Reported by Simon Josefsson <simon@josefsson.org>
4726         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4727
4728 2009-12-30  Eric Blake  <ebb9@byu.net>
4729
4730         futimens, utimensat: work around ntfs-3g bug
4731         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4732         a ctime bug is present, and expand workaround to cover ntfs-3g.
4733         * lib/utimens.c (fdutimens, lutimens): Likewise.
4734         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4735         (validate_timespec): Adjust return value.
4736         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4737         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4738         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4739
4740 2009-12-29  Eric Blake  <ebb9@byu.net>
4741
4742         link-warning: make usage consistent
4743         * modules/ctype (Depends-on): Add link-warning.
4744         (Makefile.am): Update rules accordingly.
4745         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4746         * modules/locale (Depends-on, Makefile.am): Likewise.
4747         * modules/sys_file (Makefile.am): Likewise.
4748         * modules/getopt-posix (Makefile.am): Delete unused link warning
4749         efforts.
4750         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4751         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4752         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4753         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4754
4755         stdio: remove unused variables
4756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4757         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4758         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4759
4760         tests: test more substitute headers
4761         * modules/ctype-tests: New file.
4762         * modules/dirent-tests: Likewise.
4763         * modules/spawn-tests: Likewise.
4764         * modules/sys_file-tests: Likewise.
4765         * modules/sys_ioctl-tests: Likewise.
4766         * modules/sys_wait-tests: Likewise.
4767         * tests/test-ctype.c: Likewise.
4768         * tests/test-dirent.c: Likewise.
4769         * tests/test-spawn.c: Likewise.
4770         * tests/test-sys_file.c: Likewise.
4771         * tests/test-sys_ioctl.c: Likewise.
4772         * tests/test-sys_wait.c: Likewise.
4773         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4774         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4775         whether or not flock is in use.
4776
4777         tests: remove License section from module
4778         * modules/arpa_inet-tests: Remove unneeded section.
4779         * modules/byteswap-tests: Likewise.
4780         * modules/ceilf-tests: Likewise.
4781         * modules/ceill-tests: Likewise.
4782         * modules/crypto/des-tests: Likewise.
4783         * modules/crypto/gc-arcfour-tests: Likewise.
4784         * modules/crypto/gc-arctwo-tests: Likewise.
4785         * modules/crypto/gc-des-tests: Likewise.
4786         * modules/crypto/gc-hmac-md5-tests: Likewise.
4787         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4788         * modules/crypto/gc-md2-tests: Likewise.
4789         * modules/crypto/gc-md4-tests: Likewise.
4790         * modules/crypto/gc-md5-tests: Likewise.
4791         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4792         * modules/crypto/gc-rijndael-tests: Likewise.
4793         * modules/crypto/gc-sha1-tests: Likewise.
4794         * modules/crypto/gc-tests: Likewise.
4795         * modules/crypto/md2-tests: Likewise.
4796         * modules/crypto/md4-tests: Likewise.
4797         * modules/fcntl-h-tests: Likewise.
4798         * modules/floorf-tests: Likewise.
4799         * modules/floorl-tests: Likewise.
4800         * modules/frexp-nolibm-tests: Likewise.
4801         * modules/frexp-tests: Likewise.
4802         * modules/frexpl-nolibm-tests: Likewise.
4803         * modules/frexpl-tests: Likewise.
4804         * modules/getaddrinfo-tests: Likewise.
4805         * modules/inttypes-tests: Likewise.
4806         * modules/isfinite-tests: Likewise.
4807         * modules/isinf-tests: Likewise.
4808         * modules/ldexpl-tests: Likewise.
4809         * modules/locale-tests: Likewise.
4810         * modules/math-tests: Likewise.
4811         * modules/netdb-tests: Likewise.
4812         * modules/netinet_in-tests: Likewise.
4813         * modules/printf-frexp-tests: Likewise.
4814         * modules/printf-frexpl-tests: Likewise.
4815         * modules/priv-set-tests: Likewise.
4816         * modules/random_r-tests: Likewise.
4817         * modules/round-tests: Likewise.
4818         * modules/roundf-tests: Likewise.
4819         * modules/roundl-tests: Likewise.
4820         * modules/search-tests: Likewise.
4821         * modules/select-tests: Likewise.
4822         * modules/signal-tests: Likewise.
4823         * modules/stdbool-tests: Likewise.
4824         * modules/stddef-tests: Likewise.
4825         * modules/stdint-tests: Likewise.
4826         * modules/stdio-tests: Likewise.
4827         * modules/stdlib-tests: Likewise.
4828         * modules/string-tests: Likewise.
4829         * modules/strings-tests: Likewise.
4830         * modules/sys_select-tests: Likewise.
4831         * modules/sys_socket-tests: Likewise.
4832         * modules/sys_stat-tests: Likewise.
4833         * modules/sys_time-tests: Likewise.
4834         * modules/sys_utsname-tests: Likewise.
4835         * modules/sysexits-tests: Likewise.
4836         * modules/time-tests: Likewise.
4837         * modules/trunc-tests: Likewise.
4838         * modules/truncf-tests: Likewise.
4839         * modules/truncl-tests: Likewise.
4840         * modules/tsearch-tests: Likewise.
4841         * modules/unistd-tests: Likewise.
4842         * modules/wchar-tests: Likewise.
4843         * modules/wctype-tests: Likewise.
4844
4845         tests: fix license on several tests
4846         * tests/test-des.c: Update to GPLv3+.
4847         * tests/test-flock.c: Likewise.
4848         * tests/test-fsync.c: Likewise.
4849         * tests/test-futimens.h: Likewise.
4850         * tests/test-gc-arcfour.c: Likewise.
4851         * tests/test-gc-arctwo.c: Likewise.
4852         * tests/test-gc-des.c: Likewise.
4853         * tests/test-gc-hmac-md5.c: Likewise.
4854         * tests/test-gc-hmac-sha1.c: Likewise.
4855         * tests/test-gc-md2.c: Likewise.
4856         * tests/test-gc-md4.c: Likewise.
4857         * tests/test-gc-md5.c: Likewise.
4858         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4859         * tests/test-gc-rijndael.c: Likewise.
4860         * tests/test-gc-sha1.c: Likewise.
4861         * tests/test-gc.c: Likewise.
4862         * tests/test-getcwd.c: Likewise.
4863         * tests/test-link.c: Likewise.
4864         * tests/test-link.h: Likewise.
4865         * tests/test-lutimens.h: Likewise.
4866         * tests/test-md2.c: Likewise.
4867         * tests/test-md4.c: Likewise.
4868         * tests/test-mkdir.h: Likewise.
4869         * tests/test-rename.c: Likewise.
4870         * tests/test-rename.h: Likewise.
4871         * tests/test-safe-alloc.c: Likewise.
4872         * tests/test-utimens-common.h: Likewise.
4873         * tests/test-utimens.h: Likewise.
4874
4875         maint: sync license texts
4876         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4877         * doc/gpl-3.0.texi: Revert copyright year update.
4878         * doc/lgpl-3.0.texi: Likewise.
4879
4880 2009-12-29  Jim Meyering  <meyering@redhat.com>
4881
4882         update nearly all FSF copyright year lists to include 2009
4883         The files named by the following are exempted:
4884             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4885               test -f "$dst" && { echo "$dst"; continue; }
4886               test -d "$dst" || continue
4887               echo "$dst"/$(basename "$src")
4888             done > exempt
4889             git ls-files tests/unictype >> exempt
4890         In the remaining files, convert to all-interval notation if
4891         - there is already at least one year interval like 2000-2003
4892         - the file is maintained by me
4893         - the file is in lib/uni*/, where that style already prevails
4894         Otherwise, use update-copyright's default.
4895
4896 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4897         and Eric Blake  <ebb9@byu.net>
4898
4899         tests: don't require debug system() to pass
4900         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4901         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4902         * tests/test-unlink.h (test_unlink_func): Likewise.
4903         * tests/test-fstatat.c (main): ...into callers.
4904         * tests/test-lstat.c (main): Likewise.
4905         * tests/test-rmdir.c (main): Likewise.
4906         * tests/test-unlink.c (main): Likewise.
4907         * tests/test-unlinkat.c (main): Likewise.
4908         * tests/test-areadlink-with-size.c (main): Don't require a
4909         debug-only system call to pass, aiding cross-testing to mingw.
4910         * tests/test-areadlink.c (main): Likewise.
4911         * tests/test-areadlinkat-with-size.c (main): Likewise.
4912         * tests/test-areadlinkat.c (main): Likewise.
4913         * tests/test-canonicalize-lgpl.c (main): Likewise.
4914         * tests/test-canonicalize.c (main): Likewise.
4915         * tests/test-chown.c (main): Likewise.
4916         * tests/test-fchownat.c (main): Likewise.
4917         * tests/test-lchown.c (main): Likewise.
4918         * tests/test-fdutimensat.c (main): Likewise.
4919         * tests/test-futimens.c (main): Likewise.
4920         * tests/test-link.c (main): Likewise.
4921         * tests/test-linkat.c (main): Likewise.
4922         * tests/test-mkdir.c (main): Likewise.
4923         * tests/test-mkdirat.c (main): Likewise.
4924         * tests/test-mkfifo.c (main): Likewise.
4925         * tests/test-mkfifoat.c (main): Likewise.
4926         * tests/test-mknod.c (main): Likewise.
4927         * tests/test-readlink.c (main): Likewise.
4928         * tests/test-remove.c (main): Likewise.
4929         * tests/test-rename.c (main): Likewise.
4930         * tests/test-renameat.c (main): Likewise.
4931         * tests/test-symlink.c (main): Likewise.
4932         * tests/test-symlinkat.c (main): Likewise.
4933         * tests/test-utimens.c (main): Likewise.
4934         * tests/test-utimensat.c (main): Likewise.
4935
4936 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4937
4938         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4939         on $(UNUSED_PARAMETER_H) to avoid build failure.
4940
4941 2009-12-28  Jim Meyering  <meyering@redhat.com>
4942
4943         update-copyright: you may specify a max. line length other than 72
4944         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4945
4946         maint: use consistent FSF copyright line syntax
4947         * lib/posixtm.c: Add missing comma in FSF copyright line.
4948         * lib/posixtm.h: Likewise.
4949         * lib/getugroups.c: Add missing ", Inc.".
4950
4951         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4952         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4953         FSF copyright line.  Remove trailing blanks.
4954
4955 2009-12-28  Eric Blake  <ebb9@byu.net>
4956
4957         test-dup2: reduce dependencies
4958         * modules/cloexec (Configure.ac): Set witness.
4959         * modules/dup2-tests (Depends-on): Drop cloexec.
4960         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4961         not present.
4962         Suggested by Bruno Haible.
4963
4964 2009-12-26  Bruno Haible  <bruno@clisp.org>
4965
4966         Remove an unneeded dependency.
4967         * modules/fseterr (Depends-on): Remove dup2.
4968
4969 2009-12-26  Eric Blake  <ebb9@byu.net>
4970
4971         tests: use macros.h in more places
4972         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4973         (ASSERT_STREAM): Provide default of stderr.
4974         * tests/test-dirent-safer.c: Include macros.h, using alternate
4975         stream for assertions.
4976         * tests/test-dup-safer.c: Likewise.
4977         * tests/test-freopen-safer.c: Likewise.
4978         * tests/test-getopt.c: Likewise.
4979         * tests/test-openat-safer.c: Likewise.
4980         * tests/test-pipe.c: Likewise.
4981         * tests/test-popen-safer.c: Likewise.
4982         * modules/dirent-safer-tests (Files): Include macros.h.
4983         * modules/unistd-safer-tests (Files): Likewise.
4984         * modules/freopen-safer-tests (Files): Likewise.
4985         * modules/getopt-posix-tests (Files): Likewise.
4986         * modules/openat-safer-tests (Files): Likewise.
4987         * modules/pipe-tests (Files): Likewise.
4988
4989 2009-12-26  Bruno Haible  <bruno@clisp.org>
4990
4991         javacomp: Portability fix.
4992         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4993         that it also works on Solaris.
4994
4995 2009-12-26  Bruno Haible  <bruno@clisp.org>
4996
4997         localename: Fix storage allocation of gl_locale_name_thread's result.
4998         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4999         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5000         all platforms that have 'uselocale'.
5001         (gl_locale_name_thread_unsafe): New function, extracted from
5002         gl_locale_name_thread.
5003         (gl_locale_name_thread): Call struniq on all platforms that have
5004         'uselocale'.
5005         * tests/test-localename.c (test_locale_name_thread): Check that the
5006         resulting strings are permanently allocated.
5007         * modules/localename-tests (Depends-on): Add strdup.
5008
5009 2009-12-26  Bruno Haible  <bruno@clisp.org>
5010
5011         * tests/test-localename.c (categories): Fill in the strings.
5012
5013 2009-12-26  Jim Meyering  <meyering@redhat.com>
5014
5015         isdir: complete the removal of m4/isdir.m4
5016         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5017
5018         isdir: clean up, since at least grep still uses it
5019         * lib/isdir.c: Include "isdir.h".
5020         (S_ISDIR): Remove now-unneeded definition.
5021         * modules/isdir (Files): Add lib/isdir.h.
5022         * lib/isdir.h: New file, with declaration.
5023         * m4/isdir.m4: Remove file -- unneeded.
5024
5025 2009-12-25  Bruno Haible  <bruno@clisp.org>
5026
5027         selinux-h: Make generated .h files standalone.
5028         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5029         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5030         * lib/se-selinux.in.h: Likewise.
5031         * modules/selinux-h (Depends-on): Add unused-parameter.
5032         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5033         selinux/selinux.h and selinux/context.h.
5034         Suggested by Eric Blake.
5035
5036 2009-12-25  Bruno Haible  <bruno@clisp.org>
5037
5038         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5039         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5040         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5041         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5042         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5043
5044 2009-12-24  Bruno Haible  <bruno@clisp.org>
5045
5046         openat: Fix warning.
5047         * lib/openat-proc.c: Include <unistd.h>.
5048
5049 2009-12-24  Bruno Haible  <bruno@clisp.org>
5050
5051         New module 'unused-parameter'.
5052         * build-aux/unused-parameter.h: New file, extracted from earlier
5053         gnulib-common.m4.
5054         * modules/unused-parameter: New file.
5055         * lib/unistr.h: Include unused-parameter.h.
5056         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5057         _GL_UNUSED.
5058         * modules/unistr/base (Depends-on): Add unused-parameter.
5059
5060 2009-12-24  Bruno Haible  <bruno@clisp.org>
5061
5062         Add missing dependencies to 'extensions' module.
5063         * m4/extensions.m4: Add comment.
5064         * modules/accept4 (Depends-on): Add extensions.
5065         * modules/dup3 (Depends-on): Likewise.
5066         * modules/fcntl (Depends-on): Likewise.
5067         * modules/futimens (Depends-on): Likewise.
5068         * modules/mknod (Depends-on): Likewise.
5069         * modules/pipe2 (Depends-on): Likewise.
5070         * modules/stat-time (Depends-on): Likewise.
5071         * modules/strcasestr-simple (Depends-on): Likewise.
5072         * modules/strsignal (Depends-on): Likewise.
5073         * modules/utimensat (Depends-on): Likewise.
5074         * modules/localcharset (Depends-on): Likewise. Needed because of
5075         gl_FCNTL_O_FLAGS.
5076         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5077         AC_TYPE_MBSTATE_T.
5078         * modules/wcsnrtombs (Depends-on): Likewise.
5079         * modules/wcsrtombs (Depends-on): Likewise.
5080
5081 2009-12-24  Bruno Haible  <bruno@clisp.org>
5082
5083         binary-io: Avoid gcc warning due to SET_BINARY.
5084         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5085         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5086
5087 2009-12-24  Bruno Haible  <bruno@clisp.org>
5088
5089         Avoid future namespace pollution on glibc systems.
5090         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5091         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5092         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5093         glibc systems.
5094
5095 2009-12-24  Bruno Haible  <bruno@clisp.org>
5096
5097         Refactor common macros used in tests.
5098         * tests/macros.h: New file.
5099         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5100         and/or <stdlib.h>, if appropriate.
5101         (ASSERT, SIZEOF): Remove macros.
5102         * tests/test-areadlink-with-size.c: Likewise.
5103         * tests/test-areadlinkat.c: Likewise.
5104         * tests/test-areadlinkat-with-size.c: Likewise.
5105         * tests/test-argmatch.c: Likewise.
5106         * tests/test-argv-iter.c: Likewise.
5107         * tests/test-array-mergesort.c: Likewise.
5108         * tests/test-array_list.c: Likewise.
5109         * tests/test-array_oset.c: Likewise.
5110         * tests/test-avltree_list.c: Likewise.
5111         * tests/test-avltree_oset.c: Likewise.
5112         * tests/test-avltreehash_list.c: Likewise.
5113         * tests/test-base64.c: Likewise.
5114         * tests/test-binary-io.c: Likewise.
5115         * tests/test-bitrotate.c: Likewise.
5116         * tests/test-btowc.c: Likewise.
5117         * tests/test-byteswap.c: Likewise.
5118         * tests/test-c-ctype.c: Likewise.
5119         * tests/test-c-stack.c: Likewise.
5120         * tests/test-c-strcasecmp.c: Likewise.
5121         * tests/test-c-strcasestr.c: Likewise.
5122         * tests/test-c-strncasecmp.c: Likewise.
5123         * tests/test-c-strstr.c: Likewise.
5124         * tests/test-canonicalize-lgpl.c: Likewise.
5125         * tests/test-canonicalize.c: Likewise.
5126         * tests/test-carray_list.c: Likewise.
5127         * tests/test-ceilf1.c: Likewise.
5128         * tests/test-ceilf2.c: Likewise.
5129         * tests/test-ceill.c: Likewise.
5130         * tests/test-chown.c: Likewise.
5131         * tests/test-cloexec.c: Likewise.
5132         * tests/test-copy-acl.c: Likewise.
5133         * tests/test-copy-file.c: Likewise.
5134         * tests/test-count-one-bits.c: Likewise.
5135         * tests/test-dprintf-posix.c: Likewise.
5136         * tests/test-dup2.c: Likewise.
5137         * tests/test-dup3.c: Likewise.
5138         * tests/test-duplocale.c: Likewise.
5139         * tests/test-fbufmode.c: Likewise.
5140         * tests/test-fchdir.c: Likewise.
5141         * tests/test-fchownat.c: Likewise.
5142         * tests/test-fcntl-safer.c: Likewise.
5143         * tests/test-fcntl.c: Likewise.
5144         * tests/test-fdopendir.c: Likewise.
5145         * tests/test-fdutimensat.c: Likewise.
5146         * tests/test-fflush2.c: Likewise.
5147         * tests/test-file-has-acl.c: Likewise.
5148         * tests/test-filevercmp.c: Likewise.
5149         * tests/test-flock.c: Likewise.
5150         * tests/test-floorf1.c: Likewise.
5151         * tests/test-floorf2.c: Likewise.
5152         * tests/test-floorl.c: Likewise.
5153         * tests/test-fnmatch.c: Likewise.
5154         * tests/test-fopen.h: Likewise.
5155         * tests/test-fpending.c: Likewise.
5156         * tests/test-fprintf-posix.c: Likewise.
5157         * tests/test-fpurge.c: Likewise.
5158         * tests/test-freadable.c: Likewise.
5159         * tests/test-freadahead.c: Likewise.
5160         * tests/test-freading.c: Likewise.
5161         * tests/test-freadptr.c: Likewise.
5162         * tests/test-freadptr2.c: Likewise.
5163         * tests/test-freadseek.c: Likewise.
5164         * tests/test-freopen.c: Likewise.
5165         * tests/test-frexp.c: Likewise.
5166         * tests/test-frexpl.c: Likewise.
5167         * tests/test-fseek.c: Likewise.
5168         * tests/test-fseeko.c: Likewise.
5169         * tests/test-fstatat.c: Likewise.
5170         * tests/test-fstrcmp.c: Likewise.
5171         * tests/test-fsync.c: Likewise.
5172         * tests/test-ftell.c: Likewise.
5173         * tests/test-ftello.c: Likewise.
5174         * tests/test-func.c: Likewise.
5175         * tests/test-futimens.c: Likewise.
5176         * tests/test-fwritable.c: Likewise.
5177         * tests/test-fwriting.c: Likewise.
5178         * tests/test-getcwd.c: Likewise.
5179         * tests/test-getdate.c: Likewise.
5180         * tests/test-getdelim.c: Likewise.
5181         * tests/test-getdtablesize.c: Likewise.
5182         * tests/test-getgroups.c: Likewise.
5183         * tests/test-getline.c: Likewise.
5184         * tests/test-getndelim2.c: Likewise.
5185         * tests/test-glob.c: Likewise.
5186         * tests/test-hash.c: Likewise.
5187         * tests/test-i-ring.c: Likewise.
5188         * tests/test-iconv-utf.c: Likewise.
5189         * tests/test-iconv.c: Likewise.
5190         * tests/test-idpriv-drop.c: Likewise.
5191         * tests/test-idpriv-droptemp.c: Likewise.
5192         * tests/test-inet_ntop.c: Likewise.
5193         * tests/test-inet_pton.c: Likewise.
5194         * tests/test-isblank.c: Likewise.
5195         * tests/test-isfinite.c: Likewise.
5196         * tests/test-isinf.c: Likewise.
5197         * tests/test-isnan.c: Likewise.
5198         * tests/test-isnand.h: Likewise.
5199         * tests/test-isnanf.h: Likewise.
5200         * tests/test-isnanl.h: Likewise.
5201         * tests/test-lchown.c: Likewise.
5202         * tests/test-ldexpl.c: Likewise.
5203         * tests/test-link.c: Likewise.
5204         * tests/test-linkat.c: Likewise.
5205         * tests/test-linked_list.c: Likewise.
5206         * tests/test-linkedhash_list.c: Likewise.
5207         * tests/test-localename.c: Likewise.
5208         * tests/test-lseek.c: Likewise.
5209         * tests/test-lstat.c: Likewise.
5210         * tests/test-mbmemcasecmp.c: Likewise.
5211         * tests/test-mbmemcasecoll.c: Likewise.
5212         * tests/test-mbrtowc.c: Likewise.
5213         * tests/test-mbscasecmp.c: Likewise.
5214         * tests/test-mbscasestr1.c: Likewise.
5215         * tests/test-mbscasestr2.c: Likewise.
5216         * tests/test-mbscasestr3.c: Likewise.
5217         * tests/test-mbscasestr4.c: Likewise.
5218         * tests/test-mbschr.c: Likewise.
5219         * tests/test-mbscspn.c: Likewise.
5220         * tests/test-mbsinit.c: Likewise.
5221         * tests/test-mbsncasecmp.c: Likewise.
5222         * tests/test-mbsnrtowcs.c: Likewise.
5223         * tests/test-mbspbrk.c: Likewise.
5224         * tests/test-mbspcasecmp.c: Likewise.
5225         * tests/test-mbsrchr.c: Likewise.
5226         * tests/test-mbsrtowcs.c: Likewise.
5227         * tests/test-mbsspn.c: Likewise.
5228         * tests/test-mbsstr1.c: Likewise.
5229         * tests/test-mbsstr2.c: Likewise.
5230         * tests/test-mbsstr3.c: Likewise.
5231         * tests/test-memchr.c: Likewise.
5232         * tests/test-memchr2.c: Likewise.
5233         * tests/test-memcmp.c: Likewise.
5234         * tests/test-memmem.c: Likewise.
5235         * tests/test-memrchr.c: Likewise.
5236         * tests/test-mkdir.c: Likewise.
5237         * tests/test-mkdirat.c: Likewise.
5238         * tests/test-mkfifo.c: Likewise.
5239         * tests/test-mkfifoat.c: Likewise.
5240         * tests/test-mknod.c: Likewise.
5241         * tests/test-nanosleep.c: Likewise.
5242         * tests/test-nl_langinfo.c: Likewise.
5243         * tests/test-obstack-printf.c: Likewise.
5244         * tests/test-open.c: Likewise.
5245         * tests/test-openat.c: Likewise.
5246         * tests/test-pipe-filter-gi1.c: Likewise.
5247         * tests/test-pipe-filter-gi2-main.c: Likewise.
5248         * tests/test-pipe-filter-ii1.c: Likewise.
5249         * tests/test-pipe-filter-ii2-main.c: Likewise.
5250         * tests/test-pipe2.c: Likewise.
5251         * tests/test-popen.h: Likewise.
5252         * tests/test-posixtm.c: Likewise.
5253         * tests/test-pread.c: Likewise.
5254         * tests/test-printf-frexp.c: Likewise.
5255         * tests/test-printf-frexpl.c: Likewise.
5256         * tests/test-printf-posix.c: Likewise.
5257         * tests/test-priv-set.c: Likewise.
5258         * tests/test-quotearg.c: Likewise.
5259         * tests/test-random_r.c: Likewise.
5260         * tests/test-rawmemchr.c: Likewise.
5261         * tests/test-rbtree_list.c: Likewise.
5262         * tests/test-rbtree_oset.c: Likewise.
5263         * tests/test-rbtreehash_list.c: Likewise.
5264         * tests/test-readlink.c: Likewise.
5265         * tests/test-remove.c: Likewise.
5266         * tests/test-rename.c: Likewise.
5267         * tests/test-renameat.c: Likewise.
5268         * tests/test-rmdir.c: Likewise.
5269         * tests/test-round1.c: Likewise.
5270         * tests/test-roundf1.c: Likewise.
5271         * tests/test-roundl.c: Likewise.
5272         * tests/test-safe-alloc.c: Likewise.
5273         * tests/test-sameacls.c: Likewise.
5274         * tests/test-set-mode-acl.c: Likewise.
5275         * tests/test-setenv.c: Likewise.
5276         * tests/test-sigaction.c: Likewise.
5277         * tests/test-signbit.c: Likewise.
5278         * tests/test-sleep.c: Likewise.
5279         * tests/test-snprintf-posix.c: Likewise.
5280         * tests/test-snprintf.c: Likewise.
5281         * tests/test-sprintf-posix.c: Likewise.
5282         * tests/test-stat-time.c: Likewise.
5283         * tests/test-stat.c: Likewise.
5284         * tests/test-strcasestr.c: Likewise.
5285         * tests/test-strchrnul.c: Likewise.
5286         * tests/test-strerror.c: Likewise.
5287         * tests/test-striconv.c: Likewise.
5288         * tests/test-striconveh.c: Likewise.
5289         * tests/test-striconveha.c: Likewise.
5290         * tests/test-strsignal.c: Likewise.
5291         * tests/test-strstr.c: Likewise.
5292         * tests/test-strtod.c: Likewise.
5293         * tests/test-strverscmp.c: Likewise.
5294         * tests/test-symlink.c: Likewise.
5295         * tests/test-symlinkat.c: Likewise.
5296         * tests/test-trunc1.c: Likewise.
5297         * tests/test-trunc2.c: Likewise.
5298         * tests/test-truncf1.c: Likewise.
5299         * tests/test-truncf2.c: Likewise.
5300         * tests/test-truncl.c: Likewise.
5301         * tests/test-uname.c: Likewise.
5302         * tests/test-unlink.c: Likewise.
5303         * tests/test-unlinkat.c: Likewise.
5304         * tests/test-unsetenv.c: Likewise.
5305         * tests/test-usleep.c: Likewise.
5306         * tests/test-utimens.c: Likewise.
5307         * tests/test-utimensat.c: Likewise.
5308         * tests/test-vasnprintf-posix.c: Likewise.
5309         * tests/test-vasnprintf-posix2.c: Likewise.
5310         * tests/test-vasnprintf.c: Likewise.
5311         * tests/test-vasprintf-posix.c: Likewise.
5312         * tests/test-vasprintf.c: Likewise.
5313         * tests/test-vdprintf-posix.c: Likewise.
5314         * tests/test-vfprintf-posix.c: Likewise.
5315         * tests/test-vprintf-posix.c: Likewise.
5316         * tests/test-vsnprintf-posix.c: Likewise.
5317         * tests/test-vsnprintf.c: Likewise.
5318         * tests/test-vsprintf-posix.c: Likewise.
5319         * tests/test-wcrtomb.c: Likewise.
5320         * tests/test-wcsnrtombs.c: Likewise.
5321         * tests/test-wcsrtombs.c: Likewise.
5322         * tests/test-wctype.c: Likewise.
5323         * tests/test-wcwidth.c: Likewise.
5324         * tests/test-xfprintf-posix.c: Likewise.
5325         * tests/test-xmemdup0.c: Likewise.
5326         * tests/test-xprintf-posix.c: Likewise.
5327         * tests/test-xvasprintf.c: Likewise.
5328         * tests/unicase/test-locale-language.c: Likewise.
5329         * tests/unicase/test-mapping-part1.h: Likewise.
5330         * tests/unicase/test-predicate-part1.h: Likewise.
5331         * tests/unicase/test-u8-casecmp.c: Likewise.
5332         * tests/unicase/test-u8-casecoll.c: Likewise.
5333         * tests/unicase/test-u8-casefold.c: Likewise.
5334         * tests/unicase/test-u8-is-cased.c: Likewise.
5335         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5336         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5337         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5338         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5339         * tests/unicase/test-u8-tolower.c: Likewise.
5340         * tests/unicase/test-u8-totitle.c: Likewise.
5341         * tests/unicase/test-u8-toupper.c: Likewise.
5342         * tests/unicase/test-u16-casecmp.c: Likewise.
5343         * tests/unicase/test-u16-casecoll.c: Likewise.
5344         * tests/unicase/test-u16-casefold.c: Likewise.
5345         * tests/unicase/test-u16-is-cased.c: Likewise.
5346         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5347         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5348         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5349         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5350         * tests/unicase/test-u16-tolower.c: Likewise.
5351         * tests/unicase/test-u16-totitle.c: Likewise.
5352         * tests/unicase/test-u16-toupper.c: Likewise.
5353         * tests/unicase/test-u32-casecmp.c: Likewise.
5354         * tests/unicase/test-u32-casecoll.c: Likewise.
5355         * tests/unicase/test-u32-casefold.c: Likewise.
5356         * tests/unicase/test-u32-is-cased.c: Likewise.
5357         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5358         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5359         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5360         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5361         * tests/unicase/test-u32-tolower.c: Likewise.
5362         * tests/unicase/test-u32-totitle.c: Likewise.
5363         * tests/unicase/test-u32-toupper.c: Likewise.
5364         * tests/unicase/test-ulc-casecmp.c: Likewise.
5365         * tests/unicase/test-ulc-casecoll.c: Likewise.
5366         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5367         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5368         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5369         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5370         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5371         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5372         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5373         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5374         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5375         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5376         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5377         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5378         * tests/unictype/test-bidi_byname.c: Likewise.
5379         * tests/unictype/test-bidi_name.c: Likewise.
5380         * tests/unictype/test-bidi_of.c: Likewise.
5381         * tests/unictype/test-bidi_test.c: Likewise.
5382         * tests/unictype/test-block_list.c: Likewise.
5383         * tests/unictype/test-block_of.c: Likewise.
5384         * tests/unictype/test-block_test.c: Likewise.
5385         * tests/unictype/test-categ_and.c: Likewise.
5386         * tests/unictype/test-categ_and_not.c: Likewise.
5387         * tests/unictype/test-categ_byname.c: Likewise.
5388         * tests/unictype/test-categ_name.c: Likewise.
5389         * tests/unictype/test-categ_none.c: Likewise.
5390         * tests/unictype/test-categ_of.c: Likewise.
5391         * tests/unictype/test-categ_or.c: Likewise.
5392         * tests/unictype/test-categ_test_withtable.c: Likewise.
5393         * tests/unictype/test-combining.c: Likewise.
5394         * tests/unictype/test-decdigit.c: Likewise.
5395         * tests/unictype/test-digit.c: Likewise.
5396         * tests/unictype/test-mirror.c: Likewise.
5397         * tests/unictype/test-numeric.c: Likewise.
5398         * tests/unictype/test-pr_byname.c: Likewise.
5399         * tests/unictype/test-pr_test.c: Likewise.
5400         * tests/unictype/test-predicate-part1.h: Likewise.
5401         * tests/unictype/test-scripts.c: Likewise.
5402         * tests/unictype/test-sy_c_ident.c: Likewise.
5403         * tests/unictype/test-sy_java_ident.c: Likewise.
5404         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5405         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5406         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5407         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5408         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5409         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5410         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5411         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5412         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5413         * tests/uninorm/test-compat-decomposition.c: Likewise.
5414         * tests/uninorm/test-composition.c: Likewise.
5415         * tests/uninorm/test-decomposing-form.c: Likewise.
5416         * tests/uninorm/test-decomposition.c: Likewise.
5417         * tests/uninorm/test-u8-nfc.c: Likewise.
5418         * tests/uninorm/test-u8-nfd.c: Likewise.
5419         * tests/uninorm/test-u8-nfkc.c: Likewise.
5420         * tests/uninorm/test-u8-nfkd.c: Likewise.
5421         * tests/uninorm/test-u8-normcmp.c: Likewise.
5422         * tests/uninorm/test-u8-normcoll.c: Likewise.
5423         * tests/uninorm/test-u16-nfc.c: Likewise.
5424         * tests/uninorm/test-u16-nfd.c: Likewise.
5425         * tests/uninorm/test-u16-nfkc.c: Likewise.
5426         * tests/uninorm/test-u16-nfkd.c: Likewise.
5427         * tests/uninorm/test-u16-normcmp.c: Likewise.
5428         * tests/uninorm/test-u16-normcoll.c: Likewise.
5429         * tests/uninorm/test-u32-nfc.c: Likewise.
5430         * tests/uninorm/test-u32-nfd.c: Likewise.
5431         * tests/uninorm/test-u32-nfkc.c: Likewise.
5432         * tests/uninorm/test-u32-nfkd.c: Likewise.
5433         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5434         * tests/uninorm/test-u32-normcmp.c: Likewise.
5435         * tests/uninorm/test-u32-normcoll.c: Likewise.
5436         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5437         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5438         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5439         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5440         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5441         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5442         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5443         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5444         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5445         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5446         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5447         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5448         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5449         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5450         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5451         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5452         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5453         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5454         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5455         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5456         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5457         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5458         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5459         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5460         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5461         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5462         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5463         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5464         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5465         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5466         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5467         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5468         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5469         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5470         * tests/uniwidth/test-u8-width.c: Likewise.
5471         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5472         * tests/uniwidth/test-u16-width.c: Likewise.
5473         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5474         * tests/uniwidth/test-u32-width.c: Likewise.
5475         * tests/uniwidth/test-uc_width.c: Likewise.
5476         * tests/uniwidth/test-uc_width2.c: Likewise.
5477         * modules/acl-tests (Files): Add tests/macros.h.
5478         * modules/areadlink-tests (Files): Likewise.
5479         * modules/areadlink-with-size-tests (Files): Likewise.
5480         * modules/areadlinkat-tests (Files): Likewise.
5481         * modules/areadlinkat-with-size-tests (Files): Likewise.
5482         * modules/argmatch-tests (Files): Likewise.
5483         * modules/argv-iter-tests (Files): Likewise.
5484         * modules/array-list-tests (Files): Likewise.
5485         * modules/array-mergesort-tests (Files): Likewise.
5486         * modules/array-oset-tests (Files): Likewise.
5487         * modules/avltree-list-tests (Files): Likewise.
5488         * modules/avltree-oset-tests (Files): Likewise.
5489         * modules/avltreehash-list-tests (Files): Likewise.
5490         * modules/base64-tests (Files): Likewise.
5491         * modules/binary-io-tests (Files): Likewise.
5492         * modules/bitrotate-tests (Files): Likewise.
5493         * modules/btowc-tests (Files): Likewise.
5494         * modules/byteswap-tests (Files): Likewise.
5495         * modules/c-ctype-tests (Files): Likewise.
5496         * modules/c-stack-tests (Files): Likewise.
5497         * modules/c-strcase-tests (Files): Likewise.
5498         * modules/c-strcasestr-tests (Files): Likewise.
5499         * modules/c-strstr-tests (Files): Likewise.
5500         * modules/canonicalize-lgpl-tests (Files): Likewise.
5501         * modules/canonicalize-tests (Files): Likewise.
5502         * modules/carray-list-tests (Files): Likewise.
5503         * modules/ceilf-tests (Files): Likewise.
5504         * modules/ceill-tests (Files): Likewise.
5505         * modules/chown-tests (Files): Likewise.
5506         * modules/cloexec-tests (Files): Likewise.
5507         * modules/copy-file-tests (Files): Likewise.
5508         * modules/count-one-bits-tests (Files): Likewise.
5509         * modules/dprintf-posix-tests (Files): Likewise.
5510         * modules/dup2-tests (Files): Likewise.
5511         * modules/dup3-tests (Files): Likewise.
5512         * modules/duplocale-tests (Files): Likewise.
5513         * modules/fbufmode-tests (Files): Likewise.
5514         * modules/fchdir-tests (Files): Likewise.
5515         * modules/fcntl-safer-tests (Files): Likewise.
5516         * modules/fcntl-tests (Files): Likewise.
5517         * modules/fdopendir-tests (Files): Likewise.
5518         * modules/fdutimensat-tests (Files): Likewise.
5519         * modules/fflush-tests (Files): Likewise.
5520         * modules/filevercmp-tests (Files): Likewise.
5521         * modules/flock-tests (Files): Likewise.
5522         * modules/floorf-tests (Files): Likewise.
5523         * modules/floorl-tests (Files): Likewise.
5524         * modules/fnmatch-tests (Files): Likewise.
5525         * modules/fopen-safer-tests (Files): Likewise.
5526         * modules/fopen-tests (Files): Likewise.
5527         * modules/fpending-tests (Files): Likewise.
5528         * modules/fprintf-posix-tests (Files): Likewise.
5529         * modules/fpurge-tests (Files): Likewise.
5530         * modules/freadable-tests (Files): Likewise.
5531         * modules/freadahead-tests (Files): Likewise.
5532         * modules/freading-tests (Files): Likewise.
5533         * modules/freadptr-tests (Files): Likewise.
5534         * modules/freadseek-tests (Files): Likewise.
5535         * modules/freopen-tests (Files): Likewise.
5536         * modules/frexp-nolibm-tests (Files): Likewise.
5537         * modules/frexp-tests (Files): Likewise.
5538         * modules/frexpl-nolibm-tests (Files): Likewise.
5539         * modules/frexpl-tests (Files): Likewise.
5540         * modules/fseek-tests (Files): Likewise.
5541         * modules/fseeko-tests (Files): Likewise.
5542         * modules/fstrcmp-tests (Files): Likewise.
5543         * modules/fsync-tests (Files): Likewise.
5544         * modules/ftell-tests (Files): Likewise.
5545         * modules/ftello-tests (Files): Likewise.
5546         * modules/func-tests (Files): Likewise.
5547         * modules/futimens-tests (Files): Likewise.
5548         * modules/fwritable-tests (Files): Likewise.
5549         * modules/fwriting-tests (Files): Likewise.
5550         * modules/getcwd-tests (Files): Likewise.
5551         * modules/getdate-tests (Files): Likewise.
5552         * modules/getdelim-tests (Files): Likewise.
5553         * modules/getdtablesize-tests (Files): Likewise.
5554         * modules/getgroups-tests (Files): Likewise.
5555         * modules/getline-tests (Files): Likewise.
5556         * modules/getndelim2-tests (Files): Likewise.
5557         * modules/glob-tests (Files): Likewise.
5558         * modules/hash-tests (Files): Likewise.
5559         * modules/i-ring-tests (Files): Likewise.
5560         * modules/iconv-tests (Files): Likewise.
5561         * modules/iconv_open-utf-tests (Files): Likewise.
5562         * modules/idpriv-drop-tests (Files): Likewise.
5563         * modules/idpriv-droptemp-tests (Files): Likewise.
5564         * modules/inet_ntop-tests (Files): Likewise.
5565         * modules/inet_pton-tests (Files): Likewise.
5566         * modules/isblank-tests (Files): Likewise.
5567         * modules/isfinite-tests (Files): Likewise.
5568         * modules/isinf-tests (Files): Likewise.
5569         * modules/isnan-tests (Files): Likewise.
5570         * modules/isnand-nolibm-tests (Files): Likewise.
5571         * modules/isnand-tests (Files): Likewise.
5572         * modules/isnanf-nolibm-tests (Files): Likewise.
5573         * modules/isnanf-tests (Files): Likewise.
5574         * modules/isnanl-nolibm-tests (Files): Likewise.
5575         * modules/isnanl-tests (Files): Likewise.
5576         * modules/lchown-tests (Files): Likewise.
5577         * modules/ldexpl-tests (Files): Likewise.
5578         * modules/link-tests (Files): Likewise.
5579         * modules/linkat-tests (Files): Likewise.
5580         * modules/linked-list-tests (Files): Likewise.
5581         * modules/linkedhash-list-tests (Files): Likewise.
5582         * modules/localename-tests (Files): Likewise.
5583         * modules/lseek-tests (Files): Likewise.
5584         * modules/lstat-tests (Files): Likewise.
5585         * modules/mbmemcasecmp-tests (Files): Likewise.
5586         * modules/mbmemcasecoll-tests (Files): Likewise.
5587         * modules/mbrtowc-tests (Files): Likewise.
5588         * modules/mbscasecmp-tests (Files): Likewise.
5589         * modules/mbscasestr-tests (Files): Likewise.
5590         * modules/mbschr-tests (Files): Likewise.
5591         * modules/mbscspn-tests (Files): Likewise.
5592         * modules/mbsinit-tests (Files): Likewise.
5593         * modules/mbsncasecmp-tests (Files): Likewise.
5594         * modules/mbsnrtowcs-tests (Files): Likewise.
5595         * modules/mbspbrk-tests (Files): Likewise.
5596         * modules/mbspcasecmp-tests (Files): Likewise.
5597         * modules/mbsrchr-tests (Files): Likewise.
5598         * modules/mbsrtowcs-tests (Files): Likewise.
5599         * modules/mbsspn-tests (Files): Likewise.
5600         * modules/mbsstr-tests (Files): Likewise.
5601         * modules/memchr-tests (Files): Likewise.
5602         * modules/memchr2-tests (Files): Likewise.
5603         * modules/memcmp-tests (Files): Likewise.
5604         * modules/memmem-tests (Files): Likewise.
5605         * modules/memrchr-tests (Files): Likewise.
5606         * modules/mkdir-tests (Files): Likewise.
5607         * modules/mkfifo-tests (Files): Likewise.
5608         * modules/mkfifoat-tests (Files): Likewise.
5609         * modules/mknod-tests (Files): Likewise.
5610         * modules/nanosleep-tests (Files): Likewise.
5611         * modules/nl_langinfo-tests (Files): Likewise.
5612         * modules/obstack-printf-tests (Files): Likewise.
5613         * modules/open-tests (Files): Likewise.
5614         * modules/openat-tests (Files): Likewise.
5615         * modules/pipe-filter-gi-tests (Files): Likewise.
5616         * modules/pipe-filter-ii-tests (Files): Likewise.
5617         * modules/pipe2-tests (Files): Likewise.
5618         * modules/popen-safer-tests (Files): Likewise.
5619         * modules/popen-tests (Files): Likewise.
5620         * modules/posixtm-tests (Files): Likewise.
5621         * modules/pread-tests (Files): Likewise.
5622         * modules/printf-frexp-tests (Files): Likewise.
5623         * modules/printf-frexpl-tests (Files): Likewise.
5624         * modules/printf-posix-tests (Files): Likewise.
5625         * modules/priv-set-tests (Files): Likewise.
5626         * modules/quotearg-tests (Files): Likewise.
5627         * modules/random_r-tests (Files): Likewise.
5628         * modules/rawmemchr-tests (Files): Likewise.
5629         * modules/rbtree-list-tests (Files): Likewise.
5630         * modules/rbtree-oset-tests (Files): Likewise.
5631         * modules/rbtreehash-list-tests (Files): Likewise.
5632         * modules/readlink-tests (Files): Likewise.
5633         * modules/remove-tests (Files): Likewise.
5634         * modules/rename-tests (Files): Likewise.
5635         * modules/renameat-tests (Files): Likewise.
5636         * modules/rmdir-tests (Files): Likewise.
5637         * modules/round-tests (Files): Likewise.
5638         * modules/roundf-tests (Files): Likewise.
5639         * modules/roundl-tests (Files): Likewise.
5640         * modules/safe-alloc-tests (Files): Likewise.
5641         * modules/setenv-tests (Files): Likewise.
5642         * modules/sigaction-tests (Files): Likewise.
5643         * modules/signbit-tests (Files): Likewise.
5644         * modules/sleep-tests (Files): Likewise.
5645         * modules/snprintf-posix-tests (Files): Likewise.
5646         * modules/snprintf-tests (Files): Likewise.
5647         * modules/sprintf-posix-tests (Files): Likewise.
5648         * modules/stat-tests (Files): Likewise.
5649         * modules/stat-time-tests (Files): Likewise.
5650         * modules/strcasestr-tests (Files): Likewise.
5651         * modules/strchrnul-tests (Files): Likewise.
5652         * modules/strerror-tests (Files): Likewise.
5653         * modules/striconv-tests (Files): Likewise.
5654         * modules/striconveh-tests (Files): Likewise.
5655         * modules/striconveha-tests (Files): Likewise.
5656         * modules/strsignal-tests (Files): Likewise.
5657         * modules/strstr-tests (Files): Likewise.
5658         * modules/strtod-tests (Files): Likewise.
5659         * modules/strverscmp-tests (Files): Likewise.
5660         * modules/symlink-tests (Files): Likewise.
5661         * modules/symlinkat-tests (Files): Likewise.
5662         * modules/trunc-tests (Files): Likewise.
5663         * modules/truncf-tests (Files): Likewise.
5664         * modules/truncl-tests (Files): Likewise.
5665         * modules/uname-tests (Files): Likewise.
5666         * modules/unicase/cased-tests (Files): Likewise.
5667         * modules/unicase/ignorable-tests (Files): Likewise.
5668         * modules/unicase/locale-language-tests (Files): Likewise.
5669         * modules/unicase/tolower-tests (Files): Likewise.
5670         * modules/unicase/totitle-tests (Files): Likewise.
5671         * modules/unicase/toupper-tests (Files): Likewise.
5672         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5673         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5674         * modules/unicase/u8-casefold-tests (Files): Likewise.
5675         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5676         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5677         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5678         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5679         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5680         * modules/unicase/u8-tolower-tests (Files): Likewise.
5681         * modules/unicase/u8-totitle-tests (Files): Likewise.
5682         * modules/unicase/u8-toupper-tests (Files): Likewise.
5683         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5684         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5685         * modules/unicase/u16-casefold-tests (Files): Likewise.
5686         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5687         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5688         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5689         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5690         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5691         * modules/unicase/u16-tolower-tests (Files): Likewise.
5692         * modules/unicase/u16-totitle-tests (Files): Likewise.
5693         * modules/unicase/u16-toupper-tests (Files): Likewise.
5694         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5695         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5696         * modules/unicase/u32-casefold-tests (Files): Likewise.
5697         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5698         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5699         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5700         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5701         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5702         * modules/unicase/u32-tolower-tests (Files): Likewise.
5703         * modules/unicase/u32-totitle-tests (Files): Likewise.
5704         * modules/unicase/u32-toupper-tests (Files): Likewise.
5705         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5706         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5707         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5708         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5709         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5710         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5711         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5712         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5713         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5714         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5715         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5716         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5717         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5718         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5719         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5720         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5721         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5722         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5723         * modules/unictype/block-list-tests (Files): Likewise.
5724         * modules/unictype/block-of-tests (Files): Likewise.
5725         * modules/unictype/block-test-tests (Files): Likewise.
5726         * modules/unictype/category-C-tests (Files): Likewise.
5727         * modules/unictype/category-Cc-tests (Files): Likewise.
5728         * modules/unictype/category-Cf-tests (Files): Likewise.
5729         * modules/unictype/category-Cn-tests (Files): Likewise.
5730         * modules/unictype/category-Co-tests (Files): Likewise.
5731         * modules/unictype/category-Cs-tests (Files): Likewise.
5732         * modules/unictype/category-L-tests (Files): Likewise.
5733         * modules/unictype/category-Ll-tests (Files): Likewise.
5734         * modules/unictype/category-Lm-tests (Files): Likewise.
5735         * modules/unictype/category-Lo-tests (Files): Likewise.
5736         * modules/unictype/category-Lt-tests (Files): Likewise.
5737         * modules/unictype/category-Lu-tests (Files): Likewise.
5738         * modules/unictype/category-M-tests (Files): Likewise.
5739         * modules/unictype/category-Mc-tests (Files): Likewise.
5740         * modules/unictype/category-Me-tests (Files): Likewise.
5741         * modules/unictype/category-Mn-tests (Files): Likewise.
5742         * modules/unictype/category-N-tests (Files): Likewise.
5743         * modules/unictype/category-Nd-tests (Files): Likewise.
5744         * modules/unictype/category-Nl-tests (Files): Likewise.
5745         * modules/unictype/category-No-tests (Files): Likewise.
5746         * modules/unictype/category-P-tests (Files): Likewise.
5747         * modules/unictype/category-Pc-tests (Files): Likewise.
5748         * modules/unictype/category-Pd-tests (Files): Likewise.
5749         * modules/unictype/category-Pe-tests (Files): Likewise.
5750         * modules/unictype/category-Pf-tests (Files): Likewise.
5751         * modules/unictype/category-Pi-tests (Files): Likewise.
5752         * modules/unictype/category-Po-tests (Files): Likewise.
5753         * modules/unictype/category-Ps-tests (Files): Likewise.
5754         * modules/unictype/category-S-tests (Files): Likewise.
5755         * modules/unictype/category-Sc-tests (Files): Likewise.
5756         * modules/unictype/category-Sk-tests (Files): Likewise.
5757         * modules/unictype/category-Sm-tests (Files): Likewise.
5758         * modules/unictype/category-So-tests (Files): Likewise.
5759         * modules/unictype/category-Z-tests (Files): Likewise.
5760         * modules/unictype/category-Zl-tests (Files): Likewise.
5761         * modules/unictype/category-Zp-tests (Files): Likewise.
5762         * modules/unictype/category-Zs-tests (Files): Likewise.
5763         * modules/unictype/category-and-not-tests (Files): Likewise.
5764         * modules/unictype/category-and-tests (Files): Likewise.
5765         * modules/unictype/category-byname-tests (Files): Likewise.
5766         * modules/unictype/category-name-tests (Files): Likewise.
5767         * modules/unictype/category-none-tests (Files): Likewise.
5768         * modules/unictype/category-of-tests (Files): Likewise.
5769         * modules/unictype/category-or-tests (Files): Likewise.
5770         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5771         * modules/unictype/combining-class-tests (Files): Likewise.
5772         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5773         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5774         * modules/unictype/ctype-blank-tests (Files): Likewise.
5775         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5776         * modules/unictype/ctype-digit-tests (Files): Likewise.
5777         * modules/unictype/ctype-graph-tests (Files): Likewise.
5778         * modules/unictype/ctype-lower-tests (Files): Likewise.
5779         * modules/unictype/ctype-print-tests (Files): Likewise.
5780         * modules/unictype/ctype-punct-tests (Files): Likewise.
5781         * modules/unictype/ctype-space-tests (Files): Likewise.
5782         * modules/unictype/ctype-upper-tests (Files): Likewise.
5783         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5784         * modules/unictype/decimal-digit-tests (Files): Likewise.
5785         * modules/unictype/digit-tests (Files): Likewise.
5786         * modules/unictype/mirror-tests (Files): Likewise.
5787         * modules/unictype/numeric-tests (Files): Likewise.
5788         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5789         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5790         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5791         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5792         Likewise.
5793         * modules/unictype/property-bidi-block-separator-tests (Files):
5794         Likewise.
5795         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5796         Likewise.
5797         * modules/unictype/property-bidi-common-separator-tests (Files):
5798         Likewise.
5799         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5800         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5801         Likewise.
5802         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5803         Likewise.
5804         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5805         Likewise.
5806         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5807         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5808         Likewise.
5809         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5810         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5811         Likewise.
5812         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5813         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5814         * modules/unictype/property-bidi-segment-separator-tests (Files):
5815         Likewise.
5816         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5817         * modules/unictype/property-byname-tests (Files): Likewise.
5818         * modules/unictype/property-combining-tests (Files): Likewise.
5819         * modules/unictype/property-composite-tests (Files): Likewise.
5820         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5821         * modules/unictype/property-dash-tests (Files): Likewise.
5822         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5823         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5824         Likewise.
5825         * modules/unictype/property-deprecated-tests (Files): Likewise.
5826         * modules/unictype/property-diacritic-tests (Files): Likewise.
5827         * modules/unictype/property-extender-tests (Files): Likewise.
5828         * modules/unictype/property-format-control-tests (Files): Likewise.
5829         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5830         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5831         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5832         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5833         * modules/unictype/property-hyphen-tests (Files): Likewise.
5834         * modules/unictype/property-id-continue-tests (Files): Likewise.
5835         * modules/unictype/property-id-start-tests (Files): Likewise.
5836         * modules/unictype/property-ideographic-tests (Files): Likewise.
5837         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5838         * modules/unictype/property-ids-trinary-operator-tests (Files):
5839         Likewise.
5840         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5841         * modules/unictype/property-iso-control-tests (Files): Likewise.
5842         * modules/unictype/property-join-control-tests (Files): Likewise.
5843         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5844         * modules/unictype/property-line-separator-tests (Files): Likewise.
5845         * modules/unictype/property-logical-order-exception-tests (Files):
5846         Likewise.
5847         * modules/unictype/property-lowercase-tests (Files): Likewise.
5848         * modules/unictype/property-math-tests (Files): Likewise.
5849         * modules/unictype/property-non-break-tests (Files): Likewise.
5850         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5851         * modules/unictype/property-numeric-tests (Files): Likewise.
5852         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5853         * modules/unictype/property-other-default-ignorable-code-point-tests
5854         (Files): Likewise.
5855         * modules/unictype/property-other-grapheme-extend-tests (Files):
5856         Likewise.
5857         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5858         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5859         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5860         * modules/unictype/property-other-math-tests (Files): Likewise.
5861         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5862         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5863         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5864         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5865         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5866         * modules/unictype/property-private-use-tests (Files): Likewise.
5867         * modules/unictype/property-punctuation-tests (Files): Likewise.
5868         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5869         * modules/unictype/property-radical-tests (Files): Likewise.
5870         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5871         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5872         * modules/unictype/property-space-tests (Files): Likewise.
5873         * modules/unictype/property-terminal-punctuation-tests (Files):
5874         Likewise.
5875         * modules/unictype/property-test-tests (Files): Likewise.
5876         * modules/unictype/property-titlecase-tests (Files): Likewise.
5877         * modules/unictype/property-unassigned-code-value-tests (Files):
5878         Likewise.
5879         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5880         * modules/unictype/property-uppercase-tests (Files): Likewise.
5881         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5882         * modules/unictype/property-white-space-tests (Files): Likewise.
5883         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5884         * modules/unictype/property-xid-start-tests (Files): Likewise.
5885         * modules/unictype/property-zero-width-tests (Files): Likewise.
5886         * modules/unictype/scripts-tests (Files): Likewise.
5887         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5888         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5889         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5890         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5891         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5892         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5893         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5894         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5895         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5896         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5897         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5898         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5899         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5900         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5901         * modules/uninorm/composition-tests (Files): Likewise.
5902         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5903         * modules/uninorm/decomposition-tests (Files): Likewise.
5904         * modules/uninorm/filter-tests (Files): Likewise.
5905         * modules/uninorm/nfc-tests (Files): Likewise.
5906         * modules/uninorm/nfd-tests (Files): Likewise.
5907         * modules/uninorm/nfkc-tests (Files): Likewise.
5908         * modules/uninorm/nfkd-tests (Files): Likewise.
5909         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5910         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5911         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5912         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5913         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5914         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5915         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5916         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5917         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5918         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5919         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5920         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5921         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5922         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5923         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5924         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5925         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5926         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5927         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5928         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5929         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5930         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5931         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5932         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5933         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5934         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5935         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5936         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5937         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5938         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5939         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5940         * modules/uniwidth/u8-width-tests (Files): Likewise.
5941         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5942         * modules/uniwidth/u16-width-tests (Files): Likewise.
5943         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5944         * modules/uniwidth/u32-width-tests (Files): Likewise.
5945         * modules/uniwidth/width-tests (Files): Likewise.
5946         * modules/unlink-tests (Files): Likewise.
5947         * modules/unsetenv-tests (Files): Likewise.
5948         * modules/usleep-tests (Files): Likewise.
5949         * modules/utimens-tests (Files): Likewise.
5950         * modules/utimensat-tests (Files): Likewise.
5951         * modules/vasnprintf-posix-tests (Files): Likewise.
5952         * modules/vasnprintf-tests (Files): Likewise.
5953         * modules/vasprintf-posix-tests (Files): Likewise.
5954         * modules/vasprintf-tests (Files): Likewise.
5955         * modules/vdprintf-posix-tests (Files): Likewise.
5956         * modules/vfprintf-posix-tests (Files): Likewise.
5957         * modules/vprintf-posix-tests (Files): Likewise.
5958         * modules/vsnprintf-posix-tests (Files): Likewise.
5959         * modules/vsnprintf-tests (Files): Likewise.
5960         * modules/vsprintf-posix-tests (Files): Likewise.
5961         * modules/wcrtomb-tests (Files): Likewise.
5962         * modules/wcsnrtombs-tests (Files): Likewise.
5963         * modules/wcsrtombs-tests (Files): Likewise.
5964         * modules/wctype-tests (Files): Likewise.
5965         * modules/wcwidth-tests (Files): Likewise.
5966         * modules/xmemdup0-tests (Files): Likewise.
5967         * modules/xprintf-posix-tests (Files): Likewise.
5968         * modules/xvasprintf-tests (Files): Likewise.
5969
5970 2009-12-24  Eric Blake  <ebb9@byu.net>
5971
5972         test-nanosleep: fix typo
5973         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5974         patch.
5975         Reported by Bruno Haible.
5976
5977 2009-12-24  Bruno Haible  <bruno@clisp.org>
5978
5979         Reduce namespace pollution on glibc systems.
5980         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5981         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5982         systems.
5983         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5984         <getopt.h> on glibc systems.
5985         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5986         systems.
5987         * lib/fcntl.c: Include <unistd.h> here instead.
5988
5989 2009-12-24  Bruno Haible  <bruno@clisp.org>
5990
5991         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5992
5993 2009-12-24  Eric Blake  <ebb9@byu.net>
5994
5995         tests: add signature checks
5996         * tests/signature.h (SIGNATURE_CHECK): New file.
5997         * modules/atexit-tests (Files): Use it.
5998         * modules/btowc-tests (Files): Likewise.
5999         * modules/canonicalize-lgpl-tests (Files): Likewise.
6000         * modules/ceilf-tests (Files): Likewise.
6001         * modules/ceill-tests (Files): Likewise.
6002         * modules/chown-tests (Files): Likewise.
6003         * modules/dprintf-posix-tests (Files): Likewise.
6004         * modules/dup2-tests (Files): Likewise.
6005         * modules/dup3-tests (Files): Likewise.
6006         * modules/duplocale-tests (Files): Likewise.
6007         * modules/fchdir-tests (Files): Likewise.
6008         * modules/fcntl-tests (Files): Likewise.
6009         * modules/fdopendir-tests (Files): Likewise.
6010         * modules/fflush-tests (Files): Likewise.
6011         * modules/flock-tests (Files): Likewise.
6012         * modules/floorf-tests (Files): Likewise.
6013         * modules/floorl-tests (Files): Likewise.
6014         * modules/fnmatch-tests (Files): Likewise.
6015         * modules/fopen-tests (Files): Likewise.
6016         * modules/fprintf-posix-tests (Files): Likewise.
6017         * modules/freopen-tests (Files): Likewise.
6018         * modules/frexp-nolibm-tests (Files): Likewise.
6019         * modules/frexp-tests (Files): Likewise.
6020         * modules/frexpl-nolibm-tests (Files): Likewise.
6021         * modules/frexpl-tests (Files): Likewise.
6022         * modules/fseek-tests (Files): Likewise.
6023         * modules/fseeko-tests (Files): Likewise.
6024         * modules/fsync-tests (Files): Likewise.
6025         * modules/ftell-tests (Files): Likewise.
6026         * modules/ftello-tests (Files): Likewise.
6027         * modules/futimens-tests (Files): Likewise.
6028         * modules/getaddrinfo-tests (Files): Likewise.
6029         * modules/getcwd-tests (Files): Likewise.
6030         * modules/getdelim-tests (Files): Likewise.
6031         * modules/getdtablesize-tests (Files): Likewise.
6032         * modules/getgroups-tests (Files): Likewise.
6033         * modules/gethostname-tests (Files): Likewise.
6034         * modules/getline-tests (Files): Likewise.
6035         * modules/getopt-posix-tests (Files): Likewise.
6036         * modules/gettimeofday-tests (Files): Likewise.
6037         * modules/glob-tests (Files): Likewise.
6038         * modules/iconv-tests (Files): Likewise.
6039         * modules/inet_ntop-tests (Files): Likewise.
6040         * modules/inet_pton-tests (Files): Likewise.
6041         * modules/isblank-tests (Files): Likewise.
6042         * modules/lchown-tests (Files): Likewise.
6043         * modules/ldexpl-tests (Files): Likewise.
6044         * modules/link-tests (Files): Likewise.
6045         * modules/linkat-tests (Files): Likewise.
6046         * modules/lseek-tests (Files): Likewise.
6047         * modules/lstat-tests (Files): Likewise.
6048         * modules/mbrtowc-tests (Files): Likewise.
6049         * modules/mbsinit-tests (Files): Likewise.
6050         * modules/mbsnrtowcs-tests (Files): Likewise.
6051         * modules/mbsrtowcs-tests (Files): Likewise.
6052         * modules/memchr-tests (Files): Likewise.
6053         * modules/memcmp-tests (Files): Likewise.
6054         * modules/memmem-tests (Files): Likewise.
6055         * modules/memrchr-tests (Files): Likewise.
6056         * modules/mkdir-tests (Files): Likewise.
6057         * modules/mkfifo-tests (Files): Likewise.
6058         * modules/mkfifoat-tests (Files): Likewise.
6059         * modules/mknod-tests (Files): Likewise.
6060         * modules/nanosleep-tests (Files): Likewise.
6061         * modules/nl_langinfo-tests (Files): Likewise.
6062         * modules/obstack-printf-tests (Files): Likewise.
6063         * modules/open-tests (Files): Likewise.
6064         * modules/openat-tests (Files): Likewise.
6065         * modules/perror-tests (Files): Likewise.
6066         * modules/pipe2-tests (Files): Likewise.
6067         * modules/poll-tests (Files): Likewise.
6068         * modules/popen-tests (Files): Likewise.
6069         * modules/posix_spawn-tests (Files): Likewise.
6070         * modules/posix_spawnp-tests (Files): Likewise.
6071         * modules/pread-tests (Files): Likewise.
6072         * modules/printf-posix-tests (Files): Likewise.
6073         * modules/pty-tests (Files): Likewise.
6074         * modules/random_r-tests (Files): Likewise.
6075         * modules/rawmemchr-tests (Files): Likewise.
6076         * modules/readlink-tests (Files): Likewise.
6077         * modules/remove-tests (Files): Likewise.
6078         * modules/rename-tests (Files): Likewise.
6079         * modules/renameat-tests (Files): Likewise.
6080         * modules/rmdir-tests (Files): Likewise.
6081         * modules/round-tests (Files): Likewise.
6082         * modules/roundf-tests (Files): Likewise.
6083         * modules/roundl-tests (Files): Likewise.
6084         * modules/select-tests (Files): Likewise.
6085         * modules/setenv-tests (Files): Likewise.
6086         * modules/sigaction-tests (Files): Likewise.
6087         * modules/sleep-tests (Files): Likewise.
6088         * modules/snprintf-posix-tests (Files): Likewise.
6089         * modules/snprintf-tests (Files): Likewise.
6090         * modules/sprintf-posix-tests (Files): Likewise.
6091         * modules/stat-tests (Files): Likewise.
6092         * modules/strcasestr-tests (Files): Likewise.
6093         * modules/strchrnul-tests (Files): Likewise.
6094         * modules/strerror-tests (Files): Likewise.
6095         * modules/strsignal-tests (Files): Likewise.
6096         * modules/strstr-tests (Files): Likewise.
6097         * modules/strtod-tests (Files): Likewise.
6098         * modules/strverscmp-tests (Files): Likewise.
6099         * modules/symlink-tests (Files): Likewise.
6100         * modules/symlinkat-tests (Files): Likewise.
6101         * modules/times-tests (Files): Likewise.
6102         * modules/trunc-tests (Files): Likewise.
6103         * modules/truncf-tests (Files): Likewise.
6104         * modules/truncl-tests (Files): Likewise.
6105         * modules/tsearch-tests (Files): Likewise.
6106         * modules/uname-tests (Files): Likewise.
6107         * modules/unlink-tests (Files): Likewise.
6108         * modules/unsetenv-tests (Files): Likewise.
6109         * modules/usleep-tests (Files): Likewise.
6110         * modules/utimensat-tests (Files): Likewise.
6111         * modules/vasprintf-tests (Files): Likewise.
6112         * modules/vdprintf-posix-tests (Files): Likewise.
6113         * modules/vfprintf-posix-tests (Files): Likewise.
6114         * modules/vprintf-posix-tests (Files): Likewise.
6115         * modules/vsnprintf-posix-tests (Files): Likewise.
6116         * modules/vsnprintf-tests (Files): Likewise.
6117         * modules/vsprintf-posix-tests (Files): Likewise.
6118         * modules/wcrtomb-tests (Files): Likewise.
6119         * modules/wcsnrtombs-tests (Files): Likewise.
6120         * modules/wcsrtombs-tests (Files): Likewise.
6121         * modules/wcwidth-tests (Files): Likewise.
6122         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6123         * tests/test-isinf.c (isinf): Likewise.
6124         * tests/test-isnan.c (isnan): Likewise.
6125         * tests/test-signbit.c (signbit): Likewise.
6126         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6127         declaration, either as macro or with correct signature.
6128         (select): Ensure function under test is declared with correct
6129         signature in correct header.
6130         * tests/test-atexit.c (atexit): Likewise.
6131         * tests/test-btowc.c (btowc): Likewise.
6132         * tests/test-canonicalize-lgpl.c (realpath)
6133         (canonicalize_file_name): Likewise.
6134         * tests/test-ceilf1.c (ceilf): Likewise.
6135         * tests/test-ceill.c (ceill): Likewise.
6136         * tests/test-chown.c (chown): Likewise.
6137         * tests/test-dprintf-posix.c (dprintf): Likewise.
6138         * tests/test-dup2.c (dup2): Likewise.
6139         * tests/test-dup3.c (dup3): Likewise.
6140         * tests/test-duplocale.c (duplocale): Likewise.
6141         * tests/test-fchdir.c (fchdir): Likewise.
6142         * tests/test-fchownat.c (fchownat): Likewise.
6143         * tests/test-fcntl.c (fcntl): Likewise.
6144         * tests/test-fdopendir.c (fdopendir): Likewise.
6145         * tests/test-fflush.c (fflush): Likewise.
6146         * tests/test-flock.c (flock): Likewise.
6147         * tests/test-floorf1.c (floorf): Likewise.
6148         * tests/test-floorl.c (floorl): Likewise.
6149         * tests/test-fnmatch.c (fnmatch): Likewise.
6150         * tests/test-fopen.c (fopen): Likewise.
6151         * tests/test-fprintf-posix.c (fprintf): Likewise.
6152         * tests/test-freopen.c (freopen): Likewise.
6153         * tests/test-frexp.c (frexp): Likewise.
6154         * tests/test-frexpl.c (frexpl): Likewise.
6155         * tests/test-fseek.c (fseek): Likewise.
6156         * tests/test-fseeko.c (fseeko): Likewise.
6157         * tests/test-fstatat.c (fstatat): Likewise.
6158         * tests/test-fsync.c (fsync): Likewise.
6159         * tests/test-ftell.c (ftell): Likewise.
6160         * tests/test-ftello.c (ftello): Likewise.
6161         * tests/test-futimens.c (futimens): Likewise.
6162         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6163         (gai_strerror): Likewise.
6164         * tests/test-getcwd.c (getcwd): Likewise.
6165         * tests/test-getdelim.c (getdelim): Likewise.
6166         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6167         * tests/test-getgroups.c (getgroups): Likewise.
6168         * tests/test-gethostname.c (gethostname): Likewise.
6169         * tests/test-getline.c (getline): Likewise.
6170         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6171         Likewise.
6172         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6173         * tests/test-glob.c (glob, globfree): Likewise.
6174         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6175         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6176         * tests/test-inet_pton.c (inet_pton): Likewise.
6177         * tests/test-isblank.c (isblank): Likewise.
6178         * tests/test-lchown.c (lchown): Likewise.
6179         * tests/test-ldexpl.c (ldexpl): Likewise.
6180         * tests/test-link.c (link): Likewise.
6181         * tests/test-linkat.c (linkat): Likewise.
6182         * tests/test-lseek.c (lseek): Likewise.
6183         * tests/test-lstat.c (lstat): Likewise.
6184         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6185         * tests/test-mbsinit.c (mbsinit): Likewise.
6186         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6187         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6188         * tests/test-memchr.c (memchr): Likewise.
6189         * tests/test-memcmp.c (memcmp): Likewise.
6190         * tests/test-memmem.c (memmem): Likewise.
6191         * tests/test-memrchr.c (memrchr): Likewise.
6192         * tests/test-mkdir.c (mkdir): Likewise.
6193         * tests/test-mkdirat.c (mkdirat): Likewise.
6194         * tests/test-mkfifo.c (mkfifo): Likewise.
6195         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6196         * tests/test-mknod.c (mknod): Likewise.
6197         * tests/test-nanosleep.c (nanosleep): Likewise.
6198         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6199         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6200         Likewise.
6201         * tests/test-open.c (open): Likewise.
6202         * tests/test-openat.c (openat): Likewise.
6203         * tests/test-perror.c (perror): Likewise.
6204         * tests/test-pipe2.c (pipe2): Likewise.
6205         * tests/test-poll.c (poll): Likewise.
6206         * tests/test-popen.c (popen, pclose): Likewise.
6207         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6208         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6209         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6210         (posix_spawn_file_actions_destroy)
6211         (posix_spawn_file_actions_addclose)
6212         (posix_spawn_file_actions_addopen)
6213         (posix_spawn_file_actions_adddup2): Likewise.
6214         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6215         * tests/test-pread.c (pread): Likewise.
6216         * tests/test-printf-posix.c (printf): Likewise.
6217         * tests/test-pty.c (openpty, forkpty): Likewise.
6218         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6219         (random_r): Likewise.
6220         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6221         * tests/test-readlink.c (readlink): Likewise.
6222         * tests/test-remove.c (remove): Likewise.
6223         * tests/test-rename.c (rename): Likewise.
6224         * tests/test-renameat.c (renameat): Likewise.
6225         * tests/test-rmdir.c (rmdir): Likewise.
6226         * tests/test-round1.c (round): Likewise.
6227         * tests/test-roundf1.c (roundf): Likewise.
6228         * tests/test-roundl.c (roundl): Likewise.
6229         * tests/test-setenv.c (setenv): Likewise.
6230         * tests/test-sigaction.c (sigaction): Likewise.
6231         * tests/test-sleep.c (sleep): Likewise.
6232         * tests/test-snprintf.c (snprintf): Likewise.
6233         * tests/test-sprintf-posix.c (sprintf): Likewise.
6234         * tests/test-stat.c (stat): Likewise.
6235         * tests/test-stpncpy.c (stpncpy): Likewise.
6236         * tests/test-strcasestr.c (strcasestr): Likewise.
6237         * tests/test-strchrnul.c (strchrnul): Likewise.
6238         * tests/test-strerror.c (strerror): Likewise.
6239         * tests/test-strsignal.c (strsignal): Likewise.
6240         * tests/test-strstr.c (strstr): Likewise.
6241         * tests/test-strtod.c (strtod): Likewise.
6242         * tests/test-strverscmp.c (strverscmp): Likewise.
6243         * tests/test-symlink.c (symlink): Likewise.
6244         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6245         * tests/test-times.c (times): Likewise.
6246         * tests/test-trunc1.c (trunc): Likewise.
6247         * tests/test-truncf1.c (truncf): Likewise.
6248         * tests/test-truncl.c (truncl): Likewise.
6249         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6250         Likewise.
6251         * tests/test-uname.c (uname): Likewise.
6252         * tests/test-unlink.c (unlink): Likewise.
6253         * tests/test-unlinkat.c (unlinkat): Likewise.
6254         * tests/test-unsetenv.c (unsetenv): Likewise.
6255         * tests/test-usleep.c (usleep): Likewise.
6256         * tests/test-utimensat.c (utimensat): Likewise.
6257         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6258         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6259         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6260         * tests/test-vprintf-posix.c (vprintf): Likewise.
6261         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6262         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6263         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6264         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6265         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6266         * tests/test-wcwidth.c (wcwidth): Likewise.
6267
6268         build: pull in conditional headers during GNULIB_POSIXCHECK
6269         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6270         definitions from any conditionally-included headers.
6271         * lib/stdlib.in.h (includes): Likewise.
6272         * lib/unistd.in.h (includes): Likewise.
6273
6274 2009-12-24  Bruno Haible  <bruno@clisp.org>
6275
6276         * tests/test-argv-iter.c: Include header file being tested immediately
6277         after config.h.
6278         * tests/test-base64.c: Likewise.
6279         * tests/test-flock.c: Likewise.
6280         * tests/test-fsync.c: Likewise.
6281         * tests/test-getdate.c: Likewise.
6282         * tests/test-getndelim2.c: Likewise.
6283         * tests/test-isfinite.c: Likewise.
6284         * tests/test-isinf.c: Likewise.
6285         * tests/test-strerror.c: Likewise.
6286         * tests/test-strsignal.c: Likewise.
6287
6288 2009-12-23  Eric Blake  <ebb9@byu.net>
6289
6290         unistd: work around cygwin bug
6291         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6292         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6293         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6294
6295 2009-12-23  Bruno Haible  <bruno@clisp.org>
6296
6297         localename: More tests.
6298         * tests/test-localename.c (SIZEOF): New macro.
6299         (categories): New variable.
6300         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6301         test_locale_name_default): Add test w.r.t. thread locale.
6302         (test_locale_name_thread): New function.
6303         (main): Invoke it.
6304
6305         localename: Make aware of thread locale.
6306         * lib/localename.h (gl_locale_name_thread): New declaration.
6307         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6308         behaviour with respect to thread locale.
6309         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6310         <langinfo.h>, glthread/lock.h.
6311         (SIZE_BITS): New macro.
6312         (string_hash): New function.
6313         (struct hash_node): New type.
6314         (HASH_TABLE_SIZE): New macro.
6315         (struniq_hash_table, struniq_lock): New variables.
6316         (struniq): New function.
6317         (gl_locale_name_thread): New function.
6318         (gl_locale_name): Invoke it.
6319         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6320         * modules/localename (Depends-on): Add lock.
6321         Reported by Mike Gran <spk121@yahoo.com>.
6322
6323 2009-12-23  Eric Blake  <ebb9@byu.net>
6324
6325         va-args: new module
6326         * modules/va-args: New file.
6327         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6328         * MODULES.html.sh (Core language properties): Mention it.
6329
6330         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6331         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6332         named alias for __attribute__((__unused__)).
6333         * lib/chown.c: Update client.
6334         * lib/fchmodat.c: Likewise.
6335         * lib/fts.c: Likewise.
6336         * lib/getdate.y: Likewise.
6337         * lib/getgroups.c: Likewise.
6338         * lib/getopt.c: Likewise.
6339         * lib/getugroups.c: Likewise.
6340         * lib/mkdir.c: Likewise.
6341         * lib/mkfifo.c: Likewise.
6342         * lib/mkfifoat.c: Likewise.
6343         * lib/mknod.c: Likewise.
6344         * lib/mknodat.c: Likewise.
6345         * lib/readlink.c: Likewise.
6346         * lib/se-context.in.h: Likewise.
6347         * lib/se-selinux.in.h: Likewise.
6348         * lib/sockets.c: Likewise.
6349         * lib/symlink.c: Likewise.
6350         * lib/symlinkat.c: Likewise.
6351         * lib/unicodeio.c: Likewise.
6352         * lib/unistr.h: Likewise.
6353         * tests/test-areadlink.c: Likewise.
6354         * tests/test-areadlinkat.c: Likewise.
6355         * tests/test-filenamecat.c: Likewise.
6356         * tests/test-fseeko.c: Likewise.
6357         * tests/test-ftello.c: Likewise.
6358         * tests/test-getdate.c: Likewise.
6359         * tests/test-getgroups.c: Likewise.
6360         * tests/test-gethostname.c: Likewise.
6361         * tests/test-quotearg.c: Likewise.
6362         * tests/test-version-etc.c: Likewise.
6363         * tests/test-xalloc-die.c: Likewise.
6364         * tests/test-xfprintf-posix.c: Likewise.
6365         * tests/test-xprintf-posix.c: Likewise.
6366         * tests/test-xvasprintf.c: Likewise.
6367
6368         tests: avoid compiler warnings
6369         * tests/test-fcntl.c (main): Delete unused parameters.
6370         * tests/test-freopen-safer.c (main): Likewise.
6371         * tests/test-xalloc-die.c (main): Mark unused parameters.
6372         * tests/test-fseeko.c (main): Likewise.
6373         * tests/test-ftello.c (main): Likewise.
6374         * tests/test-nanosleep.c (main): Avoid declaration warning.
6375         * tests/test-sleep.c (main): Likewise.
6376         * tests/test-unsetenv.c (main): Silence warning about string
6377         literal.
6378         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6379
6380 2009-12-23  Bruno Haible  <bruno@clisp.org>
6381
6382         * tests/test-localename.c (test_locale_name): New function, extracted
6383         from main. Also test mixed situations.
6384         (test_locale_name_posix, test_locale_name_environ,
6385         test_locale_name_default): New functions.
6386         (main): Invoke them all.
6387         * modules/localename-tests (configure.ac): Test for newlocale.
6388
6389 2009-12-23  Bruno Haible  <bruno@clisp.org>
6390
6391         unistd: Ensure getcwd gets declared before being overridden.
6392         * lib/unistd.in.h: Conditionally include <io.h>.
6393
6394 2009-12-22  Bruno Haible  <bruno@clisp.org>
6395
6396         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6397         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6398         (gl_WCHAR_H): Invoke it.
6399         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6400         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6401         Reported by Karl Berry <karl@freefriends.org>.
6402
6403 2009-12-22  Eric Blake  <ebb9@byu.net>
6404
6405         math, unistd: avoid redundant includes
6406         * lib/math.in.h (isnan): No need to re-include <math.h>.
6407         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6408
6409         getsubopt: work around cygwin bug
6410         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6411         avoid conflicting with system getsubopt.
6412         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6413         bug.
6414
6415         getopt: synchronize from glibc
6416         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6417         parameter order.  Adjust all callers.
6418         (_getopt_internal_r, main): Adjust quoting in error messages.
6419         Drop considerations for outdated POSIX 1003.2 error message.
6420         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6421         callers.
6422         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6423
6424         test-getopt: test stderr behavior
6425         * modules/getopt-posix-tests (Depends-on): Add dup2.
6426         * tests/test-getopt.c (ASSERT): Avoid stderr.
6427         (main): Move stderr to a temporary file.
6428         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6429         Instead, add parameter to inform caller if output occurred.
6430         (test_getopt): Adjust all existing tests to expect silence, and
6431         add new tests of leading ":".
6432         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6433         glibc shortcomings with leading "-:" or "+:" in optstring.
6434         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6435         Likewise.
6436         * doc/posix-functions/getopt.texi (getopt): Likewise.
6437
6438         test-getopt: enhance test
6439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6440         supports optind=0.
6441         * tests/test-getopt.c (OPTIND_MIN): Move...
6442         * tests/test-getopt.h (OPTIND_MIN): ...here.
6443         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6444         Require that optind=0 works, since modern BSD supports it in
6445         addition to optreset, and since coreutils expects it.
6446         (test_getopt_long_only): New test.
6447         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6448         glibc shortcomings with 'W;', and enforcement of optind=0.
6449         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6450         Likewise.
6451
6452 2009-12-21  Bruno Haible  <bruno@clisp.org>
6453
6454         localename: Improvements for MacOS X and Cygwin.
6455         * lib/localename.h (gl_locale_name_environ): New declaration.
6456         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6457         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6458         (gl_locale_name_posix): Invoke it.
6459         (gl_locale_name_default): Add comments. Use Windows native API also on
6460         Cygwin.
6461
6462 2009-12-21  Bruno Haible  <bruno@clisp.org>
6463
6464         Update list of Win32 locale ids.
6465         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6466         (LANG_SAMI): Renamed from LANG_SAAMI.
6467         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6468         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6469         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6470         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6471         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6472         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6473         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6474         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6475         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6476         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6477         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6478         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6479         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6480         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6481         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6482         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6483         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6484         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6485         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6486         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6487         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6488         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6489         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6490         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6491         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6492         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6493         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6494         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6495         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6496         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6497         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6498         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6499         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6500         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6501         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6502         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6503         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6504         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6505         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6506         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6507         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6508         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6509         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6510         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6511         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6512         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6513         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6514         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6515         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6516         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6517         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6518         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6519         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6520         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6521         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6522         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6523         Add more languages and countries for Sami, Sorbian. Add more countries
6524         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6525         for Pashto. Change country for Syriac, Tswana.
6526
6527 2009-12-21  Eric Blake  <ebb9@byu.net>
6528
6529         test-utimens: avoid spurious failure
6530         * tests/test-chown.h (nap): Factor...
6531         * tests/nap.h: ...into new file.
6532         * tests/test-lchown.h (nap): Avoid duplication.
6533         * tests/test-utimens-common.h (nap): Use shared implementation,
6534         necessary on file systems with 1-second resolution.
6535         * modules/chown-tests (Files): Include new file.
6536         * modules/fdutimensat-tests (Files): Likewise.
6537         * modules/futimens-tests (Files): Likewise.
6538         * modules/lchown-tests (Files): Likewise.
6539         * modules/openat-tests (Files): Likewise.
6540         * modules/utimens-tests (Files): Likewise.
6541         * modules/utimensat-tests (Files): Likewise.
6542
6543 2009-12-19  Eric Blake  <ebb9@byu.net>
6544
6545         futimens, utimensat: work around Linux bug
6546         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6547         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6548         * lib/utimensat.c (rpl_utimensat): Work around it.
6549         * lib/futimens.c (rpl_futimens): Adjust comment.
6550
6551         utimens: work around Linux ctime bug
6552         * lib/utimens.c (detect_ctime_bug): New helper function.
6553         (update_timespec): Differentiate between workaround needed for
6554         this bug vs. what is needed for systems that lack utimensat.
6555         (fdutimens, lutimens): Work around bug.
6556
6557         utimens: check for ctime update
6558         * tests/test-utimens-common.h (check_ctime): Define.
6559         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6560         * tests/test-futimens.h (test_futimens): Likewise.
6561         * tests/test-lutimens.h (test_lutimens): Likewise.
6562         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6563         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6564
6565 2009-12-19  Bruno Haible  <bruno@clisp.org>
6566
6567         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6568         * tests/test-dprintf-posix2.sh: New file.
6569         * tests/test-dprintf-posix2.c: New file.
6570         * modules/dprintf-posix-tests (Files): Add them.
6571         (configure.ac): Check for getrlimit and setrlimit.
6572         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6573
6574 2009-12-19  Bruno Haible  <bruno@clisp.org>
6575
6576         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6577         * tests/test-fprintf-posix3.sh: New file.
6578         * tests/test-fprintf-posix3.c: New file.
6579         * modules/fprintf-posix-tests (Files): Add them.
6580         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6581
6582 2009-12-19  Eric Blake  <ebb9@byu.net>
6583
6584         dirfd: fix prototype
6585         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6586         * lib/dirfd.c (dirfd): Likewise.
6587
6588         canonicalize: reduce memory usage
6589         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6590         allocation to size.
6591         Reported by Solar Designer <solar@openwall.com>.
6592
6593 2009-12-19  Bruno Haible  <bruno@clisp.org>
6594
6595         New module attribute 'Applicability'.
6596         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6597         * gnulib-tool: New option --extract-applicability.
6598         (func_usage): Document it.
6599         (sed_extract_prog): Recognize it.
6600         (func_get_applicability): New function.
6601         (func_import): Generalize handling of 'link-warning' module.
6602         * modules/link-warning (Applicability): New section.
6603         * modules/arg-nonnull (Applicability): New section.
6604         Repoted by Simon Josefsson <simon@josefsson.org>.
6605
6606 2009-12-19  Bruno Haible  <bruno@clisp.org>
6607
6608         fflush: tweak
6609         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6610         * lib/fseeko.c (rpl_fseeko): Likewise.
6611
6612 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6613
6614         * lib/gl_list.h: Fix typo in comment.
6615
6616 2009-12-16  Eric Blake  <ebb9@byu.net>
6617
6618         fcntl: use to simplify other modules
6619         * modules/cloexec (Depends-on): Add fcntl.
6620         * modules/fchdir (Depends-on): Likewise.
6621         * modules/fd-safer-flag (Depends-on): Likewise.
6622         * modules/unistd-safer (Depends-on): Likewise.
6623         * modules/dup3 (configure.ac): Set module indicator.
6624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6625         missing.
6626         * lib/fchdir.c (_gl_register_dup): Fix comment.
6627         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6628         * lib/dup-safer.c (dup_safer): Likewise.
6629         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6630         * lib/dup3.c (dup3): Likewise.
6631         * tests/test-fchdir.c (main): Enhance test.
6632         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6633
6634         fcntl: port portions of fcntl to mingw
6635         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6636         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6637         replacement for mingw.
6638         * modules/fcntl (Description): Update.
6639         (Depends-on): Add dup2.
6640         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6641         * modules/fcntl-h (Makefile.am): Substitute it.
6642         * lib/fcntl.in.h (fcntl): Update declaration.
6643         (F_DUPFD, F_GETFD): New macros, when needed.
6644         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6645         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6646         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6647         we now guarantee.
6648
6649         fcntl: work around cygwin bug in F_DUPFD
6650         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6651         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6652         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6653         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6654         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6655
6656         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6657         * modules/fcntl (Files): List new files.
6658         (configure.ac): Run a test.
6659         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6660         * lib/fcntl.c (rpl_fcntl): Likewise.
6661         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6662         (gl_FCNTL_H): Always replace fcntl.h.
6663         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6664         * lib/fcntl.in.h (fcntl): Declare replacement.
6665         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6666         needed, plus a witness.
6667         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6668         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6669         * tests/test-fcntl.c: New file.
6670         * modules/fcntl-tests: Likewise.
6671
6672         binary-io: avoid potential compilation warning
6673         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6674         directives.
6675
6676         fflush: avoid compilation error on NetBSD
6677         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6678         between off_t and fpos_t, since the latter is sometimes a struct.
6679         * lib/fseeko.c (rpl_fseeko): Likewise.
6680         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6681
6682 2009-12-15  Eric Blake  <ebb9@byu.net>
6683
6684         fcntl-h, stdio, sys_ioctl: fix declarations
6685         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6686         function must not take arguments.
6687         * lib/sys_ioctl.in.h (ioctl): Likewise.
6688         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6689         (open): Add a link warning.
6690
6691 2009-12-15  Jim Meyering  <meyering@redhat.com>
6692
6693         areadlink, areadlink-with-size: relax license to LGPLv2+
6694         * modules/areadlink (License): Relax to LGPLv2+.
6695         * modules/areadlink-with-size (License): Likewise.
6696
6697 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6698             Bruno Haible  <bruno@clisp.org>
6699
6700         *printf: Fix memory leak.
6701         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6702         * lib/vfprintf.c (vfprintf): Likewise.
6703         * lib/dprintf.c (dprintf): Likewise.
6704         * lib/vdprintf.c (vdprintf): Likewise.
6705
6706 2009-12-14  Eric Blake  <ebb9@byu.net>
6707
6708         accept4: adjust module dependencies
6709         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6710
6711         utimens: one more try at avoiding compiler warning
6712         * lib/utimens.c (lutimens): Lower scope of result.
6713
6714 2009-12-13  Bruno Haible  <bruno@clisp.org>
6715
6716         Move the malloc checking from module 'list' to new module 'xlist'.
6717         * modules/xlist: New file.
6718         * lib/gl_xlist.h: New file.
6719         * lib/gl_xlist.c: New file.
6720         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6721         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6722         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6723         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6724         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6725         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6726         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6727         gl_sortedlist_nx_add): New declarations.
6728         (struct gl_list_implementation): Rename and change methods accordingly.
6729         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6730         (gl_list_nx_create): Renamed from gl_list_create.
6731         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6732         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6733         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6734         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6735         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6736         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6737         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6738         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6739         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6740         gl_list_create_empty.
6741         (gl_list_nx_create): Renamed from gl_list_create.
6742         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6743         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6744         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6745         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6746         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6747         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6748         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6749         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6750         * lib/gl_array_list.c: Don't include xalloc.h.
6751         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6752         NULL upon out-of-memory.
6753         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6754         out-of-memory.
6755         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6756         Change return type to 'int'.
6757         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6758         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6759         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6760         upon out-of-memory.
6761         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6762         upon out-of-memory.
6763         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6764         upon out-of-memory.
6765         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6766         upon out-of-memory.
6767         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6768         out-of-memory.
6769         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6770         Update.
6771         (gl_array_list_implementation): Update.
6772         * lib/gl_carray_list.c: Don't include xalloc.h.
6773         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6774         Return NULL upon out-of-memory.
6775         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6776         out-of-memory.
6777         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6778         Change return type to 'int'.
6779         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6780         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6781         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6782         upon out-of-memory.
6783         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6784         upon out-of-memory.
6785         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6786         out-of-memory.
6787         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6788         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6789         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6790         Update.
6791         (gl_carray_list_implementation): Update.
6792         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6793         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6794         gl_linked_create_empty. Return NULL upon out-of-memory.
6795         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6796         out-of-memory.
6797         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6798         Change return type to 'int'. Return -1 upon out-of-memory.
6799         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6800         out-of-memory.
6801         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6802         upon out-of-memory.
6803         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6804         upon out-of-memory.
6805         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6806         NULL upon out-of-memory.
6807         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6808         upon out-of-memory.
6809         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6810         out-of-memory.
6811         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6812         Update.
6813         * lib/gl_linked_list.c: Don't include xalloc.h.
6814         (gl_linked_list_implementation): Update.
6815         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6816         (add_to_bucket): Change return type to 'int'.
6817         (gl_linkedhash_list_implementation): Update.
6818         * lib/gl_anytree_list1.h (free_subtree): New function.
6819         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6820         gl_tree_create_empty. Return NULL upon out-of-memory.
6821         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6822         Change return type to 'int'. Return -1 upon out-of-memory.
6823         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6824         out-of-memory.
6825         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6826         (gl_tree_remove_node): New function, moved here from
6827         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6828         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6829         Update.
6830         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6831         malloc, not xmalloc. Return NULL upon out-of-memory.
6832         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6833         out-of-memory.
6834         (gl_tree_remove_node_from_tree): New function, extracted from
6835         gl_tree_remove_node.
6836         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6837         upon out-of-memory.
6838         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6839         out-of-memory.
6840         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6841         upon out-of-memory.
6842         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6843         upon out-of-memory.
6844         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6845         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6846         not xmalloc. Return NULL upon out-of-memory.
6847         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6848         out-of-memory.
6849         (gl_tree_remove_node_from_tree): New function, extracted from
6850         gl_tree_remove_node.
6851         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6852         upon out-of-memory.
6853         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6854         out-of-memory.
6855         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6856         upon out-of-memory.
6857         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6858         upon out-of-memory.
6859         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6860         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6861         gl_anytree_list1.h before gl_anyavltree_list2.h.
6862         (gl_avltree_list_implementation): Update.
6863         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6864         gl_anytree_list1.h before gl_anyavltree_list2.h.
6865         (gl_rbtree_list_implementation): Update.
6866         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6867         Change return type to 'int'. Return -1 upon out-of-memory. Use
6868         __builtin_expect.
6869         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6870         (gl_avltreehash_list_implementation): Update.
6871         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6872         (gl_rbtreehash_list_implementation): Update.
6873         * modules/array-list (Depends-on): Remove xalloc.
6874         * modules/carray-list (Depends-on): Likewise.
6875         * modules/linked-list (Depends-on): Likewise.
6876         * modules/linkedhash-list (Depends-on): Likewise.
6877         * modules/avltree-list (Depends-on): Likewise.
6878         * modules/rbtree-list (Depends-on): Likewise.
6879         * modules/avltreehash-list (Depends-on): Likewise.
6880         * modules/rbtreehash-list (Depends-on): Likewise.
6881
6882         * modules/xsublist: New file.
6883         * lib/gl_xsublist.h: New file.
6884         * lib/gl_xsublist.c: New file.
6885         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6886         (gl_sublist_nx_create): New declaration.
6887         * lib/gl_sublist.c: Don't include xalloc.h.
6888         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6889         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6890         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6891         Change return type to 'int'. Return -1 upon out-of-memory.
6892         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6893         upon out-of-memory.
6894         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6895         NULL upon out-of-memory.
6896         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6897         upon out-of-memory.
6898         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6899         NULL upon out-of-memory.
6900         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6901         NULL upon out-of-memory.
6902         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6903         upon out-of-memory.
6904         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6905         (gl_sublist_list_implementation): Update.
6906         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6907         upon out-of-memory.
6908         * modules/sublist (Depends-on): Remove xalloc.
6909
6910         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6911         * tests/test-carray_list.c: Likewise.
6912         * tests/test-linked_list.c: Likewise.
6913         * tests/test-linkedhash_list.c: Likewise.
6914         * tests/test-avltree_list.c: Likewise.
6915         * tests/test-rbtree_list.c: Likewise.
6916         * tests/test-avltreehash_list.c: Likewise.
6917         * tests/test-rbtreehash_list.c: Likewise.
6918         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6919         * modules/carray-list-tests (Makefile.am): Likewise.
6920         * modules/linked-list-tests (Makefile.am): Likewise.
6921         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6922         * modules/avltree-list-tests (Makefile.am): Likewise.
6923         * modules/rbtree-list-tests (Makefile.am): Likewise.
6924         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6925         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6926
6927         * NEWS: Mention the changes.
6928
6929         * lib/clean-temp.c: Include gl_xlist.h.
6930         * modules/clean-temp (Depends-on): Add xlist.
6931
6932         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6933         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6934
6935         * tests/test-array_oset.c: Include gl_xlist.h.
6936         * modules/array-oset-tests (Depends-on): Add xlist.
6937
6938         Reported by José E. Marchesi <jemarch@gnu.org>.
6939
6940 2009-12-13  Bruno Haible  <bruno@clisp.org>
6941
6942         Move the malloc checking from module 'oset' to new module 'xoset'.
6943         * modules/xoset: New file.
6944         * lib/gl_xoset.h: New file.
6945         * lib/gl_xoset.c: New file.
6946         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6947         declarations.
6948         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6949         (struct gl_oset_implementation): Rename and change methods accordingly.
6950         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6951         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6952         'int'. Mark as __warn_unused_result__.
6953         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6954         gl_oset_create_empty.
6955         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6956         'int'.
6957         * lib/gl_array_oset.c: Don't include xalloc.h.
6958         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6959         malloc, not xmalloc.
6960         (grow): Change return type to 'int'. Don't call xalloc_die.
6961         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6962         to 'int'.
6963         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6964         'int'.
6965         (gl_array_oset_implementation): Update.
6966         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6967         gl_tree_create_empty.
6968         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6969         'int'.
6970         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6971         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6972         xmalloc.
6973         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6974         not xmalloc.
6975         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6976         xmalloc.
6977         (gl_avltree_oset_implementation): Update.
6978         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6979         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6980         xmalloc.
6981         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6982         not xmalloc.
6983         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6984         xmalloc.
6985         (gl_rbtree_oset_implementation): Update.
6986         * modules/array-oset (Depends-on): Remove xalloc.
6987         * modules/avltree-oset (Depends-on): Likewise.
6988         * modules/rbtree-oset (Depends-on): Likewise.
6989         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6990         * tests/test-avltree_oset.c: Likewise.
6991         * tests/test-rbtree_oset.c: Likewise.
6992         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6993         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6994         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6995         * NEWS: Mention the change.
6996
6997 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6998
6999         maint.mk: allow a project to override release-prep commands
7000         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7001         commands into a new rule.
7002         (release-prep): New rule.
7003         (release-prep-hook): New overridable variable.
7004
7005 2009-12-13  Bruno Haible  <bruno@clisp.org>
7006
7007         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7008
7009 2009-12-13  Jim Meyering  <meyering@redhat.com>
7010
7011         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7012         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7013
7014 2009-12-12  Bruno Haible  <bruno@clisp.org>
7015
7016         duplocale: Tweak.
7017         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7018
7019 2009-12-12  Karl Berry  <karl@gnu.org>
7020
7021         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7022
7023 2009-12-12  Bruno Haible  <bruno@clisp.org>
7024
7025         * m4/po.m4: Undo incorrect untabification.
7026
7027 2009-12-12  Bruno Haible  <bruno@clisp.org>
7028
7029         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7030         * modules/c-strtod (Depends-on): Add locale.
7031         * modules/c-strtold (Depends-on): Likewise.
7032
7033 2009-12-12  Bruno Haible  <bruno@clisp.org>
7034
7035         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7036
7037 2009-12-11  Eric Blake  <ebb9@byu.net>
7038
7039         setenv: relax requirement in light of POSIX ruling
7040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7041         not NULL.
7042         * tests/test-setenv.c (main): Relax test.
7043         * tests/test-unsetenv.c (main): Likewise.
7044         * doc/posix-functions/setenv.texi (setenv): Document this.
7045         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7046
7047 2009-12-11  Bruno Haible  <bruno@clisp.org>
7048
7049         New module 'fd-safer-flag'.
7050         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7051         * lib/dup-safer.c (dup_safer_flag): Remove function.
7052         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7053         * lib/fd-safer.c (fd_safer_flag): Remove function.
7054         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7055         * modules/cloexec (configure.ac): Drop indicator macro.
7056         * modules/fd-safer-flag: New file.
7057         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7058         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7059         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7060
7061 2009-12-11  Bruno Haible  <bruno@clisp.org>
7062
7063         Tests for module 'nl_langinfo'.
7064         * modules/nl_langinfo-tests: New file.
7065         * tests/test-nl_langinfo.sh: New file.
7066         * tests/test-nl_langinfo.c: New file.
7067
7068         New module 'nl_langinfo'.
7069         * lib/nl_langinfo.c: New file.
7070         * m4/nl_langinfo.m4: New file.
7071         * modules/nl_langinfo: New file.
7072         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7073
7074 2009-12-11  Bruno Haible  <bruno@clisp.org>
7075
7076         Tests for module 'langinfo'.
7077         * modules/langinfo-tests: New file.
7078         * tests/test-langinfo.c: New file.
7079
7080         New module 'langinfo'.
7081         * lib/langinfo.in.h: New file.
7082         * m4/langinfo_h.m4: New file.
7083         * modules/langinfo: New file.
7084         * doc/posix-headers/langinfo.texi: Mention the new module.
7085
7086 2009-12-11  Bruno Haible  <bruno@clisp.org>
7087
7088         * lib/config.charset: Untabify.
7089
7090 2009-12-11  Bruno Haible  <bruno@clisp.org>
7091
7092         * modules/unistd-safer (configure.ac): Drop indicator macro.
7093
7094 2009-12-11  Bruno Haible  <bruno@clisp.org>
7095
7096         Move pipe2-safer code to its own file.
7097         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7098         * lib/pipe-safer.c (pipe2_safer): Remove function.
7099         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7100         (Makefile.am): Add it to lib_SOURCES.
7101
7102 2009-12-10  Bruno Haible  <bruno@clisp.org>
7103
7104         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7105
7106 2009-12-10  Bruno Haible  <bruno@clisp.org>
7107
7108         Declare which arguments expect non-NULL values, for GCC and clang.
7109         * build-aux/arg-nonnull.h: New file.
7110         * modules/arg-nonnull: New file.
7111         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7112         (inet_ntop, inet_pton): Use it.
7113         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7114         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7115         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7116         (open, openat): Use it.
7117         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7118         (fnmatch): Use it.
7119         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7120         (getopt, getopt_long, getopt_long_only): Use it.
7121         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7122         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7123         Use it.
7124         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7125         (iconv_open): Use it.
7126         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7127         (strtoimax, strtoumax): Use it.
7128         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7129         (duplocale): Use it.
7130         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7131         (frexp, frexpl): Use it.
7132         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7133         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7134         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7135         (tsearch, tfind, tdelete, twalk): Use it.
7136         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7137         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7138         sigpending): Use it.
7139         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7140         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7141         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7142         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7143         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7144         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7145         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7146         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7147         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7148         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7149         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7150         Use it.
7151         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7152         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7153         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7154         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7155         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7156         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7157         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7158         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7159         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7160         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7161         strtoull, unsetenv): Use it.
7162         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7163         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7164         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7165         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7166         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7167         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7168         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7169         (strcasecmp, strncasecmp): Use it.
7170         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7171         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7172         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7173         rpl_setsockopt): Use it.
7174         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7175         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7176         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7177         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7178         (gettimeofday): Use it.
7179         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7180         (times): Use it.
7181         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7182         (uname): Use it.
7183         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7184         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7185         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7186         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7187         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7188         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7189         unlinkat, write): Use it.
7190         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7191         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7192         * lib/argv-iter.h: Include arg-nonnull.h.
7193         (_ATTRIBUTE_NONNULL_): Remove macro.
7194         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7195         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7196         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7197         optimization.
7198         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7199         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7200         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7201         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7202         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7203         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7204         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7205         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7206         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7207         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7208         * modules/dirent (Depends-on): Add arg-nonnull.
7209         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7210         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7211         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7212         * modules/fnmatch (Depends-on): Add arg-nonnull.
7213         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7214         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7215         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7216         * modules/glob (Depends-on): Add arg-nonnull.
7217         (Makefile.am): Insert arg-nonnull.h into glob.h.
7218         * modules/iconv_open (Depends-on): Add arg-nonnull.
7219         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7220         * modules/inttypes (Depends-on): Add arg-nonnull.
7221         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7222         * modules/locale (Depends-on): Add arg-nonnull.
7223         (Makefile.am): Insert arg-nonnull.h into locale.h.
7224         * modules/math (Depends-on): Add arg-nonnull.
7225         (Makefile.am): Insert arg-nonnull.h into math.h.
7226         * modules/netdb (Depends-on): Add arg-nonnull.
7227         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7228         * modules/search (Depends-on): Add arg-nonnull.
7229         (Makefile.am): Insert arg-nonnull.h into search.h.
7230         * modules/signal (Depends-on): Add arg-nonnull.
7231         (Makefile.am): Insert arg-nonnull.h into signal.h.
7232         * modules/spawn (Depends-on): Add arg-nonnull.
7233         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7234         * modules/stdio (Depends-on): Add arg-nonnull.
7235         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7236         * modules/stdlib (Depends-on): Add arg-nonnull.
7237         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7238         * modules/string (Depends-on): Add arg-nonnull.
7239         (Makefile.am): Insert arg-nonnull.h into string.h.
7240         * modules/strings (Depends-on): Add arg-nonnull.
7241         (Makefile.am): Insert arg-nonnull.h into strings.h.
7242         * modules/sys_socket (Depends-on): Add arg-nonnull.
7243         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7244         * modules/sys_stat (Depends-on): Add arg-nonnull.
7245         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7246         * modules/sys_time (Depends-on): Add arg-nonnull.
7247         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7248         * modules/sys_times (Depends-on): Add arg-nonnull.
7249         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7250         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7251         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7252         * modules/time (Depends-on): Add arg-nonnull.
7253         (Makefile.am): Insert arg-nonnull.h into time.h.
7254         * modules/unistd (Depends-on): Add arg-nonnull.
7255         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7256         * modules/wchar (Depends-on): Add arg-nonnull.
7257         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7258         * modules/argv-iter (Depends-on): Add arg-nonnull.
7259         * tests/test-canonicalize.c (null_ptr): New function.
7260         (main): Use it.
7261         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7262         (main): Use it.
7263         * tests/test-memmem.c (null_ptr): New function.
7264         (main): Use it.
7265         Reported by Jim Meyering.
7266
7267 2009-12-10  Bruno Haible  <bruno@clisp.org>
7268
7269         Use spaces for indentation, not tabs.
7270         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7271         * m4/*.m4: Untabify.
7272         * build-aux/*.h: Untabify.
7273         * tests/**/*.[hc]: Untabify.
7274         * README: New section "Indent with spaces, not TABs", based on
7275         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7276         * NEWS: Mention the change.
7277
7278 2009-12-10  Bruno Haible  <bruno@clisp.org>
7279
7280         pty test: Fix link error.
7281         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7282         test_pty_LDADD.
7283
7284 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7285
7286         * modules/pty: New file.
7287         * modules/pty-tests: New file.
7288         * m4/pty.m4: New file.
7289         * tests/test-pty.c: New file.
7290         * doc/glibc-headers/pty.texi: Modified.
7291         * doc/glibc-functions/forkpty.texi: Modified.
7292         * doc/glibc-functions/openpty.texi: Modified.
7293
7294 2009-12-10  Bruno Haible  <bruno@clisp.org>
7295
7296         Avoid syntax error in C++ mode.
7297         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7298
7299 2009-12-10  Bruno Haible  <bruno@clisp.org>
7300
7301         Use sed with option -e.
7302         * gnulib-tool (func_version, func_emit_copyright_notice,
7303         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7304         option -e to sed.
7305         * modules/link-warning (Makefile.am): Likewise.
7306
7307 2009-12-10  Jim Meyering  <meyering@redhat.com>
7308
7309         mgetgroups: do not write bytes beyond end of malloc'd buffer
7310         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7311         username, we call getgroups with a one-element-shorter buffer,
7312         but still told it the length was original, max_n_groups.
7313
7314 2009-12-09  Eric Blake  <ebb9@byu.net>
7315
7316         cloexec: relax license
7317         * modules/cloexec (Maintainer): Add myself.
7318         (License): Use LGPL, not GPL.
7319
7320         link-warning: optimize generation
7321         * modules/link-warning (Makefile.am): Reduce process usage.
7322
7323 2009-12-09  Bruno Haible  <bruno@clisp.org>
7324
7325         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7326         workaround was added on 2009-11-17.
7327
7328 2009-12-09  Jim Meyering  <meyering@redhat.com>
7329             Bruno Haible  <bruno@clisp.org>
7330
7331         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7332         * modules/link-warning (Makefile.am): Make the comment-removing sed
7333         command more robust in the face of bootstrap-prepended comment lines.
7334
7335 2009-12-09  Bruno Haible  <bruno@clisp.org>
7336
7337         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7338         most one group.
7339
7340 2009-12-09  Simon Josefsson <simon@josefsson.org>
7341             Bruno Haible  <bruno@clisp.org>
7342
7343         * build-aux/link-warning.h: Add copyright notice.
7344         * modules/link-warning (Makefile.am): Generate link-warning.h from
7345         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7346         * NEWS: Mention change in link-warning module.
7347         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7348         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7349         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7350         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7351         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7352         * modules/math (Makefile.am): Add dependency to math.h.
7353         * modules/search (Makefile.am): Add dependency to search.h.
7354         * modules/signal (Makefile.am): Add dependency to signal.h.
7355         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7356         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7357         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7358         * modules/string (Makefile.am): Add dependency to string.h.
7359         * modules/strings (Makefile.am): Add dependency to strings.h.
7360         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7361         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7362         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7363         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7364         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7365         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7366         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7367         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7368         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7369
7370 2009-12-09  Bruno Haible  <bruno@clisp.org>
7371
7372         fchdir: Optimize away rpl_fstat when possible.
7373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7374         REPLACE_OPEN_DIRECTORY.
7375         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7376
7377 2009-12-09  Bruno Haible  <bruno@clisp.org>
7378
7379         * lib/fchdir.c: Update comment.
7380
7381 2009-12-09  Bruno Haible  <bruno@clisp.org>
7382
7383         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7384
7385 2009-12-08  Eric Blake  <ebb9@byu.net>
7386
7387         fchdir: avoid memory leak on re-registration.
7388         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7389
7390 2009-12-08  Jim Meyering  <meyering@redhat.com>
7391
7392         init.sh: avoid Solaris 10 /bin/sh portability problem
7393         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7394         sourced script:
7395           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7396           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7397           bar
7398         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7399         and two tests used that idiom.
7400         * tests/init.sh: Update suggested usage comments.
7401         (path_prepend_): New function, to be used in place
7402         of the --src-path=DIR option.
7403         (setup_): Move PATH-prepending code into path_prepend_.
7404         * tests/test-pread.sh: Adapt to new usage.
7405         * tests/test-xalloc-die.sh: Likewise.
7406
7407 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7408
7409         * doc/gnulib.texi (Glibc pty.h): Add.
7410         * doc/glibc-functions/forkpty.texi: Add.
7411         * doc/glibc-functions/openpty.texi: Add.
7412         Suggested by Bruno Haible.
7413
7414 2009-12-08  Eric Blake  <ebb9@byu.net>
7415
7416         fchdir: fix logic bugs
7417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7418         * tests/test-fchdir.c (main): Enhance test.
7419         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7420         is in use.
7421
7422         dup2: fix logic bugs
7423         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7424         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7425         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7426         exists.
7427         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7428
7429 2009-12-07  Eric Blake  <ebb9@byu.net>
7430
7431         unlink: fix m4 detection
7432         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7433
7434         unistd-safer: add unit test
7435         * modules/unistd-safer-tests: New file.
7436         * tests/test-dup-safer.c: Likewise.
7437         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7438         * tests/test-dup2.c (setmode): Likewise.
7439         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7440
7441         cloexec: preserve text vs. binary across dup_cloexec
7442         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7443         mode.
7444         * modules/dup2-tests (Depends-on): Add binary-io.
7445         * modules/cloexec-tests (Depends-on): Likewise.
7446         * tests/test-dup2.c (setmode, is_mode): New helpers.
7447         (main): Add tests that translation mode is preserved.
7448         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7449         Reported by Bruno Haible.
7450
7451         mgetgroups: reduce duplicate listings
7452         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7453         resulting array.
7454         * tests/test-chown.h (test_chown): Simplify client.
7455         * tests/test-lchown.h (test_lchown): Likewise.
7456
7457 2009-12-06  Bruno Haible  <bruno@clisp.org>
7458
7459         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7460         value.
7461
7462 2009-12-06  Bruno Haible  <bruno@clisp.org>
7463
7464         * lib/progname.c: Include stdio.h, stdlib.h.
7465         (set_program_name): Reject a NULL argument.
7466
7467 2009-12-05  Eric Blake  <ebb9@byu.net>
7468
7469         pipe2-safer: new module
7470         * modules/pipe2-safer: New file.
7471         * lib/unistd-safer.h (pipe2_safer): New prototype.
7472         * lib/unistd--.h (pipe2): New wrapper.
7473         * lib/pipe-safer.c (pipe2_safer): New function.
7474         * modules/pipe (Depends-on): Add pipe2-safer.
7475         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7476
7477         stdlib-safer: preserve cloexec flag for mkostemp[s]
7478         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7479         fd_safer_flag.
7480
7481         unistd-safer: allow preservation of cloexec status via flag
7482         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7483         prototypes.
7484         * lib/dup-safer.c (dup_safer_flag): New function.
7485         * lib/fd-safer.c (fd_safer_flag): Likewise.
7486         * modules/cloexec (configure.ac): Set witness.
7487
7488         test-dup2: enhance test
7489         * modules/dup2-tests (Depends-on): Add cloexec.
7490         * tests/test-dup2.c (main): Enhance test.
7491
7492         cloexec: add dup_cloexec
7493         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7494         header and comments.
7495         * lib/cloexec.c (set_cloexec_flag): Add comments.
7496         (dup_cloexec): New function, with mingw implementation borrowed
7497         from...
7498         * lib/w32spawn.h (dup_noinherit): ...here.
7499         * modules/execute (Depends-on): Add cloexec.
7500         * modules/pipe (Depends-on): Likewise.
7501         * modules/cloexec (Depends-on): Add dup2.
7502         * modules/cloexec-tests (Files): New file.
7503         * tests/test-cloexec.c: Likewise.
7504
7505         test-xalloc-die: fix test for mingw
7506         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7507         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7508         directory and .exe suffix off argv[0] output.
7509
7510         test-fseeko: fix test for mingw
7511         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7512         than undefining fseek, so test will pass on mingw.
7513
7514 2009-12-05  Bruno Haible  <bruno@clisp.org>
7515
7516         * lib/progname.h (set_program_name): Clarify specification.
7517         * lib/progname.c (set_program_name): Likewise.
7518         Reported by Jim Meyering.
7519
7520 2009-12-05  Jim Meyering  <meyering@redhat.com>
7521
7522         maint.mk: backslash-escape parens in default regexp
7523         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7524         backslash-escape the literal parentheses.
7525
7526         maint.mk: news-date-check: use grep -E
7527         * top/maint.mk (today): Define a Make variable, not a...
7528         (news-date-check): ...shell variable.
7529         (news-date-regexp): Use the Make variable.
7530         Use grep's -E option.  Change the failing diagnostic to mention
7531         the variable, $(news-date-regexp).
7532
7533 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7534
7535         maintainer-makefile: allow customization of NEWS entry format
7536         * top/maint.mk (news-date-regexp): New overridable variable.
7537         (news-date-check): Use it.
7538
7539 2009-12-04  Eric Blake  <ebb9@byu.net>
7540
7541         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7542         * lib/mgetgroups.h (xgetgroups): New prototype.
7543         * lib/mgetgroups.c (xgetgroups): New wrapper.
7544         (mgetgroups): Handle ENOSYS.
7545         * modules/mgetgroups (Depends-on): Add realloc.
7546         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7547
7548         mgetgroups: avoid argument promotion issues with -1
7549         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7550         for invalid gid_t.
7551         * tests/test-chown.h (getegid, test_chown): Likewise.
7552         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7553
7554 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7555
7556         exclude: Fix header file problems.
7557         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7558
7559 2009-12-01  Jim Meyering  <meyering@redhat.com>
7560
7561         fts: fts_open: do not let an empty string cause immediate failure
7562         This is required in support of GNU rm, for which the command
7563         "rm A '' B" must process and remove both A and B, in spite of
7564         the empty string argument.
7565         * lib/fts.c (fts_open): Do not let the presence of an empty string
7566         cause fts_open to fail immediately.  Most fts-using tools must be
7567         able to process all arguments, in order, and can be expected to
7568         diagnose such arguments themselves.
7569
7570 2009-11-30  Eric Blake  <ebb9@byu.net>
7571
7572         utimens: fix compilation error
7573         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7574         Declare variable at right scope.
7575
7576 2009-11-29  Jim Meyering  <meyering@redhat.com>
7577
7578         bootstrap: handle perl-5.11's changed --version output
7579         * build-aux/bootstrap (get_version): Handle perl separately,
7580         since perl-5.11's --version output is different.
7581
7582 2009-11-28  Jim Meyering  <meyering@redhat.com>
7583
7584         userspec: depend on the inttostr module, too
7585         * modules/userspec (Depends-on): Add inttostr.
7586
7587         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7588         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7589         number of MAXUID when it evaluates to (uid_t) -1.
7590         Likewise for group ID.  Reported by Matt McCutchen in
7591         <http://savannah.gnu.org/bugs/?28113>
7592
7593         userspec: reformat to use spaces, not TABs
7594         * lib/userspec.c: Expand TABs to spaces.
7595         Add Emacs' "indent-tabs-mode: nil" hint.
7596
7597 2009-11-27  Eric Blake  <ebb9@byu.net>
7598
7599         getopt-gnu: flush out another BSD bug
7600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7601         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7602         flush out BSD bug.
7603         * tests/test-getopt.h (test_getopt): End lists with NULL.
7604         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7605         (test_getopt_long_posix): Enhance test.
7606         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7607         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7608         getopt-gnu.
7609         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7610         Likewise.
7611
7612 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7613
7614         * modules/idpriv-droptemp-tests (Notice): Fix text.
7615
7616 2009-11-27  Jim Meyering  <meyering@redhat.com>
7617
7618         test-xalloc-die: avoid spurious failure due to libtool argv difference
7619         In a libtool-enabled project, this test would fail due to a difference
7620         in the emitted program name, e.g.,
7621         -test-xalloc-die: memory exhausted
7622         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7623         Use program to avoid that.
7624         * modules/xalloc-die-tests (Depends-on): Add progname.
7625         * tests/test-xalloc-die.c: Include progname.h".
7626         (program_name): Remove decl.
7627         (main): Call set_program_name.
7628         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7629
7630 2009-11-26  Richard Jones  <rjones@redhat.com>
7631
7632         w32sock: leave win32 error in place.
7633         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7634
7635 2009-11-26  Eric Blake  <ebb9@byu.net>
7636
7637         init.sh: suggest to use skip_ and fail_ functions in comments
7638         * tests/init.sh: Add a sentence.
7639
7640 2009-11-25  Bruno Haible  <bruno@clisp.org>
7641
7642         init.sh: add documentation in comments
7643         * tests/init.sh: Add some developer and user documentation.
7644
7645 2009-11-26  Jim Meyering  <meyering@redhat.com>
7646
7647         init.sh: accommodate even those who specify bogus srcdir manually
7648         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7649         configure-time tests to be sanitized, so that there is no need to
7650         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7651         (with no double quotes) suffices.  However, since tests may be
7652         invoked manually, and since you may explicitly set srcdir to the
7653         name of a directory containing spaces, do quote its uses here.
7654         * tests/test-pread.sh: Likewise.
7655         Suggested by Bruno Haible.
7656
7657         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7658         * tests/test-pread.sh: Write no data into the pipe, because
7659         test-pread actually reads none.  This avoids a diagnostic,
7660         "bash: echo: write error: Broken pipe", that arises in the unusual
7661         event something is ignoring SIGPIPE, and might be interpreted
7662         as some sort of failure.  Reported by Bruno Haible.
7663
7664 2009-11-25  Jim Meyering  <meyering@redhat.com>
7665
7666         test-pread: cover failure with ESPIPE and EINVAL
7667         * tests/test-pread.c (main): Test for failure, too.
7668         * tests/test-pread.sh: Invoke with stdin on a pipe.
7669         Suggested by Eric Blake.
7670
7671         pread: improvement and fix
7672         * modules/pread (Depends-on): Depend on lseek, for portability to
7673         e.g., mingw.  Suggested by Eric Blake.
7674         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7675
7676         unistd.in.h: correct declaration of pread
7677         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7678         Reported by Richard W.M. Jones.
7679
7680         test-pread.sh: distribute the test script
7681         * modules/pread-tests (Files): Include test-pread.sh.
7682
7683         test-pread.sh: clean up
7684         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7685         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7686         That is unnecessary, since it's always ".".
7687         Suggestion from Eric Blake.
7688
7689         test-pread.sh: make executable
7690         * tests/test-pread.sh: Set executable bit.
7691         Reported by Eric Blake.
7692
7693         correct typo in test-pread.sh
7694         * tests/test-pread.sh: Add #! line.
7695
7696         test pread
7697         * tests/test-pread.c: New file.
7698         * tests/test-pread.sh: Likewise.
7699         * modules/pread-tests: Likewise.
7700
7701         pread: new module
7702         * modules/pread: New file.
7703         * lib/unistd.in.h (pread): Define/declare.
7704         * lib/pread.c (pread): New file.
7705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7706         * modules/unistd (Makefile.am): Substitute witnesses.
7707         * doc/posix-functions/pread.texi (pread): Update.
7708         * MODULES.html.sh: Add pread.
7709
7710 2009-11-25  Jim Meyering  <meyering@redhat.com>
7711
7712         tests/init.sh: new file to be used via most *.sh tests
7713         * tests/init.sh: New file.
7714
7715 2009-11-25  Eric Blake  <ebb9@byu.net>
7716
7717         utimens: work around older Linux failure with symlinks
7718         * lib/utimens.c (lutimensat_works_really): New variable.
7719         (fdutimens, lutimens): Use it to manage kernels that support
7720         nanosecond times on files, but not on symlinks.
7721         Reported by Ondřej Vašík.
7722
7723         utimes: fix configure grammar
7724         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7725
7726 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7727
7728         regex: Fix fastmap for multibyte character ranges.
7729         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7730         characters when a multibyte character range is included.
7731
7732 2009-11-22  Andy Wingo  <wingo@pobox.com>
7733
7734         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7735         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7736
7737 2009-11-24  Bruno Haible  <bruno@clisp.org>
7738
7739         doc: Most *_l functions exist in MacOS X 10.5.
7740         * doc/posix-functions/duplocale.texi: Update platforms list.
7741         * doc/posix-functions/freelocale.texi: Likewise.
7742         * doc/posix-functions/newlocale.texi: Likewise.
7743         * doc/posix-functions/uselocale.texi: Likewise.
7744         * doc/posix-functions/isalnum_l.texi: Likewise.
7745         * doc/posix-functions/isalpha_l.texi: Likewise.
7746         * doc/posix-functions/isblank_l.texi: Likewise.
7747         * doc/posix-functions/iscntrl_l.texi: Likewise.
7748         * doc/posix-functions/isdigit_l.texi: Likewise.
7749         * doc/posix-functions/isgraph_l.texi: Likewise.
7750         * doc/posix-functions/islower_l.texi: Likewise.
7751         * doc/posix-functions/isprint_l.texi: Likewise.
7752         * doc/posix-functions/ispunct_l.texi: Likewise.
7753         * doc/posix-functions/isspace_l.texi: Likewise.
7754         * doc/posix-functions/isupper_l.texi: Likewise.
7755         * doc/posix-functions/iswalnum_l.texi: Likewise.
7756         * doc/posix-functions/iswalpha_l.texi: Likewise.
7757         * doc/posix-functions/iswblank_l.texi: Likewise.
7758         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7759         * doc/posix-functions/iswctype_l.texi: Likewise.
7760         * doc/posix-functions/iswdigit_l.texi: Likewise.
7761         * doc/posix-functions/iswgraph_l.texi: Likewise.
7762         * doc/posix-functions/iswlower_l.texi: Likewise.
7763         * doc/posix-functions/iswprint_l.texi: Likewise.
7764         * doc/posix-functions/iswpunct_l.texi: Likewise.
7765         * doc/posix-functions/iswspace_l.texi: Likewise.
7766         * doc/posix-functions/iswupper_l.texi: Likewise.
7767         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7768         * doc/posix-functions/isxdigit_l.texi: Likewise.
7769         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7770         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7771         * doc/posix-functions/strcoll_l.texi: Likewise.
7772         * doc/posix-functions/strfmon_l.texi: Likewise.
7773         * doc/posix-functions/strftime_l.texi: Likewise.
7774         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7775         * doc/posix-functions/strxfrm_l.texi: Likewise.
7776         * doc/posix-functions/tolower_l.texi: Likewise.
7777         * doc/posix-functions/toupper_l.texi: Likewise.
7778         * doc/posix-functions/towctrans_l.texi: Likewise.
7779         * doc/posix-functions/towlower_l.texi: Likewise.
7780         * doc/posix-functions/towupper_l.texi: Likewise.
7781         * doc/posix-functions/wcscoll_l.texi: Likewise.
7782         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7783         * doc/posix-functions/wctrans_l.texi: Likewise.
7784         * doc/posix-functions/wctype_l.texi: Likewise.
7785         * doc/glibc-functions/strptime_l.texi: Likewise.
7786         * doc/glibc-functions/strtod_l.texi: Likewise.
7787         * doc/glibc-functions/strtof_l.texi: Likewise.
7788         * doc/glibc-functions/strtol_l.texi: Likewise.
7789         * doc/glibc-functions/strtold_l.texi: Likewise.
7790         * doc/glibc-functions/strtoll_l.texi: Likewise.
7791         * doc/glibc-functions/strtoul_l.texi: Likewise.
7792         * doc/glibc-functions/strtoull_l.texi: Likewise.
7793         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7794         * doc/glibc-functions/wcstod_l.texi: Likewise.
7795         * doc/glibc-functions/wcstof_l.texi: Likewise.
7796         * doc/glibc-functions/wcstol_l.texi: Likewise.
7797         * doc/glibc-functions/wcstold_l.texi: Likewise.
7798         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7799         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7800         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7801
7802 2009-11-24  Bruno Haible  <bruno@clisp.org>
7803
7804         duplocale: Fix logic bug.
7805         * lib/duplocale.c: Don't include <langinfo.h>.
7806         (_NL_LOCALE_NAME): Remove macro.
7807         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7808         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7809
7810 2009-11-23  Jim Meyering  <meyering@redhat.com>
7811
7812         test-update-copyright: don't hard-code /usr/bin/perl
7813         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7814         perl to print the current year.  Gilles Espinasse reported that
7815         the replaced use of perl was hard-coded as /usr/bin/perl.
7816
7817 2009-11-23  Bruno Haible  <bruno@clisp.org>
7818
7819         duplocale: Add support for glibc 2.3.x.
7820         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7821
7822 2009-11-22  Bruno Haible  <bruno@clisp.org>
7823
7824         vasnprintf: Tiny optimization.
7825         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7826         MacOS X.
7827
7828 2009-11-22  Bruno Haible  <bruno@clisp.org>
7829
7830         Tests for module 'duplocale'.
7831         * modules/duplocale-tests: New file.
7832         * tests/test-duplocale.c: New file.
7833
7834         New module 'duplocale'.
7835         * m4/duplocale.m4: New file.
7836         * lib/locale.in.h (duplocale): New declaration.
7837         * lib/duplocale.c: New file.
7838         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7839         gl_LOCALE_H_DEFAULTS): New macros.
7840         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7841         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7842         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7843         REPLACE_DUPLOCALE.
7844         * modules/duplocale: New file.
7845         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7846
7847 2009-11-22  Bruno Haible  <bruno@clisp.org>
7848
7849         * modules/locale-tests (configure.ac): Test for newlocale function.
7850         * tests/test-locale.c: When the system has extended locale functions,
7851         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7852
7853         locale: Make locale_t available when possible.
7854         * lib/locale.in.h: Include <xlocale.h> when it exists.
7855         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7856         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7857         * modules/locale (Depends-on): Add extensions.
7858         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7859         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7860
7861 2009-11-22  Bruno Haible  <bruno@clisp.org>
7862
7863         Add comments.
7864         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7865         invocation.
7866         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7867         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7868         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7869
7870 2009-11-22  Bruno Haible  <bruno@clisp.org>
7871
7872         error: account for the possibility of freopen (stdout).
7873         * lib/error.c: Include <unistd.h>.
7874         (flush_stdout): New function, extracted from error and error_at_line.
7875         Determine stdout's fd dynamically.
7876         (error, error_at_line): Invoke flush_stdout.
7877         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7878         * modules/error (Depends-on): Add unistd.
7879
7880 2009-11-22  Bruno Haible  <bruno@clisp.org>
7881
7882         diffseq: Add comment.
7883         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7884
7885 2009-11-22  Jim Meyering  <meyering@redhat.com>
7886
7887         c-stack: avoid defining an unused static function
7888         * lib/c-stack.c (find_stack_direction): Do not define this function
7889         when it will not be used.
7890
7891         diffseq: avoid spurious gcc warnings
7892         * lib/diffseq.h (IF_LINT2): Define.
7893         (compareseq): Use it to initialize two members of "part".
7894         This avoids two used-uninitialized warnings.
7895
7896 2009-11-21  Jim Meyering  <meyering@redhat.com>
7897
7898         c-stack: avoid "ignoring return value of `write'" warning
7899         * lib/c-stack.c: Include "ignore-value.h".
7900         (die): Explicitly ignore each write return value.
7901         * modules/c-stack (Depends-on): Add ignore-value.
7902
7903 2009-11-21  Bruno Haible  <bruno@clisp.org>
7904
7905         diffseq: reduce scope of variable 'best'.
7906         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7907         variable, earlier used for two different purposes.
7908
7909 2009-11-21  Jim Meyering  <meyering@redhat.com>
7910
7911         diffseq: remove useless assignment to "best"
7912         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7913         assignment.  At that point "best" is already guaranteed to be zero.
7914
7915 2009-11-20  Eric Blake  <ebb9@byu.net>
7916
7917         build: mention ftp redirector in release announcements
7918         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7919         values that used to come from cfg.mk; mention FTP redirect URL.
7920         * build-aux/announce-gen: Mention the mirror list.
7921         Suggested by Karl Berry.
7922
7923         nanosleep: improve port to mingw
7924         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7926         LIB_NANOSLEEP, but only when needed.
7927         * modules/select (Link): Document LIBSOCKET.
7928         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7929         enough.
7930
7931         nanosleep: work around cygwin bug
7932         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7933         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7934         bug.
7935         (getnow): Delete, not needed.
7936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7937         LIB_CLOCK_GETTIME.
7938         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7939         clock-time, gettime.
7940         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7941         bug.
7942         * modules/nanosleep-tests: New test.
7943         * tests/test-nanosleep.c: New file.
7944
7945         sleep: work around cygwin bug
7946         * lib/sleep.c (rpl_sleep): Work around the bug.
7947         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7948         (gl_PREREQ_SLEEP): Delete unused macro.
7949         * modules/sleep (Depends-on): Add verify.
7950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7951         * modules/unistd (Makefile.am): Substitute witness.
7952         * lib/unistd.in.h (sleep): Update prototype.
7953         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7954         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7955         * modules/sleep-tests (Depends-on): Check for alarm.
7956
7957 2009-11-20  Jim Meyering  <meyering@redhat.com>
7958
7959         maint.mk: improve sc_prohibit_magic_number_exit
7960         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7961         so it does not match uses like System.exit(1).
7962         Add comments showing how to correct all offenders.
7963
7964 2009-11-19  Eric Blake  <ebb9@byu.net>
7965
7966         xalloc-die-tests: add missing library
7967         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7968
7969         test-xvasprintf: silence compiler warnings
7970         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7971         empty string from gcc.
7972
7973 2009-11-19  Jim Meyering  <meyering@redhat.com>
7974
7975         xfreopen: new module, from coreutils
7976         * modules/xfreopen: New module.
7977         * lib/xfreopen.c: New file.
7978         * lib/xfreopen.h: New file.
7979         * MODULES.html.sh (File stream based Input/Output"): Add it.
7980
7981 2009-11-19  Eric Blake  <ebb9@byu.net>
7982
7983         manywarnings: depend on warnings
7984         * modules/manywarnings (Depends-on): Add warnings.
7985
7986         build: avoid compiler warnings
7987         * lib/select.c (rpl_select): Delete unused variable.
7988         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7989
7990 2009-11-18  Eric Blake  <ebb9@byu.net>
7991
7992         tests: avoid false negative with --with-packager
7993         * tests/test-version-etc.sh: Discard packager information.
7994         * tests/test-argp-version-etc-1.sh: Likewise.
7995         Reported by Mike Frysinger.
7996
7997         utimens: fix regression on Solaris
7998         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7999         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8000         can only change fd timestamps via futimesat.  Instead, use an
8001         additional witness macro to avoid BSD bug.
8002         Reported by Jim Meyering.
8003
8004 2009-11-17  Eric Blake  <ebb9@byu.net>
8005
8006         usleep: use it to simplify tests
8007         * modules/stat-time-tests (Depends-on): Add usleep.
8008         (configure.ac): Drop usleep check.
8009         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8010         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8011         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8012         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8013         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8014         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8015         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8016         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8017         Likewise.
8018         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8019         * tests/test-lchown.h (nap): Likewise.
8020         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8021         * tests/test-stat-time.c (nap): Likewise.
8022         * tests/test-utimens-common.h (nap): Update comments.
8023
8024         usleep: new module
8025         * modules/usleep: New file.
8026         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8027         * lib/usleep.c (usleep): Likewise.
8028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8029         * modules/unistd (Makefile.am): Substitute witnesses.
8030         * lib/unistd.in.h (usleep): Add declaration.
8031         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8032         * MODULES.html.sh (Date and time): Likewise.
8033         * modules/usleep-tests (Depends-on): New test.
8034         * tests/test-usleep.c: New file.
8035
8036         chown: work around OpenBSD bug
8037         * lib/chown.c (rpl_chown): Work around the bug.
8038         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8039         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8040         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8041         * modules/chown (Depends-on): Add stdbool.
8042         * modules/lchown (Depends-on): Likewise.
8043         * doc/posix-functions/chown.texi (chown): Document the bug.
8044         * doc/posix-functions/lchown.texi (lchown): Likewise.
8045         * tests/test-lchown.h (test_chown): Relax test.
8046
8047         mkstemp: avoid conflict with C++ keyword template
8048         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8049         * lib/mkostemp.c (mkostemp): Likewise.
8050         * lib/mkostemps.c (mkostemps): Likewise.
8051         * lib/mkstemp.c (mkstemp): Likewise.
8052         * lib/mkstemps.c (mkstemps): Likewise.
8053
8054         xalloc-die-tests: optimize
8055         * tests/test-xalloc-die.sh: Reduce number of processes.
8056
8057 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8058
8059         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8060         patch from ludo@gnu.org (Ludovic Courtès).
8061
8062 2009-11-17  Jim Meyering  <meyering@redhat.com>
8063
8064         version-etc: use proper license string
8065         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8066         * modules/version-etc-fsf: Likewise.
8067
8068 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8069
8070         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8071         printed to stdout.  Deal with EOL differences.
8072
8073 2009-11-17  Eric Blake  <ebb9@byu.net>
8074
8075         unsetenv: work around Solaris bug
8076         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8077         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8078         Reported by Jim Meyering.
8079
8080         vasnprintf: avoid compiler warnings
8081         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8082         variables.
8083         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8084
8085 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8086
8087         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8088         settings since xalloc-die is no longer the self test,
8089         xalloc-die.sh is.
8090
8091 2009-11-17  Jim Meyering  <meyering@redhat.com>
8092
8093         test-xalloc-die.sh: make the code agree with the commit log
8094         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8095         at the end, just in case you happen to have a test-xalloc-die
8096         program in some other PATH directory.
8097
8098         test-xalloc-die.sh: fix a portability bug
8099         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8100         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8101         Otherwise, argv[0] (as often seen in diagnostics) would be too
8102         system-dependent, sometimes with, and sometimes without the leading "./".
8103
8104         version-etc-fsf: relax license to LGPLv3+
8105         * modules/version-etc-fsf (License): Relax license.
8106
8107 2009-11-16  Eric Blake  <ebb9@byu.net>
8108
8109         xalloc-die-tests: avoid printing null pointer
8110         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8111         shell script.
8112         * tests/test-xalloc-die.c (program_name): Declare.
8113         * tests/test-xalloc-die.sh (tmpfiles): New file.
8114
8115         setenv, unsetenv: work around various bugs
8116         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8117         (setenv) [HAVE_SETENV]: Work around bugs.
8118         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8119         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8120         for bugs.
8121         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8122         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8124         * modules/stdlib (Makefile.am): Update substitutions.
8125         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8126         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8127         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8128         * modules/setenv-tests: New test.
8129         * modules/unsetenv-tests: Likewise.
8130         * tests/test-setenv.c: New file.
8131         * tests/test-unsetenv.c: Likewise.
8132
8133 2009-11-16  Jim Meyering  <meyering@redhat.com>
8134
8135         version-etc: relax license to LGPLv3+
8136         * modules/version-etc (License): Relax license.
8137
8138         better AC_REQUIRE expanded-before-required-warning avoidance
8139         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8140         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8141         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8142         which is no longer needed.
8143
8144 2009-11-16  Eric Blake  <ebb9@byu.net>
8145
8146         test-freading: clean up temporary file
8147         * tests/test-freading.c (main): Remove file on success, and use
8148         ASSERT more liberally.
8149         Reported by Jim Meyering.
8150
8151 2009-11-16  Jim Meyering  <meyering@redhat.com>
8152
8153         avoid new AC_REQUIRE expanded-before-required warnings
8154         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8155         merely using it.
8156         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8157         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8158
8159 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8160
8161         * tests/test-xalloc-die.c: New file.
8162         * modules/xalloc-die-tests: New file.
8163         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8164         XFAIL_TESTS so it can be appended by modules.
8165
8166 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8167
8168         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8169         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8170
8171 2009-11-14  Eric Blake  <ebb9@byu.net>
8172
8173         fnmatch: avoid compiler warning
8174         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8175         to silence compiler warning about mismatch signedness in ?:.
8176         Reported by Robert Millan.
8177
8178         intprops: add double-inclusion guard
8179         * lib/intprops.h: Allow idempotent includes.
8180         Suggested by Bruce Korb.
8181
8182         openat: detect Solaris fchownat bug
8183         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8184         penalizing glibc chownat when only lchownat is broken.
8185         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8186         trailing slash bugs.
8187         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8188         * modules/openat-tests (Files): Include more files.
8189         (Depends-on): Add mgetgroups, sleep, stat-time.
8190         (configure.ac): Add additional checks.
8191         (Makefile.am): Build new test.
8192         * tests/test-fchownat.c: New file.
8193
8194         lchown: detect Solaris and FreeBSD bug
8195         * lib/lchown.c (rpl_lchown): Work around bug.
8196         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8198         * modules/unistd (Makefile.am): Populate it.
8199         * lib/unistd.in.h (lchown): Update declaration.
8200         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8201         * modules/lchown-tests: New file.
8202         * tests/test-lchown.h (test_lchown): Likewise.
8203         * tests/test-lchown.c (main): Likewise.
8204
8205         chown: detect Solaris and FreeBSD bug
8206         * lib/chown.c (rpl_chown): Work around bug.
8207         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8208         (gl_PREREQ_CHOWN): Delete.
8209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8210         * modules/unistd (Makefile.am): Populate it.
8211         * lib/unistd.in.h (chown): Update declaration.
8212         * lib/lchown.c (chown): Update client.
8213         * modules/lchown (Depends-on): Add lstat.
8214         * doc/posix-functions/chown.texi (chown): Document the bug.
8215         * doc/posix-functions/getgroups.texi (getgroups): Document
8216         getgroups pitfall.
8217         * modules/chown-tests: New file.
8218         * tests/test-chown.h (test_chown): Likewise.
8219         * tests/test-chown.c (main): Likewise.
8220
8221 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8222
8223         gnulib-tool: correctly detect absence of m4 directories
8224         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8225
8226 2009-11-14  Jim Meyering  <meyering@redhat.com>
8227
8228         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8229         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8230
8231 2009-11-14  John W. Eaton  <jwe@gnu.org>
8232
8233         strftime.h: wrap funtion declaration in extern "C" block
8234         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8235
8236 2009-11-13  Eric Blake  <ebb9@byu.net>
8237
8238         getgroups: avoid compiler warning
8239         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8240
8241         getgroups: work around FreeBSD bug
8242         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8243         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8244         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8245         * tests/test-getgroups.c (main): Fix buffer overrun.
8246
8247         getgroups: avoid compilation failure
8248         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8249         * modules/getgroups (Depends-on): Add stdint.
8250
8251 2009-11-13  Jim Meyering  <meyering@redhat.com>
8252
8253         test-getgroups: avoid compilation failure
8254         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8255
8256 2009-11-13  Eric Blake  <ebb9@byu.net>
8257
8258         mgetgroups: new module, taken from coreutils
8259         * modules/mgetgroups: New file.
8260         * lib/mgetgroups.h: Likewise.
8261         * lib/mgetgroups.c (mgetgroups): Likewise.
8262         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8263         * MODULES.html.sh (Users and groups): Mention it.
8264
8265         getgroups: don't expose GETGROUPS_T to user
8266         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8267         an element at a time if GETGROUPS_T is wrong size.
8268         * lib/getugroups.h (getugroups): Change signature.
8269         * lib/unistd.in.h (getgroups): Likewise.
8270         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8271         signature needs fixing.
8272         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8273         AC_TYPE_GETGROUPS.
8274         * modules/group-member (Depends-on): Add getgroups.
8275         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8276         (group_member): Rely on getgroups replacement.
8277         * lib/getugroups.c (getugroups): Use gid_t.
8278         * tests/test-getgroups.c (main): Likewise.
8279         * NEWS: Mention the signature change.
8280         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8281         problem with signature.
8282         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8283         GETGROUPS_T is still useful for setgroups.
8284
8285         getgroups, getugroups: provide stubs for mingw
8286         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8287         * lib/getugroups.c (getugroups): Likewise.
8288         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8289         function.  Modernize replacement scheme.
8290         (gl_PREREQ_GETGROUPS): Delete.
8291         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8292         * modules/getgroups (configure.ac): Declare witness.
8293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8294         * modules/unistd (Depends-on): Substitute witness.
8295         * lib/unistd.in.h (getgroups): Declare replacement.
8296
8297         getgroups: avoid calling exit
8298         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8299         drop xalloc.
8300         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8301         dependencies.
8302         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8303         exiting, in the rare case of malloc failure.
8304
8305         getgroups: fix logic error
8306         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8307         has more than 20 groups.
8308         * modules/getgroups-tests: New test.
8309         * tests/test-getgroups.c: New file.
8310
8311 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8312
8313         * tests/test-base64.c: Improve.
8314
8315 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8316
8317         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8318         Blake <ebb9@byu.net>.
8319
8320 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8321
8322         * tests/test-xvasprintf.c: Add %s%s related checks.
8323
8324 2009-11-12  Eric Blake  <ebb9@byu.net>
8325
8326         version-etc: match standards.texi style
8327         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8328         and use <> only for URLs.
8329
8330 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8331
8332         fts: do not fail on a submount during traversal
8333         * lib/fts.c (fts_build): Read the stat info again after opening
8334         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8335         Original report at http://bugzilla.redhat.com/501848.
8336
8337 2009-11-12  Jim Meyering  <meyering@redhat.com>
8338
8339         bootstrap: sync from coreutils
8340         * build-aux/bootstrap (bootstrap_epilogue): New function.
8341         Use git_modules_config in one more place.  This make bootstrap's
8342         --gnulib-srcdir option more useful for testing.
8343
8344         bootstrap: generalize autoheader check
8345         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8346         AC_CONFIG_HEADERS.
8347
8348 2009-11-11  Eric Blake  <ebb9@byu.net>
8349
8350         mkfifoat: use new modules for Solaris and BSD bugs
8351         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8352         * lib/mkfifoat.c (mknodat): Split...
8353         * lib/mknodat.c (mknodat): ...into new file.
8354         * modules/mkfifoat (Files): Ship new file.
8355         (Depends-on): Add mkfifo, mknod.
8356         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8357         (Depends-on): Add symlink.
8358         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8359         redundant with test_mkfifo.h.
8360         (do_mkfifoat, do_mknodat): New helpers.
8361
8362         mknod: new module
8363         * modules/mknod: New file.
8364         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8365         * lib/mknod.c (mknod): Likewise.
8366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8367         defaults.
8368         * modules/sys_stat (Makefile.am): Substitute them.
8369         * lib/sys_stat.in.h (mknod): Declare replacement.
8370         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8371         Document it.
8372         * doc/posix-functions/mknod.texi (mknod): Likewise.
8373         * modules/mknod-tests: New test.
8374         * tests/test-mknod.c: Likewise.
8375
8376         mkfifo: new module
8377         * modules/mkfifo: New file.
8378         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8379         * lib/mkfifo.c (mkfifo): Likewise.
8380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8381         defaults.
8382         * modules/sys_stat (Makefile.am): Substitute them.
8383         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8384         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8385         Document it.
8386         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8387         * modules/mkfifo-tests: New test.
8388         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8389         from test-mkfifoat.c.
8390         * tests/test-mkfifo.c: New file.
8391
8392         readlink: detect FreeBSD bug
8393         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8394         slash on symlink.
8395         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8396         * tests/test-readlink.h (test_readlink): Enhance test.
8397
8398         symlink: detect FreeBSD bug
8399         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8400         slash on symlink.
8401         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8402         * tests/test-symlink.h (test_symlink): Enhance test.
8403
8404 2009-11-10  Eric Blake  <ebb9@byu.net>
8405
8406         link: detect FreeBSD bug
8407         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8408         symlink.
8409         * doc/posix-functions/link.texi (link): Document the bug.
8410         * tests/test-link.h (test_link): Enhance test.
8411         * tests/test-linkat.c (main): Update caller.
8412
8413         unlink, remove: detect FreeBSD bug
8414         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8415         slash on symlink.
8416         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8417         * doc/posix-functions/remove.texi (remove): Likewise.
8418         * tests/test-unlink.h (test_unlink): Enhance test.
8419         * tests/test-remove.c (main): Likewise.
8420
8421 2009-11-09  Eric Blake  <ebb9@byu.net>
8422
8423         rename: detect FreeBSD bug
8424         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8425         slash on symlink.
8426         * modules/renameat-tests (Depends-on): Add filenamecat.
8427         * tests/test-rename.h (test_rename): Allow one more errno.
8428         * tests/test-renameat.c (main): Likewise.
8429         * doc/posix-functions/rename.texi (rename): Document the bug.
8430
8431         open: detect FreeBSD bug
8432         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8433         symlink.
8434         * doc/posix-functions/open.texi (open): Document the bug.
8435         * doc/posix-functions/utimes.texi (utimes): Likewise.
8436         * tests/test-open.h (test_open): Add parameters, and test symlink
8437         handling.
8438         * tests/test-open.c (main): Adjust caller.
8439         * tests/test-fcntl-safer.c (main): Likewise.
8440         * modules/open-tests (Depends-on): Add stdbool, symlink.
8441         * modules/fcntl-safer-tests (Depends-on): Likewise.
8442         * tests/test-openat.c (main): Add test-open tests.
8443
8444         stat: detect FreeBSD bug
8445         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8446         symlink.
8447         * doc/posix-functions/stat.texi (stat): Document the bug.
8448         * tests/test-stat.h (test_stat_func): Add argument.
8449         * tests/test-stat.c (main): Adjust caller.
8450         * tests/test-fstatat.c (main): Likewise.
8451         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8452         Reported by Jim Meyering.
8453
8454 2009-11-09  James Youngman  <jay@gnu.org>
8455
8456         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8457         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8458
8459 2009-11-08  Jim Meyering  <meyering@redhat.com>
8460
8461         utimens: remove invalid futimesat call
8462         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8463         It used the file descriptor of the target file as the DIR_FD
8464         parameter and NULL as the file name.  That caused failure with
8465         errno == EFAULT on FreeBSD-8.0-rc2
8466
8467 2009-11-07  Eric Blake  <ebb9@byu.net>
8468
8469         fflush, freadseek: use fseeko, not fseek
8470         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8471         (clear_ungetc_buffer): Avoid potential problems on large files.
8472         * lib/freadseek.c (freadseek): Likewise.
8473         * modules/freadseek (Depends-on): Add fseeko.
8474         * modules/fseek (configure.ac): Set a witness.
8475         * tests/test-fflush.c (main): Use fseeko.
8476         * tests/test-fpurge.c (fseek): Disable link warning.
8477         * tests/test-freadable.c (fseek): Likewise.
8478         * tests/test-freading.c (fseek): Likewise.
8479         * tests/test-fseeko.c (fseek): Likewise.
8480         * tests/test-ftell.c (fseek): Likewise.
8481         * tests/test-ftello.c (fseek): Likewise.
8482         * tests/test-fwritable.c (fseek): Likewise.
8483         * tests/test-fwriting.c (fseek): Likewise.
8484
8485 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8486
8487         * modules/memchr (Depends-on): Drop getpagesize dependency.
8488
8489 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8490
8491         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8492         Reported by Ludovic Courtès.
8493         * build-aux/pmccabe2html: Improve example usage.
8494         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8495
8496 2009-11-06  Jim Meyering  <meyering@redhat.com>
8497
8498         do-release-commit-and-tag: New module.
8499         Automate the release-commit and tag process.
8500         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8501         * modules/do-release-commit-and-tag: New file.
8502         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8503
8504 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8505
8506         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8507         because test-select.c uses inet_pton.
8508
8509 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8510
8511         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8512         GETADDRINFO_LIB.  Bump serial number.
8513         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8514         Suggested by Eric Blake <ebb9@byu.net>.
8515
8516 2009-11-05  Eric Blake  <ebb9@byu.net>
8517
8518         strtod: detect darwin bug
8519         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8520         Reported by Leo Davis.
8521
8522         freopen-safer: new module
8523         * modules/freopen-safer: New module.
8524         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8525         * lib/freopen-safer.c (freopen_safer): New file.
8526         * lib/stdio-safer.h (freopen_safer): New declaration.
8527         * lib/stdio--.h (freopen): New override.
8528         * MODULES.html.sh (File stream based Input/Output): Mention it.
8529         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8530         freopen-safer module.
8531         * doc/posix-functions/stderr.texi (stderr): Likewise.
8532         * doc/posix-functions/stdin.texi (stdin): Likewise.
8533         * doc/posix-functions/stdout.texi (stdout): Likewise.
8534         * modules/freopen-safer-tests: New test.
8535         * tests/test-reopen-safer.c: New file.
8536
8537 2009-11-05  Jim Meyering  <meyering@redhat.com>
8538
8539         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8540         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8541
8542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8543
8544         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8545
8546 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8547
8548         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8549
8550 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8551
8552         Fix link error.
8553         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8554         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8555
8556 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8557
8558         * tests/test-func.c: Also test value of __func__.
8559
8560 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8561
8562         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8563         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8564
8565 2009-11-05  Bruno Haible  <bruno@clisp.org>
8566
8567         Fix link error.
8568         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8569         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8570         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8571
8572 2009-11-05  Bruno Haible  <bruno@clisp.org>
8573
8574         Tests for module 'inet_pton'.
8575         * modules/inet_pton-tests: New file.
8576         * tests/test-inet_pton.c: New file.
8577
8578 2009-11-05  Bruno Haible  <bruno@clisp.org>
8579
8580         Tests for module 'inet_ntop'.
8581         * modules/inet_ntop-tests: New file.
8582         * tests/test-inet_ntop.c: New file.
8583
8584 2009-11-04  Eric Blake  <ebb9@byu.net>
8585
8586         stdlib-safer: wrap all mkstemp variants
8587         * modules/mkostemp (configure.ac): Set witness.
8588         * modules/mkostemps (configure.ac): Likewise.
8589         * modules/mkstemps (configure.ac): Likewise.
8590         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8591         (mkstemps_safer): Wrap more functions.
8592         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8593         wrapping.
8594         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8595         (mkstemps_safer): Implement the wrappers.
8596
8597         mkstemps, mkostemps: new modules
8598         * modules/mkostemps: New module.
8599         * modules/mkstemps: Likewise.
8600         * lib/mkostemps.c (mkostemps): New file.
8601         * lib/mkstemps.c (mkstemps): Likewise.
8602         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8603         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8605         * modules/stdlib (Makefile.am): Substitute them.
8606         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8607         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8608         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8609         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8610         * MODULES.html.sh (File system functions): Mention them.
8611
8612         tempname: resync from glibc
8613         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8614         same values for __GT_FILE as glibc.  Abort even when assertions
8615         are disabled.
8616         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8617         match its value otherwise.  Allow idempotent inclusion.
8618         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8619         * lib/mkostemp.c (mkostemp): Likewise.
8620         * lib/mkstemp.c (mkstemp): Likewise.
8621         * lib/tmpfile.c (tmpfile): Likewise.
8622         * NEWS: Document this.
8623
8624         utimens: fix use of futimens on older Linux
8625         * lib/utimens.c (fdutimens): Use updated, rather than original,
8626         timespec to avoid bug in older Linux kernel.
8627         Reported by Simon Josefsson.
8628
8629 2009-11-04  Bruno Haible  <bruno@clisp.org>
8630
8631         Make num_processors more flexible and consistent.
8632         * lib/nproc.h (enum nproc_query): New type.
8633         (num_processors): Add a 'query' argument.
8634         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8635         (num_processors): Add a 'query' argument. Test the value of the
8636         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8637         mingw, count the number of CPUs available for the current process.
8638         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8639         Check for sched_getaffinity and sched_getaffinity_np.
8640         * modules/nproc (Depends-on): Add c-ctype, extensions.
8641         * NEWS: Mention the change.
8642
8643 2009-11-03  Bruno Haible  <bruno@clisp.org>
8644
8645         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8646
8647 2009-11-03  Jim Meyering  <meyering@redhat.com>
8648
8649         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8650         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8651         if it is defined.
8652
8653 2009-11-02  Eric Blake  <ebb9@byu.net>
8654
8655         mktime, timegm: share common declaration
8656         * lib/mktime-internal.h: New file.
8657         * lib/mktime.c: Use it rather than open-coding a declaration.
8658         * lib/timegm.c: Likewise.
8659         * modules/mktime (Files): Ship it.
8660         * modules/timegm (Files): Likewise.
8661         Suggested by Bruno Haible.
8662
8663         test-update-copyright: update test to match script changes
8664         * tests/test-update-copyright.sh: Avoid hard-coding perl
8665         location.  Don't update *.bak created by earlier runs.
8666
8667 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8668             Simon Josefsson  <simon@josefsson.org>
8669             Bruno Haible  <bruno@clisp.org>
8670
8671         Fix link error on Solaris 8.
8672         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8673         also in libnsl. Define also INET_PTON_LIB.
8674         * modules/inet_pton (Link): New section.
8675
8676 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8677             Bruno Haible  <bruno@clisp.org>
8678
8679         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8680         * modules/inet_ntop (Link): New section.
8681         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8682
8683 2009-11-02  Eric Blake  <ebb9@byu.net>
8684
8685         maint: avoid compiler warnings in m4 macros
8686         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8687         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8688
8689 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8690
8691         * m4/pmccabe2html.m4: Remove file.
8692         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8693         function.  Change maintainer.
8694         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8695         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8696         Courtès).
8697
8698 2009-10-31  Eric Blake  <ebb9@byu.net>
8699
8700         fseeko: fix m4 regression
8701         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8702         regression from 2009-10-27.
8703         Reported by Ralf Wildenhues.
8704
8705 2009-10-31  Jim Meyering  <meyering@redhat.com>
8706
8707         inttostr: aesthetics and improved (compile-time) safety
8708         Define inttype_is_signed rather than inttype_is_unsigned,
8709         since the sole use is via "#if inttype_is_signed".
8710         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8711         inttype_is_unsigned.
8712         * lib/offtostr.c (inttype_is_signed): Likewise.
8713         * lib/uinttostr.c (inttype_is_signed): Likewise.
8714         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8715         * lib/inttostr.c (inttostr): Use verify to cross-check the
8716         inttype_is_signed value and the signedness of the actual type.
8717         * modules/inttostr (Depends-on): Add verify.
8718
8719 2009-10-30  Eric Blake  <ebb9@byu.net>
8720
8721         build: avoid compiler warnings
8722         * lib/fchmodat.c (lchmod): Mark unused variables.
8723         * lib/getopt.c (_getopt_initialize): Likewise.
8724         * lib/mktime.c (__mktime_internal): Provide prototype.
8725         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8726         older gcc that do not understand #pragma GCC diagnostic.
8727         * lib/uinttostr.c (inttype_is_unsigned): Define.
8728         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8729
8730 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8731
8732         stat: fix compilation on AIX
8733         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8734         only see struct stat64.
8735
8736 2009-10-30  Eric Blake  <ebb9@byu.net>
8737
8738         exclude: make more robust
8739         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8740         rather than masking a coding bug.
8741         Suggested by Bruno Haible.
8742
8743 2009-10-30  Jim Meyering  <meyering@redhat.com>
8744
8745         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8746         Rather than putting #!/usr/bin/perl on the first line,
8747         start with a variant of what's recommended by "man perlrun" that
8748         invokes the first "perl" program from your shell's search path.
8749         * build-aux/gitlog-to-changelog: Replace #!... as above.
8750         Add a "Local Variables" perl mode setting.
8751         Prompted by a patch from Ludovic Courtès.
8752         Improved by Eric Blake.
8753         * build-aux/useless-if-before-free: Likewise.
8754         * build-aux/announce-gen: Likewise.
8755         * build-aux/update-copyright: Likewise.
8756
8757 2009-10-29  Eric Blake  <ebb9@byu.net>
8758
8759         filenamecat-lgpl: adjust clients
8760         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8761         filenamecat.
8762         * modules/renameat (Depends-on): Likewise.
8763
8764         filenamecat: split into filenamecat-lgpl
8765         * modules/filenamecat-lgpl: New module.
8766         * modules/filenamecat (Files): Move library-safe files into
8767         filenamecat-lgpl.
8768         (Depends-on): Add filenamecat-lgpl.
8769         (configure.ac): Declare witness.
8770         * lib/filenamecat.h (file_name_concat): Only declare when using
8771         GPL module.
8772         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8773         Move...
8774         * lib/filenamecat-lgpl.c: ...into new file.
8775         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8776         (gl_FILE_NAME_CONCAT): Use it.
8777         * MODULES.html.sh (File system functions): Mention new module.
8778
8779         argp: avoid memory leak
8780         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8781         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8782         base_name, since the latter malloc()s and can call exit().
8783         Leak introduced 2006-07-03.
8784
8785         dirname-lgpl: adjust clients that don't need full dirname
8786         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8787         * modules/filenamecat (Depends-on): Likewise.
8788         * modules/linkat (Depends-on): Likewise.
8789         * modules/mkancesdirs (Depends-on): Likewise.
8790         * modules/mkdir (Depends-on): Likewise.
8791         * modules/openat (Depends-on): Likewise.
8792         * modules/savewd (Depends-on): Likewise.
8793         * modules/rename (Depends-on): Likewise.
8794         (License): Relax license.
8795         * modules/mkdir-tests (Depends-on): Drop progname.
8796         (Makefile.am): Delete unneeded LDADD.
8797         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8798
8799         dirname: split into dirname-lgpl
8800         * modules/dirname-lgpl: New module.
8801         * modules/dirname (Files): Move library-safe files into
8802         dirname-lgpl.
8803         (Depends-on): Add dirname-lgpl.
8804         (configure.ac): Declare witness.
8805         * modules/double-slash-root (License): Relax license.
8806         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8807         module.
8808         * lib/dirname.c (dir_len, mdir_name): Move...
8809         * lib/dirname-lgpl.c: ...into new file.
8810         * lib/basename.c (last_component, base_len): Move...
8811         * lib/basename-lgpl.c: ...into new file.
8812         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8813         (gl_DIRNAME): Use it.
8814         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8815         Mention new module.
8816         * modules/dirname-tests (Depends-on): Add progname.
8817         * tests/test-dirname.c (program_name): Delete.
8818
8819         mkdir: make safe for libraries
8820         * modules/mkdir (Depends-on): Drop xalloc.
8821         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8822         exit.
8823
8824         tests: avoid some compiler warnings
8825         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8826         literals.
8827         * tests/test-memchr.c (main): Avoid type mismatch.
8828         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8829         * tests/test-base64.c (main): Likewise.
8830         * tests/test-getdelim.c (main): Likewise.
8831         * tests/test-gethostname.c (main): Likewise.
8832         * tests/test-getline.c (main): Likewise.
8833         * tests/test-netinet_in.c (main): Likewise.
8834         * tests/test-select.c (open_server_socket, main): Likewise.
8835         * tests/test-select-stdin.c (main): Likewise.
8836         * tests/test-sockets.c (main): Likewise.
8837         * tests/test-strsignal.c (main): Likewise.
8838         * tests/test-sys_select.c (main): Likewise.
8839         * tests/test-sys_socket.c (main): Likewise.
8840         * tests/test-u64.c (main): Likewise.
8841         * tests/test-xfprintf-posix.c (main): Likewise.
8842         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8843
8844         sockets: avoid compiler warning
8845         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8846
8847         maint: detect usage(1) and other suspicious exits
8848         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8849
8850 2009-10-29  Jim Meyering  <meyering@redhat.com>
8851
8852         timespec: long-to-int truncation could make timespec_cmp malfunction
8853         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8854         a multiple of 2^32 nanoseconds as no difference.
8855
8856 2009-10-28  Jim Meyering  <meyering@redhat.com>
8857
8858         fprintftime: wrap macro code argument in "do {...} while(0)"
8859         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8860         cpy macro must be a statement that can be followed by a semicolon.
8861         Now that the else clause contains a comment and is hence longer
8862         than one line, I require curly braces.  That in turn requires
8863         that we wrap this code block in the standard do...while(0).
8864
8865         fprintftime: remove stray semicolon from previous change
8866         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8867
8868         fprintftime: avoid a warning about ignored fwrite return value
8869         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8870         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8871         that is unsafe.
8872         * modules/fprintftime (Depends-on): Add ignore-value.
8873
8874         exclude: avoid an unwarranted warning
8875         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8876
8877 2009-10-27  Eric Blake  <ebb9@byu.net>
8878
8879         fseek: avoid compilation failure when fflush is replaced
8880         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8881         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8882         module is in use.
8883         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8884         module is not in use; since REPLACE_FSEEK worked otherwise.
8885         (GNULIB_FTELLO): Likewise for ftell.
8886         Reported by Ian Beckwith and others.
8887
8888 2009-10-27  Bruno Haible  <bruno@clisp.org>
8889
8890         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8891         Reported by Jim Meyering.
8892
8893 2009-10-27  Jim Meyering  <jim@meyering.net>
8894             Bruno Haible  <bruno@clisp.org>
8895
8896         Avoid warning despite dropping the return value of fwrite.
8897         * lib/unicodeio.c: Include ignore-value.h.
8898         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8899         * modules/unicodeio (Depends-on): Add ignore-value.
8900
8901 2009-10-26  Eric Blake  <ebb9@byu.net>
8902
8903         areadlinkat: fix fallback path
8904         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8905         pointer and zero.
8906
8907 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8908
8909         Use a better IO block size for modern systems
8910         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8911         * lib/md2.c: Likewise.
8912         * lib/md4.c: Likewise.
8913         * lib/md5.c: Likewise.
8914         * lib/sha1.c: Likewise.
8915         * lib/sha256.c: Likewise.
8916         * lib/sha512.c: Likewise.
8917
8918 2009-10-22  Eric Blake  <ebb9@byu.net>
8919
8920         tests: avoid several compiler warnings
8921         * tests/test-getcwd.c (main): Avoid buffer underflow.
8922         * tests/test-getdate.c (main): String literals are not safe with
8923         putenv, so use setenv.  Declare unused argument.
8924         * modules/getdate-tests (Depends-on): Add setenv.
8925         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8926         problems with string literals in char *.
8927         * tests/test-hash.c (main): Avoid shadowing declaration.
8928         (insert_new): Treat string literals as char const *.
8929         * tests/test-getopt.h (test_getopt): Likewise.
8930         (getopt_loop): Alter types to minimize casting elsewhere.
8931         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8932         (test_getopt_long_posix): Likewise.
8933         (do_getopt_long): Add wrapper to minimize casting.
8934         * tests/test-atexit.c (clear_temp_file): Use void.
8935         * tests/test-areadlink-with-size.c (main): Declare unused
8936         arguments.
8937         * tests/test-areadlink.c (main): Likewise.
8938         * tests/test-areadlinkat-with-size.c (main): Likewise.
8939         * tests/test-areadlinkat.c (main): Likewise.
8940         * tests/test-canonicalize-lgpl.c (main): Likewise.
8941         * tests/test-canonicalize.c (main): Likewise.
8942         * tests/test-dirent-safer.c (main): Likewise.
8943         * tests/test-dirname.c (main): Likewise.
8944         * tests/test-dup2.c (main): Likewise.
8945         * tests/test-fchdir.c (main): Likewise.
8946         * tests/test-fcntl-h.c (main): Likewise.
8947         * tests/test-fcntl-safer.c (main): Likewise.
8948         * tests/test-fdopendir.c (main): Likewise.
8949         * tests/test-fdutimensat.c (main): Likewise.
8950         * tests/test-fflush.c (main): Likewise.
8951         * tests/test-filenamecat.c (main): Likewise.
8952         * tests/test-filevercmp.c (main): Likewise.
8953         * tests/test-fopen-safer.c (main): Likewise.
8954         * tests/test-fopen.c (main): Likewise.
8955         * tests/test-fpending.c (main): Likewise.
8956         * tests/test-fpurge.c (main): Likewise.
8957         * tests/test-freading.c (main): Likewise.
8958         * tests/test-fstatat.c (main): Likewise.
8959         * tests/test-fsync.c (main): Likewise.
8960         * tests/test-futimens.c (main): Likewise.
8961         * tests/test-getndelim2.c (main): Likewise.
8962         * tests/test-gettimeofday.c (main): Likewise.
8963         * tests/test-getopt.c (main): Likewise.
8964         * tests/test-i-ring.c (main): Likewise.
8965         * tests/test-inttypes.c (main): Likewise.
8966         * tests/test-link.c (main): Likewise.
8967         * tests/test-lstat.c (main): Likewise.
8968         * tests/test-math.c (main): Likewise.
8969         * tests/test-md5.c (main): Likewise.
8970         * tests/test-memchr2.c (main): Likewise.
8971         * tests/test-memrchr.c (main): Likewise.
8972         * tests/test-mkdir.c (main): Likewise.
8973         * tests/test-mkdirat.c (main): Likewise.
8974         * tests/test-mkfifoat.c (main): Likewise.
8975         * tests/test-open.c (main): Likewise.
8976         * tests/test-openat-safer.c (main): Likewise.
8977         * tests/test-openat.c (main): Likewise.
8978         * tests/test-quotearg.c (main): Likewise.
8979         * tests/test-rawmemchr.c (main): Likewise.
8980         * tests/test-readlink.c (main): Likewise.
8981         * tests/test-remove.c (main): Likewise.
8982         * tests/test-rename.c (main): Likewise.
8983         * tests/test-renameat.c (main): Likewise.
8984         * tests/test-rmdir.c (main): Likewise.
8985         * tests/test-sha1.c (main): Likewise.
8986         * tests/test-signal.c (main): Likewise.
8987         * tests/test-sigaction.c (main): Likewise.
8988         * tests/test-stat.c (main): Likewise.
8989         * tests/test-stat-time.c (main): Likewise.
8990         * tests/test-stddef.c (main): Likewise.
8991         * tests/test-stdint.c (main): Likewise.
8992         * tests/test-stdio.c (main): Likewise.
8993         * tests/test-stdlib.c (main): Likewise.
8994         * tests/test-strchrnul.c (main): Likewise.
8995         * tests/test-strerror.c (main): Likewise.
8996         * tests/test-string.c (main): Likewise.
8997         * tests/test-strtod.c (main): Likewise.
8998         * tests/test-strverscmp.c (main): Likewise.
8999         * tests/test-symlink.c (main): Likewise.
9000         * tests/test-symlinkat.c (main): Likewise.
9001         * tests/test-sys_stat.c (main): Likewise.
9002         * tests/test-sys_time.c (main): Likewise.
9003         * tests/test-time.c (main): Likewise.
9004         * tests/test-unistd.c (main): Likewise.
9005         * tests/test-unlink.c (main): Likewise.
9006         * tests/test-unlinkat.c (main): Likewise.
9007         * tests/test-utimens.c (main): Likewise.
9008         * tests/test-utimensat.c (main): Likewise.
9009         * tests/test-version-etc.c (main): Likewise.
9010         * tests/test-wchar.c (main): Likewise.
9011         * tests/test-wctype.c (main): Likewise.
9012         * tests/test-xprintf-posix.c (main): Likewise.
9013         * tests/test-posixtm.c (main): Likewise.
9014         (STREQ): Delete unused macro.
9015         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9016         shadowed variables.
9017         * tests/test-memchr.c (main): Likewise.
9018
9019 2009-10-21  Eric Blake  <ebb9@byu.net>
9020
9021         areadlinkat: avoid failure on older glibc
9022         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9023         rather than mis-comparing 0 against FUNC_RESULT of char*.
9024
9025 2009-10-21  Bruno Haible  <bruno@clisp.org>
9026
9027         * modules/stpncpy (License): Relicense under LGPLv2+.
9028         Reported by David Lutterkort <lutter@redhat.com>.
9029
9030 2009-10-20  Eric Blake  <ebb9@byu.net>
9031
9032         utimensat: work around Solaris 9 bug
9033         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9034         has trailing slash bugs.
9035         * tests/test-lutimens.h (test_lutimens): Enhance test.
9036         * tests/test-utimens.h (test_utimens): Likewise.
9037         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9038         * doc/posix-functions/utimes.texi (utimes): Likewise.
9039         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9040         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9041         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9042         * doc/posix-functions/futimens.texi (futimens): Likewise.
9043
9044         fdutimensat: new module
9045         * modules/fdutimensat: New file.
9046         * lib/fdutimensat.c (fdutimensat): Likewise.
9047         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9048         * MODULES.html.sh (File system functions): Mention module.
9049         * modules/fdutimensat-tests: New test.
9050         * tests/test-fdutimensat.c: Likewise.
9051
9052         doc: regenerate INSTALL
9053         * doc/INSTALL: Reflect recent autoconf update.
9054         * doc/INSTALL.ISO: Likewise.
9055         * doc/INSTALL.UTF-8: Likewise.
9056
9057 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9058
9059         acl: warn if ACL support is not detected
9060         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9061
9062 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9063
9064         * lib/nproc.h: Add extern "C" block for C++.
9065
9066 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9067             Bruno Haible  <bruno@clisp.org>
9068
9069         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9070         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9071         * doc/posix-functions/isalpha.texi: Likewise.
9072         * doc/posix-functions/isblank.texi: Likewise.
9073         * doc/posix-functions/iscntrl.texi: Likewise.
9074         * doc/posix-functions/isdigit.texi: Likewise.
9075         * doc/posix-functions/isgraph.texi: Likewise.
9076         * doc/posix-functions/islower.texi: Likewise.
9077         * doc/posix-functions/isprint.texi: Likewise.
9078         * doc/posix-functions/ispunct.texi: Likewise.
9079         * doc/posix-functions/isspace.texi: Likewise.
9080         * doc/posix-functions/isupper.texi: Likewise.
9081         * doc/posix-functions/isxdigit.texi: Likewise.
9082
9083 2009-10-18  Bruno Haible  <bruno@clisp.org>
9084
9085         Tests for module 'isblank'.
9086         * modules/isblank-tests: New file.
9087         * tests/test-isblank.c: New file.
9088
9089         New module 'isblank'.
9090         * lib/isblank.c: New file.
9091         * m4/isblank.m4: New file.
9092         * modules/isblank: New file.
9093         * doc/posix-functions/isblank.texi: Mention the new module.
9094
9095 2009-10-18  Bruno Haible  <bruno@clisp.org>
9096
9097         New module 'ctype'.
9098         * lib/ctype.in.h: New file.
9099         * m4/ctype.m4: New file.
9100         * modules/ctype: New file.
9101         * doc/posix-headers/ctype.texi: Mention the new module.
9102
9103 2009-10-18  Jim Meyering  <meyering@redhat.com>
9104
9105         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9106         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9107         right after its initialization, rather than farther down.
9108         Keeping these in close proximity makes it easier to ensure
9109         that each such variable is initialized.  E.g.,
9110
9111             LIB_CLOCK_GETTIME=
9112             AC_SUBST([LIB_CLOCK_GETTIME])
9113
9114         This change also increments these serial numbers.
9115         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9116         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9118
9119 2009-10-18  Bruno Haible  <bruno@clisp.org>
9120
9121         Don't let environment variables perturb build.
9122         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9123         (gl_PREREQ_GETHRXTIME): ... not here.
9124
9125 2009-10-18  Bruno Haible  <bruno@clisp.org>
9126
9127         Avoid symlink attack in localcharset module.
9128         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9129         (O_NOFOLLOW): Define fallback.
9130         (get_charset_aliases): Don't open the file if it is a symbolic link.
9131         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9132         gl_FCNTL_H.
9133         (gl_FCNTL_H): Require it.
9134         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9135         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9136         Reported by Fergal Glynn <fglynn@veracode.com>.
9137
9138 2009-10-18  Bruno Haible  <bruno@clisp.org>
9139
9140         Implement nproc for mingw.
9141         * lib/nproc.c: Include <windows.h>
9142         (num_processors): On native Windows platforms, try GetSystemInfo.
9143
9144 2009-10-18  Bruno Haible  <bruno@clisp.org>
9145
9146         Implement nproc for IRIX.
9147         * lib/nproc.c: Include <sys/sysmp.h>.
9148         (num_processors): On IRIX systems, try sysmp.
9149         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9150
9151 2009-10-18  Bruno Haible  <bruno@clisp.org>
9152
9153         Implement nproc for HP-UX.
9154         * lib/nproc.c: Include <sys/pstat.h>
9155         (num_processors): On HP-UX systems, try pstat_getdynamic.
9156         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9157         pstat_getdynamic.
9158
9159 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9160             Bruno Haible  <bruno@clisp.org>
9161
9162         Implement nproc for NetBSD, OpenBSD.
9163         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9164         (ARRAY_SIZE): New macro.
9165         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9166         * m4/nproc.m4: New file.
9167         * modules/nproc (Files): Add m4/nproc.m4.
9168         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9169         (Makefile.am): Instead, augment lib_SOURCES.
9170
9171 2009-10-18  Bruno Haible  <bruno@clisp.org>
9172
9173         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9174         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9175         sys/param.h.
9176
9177 2009-10-16  Eric Blake  <ebb9@byu.net>
9178
9179         utimensat: new module
9180         * modules/utimensat: New file.
9181         * lib/utimensat.c (utimensat): Likewise.
9182         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9183         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9184         so we can work around Linux bugs.
9185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9186         * modules/sys_stat (Makefile.am): Substitute them.
9187         * lib/sys_stat.in.h (utimensat): Declare it.
9188         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9189         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9190         * modules/utimensat-tests: New test.
9191         * tests/test-utimensat.c: Likewise.
9192
9193         utimens: let lutimens work on non-symlinks
9194         * lib/utimens.c (lutimens): Fall back to utimens rather than
9195         failing with ENOSYS, when file is not a symlink.
9196         (utimens): Reduce redirection.
9197         * tests/test-lutimens.h (test_lutimens): Update test to cover
9198         non-symlinks.
9199         * tests/test-utimens.h (test_utimens): Update test to cover
9200         symlinks.
9201         * tests/test-utimens.c (main): Update caller.
9202
9203         utimens: cache whether utimensat syscall works
9204         * lib/utimens.c (utimensat_works_really): New cache variable.
9205         (fdutimens, lutimens): Use it to avoid failing syscall.
9206
9207         test-stat-time, test-utimens: improve portability
9208         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9209         ext4 on alpha, and for cygwin.
9210         * tests/test-utimens-common.h: New file.
9211         (nap): Factor delays into single function.
9212         * tests/test-lutimens.h (test_lutimens): Use new header.
9213         * tests/test-futimens.h (test_futimens): Likewise.
9214         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9215         timestamps to occur from same machine, as was done previously for
9216         test_utimens.
9217         * modules/utimens-tests (Files): Ship new file.
9218         * modules/futimens-tests (Files): Likewise.
9219         Reported in part by Jim Meyering.
9220
9221         sys_stat: sort replacement declarations
9222         * lib/sys_stat.in.h: Sort declarations.
9223         * lib/futimens.c (futimens): Fix typo.
9224
9225 2009-10-15  Jim Meyering  <meyering@redhat.com>
9226
9227         don't let environment settings perturb build
9228         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9229         could cause a configure-time and/or build-time malfunction.
9230         Typically, a configure-time function-in-library test is performed
9231         via code like this:
9232
9233           LIB_VAR=
9234           AC_SUBST([LIB_VAR])
9235           prefix_saved_LIBS=$LIBS
9236             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9237                        [test "$ac_cv_search_FUNC" = "none required" ||
9238                         LIB_VAR=$ac_cv_search_FUNC])
9239           LIBS=$prefix_saved_LIBS
9240
9241         However, in each of the files affected by this change, the LIB_VAR=
9242         initialization was omitted.  Thus, when set in the environment, its
9243         value would propagate into generated Makefiles when FUNC is not found
9244         in LIB_NAME.
9245         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9246         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9248
9249 2009-10-14  Eric Blake  <ebb9@byu.net>
9250
9251         fchdir: avoid infinite recursion in mingw
9252         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9253         recursing.
9254
9255         test-stat-time: port to mingw
9256         * tests/test-stat-time.c (force_unlink): Return a value.
9257         (test_ctime) [W32]: Fix compilation error.
9258         (nap): Don't call usleep with too large an argument.  Use
9259         force_unlink.
9260         * doc/pastposix-functions/usleep.texi (usleep): Document the
9261         portability issue.
9262
9263 2009-10-13  Jim Meyering  <meyering@redhat.com>
9264
9265         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9266         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9267         * modules/pipe-filter-ii: Likewise.
9268         * modules/sys_socket-tests: Likewise.
9269         * modules/tsearch-tests: Likewise.
9270         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9271         (check): Depend on it.
9272
9273 2009-10-12  Eric Blake  <ebb9@byu.net>
9274
9275         utimens-tests: port to NFS file systems
9276         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9277         comparisons to avoid spurious failures from timestamp drift
9278         between NFS machines.
9279
9280 2009-10-12  Eric Blake  <ebb9@byu.net>
9281
9282         stat-time-tests: minor cleanups
9283         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9284         * tests/test-stat-time.c (nap): Separate assignment from call.
9285         Suggested by Paolo Bonzini and Bruno Haible.
9286
9287         sys_stat: guarantee struct timespec
9288         * lib/sys_stat.in.h (includes): Always include <time.h>
9289         * modules/sys_stat (Depends-on): Add time.
9290         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9291         mode_t permission values.
9292         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9293         get at subsecond timestamps.
9294
9295 2009-10-10  Eric Blake  <ebb9@byu.net>
9296
9297         futimens: new module
9298         * modules/futimens: New file.
9299         * lib/futimens.c (futimens): Likewise.
9300         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9301         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9302         we can work around Linux bugs.
9303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9304         * modules/sys_stat (Makefile.am): Substitute them.
9305         * lib/sys_stat.in.h (futimens): Declare it.
9306         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9307         * doc/posix-functions/futimens.texi (futimens): Likewise.
9308         * modules/futimens-tests: New test.
9309         * tests/test-futimens.c: Likewise.
9310
9311         utimens: introduce fdutimens
9312         * lib/utimens.h (fdutimens): New prototype.
9313         * lib/utimens.c (gl_futimens): Move guts...
9314         (fdutimens): ...to new interface.
9315         * tests/test-utimens.c (do_fdutimens): Use it.
9316
9317         utimens: add UTIME_NOW and UTIME_OMIT support
9318         * lib/utimens.c (validate_timespec, update_timespec): New helper
9319         functions.
9320         (gl_futimens, lutimens): Use them.
9321         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9322         stdbool, sys_stat.
9323         (Link): Mention resulting library dependency.
9324         * modules/utimecmp (Link): Likewise.
9325         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9326         (Makefile.am): Pick up library dependency.
9327         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9328         definition.
9329         * tests/test-sys_stat.c: Test the definitions.
9330         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9331         * NEWS: Document library dependency.
9332
9333         utimecmp: support symlink timestamps
9334         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9335         hashing when possible.  Use pathconf when available.
9336         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9337         * modules/utimecmp (Depends-on): Add lstat.
9338
9339         utimens: add lutimens interface
9340         * lib/utimens.c (lutimens): New function.
9341         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9342         * lib/utimens.h (lutimens): Declare new interface.
9343         * tests/test-utimens.c (main): Enhance test.
9344         * tests/test-lutimens.h (test_lutimens): New file.
9345         * modules/utimens-tests (Files): Distribute it.
9346         (Depends-on): Add symlink.
9347         (configure.ac): Check for usleep.
9348
9349         utimens: validate futimens usage
9350         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9351         fewer syscalls on failure later on.  Avoid compiler warning on
9352         mingw.
9353         * modules/utimens (Depends-on): Add dup2.
9354
9355         utimens: add test
9356         * modules/utimens-tests: New test.
9357         * tests/test-utimens.h: New file.
9358         * tests/test-futimens.h: Likewise.
9359         * tests/test-utimens.c: Likewise.
9360
9361         doc: mention timestamp portability issues
9362         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9363         instead.
9364         * doc/posix-functions/utime.texi (utime): Likewise.
9365         * doc/posix-functions/utimes.texi (utimes): Likewise.
9366         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9367         instead.
9368         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9369         module.
9370         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9371         Mention weakness with symlink timestamps.
9372         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9373         to utimensat/futimens instead.
9374         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9375
9376         test-dup2: enhance test
9377         * tests/test-dup2.c (main): Also check AT_FDCWD.
9378
9379         test-stat-time: avoid more spurious failures
9380         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9381         xfs; and avoid race if the two timestamps cross quantization edge.
9382
9383         relocatable: prefer 'file system' over 'filesystem'
9384         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9385         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9386         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9387         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9388         * lib/relocatable.c (compute_curr_prefix): Likewise.
9389
9390 2009-10-10  Jim Meyering  <meyering@redhat.com>
9391
9392         stat-time-tests: check for the usleep function
9393         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9394
9395 2009-10-10  Bruno Haible  <bruno@clisp.org>
9396
9397         * modules/xnanosleep: Put the Link section after the Include section.
9398
9399 2009-10-09  Eric Blake  <ebb9@byu.net>
9400
9401         dup2: work around FreeBSD 6.1 bug
9402         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9403         * doc/posix-functions/dup2.texi (dup2): Document it.
9404         Reported by Nelson H. F. Beebe and Jim Meyering.
9405
9406         test-stat-time: port to buggy NFS clients
9407         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9408         (test_ctime): Also skip test if mtime and ctime are skewed.
9409
9410         maint: prefer 'file system' over 'filesystem'
9411         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9412         * doc/posix-functions/lstat.texi (lstat): Likewise.
9413         * lib/file-has-acl.c (file_has_acl): Likewise.
9414         * lib/fwriteerror.c [TEST]: Likewise.
9415         * tests/test-areadlink.h (test_areadlink): Likewise.
9416         * tests/test-areadlinkat-with-size.c (main): Likewise.
9417         * tests/test-areadlinkat.c (main): Likewise.
9418         * tests/test-canonicalize-lgpl.c (main): Likewise.
9419         * tests/test-canonicalize.c (main): Likewise.
9420         * tests/test-fstatat.c (main): Likewise.
9421         * tests/test-linkat.c (main): Likewise.
9422         * tests/test-lstat.h (test_lstat_func): Likewise.
9423         * tests/test-mkdir.h (test_mkdir): Likewise.
9424         * tests/test-readlink.h (test_readlink): Likewise.
9425         * tests/test-remove.c (main): Likewise.
9426         * tests/test-rename.h (test_rename): Likewise.
9427         * tests/test-renameat.c (main): Likewise.
9428         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9429         * tests/test-symlink.h (test_symlink): Likewise.
9430         * tests/test-symlinkat.c (main): Likewise.
9431         * tests/test-unlink.h (test_unlink_func): Likewise.
9432         * tests/test-unlinkat.c (main): Likewise.
9433
9434         maint: make realtime library usage explicit
9435         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9436         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9437         * modules/settime (Link): Likewise.
9438         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9439
9440         test-stat-time: speed up execution
9441         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9442         warning on mingw.
9443         (nap): New helper function.
9444         (prepare_test): Use it to reduce sleep time.
9445         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9446         execution.
9447         * modules/stat-time-tests (configure.ac): Check for usleep.
9448
9449 2009-10-09  Jim Meyering  <meyering@redhat.com>
9450
9451         selinux-h: always use getfilecon wrappers
9452         * lib/getfilecon.c: New file.
9453         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9454         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9455         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9456         (fgetfilecon): Provide a stub.
9457         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9458         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9459         file unconditionally.
9460         When <selinux/selinux.h> is found, arrange to use wrappers.
9461         * modules/selinux-h (Files): Add getfilecon.c.
9462         (Makefile.am): Substitute include-next-related bits
9463         into the now-always-generated selinux/selinux.h file.
9464         * doc/glibc-functions/lgetfilecon.texi: New file.
9465         * doc/glibc-functions/fgetfilecon.texi: New file.
9466         * doc/glibc-functions/getfilecon.texi: New file.
9467         * doc/glibc-functions/getfilecon-desc.texi: New file.
9468         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9469         which to pull in the new files.
9470         * MODULES.html.sh (Misc): Add selinux-h.
9471
9472 2009-10-08  Jim Meyering  <meyering@redhat.com>
9473
9474         unistd: fix comment typo
9475         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9476
9477 2009-10-08  Eric Blake  <ebb9@byu.net>
9478
9479         areadlink: use SIZE_MAX consistently
9480         * modules/areadlink (Depends-on): Add stdint.
9481         * modules/areadlink-with-size (Depends-on): Likewise.
9482         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9483         gives NULL; drop sys/types, since unistd gives size_t; and add
9484         stdint for SIZE_MAX.
9485         (SIZE_MAX): Rely on headers.
9486         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9487         and add stdint.
9488         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9489         (SIZE_MAX): Likewise.
9490         (INITIAL_BUF_SIZE): Turn into enum.
9491         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9492
9493 2009-10-08  Jim Meyering  <meyering@redhat.com>
9494
9495         areadlinkat: avoid compilation failure
9496         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9497         Fix typo in comment.
9498
9499 2009-10-07  Eric Blake  <ebb9@byu.net>
9500
9501         areadlinkat-with-size: new module
9502         * modules/areadlinkat-with-size: New module.
9503         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9504         * lib/areadlink.h (areadlinkat): Declare it.
9505         * MODULES.html.sh (File system functions): Mention it.
9506         * modules/areadlinkat-with-size-tests: New test.
9507         * tests/test-areadlinkat-with-size.c: New file.
9508
9509         xreadlinkat: new module
9510         * modules/xreadlinkat: New module.
9511         * lib/xreadlinkat.c (xreadlinkat): New file.
9512         * lib/xreadlink.h (xreadlinkat): Declare it.
9513         * MODULES.html.sh (File system functions): Mention it.
9514
9515         areadlinkat: new module
9516         * lib/at-func.c (FUNC_FAIL): New define.
9517         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9518         * modules/areadlinkat: New module.
9519         * lib/linkat.c (areadlinkat): Move...
9520         * lib/areadlinkat.c (areadlinkat): ...to new file.
9521         * lib/areadlink.h (areadlinkat): Declare it.
9522         * modules/linkat (Depends-on): Add areadlinkat.
9523         * MODULES.html.sh (File system functions): Mention it.
9524         * modules/areadlinkat-tests: New test.
9525         * tests/test-areadlinkat.c: New file.
9526
9527         areadlink, areadlink-with-size: add tests
9528         * modules/areadlink-tests: New test.
9529         * modules/areadlink-with-size-tests: Likewise.
9530         * tests/test-areadlink.h: New file.
9531         * tests/test-areadlink.c: Likewise.
9532         * tests/test-areadlink-with-size.c: Likewise.
9533
9534         maint: minor cleanups
9535         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9536         _UNUSED_PARAMETER_ instead.
9537         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9538         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9539         * modules/linkat-tests (Files): Distribute test-link.h.
9540
9541         openat, utimens: whitespace cleanup
9542         * lib/openat.c: Prefer space throughout, rather than mix of 8
9543         spaces vs. tabs.
9544         * lib/at-func.c: Likewise.
9545         * lib/utimens.c: Likewise.
9546
9547         openat: avoid using wrong fd
9548         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9549         working directory chooses same fd.
9550         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9551
9552         mkdir, mkdirat: fix cygwin 1.5.x bug
9553         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9554         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9555         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9556         bug.
9557         (gl_PREREQ_MKDIR): Delete unused macro.
9558         * modules/mkdir (Files): Track file rename.
9559         (configure.ac): Update macro name.
9560         * modules/openat (Depends-on): Add mkdir.
9561         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9562
9563         mkdir, mkdirat: add tests
9564         * modules/mkdir-tests: New test.
9565         * tests/test-mkdir.h: New file.
9566         * tests/test-mkdir.c: Likewise.
9567         * tests/test-mkdirat.c: Likewise.
9568         * modules/openat-tests (Files): Add new files.
9569         (Makefile.am): Run new test.
9570
9571 2009-10-06  Eric Blake  <ebb9@byu.net>
9572
9573         doc: tweak *at function documentation
9574         * doc/posix-functions/faccessat.texi (faccessat): Mention
9575         known issue with replacement.
9576         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9577         * doc/posix-functions/linkat.texi (linkat): Likewise.
9578         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9579         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9580         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9581         * doc/posix-functions/renameat.texi (renameat): Likewise.
9582         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9583
9584         openat: fix GNU/Hurd bug in unlinkat
9585         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9586         broken.
9587         * doc/posix-functions/unlink.texi (unlink): Document this.
9588         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9589
9590         fdopendir: fix GNU/Hurd bug
9591         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9592         allowing non-directory fds.
9593         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9594         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9595         * modules/dirent (Makefile.am): Substitute it.
9596         * lib/dirent.in.h (fdopendir): Declare replacement.
9597         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9598         * tests/test-fdopendir.c (main): Test something other than
9599         /dev/null, since on Hurd that behaves like a directory.
9600
9601         test-symlink: port to GNU/Hurd
9602         * tests/test-symlink.h (test_symlink): Relax expected errno.
9603
9604         doc: tweak more cygwin information
9605         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9606         now compatible with glibc.
9607         * doc/posix-functions/getopt.texi (getopt): Likewise.
9608
9609         getopt-gnu: add another test
9610         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9611         guarantee behavior relied on by m4.
9612         * tests/test-getopt.c (main): Use it.
9613         * modules/getopt-posix-tests (Depends-on): Add setenv.
9614         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9615
9616         getopt: fix compilation on darwin
9617         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9618         include.
9619         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9620         Reported by Ludovic Courtès.
9621
9622 2009-10-06  Bruno Haible  <bruno@clisp.org>
9623
9624         * modules/size_max (Description): Discourage its use.
9625         Reported by Simon Josefsson.
9626
9627 2009-10-06  Jim Meyering  <meyering@redhat.com>
9628
9629         linkat: avoid compilation failure
9630         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9631
9632 2009-10-05  Eric Blake  <ebb9@byu.net>
9633
9634         linkat: support Linux 2.6.17
9635         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9636         linkat on Linux, but allow cache variable override.
9637         * lib/linkat.c (rpl_linkat): Define override.
9638         * modules/linkat (Depends-on): Add symlinkat.
9639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9640         * modules/unistd (Makefile.am): Substitute it.
9641         * lib/unistd.in.h (linkat): Declare replacement.
9642         Reported by Pádraig Brady.
9643
9644         quotearg: port test to systems with C.UTF-8 locale
9645         * tests/test-quotearg.c (struct result_strings): Add another
9646         member, differentiating between C.ASCII and C.UTF-8 handling.
9647         (compare_strings): Add parameter.
9648         (main): Adjust all callers.
9649
9650         getopt: avoid clash with FreeBSD _getopt_internal
9651         * lib/getopt.in.h (_getopt_internal): Override the name.
9652         * lib/getopt_int.h (includes): Pick up any overrides.
9653         Reported by Reuben Thomas.
9654
9655         hash: allow C89 compilation
9656         * lib/hash.c (check_tuning): Move declaration before statement.
9657         Reported by Reuben Thomas.
9658
9659 2009-10-05  Karl Berry  <karl@gnu.org>
9660
9661         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9662
9663 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9664             Bruno Haible  <bruno@clisp.org>
9665
9666         * lib/uname.c (uname): Use a table-driven algorithm to compute
9667         Windows NT versions.
9668
9669 2009-10-04  Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9672         program_invocation_short_name.
9673         * modules/progname (configure.ac): Test for presence of
9674         program_invocation_short_name.
9675         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9676
9677 2009-10-04  Bruno Haible  <bruno@clisp.org>
9678
9679         * lib/progname.c (set_program_name): Fix comment.
9680         Reported by Jim Meyering.
9681
9682 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9683             Bruno Haible  <bruno@clisp.org>
9684
9685         * lib/uname.c: Include <string.h>.
9686         (uname): Do only one call to GetVersionEx in the common case.
9687
9688 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9689             Bruno Haible  <bruno@clisp.org>
9690
9691         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9692         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9693         (uname): Add support for Windows CE and various non-x86 CPU types.
9694
9695 2009-10-03  Bruno Haible  <bruno@clisp.org>
9696
9697         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9698         invocation to tests/configure.ac.
9699         Reported by Ian Beckwith <ianb@erislabs.net>.
9700
9701 2009-10-02  Eric Blake  <ebb9@byu.net>
9702
9703         fchdir: avoid compiler warning
9704         * lib/fchdir.c (canonicalize_file_name)
9705         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9706
9707         test-open: support mingw errno values
9708         * tests/test-open.h (test_open): Relax test.
9709         * tests/test-fopen.h (test_fopen): Likewise.
9710         * tests/test-openat-safer.c (main): Likewise.
9711
9712         open: fix opening directory on mingw
9713         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9714
9715         test-open: on GNU/Hurd, /dev/null is a directory
9716         * tests/test-fopen.h (main): Rename...
9717         (test_fopen): ...to this.  Use a guaranteed non-directory when
9718         confirming open behavior on trailing slash.
9719         * tests/test-openat-safer.c (main): Likewise.
9720         * tests/test-open.h (main): Likewise....
9721         (test_open): ...to this.
9722         * tests/test-fopen.c (main): Adjust caller.
9723         * tests/test-fopen-safer.c (main): Likewise.
9724         * tests/test-open.c (main): Likewise.
9725         * tests/test-fcntl-safer.c (main): Likewise.
9726         Reported by Samuel Thibault.
9727
9728         rename, fchdir: don't ignore chdir failure
9729         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9730         * lib/rename.c (rpl_rename) [W32]: Likewise.
9731         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9732         an empty destination directory if source cannot be renamed,
9733         although there is still possibility for failure.
9734         * doc/posix-functions/rename.texi (rename): Document the race.
9735         Reported by Jim Meyering.
9736
9737         maint: cleanup whitespace in recent commits
9738         * lib/rename.c (rpl_rename): Remove tabs.
9739         * tests/test-link.h (test_link): Likewise.
9740         * lib/fchdir.c (get_name): Likewise.
9741         Reported by Jim Meyering.
9742
9743 2009-10-02  Ben Pfaff  <blp@gnu.org>
9744
9745         relocatable-prog-wrapper: Add missing dependency on
9746         double-slash-root.
9747         * modules/relocatable-prog-wrapper: Add dependency.
9748         Reported by Ian Beckwith <ianb@erislabs.net>.
9749
9750 2009-10-02  Eric Blake  <ebb9@byu.net>
9751
9752         renameat: fix Solaris bugs
9753         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9754         needed fixing.
9755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9756         * modules/stdio (Makefile.am): Substitute it.
9757         * lib/stdio.in.h (renameat): Declare replacement.
9758         * lib/renameat.c (rpl_renameat): Implement fix.
9759
9760         renameat: new module
9761         * modules/renameat: New file.
9762         * lib/renameat.c (renameat): Likewise.
9763         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9765         * modules/stdio (Makefile.am): Substitute them.
9766         * lib/stdio.in.h (renameat): Declare it.
9767         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9768         * doc/posix-functions/renameat.texi (renameat): Likewise.
9769         * modules/renameat-tests: New test.
9770         * tests/test-renameat.c: Likewise.
9771
9772         rename: fix mingw bugs
9773         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9774         directory overwrite bugs.
9775
9776         rename: fix another cygwin 1.5 bug
9777         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9778         checks.
9779         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9780         unnecessary cygwin workarounds.  Also work around bug with moving
9781         full directory onto an empty one.
9782         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9783
9784         rename-dest-slash: merge into rename module
9785         * modules/rename-dest-slash (Status): Mark obsolete.
9786         (Depends-on): Add rename.
9787         (Files): Let rename do it all.
9788         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9789         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9790         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9791         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9792         * lib/rename.c (rpl_rename): Update comments.
9793
9794         rename: fix cygwin 1.5.x bugs
9795         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9796         * lib/rename.c (rpl_rename): Work around them.
9797         * modules/rename (Depends-on): Add same-inode.
9798
9799         rename: fix Solaris 10 bug
9800         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9801         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9802         was the only bug.
9803
9804         rename: fix Solaris 9 bug
9805         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9806         on non-directory.  Avoid calling exit.
9807         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9808         strdup.
9809         * modules/rename-tests (Depends-on): Drop lstat.
9810         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9811         (gl_PREREQ_RENAME): Delete unused macro.
9812
9813         rename-dest-slash: fix NetBSD bug
9814         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9815         links.
9816         * modules/rename-dest-slash (Depends-on): Add same-inode.
9817
9818         rename-tests: new test, exposes several platform bugs
9819         * modules/rename-tests: New file.
9820         * tests/test-rename.h: Likewise.
9821         * tests/test-rename.c: Likewise.
9822         * doc/posix-functions/rename.texi (rename): Improve documentation,
9823         including bugs that will eventually be fixed in gnulib.
9824
9825 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9826
9827         * lib/uname.c: Include <stdlib.h>
9828         (uname): Assume version info is available.
9829
9830 2009-10-02  Jim Meyering  <meyering@redhat.com>
9831
9832         gnu-web-doc-update: correct --help output
9833         * build-aux/gnu-web-doc-update: Make --help output relevant.
9834
9835         gnu-web-doc-update: add standard options
9836         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9837
9838         gnu-web-doc-update: New module.
9839         Use this script to automatically update the on-line web documentation
9840         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9841         * modules/gnu-web-doc-update: New file, from coreutils.
9842         * build-aux/gnu-web-doc-update: New script.
9843
9844 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9845
9846         link: LoadLibrary is not needed.
9847         * lib/link.c: Use GetModuleHandle.
9848
9849 2009-10-01  Eric Blake  <ebb9@byu.net>
9850
9851         getopt: bump serial number
9852         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9853         change.
9854
9855         tests: tighten link, rmdir, and remove tests
9856         * tests/test-link.h (includes): No need to use <config.h> here.
9857         Clean up if directory hard link was created, otherwise test for
9858         trailing '.'.
9859         * tests/test-linkat.c (main): Simplify.
9860         * tests/test-remove.c (main): Enhance test for trailing '.'.
9861         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9862
9863 2009-10-01  Jim Meyering  <meyering@redhat.com>
9864
9865         maint.mk: requiring "make major" was annoying, for a "minor" release.
9866         What is intended is "stable", to contrast with alpha and beta,
9867         so require "make stable", not "make major".
9868         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9869         (get_tool_versions): Likewise.
9870         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9871
9872 2009-09-30  Ben Pfaff  <blp@gnu.org>
9873
9874         Fix broken build of replacement for Windows tmpfile().
9875         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9876         flags argument added along with the 'mkostemp' module.
9877
9878 2009-09-28  Bruno Haible  <bruno@clisp.org>
9879
9880         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9881         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9882         to 'remove_elt'.
9883         (gl_list_remove): Update.
9884         * lib/gl_list.c (gl_list_remove): Update.
9885         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9886         to 'remove_elt'.
9887         (gl_oset_remove): Update.
9888         * lib/gl_list.c (gl_oset_remove): Update.
9889         Reported by Eric Blake.
9890
9891 2009-09-28  Eric Blake  <ebb9@byu.net>
9892
9893         doc: mention yet more cygwin 1.7 status
9894         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9895         cygwin.
9896         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9897         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9898
9899         argp: fix test failure
9900         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9901         that are not upper-case.  Pass correct range to tolower.
9902
9903 2009-09-27  Jim Meyering  <meyering@redhat.com>
9904
9905         test-yesno: work around sparc-dash here-document infelicity
9906         Without this change, the literal \177 byte in a here document
9907         would make dash 0.5.5.1-3 access uninitialized memory.
9908         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9909         Instead, use a marker, "@", and filter through tr to create the desired
9910         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9911
9912 2009-09-27  Bruno Haible  <bruno@clisp.org>
9913
9914         Disable untested support for new flavours of ACLs on AIX.
9915         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9916         progress.
9917         * lib/set-mode-acl.c (qset_acl): Likewise.
9918
9919 2008-12-07  Bruno Haible  <bruno@clisp.org>
9920
9921         Add support for new flavours of ACLs on AIX. (Untested.)
9922         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9923         (file_has_acl): Add support for newer AIX.
9924         * lib/set-mode-acl.c (qset_acl): Likewise.
9925         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9926         Rainer Tammer <tammer@tammer.net>.
9927
9928 2009-09-26  Eric Blake  <ebb9@byu.net>
9929
9930         argp: fix compilation of getopt
9931         * lib/getopt.in.h (includes): Use different guard than glibc.
9932         Reported by Sergey Poznyakoff.
9933
9934         doc: mention more cygwin 1.7 status
9935         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9936         bug.
9937         * doc/posix-functions/execl.texi (execl): Likewise.
9938         * doc/posix-functions/execle.texi (execle): Likewise.
9939         * doc/posix-functions/execlp.texi (execlp): Likewise.
9940         * doc/posix-functions/execv.texi (execv): Likewise.
9941         * doc/posix-functions/execve.texi (execve): Likewise.
9942         * doc/posix-functions/execvp.texi (execvp): Likewise.
9943         * doc/glibc-functions/canonicalize_file_name.texi
9944         (canonicalize_file_name): Cygwin 1.7 now provides this.
9945         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9946         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9947         on AT_SYMLINK_NOFOLLOW.
9948
9949 2009-09-24  Eric Blake  <ebb9@byu.net>
9950
9951         test-linkat: make test more robust
9952         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9953
9954         getopt: fix inclusion guards for cygwin
9955         * modules/getopt-posix (Depends-on): Add include-next.
9956         (Makefile.am): Substitute more items in replacement header.
9957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9958         <getopt.h>.
9959         * lib/getopt.in.h (includes): Use split inclusion guard, and
9960         prefer <getopt.h> over include <unistd.h> when one is present.
9961         (option): Also override name of 'struct option'.
9962
9963         same-inode: revert prior change; it is not yet ready
9964         * NEWS: Undo mention of this change.
9965         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9966         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9967         * lib/cycle-check.c (cycle_check): Likewise.
9968         * lib/same.c (same_name): Likewise.
9969         * lib/at-func2.c (at_func2): Likewise.
9970
9971 2009-09-23  Eric Blake  <ebb9@byu.net>
9972
9973         linkat: new module
9974         * modules/linkat: New file.
9975         * lib/at-func2.c (at_func2): Likewise.
9976         * lib/linkat.c (linkat): Likewise.
9977         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9978         * lib/openat-priv.h (at_func2): Add declaration.
9979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9980         * modules/unistd (Makefile.am): Substitute them.
9981         * lib/unistd.in.h (linkat): Declare it.
9982         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9983         * doc/posix-functions/linkat.texi (linkat): Likewise.
9984         * doc/posix-functions/link.texi (link): Tweak wording.
9985         * tests/test-link.c (main): Move guts...
9986         * tests/test-link.h (test_link): ...into new file.
9987         * modules/linkat-tests: New test.
9988         * tests/test-linkat.c: Likewise.
9989         * modules/link-tests (Files): Ship new file.
9990         (Depends-on): Add stdbool.
9991
9992         dirname: add library-safe mdir_name
9993         * lib/dirname.h (mdir_name): New prototype.
9994         * lib/dirname.c (dir_name): Move guts...
9995         (mdir_name): ...to new function that avoids xalloc_die.
9996
9997         fchdir: another mingw fix
9998         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9999         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10000         on mingw (where it has not yet been ported), and make it optional
10001         elsewhere.
10002         (_gl_register_fd): Use it.
10003
10004         same-inode: make SAME_INODE tri-state, to port to mingw
10005         * NEWS: Mention this change.
10006         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10007         st_ino always being 0.
10008         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10009         * lib/cycle-check.c (cycle_check): Likewise.
10010         * lib/same.c (same_name): Likewise.
10011
10012         lstat: avoid mingw compilation error
10013         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10014         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10015         lstat ourselves.
10016         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10017         was adequate.
10018         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10019         the checks for lstat.
10020         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10021
10022         link: fix test failure on Solaris 9
10023         * lib/link.c (rpl_link): Don't assume link will catch bogus
10024         trailing slash on source.
10025
10026         test-symlinkat: enhance test
10027         * tests/test-readlink.c (main): Move guts...
10028         * tests/test-readlink.h (test_readlink): ...into new file.
10029         * tests/test-symlink.c (main): Move guts...
10030         * tests/test-symlink.h (test_symlink): ...into new file.
10031         * tests/test-symlinkat.c (main): Use new files for further
10032         coverage.
10033         (do_symlink, do_readlink): New helper functions.
10034         * modules/symlink-tests (Files): Ship new file.
10035         (Depends-on): Add stdbool.
10036         * modules/readlink-tests (Files): Ship new file.
10037         (Depends-on): Add stdbool.
10038         * modules/symlinkat-tests (Files): Use new files.
10039
10040 2009-09-23  Eric Blake  <ebb9@byu.net>
10041
10042         readlink: document portability issue with symlink length
10043         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10044         systems have bogus st_size on symlinks, and mention the
10045         areadlink-with-size module.
10046         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10047         * doc/posix-functions/readlink.texi (readlink): Mention the
10048         areadlink module, and ERANGE failure.
10049         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10050         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10051
10052         readlink: fix Solaris 9 bug with trailing slash
10053         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10054         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10055         * doc/posix-functions/readlink.texi (readlink): Document this.
10056         * modules/readlink-tests: New test.
10057         * tests/test-readlink.c: Likewise.
10058
10059         readlink: fix cygwin 1.5.x bug with return type
10060         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10061         * lib/unistd.in.h (readlink): Use ssize_t.
10062         * lib/readlink.c (readlink): Likewise.
10063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10064         * modules/unistd (Makefile.am): Substitute it.
10065         * lib/unistd.in.h (readlink): Declare replacement.
10066         * doc/posix-functions/readlink.texi (readlink): Document this.
10067
10068         symlink: use throughout gnulib
10069         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10070         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10071         symlink is not used.
10072         * modules/symlinkat (Depends-on): Add symlink.
10073         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10074         * modules/canonicalize-tests (Depends-on): Likewise.
10075         * modules/lstat-tests (Depends-on): Likewise.
10076         * modules/openat-tests (Depends-on): Likewise.
10077         * modules/remove-tests (Depends-on): Likewise.
10078         * modules/rmdir-tests (Depends-on): Likewise.
10079         * modules/unlink-tests (Depends-on): Likewise.
10080         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10081         * tests/test-canonicalize.c (symlink): Likewise.
10082         * tests/test-fstatat.c (symlink): Likewise.
10083         * tests/test-lstat.c (symlink): Likewise.
10084         * tests/test-remove.c (symlink): Likewise.
10085         * tests/test-rmdir.c (symlink): Likewise.
10086         * tests/test-unlink.c (symlink): Likewise.
10087         * tests/test-unlinkat.c (symlink): Likewise.
10088
10089         symlink: new module, for Solaris 9 bug
10090         * modules/symlink: New file.
10091         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10092         * lib/symlink.c: Likewise.
10093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10094         * modules/unistd (Makefile.am): Substitute them.
10095         * lib/unistd.in.h (symlink): Declare replacement.
10096         * MODULES.html.sh (File system functions): Mention it.
10097         * doc/posix-functions/symlink.texi (symlink): Likewise.
10098         * modules/symlink-tests: New test.
10099         * tests/test-symlink.c: Likewise.
10100
10101 2009-09-23  Bruno Haible  <bruno@clisp.org>
10102
10103         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10104         when needed.
10105         Test case: gnulib-tool --import --with-tests atexit inttypes.
10106         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10107
10108 2009-09-23  Bruno Haible  <bruno@clisp.org>
10109
10110         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10111         subcommand, not in a subshell.
10112
10113 2009-09-22  Eric Blake  <ebb9@byu.net>
10114
10115         unistd: sort replacement declarations
10116         * lib/unistd.in.h: Sort declarations.
10117
10118         open, openat: minor optimization
10119         * lib/open.c (open): If open succeeded, len is non-zero.
10120         * lib/openat.c (rpl_openat): Likewise.
10121
10122         link-follow: ensure correct result
10123         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10124         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10125         distinguish between possible failures.
10126
10127 2009-09-21  Eric Blake  <ebb9@byu.net>
10128
10129         fts: avoid compiler warning
10130         * lib/fts.c (dirent_inode_sort_may_be_useful)
10131         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10132
10133 2009-09-19  Bruno Haible  <bruno@clisp.org>
10134
10135         * lib/progreloc.c (canonicalize_file_name): New declaration.
10136
10137 2009-09-19  Eric Blake  <ebb9@byu.net>
10138
10139         link: fix quoting
10140         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10141
10142         openat: fix openat bugs on Solaris 9
10143         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10144         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10145         * modules/openat (Depends-on): Add open.
10146         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10147         * modules/fcntl-h (Makefile.am): Substitute it.
10148         * lib/fcntl.in.h (openat): Declare replacement.
10149         * doc/posix-functions/openat.texi (openat): Document this.
10150
10151         openat: move fstatat and unlinkat into correct files
10152         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10153         compiled.
10154         * lib/openat.c (fstatat, unlinkat): Move...
10155         * lib/fstatat.c (fstatat): ...into correct files.
10156         * lib/unlinkat.c (unlinkat): Likewise.
10157
10158         openat: fix unlinkat bugs on Solaris 9
10159         * lib/unlinkat.c (unlinkat): New file.
10160         * modules/openat (Depends-on): Add unlink.
10161         (Files): Distribute it.
10162         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10163         trailing slash behavior is broken.
10164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10165         * modules/unistd (Makefile.am): Substitute it.
10166         * lib/unistd.in.h (unlinkat): Declare replacement.
10167         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10168
10169         openat: fix fstatat bugs on Solaris 9
10170         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10171         stat.
10172         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10173
10174         test-unlinkat: enhance test, to expose Solaris 9 bug
10175         * tests/test-unlink.c (main): Factor guts...
10176         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10177         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10178         * tests/test-rmdir.c (main): Adjust caller.
10179         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10180         (unlinker): New helper function.
10181         (rmdirat): Enhance check.
10182         * modules/rmdir-tests (Depends-on): Add stdbool.
10183         * modules/unlink-tests (Depends-on): Likewise.
10184         (Files): Add test-unlink.h.
10185         * modules/openat-tests (Files): Likewise.
10186         (Depends-on): Add unlinkdir.
10187
10188         test-fstatat: new test, to expose Solaris 9 bugs
10189         * tests/test-stat.c (main): Factor guts...
10190         * tests/test-stat.h (test_stat_func): ...into new file.
10191         * tests/test-lstat.c (main): Factor guts...
10192         * tests/test-lstat.h (test_lstat_func): ...into new file.
10193         * tests/test-fstatat.c: New file.
10194         * modules/stat-tests (Files): Add test-stat.h.
10195         * modules/lstat-tests (Files): Add test-lstat.h.
10196         (Depends-on): Add stdbool.
10197         * modules/openat-tests (Depends-on): Add pathmax.
10198         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10199         (Makefile.am): Run new test.
10200
10201         remove: new module, for mingw and Solaris 9 bugs
10202         * modules/remove: New file.
10203         * lib/remove.c: Likewise.
10204         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10206         * modules/stdio (Makefile.am): Use them.
10207         * lib/stdio.in.h (remove): Declare replacement.
10208         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10209         * doc/posix-functions/remove.texi (remove): Likewise.
10210         * modules/remove-tests: New test.
10211         * tests/test-remove.c: Likewise.
10212
10213         unlink: new module, for Solaris 9 bug
10214         * modules/unlink: New file.
10215         * lib/unlink.c: Likewise.
10216         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10218         * modules/unistd (Makefile.am): Use them.
10219         * lib/unistd.in.h (stat): Declare replacement.
10220         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10221         * doc/posix-functions/unlink.texi (unlink): Likewise.
10222         * modules/unlink-tests: New test.
10223         * tests/test-unlink.c: Likewise.
10224
10225         lstat: fix Solaris 9 bug
10226         * lib/lstat.c (lstat): Also check for trailing slash on
10227         non-symlink, non-directories.  Use stat module to simplify logic.
10228         * doc/posix-functions/lstat.texi (lstat): Document it.
10229         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10230         (configure.ac): Check for symlink.
10231         * tests/test-lstat.c (main): Add more tests.
10232
10233         stat: add as dependency to other modules
10234         * modules/chown (Depends-on): Add stat.
10235         * modules/euidaccess (Depends-on): Likewise.
10236         * modules/fchdir (Depends-on): Likewise.
10237         * modules/isdir (Depends-on): Likewise.
10238         * modules/link (Depends-on): Likewise.
10239         * modules/lstat (Depends-on): Likewise.
10240         * modules/mkdir-p (Depends-on): Likewise.
10241         * modules/modechange (Depends-on): Likewise.
10242         * modules/open (Depends-on): Likewise.
10243         * modules/readlink (Depends-on): Likewise.
10244         * modules/same (Depends-on): Likewise.
10245
10246         stat: fix Solaris 9 bug
10247         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10248         slash.
10249         * lib/stat.c (rpl_stat): Work around it.
10250         * doc/posix-functions/stat.texi (stat): Update documentation.
10251
10252         stat: new module, for mingw bug
10253         * modules/stat: New file.
10254         * lib/stat.c: Likewise.
10255         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10256         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10257         * modules/sys_stat (Makefile.am): Use them.
10258         * lib/sys_stat.in.h (stat): Declare replacement.
10259         * lib/openat.c (fstatat): Deal with lstat and stat being function
10260         macros.
10261         * modules/openat (Depends-on): Add inline.
10262         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10263         * doc/posix-functions/stat.texi (stat): Likewise.
10264         * modules/stat-tests: New test.
10265         * tests/test-stat.c: Likewise.
10266
10267 2009-09-19  Jim Meyering  <meyering@redhat.com>
10268
10269         syntax-check: detect unnecessary inclusion of canonicalize.h
10270         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10271
10272 2009-09-19  Eric Blake  <ebb9@byu.net>
10273
10274         canonicalize-lgpl: adjust clients to use correct header
10275         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10276         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10277         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10278         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10279         * lib/progreloc.c (includes): Likewise.
10280
10281 2009-09-19  Jim Meyering  <meyering@redhat.com>
10282
10283         test-posixtm.c: correct a comment
10284         * tests/test-posixtm.c: Correct first-line comment.
10285         Spotted by Eric Blake.
10286
10287 2009-09-16  Jim Meyering  <meyering@redhat.com>
10288
10289         posixtm-tests: make T const-correct; add a test case
10290         * tests/test-posixtm.c (T): Declare const.
10291         Add a test for -(2^31+1).
10292         Remove useless can-succeed-only-in-2002 test.
10293
10294         posixtm-tests: adjust the sole failing test
10295         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10296         expected output matches what mktime now produces.  Cross-checked via
10297         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10298
10299         posixtm: move #ifdef'd tests into a new module
10300         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10301         * tests/test-posixtm.c: ... this new file.
10302         * modules/posixtm-tests: New module.
10303
10304 2009-09-19  Eric Blake  <ebb9@byu.net>
10305
10306         openat: simplify use of at-func.c
10307         * lib/at-func.c (includes): Include prerequisites here, to
10308         simplify requirements on client files.
10309         * lib/openat-priv.h: Add double-inclusion guard.
10310         * lib/faccessat.c (includes): Simplify.
10311         * lib/fchmodat.c (includes): Likewise.
10312         * lib/fchownat.c (includes): Likewise.
10313         * lib/mkdirat.c (includes): Likewise.
10314         * lib/mkfifoat.c (includes): Likewise.
10315         * lib/symlinkat.c (includes): Likewise.
10316
10317         openat: allow return of fd 0
10318         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10319         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10320         unistd-safer.
10321         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10322         <fcntl.h>; this module does not leak fds.
10323         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10324         must be allowed to return 0, leaving openat_safer to add the
10325         safety.
10326         (openat_permissive): Avoid writing to just-opened fd 2 if
10327         restoring the current directory fails.
10328         * lib/openat-die.c (openat_restore_fail): Add comment.
10329         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10330         (save_cwd): Guarantee safe fd, but without use of open_safer.
10331         * tests/test-openat.c: New test.
10332         * modules/openat-tests (Files, Makefile.am): Distribute and build
10333         new file.
10334
10335         relocatable-prog-wrapper: fix build
10336         * modules/relocatable-prog-wrapper (Files): Update name of
10337         canonicalize m4 file, broken on 2009-09-17.
10338         Reported by emad hajjar <aleppos@hotmail.com>.
10339
10340 2009-09-19  Bruno Haible  <bruno@clisp.org>
10341
10342         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10343         * lib/safe-alloc.c: Likewise.
10344         Reported by Ian Beckwith <ianb@erislabs.net>.
10345
10346 2009-09-18  Bruno Haible  <bruno@clisp.org>
10347
10348         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10349         Reported by <erobles@sensacd.com.mx>.
10350
10351 2009-09-17  Eric Blake  <ebb9@byu.net>
10352
10353         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10354         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10355         slashes when checking if last component is missing.
10356         * tests/test-canonicalize.c (main): Test this.
10357
10358         canonicalize, canonicalize-lgpl: honor // if distinct from /
10359         * modules/canonicalize (Files): Add double-slash-root.m4.
10360         * modules/canonicalize-lgpl (Files): Likewise.
10361         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10362         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10363         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10364         fallback definition.
10365         (canonicalize_filename_mode): Use it to protect //.
10366         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10367         (__realpath): Likewise.
10368         * tests/test-canonicalize.c (main): Test this.
10369         * tests/test-canonicalize-lgpl.c (main): Likewise.
10370         * modules/canonicalize-tests (Depends-on): Add same-inode.
10371         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10372
10373         canonicalize-lgpl: fix glibc bug with trailing slash
10374         * m4/canonicalize-lgpl.m4: Move contents...
10375         * m4/canonicalize.m4: ...here.
10376         (gl_CANONICALIZE_LGPL): Factor realpath check...
10377         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10378         glibc 2.3.5 bug, fixed 2005-04-27.
10379         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10380         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10381         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10382         * modules/canonicalize-lgpl (Files): Manage file rename.
10383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10384         * modules/stdlib (Makefile.am): Substitute witness.
10385         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10386         is needed.
10387         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10388         replacement is required.
10389         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10390         * doc/glibc-functions/canonicalize_file_name.texi
10391         (canonicalize_file_name): Document this.
10392         * doc/posix-functions/realpath.texi (realpath): Likewise.
10393
10394         canonicalize-lgpl: reject non-directory with trailing slash
10395         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10396         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10397         catches failures in glibc 2.3.5.
10398         * tests/test-canonicalize.c (main): Likewise.
10399
10400         canonicalize-lgpl: use native realpath if it works
10401         * lib/canonicalize-lgpl.c (realpath): Guard with
10402         FUNC_REALPATH_WORKS.
10403         * lib/stdlib.in.h (realpath): Make declaration optional based on
10404         HAVE_REALPATH.
10405         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10406         native realpath works.
10407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10408         * modules/stdlib (Makefile.am): Substitute witness.
10409
10410         canonicalize, canonicalize-lgpl: use <stdlib.h>
10411         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10412         (Include): Mention <stdlib.h>.
10413         (configure.ac): Mention functions we provide.
10414         * modules/canonicalize (configure.ac): Likewise.
10415         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10416         realpath if canonicalize_file_name is missing.
10417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10418         * modules/stdlib (Makefile.am): Substitute witnesses.
10419         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10420         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10421         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10422         * NEWS: Document this.
10423         * doc/glibc-functions/canonicalize_file_name.texi
10424         (canonicalize_file_name): Likewise.
10425         * doc/posix-functions/realpath.texi (realpath): Likewise.
10426         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10427
10428         test-canonicalize: consolidate into single C program
10429         * tests/test-canonicalize.sh: Delete; move setup into...
10430         * tests/test-canonicalize.c (main): ...the program, making it
10431         easier to run in debugger.  Add some tests.
10432         * modules/canonicalize-tests (Files): Remove unused file.
10433         (Depends-on): Add progname.
10434         (configure.ac, Makefile.am): Simplify.
10435
10436         test-canonicalize-lgpl: consolidate into single C program
10437         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10438         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10439         easier to run in debugger.  Add some tests.
10440         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10441         (configure.ac, Makefile.am): Simplify.
10442
10443         canonicalize: avoid resolvepath
10444         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10445         unnecessary checks.
10446         * lib/canonicalize.c (includes): Simplify.
10447         (canonicalize_file_name): Drop resolvepath implementation.
10448         * modules/canonicalize (Depends-on): Drop filenamecat.
10449
10450         canonicalize: don't lose errno
10451         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10452         over calls to free.
10453
10454         canonicalize: simplify errno handling
10455         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10456         assignment.
10457
10458         canonicalize, canonicalize-lgpl: update module dependencies
10459         * modules/canonicalize (Depends-on): Add extensions, lstat,
10460         pathmax, stdlib.
10461         (Files): Drop pathmax.h.
10462         (configure.ac): Adjust macro name.
10463         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10464         lstat, stdlib, sys_stat.
10465         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10466         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10467         extensions.
10468         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10469         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10470         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10471         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10472         declaration, if available.
10473         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10474         we can rely on the readlink module.
10475         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10476         (includes): Use <unistd.h> unconditionally.
10477
10478 2009-09-17  Eric Blake  <ebb9@byu.net>
10479
10480         maint: make Include sections of modules consistent
10481         * modules/alloca: Use only header name; no need to list #include.
10482         * modules/alloca-opt: Likewise.
10483         * modules/arpa_inet: Likewise.
10484         * modules/canon-host: Likewise.
10485         * modules/configmake: Likewise.
10486         * modules/dirent: Likewise.
10487         * modules/eealloc: Likewise.
10488         * modules/environ: Likewise.
10489         * modules/fchdir: Likewise.
10490         * modules/fcntl: Likewise.
10491         * modules/fcntl-h: Likewise.
10492         * modules/gethrxtime: Likewise.
10493         * modules/gettime: Likewise.
10494         * modules/ignore-value: Likewise.
10495         * modules/inet_ntop: Likewise.
10496         * modules/inet_pton: Likewise.
10497         * modules/inttypes: Likewise.
10498         * modules/isnand-nolibm: Likewise.
10499         * modules/isnanf-nolibm: Likewise.
10500         * modules/mbchar: Likewise.
10501         * modules/mbfile: Likewise.
10502         * modules/mbiter: Likewise.
10503         * modules/mbuiter: Likewise.
10504         * modules/netdb: Likewise.
10505         * modules/netinet_in: Likewise.
10506         * modules/nproc: Likewise.
10507         * modules/pagealign_alloc: Likewise.
10508         * modules/poll: Likewise.
10509         * modules/printf-frexp: Likewise.
10510         * modules/pthread: Likewise.
10511         * modules/putenv: Likewise.
10512         * modules/random_r: Likewise.
10513         * modules/relocatable-prog: Likewise.
10514         * modules/search: Likewise.
10515         * modules/select: Likewise.
10516         * modules/selinux-h: Likewise.
10517         * modules/settime: Likewise.
10518         * modules/signal: Likewise.
10519         * modules/size_max: Likewise.
10520         * modules/socklen: Likewise.
10521         * modules/ssize_t: Likewise.
10522         * modules/stdarg: Likewise.
10523         * modules/stdbool: Likewise.
10524         * modules/stddef: Likewise.
10525         * modules/stdint: Likewise.
10526         * modules/stdio: Likewise.
10527         * modules/stdlib: Likewise.
10528         * modules/string: Likewise.
10529         * modules/strings: Likewise.
10530         * modules/sys_file: Likewise.
10531         * modules/sys_ioctl: Likewise.
10532         * modules/sys_select: Likewise.
10533         * modules/sys_socket: Likewise.
10534         * modules/sys_stat: Likewise.
10535         * modules/sys_time: Likewise.
10536         * modules/sys_times: Likewise.
10537         * modules/sys_utsname: Likewise.
10538         * modules/sys_wait: Likewise.
10539         * modules/sysexits: Likewise.
10540         * modules/time: Likewise.
10541         * modules/times: Likewise.
10542         * modules/tmpfile: Likewise.
10543         * modules/trim: Likewise.
10544         * modules/unistd: Likewise.
10545         * modules/wchar: Likewise.
10546         * modules/wctype: Likewise.
10547
10548 2009-09-17  Bruno Haible  <bruno@clisp.org>
10549
10550         Make getdate.y compile on QNX and NetBSD 5 / i386.
10551         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10552         TIME_T_FITS_IN_LONG_INT.
10553         * lib/getdate.y (long_time_t): New type.
10554         (relative_time): Change type of 'seconds' field to long_time_t.
10555         (get_date): Update types of local variables. Check against overflow
10556         during conversion from long_time_t to time_t.
10557         Reported by Matt Kraai <kraai@ftbfs.org>
10558         and Hasso Tepper <hasso@netbsd.org>.
10559
10560 2009-09-17  Bruno Haible  <bruno@clisp.org>
10561
10562         * modules/COPYING: Update copyright years.
10563         * modules/README: Likeiwse.
10564         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10565         Reported by Ian Beckwith <ianb@erislabs.net>.
10566
10567 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10568
10569         * users.txt: Update references for gnuit package.
10570
10571 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10572
10573         * m4/getdelim.m4: Fix typo in copyright line.
10574
10575 2009-09-17  Bruno Haible  <bruno@clisp.org>
10576
10577         * lib/atoll.c: Use the standard header with GPL copyright.
10578         * lib/argz.in.h: Likewise.
10579         * lib/glob.c: Likewise.
10580         * lib/glob-libc.h: Likewise.
10581         * lib/random_r.c: Likewise.
10582         * lib/siglist.h: Likewise.
10583         * lib/strsignal.c: Likewise.
10584         Reported by Ian Beckwith <ianb@erislabs.net>.
10585
10586 2009-09-17  Eric Blake  <ebb9@byu.net>
10587
10588         rmdir: ensure correct dependency order
10589         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10590
10591 2009-09-17  Bruno Haible  <bruno@clisp.org>
10592
10593         Disable assertion that fails on NetBSD 5 / i386.
10594         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10595         Reported by Sam Steingold <sds@gnu.org>
10596         and Hasso Tepper <hasso@netbsd.org>.
10597
10598 2009-09-16  Eric Blake  <ebb9@byu.net>
10599
10600         unlinkdir: port to mingw
10601         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10602         on which no one can unlink a directory.
10603
10604         stdlib: sort witness names
10605         * modules/stdlib (Makefile.am): Sort replacements.
10606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10607         * lib/stdlib.in.h: Likewise.
10608
10609         parse-duration-tests: avoid link failure
10610         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10611         LIBINTL.
10612         Reported by Tom G. Christensen.
10613
10614         openat-tests: ensure unlinkat behaves like rmdir
10615         * tests/test-rmdir.c (main): Factor guts...
10616         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10617         * modules/rmdir-tests (Files): Ship new file.
10618         * modules/openat-tests: New test.
10619         * tests/test-unlinkat.c: Likewise.
10620
10621         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10622         * modules/rmdir-errno (Status, Notice): Now obsolete.
10623
10624         rmdir: work around cygwin 1.5.x and mingw bugs
10625         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10626         * lib/rmdir.c (rmdir): Work around it.
10627         * modules/rmdir (Status, Notice): No longer obsolete.
10628         (Files): Add dos.m4.
10629         (Depends-on): Add unistd.
10630         (configure.ac): Set witnesses.
10631         (License): Relax to LGPLv2+.
10632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10633         * modules/unistd (Makefile.am): Substitute witnesses.
10634         * lib/unistd.in.h (rmdir): Declare replacement.
10635         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10636         * modules/rmdir-tests: New tests.
10637         * tests/test-rmdir.c: Likewise.
10638
10639 2009-09-15  Eric Blake  <ebb9@byu.net>
10640
10641         fchdir: improve use of replacement functions
10642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10643         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10644         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10645         REPLACE_CLOSEDIR.
10646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10647         * modules/sys_stat (Makefile.am): Substitute correct witness.
10648         * modules/dirent (Makefile.am): Likewise.
10649         * modules/unistd (Makefile.am): Likewise.
10650         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10651         * lib/unistd.in.h (dup): Likewise.
10652         * lib/sys_stat.in.h (fstat): Likewise.
10653
10654         maint: ignore gnulib-tool temp files
10655         * .gitignore: Ignore files created during gnulib-tool --test.
10656
10657 2009-09-13  Jim Meyering  <meyering@redhat.com>
10658
10659         posixtm: don't reject a time that specify "60" as the number of seconds
10660         * lib/posixtm.c (posixtime): The code to reject invalid dates
10661         would also reject a time specified with the .60 suffix.
10662         But POSIX allows that, in order to accommodate leap seconds.
10663         So don't reject it.
10664         (main): Adjust tests accordingly.
10665         * modules/posixtm (Depends-on): Add stpcpy.
10666
10667 2009-09-11  Jim Meyering  <meyering@redhat.com>
10668
10669         announce-gen: include [$release_type] in emitted Subject:
10670         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10671         e.g., [stable] in the emitted Subject: line.
10672
10673 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10674
10675         Remove obsolete macros from several modules.
10676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10677         obsolete Autoconf macros with their modern counterparts.
10678         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10679         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10681         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10682         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10683         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10685         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10686         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10687         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10688         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10689         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10690         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10691         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10692         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10693         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10694         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10695         * m4/time_r.m4 (gl_TIME_R): Likewise.
10696         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10697         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10698         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10699
10700         Fix copyright header in build-aux scripts.
10701         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10702         recommendation.
10703         * build-aux/ncftpput-ftp: Likewise.
10704         * build-aux/update-copyright: Likewise.
10705
10706 2009-09-09  Eric Blake  <ebb9@byu.net>
10707
10708         test-link: allow Linux choice of errno
10709         * tests/test-link.c (main): Relax test for alternate error.
10710
10711         strndup: fix improper m4 caching
10712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10713         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10714         (gl_PREREQ_STRNDUP): Delete.
10715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10716         * modules/string (Makefile.am): Substitute it.
10717         * lib/string.in.h (strndup): Modernize prototype.
10718
10719         getcwd: port to mingw
10720         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10721         different from the POSIX assumptions made throughout the getcwd
10722         module; fortunately, the mingw getcwd does not need replacement.
10723         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10724         * modules/getcwd-tests: New test.
10725         * tests/test-getcwd.c: Likewise.
10726
10727         link: fix platform bugs
10728         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10729         * lib/link.c (link): Work around them.  Fix related mingw bug.
10730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10731         * modules/unistd (Makefile.am): Substitute it.
10732         * lib/unistd.in.h (link): Declare replacement.
10733         * doc/posix-functions/link.texi (link): Document this.
10734         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10735
10736         test-link: consolidate into single C program, test more cases
10737         * tests/test-link.sh: Delete.
10738         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10739         at least Cygwin and Solaris.
10740         * modules/link-tests (Files): Remove unused file.
10741         (Depends-on): Add errno, sys_stat.
10742         (Makefile.am): Simplify.
10743
10744 2009-09-08  Bruno Haible  <bruno@clisp.org>
10745
10746         Work around towlower, towupper bug on mingw.
10747         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10748         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10749         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10750         * doc/posix-functions/towupper.texi: Likewise.
10751         Reported by Eric Blake.
10752
10753 2009-09-08  Jim Meyering  <meyering@redhat.com>
10754
10755         build: don't try to run autoheader if we don't use it
10756         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10757         is not used in configure.ac.
10758
10759 2009-09-08  Eric Blake  <ebb9@byu.net>
10760
10761         euidaccess: fix compilation error
10762         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10763
10764         rawmemchr: relax license
10765         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10766         okay.
10767         Reported by Jim Meyering.
10768
10769         mkfifoat: new module
10770         * modules/mkfifoat: New file.
10771         * lib/mkfifoat.c: Likewise.
10772         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10774         * modules/sys_stat (Makefile.am): Use them.
10775         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10776         * MODULES.html.sh (File system functions): Mention module.
10777         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10778         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10779         * modules/mkfifoat-tests: New test.
10780         * tests/test-mkfifoat.c: Likewise.
10781
10782         strchrnul: relax license
10783         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10784         okay.
10785         Reported by Jim Meyering.
10786
10787 2009-09-08  Eric Blake  <ebb9@byu.net>
10788
10789         fstatat: fix compilation on Solaris
10790         * lib/fstatat.c (includes): Add fcntl.h.
10791         Reported by Pádraig Brady.
10792
10793 2009-09-07  Eric Blake  <ebb9@byu.net>
10794
10795         rename: modernize replacement
10796         * modules/rename (Depends-on): Add stdio.
10797         (configure.ac): Declare witness.
10798         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10799         stdio take care of replacement.
10800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10801         * modules/stdio (Makefile.am): Substitute them.
10802         * lib/stdio.in.h (rename): Declare replacement.
10803         * lib/rename.c (includes): Allow cross-compilation to non-windows
10804         machines.
10805         * doc/posix-functions/rename.texi (rename): Improve
10806         documentation.
10807
10808         stdio: sort witness names
10809         * modules/stdio (Makefile.am): Sort replacements.
10810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10811         * lib/stdio.in.h: Likewise.
10812
10813         getcwd: minor cleanups
10814         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10815         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10816
10817         openat: provide more convenience names
10818         * modules/faccessat (configure.ac): Add C witness.
10819         * lib/unistd.in.h (readlinkat): Fix typo.
10820         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10821         convenience wrappers.
10822         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10823         wrappers in syntax checks.
10824
10825 2009-09-06  Eric Blake  <ebb9@byu.net>
10826
10827         doc: fix comments in recent patches
10828         * lib/faccessat.c: Mention correct function.
10829         * lib/fchmodat.c: Likewise.
10830         * lib/fchownat.c: Likewise.
10831         * lib/symlinkat.c: Likewise.
10832         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10833         constants.
10834
10835         faccessat, symlinkat: continue cleanup of previous patch
10836         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10837         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10838         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10840         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10841         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10842         set.
10843
10844 2009-09-06  Bruno Haible  <bruno@clisp.org>
10845
10846         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10847         (fstatat): Declare if GNULIB_FSTATAT is set.
10848         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10849         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10850         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10851         * modules/fcntl-h (Files): Remove m4/openat.m4.
10852         * modules/sys_stat (Files): Remove m4/openat.m4.
10853         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10854         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10855         * modules/unistd (Files): Remove m4/openat.m4.
10856         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10857         GNULIB_OPENAT.
10858         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10859         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10861         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10862         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10863         gl_OPENAT_DEFAULTS.
10864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10865         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10866         Don't require gl_OPENAT_DEFAULTS.
10867         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10868         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10869         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10870         (gl_OPENAT_DEFAULTS): Remove macro.
10871
10872 2009-09-06  Bruno Haible  <bruno@clisp.org>
10873
10874         * modules/openat (configure.ac): Remove unneeded witness.
10875
10876 2009-09-06  Bruno Haible  <bruno@clisp.org>
10877
10878         Set errno to ENOSYS when a function is entirely unsupported.
10879         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10880         EOPNOTSUPP.
10881         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10882         * modules/chown (Depends-on): Remove errno.
10883
10884 2009-09-06  Bruno Haible  <bruno@clisp.org>
10885
10886         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10887
10888 2009-09-06  Bruno Haible  <bruno@clisp.org>
10889
10890         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10891
10892 2009-09-06  Ben Pfaff  <blp@gnu.org>
10893             Bruno Haible  <bruno@clisp.org>
10894
10895         Work around a glibc bug in strtok_r.
10896         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10897         Undefine if UNDEFINE_STRTOK_R is set.
10898         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10900         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10901         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10902         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10903         UNDEFINE_STRTOK_R.
10904         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10905
10906 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10907
10908         exclude: minor fix
10909         * lib/exclude.c: Include wctype.h
10910
10911 2009-09-06  Akim Demaille  <demaille@gostai.com>
10912
10913         bootstrap: improve error message
10914         * build-aux/bootstrap (find_tool): Upon failure, report the list
10915         of candidates.
10916         Honor the initial value of the envvar.
10917
10918 2009-09-05  Eric Blake  <ebb9@byu.net>
10919
10920         symlinkat: new module
10921         * modules/symlinkat: New file.
10922         * lib/symlinkat.c: Likewise.
10923         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10925         * modules/unistd (Makefile.am): Use them.
10926         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10927         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10928         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10929         * MODULES.html.sh (File system functions): Mention module.
10930         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10931         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10932         * modules/symlinkat-tests: New test.
10933         * tests/test-symlinkat.c: Likewise.
10934
10935         test-openat-safer: add more checks
10936         * tests/test-openat-safer.c (main): Check more code paths.
10937
10938 2009-09-05  Jim Meyering  <meyering@redhat.com>
10939
10940         syntax-check: detect unnecessary inclusion of openat.h
10941         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10942
10943 2009-09-05  Bruno Haible  <bruno@clisp.org>
10944
10945         Support towlower, towupper.
10946         * doc/posix-functions/towlower.texi: Mention module wctype.
10947         * doc/posix-functions/towupper.texi: Likewise.
10948         * lib/wctype.in.h (towlower, towupper): New functions.
10949         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10950         (ASSERT): New macro.
10951         (e): New variable.
10952         (main): Test also towlower, towupper. Test WEOF argument.
10953         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10954
10955 2009-09-05  Bruno Haible  <bruno@clisp.org>
10956
10957         Fix conversion behaviour when the input is invalid.
10958         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10959         mark occurring in first pass of indirect conversion.
10960         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10961         input.
10962         Found by clang's static analyzer.
10963
10964 2009-09-05  Bruno Haible  <bruno@clisp.org>
10965
10966         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10967         where direct conversion is possible.
10968
10969 2009-09-04  Eric Blake  <ebb9@byu.net>
10970
10971         openat: fail with ENOENT on empty name
10972         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10973         buffer.
10974
10975         link-follow: fix logic bug in prior patch
10976         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10977         reversed sense of yes and no in prior patch.  Avoid confusing
10978         compilation failure with desired semantics.
10979
10980         link-follow: accomodate mingw and cross-compilation
10981         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10982         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10983         cross-compilation results to -1, to make linkat easier to
10984         implement when cross-compiling.  Trivially support mingw.
10985         * modules/link-follow (configure.ac): Call new name.
10986         * NEWS: Mention this.
10987
10988 2009-09-03  Eric Blake  <ebb9@byu.net>
10989
10990         faccessat: compile replacement
10991         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10992         needed.
10993
10994         fts: fix compilation error
10995         * lib/fts.c (includes): Re-add "openat.h", for
10996         openat_needs_fchdir.
10997
10998         faccessat: new module
10999         * modules/faccessat: New file.
11000         * lib/faccessat.c: Likewise.
11001         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11003         * modules/unistd (Makefile.am): Use it.
11004         * lib/unistd.in.h (faccessat): Declare it.
11005         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11006         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11007         * MODULES.html.sh (File system functions): Mention it.
11008         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11009         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11010
11011         euidaccess: prefer POSIX over non-standard implementation
11012         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11013         * lib/euidaccess.c (euidaccess): Use it if available.
11014
11015         openat: make template easier to use
11016         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11017         AT_FUNC_F2 to be undefined.
11018         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11019         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11020         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11021         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11022         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11023         Likewise.
11024         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11025         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11026         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11027         Likewise.
11028
11029         openat: declare in POSIX headers
11030         * NEWS: Mention this.
11031         * modules/openat (configure.ac): Declare witnesses.
11032         (Depends-on): Add fcntl-h, sys_stat, unistd.
11033         (Include): Mention correct headers.
11034         * modules/fcntl-h (Depends-on): Add link-warning.
11035         (Files): Add openat.m4.
11036         (Makefile.am): Substitute witnesses.
11037         * modules/sys_stat (Files, Makefile.am): Likewise.
11038         * modules/unistd (Files, Makefile.am): Likewise.
11039         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11040         (gl_OPENAT_DEFAULTS): New macro.
11041         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11044         (SYS_STAT_H): Remove unused variable.
11045         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11046         * lib/fcntl--.h (includes): Remove unneeded header.
11047         * lib/openat-safer.c (includes): Likewise.
11048         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11049         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11050         appropriate headers.
11051         (__OPENAT_PREFIX): Delete.
11052         * lib/fcntl.in.h (openat): Provide declaration.
11053         (AT_FDCWD): Fix Solaris bug.
11054         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11055         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11056         * lib/fchmodat.c (includes):  Adjust to find declaration.
11057         * lib/fchownat.c (includes): Likewise.
11058         * lib/mkdirat.c (includes): Likewise.
11059         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11060         still visible.
11061
11062 2009-09-02  Eric Blake  <ebb9@byu.net>
11063
11064         errno: use consistently
11065         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11066         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11067         * lib/canonicalize.c (ELOOP): Likewise.
11068         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11069         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11070         * lib/lchown.c (EOPNOTSUPP): Likewise.
11071         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11072         * lib/savewd.c (ESTALE): Likewise.
11073         * lib/settime.c (ENOSYS): Likewise.
11074         * lib/utimens.c (ENOSYS): Likewise.
11075         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11076         * lib/chdir-safer.c (ELOOP): Likewise.
11077         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11078         * modules/c-stack (Depends-on): Add errno.
11079         * modules/canonicalize (Depends-on): Likewise.
11080         * modules/chdir-safer (Depends-on): Likewise.
11081         * modules/fdopendir (Depends-on): Likewise.
11082         * modules/inet_ntop (Depends-on): Likewise.
11083         * modules/inet_pton (Depends-on): Likewise.
11084         * modules/lchown (Depends-on): Likewise.
11085         * modules/openat (Depends-on): Likewise.
11086         * modules/savewd (Depends-on): Likewise.
11087         * modules/settime (Depends-on): Likewise.
11088         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11089
11090         fts: avoid leaking fds
11091         * modules/fts (Depends-on): Add cloexec.
11092         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11093         flag.
11094
11095         fts: make directory fds more robust
11096         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11097         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11098
11099         backupfile, chdir-long, fts, savedir: make safer
11100         * lib/backupfile.c (includes): Use "dirent--.h", since
11101         numbered_backup can write to stderr during readdir.
11102         * lib/savedir.c (includes): Likewise.
11103         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11104         emulation can write to stderr on failure.
11105         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11106         * lib/getcwd.c: Document why opendir_safer is unused.
11107         * lib/glob.c: Likewise.
11108         * lib/scandir.c: Likewise.
11109         * lib/openat-proc.c: Likewise, for open_safer.
11110         * modules/backupfile (Depends-on): Add dirent-safer.
11111         * modules/savedir (Depends-on): Likewise.
11112         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11113         * modules/chdir-long (Depends-on): Add openat-safer.
11114
11115         openat-safer: new module
11116         * modules/openat-safer: New file.
11117         * lib/openat-safer.c: Likewise.
11118         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11119         * lib/fcntl-safer.h (openat_safer): Declare.
11120         * lib/fcntl--.h (openat): Override.
11121         * MODULES.html.sh (File descriptor based I/O): Mention it.
11122         * lib/openat.h: Add double-inclusion guards.
11123         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11124         "fcntl--.h", so we can implement openat.
11125         * modules/openat-safer-tests: New test.
11126         * tests/test-openat-safer.c: New file.
11127
11128         dirent-safer: new module
11129         * modules/dirent-safer: New file.
11130         * lib/dirent--.h: Likewise.
11131         * lib/dirent-safer.h: Likewise.
11132         * lib/opendir-safer.c: Likewise.
11133         * m4/dirent-safer.m4: Likewise.
11134         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11135         * modules/dirent-safer-tests: New test.
11136         * tests/test-dirent-safer.c: New file.
11137         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11138
11139         fdopendir: optimize on mingw
11140         * lib/unistd.in.h (_gl_directory_name): New prototype.
11141         * lib/fchdir.c (_gl_directory_name): Implement it.
11142         (fchdir): Use it to simplify implementation.
11143         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11144         fchdir, when available, to avoid calling [f]chdir().
11145
11146         fdopendir: split into its own module
11147         * lib/openat.c (fdopendir): Move...
11148         * lib/fdopendir.c: ...into new file.
11149         * modules/fdopendir: New module.
11150         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11151         * modules/openat (Depends-on): Add fdopendir.
11152         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11153         fdopendir here.
11154         * modules/savedir (Depends-on): Only need fdopendir, not full
11155         openat.
11156         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11157         * lib/openat.h (fdopendir): Drop prototype.
11158         * lib/dirent.in.h (fdopendir): Provide prototype.
11159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11160         * modules/dirent (Makefile.am): Substitute them.
11161         * MODULES.html.sh (File system functions): Mention it.
11162         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11163         * modules/fdopendir-tests: New file.
11164         * tests/test-fdopendir.c: Likewise.
11165
11166         fchdir: use more consistent macro convention
11167         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11168         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11169         REPLACE_FCHDIR, rather than relying on config.h macros.
11170         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11171         inside a single make-time REPLACE_FCHDIR block, rather than using
11172         the config.h FCHDIR_REPLACEMENT.
11173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11174         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11175         Manage fstat replacement.
11176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11177         REPLACE_FCHDIR.
11178         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11179         (Makefile.am): Substitute REPLACE_FCHDIR.
11180         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11181         FCHDIR_REPLACEMENT.
11182         * lib/dup-safer.c (dup_safer): Likewise.
11183         * lib/dup2.c (rpl_dup2): Likewise.
11184         * lib/dup3.c (rpl_dup3): Likewise.
11185         * lib/open.c (rpl_open): Likewise.
11186
11187         fchdir: simplify error handling, and support dup3
11188         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11189         stdbool, malloc-posix, realloc-posix.
11190         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11191         (ensure_dirs_slot): Return false on allocation failure.
11192         (rpl_dup2): Delete.
11193         (_gl_register_dup): New function.
11194         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11195         (_gl_register_fd): Close fd on allocation failure.
11196         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11197         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11198         prototype.
11199         (rpl_dup2_fchdir): Delete prototype.
11200         * lib/open.c (open): Update caller.
11201         * lib/dup2.c (dup2): Track fchdir metadata.
11202         * lib/dup3.c (dup3): Likewise.
11203         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11205
11206 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11207
11208         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11209         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11210         don't pass arguments to AC_OUTPUT.
11211
11212 2009-09-02  Bruno Haible  <bruno@clisp.org>
11213
11214         * modules/mkdtemp (License): Relicense under LGPLv2+.
11215         Reported by Paolo Bonzini.
11216
11217 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11218
11219         Replace uses of obsolete autoconf macros in Jim's modules.
11220         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11221         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11222         can evoke a warning from autoconf when run with -Wobsolete
11223         enabled.  They were declared obsolete for good reasons (see
11224         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11225         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11226         should not continue using the deprecated macros.
11227         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11228         obsolete Autoconf macros with modern counterparts.
11229         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11230         * m4/dos.m4 (gl_AC_DOS): Likewise.
11231         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11233         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11234         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11235         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11236         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11237         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11238         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11239         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11240         Likewise.
11241         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11242         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11243         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11244         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11245         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11246         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11247
11248 2009-09-01  Eric Blake  <ebb9@byu.net>
11249
11250         fchdir: fix off-by-one bug in previous patch
11251         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11252         (_gl_unregister_fd): Delete useless if.
11253
11254 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11255
11256         maint.mk: sort the list of syntax-check rules
11257         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11258         easier to get a sense of progress when the rules are run sequentially
11259         and take a long time.
11260
11261 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11262
11263         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11264         * modules/netinet_in: Likewise.
11265         * modules/sys_file: Likewise.
11266         * modules/sys_ioctl: Likewise.
11267         * modules/sys_select: Likewise.
11268         * modules/sys_socket: Likewise.
11269         * modules/sys_stat: Likewise.
11270         * modules/sys_time: Likewise.
11271         * modules/sys_times: Likewise.
11272         * modules/sys_utsname: Likewise.
11273         * modules/sys_wait: Likewise.
11274
11275 2009-09-01  Jim Meyering  <meyering@redhat.com>
11276
11277         fts: help ensure that return values are not ignored
11278         * lib/fts_.h (__GNUC_PREREQ): Define.
11279         (__attribute_warn_unused_result__): Define.
11280         (fts_children, fts_close, fts_open, fts_read): Declare with
11281         __attribute_warn_unused_result__.
11282
11283         fts: fts_close now fails also when closing a dir file descriptor fails
11284         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11285         and propagate to caller, along with errno.
11286
11287         announce-gen: correct formatting in --help output
11288         * build-aux/announce-gen (usage): Move the one-line description in
11289         --help output "up", to where it belongs, just after Usage:.
11290
11291 2009-08-31  Eric Blake  <ebb9@byu.net>
11292
11293         fchdir: port to mingw
11294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11295         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11296         opened, then use a substitute.
11297         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11298         replacement.
11299         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11300         (_gl_register_fd): No need to check stat if open already filters
11301         all directories.
11302         (fchdir): Fix error condition to match POSIX.
11303         * modules/fchdir (Depends-on): Add sys_stat.
11304         * doc/posix-functions/open.texi (open): Document the limitation.
11305         * modules/fchdir-tests: New file.
11306         * tests/test-fchdir.c: Likewise.
11307
11308         canonicalize: allow cross-testing from cygwin to mingw
11309         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11310         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11311         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11312         Likewise.
11313         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11314         target does not support symlinks.
11315         * tests/test-canonicalize-lgpl.sh: Likewise.
11316
11317         chown: avoid compilation warning on mingw
11318         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11319         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11320         mingw.
11321         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11322         * modules/chown (Depends-on): Add errno.
11323
11324 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11325
11326         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11327         command.
11328
11329 2009-08-31  Jim Meyering  <meyering@redhat.com>
11330
11331         canonicalize: remove useless initialization
11332         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11333         initialization of local, "end".
11334
11335 2009-08-30  Bruno Haible  <bruno@clisp.org>
11336
11337         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11338         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11339         ENOSYS.
11340
11341 2009-08-30  Bruno Haible  <bruno@clisp.org>
11342
11343         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11344         /usr/xpg4/bin/tr when it exists.
11345         * tests/test-pipe-filter-gi1.sh: Likewise.
11346
11347 2009-08-30  Bruno Haible  <bruno@clisp.org>
11348
11349         Work around deficient /usr/bin/id program on Solaris.
11350         * tests/test-file-has-acl.sh (ID): New variable.
11351         * tests/test-set-mode-acl.sh (ID): Likewise.
11352         * tests/test-copy-acl.sh (ID): Likewise.
11353         * tests/test-copy-file.sh (ID): Likewise.
11354
11355 2009-08-30  Bruno Haible  <bruno@clisp.org>
11356
11357         New module 'xstriconveh'.
11358         * lib/xstriconveh.h: New file.
11359         * lib/xstriconveh.c: New file.
11360         * modules/xstriconveh: New file.
11361
11362 2009-08-30  Bruno Haible  <bruno@clisp.org>
11363
11364         Make it easier to use mem_cd_iconveh.
11365         * lib/striconveh.h (iconveh_t): New type.
11366         (iconveh_open, iconveh_close): New declarations.
11367         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11368         with a single 'const iconveh_t *' argument.
11369         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11370         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11371         with a single 'const iconveh_t *' argument.
11372         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11373         * tests/test-striconveh.c (main): Update.
11374         * NEWS: Mention the change.
11375
11376 2009-08-30  Bruno Haible  <bruno@clisp.org>
11377
11378         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11379         problem.
11380
11381 2009-08-30  Bruno Haible  <bruno@clisp.org>
11382
11383         Work around iconv_open problem on Solaris.
11384         * lib/iconv_open-solaris.gperf: New file.
11385         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11386         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11387         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11388         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11389         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11390         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11391
11392 2009-08-29  Jim Meyering  <meyering@redhat.com>
11393
11394         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11395         * top/maint.mk (cvs-check): Remove target; it was just an alias
11396         to the better-named vc-diff-check.
11397         (maintainer-distcheck): Remove rule.  It was used only from
11398         the (alpha/beta/major) target, and all of its commands but one
11399         were coreutils-specific.
11400         (vc-dist): Remove rule.
11401         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11402         Run vc-diff-check, not vc-dist.
11403         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11404
11405 2009-08-27  Bruno Haible  <bruno@clisp.org>
11406
11407         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11408         of 0.
11409
11410 2009-08-27  Bruno Haible  <bruno@clisp.org>
11411
11412         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11413         compilers.
11414         * doc/func.texi: Document the SunPRO C bug.
11415
11416 2009-08-27  Bruno Haible  <bruno@clisp.org>
11417
11418         Fix link error on Solaris.
11419         * tests/test-parse-duration.c (xstrdup): Remove function.
11420
11421 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11422
11423         ignore-value: handle pointer types, too
11424         * lib/ignore-value.h (__attribute__): Remove definition.
11425         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11426         of a more concise and more-often effective "(void) i" statement.
11427         (ignore_ptr): New function to suppress warnings from functions that
11428         return pointers, and to make it explicit that one function doesn't
11429         handle all cases.
11430
11431 2009-08-25  Bruno Haible  <bruno@clisp.org>
11432
11433         dup2: work around a Linux bug.
11434         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11435         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11436         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11437         Reported by Simon Josefsson.
11438
11439 2009-08-25  Jim Meyering  <meyering@redhat.com>
11440
11441         libguestfs uses gnulib
11442         * users.txt: Add libguestfs.
11443
11444 2009-08-24  Eric Blake  <ebb9@byu.net>
11445
11446         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11447         * lib/pipe2.c (includes): Add binary-io.h.
11448         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11449
11450 2009-08-24  Bruno Haible  <bruno@clisp.org>
11451
11452         Tolerate declared but missing accept4 syscall.
11453         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11454         available.
11455         * lib/sys_socket.in.h (accept4): If the function is already present,
11456         override it.
11457         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11458         * modules/accept4 (Makefile.am): Compile accept4.c always.
11459         Reported by Paolo Bonzini and Eric Blake.
11460
11461 2009-08-23  Bruno Haible  <bruno@clisp.org>
11462
11463         New module 'accept4'.
11464         * lib/sys_socket.in.h (accept4): New declaration.
11465         * lib/accept4.c: New file.
11466         * m4/accept4.m4: New file.
11467         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11468         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11469         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11470         HAVE_ACCEPT4.
11471         * modules/accept4: New file.
11472         * doc/glibc-functions/accept4.texi: Mention the new module.
11473
11474 2009-08-24  Jim Meyering  <meyering@redhat.com>
11475
11476         progname: also set global program_invocation_name, when possible
11477         Before this change, a libtool-enabled program that calls glibc's
11478         error function would report the program name as
11479         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11480         * modules/progname (configure.ac): Check for a declaration of
11481         program_invocation_name.
11482         * lib/progname.c:  Include <errno.h>.
11483         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11484         Set program_invocation_name.
11485
11486 2009-08-23  Bruno Haible  <bruno@clisp.org>
11487
11488         * lib/dup3.c: Include <string.h>.
11489
11490 2009-08-23  Bruno Haible  <bruno@clisp.org>
11491
11492         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11493         * lib/pipe2.c (pipe2): Likewise.
11494         Suggested by Eric Blake.
11495
11496 2009-08-23  Bruno Haible  <bruno@clisp.org>
11497
11498         Tolerate declared but missing dup3 syscall.
11499         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11500         * lib/unistd.in.h (dup3): If the function is already present,
11501         override it.
11502         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11503         * modules/dup3 (Makefile.am): Compile dup3.c always.
11504         Reported by Paolo Bonzini.
11505
11506 2009-08-23  Bruno Haible  <bruno@clisp.org>
11507
11508         Tolerate declared but missing pipe2 syscall.
11509         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11510         available.
11511         * lib/unistd.in.h (pipe2): If the function is already present,
11512         override it.
11513         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11514         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11515         Reported by Paolo Bonzini.
11516
11517 2009-08-23  Bruno Haible  <bruno@clisp.org>
11518
11519         * lib/pipe2.c (pipe2): Move #ifs inside function.
11520
11521 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11522
11523         quotearg: document limitations of quote_these_too
11524         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11525         those limitations are created.
11526         * lib/quotearg.h (set_char_quoting): Document that digits and
11527         letters that are special after backslash are not permitted.
11528         (quotearg_char): Cross-reference set_char_quoting documentation.
11529
11530 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11531
11532         quotearg: implement custom_quoting_style
11533         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11534         right_quote fields.
11535         (set_custom_quoting): New public function.
11536         (quotearg_buffer_restyled): Add left_quote and right_quote
11537         arguments, handle them very much like locale quoting, and update
11538         all uses.
11539         (quotearg_n_custom): New public function.
11540         (quotearg_n_custom_mem): New public function.
11541         (quotearg_custom): New public function.
11542         (quotearg_custom_mem): New public function.
11543         * lib/quotearg.h: Prototype and document new public functions.
11544         (enum quoting_style): For escape_quoting_style and
11545         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11546         ignored even though they're otherwise like c_quoting_style.
11547         Add custom_quoting_style member and document with comparison to
11548         clocale_quoting_style.
11549         * tests/test-quotearg.c (custom_quotes): New array.
11550         (custom_results): New array.
11551         (main): Extend to test custom quoting.
11552
11553 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11554
11555         quotearg: fix right quote escaping when it's in quote_these_too
11556         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11557         quote, be sure to prepend only one backslash.
11558         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11559         (main): Test it.
11560
11561 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11562
11563         quotearg-tests: test escaping of embedded locale quotes
11564         * tests/test-quotearg.c (struct result_strings): Add member for
11565         new input.
11566         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11567         (inputs): Add new input.
11568         (results_g): Add expected results.
11569         (flag_results): Likewise.
11570         (locale_results): Likewise.
11571         (compare_strings): Check those.
11572
11573 2009-08-23  Bruno Haible  <bruno@clisp.org>
11574
11575         Tests for module 'dup3'.
11576         * modules/dup3-tests: New file.
11577         * tests/test-dup3.c: New file.
11578
11579         New module 'dup3'.
11580         * lib/unistd.in.h (dup3): New declaration.
11581         * lib/dup3.c: New file.
11582         * m4/dup3.m4: New file.
11583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11584         HAVE_DUP3.
11585         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11586         * modules/dup3: New file.
11587         * doc/glibc-functions/dup3.texi: Mention the new module.
11588
11589 2009-08-23  Bruno Haible  <bruno@clisp.org>
11590
11591         Tweak the dup2 test.
11592         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11593         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11594         the test file is still empty. Fix argument order of lseek.
11595
11596 2009-08-23  Bruno Haible  <bruno@clisp.org>
11597
11598         Avoid test link errors when the modules getopt-gnu, gettext are used.
11599         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11601
11602 2009-08-23  Bruno Haible  <bruno@clisp.org>
11603
11604         Fix getdtablesize() on mingw.
11605         * lib/getdtablesize.c (getdtablesize): Implement differently.
11606         * lib/unistd.in.h (getdtablesize): Improve comment.
11607
11608 2009-08-23  Bruno Haible  <bruno@clisp.org>
11609
11610         New module 'mkostemp'.
11611         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11612         * lib/stdlib.in.h (mksotemp): New declaration.
11613         * lib/mkostemp.c: New file, from glibc with modifications.
11614         * lib/tempname.h (GT_FILE): Remove outdated comment.
11615         (gen_tempname): Add flags argument.
11616         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11617         (__GT_FILE): Map to 1.
11618         (small_open, large_open): Remove macros.
11619         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11620         * lib/mkstemp.c (mkstemp): Update.
11621         * lib/mkdtemp.c (mkdtemp): Likewise.
11622         * m4/mkostemp.m4: New file.
11623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11624         HAVE_MKOSTEMP.
11625         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11626         HAVE_MKOSTEMP.
11627         * modules/mkostemp: New file, based on modules/mkstemp.
11628         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11629         * NEWS: Mention the change.
11630
11631 2009-08-23  Bruno Haible  <bruno@clisp.org>
11632
11633         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11634         Reported by Eric Blake.
11635
11636 2009-08-23  Bruno Haible  <bruno@clisp.org>
11637
11638         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11639         Reported by Eric Blake.
11640
11641 2009-08-23  Bruno Haible  <bruno@clisp.org>
11642
11643         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11644         * modules/pipe2 (Depends-on): Likewise.
11645
11646 2009-08-23  Eric Blake  <ebb9@byu.net>
11647
11648         fcntl-h: add O_TTY_INIT support
11649         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11650         * tests/test-fcntl-h.c (o): Test it.
11651         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11652
11653         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11654         * modules/fcntl: Move <fcntl.h> header replacement...
11655         * modules/fcntl-h: ...to new name, so as not to collide with
11656         like-named function.
11657         * tests/test-fcntl.c: Rename...
11658         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11659         * modules/fcntl-tests: Rename...
11660         * modules/fcntl-h-tests: ...to this.  Update test file name.
11661         * modules/chdir-long (Depends-on): Update clients.
11662         * modules/chdir-safer (Depends-on): Likewise.
11663         * modules/fcntl-safer (Depends-on): Likewise.
11664         * modules/fts (Depends-on): Likewise.
11665         * modules/mkancesdirs (Depends-on): Likewise.
11666         * modules/mkdir-p (Depends-on): Likewise.
11667         * modules/open (Depends-on): Likewise.
11668         * modules/savewd (Depends-on): Likewise.
11669         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11670         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11671
11672 2009-08-22  Bruno Haible  <bruno@clisp.org>
11673
11674         * modules/binary-io (License): Relicense under LGPL.
11675         * modules/pipe2 (License): Likewise.
11676
11677 2009-08-22  Bruno Haible  <bruno@clisp.org>
11678
11679         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11680         return value.
11681         * lib/pipe-filter-gi.c (filter_init): Likewise.
11682         Reported by Eric Blake.
11683
11684 2009-08-22  Bruno Haible  <bruno@clisp.org>
11685
11686         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11687         * modules/pipe (Depends-on): Add pipe2.
11688
11689 2009-08-22  Bruno Haible  <bruno@clisp.org>
11690
11691         Tests for module 'pipe2'.
11692         * modules/pipe2-tests: New file.
11693         * tests/test-pipe2.c: New file.
11694
11695         New module 'pipe2'.
11696         * lib/unistd.in.h (pipe2): New declaration.
11697         * lib/pipe2.c: New file.
11698         * m4/pipe2.m4: New file.
11699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11700         HAVE_PIPE2.
11701         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11702         * modules/pipe2: New file.
11703         * doc/glibc-functions/pipe2.texi: Mention the new module.
11704
11705 2009-08-22  Bruno Haible  <bruno@clisp.org>
11706
11707         Reference some new glibc functions.
11708         * doc/glibc-functions/accept4.texi: New file.
11709         * doc/glibc-functions/dup3.texi: New file.
11710         * doc/glibc-functions/mkostemp.texi: New file.
11711         * doc/glibc-functions/pipe2.texi: New file.
11712         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11713         (Glibc sys/socket.h): Refer to accept4.
11714         (Glibc unistd.h): Refer to dup3, pipe2.
11715         Reported by Eric Blake.
11716
11717 2009-08-22  Jim Meyering  <meyering@redhat.com>
11718             Bruno Haible  <bruno@clisp.org>
11719
11720         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11721         This makes it so packages using automake-1.11's silent-rules option
11722         can print e.g., a single "GEN    configmake.h" line, rather than
11723         the 30+ statements that perform the job.  If you want to see the
11724         actual commands, you can still run "make V=1".
11725         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11726         so that make output is abbreviated when those variables are defined
11727         appropriately.
11728         * modules/argz: Likewise.
11729         * modules/arpa_inet: Likewise.
11730         * modules/byteswap: Likewise.
11731         * modules/configmake: Likewise.
11732         * modules/dirent: Likewise.
11733         * modules/errno: Likewise.
11734         * modules/fcntl: Likewise.
11735         * modules/float: Likewise.
11736         * modules/fnmatch: Likewise.
11737         * modules/getopt-posix: Likewise.
11738         * modules/glob: Likewise.
11739         * modules/iconv_open: Likewise.
11740         * modules/inttypes: Likewise.
11741         * modules/localcharset: Likewise.
11742         * modules/locale: Likewise.
11743         * modules/math: Likewise.
11744         * modules/netdb: Likewise.
11745         * modules/netinet_in: Likewise.
11746         * modules/poll: Likewise.
11747         * modules/posix_spawnp-tests: Likewise.
11748         * modules/sched: Likewise.
11749         * modules/search: Likewise.
11750         * modules/selinux-h: Likewise.
11751         * modules/signal: Likewise.
11752         * modules/spawn: Likewise.
11753         * modules/stdarg: Likewise.
11754         * modules/stdbool: Likewise.
11755         * modules/stddef: Likewise.
11756         * modules/stdint: Likewise.
11757         * modules/stdio: Likewise.
11758         * modules/stdlib: Likewise.
11759         * modules/string: Likewise.
11760         * modules/strings: Likewise.
11761         * modules/sys_file: Likewise.
11762         * modules/sys_ioctl: Likewise.
11763         * modules/sys_select: Likewise.
11764         * modules/sys_socket: Likewise.
11765         * modules/sys_stat: Likewise.
11766         * modules/sys_time: Likewise.
11767         * modules/sys_times: Likewise.
11768         * modules/sys_utsname: Likewise.
11769         * modules/sys_wait: Likewise.
11770         * modules/sysexits: Likewise.
11771         * modules/time: Likewise.
11772         * modules/unistd: Likewise.
11773         * modules/wchar: Likewise.
11774         * modules/wctype: Likewise.
11775
11776 2009-08-22  Jim Meyering  <meyering@redhat.com>
11777
11778         announce-gen: detect write failure
11779         * build-aux/announce-gen: Add Coda at end.
11780         Remove equivalent-but-more-verbose block at top.
11781
11782 2009-08-19  Akim Demaille  <demaille@gostai.com>
11783
11784         bootstrap: --help to stdout.
11785         * bootstrap (usage): Don't send --help to stderr.
11786         Use a here doc instead of a long string.
11787
11788 2009-08-21  Eric Blake  <ebb9@byu.net>
11789
11790         test-popen-safer: split from test-popen
11791         * tests/test-popen.c (main): Move...
11792         * tests/test-popen.h: ...into new file.
11793         * tests/test-popen-safer2.c: New file.
11794         * modules/popen-tests (Files): Add test-popen.h.
11795         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11796         Suggested by Bruno Haible.
11797
11798         test-fcntl-safer: split from test-open
11799         * tests/test-open.c (main): Move...
11800         * tests/test-open.h: ...into new file.
11801         * tests/test-fcntl-safer.c: New file.
11802         * modules/open-tests (Files): Add test-open.h.
11803         * modules/fcntl-safer-tests: New file.
11804         Suggested by Bruno Haible.
11805
11806         test-fopen-safer: split from test-fopen
11807         * tests/test-fopen.c (main): Move...
11808         * tests/test-fopen.h: ...into new file.
11809         * tests/test-fopen-safer.c: New file.
11810         * modules/fopen-tests (Files): Add test-fopen.h.
11811         * modules/fopen-safer-tests: New file.
11812         Suggested by Bruno Haible.
11813
11814 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11815
11816         popen-safer: test O_CLOEXEC at run-time.
11817         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11818
11819 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11820
11821         fcntl: move more flags to the header
11822         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11823         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11824         * lib/fcntl.in.h: Do both things here.
11825
11826 2009-08-21  Jim Meyering  <meyering@redhat.com>
11827
11828         consistently remove $@-t before redirecting to it
11829         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11830         * modules/alloca-opt: Likewise.
11831         * modules/byteswap: Likewise.
11832         * modules/fnmatch: Likewise.
11833         * modules/getopt-posix: Likewise.
11834         * modules/glob: Likewise.
11835         * modules/poll: Likewise.
11836         * modules/posix_spawnp-tests: Likewise.
11837         * modules/sys_socket: Likewise.
11838         * modules/sysexits: Likewise.
11839
11840 2009-08-21  Eric Blake  <ebb9@byu.net>
11841
11842         popen: simplify access to original popen
11843         * lib/popen.c (rpl_popen): No need to worry about popen being a
11844         macro.
11845         Reported by Bruno Haible.
11846
11847 2009-08-20  Eric Blake  <ebb9@byu.net>
11848
11849         build: avoid some compiler warnings
11850         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11851         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11852         type.
11853         (new_exclude_segment, excluded_file_pattern_p)
11854         (excluded_file_name_p): Reduce scope.
11855         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11856         old-style declaration.
11857
11858 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11859
11860         * tests/test-exclude1.sh: Handle Windows EOL.
11861         * tests/test-exclude2.sh: Likewise.
11862         * tests/test-exclude3.sh: Likewise.
11863         * tests/test-exclude4.sh: Likewise.
11864         * tests/test-exclude5.sh: Likewise.
11865         * tests/test-exclude6.sh: Likewise.
11866         * tests/test-exclude7.sh: Likewise.
11867
11868 2009-08-19  Akim Demaille  <demaille@gostai.com>
11869
11870         bootstrap: find sha1sum when named gsha1sum.
11871         * bootstrap (find_tool): New.
11872         ($SHA1SUM): New.
11873         Use it.
11874
11875 2009-08-20  Jim Meyering  <meyering@redhat.com>
11876
11877         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11878         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11879         expression that converts "." in a file name to "\." in the resulting
11880         regexp.  Start with a dummy statement, so that prior shell variable
11881         definitions are expanded portably.  Reported by Simon Josefsson.
11882
11883 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11884
11885         Fix polling for writeability of a screen buffer.
11886         * lib/poll.c: Distinguish input and screen buffers for the
11887         Win32 implementation.
11888         * lib/select.c: Likewise.
11889
11890 2009-08-19  Eric Blake  <ebb9@byu.net>
11891
11892         popen-safer: prevent popen from clobbering std descriptors
11893         * modules/popen-safer: New file.
11894         * lib/popen-safer.c: Likewise.
11895         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11896         * lib/stdio--.h (popen): Provide override.
11897         * lib/stdio-safer.h (popen_safer): Provide declaration.
11898         * tests/test-popen.c (includes): Partially test this.
11899         * modules/popen-safer-tests: New file, for more tests.
11900         * tests/test-popen-safer.c: Likewise.
11901         * MODULES.html.sh (file stream based Input/Output): Mention it.
11902
11903         tests: test some of the *-safer modules
11904         * modules/fopen-safer (Depends-on): Add fopen.
11905         * modules/fcntl-safer (Depends-on): Add fcntl.
11906         * modules/stdlib-safer (Depends-on): Add stdlib.
11907         (configure.ac): Set indicator.
11908         * modules/unistd-safer (configure.ac): Likewise.
11909         * modules/tmpfile-safer (configure.ac): Likewise.
11910         (Depends-on): Add tmpfile.
11911         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11912         active.
11913         * tests/test-fopen.c (includes): Test safer versions when they are
11914         in use.
11915         * tests/test-open.c (includes): Likewise.
11916
11917         popen: fix cygwin 1.5 bug when stdin closed
11918         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11919         * modules/popen: New file.
11920         * modules/popen-tests: Likewise.
11921         * tests/test-popen.c: Likewise.
11922         * m4/popen.m4: Likewise.
11923         * lib/popen.c: Likewise.
11924         * lib/stdio.in.h (popen): New declaration.
11925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11926         * modules/stdio (Makefile.am): Likewise.
11927         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11928
11929 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11930
11931         maint.mk: give full control over update-copyright exclusions
11932         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11933         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11934         (update-copyright): Don't force inclusion of top-level
11935         ChangeLog.  Don't force exclusion of all COPYING files, but make
11936         them the default exclusion instead.
11937
11938 2009-08-16  Bruno Haible  <bruno@clisp.org>
11939
11940         Fix test failures on Solaris 10.
11941         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11942         tests when Solaris iconv() is used.
11943         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11944         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11945         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11946         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11947         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11948
11949 2009-08-16  Bruno Haible  <bruno@clisp.org>
11950
11951         Fix test failures on Solaris 10.
11952         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11953         'tr' program and pass it as first argument.
11954         * tests/test-pipe-filter-gi1.sh: Likewise.
11955         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11956         program as first argument.
11957         * tests/test-pipe-filter-gi1.c (main): Likewise.
11958
11959 2009-08-16  Eric Blake  <ebb9@byu.net>
11960
11961         fpurge: fix previous commits
11962         * modules/fpurge (Makefile.am): Make replacement conditional,
11963         partially reverting 2007-04-29 change; missed in previous
11964         attempt.
11965         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11966         is missing.
11967
11968 2009-08-16  Bruno Haible  <bruno@clisp.org>
11969
11970         Clarify fpurge's effect on the file position.
11971         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11972         * tests/test-fpurge.c (main): Make a second pass for checking the file
11973         position.
11974
11975 2009-08-16  Bruno Haible  <bruno@clisp.org>
11976
11977         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11978         declaration of fpurge is missing.
11979         * tests/test-fpurge.c (main): Check that the file has not more contents
11980         than expected. Close the file before removing it.
11981
11982 2009-08-15  Eric Blake  <ebb9@byu.net>
11983
11984         fpurge: don't wrap working cygwin implementation
11985         * lib/fpurge.c (fpurge): Fix comment typo.
11986         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11987         1.7 to avoid replacement.
11988         * tests/test-fpurge.c (main): Enhance test.
11989
11990 2009-08-15  Eric Blake  <ebb9@byu.net>
11991         and Jim Meyering  <meyering@redhat.com>
11992
11993         test-update-copyright: skip if perl is insufficient
11994         * tests/test-update-copyright.sh: Failure to run maintainer tool
11995         should not cause testsuite failure on cygwin 1.5.
11996
11997 2009-08-14  Eric Blake  <ebb9@byu.net>
11998
11999         doc: mention more functions added in cygwin 1.7.0
12000         * doc/posix-headers/limits.texi (limits.h): Update for recent
12001         cygwin additions.
12002         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12003         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12004         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12005         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12006         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12007
12008 2009-08-14  Eric Blake  <ebb9@byu.net>
12009
12010         maint.mk: simplify update-copyright rule
12011         * top/maint.mk (update-copyright-local): Delete, and document how
12012         to do it in cfg.mk instead.
12013         (update-copyright-exclude-regexp): Delete, and document how to do
12014         it in .x-update-copyright instead.
12015         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12016         exclude ChangeLog.
12017
12018 2009-08-14  Bruno Haible  <bruno@clisp.org>
12019
12020         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12021
12022 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12023
12024         maint.mk: support update-copyright-env
12025         * top/maint.mk (update-copyright-env): Define place-holder.
12026         (update-copyright): Expand $(update-copyright-env) before
12027         invoking update-copyright.
12028
12029 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12030
12031         update-copyright: implement forced reformatting
12032         * build-aux/update-copyright: Implement and document
12033         UPDATE_COPYRIGHT_FORCE.
12034         * tests/test-update-copyright.sh: Test it.
12035
12036 2009-08-14  Eric Blake  <ebb9@byu.net>
12037         and Bruno Haible  <bruno@clisp.org>
12038
12039         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12040         * tests/test-locale.c: Revert previous patch related to NULL.
12041         * tests/test-stdio.c: Likewise.
12042         * tests/test-stdlib.c: Likewise.
12043         * tests/test-string.c: Likewise.
12044         * tests/test-unistd.c: Likewise.
12045         * modules/time-tests (Depends-on): Add verify.
12046         * modules/wchar-tests (Depends-on): Likewise.
12047         * tests/test-time.c: Test for NULL compliance.
12048         * tests/test-wchar.c: Likewise.
12049         * modules/locale (Depends-on): Add stddef.
12050         * modules/stdio (Depends-on): Likewise.
12051         * modules/stdlib (Depends-on): Likewise.
12052         * modules/string (Depends-on): Likewise.
12053         * modules/time (Depends-on): Likewise.
12054         * modules/unistd (Depends-on): Likewise.
12055         * modules/wchar (Depends-on): Likewise.
12056         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12057         * lib/stdlib.in.h (includes): Likewise.
12058         * lib/string.in.h (includes): Likewise.
12059         * lib/time.in.h (includes): Likewise.
12060         * lib/unistd.in.h (includes): Likewise.
12061         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12062         replaced.
12063         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12064         * m4/stddef_h.m4: New file.
12065         * modules/stddef: Likewise.
12066         * lib/stddef.in.h: Likewise.
12067         * modules/stddef-tests: Likewise.
12068         * tests/test-stddef.c: Likewise.
12069         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12070         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12071         * doc/posix-headers/locale.texi (locale.h): Likewise.
12072         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12073         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12074         * doc/posix-headers/string.texi (string.h): Likewise.
12075         * doc/posix-headers/time.texi (time.h): Likewise.
12076         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12077         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12078
12079 2009-08-14  Eric Blake  <ebb9@byu.net>
12080
12081         doc: improve git diff of texinfo files
12082         * .gitattributes: Add rule for *.texi files, with hint on how to
12083         use it.
12084         Copied from m4, and based on a report by Bruno Haible.
12085
12086 2009-08-14  Bruno Haible  <bruno@clisp.org>
12087
12088         Disable multithread support by default on Cygwin 1.5.x for real.
12089         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12090
12091 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12092
12093         update-copyright: much ado about intervals
12094         * build-aux/update-copyright: Implement and document
12095         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12096         of copyright year intervals.
12097         Also, document UPDATE_COPYRIGHT_YEAR.
12098         * tests/test-update-copyright.sh: Test it.
12099
12100         update-copyright: convert 2-digit to 4-digit years
12101         * build-aux/update-copyright: Implement and document.
12102         * tests/test-update-copyright.sh: Update.
12103
12104 2009-08-14  Jim Meyering  <meyering@redhat.com>
12105
12106         test-exclude: avoid coreutils "make check" failure
12107         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12108         just as in test-argmatch.c.
12109
12110 2009-08-13  Eric Blake  <ebb9@byu.net>
12111
12112         test-dup2: fix bad assumption
12113         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12114         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12115
12116         test-version-etc: fix CRLF portability issue
12117         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12118         recognize \r.
12119         * tests/test-argp-version-etc-1.sh: Likewise.
12120
12121         getopt: update client modules
12122         * modules/argp (Depends-on): Use getopt-gnu.
12123         * modules/git-merge-changelog (Depends-on): Likewise.
12124         * modules/long-options (Depends-on): Likewise.
12125         * modules/xstrtol (Depends-on): Likewise.
12126
12127 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12128
12129         * tests/test-version-etc.sh: Don't fail on different
12130         project/version.  Don't fail on CRLF differences.  Rewrite to use
12131         multiple -e instead of multiple sed forks, suggested by Eric Blake
12132         <ebb9@byu.net>.
12133         * tests/test-argp-version-etc-1.sh: Likewise.
12134
12135 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12136
12137         * tests/test-version-etc.sh: Don't fail on different
12138         project/version.
12139
12140 2009-08-12  Bruno Haible  <bruno@clisp.org>
12141
12142         Tests for modules 'getopt-posix', 'getopt-gnu'.
12143         * modules/getopt-posix-tests: New file.
12144         * tests/test-getopt.c: New file.
12145         * tests/test-getopt.h: New file.
12146         * tests/test-getopt_long.h: New file.
12147
12148         New modules 'getopt-posix', 'getopt-gnu'.
12149         * modules/getopt-gnu: New file, renamed from modules/getopt.
12150         * modules/getopt-posix: New file.
12151         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12152         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12153         (gl_GETOPT): Remove macro.
12154         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12155         Disable the test against BSD systems that declare optreset. Test
12156         against mingw bug. Test against lack of support of optional arguments
12157         on many platforms.
12158         * doc/glibc-headers/getopt.texi: Update module name and list of
12159         relevant platforms.
12160         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12161         'getopt-gnu' and more portability problems.
12162         * NEWS: Mention the changes.
12163
12164 2009-08-12  Bruno Haible  <bruno@clisp.org>
12165
12166         Ensure that optarg etc. get declared by <unistd.h>.
12167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12168         AC_USE_SYSTEM_EXTENSIONS.
12169         * modules/getopt (Depends-on): Add 'extensions'.
12170
12171 2009-08-12  Bruno Haible  <bruno@clisp.org>
12172
12173         Avoid test link errors.
12174         * modules/pipe-filter-ii-tests (Makefile.am): Define
12175         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12176         * modules/pipe-filter-gi-tests (Makefile.am): Define
12177         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12178         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12179
12180 2009-08-12  Bruno Haible  <bruno@clisp.org>
12181
12182         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12183         gl_GETOPT_SUBSTITUTE before.
12184         (gl_GETOPT): Use it.
12185         * m4/argp.m4 (gl_ARGP): Update.
12186         Reported by Sergey Poznyakoff.
12187
12188         * m4/getopt.m4: Reorder macros.
12189         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12190         (gl_GETOPT_SUBSTITUTE): Remove macro.
12191
12192 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12193
12194         Minor improvement in gitlog-to-changelog
12195
12196         * build-aux/gitlog-to-changelog: New option `--format' makes
12197         output format string configurable.
12198
12199 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12200
12201         Optimize exclude: use hash tables for non-wildcard patterns.
12202
12203         * lib/exclude.c: Include hash.h and mbuiter.h
12204         (struct exclude_pattern, exclude_segment): New data types.
12205         (struct exclude): Rewrite.
12206         (fnmatch_pattern_has_wildcards): New function.
12207         (new_exclude_segment, free_exclude_segment): New functions.
12208         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12209         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12210         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12211         * modules/exclude: Depend on hash and mbuiter.
12212
12213         * modules/exclude-tests: New file.
12214         * tests/test-exclude.c: New file.
12215         * tests/test-exclude1.sh: New file.
12216         * tests/test-exclude2.sh: New file.
12217         * tests/test-exclude3.sh: New file.
12218         * tests/test-exclude4.sh: New file.
12219         * tests/test-exclude5.sh: New file.
12220         * tests/test-exclude6.sh: New file.
12221         * tests/test-exclude7.sh: New file.
12222
12223 2009-08-12  Bruno Haible  <bruno@clisp.org>
12224
12225         Ensure that getopt() gets declared by <unistd.h>.
12226         * lib/unistd.in.h: Conditionally include getopt.h.
12227         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12228         Set GNULIB_UNISTD_H_GETOPT.
12229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12230         GNULIB_UNISTD_H_GETOPT.
12231         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12232
12233 2009-08-12  Bruno Haible  <bruno@clisp.org>
12234
12235         Clarify logic.
12236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12237         gl_replace_getopt instead of GETOPT_H.
12238
12239 2009-08-12  Bruno Haible  <bruno@clisp.org>
12240
12241         * m4/getopt.m4: Add comments.
12242
12243 2009-08-12  Bruno Haible  <bruno@clisp.org>
12244
12245         Disable multithread support by default on Cygwin 1.5.x.
12246         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12247         set gl_use_threads=no if not specified otherwise.
12248
12249 2009-08-11  Bruno Haible  <bruno@clisp.org>
12250
12251         Avoid compilation error on NetBSD 5.0.
12252         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12253         * tests/test-stdio.c: Likewise.
12254         * tests/test-stdlib.c: Likewise.
12255         * tests/test-string.c: Likewise.
12256         * tests/test-unistd.c: Likewise.
12257         Reported by Greg Troxel <gdt@ir.bbn.com>
12258         at <https://savannah.gnu.org/support/?106973>.
12259
12260 2009-08-11  Bruno Haible  <bruno@clisp.org>
12261
12262         * modules/dup2-tests (Depends-on): Remove close.
12263
12264         Undo 2009-07-19 commit.
12265         * modules/acl-tests (Depends-on): Remove close.
12266         * modules/binary-io-tests (Depends-on): Likewise.
12267         * modules/closein-tests (Depends-on): Likewise.
12268         * modules/flock-tests (Depends-on): Likewise.
12269         * modules/fsync-tests (Depends-on): Likewise.
12270         * modules/lseek-tests (Depends-on): Likewise.
12271         * modules/pipe-tests (Depends-on): Likewise.
12272         * modules/posix_spawn-tests (Depends-on): Likewise.
12273         * modules/posix_spawnp-tests (Depends-on): Likewise.
12274         * modules/stat-time-tests (Depends-on): Likewise.
12275         * modules/yesno-tests (Depends-on): Likewise.
12276
12277 2009-08-10  Bruno Haible  <bruno@clisp.org>
12278
12279         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12280
12281 2009-08-10  Bruno Haible  <bruno@clisp.org>
12282
12283         Fix a gcc warning.
12284         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12285
12286 2009-08-10  Bruno Haible  <bruno@clisp.org>
12287
12288         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12289         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12290         not only the first time.
12291         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12292         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12293         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12294         is 1, not only the the first time.
12295
12296 2009-08-10  Bruno Haible  <bruno@clisp.org>
12297
12298         Make it possible to use module 'gethostname' without module 'close'.
12299         * lib/unistd.in.h (close): Evoke a link error only if
12300         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12302         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12303         * modules/unistd (Makefile.am): Substitute
12304         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12305         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12306         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12307         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12308         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12309         * modules/sys_ioctl (Makefile.am): Substitute
12310         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12311         * modules/socket (configure.ac): On native Windows, set
12312         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12314         Reported by Sam Steingold <sds@gnu.org>.
12315
12316 2009-08-10  Bruno Haible  <bruno@clisp.org>
12317
12318         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12319         * modules/ioctl (configure.ac): Likewise.
12320
12321 2009-08-10  Bruno Haible  <bruno@clisp.org>
12322
12323         Avoid collision between gnulib wrapper and libintl wrapper.
12324         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12325         already defined in intl/printf.c.
12326         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12327         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12328
12329 2009-08-09  Bruno Haible  <bruno@clisp.org>
12330
12331         Make <sys/select.h> really self-contained, also on Solaris 10.
12332         * lib/sys_select.in.h: Include <string.h>.
12333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12334         Solaris 10 problem.
12335         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12336         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12337         Reported by Jim Meyering.
12338
12339 2009-08-09  Bruno Haible  <bruno@clisp.org>
12340
12341         Avoid warnings from 'aclocal' that are due to a use of macro name
12342         AM_XGETTEXT_OPTION that is not defined in automake.
12343         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12344         automake.
12345         * modules/error (configure.ac): Likewise.
12346         * modules/propername (configure.ac): Likewise.
12347         * modules/vasprintf (configure.ac): Likewise.
12348         * modules/verror (configure.ac): Likewise.
12349         * modules/xprintf (configure.ac): Likewise.
12350         * modules/xvasprintf (configure.ac): Likewise.
12351
12352 2009-08-08  Bruno Haible  <bruno@clisp.org>
12353
12354         Avoid compilation error in C++ mode.
12355         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12356         Reported by Sam Steingold <sds@gnu.org>.
12357
12358 2009-08-08  Bruno Haible  <bruno@clisp.org>
12359
12360         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12361         for the various Unix platforms.
12362         * doc/posix-headers/limits.texi: Update platforms list regarding
12363         HOST_NAME_MAX.
12364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12365
12366 2009-08-07  Jim Meyering  <meyering@redhat.com>
12367
12368         selinux-at: fix typo in a comment
12369         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12370         Spotted by Paolo Bonzini.
12371
12372         selinux-at: remove redundant m4 code, add documentation
12373         * modules/selinux-at (configure.ac): Remove redundant code.
12374         LIB_SELINUX is already set via the dependent module, selinux-h.
12375         (Include): Add quotes around selinux-at.h.
12376         * lib/selinux-at.h: Add documentation.
12377         Reported by Bruno Haible in
12378         http://marc.info/?l=gnulib-bug&m=124958988300749
12379
12380 2009-08-07  Bruno Haible  <bruno@clisp.org>
12381
12382         Avoid link error on MacOS X 10.3 and 10.4.
12383         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12384         on non-ELF systems.
12385         * lib/argp-pv.c (argp_program_version): Likewise.
12386         Reported by Simon Josefsson.
12387
12388 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12389
12390         * tests/test-version-etc.sh: Use $EXEEXT.
12391
12392 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12393
12394         update-copyright: update documentation to point to maint.mk
12395         * build-aux/update-copyright: Here.
12396
12397 2009-08-06  Jim Meyering  <meyering@redhat.com>
12398
12399         maint.mk: support update-copyright-local
12400         * top/maint.mk (update-copyright-local): Define place-holder.
12401         (update-copyright): Depend on $(update-copyright-local).
12402
12403 2009-08-06  Jim Meyering  <meyering@redhat.com>
12404
12405         selinux-at: new module
12406         Initially written for coreutils, this module will soon be
12407         used by findutils, too.
12408         * MODULES.html.sh [Misc]: Add selinux-at.
12409         * lib/selinux-at.h: New file, from coreutils.
12410         * lib/selinux-at.c: Likewise.
12411         * modules/selinux-at: Likewise.
12412         (License): Change from LGPL to GPL, since it depends
12413         on the GPL'd openat module.
12414
12415         doc: update README
12416         * README: Remove references to cogito.
12417         Remove cvs-repo-updating instructions from 2007.
12418         Don't imply that CVS is better if you have limited disk space.
12419
12420 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12421
12422         update-copyright: support C-style comments
12423         * build-aux/update-copyright: Implement and document.
12424         * tests/test-update-copyright.sh: Test.
12425
12426 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12427
12428         update-copyright: support omitted "(C)"
12429         * build-aux/update-copyright: Implement and document.  Also,
12430         allow variable whitespace before "(C)".
12431         * tests/test-update-copyright.sh: Test.
12432
12433 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12434
12435         update-copyright: don't trip on non-FSF copyright statements
12436         * build-aux/update-copyright: Fix so that the first correctly
12437         formatted FSF copyright statement is recognized no matter what
12438         appears before it.  Update documentation.
12439         * tests/test-update-copyright.sh: Test that.
12440
12441 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12442
12443         update-copyright: clean up code a little
12444         * build-aux/update-copyright: Append "_re" to the name of any
12445         variable holding a regular expression.
12446         Replace "old" and "new" with "stmt" in variable names.
12447         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12448         handled correctly.
12449         Format code more consistently.
12450
12451 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12452
12453         update-copyright-tests: improve portability
12454         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12455         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12456
12457 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12458
12459         update-copyright: support @copyright{} and &copy;
12460         * build-aux/update-copyright: Implement and document.
12461         * tests/test-update-copyright.sh: Test.
12462
12463 2009-08-04  Jim Meyering  <meyering@redhat.com>
12464
12465         update-copyright-tests: correctly test EOL=\r\n handling
12466         * tests/test-update-copyright.sh: Put \r at the end of some lines
12467         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12468
12469         maint.mk: make update-copyright exclusion list more configurable
12470         * top/maint.mk (update-copyright): Default to excluding COPYING,
12471         but allow an override, in case someone does want to update that file.
12472
12473         maint.mk: don't update copyright date in COPYING
12474         * top/maint.mk (update-copyright): Exclude COPYING.
12475
12476         maint.mk: add a copyright-updating rule
12477         * top/maint.mk (update-copyright): New rule.
12478         Derived from coreutils/Makefile.am.
12479
12480         update-copyright: rename some variables
12481         * build-aux/update-copyright: Rename a few variables for clarity.
12482         Tweak syntax.  List Joel E. Denny as coauthor.
12483
12484 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12485
12486         update-copyright: fix bug for 2-digit last year and add tests
12487         * build-aux/update-copyright: Fix bug.
12488         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12489         specified.
12490         * modules/update-copyright-tests: New
12491         * tests/test-update-copyright.sh: New.
12492
12493 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12494
12495         update-copyright: handle leading tabs in line prefix
12496         * build-aux/update-copyright: Count leading tabs as 8 spaces
12497         when computing margin.  This helps with the formatting of
12498         ChangeLogs, for example.
12499         Fix documentation a little.
12500
12501 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12502
12503         update-copyright: support EOL=\r\n
12504         * build-aux/update-copyright: Implement that.
12505
12506 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12507
12508         update-copyright: automatically format copyright statements
12509         * build-aux/update-copyright: Implement that.
12510         Also, be a little more predictable and safer by always failing
12511         when the full copyright format is not perfectly recognized as an
12512         unbroken whole.  Discussed at
12513         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12514         Rewrite documentation.
12515
12516 2009-08-03  Bruno Haible  <bruno@clisp.org>
12517
12518         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12519
12520 2009-08-02  Bruno Haible  <bruno@clisp.org>
12521
12522         Tests for module 'uname'.
12523         * modules/uname-tests: New file.
12524         * tests/test-uname.c: New file.
12525
12526         New module 'uname'.
12527         * lib/uname.c: New file.
12528         * m4/uname.m4: New file.
12529         * modules/uname: New file.
12530         * doc/posix-functions/uname.texi: Mention the new module.
12531
12532 2009-08-02  Bruno Haible  <bruno@clisp.org>
12533
12534         Tests for module 'sys_utsname'.
12535         * modules/sys_utsname-tests: New file.
12536         * tests/test-sys_utsname.c: New file.
12537
12538         New module 'sys_utsname'.
12539         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12540         * m4/sys_utsname_h.m4: New file.
12541         * modules/sys_utsname: New file.
12542         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12543
12544 2009-08-02  Bruno Haible  <bruno@clisp.org>
12545
12546         Implicitly initialize the sockets library.
12547         * lib/gethostname.c: Include sockets.h.
12548         (rpl_gethostname): Invoke gl_sockets_startup.
12549         * lib/socket.c: Include sockets.h.
12550         (rpl_socket): Invoke gl_sockets_startup.
12551         * modules/gethostname (Depends-on): Add sockets.
12552         * modules/socket (Depends-on): Likewise.
12553         * tests/test-poll.c: Don't include sockets.h.
12554         (main): Don't invoke gl_sockets_startup.
12555         * tests/test-select.c: Don't include sockets.h.
12556         (main): Don't invoke gl_sockets_startup.
12557
12558 2009-08-02  Bruno Haible  <bruno@clisp.org>
12559
12560         Allow multiple calls to gl_sockets_startup.
12561         * lib/sockets.c (initialized_sockets_version): New variable.
12562         (gl_sockets_startup): Do nothing if already called for this or a higher
12563         version.
12564         (gl_sockets_cleanup): Reset initialized_sockets_version.
12565
12566 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12567
12568         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12569         different project/version.
12570
12571 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12572             Bruno Haible  <bruno@clisp.org>
12573
12574         Tests for module 'pipe-filter-gi'.
12575         * modules/pipe-filter-gi-tests: New file.
12576         * tests/test-pipe-filter-gi1.sh: New file.
12577         * tests/test-pipe-filter-gi1.c: New file.
12578         * tests/test-pipe-filter-gi2.sh: New file.
12579         * tests/test-pipe-filter-gi2-main.c: New file.
12580         * tests/test-pipe-filter-gi2-child.c: New file.
12581
12582         New module 'pipe-filter-gi'.
12583         * lib/pipe-filter-gi.c: New file.
12584         * modules/pipe-filter-gi: New file.
12585
12586 2009-08-02  Bruno Haible  <bruno@clisp.org>
12587             Paolo Bonzini  <bonzini@gnu.org>
12588
12589         Tests for module 'pipe-filter-ii'.
12590         * modules/pipe-filter-ii-tests: New file.
12591         * tests/test-pipe-filter-ii1.sh: New file.
12592         * tests/test-pipe-filter-ii1.c: New file.
12593         * tests/test-pipe-filter-ii2.sh: New file.
12594         * tests/test-pipe-filter-ii2-main.c: New file.
12595         * tests/test-pipe-filter-ii2-child.c: New file.
12596
12597         New module 'pipe-filter-ii'.
12598         * lib/pipe-filter.h: New file.
12599         * lib/pipe-filter-ii.c: New file.
12600         * lib/pipe-filter-aux.h: New file.
12601         * modules/pipe-filter-ii: New file.
12602
12603 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12604
12605         * lib/gc-libgcrypt.c: Change copyright to FSF.
12606         * lib/gc-gnulib.c: Likewise.
12607
12608 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12609
12610         * lib/gethostname.c: Include limits.h.
12611
12612 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12613             Bruno Haible  <bruno@clisp.org>
12614
12615         Ensure HOST_NAME_MAX as part of the gethostname module.
12616         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12617         define also HOST_NAME_MAX.
12618         * tests/test-gethostname.c: Include <limits.h>.
12619         (main): Check also HOST_NAME_MAX.
12620         * doc/posix-headers/limits.texi: Document the mingw problem.
12621
12622 2009-08-02  Bruno Haible  <bruno@clisp.org>
12623
12624         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12625         Add comments.
12626
12627 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12628
12629         * lib/gethostname.c: Add Windows wrapper.
12630         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12631         * modules/gethostname: Depend on sys_socket & errno, for also
12632         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12633         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12634
12635 2009-07-31  Jim Meyering  <meyering@redhat.com>
12636
12637         getloadavg: fix symbol name in comment
12638         * lib/getloadavg.c: Correct a typo I introduced when adding
12639         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12640         Matt Kraai spotted the problem.
12641
12642 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12643
12644         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12645         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12646         code also if ! defined N_NAME_POINTER.
12647         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12648         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12649         but the n_name member is a 12-byte array.
12650
12651 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12652
12653         update-copyright: generalize comment handling
12654         * build-aux/update-copyright: Handle copyright statements
12655         within more comment styles.
12656         Document usage.
12657         Report any file with an external copyright holder or parse failure.
12658
12659 2009-07-29  Jim Meyering  <meyering@redhat.com>
12660
12661         mktime: correct setting of REPLACE_MKTIME
12662         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12663
12664         update-copyright: new module
12665         * modules/update-copyright: New file.
12666         * build-aux/update-copyright: New file.
12667         * MODULES.html.sh (maint+release support): Add update-copyright.
12668
12669 2009-07-27  Bruno Haible  <bruno@clisp.org>
12670
12671         Fix compilation error when <ctime> is used and mktime is replaced.
12672         * lib/time.in.h (mktime): New declaration.
12673         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12674         REPLACE_MKTIME instead of defining mktime in config.h.
12675         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12676         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12677         Reported by Ross McFarland <rwmcfa1@neces.com>.
12678
12679 2009-07-27  Bruno Haible  <bruno@clisp.org>
12680
12681         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12682         Reported by Matt Kraai <mkraai@beckman.com>.
12683
12684 2009-07-25  Jim Meyering  <meyering@redhat.com>
12685
12686         maint.mk: avoid warnings about missing files
12687         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12688         diagnostic when .prev-version does not exist.
12689         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12690         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12691         nonexistent cfg.mk.
12692         Suggestions from Simon Josefsson.
12693
12694 2009-07-25  Bruno Haible  <bruno@clisp.org>
12695
12696         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12697         defined as macros. Needed on QNX 6.4.1.
12698         Reported by Matt Kraai <mkraai@beckman.com>.
12699
12700 2009-07-23  Jim Meyering  <meyering@redhat.com>
12701
12702         maint.mk: invoke "make dist" with a working value of XZ_OPT
12703         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12704
12705 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12706
12707         Make fseeko.c compile on QNX.
12708         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12709
12710 2009-07-22  Peter Simons  <simons@cryp.to>
12711
12712         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12713         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12714         * lib/md4.h: Likewise.
12715         * lib/md5.h: Likewise.
12716         * lib/sha1.h: Likewise.
12717         * lib/sha256.h: Likewise.
12718         * lib/sha512.h: Likewise.
12719
12720         tests-sha1: don't assign literal string to 'char *' variable
12721         * tests/test-sha1.c (main): Declare locals with "const" to match
12722         attributes of the right hand side.
12723
12724 2009-07-21  Eric Blake  <ebb9@byu.net>
12725
12726         dup2: fix more mingw problems
12727         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12728         fd to itself.
12729         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12730         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12731         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12732         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12733         care of mingw bugs.
12734
12735 2009-07-21  Jim Meyering  <meyering@redhat.com>
12736
12737         vc-list-files: avoid failure when /bin/sh is dash
12738         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12739         On some Debian based systems, /bin/sh is a symlink to dash, and running
12740         this command would omit the "/" following each 'tests' prefix:
12741           dash -x build-aux/vc-list-files -C . tests
12742         That is because bash and dash work differently:
12743           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12744           bash ok
12745           dash odd
12746
12747 2009-07-21  Eric Blake  <ebb9@byu.net>
12748
12749         dup2-tests: test previous patch
12750         * modules/dup2-tests: New file.
12751         * tests/test-dup2.c: Likewise.
12752         * tests/test-open.c (main): Avoid unspecified behavior.
12753         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12754         test.
12755
12756         dup2: work around mingw and cygwin 1.5 bug
12757         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12759         * modules/unistd (Makefile.am): Substitute it.
12760         * lib/unistd.in.h (dup2): Declare the replacement.
12761         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12762         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12763         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12764         * modules/execute (Depends-on): Add dup2.
12765         * modules/fseterr (Depends-on): Likewise.
12766         * modules/pipe (Depends-on): Likewise.
12767         * modules/posix_spawn-internal (Depends-on): Likewise.
12768
12769 2009-07-21  Bruno Haible  <bruno@clisp.org>
12770
12771         * modules/.gitattributes: New file.
12772
12773 2009-07-20  Bruno Haible  <bruno@clisp.org>
12774
12775         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12776         (main): Use it.
12777
12778 2009-07-20  Eric Blake  <ebb9@byu.net>
12779
12780         test-pipe: make a bit more robust.
12781         * tests/test-pipe.c (myerr): Allow error messages regardless of
12782         what we do to stderr.
12783         (test_pipe): Rearrange to avoid deadlock.
12784         (child_main): Try a larger read, to ensure we avoided deadlock.
12785         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12786         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12787         if misused.
12788
12789 2009-07-19  Jim Meyering  <meyering@redhat.com>
12790
12791         fts: avoid false-positive cycle-detection
12792         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12793         for each new command line argument.
12794
12795 2009-07-19  Bruno Haible  <bruno@clisp.org>
12796
12797         Fix build error on mingw with the modules sys_select and unistd.
12798         * modules/acl-tests (Depends-on): Add close.
12799         * modules/binary-io-tests (Depends-on): Likewise.
12800         * modules/closein-tests (Depends-on): Likewise.
12801         * modules/flock-tests (Depends-on): Likewise.
12802         * modules/fsync-tests (Depends-on): Likewise.
12803         * modules/lseek-tests (Depends-on): Likewise.
12804         * modules/pipe-tests (Depends-on): Likewise.
12805         * modules/posix_spawn-tests (Depends-on): Likewise.
12806         * modules/posix_spawnp-tests (Depends-on): Likewise.
12807         * modules/stat-time-tests (Depends-on): Likewise.
12808         * modules/yesno-tests (Depends-on): Likewise.
12809
12810 2009-07-19  Bruno Haible  <bruno@clisp.org>
12811
12812         Unify conditionals.
12813         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12814         macros, not at the compiler macros.
12815         * lib/pipe.c: Likewise.
12816         * lib/execute.c: Likewise.
12817         * lib/spawni.c: Likewise.
12818
12819 2009-07-19  Bruno Haible  <bruno@clisp.org>
12820
12821         Fix handling of closed stdin/stdout/stderr on mingw.
12822         * lib/w32spawn.h: Include unistd.h.
12823         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12824         file descriptor with O_NOINHERIT flag.
12825         (fd_safer_noinherit): New function, based on fd-safer.c.
12826         (dup_safer_noinherit): New function, based on dup-safer.c.
12827         (undup_safer_noinherit): New function.
12828         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12829         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12830         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12831         instead of fd_safer.
12832         * tests/test-pipe.c: Include <windows.h>.
12833         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12834
12835         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12836         from main.
12837         (test_pipe): Pass an extra argument for disambiguation.
12838         (main): Invoke parent_main or child_main.
12839
12840         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12841         consistently.
12842
12843 2009-07-18  Eric Blake  <ebb9@byu.net>
12844
12845         test-pipe: fix mingw build
12846         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12847
12848 2009-07-18  Bruno Haible  <bruno@clisp.org>
12849
12850         * modules/pipe-tests (Makefile.am): Fix typo.
12851
12852 2009-07-18  Eric Blake  <ebb9@byu.net>
12853
12854         error: fix mingw build
12855         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12856         Reported by Bruno Haible.
12857
12858         error: avoid undefined use of stdout
12859         * lib/error.c (error, error_at_line): Check that fd 1 is open
12860         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12861         is handling faults and the close_stdout module wants to report the
12862         detection of closed stdout as an error.
12863
12864 2009-07-17  Eric Blake  <ebb9@byu.net>
12865
12866         pipe: be robust in face of closed fds
12867         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12868         should cause child to misbehave.
12869         * modules/pipe-tests: New module.
12870         * tests/test-pipe.c: New file.
12871         * tests/test-pipe.sh: New file.
12872         Reported by Akim Demaille.
12873
12874 2009-07-14  Bruno Haible  <bruno@clisp.org>
12875
12876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12877         Reported by anonymous kc.
12878
12879 2009-07-07  Jim Meyering  <meyering@redhat.com>
12880
12881         maint.mk: don't look for translatable strings in *.m4 or *.mk
12882         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12883         when searching for translatable strings.
12884
12885 2009-07-05  Jim Meyering  <meyering@redhat.com>
12886
12887         remove superfluous parentheses in STREQ definition
12888         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12889         * lib/getugroups.c (STREQ): Likewise.
12890         * lib/fnmatch.c (STREQ): Likewise.
12891         Spotted by Bruno Haible.
12892
12893 2009-07-04  Jim Meyering  <meyering@redhat.com>
12894
12895         argv-iter: new module
12896         * MODULES.html.sh: Add argv-iter.
12897         * lib/argv-iter.c, lib/argv-iter.h: New files.
12898         * modules/argv-iter: New file.
12899         * modules/argv-iter-tests: New file.
12900         * tests/test-argv-iter.c: Test it.
12901
12902 2009-07-04  Bruno Haible  <bruno@clisp.org>
12903
12904         Fix assertion.
12905         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12906         contains more exact copies of a given entry than file2, leave the extra
12907         copies unpaired rather than aborting.
12908         Reported by Eric Blake.
12909
12910 2009-07-02  Bruno Haible  <bruno@clisp.org>
12911
12912         Speedup git-merge-changelog for git cherry-pick.
12913         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12914         (entries_mapping_get): New function, extracted from compute_mapping.
12915         (entries_mapping_reverse_get): New function.
12916         (compute_mapping): Add a 'full' argument. Return the result in a
12917         'struct entries_mapping'.
12918         (main): Update. Access the mappings through entries_mapping_get.
12919         Reported by Eric Blake.
12920
12921 2009-07-02  Bruno Haible  <bruno@clisp.org>
12922
12923         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12924         best_i.
12925
12926 2009-07-02  Bruno Haible  <bruno@clisp.org>
12927
12928         Speed up approximate search for matching ChangeLog entries.
12929         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12930         argument. Call fstrcmp_bounded instead of fstrcmp.
12931         (compute_mapping, try_split_merged_entry, main): Update callers.
12932
12933 2009-07-02  Bruno Haible  <bruno@clisp.org>
12934
12935         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12936
12937 2009-06-30  Bruno Haible  <bruno@clisp.org>
12938
12939         Reduce the number of uc_is_cased calls.
12940         * lib/unicase.h (casing_suffix_context_t): Add
12941         'first_char_except_ignorable' field.
12942         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12943         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12944         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12945         Update initializer.
12946         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12947         case-ignorable characters.
12948         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12949         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12950         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12951         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12952         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12953
12954 2009-06-30  Bruno Haible  <bruno@clisp.org>
12955
12956         Tests for module 'unicase/ignorable'.
12957         * modules/unicase/ignorable-tests: New file.
12958         * tests/unicase/test-ignorable.c: New file, generated by
12959         gen-uni-tables.
12960
12961         Tests for module 'unicase/cased'.
12962         * modules/unicase/cased-tests: New file.
12963         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12964         * tests/unicase/test-predicate-part1.h: New file, derived from
12965         tests/unictype/test-predicate-part1.h.
12966         * tests/unicase/test-predicate-part2.h: New file, same as
12967         tests/unictype/test-predicate-part2.h.
12968
12969         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12970         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12971         (output_casing_properties): New function.
12972         (main): Call it.
12973         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12974         * lib/unicase/cased.c: Include unictype/bitmap.h.
12975         (uc_is_cased): Define through a bitmap lookup.
12976         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12977         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12978         (uc_is_case_ignorable): Define through a bitmap lookup.
12979         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12980         lib/unictype/bitmap.h.
12981         (Depends-on): Add inline. Clean up.
12982         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12983         lib/unictype/bitmap.h.
12984         (Depends-on): Add inline. Clean up.
12985         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12986         recognition.
12987         * tests/unicase/test-u16-tolower.c (main): Likewise.
12988         * tests/unicase/test-u32-tolower.c (main): Likewise.
12989
12990 2009-06-30  Bruno Haible  <bruno@clisp.org>
12991
12992         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12993         * lib/unicase/u16-casemap.c: Likewise.
12994         * lib/unicase/u32-casemap.c: Likewise.
12995
12996 2009-06-29  Bruno Haible  <bruno@clisp.org>
12997
12998         Define u32_casefold as a wrapper around u32_ct_casefold.
12999         * lib/unicase/u32-casefold.c: Update.
13000         * modules/unicase/u32-casefold (Depends-on): Add
13001         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13002         unicase/empty-suffix-context. Clean up.
13003
13004         Define u16_casefold as a wrapper around u16_ct_casefold.
13005         * lib/unicase/u16-casefold.c: Update.
13006         * modules/unicase/u16-casefold (Depends-on): Add
13007         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13008         unicase/empty-suffix-context. Clean up.
13009
13010         Define u8_casefold as a wrapper around u8_ct_casefold.
13011         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13012         * lib/unicase/u8-casefold.c: Update.
13013         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13014         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13015
13016         Define u32_totitle as a wrapper around u32_ct_totitle.
13017         * lib/unicase/u32-totitle.c: Update.
13018         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13019         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13020
13021         Define u16_totitle as a wrapper around u16_ct_totitle.
13022         * lib/unicase/u16-totitle.c: Update.
13023         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13024         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13025
13026         Define u8_totitle as a wrapper around u8_ct_totitle.
13027         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13028         functions.
13029         (FUNC): Delegate to U_CT_TOTITLE.
13030         * lib/unicase/u8-totitle.c: Update.
13031         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13032         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13033
13034         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13035         invocation.
13036         * modules/unicase/u32-tolower (Depends-on): Add
13037         unicase/empty-prefix-context, unicase/empty-suffix-context.
13038
13039         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13040         invocation.
13041         * modules/unicase/u16-tolower (Depends-on): Add
13042         unicase/empty-prefix-context, unicase/empty-suffix-context.
13043
13044         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13045         * modules/unicase/u8-tolower (Depends-on): Add
13046         unicase/empty-prefix-context, unicase/empty-suffix-context.
13047
13048         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13049         invocation.
13050         * modules/unicase/u32-toupper (Depends-on): Add
13051         unicase/empty-prefix-context, unicase/empty-suffix-context.
13052
13053         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13054         invocation.
13055         * modules/unicase/u16-toupper (Depends-on): Add
13056         unicase/empty-prefix-context, unicase/empty-suffix-context.
13057
13058         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13059         * modules/unicase/u8-toupper (Depends-on): Add
13060         unicase/empty-prefix-context, unicase/empty-suffix-context.
13061
13062         New module 'unicase/u32-ct-casefold'.
13063         * lib/unicase/u32-ct-casefold.c: New file.
13064         * modules/unicase/u32-ct-casefold: New file.
13065
13066         New module 'unicase/u16-ct-casefold'.
13067         * lib/unicase/u16-ct-casefold.c: New file.
13068         * modules/unicase/u16-ct-casefold: New file.
13069
13070         New module 'unicase/u8-ct-casefold'.
13071         * lib/unicase/u8-ct-casefold.c: New file.
13072         * lib/unicase/u-ct-casefold.h: New file, derived from
13073         lib/unicase/u-casefold.h.
13074         * modules/unicase/u8-ct-casefold: New file.
13075
13076         New module 'unicase/u32-ct-totitle'.
13077         * lib/unicase/u32-ct-totitle.c: New file.
13078         * modules/unicase/u32-ct-totitle: New file.
13079
13080         New module 'unicase/u16-ct-totitle'.
13081         * lib/unicase/u16-ct-totitle.c: New file.
13082         * modules/unicase/u16-ct-totitle: New file.
13083
13084         New module 'unicase/u8-ct-totitle'.
13085         * lib/unicase/u8-ct-totitle.c: New file.
13086         * lib/unicase/u-ct-totitle.h: New file, derived from
13087         lib/unicase/u-totitle.h.
13088         * modules/unicase/u8-ct-totitle: New file.
13089
13090         New module 'unicase/u32-ct-tolower'.
13091         * lib/unicase/u32-ct-tolower.c: New file.
13092         * modules/unicase/u32-ct-tolower: New file.
13093
13094         New module 'unicase/u16-ct-tolower'.
13095         * lib/unicase/u16-ct-tolower.c: New file.
13096         * modules/unicase/u16-ct-tolower: New file.
13097
13098         New module 'unicase/u8-ct-tolower'.
13099         * lib/unicase/u8-ct-tolower.c: New file.
13100         * modules/unicase/u8-ct-tolower: New file.
13101
13102         New module 'unicase/u32-ct-toupper'.
13103         * lib/unicase/u32-ct-toupper.c: New file.
13104         * modules/unicase/u32-ct-toupper: New file.
13105
13106         New module 'unicase/u16-ct-toupper'.
13107         * lib/unicase/u16-ct-toupper.c: New file.
13108         * modules/unicase/u16-ct-toupper: New file.
13109
13110         New module 'unicase/u8-ct-toupper'.
13111         * lib/unicase/u8-ct-toupper.c: New file.
13112         * modules/unicase/u8-ct-toupper: New file.
13113
13114         Add context arguments to u*_casemap functions.
13115         * lib/unicase/unicasemap.h: Include unicase.h.
13116         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13117         suffix_context arguments.
13118         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13119         functions.
13120         (FUNC): Add prefix_context and suffix_context arguments. Use
13121         uc_is_cased and uc_is_case_ignorable.
13122         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13123         * lib/unicase/u16-casemap.c: Likewise.
13124         * lib/unicase/u32-casemap.c: Likewise.
13125         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13126         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13127         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13128         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13129         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13130         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13131
13132         New module 'unicase/u32-suffix-context'.
13133         * lib/unicase/u32-suffix-context.c: New file.
13134         * modules/unicase/u32-suffix-context: New file.
13135
13136         New module 'unicase/u16-suffix-context'.
13137         * lib/unicase/u16-suffix-context.c: New file.
13138         * modules/unicase/u16-suffix-context: New file.
13139
13140         New module 'unicase/u8-suffix-context'.
13141         * lib/unicase/u8-suffix-context.c: New file.
13142         * lib/unicase/u-suffix-context.h: New file.
13143         * modules/unicase/u8-suffix-context: New file.
13144
13145         New module 'unicase/empty-suffix-context'.
13146         * lib/unicase/empty-suffix-context.c: New file.
13147         * modules/unicase/empty-suffix-context: New file.
13148
13149         New module 'unicase/u32-prefix-context'.
13150         * lib/unicase/u32-prefix-context.c: New file.
13151         * modules/unicase/u32-prefix-context: New file.
13152
13153         New module 'unicase/u16-prefix-context'.
13154         * lib/unicase/u16-prefix-context.c: New file.
13155         * modules/unicase/u16-prefix-context: New file.
13156
13157         New module 'unicase/u8-prefix-context'.
13158         * lib/unicase/u8-prefix-context.c: New file.
13159         * lib/unicase/u-prefix-context.h: New file.
13160         * lib/unicase/context.h: New file.
13161         * modules/unicase/u8-prefix-context: New file.
13162
13163         New module 'unicase/empty-prefix-context'.
13164         * lib/unicase/empty-prefix-context.c: New file.
13165         * modules/unicase/empty-prefix-context: New file.
13166
13167         New module 'unicase/ignorable'.
13168         * lib/unicase/ignorable.c: New file.
13169         * modules/unicase/ignorable: New file.
13170
13171         New module 'unicase/cased'.
13172         * lib/unicase/caseprop.h: New file.
13173         * lib/unicase/cased.c: New file.
13174         * modules/unicase/cased: New file.
13175
13176         New functions for case mapping of substrings.
13177         * lib/unicase.h (casing_prefix_context_t): New type.
13178         (unicase_empty_prefix_context): New variable.
13179         (u8_casing_prefix_context, u16_casing_prefix_context,
13180         u32_casing_prefix_context, u8_casing_prefixes_context,
13181         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13182         declarations.
13183         (casing_suffix_context_t): New type.
13184         (unicase_empty_suffix_context): New variable.
13185         (u8_casing_suffix_context, u16_casing_suffix_context,
13186         u32_casing_suffix_context, u8_casing_suffixes_context,
13187         u16_casing_suffixes_context, u32_casing_suffixes_context,
13188         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13189         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13190         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13191         declarations.
13192
13193 2009-06-28  Jim Meyering  <meyering@redhat.com>
13194
13195         boostrap: indent only with spaces
13196         * build-aux/bootstrap: Indent only with spaces, never TABs.
13197
13198         bootstrap: split long lines
13199         * build-aux/bootstrap: Keep line length < 80.
13200
13201         bootstrap: sync from coreutils
13202         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13203         just as autoreconf does.  Verify a list of prerequisite
13204         package-name,version-number pairs if defined in bootstrap.conf.
13205         Refer to README-prereq, if prerequisites are not satisfied.
13206
13207 2009-06-27  Eric Blake  <ebb9@byu.net>
13208
13209         tests: add test for bogus NULL definition
13210         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13211         * tests/test-stdlib.c: Likewise.
13212         * tests/test-string.c: Likewise.
13213         * tests/test-locale.c: Likewise.
13214         * tests/test-unistd.c: Likewise.
13215         * modules/stdio-tests (Depends-on): Add verify.
13216         * modules/stdlib-tests (Depends-on): Likewise.
13217         * modules/string-tests (Depends-on): Likewise.
13218         * modules/locale-tests (Depends-on): Likewise.
13219         * modules/unistd-tests (Depends-on): Likewise.
13220
13221 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13222
13223         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13224         self-explaining comment.
13225         * m4/selinux-selinux-h: Update serial.
13226         (gl_LIBSELINUX): New macro, adding a warning for missing development
13227         packages to code extracted from...
13228         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13229         Add warning for missing development packages here, too.
13230
13231 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13232
13233         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13234
13235 2009-06-25  Eric Blake  <ebb9@byu.net>
13236
13237         version-etc: fix regression
13238         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13239         gcc.
13240         (version_etc): Use it, to catch bugs with trailing NULL.
13241         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13242         (version_etc_va): Fix logic bug.
13243         * modules/version-etc-tests: Add test.
13244         * tests/test-version-etc.c: New file.
13245         * tests/test-version-etc.sh: Likewise.
13246
13247 2009-06-25  Sam Steingold  <sds@gnu.org>
13248
13249         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13250         mbtowc declaration.
13251
13252 2009-06-25  Eric Blake  <ebb9@byu.net>
13253
13254         fpurge: migrate into <stdio.h>
13255         * lib/fpurge.h: Delete...
13256         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13257         * lib/fpurge.c (fpurge): Change declaring header.
13258         * modules/fpurge (Files): Drop deleted file.
13259         (Depends-on): Add stdio.
13260         (configure.ac): Set witness.
13261         * modules/stdio (Makefile.am): Support fpurge macros.
13262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13264         * lib/fflush.c: Update client.
13265         * tests/test-fpurge.c: Likewise.
13266         * NEWS: Mention the change.
13267
13268 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13269
13270         * lib/argp-version-etc.c (program_authors): Add const
13271         qualifier.
13272         * lib/version-etc.c: Fix typos in the comments.
13273         * modules/argp-version-etc: Depends on version-etc.
13274
13275 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13276
13277         argp-version-etc: new module.
13278
13279         * lib/argp-version-etc.c: New file.
13280         * lib/argp-version-etc.h: New file.
13281         * modules/argp-version-etc: New file.
13282         * modules/argp-version-etc-tests: New file.
13283         * tests/test-argp-version-etc.c: New test.
13284         * tests/test-argp-version-etc-1.sh: New test.
13285
13286 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13287
13288         Provide additional interfaces and documentation for version-etc
13289         module.
13290
13291         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13292         interfaces.
13293         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13294         prototypes.
13295
13296 2009-06-24  Bruno Haible  <bruno@clisp.org>
13297
13298         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13299         HAVE_LIB${NAME} macro.
13300         Reported by Sam Steingold <sds@gnu.org>.
13301
13302 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13303
13304         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13305         needed.
13306
13307 2009-06-21  Bruno Haible  <bruno@clisp.org>
13308
13309         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13310         work.
13311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13312         together with LIB${NAME}, LTLIB${NAME}.
13313         Reported by Sam Steingold <sds@gnu.org>.
13314
13315 2009-06-20  Jim Meyering  <meyering@redhat.com>
13316
13317         tests: make sc_require_test_exit_idiom more generic
13318         * top/maint.mk (Exit_witness_file): New overridable variable.
13319         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13320         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13321
13322 2009-06-19  Jim Meyering  <meyering@redhat.com>
13323
13324         hash: reverse order of src/dst parameters in an internal interface
13325         * lib/hash.c (transfer_entries): Reverse order of parameters to
13326         put DST before SRC.  Adjust callers.
13327
13328         tests: test-hash: avoid wholesale duplication
13329         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13330         Instead, use a loop and add a single conditional.
13331
13332         tests: test-hash: allow seed selection via a command line argument
13333         * tests/test-hash.c (get_seed): New function.
13334         (main): Use it.
13335
13336 2009-06-19  Eric Blake  <ebb9@byu.net>
13337
13338         hash: avoid memory leak on allocation failure
13339         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13340         failure.  Factor repeated algorithm...
13341         (transfer_entries): ...into new helper routine.
13342         (hash_delete): React to hash_rehash return value.
13343
13344         hash: reduce memory pressure in hash_rehash no-op case
13345         * lib/hash.c (next_prime): Avoid overflow.
13346         (hash_initialize): Factor bucket size computation...
13347         (compute_bucket_size): ...into new helper function.
13348         (hash_rehash): Use new function and open coding to reduce memory
13349         pressure, and avoid a memory leak in USE_OBSTACK code.
13350         Reported by Jim Meyering.
13351
13352 2009-06-18  Eric Blake  <ebb9@byu.net>
13353
13354         hash: make rotation more obvious
13355         * modules/hash (Depends-on): Add bitrotate and stdint.
13356         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13357         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13358         (SIZE_MAX): Rely on headers for definition.
13359         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13360         (raw_hasher): Use rotr_sz.
13361         Suggested by Jim Meyering.
13362
13363         hash: fix memory leak in last patch
13364         * lib/hash.c (hash_rehash): Avoid memory leak.
13365
13366         hash: avoid no-op rehashing
13367         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13368
13369         hash: provide default callback functions
13370         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13371         (hash_initialize): Use them as defaults.
13372         * tests/test-hash.c (main): Test this.
13373
13374         hash: minor optimization
13375         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13376         when possible.
13377         (hash_initialize): Document this promise.
13378         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13379         * tests/test-hash.c (hash_compare_strings): Test this.
13380
13381 2009-06-18  Bruno Haible  <bruno@clisp.org>
13382
13383         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13384         going to be replaced anyway.
13385
13386 2009-06-18  Bruno Haible  <bruno@clisp.org>
13387
13388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13389         in one place.
13390         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13391         be replaced anyway.
13392
13393 2009-06-18  Eric Blake  <ebb9@byu.net>
13394
13395         hash: check for resize before insertion
13396         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13397         threshold before insertion, so that a pathological hash_rehash
13398         that fills every bucket can still trigger another rehash.
13399
13400 2009-06-18  Jim Meyering  <meyering@redhat.com>
13401
13402         hash-tests: add a loop around the small tests
13403         * tests/test-hash.c (main): Repeat small tests with selected
13404         small initial table sizes.
13405
13406 2009-06-17  Eric Blake  <ebb9@byu.net>
13407
13408         hash: minor cleanups
13409         * lib/hash.h (hash_entry): Make opaque, by moving...
13410         * lib/hash.c (hash_entry): ...here.
13411         (hash_insert): Clarify restrictions on what can be inserted.
13412         (hash_get_next): Clarify when it is safe to remove an element
13413         during traversal.
13414         (check_tuning): Skip verification when tuning is known safe.
13415         (hash_initialize): Clarify restrictions on tuning.
13416
13417 2009-06-17  Jim Meyering  <jim@meyering.net>
13418         and Eric Blake  <ebb9@byu.net>
13419
13420         hash-tests: new module
13421         * modules/hash-tests: New file.
13422         * tests/test-hash.c: New file.
13423
13424 2009-06-17  Eric Blake  <ebb9@byu.net>
13425
13426         strstr-simple: document new module
13427         * MODULES.html.sh: Document new module.
13428
13429         strstr, strcasestr: replace on platforms with broken memchr
13430         * modules/strstr: Split into...
13431         * modules/strstr-simple: ...new module that does not care about
13432         performance, but does care about glibc bug.
13433         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13434         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13435         if platform memchr is broken, per Debian bug 521737.
13436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13437         memchr.
13438         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13439         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13440         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13441         * modules/mountlist (Depends-on): Add strstr-simple.
13442         * modules/gen-uni-tables (Depends-on): Likewise.
13443         * modules/argz (Depends-on): Add strstr.
13444
13445 2009-06-17  Bruno Haible  <bruno@clisp.org>
13446
13447         * modules/posix_spawn-internal (Depends-on): Add errno.
13448
13449 2009-06-17  Bruno Haible  <bruno@clisp.org>
13450
13451         Define missing ESTALE on Interix 3.5.
13452         * lib/errno.in.h (ESTALE): Assign a value if missing.
13453         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13455         missing.
13456         * doc/posix-headers/errno.texi: Mention the Interix bug.
13457         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13458
13459 2009-06-15  Eric Blake  <ebb9@byu.net>
13460
13461         memchr, memchr2: add valgrind exception
13462         * lib/memchr.valgrind: New file.
13463         * lib/memchr2.valgrind: New file.
13464         * modules/memchr (Files): Distribute valgrind file.
13465         * modules/memchr2 (Files): Likewise.
13466
13467         docs: memchr is no longer obsolete
13468         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13469         * lib/string.in.h (memchr): Simplify logic.
13470
13471 2009-06-14  Jim Meyering  <meyering@redhat.com>
13472
13473         link-follow: fix the "checking..." message to not mention trailing slash
13474         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13475         never considered trailing slashes.
13476
13477 2009-06-14  Bruno Haible  <bruno@clisp.org>
13478
13479         * m4/memchr.m4: Mention also the bug on IA-64.
13480         * doc/posix-functions/memchr.texi: Likewise.
13481
13482 2009-06-12  Eric Blake  <ebb9@byu.net>
13483
13484         memchr: detect broken x86_64 and alpha implementations
13485         * modules/memchr-tests (Depends-on): Move mmap detection...
13486         * modules/memchr (Depends-on): ...here.
13487         (configure.ac): Set indicator.
13488         * lib/string.in.h (memchr): Declare replacement.
13489         * modules/string (Makefile.am): Trigger replacement.
13490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13491         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13492         bugs.
13493         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13494         * modules/getpagesize (License): Relax license.
13495
13496 2009-06-11  Bruno Haible  <bruno@clisp.org>
13497
13498         * lib/idpriv.h: Add more references.
13499
13500 2009-06-08  Bruno Haible  <bruno@clisp.org>
13501
13502         Tests for module 'idpriv-droptemp'.
13503         * modules/idpriv-droptemp-tests: New file.
13504         * tests/test-idpriv-droptemp.sh: New file.
13505         * tests/test-idpriv-droptemp.su.sh: New file.
13506         * tests/test-idpriv-droptemp.c: New file.
13507
13508         New module 'idpriv-droptemp'.
13509         * lib/idpriv-droptemp.c: New file.
13510         * modules/idpriv-droptemp: New file.
13511
13512 2009-06-08  Bruno Haible  <bruno@clisp.org>
13513
13514         Tests for module 'idpriv-drop'.
13515         * modules/idpriv-drop-tests: New file.
13516         * tests/test-idpriv-drop.sh: New file.
13517         * tests/test-idpriv-drop.su.sh: New file.
13518         * tests/test-idpriv-drop.c: New file.
13519
13520         New module 'idpriv-drop'.
13521         * lib/idpriv.h: New file.
13522         * lib-idpriv-drop.c: New file.
13523         * m4/idpriv.m4: New file.
13524         * modules/idpriv-drop: New file.
13525
13526 2009-06-08  Bruno Haible  <bruno@clisp.org>
13527
13528         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13535
13536 2009-06-08  Eric Blake  <ebb9@byu.net>
13537
13538         test-strstr: use memory fence, when possible
13539         * tests/test-strstr.c (main): Use memory fence, in order to be
13540         more likely to trigger Debian bug 521737.
13541         * modules/strstr-tests (Files): Pull in additional files.
13542
13543         memchr: no longer obsolete, for wider field testing
13544         * modules/memchr (Status, Notice): Delete, this module is no
13545         longer obsolete.
13546         * modules/vasnprintf (Depends-on): Add memchr.
13547
13548 2009-06-07  Jim Meyering  <meyering@redhat.com>
13549
13550         hash: declare some functions with the warn_unused_result attribute
13551         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13552
13553 2009-06-07  Bruno Haible  <bruno@clisp.org>
13554
13555         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13556         Reported by Eric Blake.
13557
13558 2009-06-06  Eric Blake  <ebb9@byu.net>
13559
13560         test-alignof: fix typo with long double
13561         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13562         compiler error.
13563
13564 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13565
13566         Escape non-texinfo { and }s.
13567         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13568         markup error.
13569
13570 2009-06-04  Jim Meyering  <meyering@redhat.com>
13571
13572         gitlog-to-changelog: don't infloop on an empty commit log
13573         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13574         Reported by Boris Petersen <transacid@centerim.org>.
13575
13576 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13577
13578         version-etc: extend for packagers
13579         Add three new configure options, intended for packagers:
13580           --with-packager="packager name"
13581           --with-packager-version="packager-specific version"
13582           --with-packager-bug-reports="packager bug reporting"
13583         An example with coreutils:
13584           $ ./configure \
13585             --with-packager=Gentoo \
13586             --with-packager-bug-report=http://bugs.gentoo.org/ \
13587             --with-packager-version="patchset 1.6"
13588           $ ./src/ls --version | head -n2
13589           ls (GNU coreutils) 7.1-dirty
13590           Packaged by Gentoo (patchset 1.6)
13591         Note that the bug reporting info via --help doesn't show up because
13592         coreutils uses its own custom emit_bug_reporting_address() implementation
13593         in src/system.h.  If it didn't, it'd look like:
13594           $ ./src/ls --help | tail -n4
13595           Report bugs to <bug-coreutils@gnu.org>.
13596           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13597           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13598           General help using GNU software: <http://www.gnu.org/gethelp/>.
13599         * lib/version-etc.c: Print new information, if provided.
13600         * m4/version-etc.m4: New file.
13601         * modules/version-etc (Files): Add m4/version-etc.m4.
13602         (configure.ac): Add gl_VERSION_ETC.
13603
13604 2009-05-31  Bruno Haible  <bruno@clisp.org>
13605
13606         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13607         and 'int64_t'.
13608         * modules/alignof-tests (Dependencies): Add stdint.
13609         Reported by Eric Blake.
13610
13611 2009-05-31  Bruno Haible  <bruno@clisp.org>
13612
13613         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13614         restriction due to compiler bugs.
13615         Reported by Eric Blake.
13616
13617 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13618             Bruno Haible  <bruno@clisp.org>
13619
13620         Fix test-alignof failure.
13621         * lib/alignof.h (alignof_slot): New macro.
13622         (alignof_type): New macro, with the same semantics as the previous
13623         'alignof'.
13624         (alignof): Alias to alignof_slot.
13625         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13626         check that the results are usable as constant expressions.
13627
13628 2009-05-31  Bruno Haible  <bruno@clisp.org>
13629
13630         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13631         * tests/test-memchr.c (main): Check that memchr does not read past the
13632         first occurrence of the byte.
13633         * tests/test-strstr.c (main): Update comment.
13634         Suggested by Eric Blake.
13635
13636 2009-05-30  Bruno Haible  <bruno@clisp.org>
13637
13638         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13639         detail how to use dumpbin.
13640         Reported by David Byron <dbyron@dbyron.com>.
13641
13642 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13643
13644         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13645
13646 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13647
13648         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13649
13650 2009-05-28  Bruno Haible  <bruno@clisp.org>
13651
13652         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13653         build-aux/ files.
13654
13655 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13656
13657         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13658
13659 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13660
13661         * gnulib-tool (sed_transform_main_lib_file)
13662         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13663         regexps.
13664
13665 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13666
13667         * tests/test-strstr.c: Add another self-test.
13668         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13669         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13670
13671 2009-05-23  Bruno Haible  <bruno@clisp.org>
13672
13673         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13674         change.
13675
13676 2009-05-21  Bruno Haible  <bruno@clisp.org>
13677
13678         Simplify use of mode_t varargs.
13679         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13680         uses 'mode_t' or 'int'.
13681         * lib/openat.c (openat): Likewise.
13682         * lib/open-safer.c (open_safer): Likewise.
13683         * m4/mode_t.m4: New file.
13684         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13685         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13686         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13687         * modules/open (Files): Add m4/mode_t.m4.
13688         * modules/openat (Files): Likewise.
13689         * modules/fcntl-safer (Files): Likewise.
13690         Suggested by Eric Blake.
13691
13692 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13693
13694         * doc/glibc-functions/fallocate.texi: New file.
13695         * doc/gnulib.texi: Include it.
13696
13697 2009-05-21  Eric Blake  <ebb9@byu.net>
13698             Bruno Haible  <bruno@clisp.org>
13699
13700         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13701         invocations.
13702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13703
13704 2009-05-21  Eric Blake  <ebb9@byu.net>
13705             Bruno Haible  <bruno@clisp.org>
13706
13707         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13708         include_next. Fix of 2008-11-20 commit.
13709         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13710         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13711         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13712         NEXT_MATH_H.
13713         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13714         instead of NEXT_MATH_H.
13715
13716 2009-05-21  Bruno Haible  <bruno@clisp.org>
13717
13718         Avoid redefinition warnings for SIZE_MAX.
13719         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13720         Reported by Simon Josefsson.
13721
13722 2009-05-21  Bruno Haible  <bruno@clisp.org>
13723
13724         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13725         AC_CACHE_VAL.
13726
13727 2009-05-20  Bruno Haible  <bruno@clisp.org>
13728
13729         Make zeroptr.h work on mingw.
13730         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13731         mprotect.
13732         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13733         * modules/memchr2-tests (configure.ac): Likewise.
13734         * modules/memcmp-tests (configure.ac): Likewise.
13735         * modules/memmem-tests (configure.ac): Likewise.
13736         * modules/memrchr-tests (configure.ac): Likewise.
13737         Reported by Simon Josefsson.
13738
13739 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13740
13741         * tests/test-glob.c: Include string.h for strcmp prototype.
13742
13743 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13744
13745         * modules/getdelim (Depends-on): Add explicit stdint, although it
13746         was implicitly already pulled in via realloc-posix.
13747         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13748
13749 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13750
13751         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13752         G. Christensen" <tgc@jupiterrise.com>.
13753         * m4/sys_socket_h.m4: Check for sa_family_t.
13754         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13755         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13756         * tests/test-sys_socket.c: Check that sa_family_t works.
13757
13758 2009-05-18  Eric Blake  <ebb9@byu.net>
13759
13760         maint.mk: allow gnulib_dir in VPATH build
13761         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13762
13763 2009-05-15  Jim Meyering  <meyering@redhat.com>
13764
13765         maint.mk: Give gnulib_dir a default definition.
13766         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13767         Thus, most packages no longer need to specify this variable in cfg.mk
13768
13769 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13770
13771         rename.m4: fix typos that would make non-mingw cross-configure fail
13772         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13773
13774 2009-05-13  Eric Blake  <ebb9@byu.net>
13775
13776         mmap-anon: avoid out-of-order autoconf expansion
13777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13778         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13779         * modules/memchr-tests (Depends-on): Add extensions.
13780         * modules/memchr2-tests (Depends-on): Add extensions.
13781         * modules/memcmp-tests (Depends-on): Add extensions.
13782         * modules/memmem-tests (Depends-on): Add extensions.
13783         * modules/memrchr-tests (Depends-on): Add extensions.
13784
13785 2009-05-13  Bruno Haible  <bruno@clisp.org>
13786
13787         Make some tests ISO C 99 compliant.
13788         * tests/zerosize-ptr.h: New file.
13789         * tests/test-memchr.c: Include zerosize-ptr.h.
13790         (main): Use a zero-size object pointer instead of NULL.
13791         * tests/test-memchr2.c: Include zerosize-ptr.h.
13792         (main): Use a zero-size object pointer instead of NULL.
13793         * tests/test-memcmp.c: Include zerosize-ptr.h.
13794         (main): Use a zero-size object pointer instead of NULL.
13795         * tests/test-memmem.c: Include zerosize-ptr.h.
13796         (main): Use a zero-size object pointer instead of NULL.
13797         * tests/test-memrchr.c: Include zerosize-ptr.h.
13798         (main): Use a zero-size object pointer instead of NULL.
13799         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13800         m4/mmap-anon.m4.
13801         (Depends-on): Add getpagesize.
13802         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13803         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13804         m4/mmap-anon.m4.
13805         (Depends-on): Add getpagesize.
13806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13807         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13808         m4/mmap-anon.m4.
13809         (Depends-on): Add getpagesize.
13810         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13811         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13812         m4/mmap-anon.m4.
13813         (Depends-on): Add getpagesize.
13814         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13815         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13816         m4/mmap-anon.m4.
13817         (Depends-on): Add getpagesize.
13818         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13819
13820 2009-05-12  Bruno Haible  <bruno@clisp.org>
13821
13822         Tests for module 'alignof'.
13823         * modules/alignof-tests: New file.
13824         * tests/test-alignof.c: New file.
13825
13826 2009-05-12  Bruno Haible  <bruno@clisp.org>
13827
13828         Fix alignof macro.
13829         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13830         vendor compilers that are always correct.
13831
13832 2009-05-12  Bruno Haible  <bruno@clisp.org>
13833
13834         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13836         not whether its fully works.
13837
13838 2009-05-12  Bruno Haible  <bruno@clisp.org>
13839
13840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13841
13842 2009-05-12  Jim Meyering  <meyering@redhat.com>
13843
13844         * top/maint.mk: Adjust backslash alignment.
13845
13846 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13847
13848         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13849
13850 2009-05-11  Eric Blake  <ebb9@byu.net>
13851
13852         argp: avoid undefined behavior
13853         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13854         macros.
13855
13856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13857
13858         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13859         user.name to prevent git commit from complaining.
13860
13861 2009-05-10  Bruno Haible  <bruno@clisp.org>
13862
13863         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13864         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13865         it rewrites every file name only once.
13866         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13867
13868 2009-05-08  Bruno Haible  <bruno@clisp.org>
13869
13870         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13871         instead of 'max'.
13872
13873 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13874
13875         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13876         sockaddr_storage test.
13877
13878 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13879
13880         * modules/sys_socket (Makefile.am): Substitute
13881         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13882         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13883         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13884         * tests/test-sys_socket.c: Check sockaddr_storage.
13885
13886 2009-05-08  Bruno Haible  <bruno@clisp.org>
13887
13888         New module 'alignof'.
13889         * lib/alignof.h: New file.
13890         * modules/alignof: New file.
13891
13892 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13893             Bruno Haible  <bruno@clisp.org>
13894
13895         Fix test-file-has-acl on FreeBSD.
13896         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13897         mask is implicitly added.
13898         * tests/test-file-has-acl.c: Include <signal.h>.
13899         (main): Terminate the test after 5 seconds.
13900         * modules/acl-tests (configure.ac): Check for alarm function.
13901
13902 2009-05-04  Bruno Haible  <bruno@clisp.org>
13903
13904         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13906         * modules/errno (configure.ac): Drop AC_REQUIRE.
13907         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13908         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13909
13910 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13911
13912         * modules/glob-tests: New module.
13913         * tests/test-glob.c: Add.
13914
13915 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13916
13917         * modules/fnmatch-tests: New module.
13918         * tests/test-fnmatch.c: Add.
13919
13920 2009-05-04  Eric Blake  <ebb9@byu.net>
13921
13922         maint: make the new no-submodule-changes rule VPATH-safe
13923         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13924
13925 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13926             Bruno Haible  <bruno@clisp.org>
13927
13928         acl: Fix infinite loop on FreeBSD.
13929         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13930         of return value from acl_get_entry.
13931         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13932         Likewise.
13933
13934 2009-05-03  Bruno Haible  <bruno@clisp.org>
13935
13936         * lib/acl-internal.h (acl_entries): Clarify return value.
13937         * lib/acl_entries.c (acl_entries): Likewise.
13938
13939 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13940
13941         Bug fix in acl module.
13942         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13943
13944 2009-05-03  Bruno Haible  <bruno@clisp.org>
13945
13946         Create gperf-generated file in the source dir, not in the build dir.
13947         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13948         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13949         * modules/unicase/locale-language (unicase/locale-languages.h):
13950         Likewise.
13951         * modules/unicase/special-casing (unicase/special-casing-table.h):
13952         Likewise.
13953         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13954         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13955         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13956         Reported by Ralf Wildenhues.
13957
13958 2009-05-03  Bruno Haible  <bruno@clisp.org>
13959
13960         * modules/fnmatch (Description, configure.ac): Taken from
13961         fnmatch-posix.
13962         * modules/fnmatch-posix: Turn into a symbolic reference to the
13963         'fnmatch' module, and deprecate.
13964         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13965
13966 2009-05-03  Bruno Haible  <bruno@clisp.org>
13967
13968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13969         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13970         Reported by Ralf Wildenhues.
13971
13972 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13973
13974         * m4/fnmatch.m4: Fix fnmatch re-define.
13975
13976 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13977
13978         priv-set: new module and tests; adapt write-any-file
13979         * lib/priv-set.c: New file.
13980         * lib/priv-set.h: New file.
13981         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13982         * lib/write-any-file.c: Simplify by using priv-set module.
13983         * m4/priv-set.m4: New file.
13984         * modules/priv-set: New file.
13985         * modules/unlinkdir: Add dependency on priv-set module.
13986         * modules/write-any-file: Likewise.
13987
13988         Tests for module 'priv-set'.
13989         * modules/priv-set-tests: New file.
13990         * tests/test-priv-set.c: New file.
13991
13992 2009-05-03  Jim Meyering  <meyering@redhat.com>
13993             Bruno Haible  <bruno@clisp.org>
13994
13995         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13996         use the converted UTF-8 variant of the name instead.
13997
13998 2009-05-03  Jim Meyering  <meyering@redhat.com>
13999
14000         tests: tighten some getdate tests
14001         * tests/test-getdate.c (main): Tighten tests: require equality,
14002         not just greater than.  Set TZ envvar to UTC0.
14003
14004 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14005
14006         getdate: correctly interpret "next monday" when run on a Monday
14007         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14008         that e.g., "next tues" (when run on a tuesday) results in a date
14009         that is one week in the future, and not today's date.
14010         I.e., add a week when the wday is the same as the current one.
14011         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14012         and earlier by Martin Bernreuther and Jan Minář.
14013         * tests/test-getdate.c (main): Check that "next DAY" is always in
14014         the future and that "last DAY" is always in the past.
14015
14016 2009-05-02  Jim Meyering  <meyering@redhat.com>
14017
14018         build: ensure that a release build fails when a submodule is unclean
14019         * top/maint.mk (no-submodule-changes): New rule.
14020         (alpha beta major): Depend on it.
14021
14022 2009-05-02  Bruno Haible  <bruno@clisp.org>
14023
14024         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14025         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14026         shell variable gl_fnmatch_required to detect which variant is
14027         requested.
14028         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14029         gl_FUNC_FNMATCH_POSIX.
14030         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14031         exclude fnmatch-posix.
14032
14033 2009-05-02  Bruno Haible  <bruno@clisp.org>
14034
14035         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14036         * modules/mbsrtowcs (License): Change to LGPLv2+.
14037         * modules/strnlen1 (License): Likewise.
14038         Reported by Simon Josefsson.
14039
14040 2009-05-02  Bruno Haible  <bruno@clisp.org>
14041
14042         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14043         "cross".
14044         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14045         gnulib-tool was called with option --source-base=lib.
14046
14047 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14048
14049         Use automake *-local hooks without commands, for extensibility.
14050         * modules/localcharset (Makefile.am): Rename install-exec-local
14051         rule to install-exec-localcharset, and make it a prerequisite of
14052         install-exec-local.  Likewise, rename the uninstall-local rule to
14053         uninstall-localcharset, and make it a prerequisite of the former.
14054
14055 2009-05-01  Bruno Haible  <bruno@clisp.org>
14056
14057         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14058         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14059         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14061         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14062         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14063         m4/locale-zh.m4, m4/codeset.m4.
14064
14065         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14066         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14067         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14068         m4/locale-zh.m4.
14069
14070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14071         REPLACE_WCRTOMB if mbstate_t must be replaced.
14072         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14073         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14074
14075 2009-05-01  Bruno Haible  <bruno@clisp.org>
14076
14077         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14078         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14079         dngettext, dcngettext, textdomain, bindtextdomain,
14080         bind_textdomain_codeset): Undefine before redefining.
14081
14082 2009-04-30  Bruno Haible  <bruno@clisp.org>
14083
14084         Fix bug introduced on 2009-04-25.
14085         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14086         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14087         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14088         is defined.
14089         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14090         is defined.
14091         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14092         is defined.
14093         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14094
14095 2009-04-28  Bruno Haible  <bruno@clisp.org>
14096
14097         Comment tweaks.
14098         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14099         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14100         * lib/unicase.h (u*_casexfrm): Likewise.
14101         Reported by Paolo Bonzini.
14102
14103 2009-04-28  Bruno Haible  <bruno@clisp.org>
14104
14105         Fix a compilation error.
14106         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14107         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14108         Reported by Jim Meyering.
14109
14110 2009-04-27  Bruno Haible  <bruno@clisp.org>
14111
14112         New module 'libunistring'.
14113         * modules/libunistring: New file.
14114         * m4/libunistring.m4: New file.
14115         * MODULES.html.sh (Unicode string functions): Add it.
14116
14117 2009-04-27  Eric Blake  <ebb9@byu.net>
14118
14119         maint.mk: allow package-specific header to provide <config.h>
14120         * top/maint.mk (sc_require_config_h): New variable.
14121         (sc_require_config_h, sc_require_config_h_first): Use it.
14122
14123 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14124
14125         * top/maint.mk (sc_avoid_if_before_free): Except
14126         useless-if-before-free script.
14127
14128 2009-04-27  Eric Blake  <ebb9@byu.net>
14129
14130         maintainer-makefile: depend on all required helper scripts
14131         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14132         useless-if-before-free.
14133         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14134         version, rather than assuming gnulib checkout is available.
14135         Reported by Simen Josefsson.
14136
14137 2009-04-26  Bruno Haible  <bruno@clisp.org>
14138
14139         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14141         "../" or "..".
14142
14143 2009-04-26  Bruno Haible  <bruno@clisp.org>
14144
14145         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14146         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14147         AC_LIB_HAVE_LINKFLAGS.
14148
14149 2009-04-26  Bruno Haible  <bruno@clisp.org>
14150
14151         Simplify calling convention of u*_conv_from_encoding.
14152         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14153         u32_conv_from_encoding): Expect a resultbuf argument and return the
14154         result directly as a pointer.
14155         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14156         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14157         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14158         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14159         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14160         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14161         Update.
14162         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14163         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14164         * lib/vasnprintf.c (VASNPRINTF): Update.
14165         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14166         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14167         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14168         * NEWS: Mention the change.
14169
14170 2009-04-26  Bruno Haible  <bruno@clisp.org>
14171
14172         Simplify calling convention of u*_conv_to_encoding.
14173         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14174         u32_conv_to_encoding): Expect a resultbuf argument and return the
14175         result directly as a pointer.
14176         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14177         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14178         freeing scaled_offsets if mem_iconveha failed.
14179         * lib/unicase/u-casexfrm.h (FUNC): Update.
14180         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14181         * lib/vasnprintf.c (VASNPRINTF): Update.
14182         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14183         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14184         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14185         * NEWS: Mention the change.
14186
14187 2009-04-26  Bruno Haible  <bruno@clisp.org>
14188
14189         Avoid test failures on AIX and OSF/1.
14190         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14191         malloc(0).
14192         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14193         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14194         Likewise.
14195         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14196         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14197         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14198         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14199         * doc/posix-functions/malloc.texi: Document the portability problem
14200         related to malloc(0).
14201
14202 2009-04-26  Bruno Haible  <bruno@clisp.org>
14203
14204         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14205         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14206         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14207
14208 2009-04-25  Bruno Haible  <bruno@clisp.org>
14209
14210         Avoid link error when creating a namespace clean library.
14211         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14212         as macro with arguments if already defined as an alias.
14213         * lib/signbitf.c (gl_signbitf): Don't undefine.
14214         * lib/signbitd.c (gl_signbitd): Don't undefine.
14215         * lib/signbitl.c (gl_signbitl): Don't undefine.
14216
14217 2009-04-25  Jim Meyering  <meyering@redhat.com>
14218
14219         vc-list-files: fix another quoting bug
14220         * build-aux/vc-list-files: Avoid sed backslash expansion
14221         of pathological directory names.
14222
14223 2009-04-25  Eric Blake  <ebb9@byu.net>
14224
14225         vc-list-files: fix shell quoting error
14226         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14227         timestamp.
14228
14229 2009-04-25  Jim Meyering  <meyering@redhat.com>
14230
14231         vc-list-files: restore lost functionality with subdir argument
14232         * build-aux/vc-list-files: When given a non-"." sub-directory
14233         argument, substitute the $dir/ prefix back onto each resulting name.
14234         Otherwise, coreutils' root_tests check would fail.
14235
14236 2009-04-24  Eric Blake  <ebb9@byu.net>
14237
14238         vc-list-files: ignore git symlinks
14239         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14240         than ls-files, to ignore git symlinks.
14241
14242         maint.mk: import improvements from m4
14243         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14244         (move_if_change): Delete unused macro.
14245         (news-date-check, vc-diff-check): Support VPATH builds.
14246         (announcement): Likewise.  Split --bootstrap-tools list...
14247         (boostrap-tools): ...into separate list, which can be overridden
14248         in cfg.mk.
14249         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14250         requiring dependency on useless-if-before-free module.
14251         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14252         Support VPATH builds.
14253
14254 2009-04-24  Jim Meyering  <meyering@redhat.com>
14255
14256         maint.mk: remove coreutils-specific rules and variables
14257         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14258         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14259         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14260
14261         maint.mk: remove obsolete rule
14262         * top/maint.mk (rel-check): Remove rule.
14263         (WGET, WGETFLAGS): Remove now-unused variables.
14264
14265 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14266
14267         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14268         consistency.
14269
14270         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14271         '$(PATH_SEPARATOR)' instead of ':'.
14272
14273 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14274
14275         * lib/getopt1.c (main): Use 'const' for static array.
14276
14277 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14278
14279         * top/maint.mk: Sync with coreutils.
14280         * NEWS: Explain incompatibilities.
14281
14282 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14283             Bruno Haible  <bruno@clisp.org>
14284
14285         Fix cross-compilation results.
14286         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14287         statement, as third argument of AC_TRY_RUN.
14288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14289         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14290         Likewise.
14291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14292         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14293         Likewise.
14294         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14296         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14297
14298 2009-04-20  Bruno Haible  <bruno@clisp.org>
14299
14300         Avoid test failure on mingw.
14301         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14302
14303 2009-04-20  Bruno Haible  <bruno@clisp.org>
14304
14305         Avoid compilation error on mingw.
14306         * modules/localename-tests (Depends-on): Add locale.
14307
14308 2009-04-19  Bruno Haible  <bruno@clisp.org>
14309
14310         Support for building a shared library on Windows platforms.
14311         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14312         (main): Test the presence of UNINORM_NFC here.
14313         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14314         (main): Test the presence of UNINORM_NFD here.
14315         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14316         (main): Test the presence of UNINORM_NFKC here.
14317         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14318         (main): Test the presence of UNINORM_NFKD here.
14319
14320 2009-04-19  Bruno Haible  <bruno@clisp.org>
14321
14322         Avoid a compiler warning.
14323         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14324         Change type of variable 'sequence'.
14325
14326 2009-04-19  Bruno Haible  <bruno@clisp.org>
14327
14328         * modules/configmake (Makefile.am): When the contents of configmake.h
14329         does not change, arrange to preserve its modification time.
14330
14331 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14332
14333         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14334         gettext domain.
14335
14336 2009-04-16  Jim Meyering  <meyering@redhat.com>
14337
14338         useless-if-before-free: improve conversion code
14339         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14340         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14341
14342 2009-04-14  Bruno Haible  <bruno@clisp.org>
14343
14344         * modules/fcntl (Depends-on): Add extensions.
14345         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14346
14347 2009-04-12  Ben Pfaff  <blp@gnu.org>
14348
14349         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14350         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14351
14352 2009-03-20  Ben Pfaff  <blp@gnu.org>
14353
14354         Make rename replace existing destinations on Windows.
14355         * m4/rename.m4: Add test for Mingw.
14356         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14357         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14358         * doc/posix-functions/rename.texi: Document.
14359
14360 2009-04-10  Bruno Haible  <bruno@clisp.org>
14361
14362         New include file "iconveh.h".
14363         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14364         * lib/striconveh.h: Include it.
14365         (enum iconv_ilseq_handler): Remove definition.
14366         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14367         striconveh.h.
14368         * lib/striconveha.c: Include striconveh.h.
14369         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14370         * modules/striconveh (Files): Add lib/iconveh.h.
14371         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14372         lib/striconveh.h.
14373
14374 2009-04-10  Bruno Haible  <bruno@clisp.org>
14375
14376         * lib/uniconv.h: Update comment.
14377
14378 2009-04-10  Bruno Haible  <bruno@clisp.org>
14379
14380         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14381         always.
14382         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14383         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14384         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14385         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14386         "unistring-notinline.h", so that the function gets defined always.
14387         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14388         * lib/unistr/u8-uctomb.c: Likewise.
14389         * lib/unistr/u16-mbtouc.c: Likewise.
14390         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14391         * lib/unistr/u16-uctomb.c: Likewise.
14392         * lib/unistr/u32-mbtouc.c: Likewise.
14393         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14394         * lib/unistr/u32-uctomb.c: Likewise.
14395
14396 2009-04-10  Bruno Haible  <bruno@clisp.org>
14397
14398         Mark 'utime' obsolete.
14399         * modules/utime (Status, Notice): New sections.
14400         Suggested by Jim Meyering.
14401
14402         Fix cross-compile guess for utime test.
14403         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14404         autoconf.
14405         * doc/posix-functions/utime.texi: Give more precisions.
14406         Reported by Jan <ipif@ymail.com>.
14407
14408 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14409
14410         filevercmp: correct today's change
14411         * lib/filevercmp.c: Also handle coreutils' test inputs.
14412         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14413
14414         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14415         for reporting it.
14416         * lib/filevercmp.c: Special handle for "", "." and "..".
14417         * tests/test-filevercmp.c: Enlarge the set suite.
14418
14419 2009-04-07  Jim Meyering  <meyering@redhat.com>
14420
14421         useless-if-before-free: show how to remove braced useless free, too
14422         * build-aux/useless-if-before-free: still only in a comment, though.
14423
14424 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14425
14426         maint.mk: import changes to syntax-check macros from coreutils
14427         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14428         Use them in the relevant macros.
14429
14430 2009-04-06  Bruno Haible  <bruno@clisp.org>
14431
14432         Fix unportable use of bit-fields.
14433         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14434         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14435         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14436
14437 2009-04-06  Bruno Haible  <bruno@clisp.org>
14438
14439         Avoid test failures on AIX and OSF/1.
14440         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14441         that malloc(0) = NULL.
14442         * tests/unicase/test-u8-tolower.c (check): Likewise.
14443         * tests/unicase/test-u8-totitle.c (check): Likewise.
14444         * tests/unicase/test-u8-toupper.c (check): Likewise.
14445         * tests/unicase/test-u16-casefold.c (check): Likewise.
14446         * tests/unicase/test-u16-tolower.c (check): Likewise.
14447         * tests/unicase/test-u16-totitle.c (check): Likewise.
14448         * tests/unicase/test-u16-toupper.c (check): Likewise.
14449         * tests/unicase/test-u32-casefold.c (check): Likewise.
14450         * tests/unicase/test-u32-tolower.c (check): Likewise.
14451         * tests/unicase/test-u32-totitle.c (check): Likewise.
14452         * tests/unicase/test-u32-toupper.c (check): Likewise.
14453         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14454         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14455         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14456         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14457         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14458         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14459         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14460         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14461         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14462         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14463         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14464         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14465
14466 2009-04-05  Bruno Haible  <bruno@clisp.org>
14467
14468         Work around an autoconf limitation.
14469         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14470         comment line if it would be longer than 3 KB.
14471
14472 2009-04-05  Bruno Haible  <bruno@clisp.org>
14473
14474         Avoid test failure with libiconv-1.13.
14475         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14476         of the expected test results.
14477
14478 2009-04-05  Bruno Haible  <bruno@clisp.org>
14479
14480         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14481         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14482         that it should be installed.
14483
14484 2009-04-05  Bruno Haible  <bruno@clisp.org>
14485
14486         * gnulib-tool: New option --copy-file.
14487         (func_usage): Document it.
14488         (func_dest_tmpfilename): Moved out of func_import.
14489         (func_add_file, func_update_file): New functions, extracted from
14490         func_import.
14491         (func_import): Update.
14492
14493 2009-04-05  Karl Berry  <karl@gnu.org>
14494
14495         * README: prominently mention gnulib-tool.
14496         Rearrange sections so getting the code is near the top.
14497
14498 2009-04-05  Bruno Haible  <bruno@clisp.org>
14499
14500         * lib/unicase.h: Mention u*_cmp2.
14501         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14502         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14503         * lib/unicase/ulc-casecmp.c: Likewise.
14504         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14505         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14506         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14507         unistr/u8-cmp.
14508         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14509         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14510         unistr/u16-cmp.
14511         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14512         unistr/u32-cmp.
14513
14514         * lib/uninorm.h: Mention u*_cmp2.
14515         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14516         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14517         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14518         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14519         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14520         unistr/u8-cmp.
14521         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14522         unistr/u16-cmp.
14523         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14524         unistr/u32-cmp.
14525
14526         New module 'unistr/u32-cmp2'.
14527         * lib/unistr/u32-cmp2.c: New file.
14528         * modules/unistr/u32-cmp2: New file.
14529
14530         New module 'unistr/u16-cmp2'.
14531         * lib/unistr/u16-cmp2.c: New file.
14532         * modules/unistr/u16-cmp2: New file.
14533
14534         New module 'unistr/u8-cmp2'.
14535         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14536         * lib/unistr/u8-cmp2.c: New file.
14537         * lib/unistr/u-cmp2.h: New file.
14538         * modules/unistr/u8-cmp2: New file.
14539
14540 2009-04-05  Bruno Haible  <bruno@clisp.org>
14541
14542         * lib/unictype.h (uc_property_is_valid): New macro.
14543         * tests/unictype/test-pr_byname.c (main): Use it.
14544
14545         * lib/unistr.h: Doc fixes.
14546         * lib/uniconv.h: Doc fixes.
14547         * lib/unictype.h: Doc fixes.
14548
14549 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14550
14551         Port coreutils 7.2 to Solaris 8.
14552
14553         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14554         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14555         for Solaris 8.  This is a bit of a hack, as it means it's the
14556         caller's responsibility to add -lnsl if needed, but most likely it
14557         won't be needed since only getaddrinfo uses this and getaddrinfo
14558         isn't needed on Solaris 8.
14559
14560         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14561         problem to Solaris 8 encountered with coreutils 7.2, which
14562         resulted in a message "fnmatch.c:292: warning: passing argument 4
14563         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14564         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14565
14566 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14567
14568         * m4/ld-version-script.m4: Add FIXME comment.
14569
14570 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14571
14572         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14573         SOVERSION variable.
14574
14575 2009-04-02  Bruno Haible  <bruno@clisp.org>
14576
14577         * Makefile (info, html, dvi, pdf): Combine the rules.
14578         Suggested by Jim Meyering.
14579
14580 2009-04-01  Bruno Haible  <bruno@clisp.org>
14581
14582         * Makefile (info, html, dvi, pdf): New targets.
14583         Reported by Reuben Thomas <rrt@sc3d.org>.
14584
14585 2009-04-01  Bruno Haible  <bruno@clisp.org>
14586
14587         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14588         can be put into PATH.
14589         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14590
14591 2009-04-01  Bruno Haible  <bruno@clisp.org>
14592
14593         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14594
14595 2009-04-01  Bruno Haible  <bruno@clisp.org>
14596
14597         Rename module 'visibility'.
14598         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14599         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14600         * doc/gnulib.texi: Update.
14601         * MODULES.html.sh (Misc): Update.
14602         * NEWS: Mention the change.
14603
14604 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14605
14606         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14607         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14608         Eric Blake <ebb9@byu.net> for review.
14609         * MODULES.html.sh: Add lib-msvc-compat.
14610         * doc/gnulib.texi: Link to new section.
14611         * m4/ld-output-def.m4: New file.
14612         * doc/ld-output-def.texi: New file.
14613
14614 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14615
14616         Rename ld-version-script to lib-symbol-versions.  Suggested by
14617         Bruno Haible <bruno@clisp.org>.
14618         * modules/ld-version-script: Renamed to lib-symbol-versions.
14619         * doc/ld-version-script.texi: Fix module name.
14620         * MODULES.html.sh: Add lib-symbol-versions.
14621
14622 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14623
14624         * modules/u64-tests: New file.
14625         * tests/test-u64.c: New file.
14626
14627 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14628
14629         * MODULES.html.sh: Mention u64.
14630         * modules/u64: New module.
14631         * modules/crypto/sha512: Depend on u64 module instead of providing
14632         u64.h.
14633
14634 2009-03-27  Eric Blake  <ebb9@byu.net>
14635
14636         test-strerror: make debugging EAI_SYSTEM easier
14637         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14638         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14639         failure was EAI_SYSTEM.
14640
14641 2009-03-25  Bruno Haible  <bruno@clisp.org>
14642
14643         Fix a problem with --enable-relocatable on Solaris 7.
14644         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14645         since 2008-02-24.
14646
14647 2009-03-25  Eric Blake  <ebb9@byu.net>
14648
14649         test-sockets: avoid gcc warning
14650         * tests/test-sockets.c (main): Silence compiler warning.
14651
14652 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14653
14654         New modules nproc, pthread, contributed by Glen Lenker.
14655
14656         * MODULES.html.sh: Add pthread, nproc.
14657         * lib/nproc.c: New file.
14658         * lib/nproc.h: New file.
14659         * lib/pthread.in.h: New file.
14660         * m4/pthread.m4: New file.
14661         * modules/nproc: New file.
14662         * modules/pthread: New file.
14663
14664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14665
14666         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14667         New variable.
14668
14669 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14670
14671         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14672         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14673         * tests/test-filevercmp.c: Add tests for backup suffixes.
14674
14675 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14676
14677         * modules/stdlib (Depends-on): Add stdint, needed when defining
14678         struct random_data on, for example, HP-UX 10.20.  Reported by
14679         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14680
14681 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14682
14683         * lib/readline.c (readline): Call fflush on stdout after printing
14684         prompt.
14685
14686 2009-03-20  Bruno Haible  <bruno@clisp.org>
14687
14688         Remove dependency from 'close' module to -lws2_32 on native Windows.
14689         * lib/close-hook.h: New file.
14690         * lib/close-hook.c: New file.
14691         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14692         w32sock.h.
14693         (_gl_close_fd_maybe_socket): Remove function.
14694         (rpl_close): Invoke execute_all_close_hooks instead of
14695         _gl_close_fd_maybe_socket.
14696         * lib/sockets.c: Include close-hook.h, w32sock.h.
14697         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14698         (close_sockets_hook): New variable.
14699         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14700         (gl_sockets_cleanup): Unregister it.
14701         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14702         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14703         * modules/close-hook: New file.
14704         * modules/close (Files): Remove lib/w32sock.h.
14705         (Depends-on): Add close-hook.
14706         (Link): Remove section.
14707         * modules/sockets (Files): Add lib/w32sock.h.
14708         (Depends-on): Add close-hook.
14709         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14710         invocation.
14711         * NEWS: Mention that LIB_CLOSE is gone.
14712
14713 2009-03-23  Eric Blake  <ebb9@byu.net>
14714
14715         signal-tests: test previous patch
14716         * tests/test-signal.c: New file.
14717         * modules/signal-tests: Likewise.
14718
14719         signal.h: always support 'volatile sig_atomic_t'
14720         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14721         (gl_SIGNAL_H_DEFAULTS): Add a default.
14722         * modules/signal (Makefile.am): Substitute if needed.
14723         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14724         users can blindly add volatile.
14725         * doc/posix-headers/signal.texi (signal.h): Document it.
14726         Reported by Matthew Woehlke.
14727
14728 2009-03-23  Jim Meyering  <meyering@redhat.com>
14729
14730         pathmax: PATH_MAX: use pathconf only when available
14731         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14732         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14733         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14734         This avoids a link failure in a PSP cross-compilation environment
14735         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14736
14737         * lib/vasnprintf.c (divide): Fix typo in comment.
14738
14739 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14740
14741         * gnulib-tool (func_filter_filelist): Fix comment.
14742
14743 2009-03-20  Bruno Haible  <bruno@clisp.org>
14744
14745         Make sockets.h self-contained.
14746         * lib/sockets.c: Include sockets.h first.
14747         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14748
14749 2009-03-19  Eric Blake  <ebb9@byu.net>
14750
14751         doc: mention more functions added in cygwin 1.7.0
14752         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14753         addition.
14754         * doc/posix-functions/log2f.texi: Likewise.
14755
14756 2009-03-19  Jim Meyering  <meyering@redhat.com>
14757
14758         fsusage: avoid syntax error due to statement-before-declaration
14759         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14760         after all declarations.  Reported by Matthew Woehlke in
14761         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14762
14763 2009-03-18  Eric Blake  <ebb9@byu.net>
14764
14765         build-aux/compile: sync from automake
14766         * build-aux/compile: New file, from automake.
14767         * config/srclist.txt: Mention build-aux/compile.
14768
14769 2009-03-17  Bruno Haible  <bruno@clisp.org>
14770
14771         * lib/git-merge-changelog.c: Fix typo in comment.
14772         Reported by Reuben Thomas <rrt@sc3d.org>.
14773
14774 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14775
14776         * m4/regex.m4: update and improve help for
14777         --without-included-regex.
14778
14779 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14780
14781         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14782         failure on missing include files.
14783
14784 2009-03-17  Eric Blake  <ebb9@byu.net>
14785
14786         doc: mention more functions added in cygwin 1.7.0
14787         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14788         addition.
14789         * doc/posix-functions/fwscanf.texi: Likewise.
14790         * doc/posix-functions/swprintf.texi: Likewise.
14791         * doc/posix-functions/swscanf.texi: Likewise.
14792         * doc/posix-functions/vfwprintf.texi: Likewise.
14793         * doc/posix-functions/vfwscanf.texi: Likewise.
14794         * doc/posix-functions/vswprintf.texi: Likewise.
14795         * doc/posix-functions/vswscanf.texi: Likewise.
14796         * doc/posix-functions/vwprintf.texi: Likewise.
14797         * doc/posix-functions/vwscanf.texi: Likewise.
14798         * doc/posix-functions/wcscasecmp.texi: Likewise.
14799         * doc/posix-functions/wcsdup.texi: Likewise.
14800         * doc/posix-functions/wcsftime.texi: Likewise.
14801         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14802         * doc/posix-functions/wprintf.texi: Likewise.
14803         * doc/posix-functions/wscanf.texi: Likewise.
14804         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14805
14806 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14807
14808         maint.mk: really add $(AM_MAKEFLAGS)
14809         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14810         was inadvertently omitted in the last commit.
14811         Spotted by Bruno Haible.
14812
14813         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14814         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14815         $(AM_MAKEFLAGS)' rather than plain `make'.
14816
14817         gnulib-tool: execute $MAKE not make
14818         * gnulib-tool: Default $MAKE to 'make'.
14819         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14820         than make.  Initialize $MAKE in the do-autobuild script.
14821
14822         gnulib-tool: use $MAKE not make in generated files
14823         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14824         make, in generated files.  Initialize $MAKE in the do-autobuild
14825         script.
14826
14827         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14828
14829         GNUmakefile: disable parallelism only for multiple, recursive targets
14830         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14831         additions in the Makefile.
14832         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14833         by Automake.
14834         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14835         are listed on the command line and at least one of them is
14836         listed in $(ALL_RECURSIVE_TARGETS).
14837
14838 2009-03-14  Bruno Haible  <bruno@clisp.org>
14839
14840         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14841         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14842         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14843         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14844         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14845         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14846         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14847         unistr/u8-uctomb.
14848         * modules/unistr/u8-strchr (Depends-on): Likewise.
14849         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14850         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14851         unistr/u16-uctomb.
14852         * modules/unistr/u16-strchr (Depends-on): Likewise.
14853         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14854
14855 2009-03-12  Bruno Haible  <bruno@clisp.org>
14856
14857         Work around select() bug on Interix 3.5.
14858         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14859         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14860         * m4/select.m4: New file.
14861         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14862         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14863         * modules/select (Files): Add m4/select.m4.
14864         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14865         * modules/nanosleep (Depends-on): Add select.
14866         * modules/poll (Depends-on): Likewise.
14867         * doc/posix-functions/select.texi: Mention the Interix bug.
14868         Reported by Markus Duft <mduft@gentoo.org>.
14869
14870         * lib/select.c: Renamed from lib/winsock-select.c.
14871         * modules/select (Files): Add lib/select.c, remove
14872         lib/winsock-select.c.
14873         (configure.ac): Update.
14874
14875 2009-03-12  Jim Meyering  <meyering@redhat.com>
14876
14877         avoid gcc warnings about unused macro definitions
14878         * lib/readtokens.c (STREQ): Remove unused definition.
14879         * lib/xmalloc.c (SIZE_MAX): Likewise.
14880         * lib/openat-die.c (N_): Likewise.
14881         * lib/mountlist.c (SIZE_MAX): Remove definition.
14882         Instead, include <stdint.h>.
14883         * lib/readutmp.c: Likewise.
14884         * modules/readutmp (Depends-on): Add stdint.
14885         * modules/mountlist (Depends-on): Add stdint.
14886         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14887
14888 2009-03-10  Bruno Haible  <bruno@clisp.org>
14889
14890         Tests for module 'mbmemcasecoll'.
14891         * modules/mbmemcasecoll-tests: New file.
14892         * tests/test-mbmemcasecoll1.sh: New file.
14893         * tests/test-mbmemcasecoll2.sh: New file.
14894         * tests/test-mbmemcasecoll3.sh: New file.
14895         * tests/test-mbmemcasecoll.c: New file.
14896
14897         New module 'mbmemcasecoll'.
14898         * lib/mbmemcasecoll.h: New file.
14899         * lib/mbmemcasecoll.c: New file.
14900         * modules/mbmemcasecoll: New file.
14901
14902         * tests/test-mbmemcasecmp.h: New file, extracted from
14903         tests/test-mbmemcasecmp.c.
14904         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14905         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14906         (main): Update.
14907         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14908
14909 2009-03-09  Bruno Haible  <bruno@clisp.org>
14910
14911         Tests for module 'mbmemcasecmp'.
14912         * modules/mbmemcasecmp-tests: New file.
14913         * tests/test-mbmemcasecmp1.sh: New file.
14914         * tests/test-mbmemcasecmp2.sh: New file.
14915         * tests/test-mbmemcasecmp3.sh: New file.
14916         * tests/test-mbmemcasecmp.c: New file.
14917
14918         New module 'mbmemcasecmp'.
14919         * lib/mbmemcasecmp.h: New file.
14920         * lib/mbmemcasecmp.c: New file.
14921         * modules/mbmemcasecmp: New file.
14922
14923 2009-03-09  Bruno Haible  <bruno@clisp.org>
14924
14925         Tests for module 'unicase/ulc-casecoll'.
14926         * modules/unicase/ulc-casecoll-tests: New file.
14927         * tests/unicase/test-ulc-casecoll1.sh: New file.
14928         * tests/unicase/test-ulc-casecoll2.sh: New file.
14929         * tests/unicase/test-ulc-casecoll.c: New file.
14930
14931         New module 'unicase/ulc-casecoll'.
14932         * lib/unicase.h (ulc_casecoll): New declaration.
14933         * lib/unicase/ulc-casecoll.c: New file.
14934         * modules/unicase/ulc-casecoll: New file.
14935
14936         New module 'unicase/ulc-casexfrm'.
14937         * lib/unicase.h (ulc_casexfrm): New declaration.
14938         * lib/unicase/ulc-casexfrm.c: New file.
14939         * modules/unicase/ulc-casexfrm: New file.
14940
14941 2009-03-09  Bruno Haible  <bruno@clisp.org>
14942
14943         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14944         invocations.
14945
14946         * m4/mbscasecmp.m4: Remove file.
14947         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14948         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14949
14950         * m4/mbscasestr.m4: Remove file.
14951         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14952         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14953
14954         * m4/mbschr.m4: Remove file.
14955         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14956         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14957
14958         * m4/mbscspn.m4: Remove file.
14959         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14960         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14961
14962         * m4/mbslen.m4: Remove file.
14963         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14964         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14965
14966         * m4/mbsncasecmp.m4: Remove file.
14967         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14968         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14969
14970         * m4/mbsnlen.m4: Remove file.
14971         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14972         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14973
14974         * m4/mbspbrk.m4: Remove file.
14975         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14976         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14977
14978         * m4/mbspcasecmp.m4: Remove file.
14979         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14980         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14981
14982         * m4/mbsrchr.m4: Remove file.
14983         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14984         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14985
14986         * m4/mbssep.m4: Remove file.
14987         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14988         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14989
14990         * m4/mbsspn.m4: Remove file.
14991         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14992         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14993
14994         * m4/mbsstr.m4: Remove file.
14995         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14996         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14997
14998         * m4/mbstok_r.m4: Remove file.
14999         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15000         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15001
15002         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15003
15004         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15005         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15006
15007         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15008
15009 2009-03-08  Bruno Haible  <bruno@clisp.org>
15010
15011         Tests for module 'unicase/ulc-casecmp'.
15012         * modules/unicase/ulc-casecmp-tests: New file.
15013         * tests/unicase/test-ulc-casecmp1.sh: New file.
15014         * tests/unicase/test-ulc-casecmp2.sh: New file.
15015         * tests/unicase/test-ulc-casecmp.c: New file.
15016
15017         New module 'unicase/ulc-casecmp'.
15018         * lib/unicase.h (ulc_casecmp): New declaration.
15019         * lib/unicase/ulc-casecmp.c: New file.
15020         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15021         'const SRC_UNIT *'.
15022         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15023         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15024         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15025         * modules/unicase/ulc-casecmp: New file.
15026
15027         Tests for module 'unicase/u32-is-cased'.
15028         * modules/unicase/u32-is-cased-tests: New file.
15029         * tests/unicase/test-u32-is-cased.c: New file.
15030
15031         Tests for module 'unicase/u16-is-cased'.
15032         * modules/unicase/u16-is-cased-tests: New file.
15033         * tests/unicase/test-u16-is-cased.c: New file.
15034
15035         Tests for module 'unicase/u8-is-cased'.
15036         * modules/unicase/u8-is-cased-tests: New file.
15037         * tests/unicase/test-u8-is-cased.c: New file.
15038         * tests/unicase/test-is-cased.h: New file.
15039
15040         New module 'unicase/u32-is-cased'.
15041         * lib/unicase/u32-is-cased.c: New file.
15042         * modules/unicase/u32-is-cased: New file.
15043
15044         New module 'unicase/u16-is-cased'.
15045         * lib/unicase/u16-is-cased.c: New file.
15046         * modules/unicase/u16-is-cased: New file.
15047
15048         New module 'unicase/u8-is-cased'.
15049         * lib/unicase/u8-is-cased.c: New file.
15050         * lib/unicase/u-is-cased.h: New file.
15051         * modules/unicase/u8-is-cased: New file.
15052
15053         Tests for module 'unicase/u32-is-casefolded'.
15054         * modules/unicase/u32-is-casefolded-tests: New file.
15055         * tests/unicase/test-u32-is-casefolded.c: New file.
15056
15057         Tests for module 'unicase/u16-is-casefolded'.
15058         * modules/unicase/u16-is-casefolded-tests: New file.
15059         * tests/unicase/test-u16-is-casefolded.c: New file.
15060
15061         Tests for module 'unicase/u8-is-casefolded'.
15062         * modules/unicase/u8-is-casefolded-tests: New file.
15063         * tests/unicase/test-u8-is-casefolded.c: New file.
15064         * tests/unicase/test-is-casefolded.h: New file.
15065
15066         New module 'unicase/u32-is-casefolded'.
15067         * lib/unicase/u32-is-casefolded.c: New file.
15068         * modules/unicase/u32-is-casefolded: New file.
15069
15070         New module 'unicase/u16-is-casefolded'.
15071         * lib/unicase/u16-is-casefolded.c: New file.
15072         * modules/unicase/u16-is-casefolded: New file.
15073
15074         New module 'unicase/u8-is-casefolded'.
15075         * lib/unicase/u8-is-casefolded.c: New file.
15076         * modules/unicase/u8-is-casefolded: New file.
15077
15078         Tests for module 'unicase/u32-is-titlecase'.
15079         * modules/unicase/u32-is-titlecase-tests: New file.
15080         * tests/unicase/test-u32-is-titlecase.c: New file.
15081
15082         Tests for module 'unicase/u16-is-titlecase'.
15083         * modules/unicase/u16-is-titlecase-tests: New file.
15084         * tests/unicase/test-u16-is-titlecase.c: New file.
15085
15086         Tests for module 'unicase/u8-is-titlecase'.
15087         * modules/unicase/u8-is-titlecase-tests: New file.
15088         * tests/unicase/test-u8-is-titlecase.c: New file.
15089         * tests/unicase/test-is-titlecase.h: New file.
15090
15091         New module 'unicase/u32-is-titlecase'.
15092         * lib/unicase/u32-is-titlecase.c: New file.
15093         * modules/unicase/u32-is-titlecase: New file.
15094
15095         New module 'unicase/u16-is-titlecase'.
15096         * lib/unicase/u16-is-titlecase.c: New file.
15097         * modules/unicase/u16-is-titlecase: New file.
15098
15099         New module 'unicase/u8-is-titlecase'.
15100         * lib/unicase/u8-is-titlecase.c: New file.
15101         * modules/unicase/u8-is-titlecase: New file.
15102
15103         Tests for module 'unicase/u32-is-lowercase'.
15104         * modules/unicase/u32-is-lowercase-tests: New file.
15105         * tests/unicase/test-u32-is-lowercase.c: New file.
15106
15107         Tests for module 'unicase/u16-is-lowercase'.
15108         * modules/unicase/u16-is-lowercase-tests: New file.
15109         * tests/unicase/test-u16-is-lowercase.c: New file.
15110
15111         Tests for module 'unicase/u8-is-lowercase'.
15112         * modules/unicase/u8-is-lowercase-tests: New file.
15113         * tests/unicase/test-u8-is-lowercase.c: New file.
15114         * tests/unicase/test-is-lowercase.h: New file.
15115
15116         New module 'unicase/u32-is-lowercase'.
15117         * lib/unicase/u32-is-lowercase.c: New file.
15118         * modules/unicase/u32-is-lowercase: New file.
15119
15120         New module 'unicase/u16-is-lowercase'.
15121         * lib/unicase/u16-is-lowercase.c: New file.
15122         * modules/unicase/u16-is-lowercase: New file.
15123
15124         New module 'unicase/u8-is-lowercase'.
15125         * lib/unicase/u8-is-lowercase.c: New file.
15126         * modules/unicase/u8-is-lowercase: New file.
15127
15128         Tests for module 'unicase/u32-is-uppercase'.
15129         * modules/unicase/u32-is-uppercase-tests: New file.
15130         * tests/unicase/test-u32-is-uppercase.c: New file.
15131
15132         Tests for module 'unicase/u16-is-uppercase'.
15133         * modules/unicase/u16-is-uppercase-tests: New file.
15134         * tests/unicase/test-u16-is-uppercase.c: New file.
15135
15136         Tests for module 'unicase/u8-is-uppercase'.
15137         * modules/unicase/u8-is-uppercase-tests: New file.
15138         * tests/unicase/test-u8-is-uppercase.c: New file.
15139         * tests/unicase/test-is-uppercase.h: New file.
15140
15141         New module 'unicase/u32-is-uppercase'.
15142         * lib/unicase/u32-is-uppercase.c: New file.
15143         * modules/unicase/u32-is-uppercase: New file.
15144
15145         New module 'unicase/u16-is-uppercase'.
15146         * lib/unicase/u16-is-uppercase.c: New file.
15147         * modules/unicase/u16-is-uppercase: New file.
15148
15149         New module 'unicase/u8-is-uppercase'.
15150         * lib/unicase/u8-is-uppercase.c: New file.
15151         * modules/unicase/u8-is-uppercase: New file.
15152
15153         New module 'unicase/u32-is-invariant'.
15154         * lib/unicase/u32-is-invariant.c: New file.
15155         * modules/unicase/u32-is-invariant: New file.
15156
15157         New module 'unicase/u16-is-invariant'.
15158         * lib/unicase/u16-is-invariant.c: New file.
15159         * modules/unicase/u16-is-invariant: New file.
15160
15161         New module 'unicase/u8-is-invariant'.
15162         * lib/unicase/u8-is-invariant.c: New file.
15163         * lib/unicase/invariant.h: New file.
15164         * lib/unicase/u-is-invariant.h: New file.
15165         * modules/unicase/u8-is-invariant: New file.
15166
15167         Tests for module 'unicase/u32-casecoll'.
15168         * modules/unicase/u32-casecoll-tests: New file.
15169         * tests/unicase/test-u32-casecoll.c: New file.
15170
15171         Tests for module 'unicase/u16-casecoll'.
15172         * modules/unicase/u16-casecoll-tests: New file.
15173         * tests/unicase/test-u16-casecoll.c: New file.
15174
15175         Tests for module 'unicase/u8-casecoll'.
15176         * modules/unicase/u8-casecoll-tests: New file.
15177         * tests/unicase/test-u8-casecoll.c: New file.
15178
15179         New module 'unicase/u32-casecoll'.
15180         * lib/unicase/u32-casecoll.c: New file.
15181         * modules/unicase/u32-casecoll: New file.
15182
15183         New module 'unicase/u16-casecoll'.
15184         * lib/unicase/u16-casecoll.c: New file.
15185         * modules/unicase/u16-casecoll: New file.
15186
15187         New module 'unicase/u8-casecoll'.
15188         * lib/unicase/u8-casecoll.c: New file.
15189         * lib/unicase/u-casecoll.h: New file.
15190         * modules/unicase/u8-casecoll: New file.
15191
15192         New module 'unicase/u32-casexfrm'.
15193         * lib/unicase/u32-casexfrm.c: New file.
15194         * modules/unicase/u32-casexfrm: New file.
15195
15196         New module 'unicase/u16-casexfrm'.
15197         * lib/unicase/u16-casexfrm.c: New file.
15198         * modules/unicase/u16-casexfrm: New file.
15199
15200         New module 'unicase/u8-casexfrm'.
15201         * lib/unicase/u8-casexfrm.c: New file.
15202         * lib/unicase/u-casexfrm.h: New file.
15203         * modules/unicase/u8-casexfrm: New file.
15204
15205         Tests for module 'unicase/u32-casecmp'.
15206         * modules/unicase/u32-casecmp-tests: New file.
15207         * tests/unicase/test-u32-casecmp.c: New file.
15208
15209         Tests for module 'unicase/u16-casecmp'.
15210         * modules/unicase/u16-casecmp-tests: New file.
15211         * tests/unicase/test-u16-casecmp.c: New file.
15212
15213         Tests for module 'unicase/u8-casecmp'.
15214         * modules/unicase/u8-casecmp-tests: New file.
15215         * tests/unicase/test-u8-casecmp.c: New file.
15216         * tests/unicase/test-casecmp.h: New file.
15217
15218         New module 'unicase/u32-casecmp'.
15219         * lib/unicase/u32-casecmp.c: New file.
15220         * modules/unicase/u32-casecmp: New file.
15221
15222         New module 'unicase/u16-casecmp'.
15223         * lib/unicase/u16-casecmp.c: New file.
15224         * modules/unicase/u16-casecmp: New file.
15225
15226         New module 'unicase/u8-casecmp'.
15227         * lib/unicase/u8-casecmp.c: New file.
15228         * lib/unicase/u-casecmp.h: New file.
15229         * modules/unicase/u8-casecmp: New file.
15230
15231         Tests for module 'unicase/u32-casefold'.
15232         * modules/unicase/u32-casefold-tests: New file.
15233         * tests/unicase/test-u32-casefold.c: New file.
15234
15235         Tests for module 'unicase/u16-casefold'.
15236         * modules/unicase/u16-casefold-tests: New file.
15237         * tests/unicase/test-u16-casefold.c: New file.
15238
15239         Tests for module 'unicase/u8-casefold'.
15240         * modules/unicase/u8-casefold-tests: New file.
15241         * tests/unicase/test-u8-casefold.c: New file.
15242
15243         New module 'unicase/u32-casefold'.
15244         * lib/unicase/u32-casefold.c: New file.
15245         * modules/unicase/u32-casefold: New file.
15246
15247         New module 'unicase/u16-casefold'.
15248         * lib/unicase/u16-casefold.c: New file.
15249         * modules/unicase/u16-casefold: New file.
15250
15251         New module 'unicase/u8-casefold'.
15252         * lib/unicase/u8-casefold.c: New file.
15253         * lib/unicase/u-casefold.h: New file.
15254         * modules/unicase/u8-casefold: New file.
15255
15256         New module 'unicase/tocasefold'.
15257         * lib/unicase/casefold.h: New file.
15258         * lib/unicase/tocasefold.c: New file.
15259         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15260         * modules/unicase/tocasefold: New file.
15261
15262         Tests for module 'unicase/u32-totitle'.
15263         * modules/unicase/u32-totitle-tests: New file.
15264         * tests/unicase/test-u32-totitle.c: New file.
15265
15266         Tests for module 'unicase/u16-totitle'.
15267         * modules/unicase/u16-totitle-tests: New file.
15268         * tests/unicase/test-u16-totitle.c: New file.
15269
15270         Tests for module 'unicase/u8-totitle'.
15271         * modules/unicase/u8-totitle-tests: New file.
15272         * tests/unicase/test-u8-totitle.c: New file.
15273
15274         New module 'unicase/u32-totitle'.
15275         * lib/unicase/u32-totitle.c: New file.
15276         * modules/unicase/u32-totitle: New file.
15277
15278         New module 'unicase/u16-totitle'.
15279         * lib/unicase/u16-totitle.c: New file.
15280         * modules/unicase/u16-totitle: New file.
15281
15282         New module 'unicase/u8-totitle'.
15283         * lib/unicase/u8-totitle.c: New file.
15284         * lib/unicase/u-totitle.h: New file.
15285         * modules/unicase/u8-totitle: New file.
15286
15287         Tests for module 'unicase/u32-tolower'.
15288         * modules/unicase/u32-tolower-tests: New file.
15289         * tests/unicase/test-u32-tolower.c: New file.
15290
15291         Tests for module 'unicase/u16-tolower'.
15292         * modules/unicase/u16-tolower-tests: New file.
15293         * tests/unicase/test-u16-tolower.c: New file.
15294
15295         Tests for module 'unicase/u8-tolower'.
15296         * modules/unicase/u8-tolower-tests: New file.
15297         * tests/unicase/test-u8-tolower.c: New file.
15298
15299         New module 'unicase/u32-tolower'.
15300         * lib/unicase/u32-tolower.c: New file.
15301         * modules/unicase/u32-tolower: New file.
15302
15303         New module 'unicase/u16-tolower'.
15304         * lib/unicase/u16-tolower.c: New file.
15305         * modules/unicase/u16-tolower: New file.
15306
15307         New module 'unicase/u8-tolower'.
15308         * lib/unicase/u8-tolower.c: New file.
15309         * modules/unicase/u8-tolower: New file.
15310
15311         Tests for module 'unicase/u32-toupper'.
15312         * modules/unicase/u32-toupper-tests: New file.
15313         * tests/unicase/test-u32-toupper.c: New file.
15314
15315         Tests for module 'unicase/u16-toupper'.
15316         * modules/unicase/u16-toupper-tests: New file.
15317         * tests/unicase/test-u16-toupper.c: New file.
15318
15319         Tests for module 'unicase/u8-toupper'.
15320         * modules/unicase/u8-toupper-tests: New file.
15321         * tests/unicase/test-u8-toupper.c: New file.
15322
15323         New module 'unicase/u32-toupper'.
15324         * lib/unicase/u32-toupper.c: New file.
15325         * modules/unicase/u32-toupper: New file.
15326
15327         New module 'unicase/u16-toupper'.
15328         * lib/unicase/u16-toupper.c: New file.
15329         * modules/unicase/u16-toupper: New file.
15330
15331         New module 'unicase/u8-toupper'.
15332         * lib/unicase/u8-toupper.c: New file.
15333         * modules/unicase/u8-toupper: New file.
15334
15335         New module 'unicase/u32-casemap'.
15336         * lib/unicase/u32-casemap.c: New file.
15337         * modules/unicase/u32-casemap: New file.
15338
15339         New module 'unicase/u16-casemap'.
15340         * lib/unicase/u16-casemap.c: New file.
15341         * modules/unicase/u16-casemap: New file.
15342
15343         New module 'unicase/u8-casemap'.
15344         * lib/unicase/unicasemap.h: New file.
15345         * lib/unicase/u8-casemap.c: New file.
15346         * lib/unicase/u-casemap.h: New file.
15347         * modules/unicase/u8-casemap: New file.
15348
15349         New module 'unicase/special-casing'.
15350         * lib/unicase/special-casing.h: New file.
15351         * lib/unicase/special-casing.c: New file.
15352         * lib/unicase/special-casing-table.gperf: New file, generated by
15353         gen-uni-tables.c.
15354         * modules/unicase/special-casing: New file.
15355
15356         Tests for module 'unicase/locale-language'.
15357         * modules/unicase/locale-language-tests: New file.
15358         * tests/unicase/test-locale-language.sh: New file.
15359         * tests/unicase/test-locale-language.c: New file.
15360
15361         New module 'unicase/locale-language'.
15362         * lib/unicase/locale-language.c: New file.
15363         * lib/unicase/locale-languages.gperf: New file.
15364         * modules/unicase/locale-language: New file.
15365
15366         Generate more tables for case conversion and case folding.
15367         * lib/gen-uni-tables.c (SCC_*): New enum items.
15368         (struct special_casing_rule): New type.
15369         (casing_rules, num_casing_rules, allocated_casing_rules): New
15370         variables.
15371         (add_casing_rule, fill_casing_rules): New functions.
15372         (struct casefold_rule): New type.
15373         (casefolding_rules, num_casefolding_rules,
15374         allocated_casefolding_rules): New variables.
15375         (fill_casefolding_rules): New function.
15376         (unicode_casefold): New variable.
15377         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15378         sort_casing_rules, output_casing_rules): New functions.
15379         (main): Accept to more arguments: SpecialCasing.txt and
15380         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15381         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15382         Output mapping for casefolding.
15383
15384         * lib/unicase.h: Include stdbool.h, uninorm.h.
15385         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15386         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15387         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15388         arguments.
15389         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15390         resultp arguments.
15391         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15392         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15393         resultp arguments.
15394         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15395         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15396         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15397         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15398         declarations.
15399         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15400
15401 2009-03-08  Bruno Haible  <bruno@clisp.org>
15402
15403         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15404         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15405         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15406         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15407
15408 2009-03-07  Bruno Haible  <bruno@clisp.org>
15409
15410         Adjust u*_normcmp, u*_normcoll API.
15411         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15412         u16_normcoll, u32_normcoll): Change failure conventions.
15413         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15414         errno and return -1.
15415         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15416
15417 2009-03-07  Bruno Haible  <bruno@clisp.org>
15418
15419         Tests for module 'uninorm/u32-normcoll'.
15420         * modules/uninorm/u32-normcoll-tests: New file.
15421         * tests/uninorm/test-u32-normcoll.c: New file.
15422
15423         Tests for module 'uninorm/u16-normcoll'.
15424         * modules/uninorm/u16-normcoll-tests: New file.
15425         * tests/uninorm/test-u16-normcoll.c: New file.
15426
15427         Tests for module 'uninorm/u8-normcoll'.
15428         * modules/uninorm/u8-normcoll-tests: New file.
15429         * tests/uninorm/test-u8-normcoll.c: New file.
15430
15431 2009-03-07  Bruno Haible  <bruno@clisp.org>
15432
15433         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15434         tests/uninorm/test-u32-normcmp.c.
15435         * tests/uninorm/test-u32-normcmp.c: Include it.
15436         (test_nonascii): New function, extracted from main. Add some more
15437         tests.
15438         (main): Invoke test_ascii and test_nonascii.
15439         * modules/uninorm/u32-normcmp-tests (Files): Add
15440         tests/uninorm/test-u32-normcmp.h.
15441         (Depends-on): Remove uninorm/u32-normcmp.
15442
15443         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15444         tests/uninorm/test-u16-normcmp.c.
15445         * tests/uninorm/test-u16-normcmp.c: Include it.
15446         (test_nonascii): New function, extracted from main. Add some more
15447         tests.
15448         (main): Invoke test_ascii and test_nonascii.
15449         * modules/uninorm/u16-normcmp-tests (Files): Add
15450         tests/uninorm/test-u16-normcmp.h.
15451         (Depends-on): Remove uninorm/u16-normcmp.
15452
15453         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15454         tests/uninorm/test-u8-normcmp.c.
15455         * tests/uninorm/test-u8-normcmp.c: Include it.
15456         (test_nonascii): New function, extracted from main. Add some more
15457         tests.
15458         (main): Invoke test_ascii and test_nonascii.
15459         * modules/uninorm/u8-normcmp-tests (Files): Add
15460         tests/uninorm/test-u8-normcmp.h.
15461         (Depends-on): Remove uninorm/u8-normcmp.
15462
15463 2009-03-07  Bruno Haible  <bruno@clisp.org>
15464
15465         New module 'uninorm/u32-normcoll'.
15466         * lib/uninorm/u32-normcoll.c: New file.
15467         * modules/uninorm/u32-normcoll: New file.
15468
15469         New module 'uninorm/u16-normcoll'.
15470         * lib/uninorm/u16-normcoll.c: New file.
15471         * modules/uninorm/u16-normcoll: New file.
15472
15473         New module 'uninorm/u8-normcoll'.
15474         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15475         declarations.
15476         * lib/uninorm/u8-normcoll.c: New file.
15477         * lib/uninorm/u-normcoll.h: New file.
15478         * modules/uninorm/u8-normcoll: New file.
15479
15480         New module 'uninorm/u32-normxfrm'.
15481         * lib/uninorm/u32-normxfrm.c: New file.
15482         * modules/uninorm/u32-normxfrm: New file.
15483
15484         New module 'uninorm/u16-normxfrm'.
15485         * lib/uninorm/u16-normxfrm.c: New file.
15486         * modules/uninorm/u16-normxfrm: New file.
15487
15488         New module 'uninorm/u8-normxfrm'.
15489         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15490         declarations.
15491         * lib/uninorm/u8-normxfrm.c: New file.
15492         * lib/uninorm/u-normxfrm.h: New file.
15493         * modules/uninorm/u8-normxfrm: New file.
15494
15495 2009-03-07  Bruno Haible  <bruno@clisp.org>
15496
15497         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15498         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15499         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15500
15501 2009-03-07  Bruno Haible  <bruno@clisp.org>
15502
15503         New module 'memxfrm'.
15504         * lib/memxfrm.h: New file.
15505         * lib/memxfrm.c: New file.
15506         * modules/memxfrm: New file.
15507
15508 2009-03-07  Bruno Haible  <bruno@clisp.org>
15509
15510         New module 'memcmp2'.
15511         * lib/memcmp2.h: New file.
15512         * lib/memcmp2.c: New file.
15513         * modules/memcmp2: New file.
15514
15515 2009-03-07  Bruno Haible  <bruno@clisp.org>
15516
15517         Tests for module 'uninorm/decomposing-form'.
15518         * modules/uninorm/decomposing-form-tests: New file.
15519         * tests/uninorm/test-decomposing-form.c: New file.
15520
15521         New module 'uninorm/decomposing-form'.
15522         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15523         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15524         Add 'decomposing_variant' field.
15525         * lib/uninorm/decomposing-form.c: New file.
15526         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15527         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15528         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15529         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15530         * modules/uninorm/decomposing-form: New file.
15531         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15532         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15533
15534 2009-03-07  Bruno Haible  <bruno@clisp.org>
15535
15536         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15537         strings.
15538
15539 2009-03-06  Bruno Haible  <bruno@clisp.org>
15540
15541         Tests for module 'uninorm/u32-normcmp'.
15542         * tests/uninorm/test-u32-normcmp.c: New file.
15543         * modules/uninorm/u32-normcmp-tests: New file.
15544
15545         Tests for module 'uninorm/u16-normcmp'.
15546         * tests/uninorm/test-u16-normcmp.c: New file.
15547         * modules/uninorm/u16-normcmp-tests: New file.
15548
15549         Tests for module 'uninorm/u8-normcmp'.
15550         * tests/uninorm/test-u8-normcmp.c: New file.
15551         * modules/uninorm/u8-normcmp-tests: New file.
15552
15553         New module 'uninorm/u32-normcmp'.
15554         * lib/uninorm/u32-normcmp.c: New file.
15555         * modules/uninorm/u32-normcmp: New file.
15556
15557         New module 'uninorm/u16-normcmp'.
15558         * lib/uninorm/u16-normcmp.c: New file.
15559         * modules/uninorm/u16-normcmp: New file.
15560
15561         New module 'uninorm/u8-normcmp'.
15562         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15563         declarations.
15564         * lib/uninorm/u8-normcmp.c: New file.
15565         * lib/uninorm/u-normcmp.h: New file.
15566         * modules/uninorm/u8-normcmp: New file.
15567
15568 2009-03-06  Bruno Haible  <bruno@clisp.org>
15569
15570         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15571         Reported by Eric Blake.
15572
15573 2009-03-06  Eric Blake  <ebb9@byu.net>
15574             Bruno Haible  <bruno@clisp.org>
15575
15576         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15577         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15578         condition.
15579         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15580         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15581         condition.
15582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15583
15584 2009-03-06  Eric Blake  <ebb9@byu.net>
15585
15586         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15587         to avoid compiler warnings.
15588         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15589
15590 2009-03-05  Bruno Haible  <bruno@clisp.org>
15591
15592         * tests/test-ftell.c (main): Disable test beyond end of file on
15593         FreeMiNT.
15594         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15595
15596 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15597
15598         * lib/filevercmp.c: Move hidden files up in ordering.
15599         * tests/test-filevercmp.c: Add tests for hidden files.
15600
15601 2009-03-04  Bruno Haible  <bruno@clisp.org>
15602
15603         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15604         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15605         AM_CFLAGS.
15606         Reported by Simon Josefsson.
15607
15608 2009-03-03  Bruno Haible  <bruno@clisp.org>
15609
15610         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15611         Reported by Simon Josefsson.
15612
15613         * doc/ld-version-script.texi: Update node reference.
15614
15615 2009-03-03  Bruno Haible  <bruno@clisp.org>
15616
15617         * modules/visibility (License): Change to 'unlimited'.
15618         Suggested by Simon Josefsson.
15619
15620 2009-03-03  Jim Meyering  <meyering@redhat.com>
15621
15622         unlinkdir: cannot_unlink_dir may modify process state
15623         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15624         it's neither thread-safe nor appropriate for use in a library.
15625
15626 2009-03-03  Eric Blake  <ebb9@byu.net>
15627
15628         test-closein: silence test under Darwin
15629         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15630         care if it dies from EPIPE or EBADF.
15631
15632 2009-03-03  Bruno Haible  <bruno@clisp.org>
15633
15634         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15635         earlier.
15636         * doc/visibility.texi: Fix @node and @section.
15637
15638 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15639
15640         * doc/gnulib.texi: Link to sections for ld version script and
15641         visibility.
15642         * doc/visibility.texi: Add @node and @section.
15643         * modules/ld-version-script: New module.
15644         * m4/ld-version-script.m4: New file.
15645         * doc/ld-version-script.texi: New file.
15646
15647 2009-03-02  David Lutterkort  <lutter@redhat.com>
15648
15649         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15651
15652 2009-03-02  Bruno Haible  <bruno@clisp.org>
15653
15654         * doc/visibility.texi: Mention libtool's -export-symbols option.
15655
15656 2009-03-02  Jim Meyering  <meyering@redhat.com>
15657
15658         announce-gen: new option: --no-print-checksums
15659         * build-aux/announce-gen (usage): Describe it.
15660         (print_checksums): Print a newline here, not in the [*] footnote.
15661         (main): Honor it.
15662
15663 2009-03-01  Bruno Haible  <bruno@clisp.org>
15664
15665         Use socklen_t in the native Windows replacements prototypes.
15666         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15667         instead of 'int'.
15668         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15669         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15670         * modules/getsockopt (Depends-on): Add socklen.
15671         * modules/setsockopt (Depends-on): Add socklen.
15672
15673 2009-03-01  Bruno Haible  <bruno@clisp.org>
15674
15675         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15676         least 4.2.
15677
15678 2009-03-01  Eric Blake  <ebb9@byu.net>
15679             Bruno Haible  <bruno@clisp.org>
15680
15681         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15682         error messages.
15683         * lib/wait-process.c (wait_subprocess): Omit error message about
15684         deadly signal sent to the child of termsigp != NULL.
15685
15686 2009-03-01  Eric Blake  <ebb9@byu.net>
15687
15688         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15689
15690 2009-03-01  Bruno Haible  <bruno@clisp.org>
15691
15692         Avoid a gcc warning.
15693         * tests/test-sched.c (b): Make global.
15694         Reported by Eric Blake.
15695
15696 2009-01-19  Martin Lambers  <marlam@marlam.de>
15697
15698         Provide POSIX semantics for socket timeout options on W32.
15699         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15700         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15701         * modules/setsockopt: Depend on sys_time module for struct timeval.
15702         * modules/getsockopt: Depend on sys_time module for struct timeval.
15703
15704 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15705
15706         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15707         __USE_GNU, for consistency with netdb.in.h.
15708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15709
15710 2009-03-01  Bruno Haible  <bruno@clisp.org>
15711
15712         More support for FreeMiNT.
15713         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15715
15716 2009-03-01  Bruno Haible  <bruno@clisp.org>
15717
15718         More support for FreeMiNT.
15719         * lib/fpurge.c (fpurge): Correct last commit.
15720         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15721
15722 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15723
15724         Fix unportable awk script in vc-list-files.
15725         * build-aux/vc-list-files: In the replacement awk script, use
15726         substr with a second argument of 1, not zero.
15727         Report by Simon Josefsson.
15728
15729 2009-02-28  Bruno Haible  <bruno@clisp.org>
15730
15731         More support for FreeMiNT.
15732         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15733         to FreeMiNT today.
15734         * lib/fwriting.c (fwriting): Likewise.
15735         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15736
15737 2009-02-28  Bruno Haible  <bruno@clisp.org>
15738
15739         * tests/test-freadseek.c (main): Disable test beyond end of file on
15740         FreeMiNT.
15741         * tests/test-ftello.c (main): Likewise.
15742         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15743
15744 2009-02-28  Bruno Haible  <bruno@clisp.org>
15745
15746         Add tentative support for FreeMiNT.
15747         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15748         * lib/fpurge.c (fpurge): Likewise.
15749         * lib/freadable.c (freadable): Likewise.
15750         * lib/freading.c (freading): Likewise.
15751         * lib/freadptr.c (freadptr): Likewise.
15752         * lib/freadseek.c (freadptrinc): Likewise.
15753         * lib/fseeko.c (rpl_fseeko): Likewise.
15754         * lib/fseterr.c (fseterr): Likewise.
15755         * lib/fwritable.c (fwritable): Likewise.
15756         * lib/fwriting.c (fwriting): Likewise.
15757         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15758         Hourihane.
15759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15760
15761 2009-02-28  Bruno Haible  <bruno@clisp.org>
15762
15763         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15764         SIGCHLD.
15765         Reported by Jim Meyering.
15766
15767 2009-02-28  Bruno Haible  <bruno@clisp.org>
15768
15769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15770         Mention the results of these tests on various platforms.
15771         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15772         order.
15773         * doc/posix-functions/printf.texi: Likewise.
15774         * doc/posix-functions/snprintf.texi: Likewise.
15775         * doc/posix-functions/sprintf.texi: Likewise.
15776         * doc/posix-functions/vfprintf.texi: Likewise.
15777         * doc/posix-functions/vprintf.texi: Likewise.
15778         * doc/posix-functions/vsnprintf.texi: Likewise.
15779         * doc/posix-functions/vsprintf.texi: Likewise.
15780         * doc/glibc-functions/obstack_printf.texi: Likewise.
15781         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15782
15783 2009-02-28  Bruno Haible  <bruno@clisp.org>
15784
15785         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15786         Reported by Loïc Minier <lool@dooz.org>.
15787
15788 2009-02-27  Bruno Haible  <bruno@clisp.org>
15789
15790         * gnulib-tool (func_import): Make the sed expression used to create the
15791         sed script for updating the .gitignore file POSIX compliant.
15792         Reported by Eric Blake.
15793
15794 2009-02-27  Bruno Haible  <bruno@clisp.org>
15795
15796         * gnulib-tool (sed): Don't alias as "sed --posix".
15797         Reported by Eric Blake.
15798
15799 2009-02-27  Bruno Haible  <bruno@clisp.org>
15800
15801         Avoid test link errors.
15802         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15803         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15804         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15805         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15807
15808 2009-02-27  Bruno Haible  <bruno@clisp.org>
15809
15810         Avoid spurious "(cached)" in configure output.
15811         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15812         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15813         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15814         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15816         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15817         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15818         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15819         Reported by Eric Blake.
15820
15821 2009-02-27  Eric Blake  <ebb9@byu.net>
15822
15823         printf: fix regression in previous patch
15824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15825
15826 2009-02-27  Bruno Haible  <bruno@clisp.org>
15827
15828         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15829         value.
15830         * lib/stdint.in.h: Likewise.
15831         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15832
15833 2009-02-27  Eric Blake  <ebb9@byu.net>
15834
15835         doc: mention more functions added in cygwin 1.7.0
15836         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15837         addition.
15838         * doc/posix-functions/open_wmemstream.texi: Likewise.
15839         * doc/posix-functions/wcsnlen.texi: Likewise.
15840         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15841         * doc/posix-functions/wcstod.texi: Likewise.
15842         * doc/posix-functions/wcstof.texi: Likewise.
15843         * doc/posix-functions/wcstoimax.texi: Likewise.
15844         * doc/posix-functions/wcstok.texi: Likewise.
15845         * doc/posix-functions/wcstoumax.texi: Likewise.
15846
15847         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15849         * doc/posix-functions/fprintf.texi: Update.
15850         * doc/posix-functions/printf.texi: Update.
15851         * doc/posix-functions/snprintf.texi: Update.
15852         * doc/posix-functions/sprintf.texi: Update.
15853         * doc/posix-functions/vfprintf.texi: Update.
15854         * doc/posix-functions/vprintf.texi: Update.
15855         * doc/posix-functions/vsnprintf.texi: Update.
15856         * doc/posix-functions/vsprintf.texi: Update.
15857         * doc/glibc-functions/obstack_printf.texi: Update.
15858         * doc/glibc-functions/obstack_vprintf.texi: Update.
15859
15860 2009-02-26  Eric Blake  <ebb9@byu.net>
15861
15862         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15863         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15864         compilation bug by using runtime conversion.
15865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15866         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15867         * modules/ceill-tests (Files): Use nan.h.
15868         * modules/floorl-tests (Files): Likewise.
15869         * modules/frexpl-tests (Files): Likewise.
15870         * modules/isnanl-tests (Files): Likewise.
15871         * modules/ldexpl-tests (Files): Likewise.
15872         * modules/roundl-tests (Files): Likewise.
15873         * modules/truncl-tests (Files): Likewise.
15874         * tests/test-ceill.c (main): Use a working NaN.
15875         * tests/test-floorl.c (main): Likewise.
15876         * tests/test-frexpl.c (main): Likewise.
15877         * tests/test-isnan.c (test_long_double): Likewise.
15878         * tests/test-isnanl.h (main): Likewise.
15879         * tests/test-ldexpl.h (main): Likewise.
15880         * tests/test-roundl.h (main): Likewise.
15881         * tests/test-truncl.h (main): Likewise.
15882         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15883
15884 2009-02-26  Eric Blake  <ebb9@byu.net>
15885             Bruno Haible  <bruno@clisp.org>
15886
15887         Work around a *printf bug with %ls on Solaris.
15888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15889         precision is specified, sprintf stops converting the wide string
15890         argument when the number of bytes that have been produced by this
15891         conversion equals or exceeds the precision.
15892         * doc/posix-functions/fprintf.texi: Update.
15893         * doc/posix-functions/printf.texi: Update.
15894         * doc/posix-functions/snprintf.texi: Update.
15895         * doc/posix-functions/sprintf.texi: Update.
15896         * doc/posix-functions/vfprintf.texi: Update.
15897         * doc/posix-functions/vprintf.texi: Update.
15898         * doc/posix-functions/vsnprintf.texi: Update.
15899         * doc/posix-functions/vsprintf.texi: Update.
15900         * doc/glibc-functions/obstack_printf.texi: Update.
15901         * doc/glibc-functions/obstack_vprintf.texi: Update.
15902
15903 2009-02-26  Eric Blake  <ebb9@byu.net>
15904
15905         stdlib: favor compiler check of random.h
15906         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15907         to avoid an ObjC random.h installed by Swarm.
15908
15909 2009-02-26  Bruno Haible  <bruno@clisp.org>
15910
15911         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15912         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15913         Reported by Gary V. Vaughan <gary@gnu.org>.
15914
15915 2009-02-26  Bruno Haible  <bruno@clisp.org>
15916
15917         Fix *printf behaviour regarding the %ls directive.
15918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15919         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15920         NEED_PRINTF_DIRECTIVE_LS.
15921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15922         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15924         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15925         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15926         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15927         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15932         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15936         * doc/posix-functions/fprintf.texi: Update.
15937         * doc/posix-functions/printf.texi: Update.
15938         * doc/posix-functions/snprintf.texi: Update.
15939         * doc/posix-functions/sprintf.texi: Update.
15940         * doc/posix-functions/vfprintf.texi: Update.
15941         * doc/posix-functions/vprintf.texi: Update.
15942         * doc/posix-functions/vsnprintf.texi: Update.
15943         * doc/posix-functions/vsprintf.texi: Update.
15944         * doc/glibc-functions/obstack_printf.texi: Update.
15945         * doc/glibc-functions/obstack_vprintf.texi: Update.
15946         Reported by Eric Blake.
15947
15948 2009-02-25  Bruno Haible  <bruno@clisp.org>
15949
15950         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15951         with known value.
15952         Reported by Gary V. Vaughan <gary@gnu.org>.
15953
15954 2009-02-25  Bruno Haible  <bruno@clisp.org>
15955
15956         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15957         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15958         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15959         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15960         Reported by Gary V. Vaughan <gary@gnu.org>.
15961
15962 2009-02-25  Bruno Haible  <bruno@clisp.org>
15963
15964         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15965         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15966         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15967         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15968         Reported by Gary V. Vaughan <gary@gnu.org>.
15969
15970 2009-02-25  Eric Blake  <ebb9@byu.net>
15971
15972         tests: skip fseek/ftell tests if ungetc is broken
15973         * m4/ungetc.m4: New file.
15974         * modules/fseek-tests: Split test, so ungetc dependency is
15975         separate from rest of test.
15976         * modules/fseeko-tests: Likewise.
15977         * modules/ftell-tests: Likewise.
15978         * modules/ftello-tests: Likewise.
15979         * tests/test-fseek.c (main): Isolate ungetc dependency.
15980         * tests/test-fseeko.c (main): Likewise.
15981         * tests/test-ftell.c (main): Likewise.
15982         * tests/test-ftello.c (main): Likewise.
15983         * tests/test-fseek2.sh: New file.
15984         * tests/test-fseeko2.sh: Likewise.
15985         * tests/test-ftell2.sh: Likewise.
15986         * tests/test-ftello2.sh: Likewise.
15987
15988 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15989
15990         test-getaddrinfo: fix usage of skip return code 77
15991         * tests/test-gettaddrinfo.c: Return skip code 77 only
15992         for first occurance of skip (4x77 is not 77)
15993
15994 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15995
15996         strtod: avoid C99 decl-after-statement
15997         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15998
15999 2009-02-24  Eric Blake  <ebb9@byu.net>
16000
16001         strtod: detect HP-UX 11.31 bug
16002         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16003         Reported by Gary V. Vaughan.
16004
16005 2009-02-23  Bruno Haible  <bruno@clisp.org>
16006
16007         Fix invalid read past end of memory block.
16008         * lib/vasnprintf.c (DCHAR_SET): Define.
16009         (local_wcslen): Define only when needed.
16010         (local_strnlen, local_wcsnlen): New functions.
16011         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16012         directives that involve a conversion ourselves.
16013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16014         wcsnlen, mbrtowc, wcrtomb.
16015         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16016         * tests/test-vasprintf-posix.c (test_function): Likewise.
16017         * tests/test-snprintf-posix.h (test_function): Likewise.
16018         * tests/test-sprintf-posix.h (test_function): Likewise.
16019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16020
16021 2009-02-22  Bruno Haible  <bruno@clisp.org>
16022
16023         Implement new clarified decomposition of Hangul syllables.
16024         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16025         of type LTV, return only a pairwise decomposition.
16026         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16027         Likewise.
16028         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16029         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16030         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16031
16032 2009-02-22  Bruno Haible  <bruno@clisp.org>
16033
16034         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16035         zero-length results and shrink excess allocated memory.
16036         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16037         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16038         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16039         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16040         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16041         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16042         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16043         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16044         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16045         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16046         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16047         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16048
16049 2009-02-21  Bruno Haible  <bruno@clisp.org>
16050
16051         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16052         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16053         spaces after a period. Put a space between a macro name and its
16054         argument list. Trivial rewordings.
16055         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16056         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16057         (main): Return 0 explicitly.
16058
16059 2009-02-21  Bruno Haible  <bruno@clisp.org>
16060
16061         Tests for module 'uninorm/filter'.
16062         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16063         * modules/uninorm/filter-tests: New file.
16064
16065         New module 'uninorm/filter'.
16066         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16067         uninorm_filter_flush, uninorm_filter_free): New declarations.
16068         * lib/uninorm/uninorm-filter.c: New file.
16069         * modules/uninorm/filter: New file.
16070
16071 2009-02-21  Bruno Haible  <bruno@clisp.org>
16072
16073         Tests for module 'uninorm/nfkc'.
16074         * tests/uninorm/test-nfkc.c: New file.
16075         * tests/uninorm/test-u8-nfkc.c: New file.
16076         * tests/uninorm/test-u16-nfkc.c: New file.
16077         * tests/uninorm/test-u32-nfkc.c: New file.
16078         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16079         * tests/uninorm/test-u32-nfkc-big.c: New file.
16080         * modules/uninorm/nfkc-tests: New file.
16081
16082         New module 'uninorm/nfkc'.
16083         * lib/uninorm/nfkc.c: New file.
16084         * modules/uninorm/nfkc: New file.
16085
16086         Tests for module 'uninorm/nfkd'.
16087         * tests/uninorm/test-nfkd.c: New file.
16088         * tests/uninorm/test-u8-nfkd.c: New file.
16089         * tests/uninorm/test-u16-nfkd.c: New file.
16090         * tests/uninorm/test-u32-nfkd.c: New file.
16091         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16092         * tests/uninorm/test-u32-nfkd-big.c: New file.
16093         * modules/uninorm/nfkd-tests: New file.
16094
16095         New module 'uninorm/nfkd'.
16096         * lib/uninorm/nfkd.c: New file.
16097         * modules/uninorm/nfkd: New file.
16098
16099         Tests for module 'uninorm/nfc'.
16100         * tests/uninorm/test-nfc.c: New file.
16101         * tests/uninorm/test-u8-nfc.c: New file.
16102         * tests/uninorm/test-u16-nfc.c: New file.
16103         * tests/uninorm/test-u32-nfc.c: New file.
16104         * tests/uninorm/test-u32-nfc-big.sh: New file.
16105         * tests/uninorm/test-u32-nfc-big.c: New file.
16106         * modules/uninorm/nfc-tests: New file.
16107
16108         New module 'uninorm/nfc'.
16109         * lib/uninorm/nfc.c: New file.
16110         * modules/uninorm/nfc: New file.
16111
16112         Tests for module 'uninorm/nfd'.
16113         * tests/uninorm/test-nfd.c: New file.
16114         * tests/uninorm/test-u8-nfd.c: New file.
16115         * tests/uninorm/test-u16-nfd.c: New file.
16116         * tests/uninorm/test-u32-nfd.c: New file.
16117         * tests/uninorm/test-u32-nfd-big.sh: New file.
16118         * tests/uninorm/test-u32-nfd-big.c: New file.
16119         * tests/uninorm/test-u32-normalize-big.h: New file.
16120         * tests/uninorm/test-u32-normalize-big.c: New file.
16121         * tests/uninorm/NormalizationTest.txt: New file, created from
16122         Unicode 5.1.0 NormalizationTest.txt.
16123         * modules/uninorm/nfd-tests: New file.
16124
16125         New module 'uninorm/nfd'.
16126         * lib/uninorm/nfd.c: New file.
16127         * modules/uninorm/nfd: New file.
16128
16129         New module 'uninorm/u32-normalize'.
16130         * lib/uninorm/u32-normalize.c: New file.
16131         * modules/uninorm/u32-normalize: New file.
16132
16133         New module 'uninorm/u16-normalize'.
16134         * lib/uninorm/u16-normalize.c: New file.
16135         * modules/uninorm/u16-normalize: New file.
16136
16137         New module 'uninorm/u8-normalize'.
16138         * lib/uninorm/u8-normalize.c: New file.
16139         * lib/uninorm/normalize-internal.h: New file.
16140         * lib/uninorm/u-normalize-internal.h: New file.
16141         * modules/uninorm/u8-normalize: New file.
16142
16143         New module 'uninorm/decompose-internal'.
16144         * lib/uninorm/decompose-internal.c: New file.
16145         * modules/uninorm/decompose-internal: New file.
16146
16147         Tests for module 'uninorm/composition'.
16148         * tests/uninorm/test-composition.c: New file.
16149         * modules/uninorm/composition-tests: New file.
16150
16151         New module 'uninorm/composition'.
16152         * lib/uninorm/composition.c: New file.
16153         * lib/uninorm/composition-table.gperf: New file, generated by
16154         gen-uni-tables.
16155         * modules/uninorm/composition: New file.
16156
16157         Tests for module 'uninorm/compat-decomposition'.
16158         * tests/uninorm/test-compat-decomposition.c: New file.
16159         * modules/uninorm/compat-decomposition-tests: New file.
16160
16161         New module 'uninorm/compat-decomposition'.
16162         * lib/uninorm/decompose-internal.h: New file.
16163         * lib/uninorm/compat-decomposition.c: New file.
16164         * modules/uninorm/compat-decomposition: New file.
16165
16166         Tests for module 'uninorm/canonical-decomposition'.
16167         * tests/uninorm/test-canonical-decomposition.c: New file.
16168         * modules/uninorm/canonical-decomposition-tests: New file.
16169
16170         New module 'uninorm/canonical-decomposition'.
16171         * lib/uninorm/canonical-decomposition.c: New file.
16172         * modules/uninorm/canonical-decomposition: New file.
16173
16174         Tests for module 'uninorm/decomposition'.
16175         * tests/uninorm/test-decomposition.c: New file.
16176         * modules/uninorm/decomposition-tests: New file.
16177
16178         New module 'uninorm/decomposition'.
16179         * lib/uninorm/decomposition.c: New file.
16180         * modules/uninorm/decomposition: New file.
16181
16182         New module 'uninorm/decomposition-table'.
16183         * lib/uninorm/decomposition-table.h: New file.
16184         * lib/uninorm/decomposition-table.c: New file.
16185         * lib/uninorm/decomposition-table1.h: New file, generated by
16186         gen-uni-tables.
16187         * lib/uninorm/decomposition-table2.h: New file, generated by
16188         gen-uni-tables.
16189         * modules/uninorm/decomposition-table: New file.
16190
16191         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16192         (UC_DECOMP_*): New enumeration items.
16193         (get_decomposition): New function.
16194         (struct decomp_table): New type.
16195         (output_decomposition, output_decomposition_tables): New functions.
16196         (unicode_composition_exclusions): New variable.
16197         (fill_composition_exclusions, debug_output_composition_tables): New
16198         functions.
16199         (main): Accept one more argument. Invoke fill_composition_exclusions.
16200         Output decomposition and composition tables.
16201
16202         New module 'uninorm/base'.
16203         * lib/uninorm.h: New file.
16204         * lib/unictype.h: Update comment.
16205         * modules/uninorm/base: New file.
16206
16207 2009-02-21  David Lutterkort  <lutter@redhat.com>
16208
16209         Tests for module 'safe-alloc'.
16210         * tests/test-safe-alloc.c: New file.
16211         * modules/safe-alloc-tests: New file.
16212
16213         New module 'safe-alloc'.
16214         * lib/safe-alloc.h: New file.
16215         * lib/safe-alloc.c: New file.
16216         * m4/safe-alloc.m4: New file.
16217         * modules/safe-alloc: New file.
16218         * doc/safe-alloc.texi: New file.
16219         * doc/gnulib.texi: Include it.
16220         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16221         safe-alloc.
16222
16223 2009-02-18  Bruno Haible  <bruno@clisp.org>
16224
16225         Fix link error on non-glibc systems.
16226         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16227         variable.
16228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16229
16230 2009-02-18  Jim Meyering  <meyering@redhat.com>
16231
16232         fts: avoid used-uninitialized error due to recent change
16233         * lib/fts.c (fts_read): Guard uses of the new member,
16234         parent->fts_n_dirs_remaining, since it's not relevant for
16235         the parent of a directory specified on the command-line.
16236
16237 2009-02-17  James Youngman  <jay@gnu.org>
16238             Bruno Haible  <bruno@clisp.org>
16239
16240         * m4/include_next.m4: Reformulate comment.
16241
16242 2009-02-16  Jim Meyering  <meyering@redhat.com>
16243
16244         fts: add #if guards so that the fts_lgpl module still builds
16245         * lib/fts.c: Guard just-added hash-table-using parts with
16246         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16247         Reported by Simon Josefsson.
16248
16249 2009-02-15  Bruno Haible  <bruno@clisp.org>
16250
16251         * modules/array-mergesort-tests: New file.
16252         * tests/test-array-mergesort.c: New file.
16253
16254         New module 'array-mergesort'.
16255         * modules/array-mergesort: New file.
16256         * lib/array-mergesort.h: New file.
16257
16258 2009-02-15  Bruno Haible  <bruno@clisp.org>
16259
16260         Fix 2009-02-07 commit.
16261         * lib/gen-uni-tables.c (output_predicate, output_category,
16262         output_combclass, output_bidi_category, output_decimal_digit,
16263         output_digit, output_numeric, output_mirror, output_scripts,
16264         output_ident_category, output_simple_mapping): Fix format directives.
16265         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16266
16267 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16268
16269         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16270         fixes are available from IBM.
16271
16272 2009-02-13  Jim Meyering  <meyering@redhat.com>
16273
16274         fts: arrange not to stat non-directories in more cases
16275         This makes GNU find (when it doesn't need to stat each file)
16276         *much* more efficient at traversing reiserfs file systems.
16277         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16278         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16279         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16280         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16281         (leaf_optimization_applies): New function.
16282         (LCO_hash, LCO_compare): New helper functions.
16283         (link_count_optimize_ok): New function.
16284         (fts_stat): Initialize new member (if dir).
16285         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16286         we've just stat'ed a directory.  Skip the stat call when possible.
16287         ---
16288         Note this AFS-related exchange:
16289         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16290         and note find's pioctl call in find/fstype.c.
16291         But that is necessary only if you want to enable the
16292         optimization for AFS, and for now, I don't.
16293
16294         fts: move a function definition "up" (no semantic change)
16295         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16296         "up" to precede upcoming use of a related function.
16297
16298 2009-02-11  Jim Meyering  <meyering@redhat.com>
16299
16300         fts: correct internal computation of nlinks (optimization-related)
16301         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16302         whether the current entry is a directory, so don't test it.
16303
16304 2009-02-10  Bruno Haible  <bruno@clisp.org>
16305
16306         Tests for module 'uniwbrk/ulc-wordbreaks'.
16307         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16308         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16309         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16310
16311         Tests for module 'uniwbrk/u32-wordbreaks'.
16312         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16313         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16314
16315         Tests for module 'uniwbrk/u16-wordbreaks'.
16316         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16317         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16318
16319         Tests for module 'uniwbrk/u8-wordbreaks'.
16320         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16321         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16322
16323 2009-02-10  Bruno Haible  <bruno@clisp.org>
16324
16325         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16326         property.
16327         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16328         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16329         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16330
16331 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16332
16333         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16334         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16335
16336 2009-02-10  Bruno Haible  <bruno@clisp.org>
16337
16338         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16339         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16340         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16341         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16342         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16343         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16344
16345 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16346
16347         * lib/sockets.h (gl_fd_to_handle): New function.
16348
16349         * tests/test-sockets.c: Call gl_fd_to_handle.
16350
16351 2009-02-09  Bruno Haible  <bruno@clisp.org>
16352
16353         * doc/havelib.texi: Document the conventions on bi-arch systems.
16354
16355 2009-02-08  Bruno Haible  <bruno@clisp.org>
16356
16357         Document the AC_LIB_LINKFLAGS macro.
16358         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16359         * doc/gnulib.texi: Include it.
16360
16361 2009-02-08  Bruno Haible  <bruno@clisp.org>
16362
16363         Fix wrong order of sections, compared to TOC.
16364         * doc/gnulib.texi: Include relocatable-maint.texi after the
16365         "Regular expressions" node, not before.
16366
16367 2009-02-08  Bruno Haible  <bruno@clisp.org>
16368
16369         Tests for module 'unicase/totitle'.
16370         * modules/unicase/totitle-tests: New file.
16371
16372         Tests for module 'unicase/tolower'.
16373         * modules/unicase/tolower-tests: New file.
16374
16375         Tests for module 'unicase/toupper'.
16376         * modules/unicase/toupper-tests: New file.
16377         * tests/unicase/test-mapping-part1.h: New file.
16378         * tests/unicase/test-mapping-part2.h: New file.
16379
16380         New module 'unicase/totitle'.
16381         * modules/unicase/totitle: New file.
16382         * lib/unicase/totitle.c: New file.
16383
16384         New module 'unicase/tolower'.
16385         * modules/unicase/tolower: New file.
16386         * lib/unicase/tolower.c: New file.
16387
16388         New module 'unicase/toupper'.
16389         * modules/unicase/toupper: New file.
16390         * lib/unicase/toupper.c: New file.
16391         * lib/unicase/simple-mapping.h: New file.
16392
16393         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16394         (mapping_table): New structure.
16395         (output_simple_mapping): New function.
16396         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16397         * modules/gen-uni-tables (Description): Update.
16398         * lib/unicase/toupper.h: New file, automatically generated by
16399         gen-uni-tables.
16400         * lib/unicase/tolower.h: New file, automatically generated by
16401         gen-uni-tables.
16402         * lib/unicase/totitle.h: New file, automatically generated by
16403         gen-uni-tables.
16404         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16405         gen-uni-tables.
16406         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16407         gen-uni-tables.
16408         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16409         gen-uni-tables.
16410
16411         New module 'unicase/base'.
16412         * modules/unicase/base: New file.
16413         * lib/unicase.h: New file.
16414
16415 2009-02-08  Bruno Haible  <bruno@clisp.org>
16416
16417         New module 'uniwbrk/ulc-wordbreaks'.
16418         * modules/uniwbrk/ulc-wordbreaks: New file.
16419         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16420
16421         New module 'uniwbrk/u32-wordbreaks'.
16422         * modules/uniwbrk/u32-wordbreaks: New file.
16423         * lib/uniwbrk/u32-wordbreaks.c: New file.
16424
16425         New module 'uniwbrk/u16-wordbreaks'.
16426         * modules/uniwbrk/u16-wordbreaks: New file.
16427         * lib/uniwbrk/u16-wordbreaks.c: New file.
16428
16429         New module 'uniwbrk/u8-wordbreaks'.
16430         * modules/uniwbrk/u8-wordbreaks: New file.
16431         * lib/uniwbrk/u8-wordbreaks.c: New file.
16432         * lib/uniwbrk/u-wordbreaks.h: New file.
16433
16434         New module 'uniwbrk/table'.
16435         * modules/uniwbrk/table: New file.
16436         * lib/uniwbrk/wbrktable.h: New file.
16437         * lib/uniwbrk/wbrktable.c: New file.
16438
16439         New module 'uniwbrk/wordbreak-property'.
16440         * modules/uniwbrk/wordbreak-property: New file.
16441         * lib/uniwbrk/wordbreak-property.c: New file.
16442
16443         * lib/gen-uni-tables.c (WBP_*): New enum items.
16444         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16445         (unicode_org_wbp): New variable.
16446         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16447         New functions.
16448         (wbp_table): New structure.
16449         (output_wbp, output_wbrk_tables): New functions.
16450         (main): Accept additional argument. Invoke fill_org_wbp,
16451         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16452         output_wbrk_tables.
16453         * modules/gen-uni-tables (Description): Update.
16454         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16455         gen-uni-tables.
16456
16457         New module 'uniwbrk/base'.
16458         * modules/uniwbrk/base: New file.
16459         * lib/uniwbrk.h: New file.
16460
16461 2009-02-08  Bruno Haible  <bruno@clisp.org>
16462
16463         Update to Unicode 5.1.0.
16464         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16465         U+2185..U+2188.
16466         (is_property_default_ignorable_code_point): Don't include characters
16467         of category Cc or Cs and not-a-characters.
16468         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16469         U+0D79, U+109E, U+109F, U+A60C.
16470         * lib/unictype/bidi_of.h: Regenerated.
16471         * lib/unictype/blocks.h: Regenerated.
16472         * lib/unictype/categ_C.h: Regenerated.
16473         * lib/unictype/categ_Cf.h: Regenerated.
16474         * lib/unictype/categ_Cn.h: Regenerated.
16475         * lib/unictype/categ_L.h: Regenerated.
16476         * lib/unictype/categ_Ll.h: Regenerated.
16477         * lib/unictype/categ_Lm.h: Regenerated.
16478         * lib/unictype/categ_Lo.h: Regenerated.
16479         * lib/unictype/categ_Lu.h: Regenerated.
16480         * lib/unictype/categ_M.h: Regenerated.
16481         * lib/unictype/categ_Mc.h: Regenerated.
16482         * lib/unictype/categ_Me.h: Regenerated.
16483         * lib/unictype/categ_Mn.h: Regenerated.
16484         * lib/unictype/categ_N.h: Regenerated.
16485         * lib/unictype/categ_Nd.h: Regenerated.
16486         * lib/unictype/categ_Nl.h: Regenerated.
16487         * lib/unictype/categ_No.h: Regenerated.
16488         * lib/unictype/categ_P.h: Regenerated.
16489         * lib/unictype/categ_Pd.h: Regenerated.
16490         * lib/unictype/categ_Pe.h: Regenerated.
16491         * lib/unictype/categ_Pf.h: Regenerated.
16492         * lib/unictype/categ_Pi.h: Regenerated.
16493         * lib/unictype/categ_Po.h: Regenerated.
16494         * lib/unictype/categ_Ps.h: Regenerated.
16495         * lib/unictype/categ_S.h: Regenerated.
16496         * lib/unictype/categ_Sk.h: Regenerated.
16497         * lib/unictype/categ_Sm.h: Regenerated.
16498         * lib/unictype/categ_So.h: Regenerated.
16499         * lib/unictype/categ_of.h: Regenerated.
16500         * lib/unictype/combining.h: Regenerated.
16501         * lib/unictype/ctype_alnum.h: Regenerated.
16502         * lib/unictype/ctype_alpha.h: Regenerated.
16503         * lib/unictype/ctype_graph.h: Regenerated.
16504         * lib/unictype/ctype_lower.h: Regenerated.
16505         * lib/unictype/ctype_print.h: Regenerated.
16506         * lib/unictype/ctype_punct.h: Regenerated.
16507         * lib/unictype/ctype_upper.h: Regenerated.
16508         * lib/unictype/decdigit.h: Regenerated.
16509         * lib/unictype/digit.h: Regenerated.
16510         * lib/unictype/mirror.h: Regenerated.
16511         * lib/unictype/numeric.h: Regenerated.
16512         * lib/unictype/pr_alphabetic.h: Regenerated.
16513         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16514         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16515         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16516         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16517         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16518         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16519         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16520         * lib/unictype/pr_combining.h: Regenerated.
16521         * lib/unictype/pr_dash.h: Regenerated.
16522         * lib/unictype/pr_decimal_digit.h: Regenerated.
16523         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16524         * lib/unictype/pr_deprecated.h: Regenerated.
16525         * lib/unictype/pr_diacritic.h: Regenerated.
16526         * lib/unictype/pr_extender.h: Regenerated.
16527         * lib/unictype/pr_format_control.h: Regenerated.
16528         * lib/unictype/pr_grapheme_base.h: Regenerated.
16529         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16530         * lib/unictype/pr_grapheme_link.h: Regenerated.
16531         * lib/unictype/pr_id_continue.h: Regenerated.
16532         * lib/unictype/pr_id_start.h: Regenerated.
16533         * lib/unictype/pr_ideographic.h: Regenerated.
16534         * lib/unictype/pr_ignorable_control.h: Regenerated.
16535         * lib/unictype/pr_lowercase.h: Regenerated.
16536         * lib/unictype/pr_math.h: Regenerated.
16537         * lib/unictype/pr_numeric.h: Regenerated.
16538         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16539         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16540         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16541         * lib/unictype/pr_other_id_continue.h: Regenerated.
16542         * lib/unictype/pr_other_lowercase.h: Regenerated.
16543         * lib/unictype/pr_other_math.h: Regenerated.
16544         * lib/unictype/pr_punctuation.h: Regenerated.
16545         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16546         * lib/unictype/pr_soft_dotted.h: Regenerated.
16547         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16548         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16549         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16550         * lib/unictype/pr_uppercase.h: Regenerated.
16551         * lib/unictype/pr_xid_continue.h: Regenerated.
16552         * lib/unictype/pr_xid_start.h: Regenerated.
16553         * lib/unictype/pr_zero_width.h: Regenerated.
16554         * lib/unictype/scripts.h: Regenerated.
16555         * lib/unictype/scripts_byname.gperf: Regenerated.
16556         * lib/unictype/sy_java_ident.h: Regenerated.
16557         * lib/unilbrk/lbrkprop1.h: Regenerated.
16558         * lib/unilbrk/lbrkprop2.h: Regenerated.
16559         * tests/unictype/test-categ_C.c: Regenerated.
16560         * tests/unictype/test-categ_Cf.c: Regenerated.
16561         * tests/unictype/test-categ_Cn.c: Regenerated.
16562         * tests/unictype/test-categ_L.c: Regenerated.
16563         * tests/unictype/test-categ_Ll.c: Regenerated.
16564         * tests/unictype/test-categ_Lm.c: Regenerated.
16565         * tests/unictype/test-categ_Lo.c: Regenerated.
16566         * tests/unictype/test-categ_Lu.c: Regenerated.
16567         * tests/unictype/test-categ_M.c: Regenerated.
16568         * tests/unictype/test-categ_Mc.c: Regenerated.
16569         * tests/unictype/test-categ_Me.c: Regenerated.
16570         * tests/unictype/test-categ_Mn.c: Regenerated.
16571         * tests/unictype/test-categ_N.c: Regenerated.
16572         * tests/unictype/test-categ_Nd.c: Regenerated.
16573         * tests/unictype/test-categ_Nl.c: Regenerated.
16574         * tests/unictype/test-categ_No.c: Regenerated.
16575         * tests/unictype/test-categ_P.c: Regenerated.
16576         * tests/unictype/test-categ_Pd.c: Regenerated.
16577         * tests/unictype/test-categ_Pe.c: Regenerated.
16578         * tests/unictype/test-categ_Pf.c: Regenerated.
16579         * tests/unictype/test-categ_Pi.c: Regenerated.
16580         * tests/unictype/test-categ_Po.c: Regenerated.
16581         * tests/unictype/test-categ_Ps.c: Regenerated.
16582         * tests/unictype/test-categ_S.c: Regenerated.
16583         * tests/unictype/test-categ_Sk.c: Regenerated.
16584         * tests/unictype/test-categ_Sm.c: Regenerated.
16585         * tests/unictype/test-categ_So.c: Regenerated.
16586         * tests/unictype/test-ctype_alnum.c: Regenerated.
16587         * tests/unictype/test-ctype_alpha.c: Regenerated.
16588         * tests/unictype/test-ctype_graph.c: Regenerated.
16589         * tests/unictype/test-ctype_lower.c: Regenerated.
16590         * tests/unictype/test-ctype_print.c: Regenerated.
16591         * tests/unictype/test-ctype_punct.c: Regenerated.
16592         * tests/unictype/test-ctype_upper.c: Regenerated.
16593         * tests/unictype/test-decdigit.h: Regenerated.
16594         * tests/unictype/test-digit.h: Regenerated.
16595         * tests/unictype/test-numeric.h: Regenerated.
16596         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16597         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16598         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16599         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16600         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16601         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16602         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16603         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16604         * tests/unictype/test-pr_combining.c: Regenerated.
16605         * tests/unictype/test-pr_dash.c: Regenerated.
16606         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16607         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16608         * tests/unictype/test-pr_deprecated.c: Regenerated.
16609         * tests/unictype/test-pr_diacritic.c: Regenerated.
16610         * tests/unictype/test-pr_extender.c: Regenerated.
16611         * tests/unictype/test-pr_format_control.c: Regenerated.
16612         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16613         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16614         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16615         * tests/unictype/test-pr_id_continue.c: Regenerated.
16616         * tests/unictype/test-pr_id_start.c: Regenerated.
16617         * tests/unictype/test-pr_ideographic.c: Regenerated.
16618         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16619         * tests/unictype/test-pr_lowercase.c: Regenerated.
16620         * tests/unictype/test-pr_math.c: Regenerated.
16621         * tests/unictype/test-pr_numeric.c: Regenerated.
16622         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16623         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16624         Regenerated.
16625         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16626         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16627         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16628         * tests/unictype/test-pr_other_math.c: Regenerated.
16629         * tests/unictype/test-pr_punctuation.c: Regenerated.
16630         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16631         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16632         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16633         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16634         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16635         * tests/unictype/test-pr_uppercase.c: Regenerated.
16636         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16637         * tests/unictype/test-pr_xid_start.c: Regenerated.
16638         * tests/unictype/test-pr_zero_width.c: Regenerated.
16639
16640         Update to Unicode 5.1.0.
16641         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16642         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16643         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16644         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16645         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16646         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16647         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16648         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16649         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16650         (nonspacing_table_ind): Update.
16651         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16652
16653         Update to Unicode 5.1.0.
16654         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16655         code transform.
16656         * lib/uniname/uniname.c (unicode_character_name,
16657         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16658         * lib/uniname/uninames.h: Regenerated.
16659         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16660
16661 2009-02-07  Bruno Haible  <bruno@clisp.org>
16662
16663         Merge gen-ctype and gen-lbrk into a single program.
16664         * lib/gen-uni-tables.c: New file, incorporating
16665         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16666         Add directory prefixes to the names of the generated files.
16667         * lib/unictype/gen-ctype.c: Remove file.
16668         * lib/unilbrk/gen-lbrk.c: Remove file.
16669         * modules/gen-uni-tables: New file.
16670         * modules/unictype/gen-ctype: Remove file.
16671         * modules/unilbrk/gen-lbrk: Remove file.
16672
16673 2009-02-07  Bruno Haible  <bruno@clisp.org>
16674
16675         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16676
16677         New module 'unistr/u32-strcoll'.
16678         * modules/unistr/u32-strcoll: New file.
16679         * lib/unistr/u32-strcoll.c: New file.
16680
16681         New module 'unistr/u16-strcoll'.
16682         * modules/unistr/u16-strcoll: New file.
16683         * lib/unistr/u16-strcoll.c: New file.
16684
16685         New module 'unistr/u8-strcoll'.
16686         * modules/unistr/u8-strcoll: New file.
16687         * lib/unistr/u8-strcoll.c: New file.
16688         * lib/unistr/u-strcoll.h: New file.
16689
16690 2009-02-07  Bruno Haible  <bruno@clisp.org>
16691
16692         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16693         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16694         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16695         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16696         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16697         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16698
16699 2009-02-07  Bruno Haible  <bruno@clisp.org>
16700
16701         Make 64-bit clean.
16702         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16703         output_combclass, output_bidi_category, output_decimal_digit,
16704         output_digit, output_numeric, output_mirror, output_scripts,
16705         output_ident_category): Use proper width specifier in format strings.
16706
16707 2009-02-07  Bruno Haible  <bruno@clisp.org>
16708
16709         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16710         failure behaviour.
16711
16712 2009-02-07  Jim Meyering  <meyering@redhat.com>
16713
16714         regex: avoid compilation failure with upcoming gcc-4.4
16715         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16716         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16717         "... error: integer overflow in preprocessor expression".
16718
16719 2009-02-05  Ben Pfaff  <blp@gnu.org>
16720
16721         Fix link errors on Windows when close module is used.
16722         * modules/close: Add $(LIB_CLOSE) to Link section.
16723         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16724         $(LIB_CLOSE) on Windows.
16725
16726 2009-02-05  Jim Meyering  <meyering@redhat.com>
16727
16728         still avoid unused-parameter warnings, but do it cleanly
16729         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16730         (get_fs_usage): Cast to void instead.
16731         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16732         (dev_from_mount_options, read_file_system_list): Cast to void.
16733         Prompted by Bruno Haible.
16734
16735 2009-02-04  Jim Meyering  <meyering@redhat.com>
16736
16737         fsusage.c: correct copyright year
16738         * lib/fsusage.c: Reflect year in which the change is pushed into
16739
16740         avoid misc. warnings
16741         * lib/fsusage.c (UNUSED_PARAM): Define.
16742         (get_fs_usage): Mark parameter "disk" as unused.
16743         * lib/getugroups.c (getgrent): Use "void" in prototype.
16744         * lib/mountlist.c: Mark unused parameters.
16745         (read_file_system_list): Declare a local with "const".
16746         * lib/nanosleep.c (getnow): Declare static.
16747         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16748
16749         dirfd: set errno upon failure
16750         * lib/dirfd.c: Include <errno.h>.
16751         Set errno to ENOTSUP when returning -1.
16752         * modules/dirfd (Depends-on): Add errno.
16753         Suggested by John Kodis <kodis@comcast.net>.
16754
16755 2009-02-01  Bruno Haible  <bruno@clisp.org>
16756
16757         Don't assume sizeof (long) >= sizeof (void *).
16758         * lib/memcmp.c: Include stdint.h.
16759         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16760         srcp2 to 'const byte *'.
16761         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16762         types to uintptr_t.
16763         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16764         * modules/memcmp (Depends-on): Add stdint.
16765         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16766
16767 2009-01-30  Eric Blake  <ebb9@byu.net>
16768
16769         fix more require-before-expand issues
16770         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16771         expand, AC_PROG_AWK.
16772         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16773
16774 2009-01-28  Eric Blake  <ebb9@byu.net>
16775
16776         version-etc: use consistent URL formatting
16777         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16778         Improve formatting.  Use fputs for string without %.
16779
16780 2009-01-28  Jim Meyering  <meyering@redhat.com>
16781
16782         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16783         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16784         "underquoted definition of NAME" from autoconf-2.59.
16785
16786 2009-01-28  Bruno Haible  <bruno@clisp.org>
16787
16788         * doc/gnulib.texi: Add "Obsolete modules" to index.
16789
16790 2009-01-28  Jim Meyering  <meyering@redhat.com>
16791
16792         useless-if-before-free: recognize more variants
16793         * build-aux/useless-if-before-free: Also recognize e.g.,
16794         if (NULL != p) free (p);
16795
16796 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16797
16798         test-getaddrinfo: skip (don't fail) this test when there's no network
16799         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16800         on the presumption that it means you lack network access.
16801
16802 2009-01-26  Jim Meyering  <meyering@redhat.com>
16803
16804         fflush: avoid warnings on modern systems
16805         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16806         pos and result, into scopes where they're used.
16807
16808 2009-01-26  Eric Blake  <ebb9@byu.net>
16809
16810         Silence warning reintroduced by recent extensions patch.
16811         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16812         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16813         autoconf.
16814
16815         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16816         * m4/00gnulib.m4: New file.
16817         * gnulib-tool (func_get_filelist): Always use it.
16818         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16819         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16820
16821 2009-01-25  Bruno Haible  <bruno@clisp.org>
16822
16823         Make test-quotearg work on MacOS X and AIX.
16824         * tests/test-quotearg.sh: New file.
16825         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16826         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16827         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16828         include <libintl.h>.
16829         (fake_locale): Remove variable.
16830         (gettext, dgettext, dcgettext): Remove functions.
16831         (main): Instead of setting a fake locale, set a real locale. Call
16832         textdomain and bindtextdomain.
16833         * modules/quotearg-tests (Files): Add the new files.
16834         (Depends-on): Add gettext, setenv, unsetenv.
16835         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16836         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16837         Augment TESTS_ENVIRONMENT.
16838
16839 2009-01-25  Bruno Haible  <bruno@clisp.org>
16840
16841         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16842         fr_FR.ISO8859-1 locale on MacOS X.
16843         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16844         ja_JP.eucJP locale on MacOS X.
16845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16846         zh_CN.GB18030 locale on MacOS X.
16847
16848 2009-01-25  Bruno Haible  <bruno@clisp.org>
16849
16850         Avoid link errors on MacOS X 10.3.
16851         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16852         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16853
16854 2009-01-25  Bruno Haible  <bruno@clisp.org>
16855
16856         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16857         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16858         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16859         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16860         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16861         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16862         posix_spawnattr_init, posix_spawnattr_setsigmask,
16863         posix_spawnattr_setflags, posix_spawnattr_destroy.
16864
16865         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16866         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16867         * modules/execute (Files): Remove m4/posix_spawn.m4.
16868         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16869         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16870         posix_spawnattr_init, posix_spawnattr_setsigmask,
16871         posix_spawnattr_setflags, posix_spawnattr_destroy.
16872
16873 2009-01-25  Bruno Haible  <bruno@clisp.org>
16874
16875         * lib/glthread/threadlib.c: Include <stdlib.h>.
16876
16877 2009-01-25  Bruno Haible  <bruno@clisp.org>
16878
16879         * lib/glthread/threadlib.c (dummy): New declaration.
16880
16881 2009-01-25  Bruno Haible  <bruno@clisp.org>
16882
16883         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16884         multibyte characters also for the GB18030 encoding. Don't crash when
16885         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16886
16887 2009-01-25  Bruno Haible  <bruno@clisp.org>
16888
16889         Avoid redefining 'struct random_data' on OSF/1 5.1.
16890         * lib/stdlib.in.h: Include <random.h> if it exists.
16891         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16892         HAVE_RANDOM_H. Include <random.h> when testing whether
16893         'struct random_data' exists.
16894         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16895
16896 2009-01-25  Bruno Haible  <bruno@clisp.org>
16897
16898         Don't install charset.alias on MacOS X >= 10.3.
16899         * lib/localcharset.c (DARWIN7): New macro.
16900         (get_charset_aliases): Hardcode the result for Darwin7.
16901         * modules/localcharset (install-exec-local): Don't install
16902         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16903
16904 2009-01-25  Bruno Haible  <bruno@clisp.org>
16905
16906         Don't install charset.alias on mingw and Cygwin.
16907         * modules/localcharset (install-exec-local): Don't install
16908         charset.alias on mingw and Cygwin, if the file does not yet exist.
16909         The result for these platforms is hardcoded in localcharset.c.
16910
16911 2009-01-25  Bruno Haible  <bruno@clisp.org>
16912
16913         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16915         before requiring AC_USE_SYSTEM_EXTENSIONS.
16916
16917 2009-01-25  Jim Meyering  <meyering@redhat.com>
16918
16919         c-strtod: avoid warnings
16920         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16921         "assignment discards qualifiers from pointer target type" warnings.
16922
16923 2009-01-24  Bruno Haible  <bruno@clisp.org>
16924
16925         Add support for non-UTF-8 locales on MacOS X.
16926         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16927         canonical encodings. For Darwin 7 and newer, don't map traditional
16928         encodings to UTF-8.
16929         Reported by Vincent Lefevre <vincent@vinc17.org>
16930         at <http://savannah.gnu.org/bugs/?25235>.
16931
16932 2009-01-24  Bruno Haible  <bruno@clisp.org>
16933
16934         * doc/gnulib.texi (Obsolete modules): New section.
16935         Reported by Mike Frysinger <vapier@gentoo.org>.
16936
16937 2009-01-24  Bruno Haible  <bruno@clisp.org>
16938
16939         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16940         (%.dvi): New rule.
16941
16942 2009-01-24  Bruno Haible  <bruno@clisp.org>
16943
16944         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16945         Reported by Eric Blake.
16946
16947 2009-01-24  Bruno Haible  <bruno@clisp.org>
16948
16949         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16950         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16951         Reported by Gary V. Vaughan <gary@gnu.org>.
16952
16953 2009-01-24  Bruno Haible  <bruno@clisp.org>
16954
16955         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16956
16957 2009-01-23  Bruno Haible  <bruno@clisp.org>
16958
16959         Make c-strtod, c-strtold usable in libraries.
16960         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16961         (C_STRTOD): Call strdup instead of xstrdup.
16962         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16963         * modules/c-strtold (Depends-on): Likewise.
16964         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16965         * NEWS: Mention the change.
16966         Reported by Michael Gold <mgold@ncf.ca>.
16967
16968 2009-01-23  Jim Meyering  <meyering@redhat.com>
16969
16970         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16971         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16972         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16973
16974 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16975
16976         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16977         GNU CoreUtils.
16978         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16979         * modules/version-etc (Description): Update.
16980
16981 2009-01-22  Bruno Haible  <bruno@clisp.org>
16982
16983         Cache the C locale object.
16984         * lib/c-strtod.c (c_locale_cache): New variable.
16985         (c_locale): New function.
16986         (C_STRTOD): Use it, and don't call freelocale.
16987         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16988         Suggested by Paolo Bonzini.
16989
16990 2009-01-21  Bruno Haible  <bruno@clisp.org>
16991
16992         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16993         conditions other than overflow.
16994
16995 2009-01-21  Bruno Haible  <bruno@clisp.org>
16996
16997         * lib/c-strtod.c: Include errno.h.
16998         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16999         value from STRTOD_L and STRTOD.
17000
17001 2009-01-21  Bruno Haible  <bruno@clisp.org>
17002         and Jim Meyering  <meyering@redhat.com>
17003
17004         nanosleep: skip configure test (fail it) for apple universal builds
17005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17006         universal builds, assume that nanosleep does not work.
17007         * modules/nanosleep (Depends-on): Add multiarch.
17008
17009         mktime: skip configure test (fail it) for apple universal builds
17010         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17011         universal builds, assume that mktime does not work.
17012         * modules/mktime (Depends-on): Add multiarch.
17013
17014 2009-01-21  Eric Blake  <ebb9@byu.net>
17015
17016         multiarch: avoid expand-before-require warning
17017         * modules/multiarch (configure.ac): Require, rather than expand,
17018         gl_MULTIARCH.
17019         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17020         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17021         enforce that all clients require it.  Partial reversion of
17022         2008-12-29 patch.
17023
17024         error: avoid expand-before-require warning
17025         * modules/errno (configure.ac): Require, rather than expand,
17026         gl_HEADER_ERRNO_H.
17027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17028         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17029         enforce that all clients require it.
17030
17031         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17032         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17033         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17034         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17035
17036 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17037
17038         Revert:
17039         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17040
17041         regex: do not depend on obsolete modules.
17042         * modules/regex: Remove memcmp and memmove.
17043
17044 2009-01-20  Bruno Haible  <bruno@clisp.org>
17045
17046         Make the 'link' module link on Windows NT 4.
17047         * lib/link.c (_WIN32_WINNT): Don't define.
17048         (CreateHardLinkFuncType): New type.
17049         (CreateHardLinkFunc, initialized): New variables.
17050         (initialize): New function.
17051         (link): Invoke CreateHardLink indirectly through the function pointer.
17052
17053 2009-01-20  Bruno Haible  <bruno@clisp.org>
17054
17055         Fix compilation failure on mingw.
17056         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17057
17058 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17059
17060         * doc/c-strtod.texi: Mention a couple of restrictions.
17061
17062 2009-01-20  Jim Meyering  <meyering@redhat.com>
17063
17064         gettimeofday: move more declarations out of functions
17065         * lib/gettimeofday.c: Move extern declarations of tzset and
17066         gmtime out of containing functions.  Prompted by Bruno Haible.
17067
17068 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17069
17070         regex: do not depend on obsolete modules.
17071         * modules/regex: Remove memcmp and memmove.
17072
17073 2009-01-19  Bruno Haible  <bruno@clisp.org>
17074
17075         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17076         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17077         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17078         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17079         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17080
17081 2009-01-19  Bruno Haible  <bruno@clisp.org>
17082
17083         * tests/test-link.c: Include <errno.h>.
17084         (main): Exit with code 77 when a hard link cannot be created due to
17085         the file system.
17086         * tests/test-link.sh: Skip test when a hard link cannot be created due
17087         to the file system.
17088         Suggested by Eric Blake.
17089
17090 2009-01-19  Martin Lambers  <marlam@marlam.de>
17091
17092         * modules/link-tests: New file.
17093         * tests/test-link.sh: New file.
17094         * tests/test-link.c: New file.
17095
17096 2009-01-19  Eric Blake  <ebb9@byu.net>
17097
17098         doc: mention another function added in cygwin 1.7.0
17099         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17100         Another new function in cygwin 1.7.
17101
17102 2009-01-19  Bruno Haible  <bruno@clisp.org>
17103
17104         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17105         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17106         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17107         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17108         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17109         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17111         * m4/md4.m4 (gl_MD4): Likewise.
17112         * m4/md5.m4 (gl_MD5): Likewise.
17113         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17114         * m4/sha1.m4 (gl_SHA1): Likewise.
17115         * m4/sha256.m4 (gl_SHA256): Likewise.
17116         * m4/sha512.m4 (gl_SHA512): Likewise.
17117
17118 2009-01-19  Bruno Haible  <bruno@clisp.org>
17119
17120         * modules/uniname/uniname-tests (Depends-on): Add progname.
17121         * tests/uniname/test-uninames.c: Include progname.h.
17122         (main): Call set_program_name.
17123
17124         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17125         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17126         (main): Call set_program_name.
17127
17128         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17129         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17130         (main): Call set_program_name.
17131
17132         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17133         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17134         (main): Call set_program_name.
17135
17136         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17137         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17138         (main): Call set_program_name.
17139
17140         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17141         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17142         (main): Call set_program_name.
17143
17144         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17145         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17146         (main): Call set_program_name.
17147
17148         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17149         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17150         (main): Call set_program_name.
17151
17152         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17153         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17154         (main): Call set_program_name.
17155
17156 2009-01-19  Eric Blake  <ebb9@byu.net>
17157
17158         test-unistd: test previous patch
17159         * tests/test-unistd.c: Test *_FILENO macros.
17160
17161         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17162         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17163         Guarantee a definition.
17164         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17165         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17166         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17167         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17168         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17169         Likewise.
17170         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17171         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17172         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17173         Likewise.
17174         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17175         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17176         (STDERR_FILENO): Likewise.
17177         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17178         (STDERR_FILENO): Likewise.
17179         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17180         (STDERR_FILENO): Likewise.
17181         Reported by Elbert Pol.
17182
17183 2009-01-19  Eric Blake  <ebb9@byu.net>
17184
17185         doc: mention more functions added in cygwin 1.7.0
17186         * doc/posix-functions/abort.texi (abort): Update wording related
17187         to cygwin.
17188         * doc/posix-functions/daylight.texi (daylight): Likewise.
17189         * doc/posix-functions/optarg.texi (optarg): Likewise.
17190         * doc/posix-functions/optarg.texi (opterr): Likewise.
17191         * doc/posix-functions/optarg.texi (optind): Likewise.
17192         * doc/posix-functions/optarg.texi (optopt): Likewise.
17193         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17194         worked in 1.5.x, and was withdrawn in 1.7.
17195         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17196         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17197         cygwin versions.
17198         * doc/posix-functions/perror.texi (perror): Likewise.
17199         * doc/posix-functions/printf.texi (printf): Likewise.
17200         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17201         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17202         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17203         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17205         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17206         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17207         Likewise.
17208         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17209         Likewise.
17210         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17211         this function.
17212         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17213         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17214         Likewise.
17215         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17216         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17217         * doc/posix-functions/confstr.texi (confstr): Likewise.
17218         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17219         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17220         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17221         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17222         * doc/posix-functions/fputws.texi (fputws): Likewise.
17223         * doc/posix-functions/fwide.texi (fwide): Likewise.
17224         * doc/posix-functions/getwc.texi (getwc): Likewise.
17225         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17226         * doc/posix-functions/putwc.texi (putwc): Likewise.
17227         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17228         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17229         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17230         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17231         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17232         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17233         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17234         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17235         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17236         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17237         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17238
17239 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17240
17241         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17242         * lib/ioctl.c: Include <sys/ioctl.h>.
17243
17244 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17245
17246         * modules/getdate-tests (Depends-on): Add progname.
17247         * tests/test-getdate.c: Use progname module, to avoid link errors
17248         on non-glibc systems.
17249
17250 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17251
17252         * modules/filenamecat-tests (Depends-on): Add progname.
17253         * modules/fstrcmp-tests (Depends-on): Likewise.
17254
17255         * tests/test-filenamecat.c: Use progname module, to avoid link
17256         errors on non-glibc systems.
17257         * tests/test-fstrcmp.c: Likewise.
17258
17259 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17260
17261         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17262         * lib/gettimeofday.c: Move extern declaration out of function.
17263
17264 2009-01-18  Bruno Haible  <bruno@clisp.org>
17265
17266         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17267         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17268         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17269
17270 2009-01-18  Bruno Haible  <bruno@clisp.org>
17271
17272         * lib/strftime.c (MEMPCPY): Remove unused macro.
17273         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17274
17275 2009-01-18  Martin Lambers  <marlam@marlam.de>
17276
17277         New module 'link'.
17278         * lib/unistd.in.h (link): New declaration.
17279         * lib/link.c: New file.
17280         * m4/link.m4: New file.
17281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17282         HAVE_LINK.
17283         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17284         * modules/link: New file.
17285         * doc/posix-functions/link.texi: Mention the new module.
17286
17287 2009-01-18  Bruno Haible  <bruno@clisp.org>
17288
17289         * tests/test-avltree_list.c (main): Call set_program_name.
17290         * tests/test-avltree_oset.c (main): Likewise.
17291         * tests/test-obstack-printf.c: Include progname.h.
17292         (main): Call set_program_name.
17293         * tests/test-quotearg.c: Include progname.h.
17294         (main): Call set_program_name.
17295         * tests/test-xmemdup0.c: Include progname.h.
17296         (main): Call set_program_name.
17297
17298 2009-01-18  Bruno Haible  <bruno@clisp.org>
17299
17300         New module 'alphasort'.
17301         * lib/dirent.in.h (alphasort): New declaration.
17302         * lib/alphasort.c: New file, from glibc with modifications.
17303         * m4/alphasort.m4: New file.
17304         * modules/alphasort: New file.
17305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17306         HAVE_ALPHASORT.
17307         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17308         HAVE_ALPHASORT.
17309         * doc/posix-functions/alphasort.texi: Mention the new module and the
17310         portability problems.
17311
17312 2009-01-18  Bruno Haible  <bruno@clisp.org>
17313
17314         New module 'scandir'.
17315         * lib/dirent.in.h (scandir): New declaration.
17316         * lib/scandir.c: New file, from glibc with modifications.
17317         * m4/scandir.m4: New file.
17318         * modules/scandir: New file.
17319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17320         HAVE_SCANDIR.
17321         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17322         HAVE_SCANDIR.
17323         * doc/posix-functions/scandir.texi: Mention the new module and the
17324         portability problems.
17325
17326 2009-01-17  Bruno Haible  <bruno@clisp.org>
17327
17328         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17329         Update documentation.
17330         (func_remove_suffix): Escape all dots in the suffix. Update
17331         documentation.
17332         (func_filter_filelist): Update documentation.
17333         Reported by Ralf Wildenhues.
17334
17335 2009-01-17  Bruno Haible  <bruno@clisp.org>
17336
17337         * modules/dprintf-posix-tests: New file.
17338         * tests/test-dprintf-posix.sh: New file.
17339         * tests/test-dprintf-posix.c: New file.
17340
17341         New modules 'dprintf', 'dprintf-posix'.
17342         * lib/stdio.in.h (dprintf): New declaration.
17343         * lib/dprintf.c: New file.
17344         * m4/dprintf.m4: New file.
17345         * m4/dprintf-posix.m4: New file.
17346         * modules/dprintf: New file.
17347         * modules/dprintf-posix: New file.
17348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17349         HAVE_DPRINTF, REPLACE_DPRINTF.
17350         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17351         HAVE_DPRINTF, REPLACE_DPRINTF.
17352         * doc/posix-functions/dprintf.texi: Mention the new modules.
17353
17354 2009-01-17  Bruno Haible  <bruno@clisp.org>
17355
17356         * modules/vdprintf-posix-tests: New file.
17357         * tests/test-vdprintf-posix.sh: New file.
17358         * tests/test-vdprintf-posix.c: New file.
17359
17360         New modules 'vdprintf', 'vdprintf-posix'.
17361         * lib/stdio.in.h (vdprintf): New declaration.
17362         * lib/vdprintf.c: New file.
17363         * m4/vdprintf.m4: New file.
17364         * m4/vdprintf-posix.m4: New file.
17365         * modules/vdprintf: New file.
17366         * modules/vdprintf-posix: New file.
17367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17368         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17369         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17370         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17371         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17372
17373 2009-01-17  Bruno Haible  <bruno@clisp.org>
17374
17375         Fix replacement of fopen on mingw.
17376         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17377         mingw.
17378
17379 2009-01-17  Bruno Haible  <bruno@clisp.org>
17380
17381         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17382         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17383
17384 2009-01-17  Bruno Haible  <bruno@clisp.org>
17385
17386         Avoid test-fflush2.sh failure on mingw.
17387         * tests/test-fflush2.c: Include binary-io.h.
17388         (main): Put standard input into binary mode.
17389         * modules/fflush-tests (Depends-on): Add binary-io.
17390
17391 2009-01-17  Bruno Haible  <bruno@clisp.org>
17392
17393         * lib/wchar.in.h: In another particular situation, include only the
17394         system's <wchar.h> file.
17395         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17396         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17397         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17398
17399 2009-01-17  Bruno Haible  <bruno@clisp.org>
17400
17401         Support for stripping executables in --enable-relocatable.
17402         * build-aux/install-reloc: Expect one more argument, or an environment
17403         variable RELOC_STRIP_PROG. If set, strip the destination program and
17404         its wrapper.
17405         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17406         RELOC_STRIP_PROG.
17407         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17408         to set RELOCATABLE_STRIP.
17409         * NEWS: Mention the new Makefile requirement.
17410
17411 2009-01-17  Bruno Haible  <bruno@clisp.org>
17412
17413         * build-aux/install-reloc: Remove debugging information left over by
17414         C compiler on MacOS X.
17415
17416 2009-01-17  Bruno Haible  <bruno@clisp.org>
17417
17418         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17419         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17420         _NSGetExecutablePath.
17421
17422 2009-01-16  Jim Meyering  <meyering@redhat.com>
17423
17424         strerror: avoid warnings about discarding "const"
17425         * lib/strerror.c (rpl_strerror): Instead of returning a const
17426         string from each and every "case", use a variable, and add a single
17427         cast after the switch.
17428
17429 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17430
17431         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17432
17433 2009-01-16  Bruno Haible  <bruno@clisp.org>
17434
17435         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17436         array initializer syntax that also works in C++ mode.
17437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17438
17439 2009-01-16  Jim Meyering  <meyering@redhat.com>
17440
17441         poll: suppress a warning
17442         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17443         to ignore "...unsigned expression < 0 is always false" warnings.
17444
17445 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17446
17447         poll: remove declarations of unused variables
17448         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17449         sockbuf and optlen.
17450
17451 2009-01-15  Bruno Haible  <bruno@clisp.org>
17452
17453         Make fflush-after-ungetc POSIX compliant on BSD systems.
17454         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17455         (clear_ungetc_buffer): Implement also for other systems.
17456         (rpl_fflush): On glibc systems, invoke
17457         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17458         clear_ungetc_buffer after fetching the stream's position, not before.
17459
17460 2009-01-15  Bruno Haible  <bruno@clisp.org>
17461
17462         Make fflush-after-ungetc POSIX compliant on glibc systems.
17463         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17464         after ungetc.
17465         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17466         (rpl_fflush): On glibc systems, simply call the system's fflush
17467         function after clearing the ungetc buffer.
17468         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17469         Instead, lseek only to the end of file, then use the system's fseeko
17470         for the rest. On glibc systems, reset the EOF indicator bit.
17471
17472 2009-01-15  Jim Meyering  <meyering@redhat.com>
17473
17474         openmp.m4: revert quote-adding change, for portability to older autoconf
17475         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17476         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17477         Simon Josefsson noticed the problem when using autoconf-2.61.
17478
17479 2009-01-15  Bruno Haible  <bruno@clisp.org>
17480
17481         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17482         * tests/test-fflush2.c (ASSERT): Always fail.
17483         (main): Add two tests for fflush() after ungetc(), taking into account
17484         the Austin Group's clarification.
17485         Suggested by Eric Blake.
17486
17487 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17488
17489         mktime.m4: remove K&R-style function prototypes
17490         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17491         for the Sun C++ compiler.
17492
17493 2009-01-14  Bruno Haible  <bruno@clisp.org>
17494
17495         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17496         while including <wchar.h>.
17497         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17498         the system's <wchar.h> file.
17499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17500
17501 2009-01-14  Bruno Haible  <bruno@clisp.org>
17502
17503         * m4/csharp.m4: Don't mention gettext on the serial number line.
17504         * m4/csharpexec.m4: Likewise.
17505         * m4/eaccess.m4: Likewise.
17506         * m4/javaexec.m4: Likewise.
17507         * m4/sig_atomic_t.m4: Likewise.
17508         * m4/tmpdir.m4: Likewise.
17509         * m4/intldir.m4: Bump gettext version.
17510         * m4/lib-ld.m4: Likewise.
17511
17512 2009-01-14  Bruno Haible  <bruno@clisp.org>
17513
17514         * lib/progname.c (set_program_name): Add more comments.
17515         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17516
17517 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17518
17519         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17520         were sys/stat.h does not define it.
17521
17522 2009-01-14  Jim Meyering  <meyering@redhat.com>
17523
17524         many *.m4 files: improve m4 quoting
17525         99% of this change was performed by running the following commands:
17526         git ls-files | grep '\.m4$' | xargs perl -pi \
17527           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17528           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17529           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17530           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17531         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17532         The remainder were to add Copyright dates, increment serial numbers,
17533         undo some changes in comments, exclude m4/intl.m4, and add quotes
17534         around the "1" in ",1" where the unusual spacing prohibited the
17535         above regexps from doing the job.  For more details, see
17536         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17537         * m4/acl.m4: Modified.
17538         * m4/afs.m4: Likewise.
17539         * m4/alloca.m4: Likewise.
17540         * m4/argp.m4: Likewise.
17541         * m4/argz.m4: Likewise.
17542         * m4/atexit.m4: Likewise.
17543         * m4/bison-i18n.m4: Likewise.
17544         * m4/bison.m4: Likewise.
17545         * m4/byteswap.m4: Likewise.
17546         * m4/c-stack.m4: Likewise.
17547         * m4/c-strtod.m4: Likewise.
17548         * m4/calloc.m4: Likewise.
17549         * m4/canonicalize-lgpl.m4: Likewise.
17550         * m4/chown.m4: Likewise.
17551         * m4/clock_time.m4: Likewise.
17552         * m4/codeset.m4: Likewise.
17553         * m4/copy-file.m4: Likewise.
17554         * m4/csharp.m4: Likewise.
17555         * m4/csharpcomp.m4: Likewise.
17556         * m4/csharpexec.m4: Likewise.
17557         * m4/d-ino.m4: Likewise.
17558         * m4/d-type.m4: Likewise.
17559         * m4/dirfd.m4: Likewise.
17560         * m4/double-slash-root.m4: Likewise.
17561         * m4/eaccess.m4: Likewise.
17562         * m4/eealloc.m4: Likewise.
17563         * m4/environ.m4: Likewise.
17564         * m4/errno_h.m4: Likewise.
17565         * m4/euidaccess.m4: Likewise.
17566         * m4/execute.m4: Likewise.
17567         * m4/fatal-signal.m4: Likewise.
17568         * m4/fchdir.m4: Likewise.
17569         * m4/fcntl_h.m4: Likewise.
17570         * m4/fileblocks.m4: Likewise.
17571         * m4/filenamecat.m4: Likewise.
17572         * m4/findprog.m4: Likewise.
17573         * m4/flexmember.m4: Likewise.
17574         * m4/fnmatch.m4: Likewise.
17575         * m4/fopen.m4: Likewise.
17576         * m4/fpending.m4: Likewise.
17577         * m4/fprintf-posix.m4: Likewise.
17578         * m4/free.m4: Likewise.
17579         * m4/frexp.m4: Likewise.
17580         * m4/frexpl.m4: Likewise.
17581         * m4/fsusage.m4: Likewise.
17582         * m4/ftruncate.m4: Likewise.
17583         * m4/gc-camellia.m4: Likewise.
17584         * m4/gc-random.m4: Likewise.
17585         * m4/gc.m4: Likewise.
17586         * m4/getaddrinfo.m4: Likewise.
17587         * m4/getcwd-abort-bug.m4: Likewise.
17588         * m4/getcwd-path-max.m4: Likewise.
17589         * m4/getdate.m4: Likewise.
17590         * m4/getdomainname.m4: Likewise.
17591         * m4/getgroups.m4: Likewise.
17592         * m4/gethostname.m4: Likewise.
17593         * m4/gethrxtime.m4: Likewise.
17594         * m4/getline.m4: Likewise.
17595         * m4/getloadavg.m4: Likewise.
17596         * m4/getndelim2.m4: Likewise.
17597         * m4/getpass.m4: Likewise.
17598         * m4/gettext.m4: Likewise.
17599         * m4/gettime.m4: Likewise.
17600         * m4/gettimeofday.m4: Likewise.
17601         * m4/gnulib-common.m4: Likewise.
17602         * m4/group-member.m4: Likewise.
17603         * m4/host-os.m4: Likewise.
17604         * m4/iconv.m4: Likewise.
17605         * m4/iconv_open.m4: Likewise.
17606         * m4/inet_ntop.m4: Likewise.
17607         * m4/inet_pton.m4: Likewise.
17608         * m4/inline.m4: Likewise.
17609         * m4/intldir.m4: Likewise.
17610         * m4/intlmacosx.m4: Likewise.
17611         * m4/intmax.m4: Likewise.
17612         * m4/intmax_t.m4: Likewise.
17613         * m4/inttypes.m4: Likewise.
17614         * m4/inttypes_h.m4: Likewise.
17615         * m4/inttypes-pri.m4: Likewise.
17616         * m4/isapipe.m4: Likewise.
17617         * m4/isnand.m4: Likewise.
17618         * m4/isnanf.m4: Likewise.
17619         * m4/isnanl.m4: Likewise.
17620         * m4/javacomp.m4: Likewise.
17621         * m4/javaexec.m4: Likewise.
17622         * m4/jm-winsz1.m4: Likewise.
17623         * m4/jm-winsz2.m4: Likewise.
17624         * m4/lchown.m4: Likewise.
17625         * m4/lcmessage.m4: Likewise.
17626         * m4/ldexpl.m4: Likewise.
17627         * m4/lib-ld.m4: Likewise.
17628         * m4/lib-link.m4: Likewise.
17629         * m4/libsigsegv.m4: Likewise.
17630         * m4/link-follow.m4: Likewise.
17631         * m4/localcharset.m4: Likewise.
17632         * m4/locale-fr.m4: Likewise.
17633         * m4/locale-ja.m4: Likewise.
17634         * m4/locale-tr.m4: Likewise.
17635         * m4/locale-zh.m4: Likewise.
17636         * m4/lock.m4: Likewise.
17637         * m4/longlong.m4: Likewise.
17638         * m4/ls-mntd-fs.m4: Likewise.
17639         * m4/lstat.m4: Likewise.
17640         * m4/malloc.m4: Likewise.
17641         * m4/mathl.m4: Likewise.
17642         * m4/mbrtowc.m4: Likewise.
17643         * m4/mbstate_t.m4: Likewise.
17644         * m4/mbswidth.m4: Likewise.
17645         * m4/memchr.m4: Likewise.
17646         * m4/memcmp.m4: Likewise.
17647         * m4/memcpy.m4: Likewise.
17648         * m4/memmem.m4: Likewise.
17649         * m4/memmove.m4: Likewise.
17650         * m4/mempcpy.m4: Likewise.
17651         * m4/memrchr.m4: Likewise.
17652         * m4/memset.m4: Likewise.
17653         * m4/minmax.m4: Likewise.
17654         * m4/mkdir-slash.m4: Likewise.
17655         * m4/mkdtemp.m4: Likewise.
17656         * m4/mktime.m4: Likewise.
17657         * m4/mmap-anon.m4: Likewise.
17658         * m4/mountlist.m4: Likewise.
17659         * m4/nanosleep.m4: Likewise.
17660         * m4/nls.m4: Likewise.
17661         * m4/nocrash.m4: Likewise.
17662         * m4/open.m4: Likewise.
17663         * m4/openat.m4: Likewise.
17664         * m4/openmp.m4: Likewise.
17665         * m4/pathmax.m4: Likewise.
17666         * m4/perl.m4: Likewise.
17667         * m4/physmem.m4: Likewise.
17668         * m4/pipe.m4: Likewise.
17669         * m4/po.m4: Likewise.
17670         * m4/poll.m4: Likewise.
17671         * m4/posixtm.m4: Likewise.
17672         * m4/posixver.m4: Likewise.
17673         * m4/printf-frexp.m4: Likewise.
17674         * m4/printf-frexpl.m4: Likewise.
17675         * m4/printf-posix.m4: Likewise.
17676         * m4/printf-posix-rpl.m4: Likewise.
17677         * m4/printf.m4: Likewise.
17678         * m4/progtest.m4: Likewise.
17679         * m4/putenv.m4: Likewise.
17680         * m4/readline.m4: Likewise.
17681         * m4/readlink.m4: Likewise.
17682         * m4/readutmp.m4: Likewise.
17683         * m4/realloc.m4: Likewise.
17684         * m4/regex.m4: Likewise.
17685         * m4/relocatable.m4: Likewise.
17686         * m4/relocatable-lib.m4: Likewise.
17687         * m4/rename-dest-slash.m4: Likewise.
17688         * m4/rename.m4: Likewise.
17689         * m4/rmdir-errno.m4: Likewise.
17690         * m4/rmdir.m4: Likewise.
17691         * m4/roundf.m4: Likewise.
17692         * m4/roundl.m4: Likewise.
17693         * m4/rpmatch.m4: Likewise.
17694         * m4/save-cwd.m4: Likewise.
17695         * m4/selinux-selinux-h.m4: Likewise.
17696         * m4/setenv.m4: Likewise.
17697         * m4/settime.m4: Likewise.
17698         * m4/sig2str.m4: Likewise.
17699         * m4/sig_atomic_t.m4: Likewise.
17700         * m4/signalblocking.m4: Likewise.
17701         * m4/signbit.m4: Likewise.
17702         * m4/sigpipe.m4: Likewise.
17703         * m4/sockets.m4: Likewise.
17704         * m4/sockpfaf.m4: Likewise.
17705         * m4/st_dm_mode.m4: Likewise.
17706         * m4/stat-time.m4: Likewise.
17707         * m4/stdbool.m4: Likewise.
17708         * m4/stdint.m4: Likewise.
17709         * m4/stdint_h.m4: Likewise.
17710         * m4/stpcpy.m4: Likewise.
17711         * m4/stpncpy.m4: Likewise.
17712         * m4/strcase.m4: Likewise.
17713         * m4/strchrnul.m4: Likewise.
17714         * m4/strcspn.m4: Likewise.
17715         * m4/strdup.m4: Likewise.
17716         * m4/strftime.m4: Likewise.
17717         * m4/strndup.m4: Likewise.
17718         * m4/strnlen.m4: Likewise.
17719         * m4/strpbrk.m4: Likewise.
17720         * m4/strptime.m4: Likewise.
17721         * m4/strsep.m4: Likewise.
17722         * m4/strtod.m4: Likewise.
17723         * m4/strtoimax.m4: Likewise.
17724         * m4/strtok_r.m4: Likewise.
17725         * m4/strtol.m4: Likewise.
17726         * m4/strtoll.m4: Likewise.
17727         * m4/strtoul.m4: Likewise.
17728         * m4/strtoull.m4: Likewise.
17729         * m4/strtoumax.m4: Likewise.
17730         * m4/strverscmp.m4: Likewise.
17731         * m4/threadlib.m4: Likewise.
17732         * m4/timegm.m4: Likewise.
17733         * m4/tm_gmtoff.m4: Likewise.
17734         * m4/tmpdir.m4: Likewise.
17735         * m4/tmpfile.m4: Likewise.
17736         * m4/tzset.m4: Likewise.
17737         * m4/uintmax_t.m4: Likewise.
17738         * m4/unlinkdir.m4: Likewise.
17739         * m4/unlocked-io.m4: Likewise.
17740         * m4/uptime.m4: Likewise.
17741         * m4/userspec.m4: Likewise.
17742         * m4/utimbuf.m4: Likewise.
17743         * m4/utime.m4: Likewise.
17744         * m4/utimes-null.m4: Likewise.
17745         * m4/utimes.m4: Likewise.
17746         * m4/vararrays.m4: Likewise.
17747         * m4/vasnprintf.m4: Likewise.
17748         * m4/vfprintf-posix.m4: Likewise.
17749         * m4/vprintf-posix.m4: Likewise.
17750         * m4/wait-process.m4: Likewise.
17751         * m4/wchar_t.m4: Likewise.
17752         * m4/wint_t.m4: Likewise.
17753         * m4/write-any-file.m4: Likewise.
17754         * m4/yield.m4: Likewise.
17755
17756 2009-01-13  Bruno Haible  <bruno@clisp.org>
17757
17758         Avoid test-copy-file.sh failures when ACL support insufficient.
17759         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17760         TESTS_ENVIRONMENT.
17761         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17762         Reported by Jim Meyering.
17763
17764 2009-01-13  Bruno Haible  <bruno@clisp.org>
17765
17766         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17767         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17768         * modules/unistdio/u8-printf-parse (Files): Likewise.
17769         * modules/unistdio/u32-printf-parse (Files): Likewise.
17770         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17771
17772 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17773
17774         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17775         and m4/inttypes_h.m4 too.
17776
17777 2009-01-12  Eric Blake  <ebb9@byu.net>
17778
17779         tests: IRIX 6.2 cc can't compile -0.0 into .data
17780         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17781         rather than at compile-time.
17782         * tests/test-floorl.c (minus_zero): Likewise.
17783         * tests/test-frexpl.c (minus_zero): Likewise.
17784         * tests/test-isnan.c (minus_zerol): Likewise.
17785         * tests/test-isnanl.h (minus_zero): Likewise.
17786         * tests/test-ldexpl.c (minus_zero): Likewise.
17787         * tests/test-roundl.c (minus_zero): Likewise.
17788         * tests/test-signbit.c (minus_zerol): Likewise.
17789         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17790         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17791         * tests/test-truncl.c (minus_zero): Likewise.
17792         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17793         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17794         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17795
17796 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17797
17798         regex: fix glibc bug 9697
17799         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17800         handling.
17801
17802 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17803
17804         regex: fix glibc bug 697
17805         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17806         being NULL also if there are no backreferences.
17807
17808 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17809
17810         regex: merge glibc changes
17811         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17812         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17813         re_string_skip_chars, re_string_reconstruct): Likewise.
17814         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17815
17816 2009-01-07  Jim Meyering  <meyering@redhat.com>
17817
17818         poll: filter through cppi
17819         * lib/poll.c: Indent cpp directives to reflect nesting.
17820
17821 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17822
17823         poll: don't return uninitialized
17824         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17825
17826 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17827
17828         avoid compile failure on AIX 6.1
17829         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17830         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17831
17832 2009-01-04  Jim Meyering  <meyering@redhat.com>
17833
17834         remove duplicate inclusion of <stdio.h>
17835         * tests/test-fprintf-posix.c: Likewise.
17836         * tests/test-printf-posix.c: Likewise.
17837         * tests/test-snprintf-posix.c: Likewise.
17838         * tests/test-sprintf-posix.c: Likewise.
17839         * tests/test-vasprintf-posix.c: Likewise.
17840         * tests/test-vfprintf-posix.c: Likewise.
17841         * tests/test-vprintf-posix.c: Likewise.
17842         * tests/test-vsnprintf-posix.c: Likewise.
17843         * tests/test-vsprintf-posix.c: Likewise.
17844
17845 2009-01-03  Jim Meyering  <meyering@redhat.com>
17846
17847         gnulib-tool: fix sed-based filtering
17848         * gnulib-tool (func_filter_filelist): Remove extra backslash
17849         in sed_fff_filter definition.
17850
17851 2009-01-02  Jim Meyering  <meyering@redhat.com>
17852
17853         strftime: avoid compilation failure on Solaris 2.6
17854         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17855         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17856         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17857         be available.  Reported by Tom G. Christensen.  Details in
17858         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17859
17860 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17861             Bruno Haible  <bruno@clisp.org>
17862
17863         Speed up gnulib-tool by doing more string processing through shell
17864         built-ins.
17865         * gnulib-tool (fast_func_append): New variable.
17866         (func_remove_prefix, func_remove_suffix): New functions.
17867         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17868         (func_filter_filelist): New function.
17869         (func_get_dependencies): Use func_remove_suffix instead of sed.
17870         (func_get_automake_snippet): Use func_filter_filelist instead of a
17871         subshell and sed invocation.
17872
17873 2009-01-01  Bruno Haible  <bruno@clisp.org>
17874
17875         Fix a security bug.
17876         * gnulib-tool (func_import, import, update): Don't allow the characters
17877         '"', '$', '`', '\' in macro arguments that become part of commands that
17878         are evaluated.
17879
17880 2009-01-01  Bruno Haible  <bruno@clisp.org>
17881
17882         * gnulib-tool (func_reset_sigpipe): Add more comments.
17883
17884 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17885
17886         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17887         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17888         already know the answer.
17889
17890 2009-01-01  Jim Meyering  <meyering@redhat.com>
17891
17892         * lib/version-etc.c (version_etc_va): Update copyright year.
17893
17894 2008-12-30  Bruno Haible  <bruno@clisp.org>
17895
17896         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17897         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17898         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17899
17900 2008-12-29  Eric Blake  <ebb9@byu.net>
17901
17902         multiarch: avoid autoconf AC_REQUIRE bug
17903         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17904         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17905         2.63 and older.
17906         Reported by Bruno Haible, and analyzed in
17907         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17908
17909 2008-12-29  Bruno Haible  <bruno@clisp.org>
17910
17911         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17912         files in subdirectories correctly.
17913         Reported by Ralf Wildenhues.
17914
17915 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17916
17917         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17918         rather than 'join FILE -', for Solaris join.
17919
17920 2008-12-29  Bruno Haible  <bruno@clisp.org>
17921
17922         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17923         quoting.
17924         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17925         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17926         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17927         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17928         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17929         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17930         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17931         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17932         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17933         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17934         * m4/nls.m4 (AM_NLS): Likewise.
17935         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17936         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17937         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17938         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17939         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17940         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17941         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17942         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17943         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17944         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17945         * m4/xsize.m4 (gl_XSIZE): Likewise.
17946         Suggested by Jim Meyering.
17947
17948 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17949
17950         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17951         * lib/parse-duration.c: use a switch instead of cascading if's.
17952
17953 2008-12-29  Eric Blake  <ebb9@byu.net>
17954
17955         wchar.h: supply WEOF on Irix 5.3
17956         * lib/wchar.in.h (wint_t): Also supply WEOF.
17957         * lib/wctype.in.h (wint_t): Likewise.
17958         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17959         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17960         Reported by Tom G. Christensen.
17961
17962 2008-12-26  Bruno Haible  <bruno@clisp.org>
17963
17964         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17965         i486, i586, i686.
17966
17967 2008-12-26  Bruno Haible  <bruno@clisp.org>
17968
17969         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17970
17971 2008-12-26  Bruno Haible  <bruno@clisp.org>
17972
17973         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17974         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17975         not __STDC_CONSTANT_MACROS.
17976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17977
17978 2008-12-25  Bruno Haible  <bruno@clisp.org>
17979
17980         Add support for universal builds to vasnprintf.
17981         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17982         universal builds, guess no.
17983         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17984         * modules/vasprintf-posix (Depends-on): Likewise.
17985         * modules/fprintf-posix (Depends-on): Likewise.
17986         * modules/vfprintf-posix (Depends-on): Likewise.
17987         * modules/snprintf-posix (Depends-on): Likewise.
17988         * modules/vsnprintf-posix (Depends-on): Likewise.
17989         * modules/sprintf-posix (Depends-on): Likewise.
17990         * modules/vsprintf-posix (Depends-on): Likewise.
17991         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17992         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17993         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17994         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17995         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17996         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17997         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17998
17999         Add support for universal builds to <inttypes.h>.
18000         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18001         _SCNu64_PREFIX): In Apple
18002         universal builds, define directly, using _LP64.
18003         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18004         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18005         * modules/inttypes (Depends-on): Add multiarch.
18006         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18007
18008         Add support for universal builds to <stdint.h>.
18009         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18010         universal builds, define directly, using _LP64.
18011         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18012         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18013         and size_t.
18014         * modules/stdint (Depends-on): Add multiarch.
18015         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18016
18017         New module 'multiarch'.
18018         * modules/multiarch: New file.
18019         * m4/multiarch.m4: New file.
18020
18021 2008-12-25  Bruno Haible  <bruno@clisp.org>
18022
18023         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18024
18025 2008-12-25  Bruno Haible  <bruno@clisp.org>
18026
18027         * modules/btowc (License): Relicense under LGPLv2+.
18028         * modules/mbsinit (License): Likewise.
18029         * modules/mbrtowc (License): Likewise.
18030         * modules/wcrtomb (License): Likewise.
18031         * modules/streq (License): Likewise.
18032         Reported by David Lutterkort <lutter@redhat.com>.
18033
18034 2008-12-23  Bruno Haible  <bruno@clisp.org>
18035
18036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18037
18038 2008-12-23  Bruno Haible  <bruno@clisp.org>
18039
18040         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18042         GETADDRINFO_LIB, not in LIBS.
18043         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18044         * modules/canon-host (Link): Likewise.
18045         * NEWS: Mention the change.
18046         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18047         GETADDRINFO_LIB.
18048
18049 2008-12-22  Bruno Haible  <bruno@clisp.org>
18050
18051         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18052         * doc/posix-functions/iswalpha_l.texi: Likewise.
18053         * doc/posix-functions/iswblank_l.texi: Likewise.
18054         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18055         * doc/posix-functions/iswctype_l.texi: Likewise.
18056         * doc/posix-functions/iswdigit_l.texi: Likewise.
18057         * doc/posix-functions/iswgraph_l.texi: Likewise.
18058         * doc/posix-functions/iswlower_l.texi: Likewise.
18059         * doc/posix-functions/iswprint_l.texi: Likewise.
18060         * doc/posix-functions/iswpunct_l.texi: Likewise.
18061         * doc/posix-functions/iswspace_l.texi: Likewise.
18062         * doc/posix-functions/iswupper_l.texi: Likewise.
18063         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18064         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18065         * doc/posix-functions/open_wmemstream.texi: Likewise.
18066         * doc/posix-functions/swscanf.texi: Likewise.
18067         * doc/posix-functions/towctrans_l.texi: Likewise.
18068         * doc/posix-functions/towlower.texi: Likewise.
18069         * doc/posix-functions/towlower_l.texi: Likewise.
18070         * doc/posix-functions/towupper.texi: Likewise.
18071         * doc/posix-functions/towupper_l.texi: Likewise.
18072         * doc/posix-functions/vfwprintf.texi: Likewise.
18073         * doc/posix-functions/vfwscanf.texi: Likewise.
18074         * doc/posix-functions/vswscanf.texi: Likewise.
18075         * doc/posix-functions/vwprintf.texi: Likewise.
18076         * doc/posix-functions/vwscanf.texi: Likewise.
18077         * doc/posix-functions/wcpcpy.texi: Likewise.
18078         * doc/posix-functions/wcpncpy.texi: Likewise.
18079         * doc/posix-functions/wcscasecmp.texi: Likewise.
18080         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18081         * doc/posix-functions/wcscoll_l.texi: Likewise.
18082         * doc/posix-functions/wcsdup.texi: Likewise.
18083         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18084         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18085         * doc/posix-functions/wcsnlen.texi: Likewise.
18086         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18087         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18088         * doc/posix-functions/wctrans_l.texi: Likewise.
18089         * doc/posix-functions/wctype_l.texi: Likewise.
18090         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18091         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18092         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18093         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18094         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18095         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18096         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18097         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18098         * doc/glibc-functions/wcschrnul.texi: Likewise.
18099         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18100         * doc/glibc-functions/wcstod_l.texi: Likewise.
18101         * doc/glibc-functions/wcstof_l.texi: Likewise.
18102         * doc/glibc-functions/wcstol_l.texi: Likewise.
18103         * doc/glibc-functions/wcstold_l.texi: Likewise.
18104         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18105         * doc/glibc-functions/wcstoq.texi: Likewise.
18106         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18107         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18108         * doc/glibc-functions/wcstouq.texi: Likewise.
18109         * doc/glibc-functions/wmempcpy.texi: Likewise.
18110
18111 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18112             Eric Blake  <ebb9@byu.net>
18113             Paolo Bonzini  <bonzini@gnu.org>
18114             Bruno Haible  <bruno@clisp.org>
18115
18116         Make c-stack work on Haiku.
18117         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18118         (c_stack_action): Use SA_ONSTACK flag.
18119
18120 2008-12-22  Bruno Haible  <bruno@clisp.org>
18121
18122         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18123
18124 2008-12-22  Bruno Haible  <bruno@clisp.org>
18125
18126         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18127         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18128         being overridden.
18129         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18130         New macros.
18131         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18133         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18134         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18135
18136 2008-12-22  Bruno Haible  <bruno@clisp.org>
18137
18138         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18139         from test code.
18140
18141 2008-12-22  Eric Blake  <ebb9@byu.net>
18142
18143         Avoid gcc warnings on cygwin.
18144         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18145         Avoid unused variable.
18146         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18147         Likewise.
18148
18149 2008-12-22  Bruno Haible  <bruno@clisp.org>
18150
18151         Remove HAVE_MBRTOWC conditionals.
18152         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18153         (mbscasecmp): Assume mbrtowc function.
18154         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18155         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18156         * lib/mbschr.c: Include mbuiter.h unconditionally.
18157         (mbschr): Assume mbrtowc function.
18158         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18159         (mbscspn): Assume mbrtowc function.
18160         * lib/mbslen.c: Include mbuiter.h unconditionally.
18161         (mbslen): Assume mbrtowc function.
18162         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18163         (mbsncasecmp): Assume mbrtowc function.
18164         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18165         (mbsnlen): Assume mbrtowc function.
18166         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18167         (mbspbrk): Assume mbrtowc function.
18168         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18169         (mbspcasecmp): Assume mbrtowc function.
18170         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18171         (mbsrchr): Assume mbrtowc function.
18172         * lib/mbssep.c: Include mbuiter.h unconditionally.
18173         (mbssep): Assume mbrtowc function.
18174         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18175         (mbsspn): Assume mbrtowc function.
18176         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18177         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18178         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18179         (mbstok_r): Assume mbrtowc function.
18180         * lib/propername.c: Include mbuiter.h unconditionally.
18181         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18182         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18183         (trim2): Assume mbrtowc function.
18184         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18185         (mbsnwidth): Assume mbrtowc function.
18186         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18187         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18188         fallback definitions.
18189         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18190
18191 2008-12-22  Bruno Haible  <bruno@clisp.org>
18192
18193         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18194
18195 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18196
18197         * modules/regex: Request emulations for the mb*/wc* functions we need.
18198         * m4/regex.m4: Don't look for those functions here.
18199         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18200
18201 2008-12-22  Bruno Haible  <bruno@clisp.org>
18202
18203         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18204
18205 2008-12-21  Bruno Haible  <bruno@clisp.org>
18206
18207         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18208         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18209         (Include): Remove conditionalization.
18210         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18211         (Include): Remove conditionalization.
18212         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18213         (Include): Remove conditionalization.
18214         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18215         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18216         * NEWS: Mention the change.
18217         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18218         via Sergey Poznyakoff <gray@gnu.org.ua>.
18219
18220 2008-12-21  Bruno Haible  <bruno@clisp.org>
18221
18222         * MODULES.html.sh (Extended multibyte and wide character utilities
18223         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18224         wcrtomb, wcsrtombs.
18225         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18226         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18227         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18228         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18229
18230 2008-12-21  Bruno Haible  <bruno@clisp.org>
18231
18232         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18233
18234 2008-12-21  Bruno Haible  <bruno@clisp.org>
18235
18236         * modules/wcsnrtombs-tests: New file.
18237         * tests/test-wcsnrtombs1.sh: New file.
18238         * tests/test-wcsnrtombs2.sh: New file.
18239         * tests/test-wcsnrtombs3.sh: New file.
18240         * tests/test-wcsnrtombs4.sh: New file.
18241         * tests/test-wcsnrtombs.c: New file.
18242
18243         New module 'wcsnrtombs'.
18244         * lib/wchar.in.h (wcsnrtombs): New declaration.
18245         * lib/wcsnrtombs.c: New file.
18246         * lib/wcsrtombs-state.c: New file.
18247         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18248         (internal_state): Remove variable.
18249         * m4/wcsnrtombs.m4: New file.
18250         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18251         compilation units.
18252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18253         HAVE_WCSNRTOMBS.
18254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18255         HAVE_WCSNRTOMBS.
18256         * modules/wcsnrtombs: New file.
18257         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18258         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18259
18260 2008-12-21  Bruno Haible  <bruno@clisp.org>
18261
18262         * modules/wcsrtombs-tests: New file.
18263         * tests/test-wcsrtombs1.sh: New file.
18264         * tests/test-wcsrtombs2.sh: New file.
18265         * tests/test-wcsrtombs3.sh: New file.
18266         * tests/test-wcsrtombs4.sh: New file.
18267         * tests/test-wcsrtombs.c: New file.
18268
18269         New module 'wcsrtombs'.
18270         * lib/wchar.in.h (wcsrtombs): New declaration.
18271         * lib/wcsrtombs.c: New file.
18272         * m4/wcsrtombs.m4: New file.
18273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18274         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18276         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18277         * modules/wcsrtombs: New file.
18278         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18279         bugs.
18280
18281 2008-12-21  Bruno Haible  <bruno@clisp.org>
18282
18283         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18284         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18285         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18286         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18287         if not correct.
18288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18289         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18290         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18291         m4/locale-zh.m4, m4/codeset.m4.
18292         * doc/posix-functions/wcrtomb.texi: Document the bug.
18293
18294 2008-12-21  Bruno Haible  <bruno@clisp.org>
18295
18296         Work around a btowc() bug on IRIX 6.5.
18297         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18298         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18299         REPLACE_WTOBC if not.
18300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18301         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18302         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18303
18304 2008-12-21  Bruno Haible  <bruno@clisp.org>
18305
18306         * modules/wcrtomb-tests: New file.
18307         * tests/test-wcrtomb.sh: New file.
18308         * tests/test-wcrtomb.c: New file.
18309
18310         New module 'wcrtomb'.
18311         * lib/wchar.in.h (wcrtomb): New declaration.
18312         * lib/wcrtomb.c: New file.
18313         * m4/wcrtomb.m4: New file.
18314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18315         HAVE_WCRTOMB.
18316         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18317         HAVE_WCRTOMB.
18318         * modules/wcrtomb: New file.
18319         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18320
18321 2008-12-21  Bruno Haible  <bruno@clisp.org>
18322
18323         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18324         * modules/mbsrtowcs (Files): Likewise.
18325         * modules/wctob (Files): Likewise.
18326         * modules/c-strcase-tests (Files): Likewise.
18327         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18328         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18329         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18330         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18331         * modules/vasnprintf-posix-tests (Files): Likewise.
18332
18333 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18334
18335         gitlog-to-changelog: pass all command-line arguments to git-log
18336         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18337         it is sometimes convenient to filter the commits in various ways.
18338         gitlog-to-changelog only allows --since to specify a start date,
18339         but git-log itself supports many other filtering mechanisms.
18340         At the moment, I want to filter by branch name.  Rather than
18341         adding a --branch option to gitlog-to-changelog, it seems more
18342         flexible to simply pass all options directly to git-log and let
18343         git do the work.  Notice that this effectively makes --since a
18344         redundant option for gitlog-to-changelog, but removing it would
18345         require current usage to change since calls would then require
18346         an additional '--'.
18347
18348 2008-12-21  Bruno Haible  <bruno@clisp.org>
18349
18350         * modules/mbsnrtowcs-tests: New file.
18351         * tests/test-mbsnrtowcs1.sh: New file.
18352         * tests/test-mbsnrtowcs2.sh: New file.
18353         * tests/test-mbsnrtowcs3.sh: New file.
18354         * tests/test-mbsnrtowcs4.sh: New file.
18355         * tests/test-mbsnrtowcs.c: New file.
18356
18357         New module 'mbsnrtowcs'.
18358         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18359         * lib/mbsnrtowcs.c: New file.
18360         * lib/mbsrtowcs-state.c: New file.
18361         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18362         (internal_state): Remove variable.
18363         * m4/mbsnrtowcs.m4: New file.
18364         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18365         compilation units.
18366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18367         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18368         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18369         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18370         * modules/mbsnrtowcs: New file.
18371         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18372         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18373         portability problem.
18374
18375 2008-12-21  Bruno Haible  <bruno@clisp.org>
18376
18377         Work around mbsrtowcs bug.
18378         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18379         (gl_FUNC_MBSRTOWCS): Invoke it.
18380         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18381         m4/locale-zh.m4.
18382         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18383
18384 2008-12-21  Bruno Haible  <bruno@clisp.org>
18385
18386         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18387
18388 2008-12-21  Bruno Haible  <bruno@clisp.org>
18389
18390         Update doc for AIX.
18391         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18392         16-bit wchar_t type.
18393         * doc/posix-functions/btowc.texi: Likewise.
18394         * doc/posix-functions/fgetwc.texi: Likewise.
18395         * doc/posix-functions/fgetws.texi: Likewise.
18396         * doc/posix-functions/fputwc.texi: Likewise.
18397         * doc/posix-functions/fputws.texi: Likewise.
18398         * doc/posix-functions/fwide.texi: Likewise.
18399         * doc/posix-functions/fwprintf.texi: Likewise.
18400         * doc/posix-functions/fwscanf.texi: Likewise.
18401         * doc/posix-functions/getwchar.texi: Likewise.
18402         * doc/posix-functions/getwc.texi: Likewise.
18403         * doc/posix-functions/iswalnum.texi: Likewise.
18404         * doc/posix-functions/iswalpha.texi: Likewise.
18405         * doc/posix-functions/iswblank.texi: Likewise.
18406         * doc/posix-functions/iswcntrl.texi: Likewise.
18407         * doc/posix-functions/iswctype.texi: Likewise.
18408         * doc/posix-functions/iswdigit.texi: Likewise.
18409         * doc/posix-functions/iswgraph.texi: Likewise.
18410         * doc/posix-functions/iswlower.texi: Likewise.
18411         * doc/posix-functions/iswprint.texi: Likewise.
18412         * doc/posix-functions/iswpunct.texi: Likewise.
18413         * doc/posix-functions/iswspace.texi: Likewise.
18414         * doc/posix-functions/iswupper.texi: Likewise.
18415         * doc/posix-functions/iswxdigit.texi: Likewise.
18416         * doc/posix-functions/mbrtowc.texi: Likewise.
18417         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18418         * doc/posix-functions/mbstowcs.texi: Likewise.
18419         * doc/posix-functions/mbtowc.texi: Likewise.
18420         * doc/posix-functions/putwchar.texi: Likewise.
18421         * doc/posix-functions/putwc.texi: Likewise.
18422         * doc/posix-functions/swprintf.texi: Likewise.
18423         * doc/posix-functions/tolower.texi: Likewise.
18424         * doc/posix-functions/toupper.texi: Likewise.
18425         * doc/posix-functions/towctrans.texi: Likewise.
18426         * doc/posix-functions/ungetwc.texi: Likewise.
18427         * doc/posix-functions/vswprintf.texi: Likewise.
18428         * doc/posix-functions/wcrtomb.texi: Likewise.
18429         * doc/posix-functions/wcscat.texi: Likewise.
18430         * doc/posix-functions/wcschr.texi: Likewise.
18431         * doc/posix-functions/wcscmp.texi: Likewise.
18432         * doc/posix-functions/wcscoll.texi: Likewise.
18433         * doc/posix-functions/wcscpy.texi: Likewise.
18434         * doc/posix-functions/wcscspn.texi: Likewise.
18435         * doc/posix-functions/wcsftime.texi: Likewise.
18436         * doc/posix-functions/wcslen.texi: Likewise.
18437         * doc/posix-functions/wcsncat.texi: Likewise.
18438         * doc/posix-functions/wcsncmp.texi: Likewise.
18439         * doc/posix-functions/wcsncpy.texi: Likewise.
18440         * doc/posix-functions/wcspbrk.texi: Likewise.
18441         * doc/posix-functions/wcsrchr.texi: Likewise.
18442         * doc/posix-functions/wcsrtombs.texi: Likewise.
18443         * doc/posix-functions/wcsspn.texi: Likewise.
18444         * doc/posix-functions/wcsstr.texi: Likewise.
18445         * doc/posix-functions/wcstod.texi: Likewise.
18446         * doc/posix-functions/wcstof.texi: Likewise.
18447         * doc/posix-functions/wcstoimax.texi: Likewise.
18448         * doc/posix-functions/wcstok.texi: Likewise.
18449         * doc/posix-functions/wcstold.texi: Likewise.
18450         * doc/posix-functions/wcstoll.texi: Likewise.
18451         * doc/posix-functions/wcstol.texi: Likewise.
18452         * doc/posix-functions/wcstombs.texi: Likewise.
18453         * doc/posix-functions/wcstoull.texi: Likewise.
18454         * doc/posix-functions/wcstoul.texi: Likewise.
18455         * doc/posix-functions/wcstoumax.texi: Likewise.
18456         * doc/posix-functions/wcswidth.texi: Likewise.
18457         * doc/posix-functions/wcsxfrm.texi: Likewise.
18458         * doc/posix-functions/wctob.texi: Likewise.
18459         * doc/posix-functions/wctomb.texi: Likewise.
18460         * doc/posix-functions/wctrans.texi: Likewise.
18461         * doc/posix-functions/wctype.texi: Likewise.
18462         * doc/posix-functions/wcwidth.texi: Likewise.
18463         * doc/posix-functions/wmemchr.texi: Likewise.
18464         * doc/posix-functions/wmemcmp.texi: Likewise.
18465         * doc/posix-functions/wmemcpy.texi: Likewise.
18466         * doc/posix-functions/wmemmove.texi: Likewise.
18467         * doc/posix-functions/wmemset.texi: Likewise.
18468         * doc/posix-functions/wprintf.texi: Likewise.
18469         * doc/posix-functions/wscanf.texi: Likewise.
18470
18471 2008-12-21  Bruno Haible  <bruno@clisp.org>
18472
18473         Update doc for HP-UX 11.11.
18474         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18475         in HP-UX version 11.00, not in all versions of HP-UX 11.
18476         * doc/posix-functions/fwide.texi: Likewise.
18477         * doc/posix-functions/fwprintf.texi: Likewise.
18478         * doc/posix-functions/fwscanf.texi: Likewise.
18479         * doc/posix-functions/inet_ntop.texi: Likewise.
18480         * doc/posix-functions/inet_pton.texi: Likewise.
18481         * doc/posix-functions/mbrlen.texi: Likewise.
18482         * doc/posix-functions/mbrtowc.texi: Likewise.
18483         * doc/posix-functions/mbsinit.texi: Likewise.
18484         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18485         * doc/posix-functions/swprintf.texi: Likewise.
18486         * doc/posix-functions/swscanf.texi: Likewise.
18487         * doc/posix-functions/towctrans.texi: Likewise.
18488         * doc/posix-functions/vfwprintf.texi: Likewise.
18489         * doc/posix-functions/vswprintf.texi: Likewise.
18490         * doc/posix-functions/vwprintf.texi: Likewise.
18491         * doc/posix-functions/wcrtomb.texi: Likewise.
18492         * doc/posix-functions/wcsrtombs.texi: Likewise.
18493         * doc/posix-functions/wcsstr.texi: Likewise.
18494         * doc/posix-functions/wctob.texi: Likewise.
18495         * doc/posix-functions/wctrans.texi: Likewise.
18496         * doc/posix-functions/wmemchr.texi: Likewise.
18497         * doc/posix-functions/wmemcmp.texi: Likewise.
18498         * doc/posix-functions/wmemcpy.texi: Likewise.
18499         * doc/posix-functions/wmemmove.texi: Likewise.
18500         * doc/posix-functions/wmemset.texi: Likewise.
18501         * doc/posix-functions/wprintf.texi: Likewise.
18502         * doc/posix-functions/wscanf.texi: Likewise.
18503
18504 2008-12-21  Bruno Haible  <bruno@clisp.org>
18505
18506         Work around a portability problem.
18507         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18508         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18509
18510 2008-12-20  Bruno Haible  <bruno@clisp.org>
18511
18512         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18513         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18514         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18516         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18517
18518         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18519         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18520         set.
18521         (GNULIB_defined_mbstate_t): New macro.
18522         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18523         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18524         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18525         reuses the system's mbrtowc function but works around the bugs.
18526         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18527         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18528         macros.
18529         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18530         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18531         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18532         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18533         REPLACE_MBSINIT if mbsinit needs to be overridden.
18534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18535         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18536         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18537         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18538         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18539         m4/locale-zh.m4.
18540         (Depends): Add mbsinit.
18541         * modules/mbsinit (Depends): Add mbrtowc.
18542         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18543
18544 2008-12-20  Bruno Haible  <bruno@clisp.org>
18545
18546         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18547         so that there are no conversion errors on AIX.
18548         * tests/test-mbsrtowcs.c (main): LIkewise.
18549
18550 2008-12-20  Bruno Haible  <bruno@clisp.org>
18551
18552         Work around wctob bug on Solaris <= 9.
18553         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18554         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18556         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18557         * modules/wctob (Files): Add m4/locale-fr.m4.
18558         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18559
18560 2008-12-20  Bruno Haible  <bruno@clisp.org>
18561
18562         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18563         /dev/null.
18564         * tests/test-select-in.sh: Likewise.
18565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18566
18567 2008-12-20  Bruno Haible  <bruno@clisp.org>
18568
18569         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18570         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18571         Cygwin 1.5.x.
18572
18573 2008-12-20  Bruno Haible  <bruno@clisp.org>
18574
18575         Ensure mbstate_t is defined on HP-UX 11.11.
18576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18577         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18578         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18579         AC_USE_SYSTEM_EXTENSIONS.
18580         * modules/fnmatch (Depends-on): Add extensions.
18581         * modules/mbrlen (Depends-on): Likewise.
18582         * modules/mbrtowc (Depends-on): Likewise.
18583         * modules/mbsinit (Depends-on): Likewise.
18584         * modules/mbsrtowcs (Depends-on): Likewise.
18585         * modules/mbswidth (Depends-on): Likewise.
18586         * modules/quotearg (Depends-on): Likewise.
18587         * modules/strftime (Depends-on): Likewise.
18588
18589 2008-12-20  Bruno Haible  <bruno@clisp.org>
18590
18591         Ensure wctob is declared on IRIX 6.5.
18592         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18593         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18594         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18596         of HAVE_WCTOB.
18597         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18598         HAVE_WCTOB.
18599         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18600
18601 2008-12-19  Bruno Haible  <bruno@clisp.org>
18602
18603         * modules/mbsrtowcs-tests: New file.
18604         * tests/test-mbsrtowcs1.sh: New file.
18605         * tests/test-mbsrtowcs2.sh: New file.
18606         * tests/test-mbsrtowcs3.sh: New file.
18607         * tests/test-mbsrtowcs4.sh: New file.
18608         * tests/test-mbsrtowcs.c: New file.
18609
18610         New module 'mbsrtowcs'.
18611         * lib/wchar.in.h (mbsrtowcs): New declaration.
18612         * lib/mbsrtowcs.c: New file.
18613         * m4/mbsrtowcs.m4: New file.
18614         * modules/mbsrtowcs: New file.
18615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18616         HAVE_MBSRTOWCS.
18617         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18618         HAVE_MBSRTOWCS.
18619         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18620
18621 2008-12-19  Bruno Haible  <bruno@clisp.org>
18622
18623         New module 'mbrlen'.
18624         * lib/wchar.in.h (mbrlen): New declaration.
18625         * lib/mbrlen.c: New file.
18626         * m4/mbrlen.m4: New file.
18627         * modules/mbrlen: New file.
18628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18629         HAVE_MBRLEN.
18630         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18631         HAVE_MBRLEN.
18632         * doc/posix-functions/mbrlen.texi: Document the new module.
18633
18634 2008-12-19  Bruno Haible  <bruno@clisp.org>
18635
18636         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18637         * modules/mbrtowc (Depends-on): Add verify.
18638         Suggested by Paul Eggert.
18639
18640 2008-12-18  Bruno Haible  <bruno@clisp.org>
18641
18642         * modules/mbsinit-tests: New file.
18643         * tests/test-mbsinit.sh: New file.
18644         * tests/test-mbsinit.c: New file.
18645
18646 2008-12-18  Bruno Haible  <bruno@clisp.org>
18647
18648         * modules/mbrtowc-tests: New file.
18649         * tests/test-mbrtowc1.sh: New file.
18650         * tests/test-mbrtowc2.sh: New file.
18651         * tests/test-mbrtowc3.sh: New file.
18652         * tests/test-mbrtowc4.sh: New file.
18653         * tests/test-mbrtowc.c: New file.
18654
18655         New module 'mbrtowc'.
18656         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18657         mbsinit and mbrtowc.
18658         (mbrtowc): New declaration.
18659         * lib/mbrtowc.c: New file.
18660         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18661         * modules/mbrtowc: New file.
18662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18663         HAVE_MBRTOWC.
18664         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18665         HAVE_MBRTOWC.
18666         * doc/posix-functions/mbrtowc.texi: Document the new module.
18667
18668 2008-12-18  Bruno Haible  <bruno@clisp.org>
18669
18670         New module 'wctob'.
18671         * lib/wchar.in.h (wctob): New declaration.
18672         * lib/wctob.c: New file.
18673         * m4/wctob.m4: New file.
18674         * modules/wctob: New file.
18675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18676         HAVE_WCTOB.
18677         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18678         * doc/posix-functions/wctob.texi: Document the new module.
18679
18680 2008-12-18  Bruno Haible  <bruno@clisp.org>
18681
18682         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18683         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18684
18685 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18686
18687         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18688         G. Christensen" <tgc@jupiterrise.com>.
18689
18690         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18691         G. Christensen" <tgc@jupiterrise.com>.
18692
18693         * lib/flock.c: Need to include string.h.  Reported by "Tom
18694         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18695         <ebb9@byu.net>.
18696
18697 2008-12-18  Bruno Haible  <bruno@clisp.org>
18698
18699         * m4/locale-ja.m4: New file, from GNU gettext.
18700
18701 2008-12-17  Bruno Haible  <bruno@clisp.org>
18702
18703         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18704         Suggested by Eric Blake.
18705
18706 2008-12-17  Bruno Haible  <bruno@clisp.org>
18707
18708         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18709
18710 2008-12-17  Bruno Haible  <bruno@clisp.org>
18711
18712         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18713         * modules/mbsinit (Depends-on): Add verify.
18714         Suggested by Paul Eggert.
18715
18716 2008-12-17  Bruno Haible  <bruno@clisp.org>
18717
18718         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18719         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18720         gl_FUNC_MBRTOWC.
18721         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18722         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18723         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18724         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18725         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18726         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18727         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18728         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18729         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18730         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18731         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18732         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18733         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18734         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18735         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18736         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18737         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18738         * modules/trim (configure.ac): Likewise.
18739
18740 2008-12-17  Bruno Haible  <bruno@clisp.org>
18741
18742         * modules/btowc-tests: New file.
18743         * tests/test-btowc1.sh: New file.
18744         * tests/test-btowc2.sh: New file.
18745         * tests/test-btowc.c: New file.
18746
18747         New module 'btowc'.
18748         * lib/wchar.in.h (btowc): New declaration.
18749         * lib/btowc.c: New file.
18750         * m4/btowc.m4: New file.
18751         * modules/btowc: New file.
18752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18753         HAVE_BTOWC.
18754         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18755         * doc/posix-functions/btowc.texi: Document the new module.
18756
18757 2008-12-17  Bruno Haible  <bruno@clisp.org>
18758
18759         New module 'mbsinit'.
18760         * lib/wchar.in.h (mbsinit): New declaration.
18761         * lib/mbsinit.c: New file.
18762         * m4/mbsinit.m4: New file.
18763         * modules/mbsinit: New file.
18764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18765         HAVE_MBSINIT.
18766         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18767         HAVE_MBSINIT.
18768         * doc/posix-functions/mbsinit.texi: Document the new module.
18769
18770 2008-12-16  Bruno Haible  <bruno@clisp.org>
18771
18772         * lib/unistd.in.h: Add comment.
18773         * tests/test-environ.c: Don't include <stdlib.h>.
18774
18775 2008-12-16  Bruno Haible  <bruno@clisp.org>
18776
18777         * lib/parse-duration.h (parse_duration): Document return value
18778         convention.
18779         * lib/parse-duration.c: Include specification header first. Add
18780         comments.
18781         (_): Remove macro.
18782         (parse_year_month_day, parse_hour_minute_second): Move side effects
18783         outside of strchr call.
18784         (parse_non_iso8601): Move side effects outside of isspace call.
18785         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18786         call.
18787
18788 2008-12-16  Bruno Haible  <bruno@clisp.org>
18789
18790         * tests/test-parse-duration.sh: Produce no output when the test
18791         succeeds.
18792
18793 2008-12-16  Bruno Haible  <bruno@clisp.org>
18794
18795         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18796         expressions.
18797
18798 2008-12-15  Bruno Haible  <bruno@clisp.org>
18799
18800         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18801         * doc/glibc-functions/flistxattr.texi: Likewise.
18802         * doc/glibc-functions/fopencookie.texi: Likewise.
18803         * doc/glibc-functions/fremovexattr.texi: Likewise.
18804         * doc/glibc-functions/fsetxattr.texi: Likewise.
18805         * doc/glibc-functions/getxattr.texi: Likewise.
18806         * doc/glibc-functions/lgetxattr.texi: Likewise.
18807         * doc/glibc-functions/listxattr.texi: Likewise.
18808         * doc/glibc-functions/llistxattr.texi: Likewise.
18809         * doc/glibc-functions/lremovexattr.texi: Likewise.
18810         * doc/glibc-functions/lsetxattr.texi: Likewise.
18811         * doc/glibc-functions/removexattr.texi: Likewise.
18812         * doc/glibc-functions/setxattr.texi: Likewise.
18813         * doc/posix-functions/open_memstream.texi: Likewise.
18814
18815 2008-12-15  Eric Blake  <ebb9@byu.net>
18816
18817         Update doc for cygwin 1.7.
18818         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18819         functions.
18820         * doc/posix-functions/fchmodat.texi: Likewise.
18821         * doc/posix-functions/fchownat.texi: Likewise.
18822         * doc/posix-functions/fdopendir.texi: Likewise.
18823         * doc/posix-functions/fmemopen.texi: Likewise.
18824         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18825         * doc/posix-functions/fstatat.texi: Likewise.
18826         * doc/posix-functions/futimens.texi: Likewise.
18827         * doc/posix-functions/gai_strerror.texi: Likewise.
18828         * doc/posix-functions/getaddrinfo.texi: Likewise.
18829         * doc/posix-functions/getnameinfo.texi: Likewise.
18830         * doc/posix-functions/if_freenameindex.texi: Likewise.
18831         * doc/posix-functions/if_indextoname.texi: Likewise.
18832         * doc/posix-functions/if_nameindex.texi: Likewise.
18833         * doc/posix-functions/if_nametoindex.texi: Likewise.
18834         * doc/posix-functions/insque.texi: Likewise.
18835         * doc/posix-functions/linkat.texi: Likewise.
18836         * doc/posix-functions/llrint.texi: Likewise.
18837         * doc/posix-functions/llrintf.texi: Likewise.
18838         * doc/posix-functions/llrintl.texi: Likewise.
18839         * doc/posix-functions/lockf.texi: Likewise.
18840         * doc/posix-functions/lrintl.texi: Likewise.
18841         * doc/posix-functions/mkdirat.texi: Likewise.
18842         * doc/posix-functions/mkfifoat.texi: Likewise.
18843         * doc/posix-functions/mknodat.texi: Likewise.
18844         * doc/posix-functions/mq_close.texi: Likewise.
18845         * doc/posix-functions/mq_getattr.texi: Likewise.
18846         * doc/posix-functions/mq_notify.texi: Likewise.
18847         * doc/posix-functions/mq_open.texi: Likewise.
18848         * doc/posix-functions/mq_receive.texi: Likewise.
18849         * doc/posix-functions/mq_send.texi: Likewise.
18850         * doc/posix-functions/mq_setattr.texi: Likewise.
18851         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18852         * doc/posix-functions/mq_timedsend.texi: Likewise.
18853         * doc/posix-functions/mq_unlink.texi: Likewise.
18854         * doc/posix-functions/open_memstream.texi: Likewise.
18855         * doc/posix-functions/openat.texi: Likewise.
18856         * doc/posix-functions/posix_fadvise.texi: Likewise.
18857         * doc/posix-functions/posix_fallocate.texi: Likewise.
18858         * doc/posix-functions/posix_madvise.texi: Likewise.
18859         * doc/posix-functions/posix_memalign.texi: Likewise.
18860         * doc/posix-functions/posix_openpt.texi: Likewise.
18861         * doc/posix-functions/readlinkat.texi: Likewise.
18862         * doc/posix-functions/remque.texi: Likewise.
18863         * doc/posix-functions/renameat.texi: Likewise.
18864         * doc/posix-functions/rintl.texi: Likewise.
18865         * doc/posix-functions/sem_unlink.texi: Likewise.
18866         * doc/posix-functions/shm_open.texi: Likewise.
18867         * doc/posix-functions/shm_unlink.texi: Likewise.
18868         * doc/posix-functions/signgam.texi: Likewise.
18869         * doc/posix-functions/sigset.texi: Likewise.
18870         * doc/posix-functions/stpcpy.texi: Likewise.
18871         * doc/posix-functions/stpncpy.texi: Likewise.
18872         * doc/posix-functions/strerror.texi: Likewise.
18873         * doc/posix-functions/strtod.texi: Likewise.
18874         * doc/posix-functions/symlinkat.texi: Likewise.
18875         * doc/posix-functions/unlinkat.texi: Likewise.
18876         * doc/posix-functions/utimensat.texi: Likewise.
18877         * doc/glibc-functions/bindresvport.texi: Likewise.
18878         * doc/glibc-functions/dn_expand.texi: Likewise.
18879         * doc/glibc-functions/exp10.texi: Likewise.
18880         * doc/glibc-functions/exp10f.texi: Likewise.
18881         * doc/glibc-functions/fgetxattr.texi: Likewise.
18882         * doc/glibc-functions/flistxattr.texi: Likewise.
18883         * doc/glibc-functions/fopencookie.texi: Likewise.
18884         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18885         * doc/glibc-functions/fremovexattr.texi: Likewise.
18886         * doc/glibc-functions/fsetxattr.texi: Likewise.
18887         * doc/glibc-functions/getifaddrs.texi: Likewise.
18888         * doc/glibc-functions/getxattr.texi: Likewise.
18889         * doc/glibc-functions/lgetxattr.texi: Likewise.
18890         * doc/glibc-functions/listxattr.texi: Likewise.
18891         * doc/glibc-functions/llistxattr.texi: Likewise.
18892         * doc/glibc-functions/lremovexattr.texi: Likewise.
18893         * doc/glibc-functions/lsetxattr.texi: Likewise.
18894         * doc/glibc-functions/pow10.texi: Likewise.
18895         * doc/glibc-functions/pow10f.texi: Likewise.
18896         * doc/glibc-functions/rcmd_af.texi: Likewise.
18897         * doc/glibc-functions/removexattr.texi: Likewise.
18898         * doc/glibc-functions/res_init.texi: Likewise.
18899         * doc/glibc-functions/res_mkquery.texi: Likewise.
18900         * doc/glibc-functions/res_query.texi: Likewise.
18901         * doc/glibc-functions/res_querydomain.texi: Likewise.
18902         * doc/glibc-functions/res_send.texi: Likewise.
18903         * doc/glibc-functions/rresvport_af.texi: Likewise.
18904         * doc/glibc-functions/setxattr.texi: Likewise.
18905         * doc/glibc-functions/strcasestr.texi: Likewise.
18906
18907 2008-12-15  Bruno Haible  <bruno@clisp.org>
18908
18909         Fix compilation error on OSF/1 4.0.
18910         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18911         <sys/time.h>, simply delegate to the system header.
18912         Reported by Daniel Richard G. <oss@teragram.com>.
18913
18914 2008-12-15  Bruno Haible  <bruno@clisp.org>
18915
18916         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18917         * doc/posix-functions/fchmodat.texi: Likewise.
18918         * doc/posix-functions/fchownat.texi: Likewise.
18919         * doc/posix-functions/fdopendir.texi: Likewise.
18920         * doc/posix-functions/fstatat.texi: Likewise.
18921         * doc/posix-functions/mkdirat.texi: Likewise.
18922         * doc/posix-functions/unlinkat.texi: Likewise.
18923
18924 2008-12-14  Bruno Haible  <bruno@clisp.org>
18925
18926         Update doc for POSIX:2008.
18927         * doc/posix-functions/faccessat.texi: New file.
18928         * doc/posix-functions/fchmodat.texi: New file.
18929         * doc/posix-functions/fchownat.texi: New file.
18930         * doc/posix-functions/fdopendir.texi: New file.
18931         * doc/posix-functions/fstatat.texi: New file.
18932         * doc/posix-functions/futimens.texi: New file.
18933         * doc/posix-functions/linkat.texi: New file.
18934         * doc/posix-functions/mkdirat.texi: New file.
18935         * doc/posix-functions/mkfifoat.texi: New file.
18936         * doc/posix-functions/mknodat.texi: New file.
18937         * doc/posix-functions/open_wmemstream.texi: New file.
18938         * doc/posix-functions/openat.texi: New file.
18939         * doc/posix-functions/psiginfo.texi: New file.
18940         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18941         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18942         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18943         * doc/posix-functions/readlinkat.texi: New file.
18944         * doc/posix-functions/renameat.texi: New file.
18945         * doc/posix-functions/strerror_l.texi: New file.
18946         * doc/posix-functions/symlinkat.texi: New file.
18947         * doc/posix-functions/unlinkat.texi: New file.
18948         * doc/posix-functions/utimensat.texi: New file.
18949         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18950
18951 2008-12-14  Bruno Haible  <bruno@clisp.org>
18952
18953         Update doc for POSIX:2008.
18954         * doc/posix-functions/alphasort.texi: Renamed from
18955         doc/glibc-functions/alphasort.texi.
18956         * doc/posix-functions/dirfd.texi: Renamed from
18957         doc/glibc-functions/dirfd.texi.
18958         * doc/posix-functions/dprintf.texi: Renamed from
18959         doc/glibc-functions/dprintf.texi.
18960         * doc/posix-functions/duplocale.texi: Renamed from
18961         doc/glibc-functions/duplocale.texi.
18962         * doc/posix-functions/fexecve.texi: Renamed from
18963         doc/glibc-functions/fexecve.texi.
18964         * doc/posix-functions/fmemopen.texi: Renamed from
18965         doc/glibc-functions/fmemopen.texi.
18966         * doc/posix-functions/freelocale.texi: Renamed from
18967         doc/glibc-functions/freelocale.texi.
18968         * doc/posix-functions/getdate_err.texi: Renamed from
18969         doc/glibc-functions/getdate_err.texi.
18970         * doc/posix-functions/isalnum_l.texi: Renamed from
18971         doc/glibc-functions/isalnum_l.texi.
18972         * doc/posix-functions/isalpha_l.texi: Renamed from
18973         doc/glibc-functions/isalpha_l.texi.
18974         * doc/posix-functions/isblank_l.texi: Renamed from
18975         doc/glibc-functions/isblank_l.texi.
18976         * doc/posix-functions/iscntrl_l.texi: Renamed from
18977         doc/glibc-functions/iscntrl_l.texi.
18978         * doc/posix-functions/isdigit_l.texi: Renamed from
18979         doc/glibc-functions/isdigit_l.texi.
18980         * doc/posix-functions/isgraph_l.texi: Renamed from
18981         doc/glibc-functions/isgraph_l.texi.
18982         * doc/posix-functions/islower_l.texi: Renamed from
18983         doc/glibc-functions/islower_l.texi.
18984         * doc/posix-functions/isprint_l.texi: Renamed from
18985         doc/glibc-functions/isprint_l.texi.
18986         * doc/posix-functions/ispunct_l.texi: Renamed from
18987         doc/glibc-functions/ispunct_l.texi.
18988         * doc/posix-functions/isspace_l.texi: Renamed from
18989         doc/glibc-functions/isspace_l.texi.
18990         * doc/posix-functions/isupper_l.texi: Renamed from
18991         doc/glibc-functions/isupper_l.texi.
18992         * doc/posix-functions/iswalnum_l.texi: Renamed from
18993         doc/glibc-functions/iswalnum_l.texi.
18994         * doc/posix-functions/iswalpha_l.texi: Renamed from
18995         doc/glibc-functions/iswalpha_l.texi.
18996         * doc/posix-functions/iswblank_l.texi: Renamed from
18997         doc/glibc-functions/iswblank_l.texi.
18998         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18999         doc/glibc-functions/iswcntrl_l.texi.
19000         * doc/posix-functions/iswctype_l.texi: Renamed from
19001         doc/glibc-functions/iswctype_l.texi.
19002         * doc/posix-functions/iswdigit_l.texi: Renamed from
19003         doc/glibc-functions/iswdigit_l.texi.
19004         * doc/posix-functions/iswgraph_l.texi: Renamed from
19005         doc/glibc-functions/iswgraph_l.texi.
19006         * doc/posix-functions/iswlower_l.texi: Renamed from
19007         doc/glibc-functions/iswlower_l.texi.
19008         * doc/posix-functions/iswprint_l.texi: Renamed from
19009         doc/glibc-functions/iswprint_l.texi.
19010         * doc/posix-functions/iswpunct_l.texi: Renamed from
19011         doc/glibc-functions/iswpunct_l.texi.
19012         * doc/posix-functions/iswspace_l.texi: Renamed from
19013         doc/glibc-functions/iswspace_l.texi.
19014         * doc/posix-functions/iswupper_l.texi: Renamed from
19015         doc/glibc-functions/iswupper_l.texi.
19016         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19017         doc/glibc-functions/iswxdigit_l.texi.
19018         * doc/posix-functions/isxdigit_l.texi: Renamed from
19019         doc/glibc-functions/isxdigit_l.texi.
19020         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19021         doc/glibc-functions/mbsnrtowcs.texi.
19022         * doc/posix-functions/mkdtemp.texi: Renamed from
19023         doc/glibc-functions/mkdtemp.texi.
19024         * doc/posix-functions/newlocale.texi: Renamed from
19025         doc/glibc-functions/newlocale.texi.
19026         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19027         doc/glibc-functions/nl_langinfo_l.texi.
19028         * doc/posix-functions/open_memstream.texi: Renamed from
19029         doc/glibc-functions/open_memstream.texi.
19030         * doc/posix-functions/opterr.texi: Renamed from
19031         doc/glibc-functions/opterr.texi.
19032         * doc/posix-functions/optind.texi: Renamed from
19033         doc/glibc-functions/optind.texi.
19034         * doc/posix-functions/optopt.texi: Renamed from
19035         doc/glibc-functions/optopt.texi.
19036         * doc/posix-functions/psignal.texi: Renamed from
19037         doc/glibc-functions/psignal.texi.
19038         * doc/posix-functions/scandir.texi: Renamed from
19039         doc/glibc-functions/scandir.texi.
19040         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19041         doc/glibc-functions/sched_get_priority_min.texi.
19042         * doc/posix-functions/signgam.texi: Renamed from
19043         doc/glibc-functions/signgam.texi.
19044         * doc/posix-functions/stpcpy.texi: Renamed from
19045         doc/glibc-functions/stpcpy.texi.
19046         * doc/posix-functions/stpncpy.texi: Renamed from
19047         doc/glibc-functions/stpncpy.texi.
19048         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19049         doc/glibc-functions/strcasecmp_l.texi.
19050         * doc/posix-functions/strcoll_l.texi: Renamed from
19051         doc/glibc-functions/strcoll_l.texi.
19052         * doc/posix-functions/strfmon_l.texi: Renamed from
19053         doc/glibc-functions/strfmon_l.texi.
19054         * doc/posix-functions/strftime_l.texi: Renamed from
19055         doc/glibc-functions/strftime_l.texi.
19056         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19057         doc/glibc-functions/strncasecmp_l.texi.
19058         * doc/posix-functions/strndup.texi: Renamed from
19059         doc/glibc-functions/strndup.texi.
19060         * doc/posix-functions/strnlen.texi: Renamed from
19061         doc/glibc-functions/strnlen.texi.
19062         * doc/posix-functions/strsignal.texi: Renamed from
19063         doc/glibc-functions/strsignal.texi.
19064         * doc/posix-functions/strxfrm_l.texi: Renamed from
19065         doc/glibc-functions/strxfrm_l.texi.
19066         * doc/posix-functions/timer_gettime.texi: Renamed from
19067         doc/glibc-functions/timer_gettime.texi.
19068         * doc/posix-functions/tolower_l.texi: Renamed from
19069         doc/glibc-functions/tolower_l.texi.
19070         * doc/posix-functions/toupper_l.texi: Renamed from
19071         doc/glibc-functions/toupper_l.texi.
19072         * doc/posix-functions/towctrans_l.texi: Renamed from
19073         doc/glibc-functions/towctrans_l.texi.
19074         * doc/posix-functions/towlower_l.texi: Renamed from
19075         doc/glibc-functions/towlower_l.texi.
19076         * doc/posix-functions/towupper_l.texi: Renamed from
19077         doc/glibc-functions/towupper_l.texi.
19078         * doc/posix-functions/uselocale.texi: Renamed from
19079         doc/glibc-functions/uselocale.texi.
19080         * doc/posix-functions/vdprintf.texi: Renamed from
19081         doc/glibc-functions/vdprintf.texi.
19082         * doc/posix-functions/wcpcpy.texi:
19083         Renamed from doc/glibc-functions/wcpcpy.texi.
19084         * doc/posix-functions/wcpncpy.texi: Renamed from
19085         doc/glibc-functions/wcpncpy.texi.
19086         * doc/posix-functions/wcscasecmp.texi: Renamed from
19087         doc/glibc-functions/wcscasecmp.texi.
19088         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19089         doc/glibc-functions/wcscasecmp_l.texi.
19090         * doc/posix-functions/wcscoll_l.texi: Renamed from
19091         doc/glibc-functions/wcscoll_l.texi.
19092         * doc/posix-functions/wcsdup.texi: Renamed from
19093         doc/glibc-functions/wcsdup.texi.
19094         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19095         doc/glibc-functions/wcsncasecmp.texi.
19096         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19097         doc/glibc-functions/wcsncasecmp_l.texi.
19098         * doc/posix-functions/wcsnlen.texi: Renamed from
19099         doc/glibc-functions/wcsnlen.texi.
19100         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19101         doc/glibc-functions/wcsnrtombs.texi.
19102         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19103         doc/glibc-functions/wcsxfrm_l.texi.
19104         * doc/posix-functions/wctrans_l.texi: Renamed from
19105         doc/glibc-functions/wctrans_l.texi.
19106         * doc/posix-functions/wctype_l.texi: Renamed from
19107         doc/glibc-functions/wctype_l.texi.
19108         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19109         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19110         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19111         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19112         these subsections.
19113         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19114         Remove sections.
19115
19116 2008-12-14  Bruno Haible  <bruno@clisp.org>
19117
19118         Update doc for POSIX:2008.
19119         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19120
19121 2008-12-14  Bruno Haible  <bruno@clisp.org>
19122
19123         Update doc for POSIX:2008.
19124         * doc/pastposix-functions/bcmp.texi: Renamed from
19125         doc/posix-functions/bcmp.texi.
19126         * doc/pastposix-functions/bcopy.texi: Renamed from
19127         doc/posix-functions/bcopy.texi.
19128         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19129         doc/posix-functions/bsd_signal.texi.
19130         * doc/pastposix-functions/bzero.texi: Renamed from
19131         doc/posix-functions/bzero.texi.
19132         * doc/pastposix-functions/ecvt.texi: Renamed from
19133         doc/posix-functions/ecvt.texi.
19134         * doc/pastposix-functions/fcvt.texi: Renamed from
19135         doc/posix-functions/fcvt.texi.
19136         * doc/pastposix-functions/ftime.texi: Renamed from
19137         doc/posix-functions/ftime.texi.
19138         * doc/pastposix-functions/gcvt.texi: Renamed from
19139         doc/posix-functions/gcvt.texi.
19140         * doc/pastposix-functions/getcontext.texi: Renamed from
19141         doc/posix-functions/getcontext.texi.
19142         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19143         doc/posix-functions/gethostbyaddr.texi.
19144         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19145         doc/posix-functions/gethostbyname.texi.
19146         * doc/pastposix-functions/getwd.texi: Renamed from
19147         doc/posix-functions/getwd.texi.
19148         * doc/pastposix-functions/h_errno.texi: Renamed from
19149         doc/posix-functions/h_errno.texi.
19150         * doc/pastposix-functions/index.texi: Renamed from
19151         doc/posix-functions/index.texi.
19152         * doc/pastposix-functions/makecontext.texi: Renamed from
19153         doc/posix-functions/makecontext.texi.
19154         * doc/pastposix-functions/mktemp.texi: Renamed from
19155         doc/posix-functions/mktemp.texi.
19156         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19157         doc/posix-functions/pthread_attr_getstackaddr.texi.
19158         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19159         doc/posix-functions/pthread_attr_setstackaddr.texi.
19160         * doc/pastposix-functions/rindex.texi: Renamed from
19161         doc/posix-functions/rindex.texi.
19162         * doc/pastposix-functions/scalb.texi: Renamed from
19163         doc/posix-functions/scalb.texi.
19164         * doc/pastposix-functions/setcontext.texi: Renamed from
19165         doc/posix-functions/setcontext.texi.
19166         * doc/pastposix-functions/swapcontext.texi: Renamed from
19167         doc/posix-functions/swapcontext.texi.
19168         * doc/pastposix-functions/ualarm.texi: Renamed from
19169         doc/posix-functions/ualarm.texi.
19170         * doc/pastposix-functions/usleep.texi: Renamed from
19171         doc/posix-functions/usleep.texi.
19172         * doc/pastposix-functions/vfork.texi: Renamed from
19173         doc/posix-functions/vfork.texi.
19174         * doc/pastposix-functions/wcswcs.texi: Renamed from
19175         doc/posix-functions/wcswcs.texi.
19176         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19177         (Function Substitutes): Update.
19178
19179 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19180
19181         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19182         m4/strerror.m4.
19183
19184 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19185             Bruno Haible  <bruno@clisp.org>
19186
19187         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19188
19189 2008-12-13  Bruno Haible  <bruno@clisp.org>
19190
19191         * modules/strtoull (Depends-on): Remove unistd.
19192
19193 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19194
19195         * modules/strtoull (Depends-on): Add stdlib.
19196
19197 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19198
19199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19200
19201 2008-12-10  Jim Meyering  <meyering@redhat.com>
19202
19203         gl_ASSERT: don't say assertions are disabled when they're not
19204         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19205         "checking whether to enable assertions... no", when they are in
19206         fact enabled.  This is solely a bug in the output of configure.
19207         In spite of saying "no", NDEBUG was not defined in that case.
19208         Also, as noted by Eric Blake, leave assertions enabled upon
19209         --enable-assert=INVALID.
19210
19211 2008-12-10  Bruno Haible  <bruno@clisp.org>
19212
19213         Change MODULES.html to refer to POSIX:2008 where possible.
19214         * MODULES.html.sh (POSIX2008_URL): New variable.
19215         (posix_headers): Remove sys/timeb, ucontext.
19216         (posix2001_headers): New variable.
19217         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19218         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19219         index, makecontext, mktemp, pthread_attr_getstackaddr,
19220         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19221         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19222         (posix2001_functions): New variable.
19223         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19224         otherwise.
19225
19226 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19227
19228         add missing include to parse-duration.c
19229         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19230         * modules/parse-duration (Depends-on): Add xalloc.
19231
19232         fix sed script reading maint.mk
19233         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19234         (syntax-check-rules): Use it.
19235
19236 2008-12-09  Bruno Haible  <bruno@clisp.org>
19237
19238         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19239         MacOS X 10.4/PowerPC.
19240         Reported by Simon Josefsson.
19241
19242 2008-12-08  Jim Meyering  <meyering@redhat.com>
19243
19244         work around mingw's lack of some S_IF definitions
19245         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19246         Reported by Simon Josefsson.
19247
19248 2008-12-08  Bruno Haible  <bruno@clisp.org>
19249
19250         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19251         applied to variables. Needed on MacOS X 10.4/PowerPC.
19252         Reported by Simon Josefsson.
19253
19254 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19255         and Eric Blake  <ebb9@byu.net>
19256
19257         assert: honor --enable-assert
19258         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19259         order to honor --enable-assert, rather than treating it as a
19260         synonym for --disable-assert.
19261
19262 2008-12-08  Jim Meyering  <meyering@redhat.com>
19263
19264         * lib/posixtm.c: Remove now-useless declaration of mktime.
19265
19266         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19267
19268 2008-12-07  Bruno Haible  <bruno@clisp.org>
19269
19270         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19271         test_once): Mark functions as static.
19272         * tests/test-tls.c (test_tls): Likewise.
19273
19274 2008-12-07  Bruno Haible  <bruno@clisp.org>
19275
19276         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19277         iconv_register_autodetect.
19278
19279 2008-12-07  Jim Meyering  <meyering@redhat.com>
19280
19281         posixtm.c: avoid a warning
19282         * lib/posixtm.c (posixtime): Don't initialize tm0.
19283         It's no longer needed to placate gcc4's -Wuninitialized,
19284         and the attempt to placate would elicit a new warning.
19285
19286         unicodeio.c: mark unused parameters
19287         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19288         (fallback_failure_callback): Likewise.
19289
19290 2008-12-07  Bruno Haible  <bruno@clisp.org>
19291
19292         * gnulib-tool (func_create_testdir): When building the tests
19293         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19294         Reported by Simon Josefsson.
19295
19296 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19297
19298         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19299
19300 2008-12-06  Bruno Haible  <bruno@clisp.org>
19301
19302         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19303         Suggested by Eric Blake.
19304
19305 2008-12-06  Bruno Haible  <bruno@clisp.org>
19306
19307         Fix a c-stack test failure on MacOS X.
19308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19309         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19310         handler for SIGBUS as well.
19311         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19312         install a signal handler for SIGBUS as well.
19313         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19314
19315 2008-12-06  Bruno Haible  <bruno@clisp.org>
19316
19317         Advocacy documentation.
19318         * doc/gnulib-intro.texi (Benefits): New section.
19319         * doc/gnulib.texi: Update.
19320
19321 2008-12-06  Bruno Haible  <bruno@clisp.org>
19322
19323         Document the 'manywarnings' module.
19324         * doc/manywarnings.texi: New file.
19325         * doc/gnulib.texi: Include it.
19326
19327 2008-12-05  Eric Blake  <ebb9@byu.net>
19328
19329         tests: silence some gcc warnings
19330         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19331         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19332         type mismatches.
19333
19334 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19335             Bruno Haible  <bruno@clisp.org>
19336
19337         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19338
19339 2008-11-29  Jim Meyering  <meyering@redhat.com>
19340
19341         unicodeio.c: mark unused parameters
19342         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19343         (fallback_failure_callback): Likewise.
19344
19345         fts: fix a thinko
19346         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19347         (set_stat_type): Return S_IF*-valued "type" directly.
19348         Prompted by James Youngman's spotting a related bug.
19349         Confirmed by further testing through find.
19350
19351         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19352         * lib/fts.c (D_TYPE): Define.
19353         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19354         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19355         (s_ifmt_shift_bits): New function.
19356         (set_stat_type): New function.
19357         (fts_build): When not calling fts_stat, call set_stat_type
19358         to propagate dirent.d_type info to fts_read caller.
19359         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19360         fts_statp->st_mode type information may be valid.
19361
19362 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19363
19364         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19365         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19366         <sds@gnu.org>.
19367
19368 2008-11-20  Bruno Haible  <bruno@clisp.org>
19369
19370         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19371         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19372         INCLUDE_NEXT.
19373         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19374         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19375         * modules/math (Makefile.am): Substitute
19376         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19377         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19378
19379 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19380             Bruno Haible  <bruno@clisp.org>
19381
19382         * lib/stdint.in.h: Define all type macros so that their expansion is
19383         a single typedef'ed token. Fixes a compilation failure in Boost which
19384         does "using ::int8_t;".
19385
19386 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19387
19388         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19389         gl_MANYWARN_ALL_GCC.
19390         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19391         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19392         * modules/manywarnings: New file.
19393         * MODULES.html.sh: Mention manywarnings module.
19394
19395 2008-11-18  Bruno Haible  <bruno@clisp.org>
19396
19397         * doc/gnulib-tool.texi (Unit tests): New section.
19398
19399 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19400
19401         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19402         paths like 'lib/po/foo.po'.
19403
19404 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19405
19406         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19407         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19408
19409 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19410
19411         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19412         parameter works.
19413
19414 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19415
19416         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19417
19418 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19419
19420         * modules/parse-duration-tests: New file.
19421         * tests/test-parse-duration.sh: New file.
19422         * tests/test-parse-duration.c: New file.
19423
19424         New module 'parse-duration'.
19425         * lib/parse-duration.h: New file.
19426         * lib/parse-duration.c: New file.
19427         * modules/parse-duration: New file.
19428
19429 2008-11-17  Bruno Haible  <bruno@clisp.org>
19430
19431         * tests/test-select-out.sh: Comment out the first pipe test.
19432         Reported by Simon Josefsson.
19433
19434 2008-11-17  Bruno Haible  <bruno@clisp.org>
19435
19436         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19438         gl_HOSTENT.
19439
19440 2008-11-17  Bruno Haible  <bruno@clisp.org>
19441
19442         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19443         -lnetwork and -lnet. Needed for Haiku and BeOS.
19444
19445 2008-11-16  Bruno Haible  <bruno@clisp.org>
19446
19447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19448
19449 2008-11-16  Bruno Haible  <bruno@clisp.org>
19450
19451         Avoid test failure on Haiku.
19452         * tests/test-fsync.c: Include <errno.h>.
19453         (main): Don't require that fsync (0) fails.
19454
19455 2008-11-15  Bruno Haible  <bruno@clisp.org>
19456
19457         New module 'hostent'.
19458         * modules/hostent: New file.
19459         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19460
19461 2008-11-15  Bruno Haible  <bruno@clisp.org>
19462
19463         New module 'servent'.
19464         * modules/servent: New file.
19465         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19466
19467 2008-11-15  Bruno Haible  <bruno@clisp.org>
19468
19469         Avoid generating same test program with two different rules.
19470         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19471         test-frexp to test-frexp-nolibm.
19472         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19473         test-frexpl to test-frexpl-nolibm.
19474
19475 2008-11-15  Bruno Haible  <bruno@clisp.org>
19476
19477         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19478         $(FREXPL_LIBM).
19479
19480 2008-11-15  Bruno Haible  <bruno@clisp.org>
19481
19482         * lib/netdb.in.h: Activate the definitions also when the system's
19483         <netdb.h> has 'struct addrinfo'.
19484         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19485         EAI_OVERFLOW or AI_NUMERICSERV.
19486         * doc/posix-headers/netdb.texi: Document the problem.
19487
19488 2008-11-15  Bruno Haible  <bruno@clisp.org>
19489
19490         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19491
19492         Make the 'sched' module work on platforms where <sched.h> exists but
19493         is incomplete (such as Haiku).
19494         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19495         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19496         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19497         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19498         HAVE_STRUCT_SCHED_PARAM.
19499         * modules/sched (Depends-on): Add include_next.
19500         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19501         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19502         * doc/posix-headers/sched.texi: Document the issue.
19503
19504 2008-11-13  Jim Meyering  <meyering@redhat.com>
19505
19506         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19507         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19508         test would fail due to the difference in the Report bugs to ...
19509         line.  The expected address is empty, "<>", while the actual
19510         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19511
19512 2008-11-12  Bruno Haible  <bruno@clisp.org>
19513
19514         lstat: don't compile lstat.c on systems lacking lstat
19515         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19516         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19517         Reported by Daniel P. Berrange via Jim Meyering.
19518
19519 2008-11-12  Jim Meyering  <meyering@redhat.com>
19520
19521         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19522
19523 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19524
19525         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19526         instead.
19527
19528 2008-11-12  Bruno Haible  <bruno@clisp.org>
19529
19530         * lib/unicodeio.c: Include unistr.h.
19531         (utf8_wctomb): Remove function.
19532         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19533
19534 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19535
19536         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19537         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19538         <bruno@clisp.org>.
19539         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19540
19541 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19542
19543         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19544         * doc/gnulib.texi: Add section for warnings.
19545
19546 2008-11-11  Bruno Haible  <bruno@clisp.org>
19547
19548         * lib/sockets.h: Add a comment.
19549
19550 2008-11-11  Karl Berry  <karl@gnu.org>
19551
19552         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19553
19554 2008-11-11  Eric Blake  <ebb9@byu.net>
19555
19556         fdl.texi: avoid git symlinks
19557         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19558
19559 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19560
19561         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19562
19563 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19564
19565         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19566         (gl_WARN_ADD): Substitute $2 if literal.
19567
19568 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19569
19570         * m4/warning.m4: Remove.
19571
19572 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19573
19574         * m4/warnings.m4: Almost complete rewrite. :-)
19575
19576 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19577
19578         * modules/warnings: New module.
19579         * m4/warnings.m4: New file.
19580         * MODULES.html.sh: Mention warnings module.
19581         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19582         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19583
19584 2008-11-10  Eric Blake  <ebb9@byu.net>
19585
19586         fdl.texi: make a symlink to the latest version
19587         * doc/standards.texi: Revert today's earlier change.
19588         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19589         * doc/fdl.texi: ...and replace this with a symlink to the newer
19590         fdl-1.3.texi.
19591
19592 2008-11-10  Bruno Haible  <bruno@clisp.org>
19593
19594         * tests/test-select-fd.c (main): Accept the result file name as fourth
19595         argument.
19596         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19597         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19598
19599 2008-11-10  Bruno Haible  <bruno@clisp.org>
19600
19601         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19602         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19603         as autoconf-substituted macros.
19604         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19606         gl_NETDB_H_DEFAULTS. Set these variables.
19607         * modules/netdb (Makefile.am): Substitute these variables.
19608
19609 2008-11-10  Eric Blake  <ebb9@byu.net>
19610
19611         standards.texi: include correct file for FDL 1.3
19612         * doc/standards.texi (GNU Free Documentation License): Change
19613         include file to pull in FDL 1.3, not 1.2.
19614
19615         fdl.texi: revert accidental change to license
19616         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19617
19618 2008-11-10  Bruno Haible  <bruno@clisp.org>
19619
19620         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19621         cross-compiling guesses also when the native compile gives no result.
19622
19623 2008-11-10  Bruno Haible  <bruno@clisp.org>
19624
19625         * lib/spawni.c (__spawni): Force variable into the stack.
19626
19627 2008-11-10  Bruno Haible  <bruno@clisp.org>
19628
19629         Add support for Haiku.
19630         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19631         glibc and BeOS, but also on Haiku.
19632         * lib/fpurge.c (fpurge): Likewise.
19633         * lib/freadable.c (freadable): Likewise.
19634         * lib/freadahead.c (freadahead): Likewise.
19635         * lib/freading.c (freading): Likewise.
19636         * lib/freadptr.c (freadptr): Likewise.
19637         * lib/freadseek.c (freadptrinc): Likewise.
19638         * lib/fseeko.c (rpl_fseeko): Likewise.
19639         * lib/fseterr.c (fseterr): Likewise.
19640         * lib/fwritable.c (fwritable): Likewise.
19641         * lib/fwriting.c (fwriting): Likewise.
19642         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19643
19644 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19645
19646         * lib/config.charset: Treat Haiku like BeOS.
19647
19648 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19649
19650         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19651         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19652
19653 2008-11-08  Bruno Haible  <bruno@clisp.org>
19654
19655         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19656         AC_CACHE_CHECK.
19657
19658 2008-11-08  Bruno Haible  <bruno@clisp.org>
19659
19660         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19661
19662 2008-11-08  Bruno Haible  <bruno@clisp.org>
19663
19664         * tests/test-select-fd.c: New file.
19665         * tests/test-select-in.sh: New file.
19666         * tests/test-select-out.sh: New file.
19667         * tests/test-select-stdin.c: New file.
19668         * modules/select-tests (Files): Add the new files.
19669         (Depends-on): Add gettimeofday.
19670         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19671         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19672         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19673
19674 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19675             Bruno Haible  <bruno@clisp.org>
19676
19677         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19678
19679 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19680
19681         * build-aux/pmccabe2html: Added support for C++ source files.
19682
19683 2008-11-05  Ben Pfaff  <blp@gnu.org>
19684
19685         Fix lib/close.c build on Windows.
19686         * modules/close (Files): Add lib/w32sock.h.
19687
19688 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19689
19690         Accept Bison's NEWS format.
19691         * build-aux/announce-gen (print_news_deltas): Tweak
19692         $re_prefix.
19693
19694 2008-11-04  Bruno Haible  <bruno@clisp.org>
19695
19696         * modules/random_r (Maintainer): Add glibc.
19697
19698 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19699
19700         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19701         by karl@freefriends.org (Karl Berry).
19702         * doc/alloca.texi: Likewise.
19703         * doc/c-ctype.texi: Likewise.
19704         * doc/c-strcase.texi: Likewise.
19705         * doc/c-strcaseeq.texi: Likewise.
19706         * doc/c-strcasestr.texi: Likewise.
19707         * doc/c-strstr.texi: Likewise.
19708         * doc/c-strtod.texi: Likewise.
19709         * doc/c-strtold.texi: Likewise.
19710         * doc/ctime.texi: Likewise.
19711         * doc/error.texi: Likewise.
19712         * doc/fdl.texi: Likewise.
19713         * doc/gcd.texi: Likewise.
19714         * doc/getdate.texi: Likewise.
19715         * doc/gnulib-intro.texi: Likewise.
19716         * doc/gnulib-tool.texi: Likewise.
19717         * doc/gnulib.texi: Likewise.
19718         * doc/inet_ntoa.texi: Likewise.
19719         * doc/maintain.texi: Likewise.
19720         * doc/make-stds.texi: Likewise.
19721         * doc/quote.texi: Likewise.
19722         * doc/regexprops-generic.texi: Likewise.
19723         * doc/standards.texi: Likewise.
19724         * doc/verify.texi: Likewise.
19725         * doc/visibility.texi: Likewise.
19726         * doc/gnulib.texi (GNU Free Documentation License): Include
19727         fdl-1.3.texi instead of fdl.texi.
19728
19729 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19730
19731         * doc/fdl-1.3.texi: New file, from
19732         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19733         * modules/fdl-1.3: Add.
19734         * MODULES.html.sh: Add fdl-1.3.
19735
19736 2008-11-03  Bruno Haible  <bruno@clisp.org>
19737
19738         Make determination of absolute name of header file work with AIX xlc.
19739         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19740         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19741         preprocessing.
19742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19743         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19744
19745 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19746
19747         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19748         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19749         <ludo@gnu.org>.
19750
19751 2008-11-02  Bruno Haible  <bruno@clisp.org>
19752
19753         Mark 'strpbrk' obsolete.
19754         * modules/strpbrk (Status, Notice): New sections.
19755         * modules/strtok_r (Depends-on): Add strpbrk.
19756
19757 2008-11-02  Bruno Haible  <bruno@clisp.org>
19758
19759         Mark 'strdup' obsolete.
19760         * modules/strdup (Status, Notice): New sections.
19761         * modules/findprog (Depends-on): Add strdup.
19762         * modules/getaddrinfo (Depends-on): Likewise.
19763         * modules/localename (Depends-on): Likewise.
19764         * modules/relocatable-lib (Depends-on): Likewise.
19765         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19766         * modules/relocatable-prog (Depends-on): Likewise.
19767         * modules/trim (Depends-on): Likewise.
19768         * modules/unictype/gen-ctype (Depends-on): Likewise.
19769         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19770
19771 2008-11-02  Bruno Haible  <bruno@clisp.org>
19772
19773         Mark 'strcspn' obsolete.
19774         * modules/strcspn (Status, Notice): New sections.
19775
19776 2008-11-02  Bruno Haible  <bruno@clisp.org>
19777
19778         Mark 'rmdir' obsolete.
19779         * modules/rmdir (Status, Notice): New sections.
19780         * modules/clean-temp (Depends-on): Add rmdir.
19781         * modules/openat (Depends-on): Likewise.
19782
19783 2008-11-02  Bruno Haible  <bruno@clisp.org>
19784
19785         Mark 'raise' obsolete.
19786         * modules/raise (Status, Notice): New sections.
19787         (Include): Specify <signal.h>.
19788         * modules/stdio (Depends-on): Add raise.
19789         * modules/write (Depends-on): Likewise.
19790
19791 2008-11-02  Bruno Haible  <bruno@clisp.org>
19792
19793         Mark 'memset' obsolete.
19794         * modules/memset (Status, Notice): New sections.
19795
19796 2008-11-02  Bruno Haible  <bruno@clisp.org>
19797
19798         Mark 'memmove' obsolete.
19799         * modules/memmove (Status, Notice): New sections.
19800         * modules/argp (Depends-on): Add memmove.
19801         * modules/argz (Depends-on): Likewise.
19802         * modules/canonicalize (Depends-on): Likewise.
19803         * modules/canonicalize-lgpl (Depends-on): Likewise.
19804         * modules/fts (Depends-on): Likewise.
19805         * modules/getcwd (Depends-on): Likewise.
19806         * modules/human (Depends-on): Likewise.
19807         * modules/regex (Depends-on): Likewise.
19808         * modules/striconveh (Depends-on): Likewise.
19809         * modules/trim (Depends-on): Likewise.
19810         * modules/unistr/u8-move (Depends-on): Likewise.
19811         * modules/unistr/u16-move (Depends-on): Likewise.
19812         * modules/unistr/u32-move (Depends-on): Likewise.
19813
19814 2008-11-02  Bruno Haible  <bruno@clisp.org>
19815
19816         Mark 'memcpy' obsolete.
19817         * modules/memcpy (Status, Notice): New sections.
19818
19819 2008-11-02  Bruno Haible  <bruno@clisp.org>
19820
19821         Mark 'memcmp' obsolete.
19822         * modules/memcmp (Status, Notice): New sections.
19823         * modules/argmatch (Depends-on): Add memchr.
19824         * modules/backupfile (Depends-on): Likewise.
19825         * modules/c-strcasestr (Depends-on): Likewise.
19826         * modules/crypto/des (Depends-on): Likewise.
19827         * modules/csharpcomp (Depends-on): Likewise.
19828         * modules/fnmatch (Depends-on): Likewise.
19829         * modules/git-merge-changelog (Depends-on): Likewise.
19830         * modules/isnand (Depends-on): Likewise.
19831         * modules/isnand-nolibm (Depends-on): Likewise.
19832         * modules/isnanf (Depends-on): Likewise.
19833         * modules/isnanf-nolibm (Depends-on): Likewise.
19834         * modules/isnanl (Depends-on): Likewise.
19835         * modules/isnanl-nolibm (Depends-on): Likewise.
19836         * modules/mbchar (Depends-on): Likewise.
19837         * modules/memcoll (Depends-on): Likewise.
19838         * modules/quotearg (Depends-on): Likewise.
19839         * modules/regex (Depends-on): Likewise.
19840         * modules/relocatable-prog (Depends-on): Likewise.
19841         * modules/same (Depends-on): Likewise.
19842         * modules/signbit (Depends-on): Likewise.
19843         * modules/strcasestr-simple (Depends-on): Likewise.
19844         * modules/unictype/gen-ctype (Depends-on): Likewise.
19845         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19846         * modules/uniname/uniname (Depends-on): Likewise.
19847         * modules/unistr/u8-cmp (Depends-on): Likewise.
19848
19849 2008-11-02  Bruno Haible  <bruno@clisp.org>
19850
19851         Mark 'memchr' obsolete.
19852         * modules/memchr (Status, Notice): New sections.
19853         * modules/argp (Depends-on): Add memchr.
19854         * modules/base64 (Depends-on): Likewise.
19855         * modules/c-strcasestr (Depends-on): Likewise.
19856         * modules/chdir-long (Depends-on): Likewise.
19857         * modules/fnmatch (Depends-on): Likewise.
19858         * modules/getsubopt (Depends-on): Likewise.
19859         * modules/git-merge-changelog (Depends-on): Likewise.
19860         * modules/glob (Depends-on): Likewise.
19861         * modules/strcasestr-simple (Depends-on): Likewise.
19862         * modules/strnlen (Depends-on): Likewise.
19863
19864 2008-11-02  Bruno Haible  <bruno@clisp.org>
19865
19866         Mark 'atexit' obsolete.
19867         * modules/atexit (Status, Notice): New sections.
19868         * modules/chdir-long (Depends-on): Add atexit.
19869         * modules/wait-process (Depends-on): Likewise.
19870
19871 2008-11-02  Bruno Haible  <bruno@clisp.org>
19872
19873         * gnulib-tool: New option --with-obsolete.
19874         (func_usage): Document it.
19875         (func_modules_transitive_closure): Drop obsolete dependencies if
19876         incobsolete is not true.
19877         (func_import): Read and save the incobsolete variable to the cache.
19878
19879 2008-11-02  Bruno Haible  <bruno@clisp.org>
19880
19881         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19882         * gnulib-tool: New option --extract-status.
19883         (func_usage): Document it.
19884         (sed_extract_prog): Recognize it.
19885         (func_get_status): New function.
19886
19887 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19888
19889         * modules/sockets (License): Change from LGPL to LGPLv2+.
19890
19891 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19892
19893         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19894
19895 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19896
19897         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19898         Mention times and sys_times.
19899         * modules/sys_times, modules/sys_times-tests: New modules.
19900         * modules/times, modules/times-tests: Likewise
19901         * m4/sys_times_h.m4: New file.
19902         * lib/sys_times.in.h: Likewise
19903         * lib/times.c: Likewise.
19904         * tests/test-sys_times.c: Likewise.
19905         * tests/test-times.c: Likewise.
19906         * doc/posix-headers/sys_times.texi: Update.
19907         * doc/posix-functions/times.texi: Update.
19908
19909 2008-10-28  Jim Meyering  <meyering@redhat.com>
19910
19911         * modules/tempname (Depends-on): Add lstat.
19912
19913         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19914
19915 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19916
19917         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19918         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19919         using idiom used elsewhere in gnulib.
19920
19921 2008-10-27  Jim Meyering  <meyering@redhat.com>
19922
19923         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19924
19925 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19926
19927         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19928         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19929         programs.
19930         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19931
19932 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19933
19934         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19935
19936 2008-10-27  Bruno Haible  <bruno@clisp.org>
19937
19938         * tests/test-lstat.c: Include <stdio.h>.
19939
19940 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19941
19942         * modules/lstat-tests: New module.
19943         * tests/test-lstat.c: New file.
19944
19945 2008-10-26  Jim Meyering  <meyering@redhat.com>
19946
19947         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19948
19949 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19950             Bruno Haible  <bruno@clisp.org>
19951
19952         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19953         * modules/configmake (Include): Add a note that the include must come
19954         after all system headers.
19955         * lib/javaversion.c: Include configmake.h after all other includes.
19956
19957 2008-10-26  Bruno Haible  <bruno@clisp.org>
19958
19959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19960         HAVE_STRUCT_RANDOM_DATA to 1.
19961         (gl_STDLIB_H): Simplify.
19962
19963 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19964
19965         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19966         substitute HAVE_STRUCT_RANDOM_DATA.
19967         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19968         random_data.
19969         * modules/stdlib (Makefile.am): Substitute
19970         HAVE_STRUCT_RANDOM_DATA.
19971
19972 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19973
19974         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19975         * doc/gnulib-intro.texi (Copyright): Likewise.
19976
19977 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19978
19979         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19980         findings.
19981
19982 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19983             Bruno Haible  <bruno@clisp.org>
19984
19985         * lib/unistd.in.h: Include <winsock2.h>.
19986         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19987         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19988         Provide dummy declarations.
19989         (gethostname): Override.
19990         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19991         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19992         gl_PREREQ_SYS_H_WINSOCK2.
19993         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19994         * doc/posix-functions/gethostname.texi: More details.
19995
19996 2008-10-25  Bruno Haible  <bruno@clisp.org>
19997
19998         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19999         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20000         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20001
20002         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20003         here ...
20004         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20005         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20006         gl_UNISTD_H_DEFAULTS.
20007
20008 2008-10-25  Eric Blake  <ebb9@byu.net>
20009
20010         signbit: avoid spurious compiler failure
20011         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20012         declarations inside function.
20013
20014 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20015             Bruno Haible  <bruno@clisp.org>
20016
20017         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20018         * modules/random_r (Depends-on): Add stdint.
20019
20020 2008-10-24  Bruno Haible  <bruno@clisp.org>
20021
20022         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20023         Eggert.
20024         * modules/strerror (License): Likewise.
20025
20026 2008-10-24  Jim Meyering  <meyering@redhat.com>
20027
20028         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20029         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20030
20031 2008-10-24  Eric Blake  <ebb9@byu.net>
20032
20033         getgroups: fix compilation when getgroups is available
20034         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20035         but with <config.h> override of getgroups disabled.
20036
20037 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20038
20039         * doc/gnulib.texi (Header files): Add note about C++ problems.
20040         Explained by Bruno Haible <bruno@clisp.org>.
20041
20042 2008-10-23  Bruno Haible  <bruno@clisp.org>
20043
20044         Define a dummy SA_NODEFER macro on Interix.
20045         * lib/signal.in.h (SA_NODEFER): Define fallback.
20046         Reported by Aleksey Cheusov <cheusov@tut.by> via
20047         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20048
20049 2008-10-23  Bruno Haible  <bruno@clisp.org>
20050
20051         * modules/freadahead (License): Change to LGPLv2+.
20052         Suggested by Simon Josefsson.
20053
20054 2008-10-23  Jim Meyering  <meyering@redhat.com>
20055
20056         random_r: new module
20057         * modules/random_r: New file.
20058         * m4/random_r.m4: New file.
20059         * lib/random_r.c: New file, from glibc.
20060         * modules/random_r-tests: New file.
20061         * tests/test-random_r.c: New file.
20062         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20063          Declare.
20064         (RAND_MAX): Define.
20065         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20066         * modules/stdlib: Substitute them, too.
20067         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20068         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20069         * doc/glibc-functions/random_r.texi: Likewise.
20070         * doc/glibc-functions/setstate_r.texi: Likewise.
20071         * doc/glibc-functions/srandom_r.texi: Likewise.
20072         * config/srclist.txt: Mention it.
20073
20074 2008-10-23  David Lutterkort  <lutter@redhat.com>
20075
20076         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20077         link requirement
20078
20079 2008-10-23  Jim Meyering  <meyering@redhat.com>
20080
20081         selinux-h: mark parameters of stub functions as intentionally unused
20082         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20083         * lib/se-context.in.h: Likewise.
20084
20085 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20086
20087         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20088
20089 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20090
20091         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20092
20093 2008-10-22  Eric Blake  <ebb9@byu.net>
20094
20095         glthread/thread: avoid compiler warning
20096         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20097         Add unreachable abort to silence compiler.
20098
20099 2008-10-22  Eric Blake  <ebb9@byu.net>
20100
20101         netdb: also supply struct addrinfo for cygwin 1.5.x
20102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20103         older cygwin.
20104         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20105         cygwin.
20106         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20107
20108 2008-10-22  Bruno Haible  <bruno@clisp.org>
20109
20110         * users.txt: Update entry about pspp.
20111
20112 2008-10-21  Bruno Haible  <bruno@clisp.org>
20113
20114         Simplification.
20115         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20116         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20117
20118         Simplification.
20119         * lib/ioctl.c (ioctl): Don't undefine.
20120         * lib/socket.c (socket): Don't undefine.
20121
20122         Remove unused module indicator macros.
20123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20124         GNULIB_$1 as a C macro.
20125
20126         * doc/posix-functions/close.texi: Undo last change.
20127         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20128         Windows platforms.
20129
20130 2008-10-21  Bruno Haible  <bruno@clisp.org>
20131
20132         Add gethostname() declaration to <unistd.h>.
20133         * lib/unistd.in.h (gethostname): New declaration.
20134         * lib/gethostname.c: Include <unistd.h>.
20135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20136         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20138         and HAVE_GETHOSTNAME.
20139         * modules/gethostname (Depends-on): Add unistd.
20140         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20141         (Include): Specify <unistd.h>.
20142         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20143         HAVE_GETHOSTNAME.
20144         * tests/test-gethostname.c: Include <unistd.h> first.
20145
20146 2008-10-21  Bruno Haible  <bruno@clisp.org>
20147
20148         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20149         * modules/select-tests (Depends-on): Likewise.
20150         Reported by Simon Josefsson.
20151
20152 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20153
20154         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20155         * lib/accept.c: New file, based on winsock.c.
20156         * lib/bind.c: New file, based on winsock.c.
20157         * lib/connect.c: New file, based on winsock.c.
20158         * lib/getpeername.c: New file, based on winsock.c.
20159         * lib/getsockname.c: New file, based on winsock.c.
20160         * lib/getsockopt.c: New file, based on winsock.c.
20161         * lib/ioctl.c: New file, based on winsock.c.
20162         * lib/listen.c: New file, based on winsock.c.
20163         * lib/recv.c: New file, based on winsock.c.
20164         * lib/recvfrom.c: New file, based on winsock.c.
20165         * lib/send.c: New file, based on winsock.c.
20166         * lib/sendto.c: New file, based on winsock.c.
20167         * lib/setsockopt.c: New file, based on winsock.c.
20168         * lib/shutdown.c: New file, based on winsock.c.
20169         * lib/socket.c: New file, based on winsock.c.
20170         * lib/w32sock.h: New file, based on winsock.c.
20171         * lib/winsock.c: Remove file.
20172         * modules/accept: Likewise.
20173         * modules/bind: Likewise.
20174         * modules/connect: Likewise.
20175         * modules/getpeername: Likewise.
20176         * modules/getsockname: Likewise.
20177         * modules/getsockopt: Likewise.
20178         * modules/ioctl: Likewise.
20179         * modules/listen: Likewise.
20180         * modules/recv: Likewise.
20181         * modules/recvfrom: Likewise.
20182         * modules/send: Likewise.
20183         * modules/sendto: Likewise.
20184         * modules/setsockopt: Likewise.
20185         * modules/shutdown: Likewise.
20186         * modules/socket: Use socket.c instead of winsock.c.
20187         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20188         * doc/posix-functions/accept.texi: Doc fix.
20189         * doc/posix-functions/bind.texi: Doc fix.
20190         * doc/posix-functions/close.texi: Doc fix.
20191         * doc/posix-functions/connect.texi: Doc fix.
20192         * doc/posix-functions/getpeername.texi: Doc fix.
20193         * doc/posix-functions/getsockname.texi: Doc fix.
20194         * doc/posix-functions/getsockopt.texi: Doc fix.
20195         * doc/posix-functions/ioctl.texi: Doc fix.
20196         * doc/posix-functions/listen.texi: Doc fix.
20197         * doc/posix-functions/recv.texi: Doc fix.
20198         * doc/posix-functions/recvfrom.texi: Doc fix.
20199         * doc/posix-functions/send.texi: Doc fix.
20200         * doc/posix-functions/sendto.texi: Doc fix.
20201         * doc/posix-functions/setsockopt.texi: Doc fix.
20202         * doc/posix-functions/shutdown.texi: Doc fix.
20203         * doc/posix-functions/socket.texi: Doc fix.
20204
20205 2008-10-20  Bruno Haible  <bruno@clisp.org>
20206
20207         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20208         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20209         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20210         as an alias for SIGABRT.
20211         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20212         (sigaction): Map it to SIGABRT.
20213         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20214
20215 2008-10-20  Bruno Haible  <bruno@clisp.org>
20216
20217         * lib/fts.c: Don't include lstat.h.
20218         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20219
20220         Move the lstat() declaration to <sys/stat.h>.
20221         * lib/lstat.h: Remove file.
20222         * lib/sys_stat.in.h: Add special invocation convention.
20223         (lstat): New declaration.
20224         * lib/lstat.c (orig_lstat): New function.
20225         (rpl_lstat): Use orig_lstat instead of lstat.
20226         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20227         AC_C_INLINE. Set REPLACE_LSTAT.
20228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20229         and REPLACE_LSTAT.
20230         * modules/lstat (Files): Remove lib/lstat.h.
20231         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20232         (Include): Specify <sys/stat.h> instead of lstat.h.
20233         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20234         REPLACE_LSTAT.
20235         * NEWS: Mention the change.
20236
20237 2008-10-20  Bruno Haible  <bruno@clisp.org>
20238
20239         * modules/posix_spawn-tests: New file.
20240         * tests/test-posix_spawn3.c: New file.
20241
20242 2008-10-20  Bruno Haible  <bruno@clisp.org>
20243
20244         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20245         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20246         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20247         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20248         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20249
20250 2008-10-20  Bruno Haible  <bruno@clisp.org>
20251
20252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20253         of posix_spawn on AIX 5.3.
20254
20255 2008-10-20  Bruno Haible  <bruno@clisp.org>
20256
20257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20258
20259 2008-10-20  Bruno Haible  <bruno@clisp.org>
20260
20261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20262         of AC_LANG_PROGRAM.
20263
20264 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20265
20266         * lib/netdb.in.h: Don't define GNU specific constants until they
20267         are supported or needed.  Reported by Bruno Haible
20268         <bruno@clisp.org>.
20269
20270 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20271
20272         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20273
20274 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20275
20276         * lib/getaddrinfo.h: Remove file.
20277         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20278         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20279         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20280         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20281         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20282         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20283         * tests/test-getaddrinfo.c: Likewise.
20284         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20285         * NEWS: Mention change.
20286
20287 2008-10-19  Bruno Haible  <bruno@clisp.org>
20288
20289         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20290
20291 2008-10-19  Bruno Haible  <bruno@clisp.org>
20292
20293         * lib/wait-process.c: Include simply <sys/wait.h>.
20294         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20295         WIFSTOPPED): Remove fallback definitions.
20296         * modules/wait-process (Depends-on): Add sys_wait.
20297
20298         New module 'sys_wait'.
20299         * modules/sys_wait: New file.
20300         * lib/sys_wait.in.h: New file, partially copied from
20301         lib/wait-process.c.
20302         * m4/sys_wait_h.m4: New file.
20303         * doc/posix-headers/sys_wait.texi: Mention the new module.
20304
20305 2008-10-19  Bruno Haible  <bruno@clisp.org>
20306
20307         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20308
20309 2008-10-19  Bruno Haible  <bruno@clisp.org>
20310
20311         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20312         * lib/wait-process.c (WAIT_T): Remove type.
20313         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20314         (wait_subprocess): Update.
20315
20316 2008-10-19  Bruno Haible  <bruno@clisp.org>
20317
20318         New module 'atoll'.
20319         * modules/atoll: New file.
20320         * lib/stdlib.in.h (atoll): New declaration.
20321         * lib/atoll.c: New file, from glibc with modifications.
20322         * m4/atoll.m4: New file.
20323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20324         HAVE_ATOLL.
20325         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20326         * doc/posix-functions/atoll.texi: Mention the new module.
20327
20328 2008-10-19  Bruno Haible  <bruno@clisp.org>
20329
20330         Add strtoull() declaration to <stdlib.h>.
20331         * lib/stdlib.in.h (strtoull): New declaration.
20332         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20333         Set HAVE_STRTOULL.
20334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20335         HAVE_STRTOULL.
20336         * modules/strtoull (Depends-on): Add stdlib.
20337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20338         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20339         HAVE_STRTOULL.
20340
20341 2008-10-19  Bruno Haible  <bruno@clisp.org>
20342
20343         Add strtoll() declaration to <stdlib.h>.
20344         * lib/stdlib.in.h (strtoll): New declaration.
20345         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20346         Set HAVE_STRTOLL.
20347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20348         HAVE_STRTOLL.
20349         * modules/strtoll (Depends-on): Add stdlib.
20350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20351         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20352
20353 2008-10-19  Bruno Haible  <bruno@clisp.org>
20354
20355         * modules/bcopy (Depends-on): Add strings.
20356         (Include): Specify <strings.h>.
20357
20358 2008-10-19  Bruno Haible  <bruno@clisp.org>
20359
20360         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20361
20362 2008-10-19  Bruno Haible  <bruno@clisp.org>
20363
20364         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20365         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20366         mingw.
20367
20368 2008-10-19  Bruno Haible  <bruno@clisp.org>
20369
20370         * lib/atanl.c: Don't include isnanl.h.
20371         * lib/cosl.c: Likewise.
20372         * lib/ldexpl.c: Likewise.
20373         * lib/logl.c: Likewise.
20374         * lib/sinl.c: Likewise.
20375         * lib/sqrtl.c: Likewise.
20376         * lib/tanl.c: Likewise.
20377
20378         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20379         * lib/isnanf.h: Remove file.
20380         * lib/isnand.h: Remove file.
20381         * lib/isnanl.h: Remove file.
20382         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20383         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20384         macros.
20385         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20386         HAVE_ISNANF, don't define it as a C macro.
20387         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20388         HAVE_ISNAND, don't define it as a C macro.
20389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20390         HAVE_ISNANL, don't define it as a C macro.
20391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20392         HAVE_ISNAN[FDL].
20393         * modules/isnanf (Files): Remove lib/isnanf.h.
20394         (Depends-on): Add math.
20395         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20396         (Include): Specify <math.h> instead of isnanf.h.
20397         * modules/isnand (Files): Remove lib/isnand.h.
20398         (Depends-on): Add math.
20399         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20400         (Include): Specify <math.h> instead of isnand.h.
20401         * modules/isnanl (Files): Remove lib/isnanl.h.
20402         (Depends-on): Add math.
20403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20404         (Include): Specify <math.h> instead of isnanl.h.
20405         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20406         HAVE_ISNAN[FDL].
20407         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20408         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20409         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20410         * NEWS: Mention the change.
20411
20412 2008-10-18  Bruno Haible  <bruno@clisp.org>
20413
20414         Add getusershell(), setusershell(), endusershell() declarations to
20415         <unistd.h>.
20416         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20417         declarations.
20418         * lib/getusershell.c: Include unistd.h.
20419         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20420         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20421         HAVE_GETUSERSHELL.
20422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20423         and HAVE_GETUSERSHELL.
20424         * modules/getusershell (Depends-on): Add unistd, extensions.
20425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20426         (Include): Specify <unistd.h>.
20427         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20428         HAVE_GETUSERSHELL.
20429
20430 2008-10-18  Bruno Haible  <bruno@clisp.org>
20431
20432         Add a getloadavg() declaration to <stdlib.h>.
20433         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20434         getloadavg declaration.
20435         (getloadavg): New declaration.
20436         * lib/getloadavg.c: Include <stdlib.h> first.
20437         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20438         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20439         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20441         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20442         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20443         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20444         (Include): Specify <stdlib.h>.
20445         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20446         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20447
20448 2008-10-18  Bruno Haible  <bruno@clisp.org>
20449
20450         * lib/dirchownmod.c: Don't include lchmod.h.
20451
20452         Move the lchmod() declaration to <sys/stat.h>.
20453         * lib/lchmod.h: Remove file.
20454         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20455         (lchmod): New declaration, moved here from lib/lchown.h.
20456         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20457         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20459         and HAVE_LCHMOD.
20460         * modules/lchmod (Files): Remove lib/lchmod.h.
20461         (Depends-on): Add sys_stat, extensions.
20462         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20463         (Include): Specify <sys/stat.h> instead of lchmod.h.
20464         * modules/sys_stat (Depends-on): Add link-warning.
20465         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20466         definition of GL_LINK_WARNING.
20467         * NEWS: Mention the change.
20468
20469 2008-10-18  Bruno Haible  <bruno@clisp.org>
20470
20471         * lib/fchdir.c: Don't include dirfd.h.
20472         * lib/fts.c: Likewise.
20473         * lib/getcwd.c: Likewise.
20474         * lib/glob.c: Likewise.
20475
20476         Move the dirfd() declaration to <dirent.h>.
20477         * lib/dirfd.h: Remove file.
20478         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20479         (dirfd): New declaration.
20480         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20482         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20483         HAVE_DECL_DIRFD.
20484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20485         HAVE_DECL_DIRFD.
20486         * modules/dirfd (Files): Remove lib/dirfd.h.
20487         (Depends-on): Add dirent, extensions.
20488         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20489         (Include): Specify <dirent.h> instead of dirfd.h.
20490         * modules/dirent (Depends-on): Add link-warning.
20491         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20492         definition of GL_LINK_WARNING.
20493         * NEWS: Mention the change.
20494
20495 2008-10-18  Bruno Haible  <bruno@clisp.org>
20496
20497         Move the euidaccess() declaration to <unistd.h>.
20498         * lib/euidaccess.h: Remove file.
20499         * lib/unistd.in.h (euidaccess): New declaration.
20500         * lib/euidaccess.c: Don't include euidaccess.h.
20501         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20502         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20504         and HAVE_EUIDACCESS.
20505         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20506         (Depends-on): Add unistd.
20507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20508         (Include): Specify <unistd.h> instead of euidaccess.h.
20509         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20510         HAVE_EUIDACCESS.
20511         * NEWS: Mention the change.
20512
20513 2008-10-18  Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20516
20517         Move the getdomainname() declaration to <unistd.h>.
20518         * lib/getdomainname.h: Remove file.
20519         * lib/unistd.in.h (getdomainname): New declaration.
20520         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20522         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20523         HAVE_GETDOMAINNAME.
20524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20525         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20526         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20527         (Depends-on): Add unistd, extensions.
20528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20529         (Includes): Specify <unistd.h> instead of getdomainname.h.
20530         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20531         HAVE_GETDOMAINNAME.
20532         * NEWS: Mention the change.
20533
20534 2008-10-18  Bruno Haible  <bruno@clisp.org>
20535
20536         * modules/dirent: New file.
20537         * m4/dirent_h.m4: New file.
20538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20539         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20540         * modules/fchdir (Files): Remove lib/dirent.in.h.
20541         (Depends-on): Add dirent.
20542         (Makefile.am): Move rules to modules/dirent.
20543         * doc/posix-headers/dirent.texi: Mention the new module.
20544
20545 2008-10-18  Bruno Haible  <bruno@clisp.org>
20546
20547         Avoid -Wunused-parameter warnings in public gnulib header files.
20548         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20549         macro.
20550         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20551
20552 2008-10-18  Bruno Haible  <bruno@clisp.org>
20553
20554         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20555         * doc/glibc-functions/error.texi: Mention the module 'error'.
20556         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20557         * doc/glibc-functions/getdomainname.texi: Mention the module
20558         'getdomainname'.
20559         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20560         * doc/glibc-functions/getpagesize.texi: Mention the module
20561         'getpagesize'.
20562         * doc/glibc-functions/getusershell.texi: Mention the module
20563         'getusershell'.
20564         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20565         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20566         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20567         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20568         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20569         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20570         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20571         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20572         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20573         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20574         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20575         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20576         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20577         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20578
20579 2008-10-17  Bruno Haible  <bruno@clisp.org>
20580
20581         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20582         HP-UX and IRIX, use -0.0L.
20583         * tests/test-ceill.c (minus_zero): Likewise.
20584         * tests/test-floorl.c (minus_zero): Likewise.
20585         * tests/test-frexpl.c (minus_zero): Likewise.
20586         * tests/test-isnan.c (minus_zerol): Likewise.
20587         * tests/test-isnanl.h (minus_zero): Likewise.
20588         * tests/test-ldexpl.c (minus_zero): Likewise.
20589         * tests/test-roundl.c (minus_zero): Likewise.
20590         * tests/test-signbit.c (minus_zerol): Likewise.
20591         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20592         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20593         * tests/test-truncl.c (minus_zero): Likewise.
20594         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20595         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20596         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20597         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20598
20599 2008-10-17  Bruno Haible  <bruno@clisp.org>
20600
20601         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20602         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20603         that it gets activated only for gcc >= 3.0.
20604         * lib/dirent.in.h: Likewise.
20605         * lib/errno.in.h: Likewise.
20606         * lib/fcntl.in.h: Likewise.
20607         * lib/float.in.h: Likewise.
20608         * lib/iconv.in.h: Likewise.
20609         * lib/inttypes.in.h: Likewise.
20610         * lib/locale.in.h: Likewise.
20611         * lib/math.in.h: Likewise.
20612         * lib/netdb.in.h: Likewise.
20613         * lib/netinet_in.in.h: Likewise.
20614         * lib/search.in.h: Likewise.
20615         * lib/signal.in.h: Likewise.
20616         * lib/spawn.in.h: Likewise.
20617         * lib/stdarg.in.h: Likewise.
20618         * lib/stdint.in.h: Likewise.
20619         * lib/stdio.in.h: Likewise.
20620         * lib/stdlib.in.h: Likewise.
20621         * lib/string.in.h: Likewise.
20622         * lib/strings.in.h: Likewise.
20623         * lib/sys_file.in.h: Likewise.
20624         * lib/sys_ioctl.in.h: Likewise.
20625         * lib/sys_select.in.h: Likewise.
20626         * lib/sys_socket.in.h: Likewise.
20627         * lib/sys_stat.in.h: Likewise.
20628         * lib/sys_time.in.h: Likewise.
20629         * lib/sysexits.in.h: Likewise.
20630         * lib/time.in.h: Likewise.
20631         * lib/unistd.in.h: Likewise.
20632         * lib/wchar.in.h: Likewise.
20633         * lib/wctype.in.h: Likewise.
20634         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20635
20636 2008-10-17  Jim Meyering  <meyering@redhat.com>
20637
20638         ignore-value: don't depend on inline module
20639         * modules/ignore-value (Depends-on): Remove 'inline'.
20640         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20641         Suggestion from Bruno Haible.
20642
20643 2008-10-17  Bruno Haible  <bruno@clisp.org>
20644
20645         New implementation of condition variables for Win32.
20646         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20647         (gl_linked_waitqueue_t): New type.
20648         (gl_cond_t): Use it.
20649         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20650         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20651         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20652         (glthread_cond_init_func, glthread_cond_wait_func,
20653         glthread_cond_timedwait_func, glthread_cond_signal_func,
20654         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20655         Reimplemented on the basis of gl_linked_waitqueue_t.
20656         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20657         gl_waitqueue_t.
20658         (gl_rwlock_t): Update.
20659         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20660
20661 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20662
20663         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20664         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20665
20666 2008-10-17  Jim Meyering  <meyering@redhat.com>
20667
20668         ignore-value: new module
20669         * modules/ignore-value: New file.
20670         * lib/ignore-value.h: New file.
20671         * MODULES.html.sh (Compiler warning management): New section,
20672         just for this module.  More to come.
20673
20674 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20675
20676         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20677         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20678         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20679
20680 2008-10-16  Jim Meyering  <meyering@redhat.com>
20681
20682         openat-die.c: avoid 'no previous prototype' warning
20683         * lib/openat-die.c: Include "openat.h".
20684         Reported by Reuben Thomas <rrt@sc3d.org>.
20685
20686 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20687
20688         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20689         * lib/netdb.in.h: Fix typo.
20690         Reported by Bruno Haible  <bruno@clisp.org>
20691
20692         * lib/netdb.in.h: Include sys/socket.h for platforms without
20693         netdb.h, to get structures like hostent on MinGW.
20694         * modules/netdb (Depends-on): Add sys_socket.
20695
20696 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20697
20698         * modules/netdb, modules/netdb-tests: New file.
20699         * m4/netdb_h.m4: New file.
20700         * lib/netdb.in.h: Add, currently just an empty file pending
20701         definitions.
20702         * tests/test-netdb.c: New file.
20703         * doc/posix-headers/netdb.texi: Mention that we replace it if
20704         needed.
20705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20706         netdb.
20707
20708 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20709
20710         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20711         with code.
20712
20713 2008-10-13  Bruno Haible  <bruno@clisp.org>
20714
20715         * lib/glthread/cond.c (glthread_cond_wait_func,
20716         glthread_cond_timedwait_func): Add a comment.
20717
20718 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20719
20720         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20721         * tests/test-select.c: Likewise,
20722
20723 2008-10-13  Bruno Haible  <bruno@clisp.org>
20724
20725         * lib/glthread/cond.c (glthread_cond_wait_func,
20726         glthread_cond_timedwait_func): Fix variable name.
20727         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20728
20729 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20730
20731         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20733         struct sockaddr.sa_len.
20734         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20735
20736 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20737
20738         * build-aux/pmccabe2html: Add css and css_url parameters.
20739
20740 2008-10-12  Bruno Haible  <bruno@clisp.org>
20741
20742         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20743         calling aclx_get.
20744         Reported by Rainer Tammer <tammer@tammer.net>.
20745
20746 2008-10-12  Bruno Haible  <bruno@clisp.org>
20747
20748         Use msvcrt aware primitives for creation/termination of Win32 threads.
20749         * lib/glthread/thread.c: Include <process.h>.
20750         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20751         (wrapper_func): Update signature.
20752         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20753
20754 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20755             Bruno Haible  <bruno@clisp.org>
20756
20757         Provide a Win32 implementation of the 'cond' module.
20758         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20759         * lib/glthread/cond.c (glthread_cond_init_func,
20760         glthread_cond_wait_func, glthread_cond_timedwait_func,
20761         glthread_cond_signal_func, glthread_cond_broadcast_func,
20762         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20763         * modules/cond (Dependencies): Add gettimeofday.
20764
20765 2008-10-11  Bruno Haible  <bruno@clisp.org>
20766
20767         Make sleep work on older versions of mingw.
20768         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20769         only whether it exists.
20770         * doc/posix-functions/sleep.texi: Mention the problem with older
20771         versions of mingw.
20772
20773 2008-10-11  Bruno Haible  <bruno@clisp.org>
20774
20775         New module 'shutdown'.
20776         * modules/shutdown: New file.
20777         * lib/sys_socket.in.h (shutdown): New declaration.
20778         * lib/winsock.c (shutdown): New function.
20779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20780         GNULIB_SHUTDOWN.
20781         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20782         * doc/posix-functions/shutdown.texi: Document the new module.
20783
20784 2008-10-11  Jim Meyering  <meyering@redhat.com>
20785
20786         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20787
20788 2008-10-11  Bruno Haible  <bruno@clisp.org>
20789
20790         New module 'fclose'.
20791         * modules/fclose: New file.
20792         * lib/stdio.in.h (fclose): New declaration.
20793         * lib/fclose.c: New file.
20794         * m4/fclose.m4: New file.
20795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20796         REPLACE_FCLOSE.
20797         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20798         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20799         REPLACE_FCLOSE.
20800         * modules/close (Depends-on): fclose.
20801         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20802
20803 2008-10-11  Bruno Haible  <bruno@clisp.org>
20804
20805         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20806         set errno and don't call _close.
20807
20808 2008-10-10  Bruno Haible  <bruno@clisp.org>
20809
20810         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20811         ACL, not afterwards. Fixes test failure on Cygwin.
20812
20813 2008-10-09  Ben Pfaff  <blp@gnu.org>
20814
20815         * build-aux/announce-gen: Fix gnulib version related part of usage
20816         message.  Die with a useful error message if no tarballs are
20817         found.
20818
20819 2008-10-10  Jim Meyering  <meyering@redhat.com>
20820
20821         bootstrap: use git's --depth=N option only if it's supported
20822         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20823         recognize the --depth option.  Reported by Pádraig Brady.
20824
20825 2008-10-09  Bruno Haible  <bruno@clisp.org>
20826
20827         New module 'ioctl'.
20828         * modules/ioctl: New file.
20829         * lib/sys_socket.in.h (ioctl): Remove declaration.
20830         * lib/winsock.c: Include <sys/ioctl.h>.
20831         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20832         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20833         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20834         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20835         * doc/posix-functions/ioctl.texi: Mention the new module.
20836
20837 2008-10-09  Bruno Haible  <bruno@clisp.org>
20838
20839         New module 'sys_ioctl'.
20840         * lib/sys_ioctl.in.h: New file.
20841         * m4/sys_ioctl_h.m4: New file.
20842         * modules/sys_ioctl: New file.
20843         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20844
20845 2008-10-09  Bruno Haible  <bruno@clisp.org>
20846
20847         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20848         * lib/winsock.c: Include <stdarg.h>.
20849         (rpl_ioctl): Change to second argument 'int' and then varargs.
20850
20851 2008-10-09  Bruno Haible  <bruno@clisp.org>
20852
20853         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20854         when the sys_socket module is present and the system has <winsock2.h>.
20855
20856 2008-10-09  Bruno Haible  <bruno@clisp.org>
20857
20858         * doc/posix-functions/close.texi: Mention module 'close' instead of
20859         module 'sys_socket'.
20860
20861 2008-10-09  Bruno Haible  <bruno@clisp.org>
20862
20863         * doc/glibc-headers/sys_ioctl.texi: New file.
20864         * doc/gnulib.texi: Include it.
20865
20866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20867             Bruno Haible  <bruno@clisp.org>
20868
20869         Combine the two replacements of 'close'.
20870         * lib/sys_socket.in.h (close): Define to a reminder to include
20871         <unistd.h>.
20872         (_gl_close_fd_maybe_socket): New declaration.
20873         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20874         * lib/winsock.c (close): Remove undefinition.
20875         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20876         needed for the gnulib module 'close'.
20877         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20878         define to an error symbol or to a warning, if suitable.
20879         * lib/close.c: Include <sys/socket.h>.
20880         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20881         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20882         UNISTD_H_HAVE_WINSOCK2_H.
20883         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20885         UNISTD_H_HAVE_WINSOCK2_H.
20886         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20887         (configure.ac): Set a module indicator.
20888         (Makefile.am): Substitute GNULIB_CLOSE.
20889         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20890         * modules/poll-tests (Depends-on): Add close.
20891         * modules/select-tests (Depends-on): Likewise.
20892
20893 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20894             Bruno Haible  <bruno@clisp.org>
20895
20896         New module 'close'.
20897         * modules/close: New file.
20898         * lib/unistd.in.h (close): Move declaration out of the
20899         FCHDIR_REPLACEMENT scope.
20900         (_gl_unregister_fd): New declaration.
20901         * lib/close.c: New file.
20902         * lib/fchdir.c (rpl_close): Remove function.
20903         * m4/close.m4: New file.
20904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20905         close.
20906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20907         REPLACE_CLOSE.
20908         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20909         REPLACE_CLOSE.
20910         * modules/fchdir (Depends-on): Add close.
20911
20912 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20913             Bruno Haible  <bruno@clisp.org>
20914
20915         * lib/fcntl.in.h (open): Simplify conditionals.
20916         (_gl_register_fd): New declaration.
20917         * lib/fchdir.c (rpl_open): Remove function.
20918         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20919         also.
20920         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20922         open.
20923
20924 2008-10-09  Jim Meyering  <meyering@redhat.com>
20925
20926         GNUmakefile: use the more name-space-friendly "_version"
20927         * top/GNUmakefile (_dummy): Update.
20928         (_version): Rename from "version".
20929
20930 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20931             Bruno Haible  <bruno@clisp.org>
20932
20933         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20934         rpl_close.
20935         (_gl_register_fd): New function, extracted from rpl_open.
20936         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20937         (rpl_open, rpl_opendir): Use _gl_register_fd.
20938
20939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20940
20941         Fix organization of 'open' replacement.
20942         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20943         (gl_FUNC_OPEN): Use it.
20944         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20945
20946 2008-10-08  Bruno Haible  <bruno@clisp.org>
20947
20948         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20949
20950 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20951
20952         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20953         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20954         listen).
20955
20956 2008-10-08  Eric Blake  <ebb9@byu.net>
20957
20958         GNUmakefile: add 'make version' target
20959         * top/GNUmakefile (_curr-ver): Split version update rules...
20960         (version): ...into a target.
20961
20962 2008-10-07  Bruno Haible  <bruno@clisp.org>
20963
20964         Use a more portable replacement expression for -0.0L.
20965         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20966         instead of -0.0L. Fix m4 quotation.
20967
20968         * tests/test-signbit.c: Include <float.h>.
20969         (minus_zero): New variable.
20970         (test_signbitl): Use minus_zero instead of -zero.
20971         * modules/signbit-tests (Depends-on): Add float.
20972
20973         * tests/test-ceill.c: Include <float.h>.
20974         (zero): Remove variable.
20975         (minus_zero): New variable.
20976         (main): Use minus_zero instead of -zero.
20977         * modules/ceill-tests (Depends-on): Add float.
20978
20979         * tests/test-floorl.c: Include <float.h>.
20980         (zero): Remove variable.
20981         (minus_zero): New variable.
20982         (main): Use minus_zero instead of -zero.
20983         * modules/floorl-tests (Depends-on): Add float.
20984
20985         * tests/test-roundl.c: Include <float.h>.
20986         (zero): Remove variable.
20987         (minus_zero): New variable.
20988         (main): Use minus_zero instead of -zero.
20989         * modules/roundl-tests (Depends-on): Add float.
20990
20991         * tests/test-truncl.c: Include <float.h>.
20992         (zero): Remove variable.
20993         (minus_zero): New variable.
20994         (main): Use minus_zero instead of -zero.
20995         * modules/truncl-tests (Depends-on): Add float.
20996
20997         * tests/test-frexpl.c (zero): Remove variable.
20998         (minus_zero): New variable.
20999         (main): Use minus_zero instead of -zero.
21000         * modules/frexpl-tests (Depends-on): Add float.
21001
21002         * tests/test-isnan.c (zerol): Remove variable.
21003         (minus_zerol): New variable.
21004         (test_long_double): Use minus_zerol instead of -zerol.
21005         * modules/isnan-tests (Depends-on): Add float.
21006
21007         * tests/test-isnanl.h (zero): Remove variable.
21008         (minus_zero): New variable.
21009         (main): Use minus_zero instead of -zero.
21010         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21011         * modules/isnanl-tests (Depends-on): Add float.
21012
21013         * tests/test-ldexpl.c (zero): Remove variable.
21014         (minus_zero): New variable.
21015         (main): Use minus_zero instead of -zero.
21016         * modules/ldexpl-tests (Depends-on): Add float.
21017
21018         * tests/test-snprintf-posix.h (zerol): Remove variable.
21019         (minus_zerol): New variable.
21020         (test_function): Use minus_zerol instead of -zerol.
21021         * modules/snprintf-posix-tests (Depends-on): Add float.
21022         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21023
21024         * tests/test-sprintf-posix.h (zerol): Remove variable.
21025         (minus_zerol): New variable.
21026         (test_function): Use minus_zerol instead of -zerol.
21027         * modules/sprintf-posix-tests (Depends-on): Add float.
21028         * modules/vsprintf-posix-tests (Depends-on): Add float.
21029
21030         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21031         (minus_zerol): New variable.
21032         (test_function): Use minus_zerol instead of -zerol.
21033         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21034
21035         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21036         (minus_zerol): New variable.
21037         (test_function): Use minus_zerol instead of -zerol.
21038         * modules/vasprintf-posix-tests (Depends-on): Add float.
21039
21040 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21041
21042         * MODULES.html.sh (Support for building documentation): Mention
21043         pmccabe2html.  Sort entries.
21044
21045         Add pmccabe2html module, from gnupdf.
21046         * build-aux/pmccabe.css: New file.
21047         * build-aux/pmccabe2html: New file.
21048         * m4/pmccabe2html.m4: New file.
21049         * modules/pmccabe2html: New file.
21050
21051 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21052
21053         flock: new module
21054         * MODULES.html.sh: Add to list of modules.
21055         * lib/flock.c: flock implementation for Windows and Unix systems
21056         which have fcntl.
21057         * doc/glibc-functions/flock.texi: Update documentation.
21058         * lib/sys_file.in.h: <sys/file.h> header file.
21059         * m4/flock.m4: M4 macros.
21060         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21061         * modules/flock: flock module.
21062         * modules/flock-tests: flock tests module.
21063         * modules/sys_file: sys/file.h module.
21064         * tests/test-flock.c: test suite for flock.
21065
21066 2008-10-06  Jim Meyering  <meyering@redhat.com>
21067
21068         bootstrap: check for LT_INIT more portably still ;-)
21069         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21070         Spotted by Bruno Haible.
21071
21072 2008-10-06  Eric Blake  <ebb9@byu.net>
21073
21074         test-signbit: avoid tripping Irix cc bug on -0.0L
21075         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21076         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21077         entire testsuite consistent and avoids an Irix 6.2 bug.
21078
21079 2008-10-05  Bruno Haible  <bruno@clisp.org>
21080             Jim Meyering  <jim@meyering.net>
21081
21082         Add an option for ignoring EPIPE during close_stdout.
21083         * lib/closeout.h: Include <stdbool.h>.
21084         (close_stdout_set_ignore_EPIPE): New declaration.
21085         * lib/closeout.c: Include <stdbool.h>.
21086         (ignore_EPIPE): New variable.
21087         (close_stdout_set_ignore_EPIPE): New function.
21088         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21089         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21090         failure.
21091         * modules/closeout (Depends-on): Add stdbool.
21092
21093 2008-10-05  Bruno Haible  <bruno@clisp.org>
21094
21095         * modules/accept: New file.
21096         * modules/bind: New file.
21097         * modules/connect: New file.
21098         * modules/getpeername: New file.
21099         * modules/getsockname: New file.
21100         * modules/getsockopt: New file.
21101         * modules/listen: New file.
21102         * modules/recv: New file.
21103         * modules/recvfrom: New file.
21104         * modules/send: New file.
21105         * modules/sendto: New file.
21106         * modules/setsockopt: New file.
21107         * modules/socket: New file.
21108         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21109         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21110         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21111         the particular module is requested. Add a link warning when the
21112         particular module is not requested.
21113         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21114         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21115         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21116         the particular module is requested.
21117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21118         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21119         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21120         * modules/sys_socket (Depends-on): Add link-warning.
21121         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21122         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21123         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21124         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21125         GL_LINK_WARNING.
21126         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21127         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21128         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21129         * doc/posix-functions/getpeername.texi: Mention the new module
21130         'getpeername'.
21131         * doc/posix-functions/getsockname.texi: Mention the new module
21132         'getsockname'.
21133         * doc/posix-functions/getsockopt.texi: Mention the new module
21134         'getsockopt'.
21135         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21136         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21137         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21138         * doc/posix-functions/send.texi: Mention the new module 'send'.
21139         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21140         * doc/posix-functions/setsockopt.texi: Mention the new module
21141         'setsockopt'.
21142         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21143         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21144         listen, connect, accept.
21145         * modules/select-tests (Depends-on): Likewise.
21146
21147 2008-10-05  Bruno Haible  <bruno@clisp.org>
21148
21149         * lib/winsock.c (strerror): Remove unused #undef.
21150         (rpl_close): Remove unused local variable.
21151
21152         * modules/sys_socket (Depends-on); Add errno.
21153
21154 2008-10-05  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21157         (select): Add a link warning when the 'select' module is not used.
21158         * modules/sys_select (Depends-on): Add link-warning.
21159         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21160         Suggested by Paolo Bonzini.
21161
21162 2008-10-05  Jim Meyering  <meyering@redhat.com>
21163
21164         bootstrap: check for LT_INIT more portably
21165         * build-aux/bootstrap: Avoid using grep -E, since it's not
21166         portable enough.  Suggestion from Bruno Haible.
21167
21168 2008-10-05  Bruno Haible  <bruno@clisp.org>
21169
21170         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21171         as being fixed by gnulib.
21172
21173 2008-10-05  Bruno Haible  <bruno@clisp.org>
21174
21175         * modules/select-tests: New file, mostly copied from
21176         modules/sys_select-tests.
21177         * tests/test-select.c: New file, mostly copied from
21178         tests/test-sys_select.c.
21179         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21180         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21181         (Makefile.am): Remove test_sys_select_LDADD.
21182
21183         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21184         to an undefined symbol, for an error message.
21185         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21186         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21187         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21188         winsock-select.c here.
21189         * modules/sys_select (Files): Remove lib/winsock-select.c.
21190         (Depends-on): Remove alloca.
21191         (Makefile.am): Substitute GNULIB_SELECT.
21192         * modules/select: New file.
21193         * doc/posix-functions/select.texi: Update.
21194
21195 2008-10-05  Bruno Haible  <bruno@clisp.org>
21196
21197         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21198         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21199         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21200         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21201         getdtablesize.
21202         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21203         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21204
21205 2008-10-05  Bruno Haible  <bruno@clisp.org>
21206
21207         * modules/getdtablesize-tests: New file.
21208         * tests/test-getdtablesize.c: New file.
21209
21210         New module 'getdtablesize'.
21211         * lib/unistd.in.h (getdtablesize): New declaration.
21212         * lib/getdtablesize.c: New file.
21213         * m4/getdtablesize.m4: New file.
21214         * modules/getdtablesize: New file.
21215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21216         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21217         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21218         HAVE_GETDTABLESIZE.
21219         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21220
21221 2008-10-05  Bruno Haible  <bruno@clisp.org>
21222
21223         * modules/sched (Makefile.am): Fix typo.
21224         Reported by Simon Josefsson.
21225
21226 2008-10-05  Jim Meyering  <meyering@redhat.com>
21227
21228         bootstrap: check for LT_INIT, too
21229         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21230         are deprecated.  Suggestion from Ralf Wildenhues.
21231
21232 2008-10-05  Bruno Haible  <bruno@clisp.org>
21233
21234         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21235         overriding them by ours.
21236         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21237
21238 2008-10-05  Jim Meyering  <meyering@redhat.com>
21239
21240         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21241         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21242         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21243
21244 2008-10-04  Bruno Haible  <bruno@clisp.org>
21245
21246         * modules/dup2 (License): Change to LGPLv2+.
21247         * modules/sleep (License): Likewise.
21248         * modules/perror (License): Likewise.
21249         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21250         Blake.
21251         * modules/signal (License): Likewise.
21252         * modules/sigprocmask (License): Likewise.
21253         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21254         Meyering.
21255
21256 2008-10-04  Bruno Haible  <bruno@clisp.org>
21257
21258         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21259         Reported by Rainer Tammer <tammer@tammer.net>.
21260
21261 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21262             Bruno Haible  <bruno@clisp.org>
21263
21264         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21265         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21266         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21267
21268 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21269
21270         filevercmp: new module
21271         * lib/filevercmp.h: New function filevercmp comparing version strings.
21272         * lib/filevercmp.c: Implementation of filevercmp function.
21273         * modules/filevercmp: Module metadata.
21274         * tests/test-filevercmp.c: Unit test for new module.
21275         * modules/filevercmp-tests: Unit test metadata.
21276         * MODULES.html.sh: Add filevercmp module.
21277
21278 2008-10-03  Bruno Haible  <bruno@clisp.org>
21279
21280         * lib/c-ctype.h: Add comment.
21281         Reported by Jim Meyering.
21282
21283 2008-10-02  Bruno Haible  <bruno@clisp.org>
21284
21285         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21286
21287 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21288
21289         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21290         name of bootstrap.conf accordingly.
21291
21292 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21293
21294         * build-aux/bootstrap: Install git-merge-changelog configuration
21295         items into .gitconfig if needed.
21296
21297 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21298
21299         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21300         git repository, and initialize/update it accordingly.
21301
21302 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21303
21304         * modules/fsync-tests: New file.
21305         * tests/test-fsync.c: New file.
21306
21307         New module 'fsync'.
21308         * lib/fsync.c: New file.
21309         * m4/fsync.m4: New file.
21310         * modules/fsync: New file.
21311         * lib/unistd.in.h (fsync): New declaration.
21312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21313         GNULIB_FSYNC and HAVE_FSYNC.
21314         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21315         * MODULES.html.sh (posix_functions): Add fsync.
21316         * doc/posix-functions/fsync.texi: Mention the new module.
21317
21318 2008-10-02  Jim Meyering  <meyering@redhat.com>
21319
21320         fts.c: sync with similar code from coreutils' remove.c
21321         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21322         Guard also with "#if defined __linux__", since for now at least,
21323         this code is Linux-kernel-specific.
21324
21325 2008-10-02  Jim Meyering  <meyering@redhat.com>
21326
21327         fts: bug fixes
21328         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21329         Include <sys/vfs.h>, not <sys/statfs.h>.
21330
21331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21332         Include <sys/vfs.h>, not <sys/statfs.h>.
21333
21334 2008-10-01  Bruno Haible  <bruno@clisp.org>
21335
21336         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21338         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21339         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21340         * doc/posix-functions/posix_spawnp.texi: Likewise.
21341         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21342         whether posix_spawn actually works.
21343         * m4/pipe.m4 (gl_PIPE): Likewise.
21344         * modules/execute (Files): Add m4/posix_spawn.m4.
21345         * modules/pipe (Files): Add m4/posix_spawn.m4.
21346         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21347
21348 2008-10-01  Jim Meyering  <meyering@redhat.com>
21349
21350         remove trailing spaces
21351         * NEWS: Likewise.
21352         * lib/poll.c (poll): Likewise.
21353         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21354         * lib/winsock.c (rpl_close): Likewise.
21355         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21356         * modules/yield: Likewise.
21357         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21358         * tests/test-sys_select.c (connect_to_socket): Likewise.
21359
21360         fts.c: adjust a new interface to be more generally useful
21361         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21362         (fts_build): Adjust caller.
21363
21364 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21365
21366         * modules/cond-tests: New file.
21367         * tests/test-cond.c: New file.
21368
21369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21370             Bruno Haible  <bruno@clisp.org>
21371
21372         * modules/cond (Dependencies): Add errno, time.
21373         * lib/glthread/cond.h: Include <time.h>.
21374         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21375         across platforms.
21376
21377 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21378             Bruno Haible  <bruno@clisp.org>
21379
21380         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21381
21382 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21383             Bruno Haible  <bruno@clisp.org>
21384
21385         * modules/tls-tests (Depends-on): Add thread, yield.
21386         (configure.ac): Remove all checks.
21387         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21388         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21389         gl_thread_self): Remove definitions. Include glthread/thread.h and
21390         glthread/yield.h instead.
21391         (test_tls): Pass an additional NULL argument to gl_thread_join.
21392
21393 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21394             Bruno Haible  <bruno@clisp.org>
21395
21396         * modules/lock-tests (Depends-on): Add thread, yield.
21397         (configure.ac): Remove all checks.
21398         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21399         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21400         gl_thread_self): Remove definitions. Include glthread/thread.h and
21401         glthread/yield.h instead.
21402         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21403         additional NULL argument to gl_thread_join.
21404
21405 2008-09-30  Bruno Haible  <bruno@clisp.org>
21406
21407         Fix the Win32 implementation of the 'thread' module.
21408         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21409         pointer type.
21410         (gl_thread_self): Invoke gl_thread_self_func.
21411         (gl_thread_self_func): New declaration.
21412         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21413         (do_init_self_key, init_self_key): New functions.
21414         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21415         Remove some fields.
21416         (running_threads, running_lock): Remove variables.
21417         (get_current_thread_handle): New function.
21418         (gl_thread_self_func, wrapper_func, glthread_create_func,
21419         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21420         simplified.
21421
21422 2008-09-30  Bruno Haible  <bruno@clisp.org>
21423
21424         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21425         files.
21426
21427 2008-09-30  Jim Meyering  <meyering@redhat.com>
21428
21429         fts.m4: correct the test for statfs.f_type
21430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21431         when checking for statfs.f_type.
21432
21433 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21434
21435         tests: avoid some compiler warnings
21436         * tests/test-memchr.c (main): Pass NULL indirectly.
21437         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21438
21439 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21440
21441         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21442         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21443         exactly specified dayshifts.
21444         (dayshift): New rule.
21445         (rel): Add dayshift.
21446         (relative_time_table) [tomorrow, yesterday, today, now]:
21447         Use tDAY_SHIFT in place of tDAY_UNIT.
21448         * tests/test-getdate.c: Add tests for now-disallowed countable
21449         dayshifts, e.g., "4 yesterday ago".
21450
21451 2008-09-29  Bruno Haible  <bruno@clisp.org>
21452
21453         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21454         * tests/test-posix_spawn1.in.sh: Renamed from
21455         tests/test-posix_spawn.in.sh.
21456         * tests/test-posix_spawn2.c: New file.
21457         * tests/test-posix_spawn2.in.sh: New file.
21458         * modules/posix_spawnp-tests (Files): Update.
21459         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21460
21461 2008-09-29  Bruno Haible  <bruno@clisp.org>
21462
21463         Propagate effects of putenv/setenv/unsetenv to child processes.
21464         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21465         * lib/pipe.c (create_pipe): Likewise.
21466
21467 2008-09-29  Bruno Haible  <bruno@clisp.org>
21468
21469         Enable use of shell scripts as executables in mingw.
21470         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21471         run the program as a shell script.
21472         * lib/pipe.c (create_pipe): Likewise.
21473         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21474         resulting array.
21475
21476 2008-09-29  Eric Blake  <ebb9@byu.net>
21477
21478         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21479
21480 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21481
21482         * doc/posix-functions/accept.texi: Update mingw problems.
21483         * doc/posix-functions/bind.texi: Update mingw problems.
21484         * doc/posix-functions/close.texi: Update mingw problems.
21485         * doc/posix-functions/connect.texi: Update mingw problems.
21486         * doc/posix-functions/getpeername.texi: Update mingw problems.
21487         * doc/posix-functions/getsockname.texi: Update mingw problems.
21488         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21489         * doc/posix-functions/ioctl.texi: Update mingw problems.
21490         * doc/posix-functions/listen.texi: Update mingw problems.
21491         * doc/posix-functions/recv.texi: Update mingw problems.
21492         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21493         * doc/posix-functions/select.texi: Update mingw problems.
21494         * doc/posix-functions/send.texi: Update mingw problems.
21495         * doc/posix-functions/sendto.texi: Update mingw problems.
21496         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21497         * doc/posix-functions/socket.texi: Update mingw problems.
21498
21499 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21500             Bruno Haible  <bruno@clisp.org>
21501
21502         * lib/sys_select.in.h: Include sys/time.h.
21503         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21504         * modules/sys_select: Depend on sys_time.
21505         * tests/test-sys_select.c: Test that sys/select.h defines struct
21506         timeval fully.
21507
21508 2008-09-29  Bruno Haible  <bruno@clisp.org>
21509
21510         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21511         * lib/sys_select.in.h: Likewise.
21512
21513 2008-09-29  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21516
21517 2008-09-29  Bruno Haible  <bruno@clisp.org>
21518
21519         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21520         Set LIBSOCKET instead of augmenting LIBS.
21521         * modules/sockets (Link): New section.
21522         * modules/sockets-tests (test_sockets_LDADD): New variable.
21523         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21524         * modules/poll-tests (test_poll_LDADD): New variable.
21525         * NEWS: Document the change.
21526
21527 2008-09-29  Bruno Haible  <bruno@clisp.org>
21528
21529         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21530         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21531         ARPA_INET_H directly.
21532         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21533
21534 2008-09-28  Bruno Haible  <bruno@clisp.org>
21535
21536         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21537         from gl_HEADER_SYS_SOCKET.
21538         (gl_HEADER_SYS_SOCKET): Invoke it.
21539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21540
21541 2008-09-28  Bruno Haible  <bruno@clisp.org>
21542
21543         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21544         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21545         Needed on OSF/1 4.0.
21546
21547 2008-09-28  Bruno Haible  <bruno@clisp.org>
21548
21549         Override open more carefully.
21550         * lib/open.c (orig_open): New function.
21551         (rpl_open): Use orig_open instead of open.
21552         * lib/fcntl.in.h: Add special invocation convention.
21553         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21554         (gl_FUNC_OPEN): Invoke it.
21555
21556         Override freopen more carefully.
21557         * lib/freopen.c (orig_freopen): New function.
21558         (rpl_freopen): Use orig_freopen instead of freopen.
21559         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21560         (gl_FUNC_FREOPEN): Invoke it.
21561
21562         Override fopen more carefully.
21563         * lib/fopen.c (orig_fopen): New function.
21564         (rpl_fopen): Use orig_fopen instead of fopen.
21565         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21566         (gl_FUNC_FOPEN): Invoke it.
21567         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21568
21569 2008-09-28  Bruno Haible  <bruno@clisp.org>
21570
21571         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21572         SIGPIPE.
21573
21574 2008-09-28  Bruno Haible  <bruno@clisp.org>
21575
21576         * tests/test-sigaction.c (handler, main): Disable the check whether
21577         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21578         glibc systems with LinuxThreads.
21579
21580 2008-09-28  Bruno Haible  <bruno@clisp.org>
21581
21582         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21583
21584         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21585         with AIX xlc.
21586         * lib/fcntl.in.h (open): Likewise.
21587         Reported by Rainer Tammer <tammer@tammer.net>.
21588
21589 2008-09-28  Bruno Haible  <bruno@clisp.org>
21590
21591         * modules/posix_spawnp-tests: New file.
21592         * tests/test-posix_spawn.c: New file.
21593         * tests/test-posix_spawn.in.sh: New file.
21594
21595         New module 'posix_spawnp'.
21596         * modules/posix_spawnp: New file.
21597         * lib/spawnp.c: New file, from GNU libc with modifications.
21598         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21599
21600         New module 'posix_spawn'.
21601         * modules/posix_spawn: New file.
21602         * lib/spawn.c: New file, from GNU libc with modifications.
21603         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21604
21605         New module 'posix_spawnattr_destroy'.
21606         * modules/posix_spawnattr_destroy: New file.
21607         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21608         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21609         module.
21610
21611         New module 'posix_spawnattr_setsigmask'.
21612         * modules/posix_spawnattr_setsigmask: New file.
21613         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21614         modifications.
21615         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21616         new module.
21617
21618         New module 'posix_spawnattr_getsigmask'.
21619         * modules/posix_spawnattr_getsigmask: New file.
21620         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21621         modifications.
21622         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21623         new module.
21624
21625         New module 'posix_spawnattr_setsigdefault'.
21626         * modules/posix_spawnattr_setsigdefault: New file.
21627         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21628         modifications.
21629         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21630         new module.
21631
21632         New module 'posix_spawnattr_getsigdefault'.
21633         * modules/posix_spawnattr_getsigdefault: New file.
21634         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21635         modifications.
21636         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21637         new module.
21638
21639         New module 'posix_spawnattr_setschedpolicy'.
21640         * modules/posix_spawnattr_setschedpolicy: New file.
21641         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21642         modifications.
21643         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21644         new module.
21645
21646         New module 'posix_spawnattr_getschedpolicy'.
21647         * modules/posix_spawnattr_getschedpolicy: New file.
21648         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21649         modifications.
21650         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21651         new module.
21652
21653         New module 'posix_spawnattr_setschedparam'.
21654         * modules/posix_spawnattr_setschedparam: New file.
21655         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21656         modifications.
21657         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21658         new module.
21659
21660         New module 'posix_spawnattr_getschedparam'.
21661         * modules/posix_spawnattr_getschedparam: New file.
21662         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21663         modifications.
21664         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21665         new module.
21666
21667         New module 'posix_spawnattr_setpgroup'.
21668         * modules/posix_spawnattr_setpgroup: New file.
21669         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21670         modifications.
21671         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21672         module.
21673
21674         New module 'posix_spawnattr_getpgroup'.
21675         * modules/posix_spawnattr_getpgroup: New file.
21676         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21677         modifications.
21678         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21679         module.
21680
21681         New module 'posix_spawnattr_setflags'.
21682         * modules/posix_spawnattr_setflags: New file.
21683         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21684         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21685         module.
21686
21687         New module 'posix_spawnattr_getflags'.
21688         * modules/posix_spawnattr_getflags: New file.
21689         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21690         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21691         module.
21692
21693         New module 'posix_spawnattr_init'.
21694         * modules/posix_spawnattr_init: New file.
21695         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21696         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21697         module.
21698
21699         New module 'posix_spawn_file_actions_destroy'.
21700         * modules/posix_spawn_file_actions_destroy: New file.
21701         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21702         modifications.
21703         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21704         the new module.
21705
21706         New module 'posix_spawn_file_actions_addopen'.
21707         * modules/posix_spawn_file_actions_addopen: New file.
21708         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21709         modifications.
21710         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21711         the new module.
21712
21713         New module 'posix_spawn_file_actions_adddup2'.
21714         * modules/posix_spawn_file_actions_adddup2: New file.
21715         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21716         modifications.
21717         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21718         the new module.
21719
21720         New module 'posix_spawn_file_actions_addclose'.
21721         * modules/posix_spawn_file_actions_addclose: New file.
21722         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21723         modifications.
21724         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21725         the new module.
21726
21727         New module 'posix_spawn_file_actions_init'.
21728         * modules/posix_spawn_file_actions_init: New file.
21729         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21730         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21731         new module.
21732
21733         New module 'posix_spawn-internal'.
21734         * modules/posix_spawn-internal: New file.
21735         * lib/spawn_int.h: New file, from GNU libc with modifications.
21736         * lib/spawni.c: New file, from GNU libc with modifications.
21737         * m4/posix_spawn.m4: New file.
21738
21739         New module 'spawn'.
21740         * modules/spawn: New file.
21741         * lib/spawn.in.h: New file, from GNU libc with modifications.
21742         * m4/spawn_h.m4: New file.
21743         * doc/posix-headers/spawn.texi: Mention the new module.
21744
21745 2008-09-28  Bruno Haible  <bruno@clisp.org>
21746
21747         * modules/sched-tests: New file.
21748         * tests/test-sched.c: New file.
21749
21750         New module 'sched'.
21751         * modules/sched: New file.
21752         * lib/sched.in.h: New file.
21753         * m4/sched_h.m4: New file.
21754         * doc/posix-headers/sched.texi: Mention the new module.
21755
21756 2008-09-27  Eric Blake  <ebb9@byu.net>
21757
21758         Fix previous patch, and tweak references to $0.
21759         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21760         (func_version, func_gnulib_dir): Don't call this program
21761         gnulib-tool.
21762         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21763         with using $0 in function.
21764         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21765         (func_fatal_error): Reuse the name the user invoked us with.
21766
21767 2008-09-27  Bruno Haible  <bruno@clisp.org>
21768
21769         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21770         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21771         (gl_ICONV_H): Not here.
21772         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21773         instead of assigning ICONV_H directly.
21774
21775         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21777         WCHAR_H directly.
21778
21779 2008-09-27  Bruno Haible  <bruno@clisp.org>
21780
21781         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21782         * modules/arpa_inet (Depends-on): Add link-warning.
21783         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21784         * modules/unistd (Makefile.am): Likewise.
21785
21786 2008-09-26  Bruno Haible  <bruno@clisp.org>
21787
21788         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21789         variables.
21790         (func_version): Essentially copied from gnulib-tool.
21791         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21792         func_readlink): Copied from gnulib-tool.
21793
21794 2008-09-26  Bruno Haible  <bruno@clisp.org>
21795
21796         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21797         invoking git-version-gen.
21798
21799 2008-09-26  Bruno Haible  <bruno@clisp.org>
21800
21801         * posix-modules: Update to directory names changed on 2008-01-19.
21802         Remove commas in output before splitting into words. No more need to
21803         avoid 'ftruncate' since 2007-02-19.
21804
21805 2008-09-26  Bruno Haible  <bruno@clisp.org>
21806
21807         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21808
21809 2008-09-26  Bruno Haible  <bruno@clisp.org>
21810
21811         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21812         * modules/fwriteerror (Depends-on): Add errno.
21813
21814 2008-09-26  Bruno Haible  <bruno@clisp.org>
21815
21816         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21817         * tests/test-vc-list-files-cvs.sh: Likewise.
21818
21819 2008-09-26  Bruno Haible  <bruno@clisp.org>
21820
21821         * doc/posix-headers/sys_resource.texi: Reorder items.
21822
21823 2008-09-26  Jim Meyering  <meyering@redhat.com>
21824
21825         fts: tweak inode comparison function
21826         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21827         inode numbers, as documented.
21828
21829         fts: sort dirent entries on inode number before traversing
21830         This avoids a quadratic, seek-related performance penalty when
21831         operating on a directory containing many entries (measurable at 10k;
21832         3.5 hours at 2 million entries with a cold cache) on certain types
21833         of file systems, including ext3 and ext4, but not tmpfs.
21834         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21835         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21836         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21837         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21838         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21839         (fts_build): Set the stat.st_ino member from D_INO.
21840         If it is likely to be useful, sort dirent entries on inode number.
21841
21842         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21843         and the struct statfs.f_type member.
21844         * modules/fts (Depends-on): Add d-ino.
21845
21846 2008-09-26  Bruno Haible  <bruno@clisp.org>
21847
21848         * modules/sigpipe-die (Depends-on): Add sigpipe.
21849
21850         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21851         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21852         and GNULIB_STDIO_H_SIGPIPE are set.
21853         * lib/stdio-write.c: New file.
21854         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21855         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21856         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21857         REPLACE_STDIO_WRITE_FUNCS.
21858         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21859         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21860         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21861         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21862         * modules/stdio (Files): Add lib/stdio-write.c.
21863         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21864         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21865         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21866         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21867         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21868         REPLACE_FPRINTF_POSIX.
21869         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21870         REPLACE_PRINTF_POSIX.
21871         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21872         REPLACE_VFPRINTF_POSIX.
21873         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21874         REPLACE_VPRINTF_POSIX.
21875         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21876         SIGPIPE issue.
21877         * doc/posix-functions/fputc.texi: Likewise.
21878         * doc/posix-functions/fputs.texi: Likewise.
21879         * doc/posix-functions/fwrite.texi: Likewise.
21880         * doc/posix-functions/printf.texi: Likewise.
21881         * doc/posix-functions/putc.texi: Likewise.
21882         * doc/posix-functions/putchar.texi: Likewise.
21883         * doc/posix-functions/puts.texi: Likewise.
21884         * doc/posix-functions/vfprintf.texi: Likewise.
21885         * doc/posix-functions/vprintf.texi: Likewise.
21886
21887         * modules/safe-write (Depends-on): Add write.
21888
21889         * modules/sigpipe-tests: New file.
21890         * tests/test-sigpipe.c: New file.
21891         * tests/test-sigpipe.sh: New file.
21892
21893         * modules/write: New file.
21894         * lib/unistd.in.h: Include <sys/types.h>.
21895         (write): New declaration.
21896         * lib/write.c: New file.
21897         * m4/write.m4: New file.
21898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21899         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21900         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21901         GNULIB_WRITE, REPLACE_WRITE.
21902         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21903         and the SIGPIPE issue.
21904
21905         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21906         (raise): New declaration.
21907         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21908         (ext_signal): New function.
21909         (rpl_raise): New function.
21910         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21911         GNULIB_SIGNAL_H_SIGPIPE.
21912         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21913         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21914
21915         * modules/sigpipe: New file.
21916         * m4/sigpipe.m4: New file.
21917
21918 2008-09-25  Derek Price  <derek@ximbiot.com>
21919             Bruno Haible  <bruno@clisp.org>
21920
21921         * gnulib-tool (func_import): Report all license incompatibilities, not
21922         just the first one.
21923
21924 2008-09-25  Bruno Haible  <bruno@clisp.org>
21925
21926         * gnulib-tool (func_import): When computing the edits, consider not
21927         only the Makefile.ams that exist but also those that will be generated.
21928
21929 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21930
21931         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21932         fixes gnulib-tool --test warning about duplicate dependency.
21933
21934 2008-09-25  Bruno Haible  <bruno@clisp.org>
21935
21936         * gnulib-tool: Don't ask the user to perform edits in the generated
21937         Makefile.ams.
21938         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21939         apply to the Makefile.am being generated.
21940         (func_emit_tests_Makefile_am): Execute edits that apply to the
21941         Makefile.am being generated.
21942         (func_import): Setup list of Makefile.am edits before emitting the
21943         Makefile.ams, not at the end.
21944         (func_create_testdir): Update.
21945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21946
21947 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21948
21949         * gnulib-tool (func_import): Store the --tests-base option in the
21950         comment in gnulib-cache.m4.
21951
21952 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21953
21954         * NEWS: Document increased portability that sys_select now provides.
21955
21956         * lib/sys_select.in.h: Install select wrapper.
21957         * lib/sys_socket.in.h: Use more descriptive name when there is no
21958         select wrapper.
21959         * lib/winsock-select.c: New.
21960         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21961         Require gl_HEADER_SYS_SOCKET.
21962         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21963         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21964         * tests/test-sys_select.c: Add functional tests.
21965
21966 2008-09-24  Eric Blake  <ebb9@byu.net>
21967
21968         open, fopen: close fd leak in last patch
21969         * lib/open.c (rpl_open): Close fd before returning error.
21970         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21971         * doc/posix-functions/open.texi (open): Document that Irix also
21972         has the bug.
21973         * doc/posix-functions/fopen.texi (fopen): Likewise.
21974         Reported by Paolo Bonzini.
21975
21976 2008-09-24  Bruno Haible  <bruno@clisp.org>
21977
21978         Ensure that a filename ending in a slash cannot be used to access a
21979         non-directory.
21980         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21981         to check whether it's really a directory.
21982         * lib/fopen.c: Include fcntl.h, unistd.h.
21983         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21984         and fdopen().
21985         * modules/fopen (Depends-on): Add unistd.
21986         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21987         * tests/test-fopen.c (main): Likewise.
21988         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21989         * doc/posix-functions/fopen.texi: Likewise.
21990         Reported by Eric Blake.
21991
21992 2008-09-23  Eric Blake  <ebb9@byu.net>
21993
21994         c-stack: avoid compiler optimizations when provoking overflow
21995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21996         recursion harder to optimize, to ensure a stack overflow occurs.
21997         * tests/test-c-stack.c (recurse): Likewise.
21998         Borrowed from libsigsegv.
21999
22000         c-stack: work around Irix sigaltstack bug
22001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22002         whether sigaltstack uses wrong end of stack_t (copied in part from
22003         libsigsegv).
22004         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22005         Irix bug, without requiring an over-allocation.
22006         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22007         bug.
22008
22009         fopen: document mingw bug on directories
22010         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22011         not allowing a stream visiting a directory, even though reading
22012         from such a stream is not portable.
22013
22014 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22015
22016         * lib/poll.c: Rewrite.
22017         * modules/poll: Depend on alloca.
22018
22019 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22020
22021         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22022         instead define prototypes for a full set of wrappers.  Ensure
22023         that Cygwin does not use the compatibility code, which is only
22024         for MinGW.
22025         * lib/winsock.c: New.
22026         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22027         * modules/sys_socket: Add lib/winsock.c.
22028
22029         * modules/poll-tests: Add errno and perror.
22030         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22031
22032 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22033
22034         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22035
22036 2008-09-23  Bruno Haible  <bruno@clisp.org>
22037
22038         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22039         * doc/glibc-functions/*: Likewise.
22040
22041 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22042
22043         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22044         success.
22045
22046 2008-09-22  Eric Blake  <ebb9@byu.net>
22047             Bruno Haible  <bruno@clisp.org>
22048
22049         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22050         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22051         supply %A but mishandle pseudo-NaN.
22052         Reported by Simon Josefsson.
22053
22054 2008-09-21  Bruno Haible  <bruno@clisp.org>
22055
22056         * tests/test-lock.c (main): Tweak skip message.
22057         * tests/test-tls.c (main): Likewise.
22058
22059 2008-09-21  Bruno Haible  <bruno@clisp.org>
22060
22061         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22062         whether 'struct sigaction' has sa_sigaction here...
22063         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22064         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22065
22066 2008-09-21  Bruno Haible  <bruno@clisp.org>
22067
22068         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22069         section.
22070         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22071         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22072         the new section.
22073         (Support for obsolete systems lacking POSIX:2001): New section.
22074         (String handling <string.h>): Move strdup to the new section.
22075         Suggested by Simon Josefsson and Paolo Bonzini.
22076
22077 2008-09-21  Bruno Haible  <bruno@clisp.org>
22078
22079         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22080         exponents in %e and %g results on 'long double'. Needed for mingw's
22081         improved *printf functions.
22082         * tests/test-vasprintf-posix.c (test_function): Likewise.
22083         * tests/test-snprintf-posix.h (test_function): Likewise.
22084         * tests/test-sprintf-posix.h (test_function): Likewise.
22085         Reported by Eric Blake.
22086
22087 2008-09-21  Bruno Haible  <bruno@clisp.org>
22088
22089         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22090         * tests/test-sprintf-posix.h (test_function): Likewise.
22091
22092 2008-09-21  Bruno Haible  <bruno@clisp.org>
22093
22094         * modules/getpass (Depends-on): Add strdup-posix.
22095
22096         New module 'strdup-posix'.
22097         * modules/strdup-posix: New file.
22098         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22099         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22101         REPLACE_STRDUP.
22102         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22103         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22105         strdup-posix.
22106
22107         * modules/strdup (Depends-on): Remove malloc-posix.
22108
22109 2008-09-20  Bruno Haible  <bruno@clisp.org>
22110
22111         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22112         Wildenhues.
22113
22114 2008-09-20  Bruno Haible  <bruno@clisp.org>
22115
22116         Ensure that wint_t gets defined on IRIX 5.3.
22117         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22118         * lib/wctype.in.h (wint_t): Likewise.
22119         (__wctype_wint_t): Remove type.
22120         (isw*): Use wint_t instead of __wctype_wint_t.
22121         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22122         * modules/wchar (Files): Add m4/wint_t.m4.
22123         (Makefile.am): Substitute HAVE_WINT_T.
22124         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22125         * tests/test-wctype.c: Check that wint_t is defined.
22126         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22127         * doc/posix-headers/wctype.texi: Likewise.
22128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22129
22130 2008-09-18  Bruno Haible  <bruno@clisp.org>
22131
22132         * gnulib-tool (func_exit): Update comment.
22133
22134 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22135
22136         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22137         assumes strdup exists and does not depend on strdup to return
22138         ENOMEM on out of memory conditions.
22139
22140 2008-09-18  Bruno Haible  <bruno@clisp.org>
22141
22142         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22143         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22144         digits for the exponent.
22145
22146 2008-09-18  Jim Meyering  <meyering@redhat.com>
22147             Bruno Haible  <bruno@clisp.org>
22148
22149         * lib/vasnprintf.c (decimal_point_char): Define also if
22150         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22151
22152 2008-09-16  Bruno Haible  <bruno@clisp.org>
22153         and Eric Blake  <ebb9@byu.net>
22154
22155         vasnprintf: support Irix 5.3
22156         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22157         that mishandle long double infinity.
22158         Reported by Tom G. Christensen.
22159
22160 2008-09-16  Bruno Haible  <bruno@clisp.org>
22161
22162         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22163         Solaris 9.
22164         * doc/glibc-functions/alphasort.texi: Likewise.
22165         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22166
22167 2008-09-16  Jim Meyering  <meyering@redhat.com>
22168
22169         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22170         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22171         a umask modification leak out of a subshell.  Otherwise, the
22172         opensolaris /bin/sh would be accepted and thus cause unwarranted
22173         failures in the coreutils test suite.
22174
22175 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22176
22177         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22178         to succeed.
22179
22180 2008-09-16  Jim Meyering  <meyering@redhat.com>
22181
22182         avoid spurious test failure when library is built without ACL support
22183         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22184         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22185         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22186         * tests/test-copy-acl.sh: Likewise.
22187
22188 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22189
22190         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22191         based on character occurrence counts.
22192
22193 2008-09-15  Eric Blake  <ebb9@byu.net>
22194
22195         tests: avoid some compiler warnings
22196         * tests/test-memchr.c (main): Pass NULL indirectly.
22197         * tests/test-closein.c (main): Avoid unused variable.
22198
22199 2008-09-15  Bruno Haible  <bruno@clisp.org>
22200
22201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22202         are missing on OpenBSD 4.0 individually.
22203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22204
22205 2008-09-15  Bruno Haible  <bruno@clisp.org>
22206
22207         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22208         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22209         * doc/posix-functions/perror.texi: Likewise.
22210         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22211         is missing.
22212         Reported by Eric Blake.
22213
22214         * lib/errno.in.h: Use replacement values >= 2000.
22215         Reported by Eric Blake.
22216
22217 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22218
22219         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22220         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22221         limit.
22222         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22223         compareseq was aborted.
22224
22225 2008-09-14  Bruno Haible  <bruno@clisp.org>
22226
22227         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22228         yvec_edit_count.
22229         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22230         (fstrcmp_bounded): Simplify result computation accordingly.
22231
22232 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22233
22234         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22235         (fstrcmp): Define in terms of fstrcmp_bounded.
22236         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22237         lower_bound argument.
22238         Return quickly if the result is certainly < lower_bound.
22239         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22240
22241 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22242
22243         * lib/diffseq.h (EARLY_ABORT): New macro.
22244         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22245         evaluates to true.
22246
22247 2008-09-14  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/perror-tests: New file.
22250         * tests/test-perror.sh: New file.
22251         * tests/test-perror.c: New file.
22252
22253         New module 'perror'.
22254         * lib/stdio.in.h (perror): New declaration.
22255         * lib/perror.c: New file.
22256         * m4/perror.m4: New file.
22257         * modules/perror: New file.
22258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22259         * doc/posix-functions/perror.texi: Mention the perror module.
22260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22261         REPLACE_PERROR.
22262         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22263         REPLACE_PERROR.
22264
22265 2008-09-14  Bruno Haible  <bruno@clisp.org>
22266
22267         * modules/stdio (Makefile.am): Reorder to match the order in
22268         lib/stdio.in.h.
22269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22270
22271 2008-09-13  Bruno Haible  <bruno@clisp.org>
22272
22273         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22274
22275 2008-09-13  Bruno Haible  <bruno@clisp.org>
22276
22277         Extend strerror to cover the added errno values.
22278         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22279         (rpl_strerror): Provide error messages for the added errno values and
22280         for the WSA* values.
22281         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22282         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22283         strerror.
22284         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22285         * modules/strerror (Depends-on): Add errno.
22286         * doc/posix-functions/strerror.texi: Document the change.
22287         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22288         and EOVERFLOW.
22289
22290 2008-09-13  Bruno Haible  <bruno@clisp.org>
22291
22292         * modules/EOVERFLOW: Remove file.
22293         * m4/eoverflow.m4: Remove file.
22294         * modules/EOVERFLOW-tests: Remove file.
22295         * tests/test-EOVERFLOW.c: Remove file.
22296         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22297         * modules/ftell (Depends-on): Likewise.
22298         * modules/getdelim (Depends-on): Likewise.
22299         * modules/getugroups (Depends-on): Likewise.
22300         * modules/poll (Depends-on): Likewise.
22301         * modules/snprintf (Depends-on): Likewise.
22302         * modules/sprintf-posix (Depends-on): Likewise.
22303         * modules/vasnprintf (Depends-on): Likewise.
22304         * modules/vasprintf (Depends-on): Likewise.
22305         * modules/vfprintf-posix (Depends-on): Likewise.
22306         * modules/vsnprintf (Depends-on): Likewise.
22307         * modules/vsprintf-posix (Depends-on): Likewise.
22308         * modules/xvasprintf (Depends-on): Likewise.
22309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22310         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22311         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22312         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22313         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22314         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22315         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22317         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22318         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22319         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22320         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22321         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22322         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22323         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22324         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22325         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22326         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22327         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22328         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22329         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22330         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22331         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22332         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22333         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22335         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22336         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22337         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22338         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22339         * MODULES.html.sh: Remove EOVERFLOW.
22340         * NEWS: Mention the change.
22341
22342 2008-09-13  Bruno Haible  <bruno@clisp.org>
22343
22344         * modules/errno-tests: New file.
22345         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22346
22347         * lib/errno.in.h: New file.
22348         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22349         * modules/errno: New file.
22350         * doc/posix-headers/errno.texi: Update documentation.
22351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22352
22353 2008-09-13  Bruno Haible  <bruno@clisp.org>
22354
22355         * tests/test-poll.c: Use #if for native Windows, rather than testing
22356         __MSVCRT__.
22357
22358 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22359             Bruno Haible  <bruno@clisp.org>
22360
22361         * lib/glob.c: Don't include <pwd.h> on native Windows.
22362         (WINDOWS32): New macro.
22363         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22364
22365 2008-09-13  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22368         (ETIMEDOUT): Remove macro.
22369         (glthread_cond_timedwait_multithreaded): New declaration.
22370         (glthread_cond_timedwait): Use it.
22371         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22372         (glthread_cond_timedwait_multithreaded): New function.
22373
22374 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22375
22376         * modules/poll-tests: Do not check for io.h.
22377         * tests/test-poll.c: Check for __MSVCRT__ instead.
22378
22379 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22380
22381         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22382         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22383         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22384
22385 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22386
22387         * modules/poll-tests: New.
22388         * tests/test-poll.c: New.
22389
22390 2008-09-12  Eric Blake  <ebb9@byu.net>
22391
22392         frexp: test for NetBSD failure on -0.0
22393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22394         not all, bugs from NetBSD 3.0 have been fixed.
22395         * doc/posix-functions/frexp.texi (frexp): Document bug.
22396         Reported by Thomas Klausner.
22397
22398         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22399         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22400         literal -0.0.
22401         Reported by Jonathan C. Patschke <jp@centtech.com>.
22402
22403 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22404
22405         * lib/glthread/cond.h: Use dummy implementation also if
22406         USE_WIN32_THREADS.
22407
22408 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22409
22410         * modules/fnmatch-posix (License): Change to LGPLv2+.
22411         * modules/fnmatch-gnu (License): Likewise.
22412
22413 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22414
22415         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22416
22417 2008-09-11  Jim Meyering  <meyering@redhat.com>
22418
22419         * users.txt: Add gtk-vnc.
22420
22421 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22422
22423         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22424         rotate amounts.
22425
22426         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22427         required for 16-bit and 8-bit rotates.
22428         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22429         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22430         UINT8_MAX instead of hard-coded constants.
22431         Suggested by Paul Eggert.
22432
22433 2008-09-07  Bruno Haible  <bruno@clisp.org>
22434
22435         * tests/test-striconveh.c (main): Check behaviour when converting from
22436         UTF-7.
22437
22438         Make striconveh work better with stateful encodings.
22439         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22440         that iconv does not increment the inptr when returning -1/EINVAL.
22441
22442 2008-09-07  Bruno Haible  <bruno@clisp.org>
22443
22444         * build-aux/config.rpath: Update according to libtool-2.2.6.
22445         * build-aux/config.libpath: Likewise.
22446
22447 2008-09-06  Bruno Haible  <bruno@clisp.org>
22448
22449         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22450         * lib/freadptr.c (freadptr): Likewise.
22451         * lib/freadseek.c (freadptrinc): Likewise.
22452         Reported by Simon Josefsson.
22453
22454 2008-09-06  Bruno Haible  <bruno@clisp.org>
22455
22456         * modules/freadptr (License): Change to LGPLv2+.
22457         * modules/freadseek (License): Likewise.
22458         Suggested by Eric Blake.
22459
22460         * modules/memchr2 (License): Change to LGPLv2+.
22461         Approved by Eric Blake.
22462
22463 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22464             Bruno Haible  <bruno@clisp.org>
22465
22466         Make gnulib-tool work with native 'sed' on AIX.
22467         * gnulib-tool (sed_noop): New variable.
22468         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22469         func_add_or_update, func_create_testdir): Use it to initialize sed
22470         script variables.
22471         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22472
22473 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22474             Bruno Haible  <bruno@clisp.org>
22475
22476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22477         also works after #include directives.
22478
22479 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22480
22481         getdate.y: reject an out-of-range timezone value
22482         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22483         the range [-24...+24].  When specified with only one or two digits,
22484         * tests/test-getdate.c: Tests for the fix.
22485         * doc/getdate.texi: Document this change.
22486
22487 2008-09-03  Bruno Haible  <bruno@clisp.org>
22488
22489         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22490
22491 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22492
22493         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22494         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22495         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22496         Blake <ebb9@byu.net>.
22497
22498         * tests/test-bitrotate.c: Add more test vectors.
22499
22500 2008-09-02  Eric Blake  <ebb9@byu.net>
22501
22502         vasnprintf-posix: handle large precision via %.*d
22503         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22504         when handling it ourselves.
22505         * tests/test-vasnprintf-posix.c (test_function): Add test.
22506         * tests/test-snprintf-posix.h (test_function): Likewise.
22507         * tests/test-sprintf-posix.h (test_function): Likewise.
22508         * tests/test-vasprintf-posix.c (test_function): Likewise.
22509         Reported by Alain Guibert.
22510
22511 2008-09-01  Eric Blake  <ebb9@byu.net>
22512
22513         c-stack: make configure-time check more robust
22514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22515         successful sigaction call.
22516         Reported by Tom G. Christensen.
22517
22518 2008-09-01  Bruno Haible  <bruno@clisp.org>
22519
22520         New module 'findprog-lgpl'.
22521         * modules/findprog-lgpl: New file.
22522         * lib/findprog-lgpl.c: New file.
22523         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22524         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22525         to decide whether to use strdup or xstrdup, concatenated_filename or
22526         xconcatenated_filename.
22527
22528 2008-09-01  Bruno Haible  <bruno@clisp.org>
22529
22530         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22531         'xconcat-filename' (GPL).
22532         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22533         (License): Change to LGPLv2+.
22534         * modules/xconcat-filename: New file.
22535         * lib/concat-filename.h (concatenated_filename): Change specification.
22536         (xconcatenated_filename): New declaration.
22537         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22538         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22539         memory situations.
22540         * lib/xconcat-filename.c: New file.
22541         * NEWS: Mention the change.
22542         * lib/findprog.c: Include concat-filename.h, not filename.h.
22543         (find_in_path): Use xconcatenated_filename instead of
22544         concatenated_filename.
22545         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22546         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22547         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22548         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22549         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22550         instead of concatenated_filename.
22551         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22552         (execute_java_class): Use xconcatenated_filename instead of
22553         concatenated_filename.
22554         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22555         * modules/javacomp (Depends-on): Likewise.
22556         * modules/javaexec (Depends-on): Likewise.
22557
22558 2008-09-01  Bruno Haible  <bruno@clisp.org>
22559
22560         Split module 'filename' into 'filename' and 'concat-filename'.
22561         * modules/filename: Keep only lib/filename.h.
22562         (License): Change to LGPLv2+.
22563         * modules/concat-filename: New file, extracted from modules/filename.
22564         * lib/filename.h (concatenated_filename): Remove declaration.
22565         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22566         * lib/concat-filename.c: Include concat-filename.h.
22567         * NEWS: Mention the change.
22568
22569 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22570
22571         * lib/bitrotate.h (rotl8, rotr8): Add.
22572
22573         * modules/bitrotate (configure.ac): Need
22574         AC_REQUIRE([AC_C_INLINE]).
22575         (Description): Mention stdint.h.  Reported by Bruno Haible
22576         <bruno@clisp.org>.
22577
22578         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22579         Paolo Bonzini <bonzini@gnu.org>.
22580
22581 2008-08-31  Bruno Haible  <bruno@clisp.org>
22582
22583         Assume Solaris specific bi-arch conventions on Solaris systems.
22584         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22585         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22587         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22588         like acl_libdirstem.
22589         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22590         acl_libdirstem.
22591         * NEWS: Mention the change.
22592         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22593
22594 2008-08-31  Jim Meyering  <meyering@redhat.com>
22595
22596         * lib/strftime.h: Add comments describing the two added arguments.
22597
22598         remove duplicate #include directives
22599         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22600         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22601
22602 2008-08-31  Bruno Haible  <bruno@clisp.org>
22603
22604         New module 'sigpipe-die'.
22605         * modules/sigpipe-die: New file.
22606         * lib/sigpipe-die.h: New file.
22607         * lib/sigpipe-die.c: New file.
22608         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22609
22610 2008-08-31  Bruno Haible  <bruno@clisp.org>
22611
22612         Don't override previously installed signal handlers.
22613         * lib/fatal-signal.c (saved_sigactions): New variable.
22614         (uninstall_handlers): Reset the signal to the saved handler, not
22615         to SIG_DFL (except when ignored).
22616         (install_handlers): Save the previous handlers.
22617
22618 2008-08-30  Bruno Haible  <bruno@clisp.org>
22619
22620         * gnulib-tool (func_reset_sigpipe): New function.
22621         (func_get_automake_snippet, func_modules_transitive_closure,
22622         func_import): Invoke it before a join command that reads from stdin,
22623         to avoid "echo: write error: Broken pipe" error messages on stderr.
22624         Reported by Sam Steingold <sds@gnu.org>.
22625
22626 2008-08-30  Bruno Haible  <bruno@clisp.org>
22627
22628         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22629         Code copied from m4/open.m4.
22630         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22631         access and the filename ends in a slash. Code copied from lib/open.c.
22632         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22633         * tests/test-fopen.c (main): Check against bug with trailing slash.
22634
22635 2008-08-29  Bruno Haible  <bruno@clisp.org>
22636
22637         Avoid some "gcc -pedantic" warnings.
22638         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22639         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22640         * lib/dirent.in.h: Likewise.
22641         * lib/fcntl.in.h: Likewise.
22642         * lib/float.in.h: Likewise.
22643         * lib/iconv.in.h: Likewise.
22644         * lib/inttypes.in.h: Likewise.
22645         * lib/locale.in.h: Likewise.
22646         * lib/math.in.h: Likewise.
22647         * lib/netinet_in.in.h: Likewise.
22648         * lib/search.in.h: Likewise.
22649         * lib/signal.in.h: Likewise.
22650         * lib/stdarg.in.h: Likewise.
22651         * lib/stdint.in.h: Likewise.
22652         * lib/stdio.in.h: Likewise.
22653         * lib/stdlib.in.h: Likewise.
22654         * lib/string.in.h: Likewise.
22655         * lib/strings.in.h: Likewise.
22656         * lib/sys_select.in.h: Likewise.
22657         * lib/sys_socket.in.h: Likewise.
22658         * lib/sys_stat.in.h: Likewise.
22659         * lib/sys_time.in.h: Likewise.
22660         * lib/sysexits.in.h: Likewise.
22661         * lib/time.in.h: Likewise.
22662         * lib/unistd.in.h: Likewise.
22663         * lib/wchar.in.h: Likewise.
22664         * lib/wctype.in.h: Likewise.
22665         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22666         * modules/fchdir (Makefile.am): Likewise.
22667         * modules/fcntl (Makefile.am): Likewise.
22668         * modules/float (Makefile.am): Likewise.
22669         * modules/iconv_open (Makefile.am): Likewise.
22670         * modules/inttypes (Makefile.am): Likewise.
22671         * modules/locale (Makefile.am): Likewise.
22672         * modules/math (Makefile.am): Likewise.
22673         * modules/netinet_in (Makefile.am): Likewise.
22674         * modules/search (Makefile.am): Likewise.
22675         * modules/signal (Makefile.am): Likewise.
22676         * modules/stdarg (Makefile.am): Likewise.
22677         * modules/stdint (Makefile.am): Likewise.
22678         * modules/stdio (Makefile.am): Likewise.
22679         * modules/stdlib (Makefile.am): Likewise.
22680         * modules/string (Makefile.am): Likewise.
22681         * modules/strings (Makefile.am): Likewise.
22682         * modules/sys_select (Makefile.am): Likewise.
22683         * modules/sys_socket (Makefile.am): Likewise.
22684         * modules/sys_stat (Makefile.am): Likewise.
22685         * modules/sys_time (Makefile.am): Likewise.
22686         * modules/sysexits (Makefile.am): Likewise.
22687         * modules/time (Makefile.am): Likewise.
22688         * modules/unistd (Makefile.am): Likewise.
22689         * modules/wchar (Makefile.am): Likewise.
22690         * modules/wctype (Makefile.am): Likewise.
22691         Reported by Reuben Thomas <rrt@sc3d.org>.
22692
22693 2008-08-29  Bruno Haible  <bruno@clisp.org>
22694
22695         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22696         any more.
22697
22698 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22699
22700         * MODULES.html.sh (Misc): Add bitrotate.
22701
22702         * modules/bitrotate: New file.
22703
22704         * lib/bitrotate.h: New file.
22705
22706         * modules/bitrotate-tests: New file.
22707
22708         * tests/test-bitrotate.c: New file.
22709
22710         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22711         on the bitrotate module.
22712
22713         * lib/arctwo.c: Use new bitrotate module.
22714
22715 2008-08-29  Jim Meyering  <meyering@redhat.com>
22716
22717         bootstrap: merge changes from coreutils
22718         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22719         of copied files.  Remove a kludge, now that this is fixed.
22720         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22721         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22722         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22723
22724 2008-08-29  Bruno Haible  <bruno@clisp.org>
22725
22726         * MODULES.html.sh: Remove --cvs-urls option.
22727
22728 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22729
22730         maint.mk: adjust to file name change
22731         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22732
22733 2008-08-28  Jim Meyering  <meyering@redhat.com>
22734
22735         * modules/getndelim2 (License): Relicense to LGPLv2+.
22736         Approved by Richard Stallman for the version of 1995, and by
22737         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22738
22739 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22740
22741         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22742         dummy if one is not available.  Do not touch them if
22743         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22744         (getc_maybe_unlocked): New.
22745         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22746
22747 2008-08-26  Eric Blake  <ebb9@byu.net>
22748
22749         doc/INSTALL: resync from autoconf
22750         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22751         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22752         moving...
22753         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22754         * INSTALL: Regenerate.
22755         * INSTALL.ISO: New file.
22756         * INSTALL.UTF-8: Likewise.
22757
22758 2008-08-26  Jim Meyering  <meyering@redhat.com>
22759
22760         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22761         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22762         these definitions conditional, so that they may be overridden, too.
22763
22764 2008-08-26  Bruno Haible  <bruno@clisp.org>
22765
22766         Generate INSTALL file variants with prettier quotes.
22767         * doc/Makefile (INSTALL_PRELUDE): New macro.
22768         (INSTALL): Use it.
22769         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22770
22771 2008-08-26  Bruno Haible  <bruno@clisp.org>
22772
22773         Run makeinfo in an English locale.
22774         * doc/Makefile (MAKEINFO): New variable.
22775
22776 2008-08-26  Bruno Haible  <bruno@clisp.org>
22777
22778         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22779         Suggested by Eric Blake.
22780
22781 2008-08-25  Bruno Haible  <bruno@clisp.org>
22782
22783         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22784
22785 2008-08-25  Eric Blake  <ebb9@byu.net>
22786
22787         c-stack: test that stack overflow can be caught
22788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22789         that platform allows handling stack overflow; at least OS/2 EMX
22790         has sigaltstack, but crashes before transferring control to
22791         handler on stack overflow.
22792         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22793         check for HAVE_STACK_OVERFLOW_HANDLING.
22794         Reported by Elbert Pol.
22795
22796 2008-08-25  Bruno Haible  <bruno@clisp.org>
22797
22798         * doc/posix-functions/strftime.texi: Fix description of strftime
22799         module.
22800
22801 2008-08-24  Bruno Haible  <bruno@clisp.org>
22802
22803         * tests/uniwidth/test-uc_width2.c: New file.
22804         * tests/uniwidth/test-uc_width2.sh: New file.
22805         * modules/uniwidth/width-tests (Files): Add the new files.
22806         (TESTS): Add uniwidth/test-uc_width2.sh.
22807         (TESTS_ENVIRONMENT): New variable.
22808         (check_PROGRAMS): Add test-uc_width2.
22809         (test_uc_width2_SOURCES): New variable.
22810
22811         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22812         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22813         not 0x00AB.
22814         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22815
22816 2008-08-22  Eric Blake  <ebb9@byu.net>
22817
22818         test-lock, test-tls: mention why a test is skipped
22819         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22820         skipped.
22821         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22822
22823         count-one-bits: relax license
22824         * modules/count-one-bits (License): Relicense to LGPLv2+.
22825         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22826
22827 2008-08-22  Andreas Schwab  <schwab@suse.de>
22828
22829         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22830         Remove spurious space in assignment.
22831
22832 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22833
22834         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22835         Paul Eggert <eggert@CS.UCLA.EDU>.
22836
22837 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22838
22839         * modules/gettext: Add m4/threadlib.m4.
22840
22841 2008-08-19  Eric Blake  <ebb9@byu.net>
22842
22843         test-c-stack: fix compilation failure on FreeBSD 5.0
22844         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22845         headers before <sys/resource.h>.
22846         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22847         the bug.
22848         Reported by Nelson H. F. Beebe.
22849
22850         strverscmp: migrate from "strverscmp.h" to <string.h>
22851         * modules/string (Makefile.am): Add new hooks.
22852         * modules/strverscmp (Files): Remove strverscmp.h.
22853         (Depends-on): Add string.
22854         (configure.ac): Add indicator.
22855         (Include): Mention new header.
22856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22857         defaults.
22858         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22859         results.
22860         * lib/strverscmp.h: Delete.
22861         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22862         * tests/test-strverscmp.c (includes): Adjust client.
22863         * lib/check-version.c (includes): Likewise.
22864         * NEWS: Document the change.
22865
22866         strverscmp: add unit test
22867         * modules/strverscmp-tests: New file.
22868         * tests/test-strverscmp.c: Likewise.
22869
22870 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22871
22872         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22873         regarding Windows crypto stuff, from Mono.
22874
22875 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22876
22877         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22878         if present, for intel RND.  Return error on failures.
22879
22880 2008-08-18  Ben Pfaff  <blp@gnu.org>
22881
22882         gitlog-to-changelog: give better diagnostic for failed pipe-open
22883         * build-aux/gitlog-to-changelog: Improve error message: suggest
22884         that the version of Git may be too old.
22885
22886 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22887
22888         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22889         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22890
22891 2008-08-18  Bruno Haible  <bruno@clisp.org>
22892
22893         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22894         pthread_in_use().
22895
22896 2008-08-18  Bruno Haible  <bruno@clisp.org>
22897
22898         * lib/glthread/threadlib.c: Include <pthread.h>.
22899
22900 2008-08-18  Bruno Haible  <bruno@clisp.org>
22901
22902         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22903         glthread_recursive_lock_* macros.
22904         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22905         Fix syntax error.
22906
22907 2008-08-18  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/glthread/thread.c: Avoid forcing a context switch right after
22910         thread creation.
22911
22912 2008-08-17  Bruno Haible  <bruno@clisp.org>
22913
22914         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22915         * lib/glthread/thread.h: Provide Win32 specific implementation.
22916         * modules/thread (Files): Add lib/glthread/thread.c.
22917         (Depends-on): Add lock.
22918         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22919
22920 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22921
22922         New module 'yield'.
22923         * modules/yield: New file.
22924         * lib/glthread/yield.h: New file.
22925         * m4/yield.m4: New file.
22926         * MODULES.html.sh (Multithreading): Add yield.
22927
22928 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22929
22930         New module 'thread'.
22931         * modules/thread: New file.
22932         * lib/glthread/thread.h: New file.
22933         * m4/thread.m4: New file.
22934         * MODULES.html.sh (Multithreading): Add thread.
22935
22936 2008-08-17  Bruno Haible  <bruno@clisp.org>
22937
22938         * lib/glthread/lock.h: Include <stdlib.h> always.
22939         * lib/glthread/tls.h: Likewise.
22940         * lib/glthread/cond.h: Likewise.
22941
22942 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22943
22944         New module 'cond'.
22945         * modules/cond: New file.
22946         * lib/glthread/cond.h: New file.
22947         * lib/glthread/cond.c: New file.
22948         * m4/cond.m4: New file.
22949         * MODULES.html.sh (Multithreading): Add cond.
22950
22951 2008-08-16  Eric Blake  <ebb9@byu.net>
22952
22953         c-stack: fix regression on Irix 5.3 from 2008-06-21
22954         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22955         sa_sigaction...
22956         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22957         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22958         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22959         * modules/signal (Makefile.am): Use the value.
22960         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22961         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22962         * doc/posix-headers/signal.texi (signal.h): Document this
22963         portability issue.
22964         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22965         Reported by Tom G. Christensen.
22966
22967 2008-08-17  Bruno Haible  <bruno@clisp.org>
22968
22969         New module 'threadlib'.
22970         * modules/threadlib: New file.
22971         * lib/glthread/threadlib.c: New file, extracted from
22972         lib/glthread/lock.c.
22973         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22974         functions.
22975         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22976         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22977         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22978         macros.
22979         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22980         (gl_DISABLE_THREADS): Remove macro.
22981         * modules/lock (Files): Remove build-aux/config.rpath.
22982         (Depends-on): Remove havelib. Add threadlib.
22983         (configure.ac-early): Remove section.
22984         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22985         * modules/tls (Depends-on): Remove lock. Add threadlib.
22986         (Link): New section, copied from threadlib.
22987         * MODULES.html.sh (Multithreading): Add threadlib.
22988
22989 2008-08-14  Bruno Haible  <bruno@clisp.org>
22990
22991         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22992         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22993         glthread_rwlock_unlock, glthread_rwlock_destroy,
22994         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22995         glthread_recursive_lock_destroy): Define as macros always.
22996         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22997         glthread_lock_lock.
22998         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22999         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23000         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23001         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23002         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23003         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23004         (glthread_recursive_lock_lock_func): Renamed from
23005         glthread_recursive_lock_lock.
23006         (glthread_recursive_lock_unlock_func): Renamed from
23007         glthread_recursive_lock_unlock.
23008         (glthread_recursive_lock_destroy_func): Renamed from
23009         glthread_recursive_lock_destroy.
23010
23011 2008-08-14  Bruno Haible  <bruno@clisp.org>
23012
23013         * lib/glthread/lock.h: Renamed from lib/lock.h.
23014         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23015         * lib/glthread/tls.h: Renamed from lib/tls.h.
23016         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23017         * lib/fstrcmp.c: Update includes.
23018         * lib/strsignal.c: Update includes.
23019         * modules/lock (Files, Makefile.am): Update.
23020         (Include): Change to "glthread/lock.h".
23021         * modules/tls (Files, Makefile.am): Update.
23022         (Include): Change to "glthread/tls.h".
23023         * tests/test-lock.c: Update includes.
23024         * tests/test-tls.c: Update includes.
23025         * NEWS: Mention the renamed header files.
23026
23027 2008-08-11  Jim Meyering  <meyering@redhat.com>
23028
23029         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23030
23031 2008-08-11  Eric Blake  <ebb9@byu.net>
23032
23033         test-c-stack: avoid C99-ism
23034         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23035         before statement.
23036         Reported by Alain Guibert.
23037
23038 2008-08-10  Jim Meyering  <meyering@redhat.com>
23039
23040         ensure that return value of uinttostr et al are not ignored
23041         * lib/inttostr.h (__GNUC_PREREQ): Define.
23042         (__attribute_warn_unused_result__): Define.
23043         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23044
23045 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23046
23047         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23048         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23049
23050 2008-08-07  Jim Meyering  <meyering@redhat.com>
23051
23052         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23053
23054         * modules/mkstemp (License): Relicense under LGPLv2+.
23055         * modules/tempname (License): Likewise.
23056
23057 2008-08-06  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/poll.c (poll): Further micro-optimization.
23060
23061 2008-08-06  Jim Meyering  <meyering@redhat.com>
23062
23063         inet_pton.c: use locale-independent tolower
23064         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23065         (inet_pton6): Use c_tolower rather than tolower.
23066         * modules/inet_pton (Depends-on): Add c-ctype.
23067
23068 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23069
23070         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23071         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23072
23073 2008-08-06  Jim Meyering  <meyering@redhat.com>
23074
23075         * modules/inet_pton (License): Relicense under LGPLv2+.
23076
23077 2008-08-03  Bruno Haible  <bruno@clisp.org>
23078
23079         Additional non-aborting API for lock and tls.
23080         * lib/lock.h: Include <errno.h>.
23081         (glthread_lock_init): New macro/function.
23082         (gl_lock_init): Define as wrapper around glthread_lock_init.
23083         (glthread_lock_lock): New macro/function.
23084         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23085         (glthread_lock_unlock): New macro/function.
23086         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23087         (glthread_lock_destroy): New macro/function.
23088         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23089         (glthread_rwlock_init): New macro/function.
23090         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23091         (glthread_rwlock_rdlock): New macro/function.
23092         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23093         (glthread_rwlock_wrlock): New macro/function.
23094         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23095         (glthread_rwlock_unlock): New macro/function.
23096         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23097         (glthread_rwlock_destroy): New macro/function.
23098         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23099         (glthread_recursive_lock_init): New macro/function.
23100         (gl_recursive_lock_init): Define as wrapper around
23101         glthread_recursive_lock_init.
23102         (glthread_recursive_lock_lock): New macro/function.
23103         (gl_recursive_lock_lock): Define as wrapper around
23104         glthread_recursive_lock_lock.
23105         (glthread_recursive_lock_unlock): New macro/function.
23106         (gl_recursive_lock_unlock): Define as wrapper around
23107         glthread_recursive_lock_unlock.
23108         (glthread_recursive_lock_destroy): New macro/function.
23109         (gl_recursive_lock_destroy): Define as wrapper around
23110         glthread_recursive_lock_destroy.
23111         (glthread_once): New macro/function.
23112         (gl_once): Define as wrapper around glthread_once.
23113         Update function declarations.
23114         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23115         glthread_rwlock_init. Return error code.
23116         (glthread_rwlock_rdlock_multithreaded): Renamed from
23117         glthread_rwlock_rdlock. Return error code.
23118         (glthread_rwlock_wrlock_multithreaded): Renamed from
23119         glthread_rwlock_wrlock. Return error code.
23120         (glthread_rwlock_unlock_multithreaded): Renamed from
23121         glthread_rwlock_unlock. Return error code.
23122         (glthread_rwlock_destroy_multithreaded): Renamed from
23123         glthread_rwlock_destroy. Return error code.
23124         (glthread_recursive_lock_init_multithreaded): Renamed from
23125         glthread_recursive_lock_init. Return error code.
23126         (glthread_recursive_lock_lock_multithreaded): Renamed from
23127         glthread_recursive_lock_lock. Return error code.
23128         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23129         glthread_recursive_lock_unlock. Return error code.
23130         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23131         glthread_recursive_lock_destroy. Return error code.
23132         (glthread_once_call): Make static.
23133         (glthread_once_multithreaded): Renamed from glthread_once.
23134         * lib/tls.h: Include <errno.h>.
23135         (glthread_tls_key_init): New macro/function.
23136         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23137         (glthread_tls_set): New macro/function.
23138         (gl_tls_set): Define as wrapper around glthread_tls_set.
23139         (glthread_tls_key_destroy): New macro/function.
23140         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23141         Update function declarations.
23142         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23143         glthread_tls_get.
23144         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23145
23146 2008-08-04  Eric Blake  <ebb9@byu.net>
23147
23148         gnumakefile: use space, not TAB, outside of targets
23149         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23150
23151 2008-08-02  Jim Meyering  <meyering@redhat.com>
23152
23153         getdate.y: avoid locale-dependent date parsing failure
23154         In Turkish locales, getdate would fail to recognize keywords
23155         containing a lowercase "i".  The solution is not to rely on
23156         locale-sensitive case-conversion.
23157         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23158         (lookup_word): Use c_toupper in place of toupper.
23159         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23160         Reported by Vefa Bicakci <bicave@superonline.com> in
23161         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23162         * modules/getdate (Depends-on): Add c-ctype.
23163
23164 2008-08-02  Bruno Haible  <bruno@clisp.org>
23165
23166         * gnulib-tool (func_import): When updating or creating a .gitignore
23167         file, prepend each added line with a slash, and ignore leading slashes
23168         from the existing lines.
23169         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23170
23171 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23172
23173         Portability fix for GNU make 3.79.1.
23174         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23175         versions do not understand.
23176
23177 2008-08-01  Bruno Haible  <bruno@clisp.org>
23178
23179         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23180         * tests/test-isnanf.h (zero): New variable.
23181         (main): Avoid literal -0.0f.
23182         * tests/test-isnand.h (zero): New variable.
23183         (main): Avoid literal -0.0.
23184         * tests/test-isnanl.h (zero): New variable.
23185         (main): Avoid literal -0.0L.
23186         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23187         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23188         -0.0, -0.0L.
23189         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23190         (test_signbitd): Avoid literal -0.0.
23191         (test_signbitl): Avoid literal -0.0L.
23192         * tests/test-ceilf1.c (zero): New variable.
23193         (main): Avoid literal -0.0f.
23194         * tests/test-ceill.c (zero): New variable.
23195         (main): Avoid literal -0.0L.
23196         * tests/test-floorf1.c (zero): New variable.
23197         (main): Avoid literal -0.0f.
23198         * tests/test-floorl.c (zero): New variable.
23199         (main): Avoid literal -0.0L.
23200         * tests/test-roundf1.c (zero): New variable.
23201         (main): Avoid literal -0.0f.
23202         * tests/test-round1.c (zero): New variable.
23203         (main): Avoid literal -0.0.
23204         * tests/test-roundl.c (zero): New variable.
23205         (main): Avoid literal -0.0L.
23206         * tests/test-truncf1.c (zero): New variable.
23207         (main): Avoid literal -0.0f.
23208         * tests/test-trunc1.c (zero): New variable.
23209         (main): Avoid literal -0.0.
23210         * tests/test-truncl.c (zero): New variable.
23211         (main): Avoid literal -0.0L.
23212         * tests/test-frexp.c (zero): New variable.
23213         (main): Avoid literal -0.0.
23214         * tests/test-frexpl.c (zero): New variable.
23215         (main): Avoid literal -0.0L.
23216         * tests/test-ldexpl.c (zero): New variable.
23217         (main): Avoid literal -0.0L.
23218         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23219         (zerod, zerol): New variables.
23220         (test_function): Avoid literals -0.0, -0.0L.
23221         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23222         (zerod, zerol): New variables.
23223         (test_function): Avoid literals -0.0, -0.0L.
23224         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23225         (zerod, zerol): New variables.
23226         (test_function): Avoid literals -0.0, -0.0L.
23227         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23228         (zerod, zerol): New variables.
23229         (test_function): Avoid literals -0.0, -0.0L.
23230         * tests/test-strtod.c (zero): New variable.
23231         (main): Avoid literal -0.0.
23232         Reported by Jonathan C. Patschke <jp@centtech.com>.
23233
23234 2008-07-31  Jim Meyering  <meyering@redhat.com>
23235
23236         sha256.h: correct definition of SHA224_DIGEST_SIZE
23237         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23238         Reported by Paulie Pena IV <paulie4@gmail.com>.
23239         Define as 224 / 8, rather than as a literal.
23240         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23241         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23242         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23243
23244 2008-07-31  Bruno Haible  <bruno@clisp.org>
23245
23246         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23247         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23248         Reported by Jonathan Patschke <jp@centtech.com>.
23249
23250 2008-07-31  Bruno Haible  <bruno@clisp.org>
23251
23252         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23253         Reported by Paolo Bonzini <bonzini@gnu.org>.
23254
23255 2008-07-30  Eric Blake  <ebb9@byu.net>
23256
23257         test-strtod: allow compilation without -lm
23258         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23259         Reported by Dennis Clarke <blastwave@gmail.com>.
23260
23261 2008-07-28  Jim Meyering  <meyering@redhat.com>
23262
23263         bootstrap: work also when there are no .po files in po/
23264         * build-aux/bootstrap (update_po_files): Complete the change
23265         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23266
23267 2008-07-27  Jim Meyering  <meyering@redhat.com>
23268
23269         * users.txt: Add zile.
23270
23271 2008-07-26  Ben Pfaff  <blp@gnu.org>
23272
23273         Add missing dependencies on new m4/exponent[fdl].m4 files.
23274         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23275         * modules/isnand-nolibm: Add m4/exponentd.m4.
23276         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23277         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23278         m4/isnan[fdl].m4, because the macros actually used moved.
23279         Reported by Jim Meyering.
23280
23281 2008-07-14  Ben Pfaff  <blp@gnu.org>
23282
23283         Add isinf module.
23284         * lib/isinf.c: New file.
23285         * lib/math.in.h: Define isinf macro if we have decided to replace
23286         it.
23287         * m4/isinf.m4: New file.
23288         * m4/math_h.m4: Initialize and substitute variables for isinf
23289         module.
23290         * modules/isinf: New file.
23291         * modules/isinf-tests: New file.
23292         * modules/math: Add substitutions for new module.
23293         * tests/test-isinf.c: New file.
23294         * doc/posix-functions/isinf.texi: Mention new module.
23295         * MODULES.html.sh: Mention new module.
23296
23297 2008-07-14  Ben Pfaff  <blp@gnu.org>
23298
23299         Factor out some macros for use by additional modules.
23300         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23301         exponentf.m4.
23302         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23303         exponentd.m4.
23304         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23305         file exponentl.m4.
23306         * m4/exponentf.m4: New file.
23307         * m4/exponentd.m4: New file.
23308         * m4/exponentl.m4: New file.
23309         * modules/isnanf: Use new file m4/exponentf.m4.
23310         * modules/isnand: Use new file m4/exponentd.m4.
23311         * modules/isnanl: Use new file m4/exponentl.m4.
23312
23313 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23314
23315         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23316         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23317         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23318         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23319
23320         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23321         readlink on platforms without PATH_MAX.
23322
23323 2008-07-21  Eric Blake  <ebb9@byu.net>
23324
23325         Warn, not fail, on stale version.
23326         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23327
23328         Don't allow installation with stale devel version number.
23329         * top/GNUmakefile (_is-install-target): New macro.
23330         (_curr-ver): Forbid installation with stale version number.
23331
23332 2008-07-20  Bruno Haible  <bruno@clisp.org>
23333
23334         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23335         TESTS_ENVIRONMENT.
23336         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23337
23338 2008-07-20  Bruno Haible  <bruno@clisp.org>
23339
23340         * lib/c-stack.h (c_stack_action): Add documentation.
23341         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23342
23343 2008-07-20  Bruno Haible  <bruno@clisp.org>
23344
23345         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23346         * modules/readlink (License): Likewise.
23347
23348 2008-07-17  Eric Blake  <ebb9@byu.net>
23349
23350         * modules/c-stack (Link): Fix typo.
23351
23352         Make c-stack use libsigsegv, when available.
23353         * modules/c-stack (Depends-on): Add libsigsegv.
23354         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23355         needed.
23356         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23357         (segv_handler, overflow_handler, c_stack_action)
23358         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23359         implementation when libsigsegv is available, but only when using
23360         the library is necessary.
23361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23362         comment, explaining why XSI check fails on Linux.
23363         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23364         * tests/test-c-stack2.sh: Tweak skip message.
23365         * NEWS: Document new link-time requirements.
23366
23367 2008-07-16  Eric Blake  <ebb9@byu.net>
23368
23369         c-stack: Expose false positives when not using libsigsegv.
23370         * modules/c-stack-tests (Files): Expand test.
23371         * tests/test-c-stack.c (main): Add means to conditionally trigger
23372         non-overflow SIGSEGV.
23373         * tests/test-c-stack2.sh: New file.
23374
23375 2008-07-14  Bruno Haible  <bruno@clisp.org>
23376
23377         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23378         Reported by Eric Blake.
23379
23380 2008-07-14  Sam Steingold  <sds@gnu.org>
23381             Bruno Haible  <bruno@clisp.org>
23382
23383         New module libsigsegv.
23384         * modules/libsigsegv: New file.
23385         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23386         modifications.
23387         * MODULES.html.sh (Signal handling): New section.
23388
23389 2008-07-14  Bruno Haible  <bruno@clisp.org>
23390
23391         * modules/unictype/ctype-* (Description): Add the word "function".
23392         Improves the resulting doc in MODULES.html.
23393
23394 2008-07-12  Ben Pfaff  <blp@gnu.org>
23395
23396         Add longlong module.
23397         * modules/longlong: New file.
23398
23399 2008-07-12  Bruno Haible  <bruno@clisp.org>
23400
23401         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23402         to empty.
23403
23404 2008-07-10  Ben Pfaff  <blp@gnu.org>
23405
23406         Add isnan module.
23407         * doc/posix-functions/isnan.texi: Mention new module.
23408         * lib/math.in.h: Define isnan macro if we have decided to replace
23409         it.
23410         * m4/isnan.m4: New file.
23411         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23412         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23413         also.
23414         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23415         redundancy.
23416         * m4/math_h.m4: Initialize and substitute variables for isnan
23417         module.
23418         * modules/isnan: New file.
23419         * modules/isnan-tests: New file.
23420         * modules/math: Add substitutions for new module.
23421         * tests/test-isnan.c: New file.
23422         * MODULES.html.sh: Mention new module.
23423
23424 2008-07-10  Ben Pfaff  <blp@gnu.org>
23425
23426         Add isnanf module.
23427         * lib/isnanf.m4: New file.
23428         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23429         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23430         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23431         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23432         * modules/isnanf: New file.
23433         * modules/isnanf-tests: New file.
23434         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23435         files.
23436         * tests/test-isnanf-nolibm.c: factored most of its contents into
23437         new file tests/test-isnanf.h.
23438         * tests/test-isnanf.h: New file.
23439         * tests/test-isnanf.c: New file.
23440         * MODULES.html.sh: Mention new module.
23441         * doc/glibc-functions/isnanf.texi: Mention new module.
23442
23443 2008-07-10  Ben Pfaff  <blp@gnu.org>
23444
23445         Add isnand module.
23446         * lib/isnand.h: New file.
23447         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23448         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23449         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23450         functionality also.
23451         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23452         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23453         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23454         * modules/isnand: New file.
23455         * modules/isnand-tests: New file.
23456         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23457         files.
23458         * tests/test-isnand-nolibm.c: factored most of its contents into
23459         new file tests/test-isnand.h.
23460         * tests/test-isnand.h: New file.
23461         * tests/test-isnand.c: New file.
23462         * MODULES.html.sh: Mention new module.
23463
23464 2008-07-10  Ben Pfaff  <blp@gnu.org>
23465
23466         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23467         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23468         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23469         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23470         * modules/isnanf-nolibm: Update references to renamed files.
23471         * modules/isnand-nolibm: Likewise.
23472         * modules/isnanf-nolibm-tests: Likewise.
23473         * modules/isnand-nolibm-tests: Likewise.
23474         * lib/frexp.c: Likewise.
23475         * lib/isfinite.c: Likewise.
23476         * lib/signbitd.c: Likewise.
23477         * lib/signbitf.c: Likewise.
23478         * lib/vasnprintf.c: Likewise.
23479         * tests/test-ceilf1.c: Likewise.
23480         * tests/test-ceilf2.c: Likewise.
23481         * tests/test-floorf1.c: Likewise.
23482         * tests/test-floorf2.c: Likewise.
23483         * tests/test-frexp.c: Likewise.
23484         * tests/test-round1.c: Likewise.
23485         * tests/test-round2.c: Likewise.
23486         * tests/test-roundf1.c: Likewise.
23487         * tests/test-strtod.c: Likewise.
23488         * tests/test-trunc1.c: Likewise.
23489         * tests/test-trunc2.c: Likewise.
23490         * tests/test-truncf1.c: Likewise.
23491         * tests/test-truncf2.c: Likewise.
23492         * NEWS: Mention the renamed header files.
23493
23494 2008-07-11  Jim Meyering  <meyering@redhat.com>
23495
23496         vc-list-files: make the last-resort awk code more portable
23497         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23498         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23499         does not support it.
23500
23501 2008-07-10  Eric Blake  <ebb9@byu.net>
23502
23503         Work with tar's bootstrap.
23504         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23505         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23506         an m4 comment.
23507
23508 2008-07-09  Jim Meyering  <meyering@redhat.com>
23509
23510         posix-shell.m4: fix typo that made this test malfunction
23511         * m4/posix-shell.m4: Remove capitalization in variable name.
23512
23513 2008-07-08  Bruno Haible  <bruno@clisp.org>
23514
23515         * m4/onceonly.m4: Update comments.
23516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23517
23518 2008-07-04  Jim Meyering  <meyering@redhat.com>
23519
23520         * users.txt: Add vc-dwim.
23521         (bison, coreutils): Use the gitweb URL.
23522
23523 2008-07-03  Jim Meyering  <meyering@redhat.com>
23524
23525         * users.txt: Add libffcall.  From Sam Steingold.
23526
23527 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23528
23529         getdate.y: do not ignore TZ with relative day, month or year offset
23530         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23531         relative-date-handling, since otherwise, the latter would clobber the
23532         sole output (an updated Start value) of the tz-handling block.
23533         * tests/test-getdate.c: Tests for the fix
23534
23535 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23536
23537         Recognize 'foo_LIBRARIES += libgnu.a'.
23538         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23539         makefile snippet has already specified an installation location,
23540         also using '+='.
23541
23542 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23543
23544         getdate.y: factor out common actions
23545         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23546         Use them in place of open-coded actions.
23547
23548 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23549
23550         Add self-test for getdate module.
23551         * modules/getdate-tests: New file.
23552         * tests/test-getdate.c: New file.
23553
23554 2008-06-29  Bruno Haible  <bruno@clisp.org>
23555
23556         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23557         .gitignore.
23558         Reported by Sylvain Beucler <beuc@beuc.net>.
23559
23560 2008-06-29  Bruno Haible  <bruno@clisp.org>
23561
23562         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23563         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23564
23565 2008-06-29  Bruno Haible  <bruno@clisp.org>
23566
23567         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23568         EXTRA_DIST.
23569         Reported by Sylvain Beucler <beuc@beuc.net>.
23570
23571 2008-06-26  Jim Meyering  <meyering@redhat.com>
23572
23573         make several modules depend on the "open" module
23574         This provides slightly increased consistency when opening-for-write
23575         the name of a non-directory spelled with a trailing slash.
23576         * modules/chdir-safer: Likewise.
23577         * modules/chown: Likewise.
23578         * modules/clean-temp: Likewise.
23579         * modules/copy-file: Likewise.
23580         * modules/fchdir: Likewise.
23581         * modules/fcntl-safer: Likewise.
23582         * modules/pipe: Likewise.
23583         * modules/utime: Likewise.
23584         Prompted by Eric Blake and Bruno Haible.
23585
23586 2008-06-24  Andreas Schwab  <schwab@suse.de>
23587
23588         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23589         literals can be used as initializers for global variables.
23590
23591 2008-06-23  Eric Blake  <ebb9@byu.net>
23592
23593         Make gnulib-cache.m4 easier to diff.
23594         * gnulib-tool (func_import): Allow newlines when reading cached
23595         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23596
23597 2008-06-23  Bruno Haible  <bruno@clisp.org>
23598
23599         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23600         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23601         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23602         m4/signalblocking.m4.
23603         (gl_PREREQ_SIGACTION): Don't invoke it.
23604         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23605         gl_PREREQ_SIG_HANDLER_H.
23606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23607         Don't check for sigaction here.
23608
23609 2008-06-23  Bruno Haible  <bruno@clisp.org>
23610
23611         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23612         (install_handlers): Don't set the SA_RESETHAND flag.
23613
23614 2008-06-23  Bruno Haible  <bruno@clisp.org>
23615
23616         * m4/sigaction.m4: Comment fixes.
23617         * lib/signal.in.h: Likewise.
23618
23619 2008-06-23  Eric Blake  <ebb9@byu.net>
23620
23621         Fix typo.
23622         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23623
23624         Avoid SA_ namespace.
23625         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23626         Reported by Ralf Wildenhues.
23627
23628         Avoid test failure due to SA_RESTORER.
23629         * tests/test-sigaction.c (SA_MASK): New macro.
23630         (main): Avoid failing due to extension flags being set.
23631         Reported by Jim Meyering.
23632
23633         Revert use of sig-handler.h in sigprocmask.c.
23634         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23635         it requires the existence of struct sigaction.
23636         * lib/sigprocmask.c (handler_t): Restore typedef.
23637         (rpl_signal, old_handlers): Use local type.
23638
23639 2008-06-22  Bruno Haible  <bruno@clisp.org>
23640
23641         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23642         conditionally.
23643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23644
23645 2008-06-22  Bruno Haible  <bruno@clisp.org>
23646
23647         * doc/posix-functions/siginterrupt.texi: Move note.
23648
23649         * lib/signal.in.h (SA_RESTART): New macro.
23650         * lib/sigaction.c: Update comment.
23651
23652         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23653
23654         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23655         (gl_PREREQ_SIGPROCMASK): Invoke it.
23656         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23657
23658         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23659
23660         * lib/sigprocmask.c: Update a comment.
23661
23662 2008-06-21  Eric Blake  <ebb9@byu.net>
23663
23664         Use sigaction module rather than signal().
23665         * modules/c-stack (Depends-on): Add sigaction.
23666         * modules/fatal-signal (Depends-on): Likewise.
23667         * modules/nanosleep (Depends-on): Likewise.
23668         * modules/sigprocmask (Files): Add sig-handler.h.
23669         * modules/sigaction (Files): Likewise.
23670         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23671         Eggert.
23672         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23673         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23674         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23675         (init_fatal_signals): Likewise.
23676         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23677         (siginterrupt): Delete fallback.
23678         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23679         instead.
23680         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23681         siginterrupt.
23682
23683         New module sigaction, for mingw.
23684         * modules/sigaction: New module...
23685         * modules/sigaction-tests: ...and its test.
23686         * m4/sigaction.m4: New file.
23687         * lib/sigaction.c: Likewise.
23688         * tests/test-sigaction.c: Likewise.
23689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23690         * modules/signal (Makefile.am): Likewise.
23691         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23692         needed.
23693         * doc/posix-headers/signal.texi (signal.h): Mention provided
23694         types.
23695         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23696         that sigaction is preferable.
23697         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23698         module.
23699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23700         sigaction.
23701
23702         Improve robustness of sigprocmask by overriding signal.
23703         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23704         is in use.
23705         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23706         (SIGKILL, SIGSTOP): Provide fallbacks.
23707         (rpl_signal): Implement.
23708         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23709         signal can be called inside handlers.
23710
23711         Fix nanosleep module on mingw.
23712         * modules/nanosleep (Depends-on): Add sys_select.
23713         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23714
23715         Fix licensing of sigprocmask.
23716         * modules/raise (License): Relicense as LGPL.
23717
23718 2008-06-21  Bruno Haible  <bruno@clisp.org>
23719
23720         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23721         result if it contains question marks.
23722         Reported by Michael Geng <linux@michaelgeng.de>.
23723
23724 2008-06-19  Bruno Haible  <bruno@clisp.org>
23725
23726         Fix CVS-ism.
23727         * doc/gnulib.texi: Include updated-stamp.texi.
23728         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23729         (updated-stamp.texi): New rule.
23730         (gnulib.info): Depend on it.
23731         * doc/.gitignore: Add updated-stamp.texi.
23732         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23733
23734 2008-06-19  Bruno Haible  <bruno@clisp.org>
23735
23736         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23737         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23738
23739 2008-06-19  Eric Blake  <ebb9@byu.net>
23740
23741         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23742         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23743         Reported by Stepan Kasal.
23744
23745 2008-06-18  Bruno Haible  <bruno@clisp.org>
23746
23747         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23748         Reported by Eric Blake.
23749
23750 2008-06-18  Eric Blake  <ebb9@byu.net>
23751
23752         Work around cygwin 1.5.25 strsignal bug.
23753         * tests/test-strsignal.c: Allow for const char *.
23754         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23755
23756 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23757
23758         * users.txt: Update URL to article and add author/date
23759         information.
23760
23761 2008-06-17  Bruno Haible  <bruno@clisp.org>
23762
23763         New macro gl_DISABLE_THREADS.
23764         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23765         if the user did not pass --enable-threads or --disable-threads option.
23766         (gl_DISABLE_THREADS): New macro.
23767         Reported by Eric Blake <ebb9@byu.net>.
23768
23769 2008-06-17  Bruno Haible  <bruno@clisp.org>
23770
23771         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23772         when the macro ignores it.
23773         Based on a patch by Eric Blake <ebb9@byu.net>.
23774
23775 2008-06-17  Bruno Haible  <bruno@clisp.org>
23776
23777         * modules/tls (License): Change to LGPLv2+.
23778         Reported by Eric Blake.
23779
23780 2008-06-17  Eric Blake  <ebb9@byu.net>
23781
23782         Simplify c-stack prerequisites.
23783         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23785         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23786         check.
23787         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23788         <sys/resource.h>.
23789
23790         Move c-stack test into testsuite.
23791         * modules/c-stack-tests: New file.
23792         * lib/c-stack.c [DEBUG]: Move test program...
23793         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23794         fail test if sigaltstack is lacking.
23795         * tests/test-c-stack.sh: New driver file.
23796
23797 2008-06-16  Eric Blake  <ebb9@byu.net>
23798
23799         Use raise module consistently.
23800         * modules/fatal-signal (Depends-on): Add raise.
23801         * modules/sigprocmask (Depends-on): Likewise.
23802         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23803         * lib/sigprocmask.c (sigprocmask): Likewise.
23804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23805         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23806
23807         Fix compliance bug in sigpending.
23808         * lib/sigprocmask.c (sigpending): Return pending array via
23809         parameter, not return value.
23810
23811 2008-06-14  Eric Blake  <ebb9@byu.net>
23812
23813         Improve obstack-printf test code.
23814         * tests/test-obstack-printf.c (test_function): Fix comment, and
23815         simplify usage of obstack_* in macros.  Add a test for coverage.
23816         Reported by Bruno Haible.
23817
23818 2008-06-14  Bruno Haible  <bruno@clisp.org>
23819
23820         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23821         array size as a constant, not as a const variable.
23822         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23823         AC_USE_SYSTEM_EXTENSIONS.
23824         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23825         Test whether the obstack_printf function actually exists.
23826         * modules/obstack-printf (Depends-on): Add extensions.
23827         (Include): Remove obstack.h.
23828         * modules/obstack-printf-posix (Depends-on): Add extensions.
23829         (Include): Remove obstack.h.
23830
23831 2008-06-13  Eric Blake  <ebb9@byu.net>
23832
23833         Add obstack-printf and obstack-printf-posix modules.
23834         * modules/obstack-printf: New file.
23835         * modules/obstack-printf-posix: Likewise.
23836         * MODULES.html.sh (Misc): Mention them.
23837         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23838         Likewise.
23839         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23840         Likewise.
23841         * modules/stdio (Makefile.am): Accomodate new modules.
23842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23843         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23844         Declare.
23845         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23846         functions.
23847         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23848         (gl_REPLACE_OBSTACK_PRINTF): New macros
23849         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23850         * tests/test-obstack-printf.c: New file.
23851         * modules/obstack-printf-tests: Likewise.
23852         * modules/obstack-printf-posix-tests: Likewise.
23853
23854 2008-06-11  Bruno Haible  <bruno@clisp.org>
23855
23856         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23857         * lib/open.c: Include errno.h.
23858         (open): Fail when attempting to write to a file that has a trailing
23859         slash.
23860         * tests/test-open.c (main): Test against trailing slash bug.
23861         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23862
23863 2008-06-10  Bruno Haible  <bruno@clisp.org>
23864
23865         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23866         for $? to work inside the trap command, with various /bin/sh-s.
23867         * tests/test-vc-list-files-cvs.sh: Likewise.
23868
23869 2008-06-10  Bruno Haible  <bruno@clisp.org>
23870
23871         * lib/acl-internal.h: Don't include gettext.h here.
23872         * lib/set-mode-acl.c: Include gettext.h here.
23873         * lib/copy-acl.c: Likewise.
23874
23875 2008-06-10  Bruno Haible  <bruno@clisp.org>
23876
23877         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23878         * lib/wait-process.c (wait_subprocess): Likewise.
23879         * lib/execute.h (execute): Add termsigp argument.
23880         * lib/execute.c (execute): Likewise.
23881         * lib/csharpcomp.c (compile_csharp_using_pnet,
23882         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23883         * lib/csharpexec.c (execute_csharp_using_pnet,
23884         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23885         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23886         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23887         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23888         is_jikes_present): Update.
23889         * lib/javaexec.c (execute_java_class): Update.
23890         * lib/javaversion.c (execute_and_read_line): Update.
23891         * NEWS: Document the changes.
23892         Reported by Eric Blake.
23893
23894 2008-06-10  Eric Blake  <ebb9@byu.net>
23895
23896         Add missing include.
23897         * tests/test-strstr.c (includes): Add <signal.h>.
23898         * tests/test-strcasestr.c (includes): Likewise.
23899         * tests/test-memmem.c (includes): Likewise.
23900
23901 2008-06-10  Bruno Haible  <bruno@clisp.org>
23902
23903         * lib/wait-process.c (wait_subprocess): Add an assertion.
23904
23905 2008-06-10  Bruno Haible  <bruno@clisp.org>
23906
23907         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23908
23909 2008-06-10  Bruno Haible  <bruno@clisp.org>
23910
23911         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23912         using alarm().
23913         * tests/test-strcasestr.c (main): Likewise.
23914         * tests/test-strstr.c (main): Likewise.
23915
23916 2008-06-09  Bruno Haible  <bruno@clisp.org>
23917
23918         Work around the Solaris 10 ACE ACLs ABI change.
23919         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23920         declare if ACL_NO_TRIVIAL is present.
23921         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23922         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23923         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23924         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23925         define if ACL_NO_TRIVIAL is present.
23926         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23927         and use the current ABI.
23928         (file_has_acl): Use same #if condition as elsewhere.
23929         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23930         in use, and use the current ABI.
23931         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23932         Reported by Jim Meyering.
23933
23934 2008-06-09  Eric Blake  <ebb9@byu.net>
23935
23936         Work around environments that (stupidly) ignore SIGALRM.
23937         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23938         before using alarm().
23939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23941         Reported by Ian Beckwith <ianb@erislabs.net>.
23942
23943         Produce autobuild blurb earlier in log.
23944         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23945
23946 2008-06-09  Jim Meyering  <meyering@redhat.com>
23947         and Ondřej Vašík  <ovasik@redhat.com>
23948
23949         utimens.c: correct kernel bug work-around
23950         Ondřej Vašík found that the invalid return value of 280 indicates
23951         failure, not success, and the kernel bug we're trying to work
23952         around affects not just the utimensat call, but also the fallback
23953         futimens call.
23954         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23955         not success.
23956         [HAVE_FUTIMENS]: Use the same work-around, here.
23957
23958 2008-06-09  Jim Meyering  <meyering@redhat.com>
23959
23960         add more guards around definition of ACE_-related code
23961         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23962         ALLOW and ACE_OWNER are also defined.
23963
23964 2008-06-08  Bruno Haible  <bruno@clisp.org>
23965
23966         * lib/acl-internal.h: Add me as co-author.
23967         * lib/file-has-acl.c: Likewise.
23968         * lib/set-mode-acl.c: Likewise.
23969         * lib/copy-acl.c: Likewise.
23970
23971 2008-06-08  Bruno Haible  <bruno@clisp.org>
23972
23973         Add support for AIX ACLs.
23974         * lib/acl-internal.h (acl_nontrivial): New declaration.
23975         * lib/file-has-acl.c (acl_nontrivial): New function.
23976         (file_has_acl): Add implementation using AIX 4 ACL API.
23977         * lib/set-mode-acl.c (qset_acl): Likewise.
23978         * lib/copy-acl.c (qcopy_acl): Likewise.
23979
23980 2008-06-08  Bruno Haible  <bruno@clisp.org>
23981
23982         Add support for HP-UX ACLs.
23983         * lib/acl-internal.h (acl_nontrivial): New declaration.
23984         * lib/file-has-acl.c (acl_nontrivial): New function.
23985         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23986         * lib/set-mode-acl.c (qset_acl): Likewise.
23987         * lib/copy-acl.c (qcopy_acl): Likewise.
23988
23989 2008-06-08  Bruno Haible  <bruno@clisp.org>
23990
23991         Add support for Cygwin ACLs.
23992         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23993         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23994         the chmod_or_fchmod call.
23995         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23996
23997 2008-06-08  Bruno Haible  <bruno@clisp.org>
23998
23999         Fix bug with setuid modes in Solaris 10+ code.
24000         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24001         succeeded, when the mode contains some special bits.
24002
24003 2008-06-08  Bruno Haible  <bruno@clisp.org>
24004
24005         Add support for Solaris 7..10 ACLs.
24006         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24007         declarations.
24008         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24009         functions.
24010         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24011         * lib/set-mode-acl.c (qset_acl): Likewise.
24012         * lib/copy-acl.c (qcopy_acl): Likewise.
24013
24014 2008-06-08  Bruno Haible  <bruno@clisp.org>
24015
24016         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24017         declaration.
24018         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24019         (acl_access_nontrivial): Remove MacOS X case.
24020         (file_has_acl): Use acl_extended_nontrivial.
24021         * lib/copy-acl.c (qcopy_acl): Likewise.
24022
24023 2008-06-08  Bruno Haible  <bruno@clisp.org>
24024
24025         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24026
24027 2008-06-08  Jim Meyering  <meyering@redhat.com>
24028
24029         * modules/acl (Maintainer): Add Bruno Haible.
24030
24031 2008-06-07  Bruno Haible  <bruno@clisp.org>
24032
24033         Improve support for Tru64 ACLs.
24034         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24035         ACL on OSF/1.
24036
24037 2008-06-07  Bruno Haible  <bruno@clisp.org>
24038
24039         Add support for MacOS X ACLs.
24040         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24041         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24042         * lib/set-mode-acl.c (qset_acl): Likewise.
24043         * lib/copy-acl.c (qcopy_acl): Likewise.
24044
24045 2008-06-07  Bruno Haible  <bruno@clisp.org>
24046
24047         Fix memory leak introduced on 2008-05-22.
24048         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24049         use.
24050
24051 2008-06-07  Bruno Haible  <bruno@clisp.org>
24052
24053         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24054         to construct an empty ACL.
24055
24056 2008-06-07  Bruno Haible  <bruno@clisp.org>
24057
24058         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24059         precisely.
24060         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24061
24062 2008-06-07  Bruno Haible  <bruno@clisp.org>
24063
24064         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24065         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24066
24067 2008-06-07  Bruno Haible  <bruno@clisp.org>
24068
24069         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24070         regardless of POSIX.
24071         * doc/posix-functions/_longjmp.texi: Likewise.
24072         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24073         SystemV platform in this case.
24074
24075 2008-06-06  Eric Blake  <ebb9@byu.net>
24076
24077         Document abort() bugs.
24078         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24079
24080         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24081         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24082         sigsetjmp.
24083         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24084         siglongjmp, but only as a macro.
24085         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24086         is obsolete.
24087         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24088
24089         Tweak documentation to cover cygwin argz bugs.
24090         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24091         argz bug fix; no code change needed since no cygwin releases
24092         occurred between the last fix and the bug being tested.
24093         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24094         module and recently fixed cygwin bugs.
24095         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24096         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24097         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24098         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24099         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24100         Likewise.
24101         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24102         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24103         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24104         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24105         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24106         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24107         Likewise.
24108
24109         Avoid gcc warning on cygwin.
24110         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24111         !ACL_NO_TRIVIAL]: Avoid unused variable.
24112
24113 2008-06-05  Eric Blake  <ebb9@byu.net>
24114
24115         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24116         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24117         git-version-gen fails to come up with a version.
24118         Reported by Simon Josefsson.
24119
24120 2008-06-05  Jim Meyering  <meyering@redhat.com>
24121             Paul Eggert  <eggert@cs.ucla.edu>
24122
24123         utimens.c: work around a probable Linux kernel bug
24124         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24125         appears to be a kernel bug that causes utimensat to return 280
24126         instead of 0, indicating success.
24127
24128 2008-06-04  Bruno Haible  <bruno@clisp.org>
24129
24130         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24131         2008-06-01 commit.
24132
24133 2008-06-04  Bruno Haible  <bruno@clisp.org>
24134
24135         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24136         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24137         (file_has_acl): Use it. Save errno afterwards.
24138         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24139
24140 2008-06-03  Bruno Haible  <bruno@clisp.org>
24141
24142         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24143         draft code. Simplify #ifs.
24144         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24145         Put Solaris code after POSIX-draft code. Fix comments regarding
24146         Solaris 10, HP-UX. Mention Cygwin.
24147         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24148
24149 2008-06-03  Eric Blake  <ebb9@byu.net>
24150
24151         Provide fallback for older kernels.
24152         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24153         Provide runtime fallback if kernel lacks support.
24154         Reported by Mike Frysinger.
24155
24156 2008-06-02  Bruno Haible  <bruno@clisp.org>
24157
24158         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24159         it exists.
24160
24161 2008-06-02  Bruno Haible  <bruno@clisp.org>
24162
24163         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24164         * lib/copy-acl.c (qcopy_acl): Update comment.
24165
24166 2008-06-02  Bruno Haible  <bruno@clisp.org>
24167
24168         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24169         like ACL APIs.
24170
24171 2008-06-02  Bruno Haible  <bruno@clisp.org>
24172
24173         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24174         * tests/test-set-mode-acl.sh: Likewise.
24175         * tests/test-copy-acl.sh: Likewise.
24176         * tests/test-copy-file.sh: Likewise.
24177
24178 2008-06-02  Bruno Haible  <bruno@clisp.org>
24179
24180         * tests/test-file-has-acl.sh: Remove unused code.
24181
24182 2008-06-01  Bruno Haible  <bruno@clisp.org>
24183
24184         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24185         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24186         messages.
24187         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24188
24189 2008-06-01  Bruno Haible  <bruno@clisp.org>
24190
24191         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24192         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24193         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24194         APIs.
24195         * modules/acl-tests (configure.ac): Remove tests now contained in
24196         m4/acl.m4.
24197
24198 2008-06-02  Jim Meyering  <meyering@redhat.com>
24199
24200         announce-gen: use a better key-server host name
24201         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24202         it may be more consistently reliable.  Suggested by Werner Koch
24203         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24204
24205 2008-06-01  Bruno Haible  <bruno@clisp.org>
24206
24207         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24208         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24209
24210 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24211
24212         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24213
24214 2008-06-01  Bruno Haible  <bruno@clisp.org>
24215
24216         New ACL tests.
24217         * tests/test-file-has-acl.sh: New file.
24218         * tests/test-file-has-acl.c: New file.
24219         * tests/test-set-mode-acl.sh: New file.
24220         * tests/test-set-mode-acl.c: New file.
24221         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24222         * tests/test-copy-acl.c: New file.
24223         * modules/acl-tests: New file, based on modules/copy-file-tests.
24224         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24225         (Depends-on): Add acl-tests.
24226         (configure.ac): Remove checks.
24227         (Makefile.am): Don't create test-sameacls program here any more.
24228
24229 2008-06-01  Bruno Haible  <bruno@clisp.org>
24230
24231         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24232         * tests/test-sameacls.c: Include progname.h.
24233         (main): Invoke set_program_name. Portability fixes for MacOS X,
24234         Solaris, HP-UX.
24235
24236 2008-06-01  Bruno Haible  <bruno@clisp.org>
24237
24238         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24239         function.
24240         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24241
24242 2008-06-01  Bruno Haible  <bruno@clisp.org>
24243
24244         * modules/rpmatch (Depends-on): Add strdup.
24245
24246 2008-06-01  Bruno Haible  <bruno@clisp.org>
24247
24248         * lib/pipe.c: Include unistd-safer.h.
24249         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24250         * modules/pipe (Depends-on): Add unistd-safer.
24251
24252 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24253
24254         * modules/autobuild (configure.ac): Call AB_INIT.
24255
24256 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24257
24258         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24259         Suggested by Bruno Haible <bruno@clisp.org>.
24260
24261 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24262
24263         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24264         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24265         <bruno@clisp.org>.
24266
24267 2008-05-29  Eric Blake  <ebb9@byu.net>
24268
24269         Prefer new POSIX 200x interfaces over futimesat.
24270         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24271         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24272         when available.
24273         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24274
24275 2008-05-28  Bruno Haible  <bruno@clisp.org>
24276
24277         * modules/stpcpy (License): Change to LGPLv2+.
24278         Requested by David Lutterkort <dlutter@redhat.com>.
24279
24280 2008-05-27  Bruno Haible  <bruno@clisp.org>
24281
24282         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24283         current mingw.
24284         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24285
24286 2008-05-27  Bruno Haible  <bruno@clisp.org>
24287
24288         * modules/iconv_open (Link): New section, from module 'iconv'.
24289         * modules/striconv (Link): Likewise.
24290         * modules/striconveh (Link): Likewise.
24291         * modules/xstriconv (Link): Likewise.
24292         * modules/unicodeio (Link): Likewise.
24293         * modules/propername (Link): Likewise.
24294         Reported by Jim Meyering.
24295
24296 2008-05-26  Jim Meyering  <meyering@redhat.com>
24297
24298         sha256: do not artificially restrict buffer length to be < 2^32
24299         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24300         uint32_t to size_t.
24301         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24302         to match.
24303
24304         avoid unaligned access errors, e.g., on sparc
24305         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24306         direct access through a possibly-unaligned uint64* pointer.
24307         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24308         direct access through a possibly-unaligned uint32* pointer.
24309         Prompted by this patch from Tom "spot" Callaway:
24310         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24311
24312         sha512.c: fix typo in comment
24313         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24314
24315 2008-05-25  Bruno Haible  <bruno@clisp.org>
24316
24317         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24318         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24319         (Makefile.am): Update lib_SOURCES.
24320
24321 2008-05-25  Bruno Haible  <bruno@clisp.org>
24322
24323         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24324
24325 2008-05-25  Jim Meyering  <meyering@redhat.com>
24326
24327         useless-if-before-free: freed expr may have white-space differences
24328         * build-aux/useless-if-before-free: Recognize cases in which the
24329         freed expression differs from the tested one in embedded white
24330         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24331         $1 was used, so we can't make any regexp shy.  Improved tests now
24332         detect this.
24333
24334         useless-if-before-free: accept white space in the expression.
24335         * build-aux/useless-if-before-free: For now, any white space
24336         in the expression must be identical in the free argument.
24337
24338         useless-if-before-free: efficiency tweak
24339         * build-aux/useless-if-before-free: Make the expression-matching
24340         regexp "shy".
24341         Make the *outer* regexp shy, not the expr-matching one.
24342
24343         update code-in-comment to accept cast of free arg
24344         * build-aux/useless-if-before-free: Update regexp.
24345
24346 2008-05-25  Bruno Haible  <bruno@clisp.org>
24347
24348         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24349         * modules/copy-file-tests (Files, Makefile.am): Update.
24350         * tests/test-copy-file.c (func_test_copy): Update.
24351
24352 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24353
24354         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24355
24356 2008-05-23  Bruno Haible  <bruno@clisp.org>
24357
24358         Improve support for ACLs on OSF/1.
24359         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24360         Remove fallback for unknown flavors of ACLs.
24361
24362 2008-05-22  Bruno Haible  <bruno@clisp.org>
24363
24364         Add support for ACLs on OSF/1.
24365         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24366         replacements.
24367         (acl_free_text): New macro fallback.
24368         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24369         acl_free.
24370         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24371         acl_free_text function. Require AC_C_INLINE.
24372
24373 2008-05-22  Bruno Haible  <bruno@clisp.org>
24374
24375         Make copy_acl work on MacOS X 10.5.
24376         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24377         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24378         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24379         If MODE_INSIDE_ACL, don't assume that every system has the same text
24380         representation for ACLs as FreeBSD.
24381         * lib/copy-acl.c (copy_acl): Add support for platforms with
24382         !MODE_INSIDE_ACL.
24383         * lib/file-has-acl.c (file_has_acl): Likewise.
24384         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24385         FreeBSD, MacOS X, or IRIX, respectively.
24386
24387 2008-05-22  Bruno Haible  <bruno@clisp.org>
24388
24389         * lib/acl.h: Don't include <sys/acl.h>.
24390         (GETACLCNT): Move fallback to lib/acl-internal.h.
24391         * lib/acl-internal.h: Include <sys/acl.h> here.
24392         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24393
24394 2008-05-22  Bruno Haible  <bruno@clisp.org>
24395
24396         Split off copy_acl function to separate file.
24397         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24398         * lib/acl.c (copy_acl): Moved function to separate file.
24399         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24400         * modules/acl (Files): Add lib/copy-acl.c.
24401         (Makefiles.am): Augment lib_SOURCES.
24402
24403 2008-05-22  Bruno Haible  <bruno@clisp.org>
24404
24405         * modules/copy-file-tests: New file.
24406         * tests/test-copy-file.sh: New file.
24407         * tests/test-copy-file.c: New file.
24408         * tests/test-copy-file-sameacls.c: New file.
24409
24410 2008-05-22  Eric Blake  <ebb9@byu.net>
24411
24412         Avoid gcc warning.
24413         * tests/test-memcmp.c (main): Pass NULL indirectly.
24414
24415 2008-05-21  Bruno Haible  <bruno@clisp.org>
24416
24417         Add reference doc about ACLs.
24418         * doc/acl-resources.txt: New file.
24419         * doc/acl-cygwin.txt: New file.
24420
24421 2008-05-21  Bruno Haible  <bruno@clisp.org>
24422
24423         Avoid one more warning from gcc.
24424         * lib/vasnprintf.c (IF_LINT): Update comments.
24425         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24426
24427 2008-05-21  Jim Meyering  <meyering@redhat.com>
24428
24429         avoid a warning from gcc
24430         * lib/vasnprintf.c (IF_LINT): Define.
24431         (scale10_round_decimal_long_double):
24432         Use it to avoid a "may be used uninitialized" warning.
24433         (scale10_round_decimal_double): Likewise.
24434
24435 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24436
24437         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24438         declared.
24439
24440 2008-05-20  Bruno Haible  <bruno@clisp.org>
24441
24442         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24443         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24444
24445 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24446
24447         * modules/memcmp-tests: New file.
24448         * tests/test-memcmp.c: New file.
24449
24450 2008-05-19  Bruno Haible  <bruno@clisp.org>
24451
24452         * modules/propername (Notice, configure.ac): Put quoted "..." into
24453         --keyword option.
24454         * lib/propername.h: Update comments accordingly.
24455         Reported by Eric Blake.
24456
24457 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24458
24459         * modules/getpass-gnu (Depends-on): Add fseeko.
24460
24461 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24462
24463         * modules/base64-tests: New file.
24464
24465 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24466
24467         * lib/base64.c (base64_decode_ctx): If a decode context structure
24468         was passed in use it to ignore newlines.  If a context structure
24469         was _not_ passed in, continue to treat newlines as garbage (this
24470         is the historical behavior).  Formerly base64_decode.
24471         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24472         takes a decode context structure.
24473         * lib/base64.h (base64_decode): Macro for four-argument calls.
24474         (base64_decode_alloc): Likewise.
24475         * lib/base64.c (base64_decode_ctx): If a decode context structure
24476         was passed in use it to ignore newlines.  If a context structure
24477         was _not_ passed in, continue to treat newlines as garbage (this
24478         is the historical behavior).  Formerly base64_decode.
24479         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24480         takes a decode context structure.
24481         * lib/base64.h (base64_decode): Macro for four-argument calls.
24482         (base64_decode_alloc): Likewise.
24483
24484 2008-05-19  Jim Meyering  <meyering@redhat.com>
24485
24486         avoid a warning from gcc
24487         * lib/trim.c (IF_LINT): Define.
24488         (trim2): Use it to avoid a "may be used uninitialized" warning.
24489
24490         Fix doc typo.
24491         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24492
24493 2008-05-19  Bruno Haible  <bruno@clisp.org>
24494
24495         * doc/glibc-functions/getpass.texi: Document limits of other
24496         implementations.
24497
24498 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24499             Bruno Haible <bruno@clisp.org>
24500
24501         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24502
24503 2008-05-18  Bruno Haible  <bruno@clisp.org>
24504
24505         * modules/propername: New file, from GNU gettext.
24506         * lib/propername.h: New file, from GNU gettext.
24507         * lib/propername.c: New file, from GNU gettext.
24508         * MODULES.html.sh (Internationalization functions): Add propername.
24509
24510 2008-05-16  Jim Meyering  <meyering@redhat.com>
24511             Bruno Haible  <bruno@clisp.org>
24512
24513         Avoid some warnings from "gcc -Wshadow".
24514         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24515
24516 2008-05-15  Eric Blake  <ebb9@byu.net>
24517
24518         Extend previous patch to cygwin 1.7.0.
24519         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24520         fast implementation in cygwin >= 1.7.0.
24521         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24523
24524 2008-05-15  Bruno Haible  <bruno@clisp.org>
24525
24526         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24527         implementation in glibc >= 2.9.
24528         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24530
24531 2008-05-15  Bruno Haible  <bruno@clisp.org>
24532
24533         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24534         (Unicode string functions): Add unilbrk/*.
24535         Reported by Karl Berry.
24536
24537 2008-05-15  Eric Blake  <ebb9@byu.net>
24538
24539         Fix violation of <stdbool.h> replacement in regex.
24540         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24541         * lib/regexec.c (re_search_internal): Likewise.
24542         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24543
24544 2008-05-15  Jim Meyering  <meyering@redhat.com>
24545
24546         avoid distracting test output when git or cvs is not found
24547         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24548         * tests/test-vc-list-files-git.sh: Likewise.
24549
24550 2008-05-15  Eric Blake  <ebb9@byu.net>
24551
24552         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24553         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24554         glibc version.
24555         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24556         * doc/posix-functions/strstr.texi (strstr): Likewise.
24557         * lib/str-two-way.h (MAX): Sychronize with glibc.
24558
24559 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24560
24561         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24562         opr.ctx_type.
24563         (calc_first): Initialize constraint field.
24564         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24565         Fix grammar.
24566         (duplicate_node): Merge constraint field for all node types.
24567         (calc_eclosure_iter): Look at constraint field for all node types.
24568         * lib/regex_internal.c (create_cd_newstate): Don't look at
24569         opr.ctx_type.
24570
24571 2008-05-14  Bruno Haible  <bruno@clisp.org>
24572
24573         Help GCC to do better code generation.
24574         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24575         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24576         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24577         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24578         Declare with attribute 'malloc' if supported.
24579
24580 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24581
24582         use "echo STR|wc -c" rather than unportable "expr length STR"
24583         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24584         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24585
24586 2008-05-14  Jim Meyering  <meyering@redhat.com>
24587
24588         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24589         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24590         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24591         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24592         via Collin Lasse.
24593
24594 2008-05-14  Eric Blake  <ebb9@byu.net>
24595
24596         Avoid quadratic growth in gl_LIBSOURCES.
24597         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24598         Suggested by Bruno Haible.
24599
24600         Test xmemdup0.
24601         * modules/xmemdup0-tests: New file.
24602         * tests/test-xmemdup0.c: Likewise.
24603
24604 2008-05-13  Eric Blake  <ebb9@byu.net>
24605
24606         Split xmemdup0 into its own module.
24607         * modules/xmemdup0: New file.
24608         * lib/xmemdup0.h: Likewise.
24609         * lib/xmemdup0.c: Likewise.
24610         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24611         * lib/xalloc.h (xmemdup0): Remove.
24612         * lib/xmalloc.c (xmemdup0): Likewise.
24613
24614 2008-05-13  Eric Blake  <ebb9@byu.net>
24615             Bruno Haible  <bruno@clisp.org>
24616
24617         Reduce number of forks required during autoconf.
24618         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24619         and gl_LIBSOURCES_DIR.
24620         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24621         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24622         m4_syscmd per file.
24623         <m4_foreach_w>: Move...
24624         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24625
24626 2008-05-13  Eric Blake  <ebb9@byu.net>
24627
24628         * gnulib-tool: Fix various comment typos.
24629
24630 2008-05-12  Bruno Haible  <bruno@clisp.org>
24631
24632         Tailor the linebreaking algorithm.
24633         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24634
24635 2008-05-12  Bruno Haible  <bruno@clisp.org>
24636
24637         Update to Unicode 5.0.0.
24638         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24639         LBP_JV, LBP_JT. Redistribute values.
24640         (unilbrk_table): Change size.
24641         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24642         Unicode TR#14 rev. 22.
24643         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24644         LBP_JV, LBP_JT. Redistribute values.
24645         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24646         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24647         Update.
24648         * lib/unilbrk/lbrkprop1.h: Regenerated.
24649         * lib/unilbrk/lbrkprop2.h: Regenerated.
24650         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24651         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24652         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24653         Likewise.
24654         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24655         Likewise.
24656         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24657         result.
24658         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24659         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24660         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24661         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24662         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24663         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24664
24665 2008-05-11  Bruno Haible  <bruno@clisp.org>
24666
24667         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24668
24669 2008-05-11  Bruno Haible  <bruno@clisp.org>
24670
24671         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24672         * modules/unilbrk/gen-lbrk: New file.
24673
24674 2008-05-11  Bruno Haible  <bruno@clisp.org>
24675
24676         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24677         * m4/sha512.m4 (gl_SHA512): Likewise.
24678
24679 2008-05-11  Jim Meyering  <meyering@redhat.com>
24680
24681         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24682         * modules/crypto/sha256: New file.
24683         * modules/crypto/sha512: Likewise.
24684         * lib/sha256.c: Likewise.
24685         * lib/sha256.h: Likewise.
24686         * lib/sha512.c: Likewise.
24687         * lib/sha512.h: Likewise.
24688         * lib/u64.h: Likewise.
24689         * m4/sha256.m4: Likewise.
24690         * m4/sha512.m4: Likewise.
24691         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24692
24693 2008-05-10  Bruno Haible  <bruno@clisp.org>
24694
24695         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24696         (Input/Output <stdio.h>): Add xprintf.
24697         (Signal handling <signal.h>): Add strsignal.
24698         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24699         (Core language properties): Add func.
24700         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24701         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24702         strings.
24703         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24704         (Input/output): New section.
24705         (File system functions): Add openat-die, stat-macros.
24706         (Networking functions): Add sockets.
24707         (Unicode string functions): Add unictype/*.
24708         (Support for building libraries and executables): Add gperf.
24709         (Support for building documentation): Add agpl-3.0.
24710         (Misc): Add nocrash.
24711
24712 2008-05-10  Bruno Haible  <bruno@clisp.org>
24713
24714         * modules/unictype/gen-ctype: New file.
24715
24716 2008-05-10  Jim Meyering  <meyering@redhat.com>
24717
24718         Make chdir-safer.c more efficient on a system with no symlinks.
24719         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24720         also if ELOOP is zero.  Suggested by Bruno Haible.
24721
24722         Make chdir-safer.c slightly safer.
24723         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24724         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24725
24726         Avoid compile failure on systems without ELOOP (like mingw).
24727         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24728         Reported by Bruno Haible.
24729
24730 2008-05-10  Bruno Haible  <bruno@clisp.org>
24731
24732         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24733         (is_utf8_encoding): Use a case-insensitive comparison.
24734         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24735         streq.
24736
24737 2008-05-10  Bruno Haible  <bruno@clisp.org>
24738
24739         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24740         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24741         * lib/unilbrk/ulc-common.h (iconv_string_length,
24742         iconv_string_keeping_offsets): Remove declarations.
24743         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24744         Don't include <iconv.h>, streq.h, xsize.h.
24745         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24746         conversion.
24747         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24748         <iconv.h>, streq.h, xsize.h.
24749         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24750         conversion.
24751         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24752         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24753         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24754         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24755
24756 2008-05-10  Bruno Haible  <bruno@clisp.org>
24757
24758         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24759         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24760
24761         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24762         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24763
24764         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24765         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24766
24767         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24768         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24769
24770         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24771         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24772
24773         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24774         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24775
24776         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24777         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24778
24779         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24780         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24781
24782 2008-05-10  Bruno Haible  <bruno@clisp.org>
24783
24784         Split up 'linebreak' module.
24785         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24786         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24787         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24788         modifications.
24789         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24790         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24791         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24792         lib/linebreak.c.
24793         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24794         lib/linebreak.c.
24795         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24796         lib/linebreak.c.
24797         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24798         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24799         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24800         lib/linebreak.c.
24801         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24802         lib/linebreak.c.
24803         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24804         lib/linebreak.c.
24805         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24806         lib/linebreak.c.
24807         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24808         lib/linebreak.c.
24809         * modules/unilbrk/base: New file.
24810         * modules/unilbrk/tables: New file.
24811         * modules/unilbrk/u8-possible-linebreaks: New file.
24812         * modules/unilbrk/u16-possible-linebreaks: New file.
24813         * modules/unilbrk/u32-possible-linebreaks: New file.
24814         * modules/unilbrk/ulc-common: New file.
24815         * modules/unilbrk/ulc-possible-linebreaks: New file.
24816         * modules/unilbrk/u8-width-linebreaks: New file.
24817         * modules/unilbrk/u16-width-linebreaks: New file.
24818         * modules/unilbrk/u32-width-linebreaks: New file.
24819         * modules/unilbrk/ulc-width-linebreaks: New file.
24820         * lib/linebreak.h: Remove file.
24821         * lib/linebreak.c: Remove file.
24822         * m4/linebreak.m4: Remove file.
24823         * modules/linebreak: Remove file.
24824         * NEWS: Mention the changes.
24825
24826 2008-05-09  Eric Blake  <ebb9@byu.net>
24827
24828         Add xmemdup0.
24829         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24830         implementation.
24831         * lib/xmalloc.c (xmemdup0): New C implementation.
24832
24833 2008-05-08  Bruno Haible  <bruno@clisp.org>
24834
24835         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24836
24837 2008-05-07  Eric Blake  <ebb9@byu.net>
24838
24839         Support cross-compilation of <wctype.h>.
24840         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24841         AC_CACHE_CHECK.
24842
24843 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24844
24845         * build-aux/vc-list-files: Add support for bzr.
24846
24847 2008-05-03  Jim Meyering  <meyering@redhat.com>
24848
24849         avoid failed assertion with tight malloc
24850         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24851
24852 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24853
24854         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24855         are needed from arpa/inet.h.
24856         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24857         Reported by Bruno Haible.
24858
24859 2008-05-02  Jim Meyering  <meyering@redhat.com>
24860
24861         avoid compilation error on FreeBSD 6
24862         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24863
24864 2008-05-01  Jim Meyering  <meyering@redhat.com>
24865
24866         useless-if-before-free: correct --help's exit status description
24867         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24868         for one or more matches, etc.  Reported by Bruno Haible.
24869
24870         vc-list-files: make the stand-alone gnulib test work
24871         * modules/vc-list-files-tests (configure.ac):
24872         Define and AC_SUBST abs_aux_dir.
24873         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24874         $(abs_top_srcdir) to each script and having each of them
24875         duplicate the work of setting PATH, set PATH here, using
24876         the new variable, abs_aux_dir instead.
24877         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24878         * tests/test-vc-list-files-git.sh: Likewise.
24879         Reported by Bruno Haible.
24880
24881 2008-05-01  Bruno Haible  <bruno@clisp.org>
24882
24883         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24884         reallocation. Rename 'done' to 'found_delimiter'.
24885
24886 2008-05-01  Jim Meyering  <meyering@redhat.com>
24887
24888         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24889         * build-aux/vc-list-files: Use `...`, not $(...).
24890
24891 2008-04-30  Jim Meyering  <meyering@redhat.com>
24892
24893         add tests for vc-list-files
24894         * modules/vc-list-files-tests: New module.
24895         * tests/test-vc-list-files-cvs.sh: New file.
24896         * tests/test-vc-list-files-git.sh: New file.
24897
24898         avoid a warning from gcc
24899         * lib/getndelim2.c (IF_LINT): Define.
24900         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24901
24902         vc-list-files: work properly with build-aux/cvsu, too
24903         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24904         to all cvs-based clauses.
24905
24906         vc-list-files: work properly in the CVS+awk case, too
24907         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24908
24909         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24910         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24911         take more than one file argument, so .  Add quotes, just in case $dir
24912         ever contains a shell meta-character.  Prompted by Soren Hansen in
24913         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24914
24915 2008-04-29  Eric Blake  <ebb9@byu.net>
24916
24917         Optimize getndelim2 to use block operations when possible.
24918         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24919         freadseek, and memchr2.
24920         * lib/getndelim2.c (getndelim2): Use them for block reads.
24921
24922 2008-04-29  Bruno Haible  <bruno@clisp.org>
24923
24924         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24925         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24926         * modules/inet_ntop (Depends-on): Add extensions.
24927         * modules/inet_pton (Depends-on): Likewise.
24928         Reported by Simon Josefsson.
24929
24930 2008-04-29  Jim Meyering  <meyering@redhat.com>
24931
24932         When the is more than one match in a block, match all of them.
24933         * build-aux/useless-if-before-free: Iterate through each block
24934         until there are no more matches.
24935
24936         Fix broken useless-if-before-free script.
24937         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24938         the expression to match cast of argument to free-like function.
24939
24940 2008-04-29  Eric Blake  <ebb9@byu.net>
24941
24942         Use new header.
24943         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24944
24945 2008-04-29  Jim Meyering  <meyering@redhat.com>
24946
24947         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24948         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24949         by gnulib to exist and to declare e.g., inet_ntop.
24950         Don't include "inet_ntop.h", now removed.
24951
24952         * m4/arpa_inet_h.m4: Remove trailing blanks.
24953
24954 2008-04-29  Eric Blake  <ebb9@byu.net>
24955
24956         Silence valgrind on safe reads beyond potential array bounds.
24957         * lib/rawmemchr.valgrind: New file.
24958         * lib/strchrnul.valgrind: Likewise.
24959         * modules/rawmemchr (Files): Distribute new file.
24960         * modules/strchrnul (Files): Likewise.
24961         Suggested by Bruno Haible.
24962
24963 2008-04-29  Bruno Haible  <bruno@clisp.org>
24964
24965         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24966         (inet_ntop, inet_pton): Change portability warning's wording.
24967         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24968         Invoke gl_CHECK_NEXT_HEADERS.
24969         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24970         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24971         set ARPA_INET_H.
24972         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24973         * modules/arpa_inet (Description): No longer only for systems that
24974         lack it.
24975         (Depends-on): Add include_next.
24976         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24977         HAVE_ARPA_INET_H.
24978
24979 2008-04-29  Jim Meyering  <meyering@redhat.com>
24980
24981         * modules/mkdir (License): Re-license as LGPLv2+.
24982
24983 2008-04-29  Bruno Haible  <bruno@clisp.org>
24984
24985         * modules/rawmemchr (Maintainer): Set to Eric.
24986         * modules/strchrnul (Maintainer): Likewise.
24987
24988 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24989
24990         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24991         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24992
24993         * modules/arpa_inet (arpa/inet.h): Use them.
24994
24995 2008-04-28  Eric Blake  <ebb9@byu.net>
24996
24997         Test getndelim2.
24998         * modules/getndelim2-tests: New file.
24999         * tests/test-getndelim2.c: Likewise.
25000         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25001         stream.
25002         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25003
25004         * MODULES.html.sh: Document new module.
25005
25006 2008-04-20  Bruno Haible  <bruno@clisp.org>
25007
25008         * lib/c-stack.c (die): Use raise.
25009         * modules/c-stack (Depends-on): Add raise.
25010
25011 2008-04-28  Bruno Haible  <bruno@clisp.org>
25012
25013         Expect rpmatch to be declared.
25014         * lib/yesno.c (rpmatch): Remove declaration.
25015
25016         Declare rpmatch.
25017         * lib/stdlib.in.h (rpmatch): New declaration.
25018         * lib/rpmatch.c: Include <stdlib.h> first.
25019         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25020         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25022         HAVE_RPMATCH.
25023         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25024         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25025         (Include): Set to <stdlib.h>.
25026         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25027         HAVE_RPMATCH.
25028         * NEWS: Document the change.
25029
25030 2008-04-28  Bruno Haible  <bruno@clisp.org>
25031
25032         Change rpmatch to use nl_langinfo when appropriate.
25033         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25034         (N_): New macro.
25035         (localized_pattern): New function/macro.
25036         (try): Remove match, nomatch arguments. Copy the pattern into safe
25037         memory before caching it.
25038         (rpmatch): Use localized_pattern. Add translator comments.
25039         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25040         Suggested by Eric Blake.
25041         * modules/rpmatch (Depends-on): Add stdbool.
25042
25043 2008-04-28  Eric Blake  <ebb9@byu.net>
25044
25045         Add rawmemchr module, matching glibc.
25046         * modules/string (Makefile.am): New indicator.
25047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25048         * lib/string.in.h (rawmemchr): Declare when appropriate.
25049         * modules/rawmemchr: New file.
25050         * m4/rawmemchr.m4: Likewise.
25051         * lib/rawmemchr.c: Likewise.
25052         * modules/rawmemchr-tests: Likewise.
25053         * tests/test-rawmemchr.c: Likewise.
25054         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25055         module.
25056         * modules/strchrnul (Depends-on): Add rawmemchr.
25057         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25058
25059         Whitespace cleanup.
25060         * tests/test-strchrnul.c: Reindent.
25061         * lib/strchrnul.c: Likewise.
25062
25063         Optimize and test strchrnul.
25064         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25065         * modules/strchrnul-tests: New file.
25066         * tests/test-strchrnul.c: Likewise.
25067
25068         Remove intprops dependency.
25069         * modules/memchr (Depends-on): Remove intprops.
25070         * modules/memrchr (Depends-on): Likewise.
25071         * modules/memchr2 (Depends-on): Likewise.
25072         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25073         * lib/memrchr.c (__memrchr): Likewise.
25074         * lib/memrchr2.c (memchr2): Likewise.
25075         Reported by Simon Josefsson.
25076
25077 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25078
25079         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25080         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25081
25082 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25083
25084         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25085
25086         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25087
25088         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25089
25090         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25091         declarations.
25092         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25093
25094         * m4/inet_pton.m4: Don't check for header files.
25095
25096         * m4/inet_ntop.m4: Don't check for header files.
25097
25098 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25099
25100         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25101         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25102         trigger for cygwin).
25103         Reported by Bruno Haible  <bruno@clisp.org>.
25104
25105 2008-04-28  Bruno Haible  <bruno@clisp.org>
25106
25107         * doc/posix-functions/strdup.texi: Mention mingw problem.
25108
25109 2008-04-27  Bruno Haible  <bruno@clisp.org>
25110
25111         * modules/stat-time-tests (Depends-on): Add sleep.
25112         * tests/test-stat-time.c (force_unlink): New function.
25113         (cleanup): Use it.
25114         (test_mtime): Remove the ctime related tests.
25115         (test_ctime): New function, containing the ctime related tests.
25116         (main): Call test_ctime, except on native Windows platforms.
25117
25118 2008-04-27  Bruno Haible  <bruno@clisp.org>
25119
25120         * lib/rpmatch.c (rpmatch): Add some comments.
25121         Reported by James Youngman <jay@gnu.org>.
25122
25123 2008-04-27  Bruno Haible  <bruno@clisp.org>
25124
25125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25126         quiet NaNs.
25127
25128 2008-04-27  Bruno Haible  <bruno@clisp.org>
25129
25130         Make test-yesno.sh work on mingw.
25131         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25132         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25133         (main): Set stdin to binary mode.
25134         * modules/yesno-tests (Depends-on): Add binary-io.
25135
25136 2008-04-27  Bruno Haible  <bruno@clisp.org>
25137
25138         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25139         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25140         argument that lie outside the IEEE 854 domain.
25141         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25142         (gl_ISFINITE): Use it.
25143         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25144
25145 2008-04-27  Bruno Haible  <bruno@clisp.org>
25146
25147         Allow local renaming in config.h.
25148         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25149
25150 2008-04-27  Bruno Haible  <bruno@clisp.org>
25151
25152         * lib/memchr.c (__memchr): Change type of 'i'.
25153         * lib/memchr2.c (memchr2): Likewise.
25154
25155 2008-04-26  Eric Blake  <ebb9@byu.net>
25156         and Bruno Haible  <bruno@clisp.org>
25157
25158         Optimize and test memrchr.
25159         * modules/memrchr (Depends-on): Add intprops.
25160         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25161         * modules/memrchr-tests: New file.
25162         * tests/test-memrchr.c: New file.
25163
25164 2008-04-26  Bruno Haible  <bruno@clisp.org>
25165
25166         Add tentative support for DragonFly BSD.
25167         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25168         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25169         fp.
25170         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25171         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25172         * lib/fpurge.c (fpurge): Likewise.
25173         * lib/freadable.c (freaadable): Likewise.
25174         * lib/freadahead.c (freadahead): Likewise.
25175         * lib/freading.c (freading): Likewise.
25176         * lib/freadptr.c (freadptr): Likewise.
25177         * lib/freadseek.c (freadptrinc): Likewise.
25178         * lib/fseeko.c (fseeko): Likewise.
25179         * lib/fseterr.c (fseterr): Likewise.
25180         * lib/fwritable.c (fwritable): Likewise.
25181         * lib/fwriting.c (fwriting): Likewise.
25182
25183 2008-04-26  Bruno Haible  <bruno@clisp.org>
25184
25185         * lib/stdio-impl.h: New file.
25186         * lib/fbufmode.c: Include stdio-impl.h.
25187         (fbufmode): Use fp_, remove redundant #defines.
25188         * lib/fflush.c: Include stdio-impl.h.
25189         (clear_ungetc_buffer): Remove redundant #defines.
25190         * lib/fpurge.c: Include stdio-impl.h.
25191         (fpurge): Remove redundant #defines.
25192         * lib/freadable.c: Include stdio-impl.h.
25193         (freadable): Remove redundant #defines.
25194         * lib/freadahead.c: Include stdio-impl.h.
25195         (freadahead): Remove redundant #defines.
25196         * lib/freading.c: Include stdio-impl.h.
25197         (freading): Remove redundant #defines.
25198         * lib/freadptr.c: Include stdio-impl.h.
25199         (freadptr): Remove redundant #defines.
25200         * lib/freadseek.c: Include stdio-impl.h.
25201         (freadptrinc): Remove redundant #defines.
25202         * lib/fseeko.c: Include stdio-impl.h.
25203         (rpl_fseeko): Remove redundant #defines.
25204         * lib/fseterr.c: Include stdio-impl.h.
25205         (fseterr): Remove redundant #defines.
25206         * lib/fwritable.c: Include stdio-impl.h.
25207         (fwritable: Remove redundant #defines.
25208         * lib/fwriting.c: Include stdio-impl.h.
25209         (fwriting): Remove redundant #defines.
25210         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25211         * modules/fflush (Files): Likewise.
25212         * modules/fpurge (Files): Likewise.
25213         * modules/freadable (Files): Likewise.
25214         * modules/freadahead (Files): Likewise.
25215         * modules/freading (Files): Likewise.
25216         * modules/freadptr (Files): Likewise.
25217         * modules/freadseek (Files): Likewise.
25218         * modules/fseeko (Files): Likewise.
25219         * modules/fseterr (Files): Likewise.
25220         * modules/fwritable (Files): Likewise.
25221         * modules/fwriting (Files): Likewise.
25222
25223 2008-04-26  Bruno Haible  <bruno@clisp.org>
25224
25225         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25226         restore_seek_optimization, update_fpos_cache): New functions, extracted
25227         from rpl_fflush.
25228         (rpl_fflush): Use them.
25229         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25230         (gl_REPLACE_FFLUSH): Use it.
25231
25232 2008-04-26  Bruno Haible  <bruno@clisp.org>
25233
25234         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25235         on Solaris.
25236         * tests/test-xstrtoimax.sh: Likewise.
25237         * tests/test-xstrtoumax.sh: Likewise.
25238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25239
25240 2008-04-26  Bruno Haible  <bruno@clisp.org>
25241
25242         * modules/memchr-tests: New file.
25243         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25244
25245 2008-04-26  Eric Blake  <ebb9@byu.net>
25246             Bruno Haible  <bruno@clisp.org>
25247
25248         * lib/memchr.c: Include intprops.h.
25249         (__memchr): Optimize parallel detection of matching bytes. Rename local
25250         variables. Add explanatory comments.
25251
25252 2008-04-26  Bruno Haible  <bruno@clisp.org>
25253
25254         Fix module 'memchr', broken since 2000-10-28.
25255         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25256
25257 2008-04-26  Bruno Haible  <bruno@clisp.org>
25258
25259         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25260         comments.
25261
25262 2008-04-25  Eric Blake  <ebb9@byu.net>
25263
25264         Use native fstatat on cygwin 1.7.0.
25265         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25266         first.
25267
25268 2008-04-23  Eric Blake  <ebb9@byu.net>
25269
25270         Improve memchr2 performance.
25271         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25272         NUL bytes.
25273         * modules/memchr2 (Depends-on): Use intprops.h.
25274
25275 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25276
25277         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25278         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25279         <blp@cs.stanford.edu>.
25280
25281 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25282
25283         * lib/arpa_inet.in.h: New file.
25284
25285         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25286         (Makefile.am): Sed in substitute header file.
25287
25288         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25289         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25290
25291         * modules/inet_ntop (configure.ac): Use
25292         gl_ARPA_INET_MODULE_INDICATOR.
25293
25294         * modules/inet_pton (configure.ac): Use
25295         gl_ARPA_INET_MODULE_INDICATOR.
25296
25297 2008-04-22  Jim Meyering  <meyering@redhat.com>
25298
25299         * modules/verify (License): Re-license as LGPLv2+.
25300
25301 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25302
25303         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25304         parameter to void* as per POSIX standard (MinGW uses char*).
25305
25306 2008-04-21  Bruno Haible  <bruno@clisp.org>
25307
25308         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25309         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25310         Define to replacements if REPLACE_ISWCNTRL is 1.
25311         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25312         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25313         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25314         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25315         what it fixes.
25316         * doc/posix-functions/iswalpha.texi: Likewise.
25317         * doc/posix-functions/iswblank.texi: Likewise.
25318         * doc/posix-functions/iswcntrl.texi: Likewise.
25319         * doc/posix-functions/iswdigit.texi: Likewise.
25320         * doc/posix-functions/iswgraph.texi: Likewise.
25321         * doc/posix-functions/iswlower.texi: Likewise.
25322         * doc/posix-functions/iswprint.texi: Likewise.
25323         * doc/posix-functions/iswpunct.texi: Likewise.
25324         * doc/posix-functions/iswspace.texi: Likewise.
25325         * doc/posix-functions/iswupper.texi: Likewise.
25326         * doc/posix-functions/iswxdigit.texi: Likewise.
25327         Reported by Alain Guibert.
25328
25329 2008-04-21  Bruno Haible  <bruno@clisp.org>
25330
25331         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25332         Patch by Alain Guibert.
25333
25334 2008-04-21  Bruno Haible  <bruno@clisp.org>
25335
25336         Fix test failures on mingw.
25337         * tests/test-xstrtol.c (print_no_progname): New function.
25338         (main): Install it in error_print_progname hook.
25339         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25340         * tests/test-xstrtoimax.sh: Likewise.
25341         * tests/test-xstrtoumax.sh: Likewise.
25342
25343 2008-04-21  Bruno Haible  <bruno@clisp.org>
25344
25345         Fix test failure on mingw.
25346         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25347
25348 2008-04-21  Bruno Haible  <bruno@clisp.org>
25349
25350         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25351         Actually assign a value.
25352
25353 2008-04-20  Bruno Haible  <bruno@clisp.org>
25354
25355         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25356         take 2.
25357         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25358         'canonicalize-lgpl' module is also used.
25359         * lib/canonicalize-lgpl.c: Undo last change.
25360         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25361
25362 2008-04-20  Bruno Haible  <bruno@clisp.org>
25363
25364         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25365         config.h. Provide _mkdir based fallback for mingw.
25366         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25367         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25368         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25369         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25370         rather than defining mkdir in config.h.
25371         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25372         (gl_SYS_STAT_H_DEFAULTS): New macro.
25373         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25374         HAVE_IO_H any more.
25375         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25376         HAVE_DECL_MKDIR and HAVE_IO_H.
25377
25378 2008-04-20  Bruno Haible  <bruno@clisp.org>
25379
25380         * lib/isapipe.c: Port to native Windows platforms.
25381
25382 2008-04-20  Bruno Haible  <bruno@clisp.org>
25383
25384         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25385
25386 2008-04-21  Eric Blake  <ebb9@byu.net>
25387
25388         Work around preprocessors that don't handle UINTMAX_MAX.
25389         * lib/memchr2.c (memchr2): Avoid embedded #if.
25390         Reported by Alain Guibert, fix suggested by Bruno Haible.
25391
25392 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25393
25394         * doc/posix-functions/strftime.texi (strftime): Explain better
25395         Windows incompatibility.  Suggested by Micah Cowan
25396         <micah@cowan.name>.
25397
25398 2008-04-20  Bruno Haible  <bruno@clisp.org>
25399
25400         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25401         unistr/u8-mblen.
25402
25403 2008-04-20  Bruno Haible  <bruno@clisp.org>
25404
25405         Fix test failure on platforms with non-GNU iconv.
25406         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25407         (U_TO_U8): Use it, rather than u16_to_u8.
25408         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25409         units at the end of the input string.
25410         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25411
25412 2008-04-20  Bruno Haible  <bruno@clisp.org>
25413
25414         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25415         when the resulting length is 0.
25416         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25417
25418 2008-04-20  Bruno Haible  <bruno@clisp.org>
25419
25420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25421         works.
25422         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25423
25424 2008-04-20  Bruno Haible  <bruno@clisp.org>
25425
25426         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25427         * modules/tsearch-tests (configure.ac): Test for initstate function.
25428
25429 2008-04-20  Bruno Haible  <bruno@clisp.org>
25430
25431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25432         for nlink_t if missing.
25433         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25434
25435 2008-04-19  Bruno Haible  <bruno@clisp.org>
25436
25437         Work around snprintf bug on Linux libc5.
25438         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25440         gl_SNPRINTF_SIZE1.
25441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25442         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25443         that test failed.
25444         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25445         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25446         * modules/snprintf (Files): Add m4/printf.m4.
25447         * modules/vsnprintf (Files): Likewise.
25448         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25449         * doc/posix-functions/vsnprintf.texi: Likewise.
25450
25451 2008-04-19  Bruno Haible  <bruno@clisp.org>
25452
25453         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25454         from 0.0058 to less than 10^-7.
25455
25456 2008-04-19  Bruno Haible  <bruno@clisp.org>
25457
25458         Fix rounding when a precision is given.
25459         * lib/vasnprintf.c (is_borderline): New function.
25460         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25461         9...9x.
25462         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25463         %e, %g.
25464         * tests/test-vasprintf-posix.c (test_function): Likewise.
25465         * tests/test-snprintf-posix.h (test_function): Likewise.
25466         * tests/test-sprintf-posix.h (test_function): Likewise.
25467         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25468         * tests/test-printf-posix.h (test_function): Likewise.
25469         * tests/test-printf-posix.output: Update.
25470         Reported by John Darrington <john@darrington.wattle.id.au> via
25471         Ben Pfaff <blp@cs.stanford.edu>.
25472
25473 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25474
25475         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25476         Suggested by Bruno Haible <bruno@clisp.org>.
25477
25478 2008-04-17  Bruno Haible  <bruno@clisp.org>
25479
25480         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25481         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25482         implementation.
25483         Patch by Bruce Merry <bmerry@gmail.com>.
25484
25485 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25486
25487         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25488         doesn't work under Windows.
25489
25490 2008-04-16  Bruno Haible  <bruno@clisp.org>
25491
25492         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25493         New macros.
25494         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25495         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25496         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25497         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25498         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25499         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25500         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25501         macros.
25502         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25503         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25504         Northern Sotho, Uighur.
25505
25506 2008-04-16  Bruno Haible  <bruno@clisp.org>
25507
25508         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25509         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25510         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25511         Reported by Daniel Bergström <daniel@octocode.com>.
25512
25513 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25514             Bruno Haible  <bruno@clisp.org>
25515
25516         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25517         function.
25518         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25519         New functions, mostly extracted from gl_locale_name_default.
25520         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25521
25522 2008-04-16  Eric Blake  <ebb9@byu.net>
25523
25524         Adjust strtod detection to catch glibc 2.7 bug.
25525         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25526         Reported by John Gatewood Ham.
25527
25528 2008-04-16  Bruno Haible  <bruno@clisp.org>
25529
25530         Add tentative support for Linux libc5.
25531         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25532         * lib/fpurge.c (fpurge): Likewise.
25533         * lib/freadable.c (freadable): Likewise.
25534         * lib/freadahead.c (freadahead): Likewise.
25535         * lib/freading.c (freading): Likewise.
25536         * lib/freadptr.c (freadptr): Likewise.
25537         * lib/freadseek.c (freadptrinc): Likewise.
25538         * lib/fseeko.c (rpl_fseeko): Likewise.
25539         * lib/fseterr.c (fseterr): Likewise.
25540         * lib/fwritable.c (fwritable): Likewise.
25541         * lib/fwriting.c (fwriting): Likewise.
25542         Reported by Alain Guibert <alguibert+bts@free.fr>.
25543
25544 2008-04-15  Bruno Haible  <bruno@clisp.org>
25545
25546         * modules/mathl (configure.ac): Define module indicator.
25547
25548 2008-04-15  Bruno Haible  <bruno@clisp.org>
25549
25550         * lib/logl.c (logl): Remove unused variables.
25551
25552 2008-04-15  Bruno Haible  <bruno@clisp.org>
25553
25554         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25555         fails.
25556
25557 2008-04-15  Bruno Haible  <bruno@clisp.org>
25558
25559         * lib/trim.c (trim2): Fix argument of isspace() macro.
25560
25561 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25562
25563         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25564         to 0.
25565         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25566
25567 2008-04-14  Bruno Haible  <bruno@clisp.org>
25568
25569         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25570         AC_LANG_PROGRAM argument.
25571         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25572         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25574         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25575         * m4/math_h.m4 (gl_MATH_H): Likewise.
25576         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25579         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25580         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25581         * m4/regex.m4 (gl_REGEX): Likewise.
25582         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25583         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25587         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25588         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25589         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25590
25591 2008-04-14  Jim Meyering  <meyering@redhat.com>
25592
25593         test-strtod: fix typos: s/abs/fabs/
25594         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25595
25596 2008-04-13  Bruno Haible  <bruno@clisp.org>
25597
25598         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25599         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25600         module is also used and while not building the reloc-wrapper.
25601
25602 2008-04-13  Bruno Haible  <bruno@clisp.org>
25603
25604         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25605
25606 2008-04-13  Bruno Haible  <bruno@clisp.org>
25607
25608         Fix AIX compilation failure introduced on 2008-04-02.
25609         * tests/test-frexp.c (exp): Undefine before redefining.
25610         * tests/test-frexpl.c (exp): Likewise.
25611
25612 2008-04-13  Bruno Haible  <bruno@clisp.org>
25613
25614         Work around a HP-UX stdio bug.
25615         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25616         * tests/test-ftello.c (main): Likewise.
25617         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25618         * doc/posix-functions/ftello.texi: Likewise.
25619
25620 2008-04-13  Bruno Haible  <bruno@clisp.org>
25621
25622         Make test-signbit pass on HP-UX/hppa.
25623         * tests/test-signbit.c (minus_zerol): New variable.
25624         (test_signbitl): Use it.
25625
25626 2008-04-13  Bruno Haible  <bruno@clisp.org>
25627
25628         Make truncl work on OSF/1 4.0.
25629         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25630         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25631         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25633         HAVE_DECL_TRUNCL.
25634         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25635         HAVE_DECL_TRUNCL.
25636         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25637
25638 2008-04-13  Bruno Haible  <bruno@clisp.org>
25639
25640         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25641
25642 2008-04-13  Bruno Haible  <bruno@clisp.org>
25643
25644         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25645         expression, so as to avoid HP-UX 11 cc compiler bug.
25646
25647 2008-04-13  Bruno Haible  <bruno@clisp.org>
25648
25649         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25650
25651 2008-04-13  Bruno Haible  <bruno@clisp.org>
25652
25653         * lib/git-merge-changelog.c: Remove empty declaration outside of
25654         functions.
25655
25656 2008-04-13  Bruno Haible  <bruno@clisp.org>
25657
25658         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25659
25660 2008-04-13  Bruno Haible  <bruno@clisp.org>
25661
25662         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25663         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25665         also if it exists but lacks definitions of the SHUT_* macros.
25666         * modules/sys_socket (Description): Update.
25667         Reported by Elbert Pol <e.pol@chello.nl>.
25668
25669 2008-04-13  Bruno Haible  <bruno@clisp.org>
25670
25671         * lib/localcharset.c (OS2): Don't redefine if already defined.
25672         Reported by Elbert Pol <e.pol@chello.nl>.
25673
25674 2008-04-13  Bruno Haible  <bruno@clisp.org>
25675
25676         * lib/binary-io.h [__EMX__]: Include <io.h>.
25677         Reported by Elbert Pol <e.pol@chello.nl>.
25678
25679 2008-04-12  Bruno Haible  <bruno@clisp.org>
25680
25681         * lib/fpucw.h: Enable the definitions also for x86_64.
25682         Needed for NetBSD/x86_64.
25683         Reported by Thomas Klausner <tk@giga.or.at>.
25684
25685 2008-04-12  Bruno Haible  <bruno@clisp.org>
25686
25687         * tests/test-strtod.c: Include isnand.h.
25688         (main): Use isnand instead of isnan.
25689         Reported by Jim Meyering.
25690
25691 2008-04-12  Bruno Haible  <bruno@clisp.org>
25692
25693         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25695
25696 2008-04-12  Jim Meyering  <meyering@redhat.com>
25697
25698         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25699
25700 2008-04-12  Bruno Haible  <bruno@clisp.org>
25701
25702         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25703         Reported by Elbert Pol <e.pol@chello.nl>.
25704
25705 2008-04-12  Eric Blake  <ebb9@byu.net>
25706
25707         Work around Solaris 10 math.h bug.
25708         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25709         (gl_MATH_H_DEFAULTS): Set up default.
25710         * modules/math (Makefile.am): Replace new indicators.
25711         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25712         * tests/test-math.c (main): Test this.
25713         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25714         * doc/posix-headers/math.texi (math.h): Mention bug.
25715         Reported by Nelson H. F. Beebe and Jim Meyering.
25716
25717 2008-04-11  Bruno Haible  <bruno@clisp.org>
25718
25719         Adapt to future versions of Apple GCC.
25720         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25721         Reported by Peter O'Gorman <peter@pogma.com>.
25722
25723 2008-04-11  Bruno Haible  <bruno@clisp.org>
25724
25725         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25726
25727 2008-04-11  Bruno Haible  <bruno@clisp.org>
25728
25729         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25730
25731         * modules/getaddrinfo-tests (Makefile.am): Define
25732         test_getaddrinfo_LDADD.
25733
25734 2008-04-11  Bruno Haible  <bruno@clisp.org>
25735
25736         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25737         (init): Fix syntax error.
25738         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25739         is declared.
25740
25741 2008-04-11  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25744         * modules/glob (Depends-on): Add stdbool.
25745
25746 2008-04-11  Bruno Haible  <bruno@clisp.org>
25747
25748         * lib/trim.c: Include <string.h>.
25749
25750 2008-04-11  Eric Blake  <ebb9@byu.net>
25751
25752         Avoid compile failure on OS/2.
25753         * lib/regex_internal.h (internal_function): Disable optimization
25754         on OS/2 (__EMX__), where it caused compiler error.
25755         Reported by Elbert Pol.
25756
25757 2008-04-11  Bruno Haible  <bruno@clisp.org>
25758
25759         Flush the standard error stream before aborting. Needed on mingw.
25760         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25761         * tests/test-array_list.c (ASSERT): Likewise.
25762         * tests/test-array_oset.c (ASSERT): Likewise.
25763         * tests/test-avltree_list.c (ASSERT): Likewise.
25764         * tests/test-avltree_oset.c (ASSERT): Likewise.
25765         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25766         * tests/test-binary-io.c (ASSERT): Likewise.
25767         * tests/test-byteswap.c (ASSERT): Likewise.
25768         * tests/test-c-ctype.c (ASSERT): Likewise.
25769         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25770         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25771         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25772         * tests/test-c-strstr.c (ASSERT): Likewise.
25773         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25774         * tests/test-canonicalize.c (ASSERT): Likewise.
25775         * tests/test-carray_list.c (ASSERT): Likewise.
25776         * tests/test-ceilf1.c (ASSERT): Likewise.
25777         * tests/test-ceilf2.c (ASSERT): Likewise.
25778         * tests/test-ceill.c (ASSERT): Likewise.
25779         * tests/test-count-one-bits.c (ASSERT): Likewise.
25780         * tests/test-fbufmode.c (ASSERT): Likewise.
25781         * tests/test-fflush2.c (ASSERT): Likewise.
25782         * tests/test-floorf1.c (ASSERT): Likewise.
25783         * tests/test-floorf2.c (ASSERT): Likewise.
25784         * tests/test-floorl.c (ASSERT): Likewise.
25785         * tests/test-fopen.c (ASSERT): Likewise.
25786         * tests/test-fpending.c (ASSERT): Likewise.
25787         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25788         * tests/test-fpurge.c (ASSERT): Likewise.
25789         * tests/test-freadable.c (ASSERT): Likewise.
25790         * tests/test-freadahead.c (ASSERT): Likewise.
25791         * tests/test-freading.c (ASSERT): Likewise.
25792         * tests/test-freadptr.c (ASSERT): Likewise.
25793         * tests/test-freadptr2.c (ASSERT): Likewise.
25794         * tests/test-freadseek.c (ASSERT): Likewise.
25795         * tests/test-freopen.c (ASSERT): Likewise.
25796         * tests/test-frexp.c (ASSERT): Likewise.
25797         * tests/test-frexpl.c (ASSERT): Likewise.
25798         * tests/test-fseek.c (ASSERT): Likewise.
25799         * tests/test-fseeko.c (ASSERT): Likewise.
25800         * tests/test-fstrcmp.c (ASSERT): Likewise.
25801         * tests/test-ftell.c (ASSERT): Likewise.
25802         * tests/test-ftello.c (ASSERT): Likewise.
25803         * tests/test-func.c (ASSERT): Likewise.
25804         * tests/test-fwritable.c (ASSERT): Likewise.
25805         * tests/test-fwriting.c (ASSERT): Likewise.
25806         * tests/test-getdelim.c (ASSERT): Likewise.
25807         * tests/test-getline.c (ASSERT): Likewise.
25808         * tests/test-i-ring.c (ASSERT): Likewise.
25809         * tests/test-iconv-utf.c (ASSERT): Likewise.
25810         * tests/test-iconv.c (ASSERT): Likewise.
25811         * tests/test-isfinite.c (ASSERT): Likewise.
25812         * tests/test-isnand.c (ASSERT): Likewise.
25813         * tests/test-isnanf.c (ASSERT): Likewise.
25814         * tests/test-isnanl.h (ASSERT): Likewise.
25815         * tests/test-ldexpl.c (ASSERT): Likewise.
25816         * tests/test-linked_list.c (ASSERT): Likewise.
25817         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25818         * tests/test-localename.c (ASSERT): Likewise.
25819         * tests/test-lseek.c (ASSERT): Likewise.
25820         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25821         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25822         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25823         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25824         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25825         * tests/test-mbschr.c (ASSERT): Likewise.
25826         * tests/test-mbscspn.c (ASSERT): Likewise.
25827         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25828         * tests/test-mbspbrk.c (ASSERT): Likewise.
25829         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25830         * tests/test-mbsrchr.c (ASSERT): Likewise.
25831         * tests/test-mbsspn.c (ASSERT): Likewise.
25832         * tests/test-mbsstr1.c (ASSERT): Likewise.
25833         * tests/test-mbsstr2.c (ASSERT): Likewise.
25834         * tests/test-mbsstr3.c (ASSERT): Likewise.
25835         * tests/test-memchr2.c (ASSERT): Likewise.
25836         * tests/test-memmem.c (ASSERT): Likewise.
25837         * tests/test-open.c (ASSERT): Likewise.
25838         * tests/test-printf-frexp.c (ASSERT): Likewise.
25839         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25840         * tests/test-printf-posix.c (ASSERT): Likewise.
25841         * tests/test-quotearg.c (ASSERT): Likewise.
25842         * tests/test-rbtree_list.c (ASSERT): Likewise.
25843         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25844         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25845         * tests/test-round1.c (ASSERT): Likewise.
25846         * tests/test-roundf1.c (ASSERT): Likewise.
25847         * tests/test-roundl.c (ASSERT): Likewise.
25848         * tests/test-signbit.c (ASSERT): Likewise.
25849         * tests/test-sleep.c (ASSERT): Likewise.
25850         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25851         * tests/test-snprintf.c (ASSERT): Likewise.
25852         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25853         * tests/test-stat-time.c (ASSERT): Likewise.
25854         * tests/test-strcasestr.c (ASSERT): Likewise.
25855         * tests/test-strerror.c (ASSERT): Likewise.
25856         * tests/test-striconv.c (ASSERT): Likewise.
25857         * tests/test-striconveh.c (ASSERT): Likewise.
25858         * tests/test-striconveha.c (ASSERT): Likewise.
25859         * tests/test-strsignal.c (ASSERT): Likewise.
25860         * tests/test-strstr.c (ASSERT): Likewise.
25861         * tests/test-strtod.c (ASSERT): Likewise.
25862         * tests/test-trunc1.c (ASSERT): Likewise.
25863         * tests/test-trunc2.c (ASSERT): Likewise.
25864         * tests/test-truncf1.c (ASSERT): Likewise.
25865         * tests/test-truncf2.c (ASSERT): Likewise.
25866         * tests/test-truncl.c (ASSERT): Likewise.
25867         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25868         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25869         * tests/test-vasnprintf.c (ASSERT): Likewise.
25870         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25871         * tests/test-vasprintf.c (ASSERT): Likewise.
25872         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25873         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25874         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25875         * tests/test-vsnprintf.c (ASSERT): Likewise.
25876         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25877         * tests/test-wcwidth.c (ASSERT): Likewise.
25878         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25879         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25880         * tests/test-xvasprintf.c (ASSERT): Likewise.
25881         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25882         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25883         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25884         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25885         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25886         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25887         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25888         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25889         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25890         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25891         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25892         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25893         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25894         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25895         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25896         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25897         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25898         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25899         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25900         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25901         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25902         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25903         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25904         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25905         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25906         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25907         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25908         * tests/unictype/test-combining.c (ASSERT): Likewise.
25909         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25910         * tests/unictype/test-digit.c (ASSERT): Likewise.
25911         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25912         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25913         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25914         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25915         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25916         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25917         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25918         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25919         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25920         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25921         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25922         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25923         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25924         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25925         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25926         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25927         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25928         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25929         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25930         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25931         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25932         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25933         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25934         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25935         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25936         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25937         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25938         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25939         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25940         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25941         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25942         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25943         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25944         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25945         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25946         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25947         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25948         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25949         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25950         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25951         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25952         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25953         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25954         Reported by Eric Blake.
25955
25956 2008-04-11  Bruno Haible  <bruno@clisp.org>
25957
25958         * lib/wchar.in.h: Tweak comment.
25959
25960 2008-04-11  Bruno Haible  <bruno@clisp.org>
25961
25962         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25963         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25964         gl_COMMON.
25965         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25966
25967 2008-04-11  Bruno Haible  <bruno@clisp.org>
25968
25969         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25970
25971 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25972
25973         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25974         of attempting to use non-existing /dev/*random.  Based on patch
25975         from Adam Strzelecki <ono@java.pl> in
25976         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25977
25978 2008-04-08  Bruno Haible  <bruno@clisp.org>
25979
25980         Add tentative support for emx+gcc.
25981         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25982         * lib/fpurge.c (fpurge): Likewise.
25983         * lib/freadable.c (freadable): Likewise.
25984         * lib/freadahead.c (freadahead): Likewise.
25985         * lib/freading.c (freading): Likewise.
25986         * lib/freadptr.c (freadptr): Likewise.
25987         * lib/freadseek.c (freadptrinc): Likewise.
25988         * lib/fseeko.c (rpl_fseeko): Likewise.
25989         * lib/fseterr.c (fseterr): Likewise.
25990         * lib/fwritable.c (fwritable): Likewise.
25991         * lib/fwriting.c (fwriting): Likewise.
25992         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25993
25994 2008-04-09  Eric Blake  <ebb9@byu.net>
25995
25996         Avoid some autoconf warnings.
25997         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25998         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25999         * m4/afs.m4 (gl_AFS): Likewise.
26000         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26001         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26003         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26004         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26005         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26006         (AC_CHECK_DECLS_ONCE): Likewise.
26007         Rename file...
26008         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26009         gnulib-tool requires autoconf 2.59 or better.
26010         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26011
26012 2008-04-08  Eric Blake  <ebb9@byu.net>
26013
26014         Use 'git describe --match' if present (added in git 1.5.5).
26015         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26016         if possible.
26017
26018 2008-04-08  Bruno Haible  <bruno@clisp.org>
26019
26020         Add tentative support for OpenServer.
26021         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26022         _ptr, _cnt.
26023         * lib/fpurge.c (fpurge): Likewise.
26024         * lib/freadable.c (freadable): Likewise.
26025         * lib/freadahead.c (freadahead): Likewise.
26026         * lib/freading.c (freading): Likewise.
26027         * lib/freadptr.c (freadptr): Likewise.
26028         * lib/freadseek.c (freadptrinc): Likewise.
26029         * lib/fseeko.c (rpl_fseeko): Likewise.
26030         * lib/fseterr.c (fseterr): Likewise.
26031         * lib/fwritable.c (fwritable): Likewise.
26032         * lib/fwriting.c (fwriting): Likewise.
26033         Reported by Roger Cornelius <rac@tenzing.org> and
26034         Brian K. White <brian@aljex.com>.
26035
26036 2008-04-06  Jim Meyering  <meyering@redhat.com>
26037
26038         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26039
26040 2008-04-06  Bruno Haible  <bruno@clisp.org>
26041
26042         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26043         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26044         * tests/test-printf-posix.sh: Likewise.
26045         * tests/test-vfprintf-posix.sh: Likewise.
26046         * tests/test-vprintf-posix.sh: Likewise.
26047         * tests/test-xprintf-posix.sh: Likewise.
26048
26049 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26050
26051         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26052         hide error from 'ls', needed on OS/2.
26053         Report by Elbert Pol <elbert.pol@gmail.com>.
26054
26055 2008-04-04  Eric Blake  <ebb9@byu.net>
26056
26057         Make test-fseeko.c failures meaningful.
26058         * tests/test-fseeko.c: Print line number on failure.
26059         * tests/test-fseek.c: Likewise.
26060         Reported by Nelson H. F. Beebe.
26061
26062         Improve strtod bug detection check.
26063         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26064         required for Solaris 10.
26065         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26066
26067 2008-04-04  Bruno Haible  <bruno@clisp.org>
26068
26069         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26070         by m4/setenv.m4.
26071
26072 2008-04-03  Eric Blake  <ebb9@byu.net>
26073
26074         Ensure sane .version contents.
26075         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26076         version string.
26077         * build-aux/git-version-gen: Improve documentation.
26078
26079         Make GNU make output nicer.
26080         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26081         MAKECMDGOALS to enforce message for all command line targets.  Set
26082         srcdir for use in maint.mk.
26083
26084         Another maintainer tweak.
26085         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26086         a target that regenerates version.
26087
26088 2008-04-03  Jim Meyering  <meyering@redhat.com>
26089
26090         vc-list-files: don't cause coreutils "make po-check" failure
26091         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26092
26093 2008-04-03  Eric Blake  <ebb9@byu.net>
26094
26095         Allow VPATH usage of vc-list-files.
26096         * build-aux/vc-list-files (scriptversion): Add timestamp.
26097         (options): Add --help, --version, -C.
26098         (CVS): Support installed cvsu.
26099
26100 2008-04-02  Bruno Haible  <bruno@clisp.org>
26101
26102         Avoid some "statement with no effect" warnings from gcc.
26103         * tests/test-wctype.c (main): Explicitly ignore unused values.
26104         Reported by Jim Meyering.
26105
26106 2008-04-02  Jim Meyering  <meyering@redhat.com>
26107
26108         Avoid some warnings from "gcc -Wshadow".
26109         * tests/test-frexp.c (exp): Define to a different identifier.
26110         * tests/test-frexpl.c (exp): Likewise.
26111
26112 2008-04-03  Jim Meyering  <meyering@redhat.com>
26113
26114         bootstrap: remove dangling *.[ch] symlinks from lib
26115         * build-aux/bootstrap [dangling symlink removal]: Move find's
26116         -depth option to precede all others, to avoid a warning.
26117         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26118
26119 2008-04-02  Bruno Haible  <bruno@clisp.org>
26120
26121         Avoid some warnings from "gcc -Wshadow".
26122         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26123         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26124         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26125         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26126         Reported by Jim Meyering.
26127
26128 2008-04-01  Bruno Haible  <bruno@clisp.org>
26129
26130         Fix test to work on IRIX 6.5 with cc.
26131         * tests/test-math.c (numeric_equal): New function.
26132         (main): Use it.
26133
26134 2008-04-01  Bruno Haible  <bruno@clisp.org>
26135
26136         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26137
26138 2008-04-01  Bruno Haible  <bruno@clisp.org>
26139
26140         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26142         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26143         (Depends-on): Remove math.
26144
26145         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26146         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26147         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26148         (Depends-on): Remove math.
26149
26150         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26151         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26152         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26153         (Depends-on): Remove math.
26154         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26155         (Depends-on): Remove math.
26156
26157         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26158         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26159         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26160         (Depends-on): Remove math.
26161         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26162         (Depends-on): Remove math.
26163
26164         * tests/test-round1.c: Include nan.h.
26165         (main): Use NaNd instead of NAN.
26166         * modules/round-tests (Files): Add tests/nan.h.
26167
26168         * tests/test-trunc1.c: Include nan.h.
26169         (main): Use NaNd instead of NAN.
26170         * modules/trunc-tests (Files): Add tests/nan.h.
26171
26172         * tests/test-roundf1.c: Include nan.h.
26173         (main): Use NaNf instead of NAN.
26174         * modules/roundf-tests (Files): Add tests/nan.h.
26175
26176         * tests/test-truncf1.c: Include nan.h.
26177         (main): Use NaNf instead of NAN.
26178         * modules/truncf-tests (Files): Add tests/nan.h.
26179
26180         * tests/test-ceilf1.c: Include nan.h.
26181         (main): Use NaNf instead of NAN.
26182         * modules/ceilf-tests (Files): Add tests/nan.h.
26183
26184         * tests/test-floorf1.c: Include nan.h.
26185         (main): Use NaNf instead of NAN.
26186         * modules/floorf-tests (Files): Add tests/nan.h.
26187
26188         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26189         (main): Use NaNf instead of NAN.
26190         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26191
26192         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26193         (main): Use NaNd instead of NAN.
26194         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26195
26196         * tests/test-frexp.c: Include nan.h.
26197         (main): Use NaNd instead of NAN.
26198         * modules/frexp-tests (Files): Add tests/nan.h.
26199
26200         * lib/isnan.c: Don't include <math.h>.
26201         (FUNC): Don't use NAN macro.
26202         * modules/isnand-nolibm (Depends-on): Remove math.
26203         * modules/isnanf-nolibm (Depends-on): Remove math.
26204         * modules/isnanl (Depends-on): Remove math.
26205         * modules/isnanl-nolibm (Depends-on): Remove math.
26206
26207         * tests/nan.h: New file.
26208
26209 2008-04-01  Eric Blake  <ebb9@byu.net>
26210
26211         Fix typos.
26212         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26213         values to be the right type.
26214
26215         For now, cater to gnulib strtod inaccuracies.
26216         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26217         fractional results.  While not as nice from a QoI perspective, it
26218         is a quicker patch than correctly implementing decimal to binary
26219         rounding.
26220
26221 2008-03-31  Eric Blake  <ebb9@byu.net>
26222
26223         Guarantee a definition of NAN.
26224         * lib/math.in.h (NAN): Define if missing.
26225         * tests/test-math.c (main): Test it.
26226         * doc/posix-headers/math.texi (math.h): Document this.
26227         * lib/isnan.c (rpl_isnand): Use it.
26228         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26229         * tests/test-floorf1.c (NaN): Likewise.
26230         * tests/test-frexp.c (NaN): Likewise.
26231         * tests/test-isnand.c (NaN): Likewise.
26232         * tests/test-isnanf.c (NaN): Likewise.
26233         * tests/test-round1.c (NaN): Likewise.
26234         * tests/test-roundf1.c (NaN): Likewise.
26235         * tests/test-snprintf-posix.h (NaN): Likewise.
26236         * tests/test-sprintf-posix.h (NaN): Likewise.
26237         * tests/test-trunc1.c (NaN): Likewise.
26238         * tests/test-truncf1.c (NaN): Likewise.
26239         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26240         * tests/test-vasprintf-posix.c (NaN): Likewise.
26241         * modules/isnand-nolibm (Depends-on): Add math.
26242         * modules/isnanf-nolibm (Depends-on): Likewise.
26243         * modules/isnanl (Depends-on): Likewise.
26244         * modules/isnanl-nolibm (Depends-on): Likewise.
26245         * modules/snprintf-posix-tests (Depends-on): Likewise.
26246         * modules/sprintf-posix-tests (Depends-on): Likewise.
26247         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26248         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26249         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26250         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26251
26252 2008-03-31  Bruno Haible  <bruno@clisp.org>
26253
26254         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26255         * doc/posix-functions/strtod.texi: Likewise.
26256
26257 2008-03-31  Bruno Haible  <bruno@clisp.org>
26258
26259         * tests/test-strtod.c (main): Don't use C99 syntax.
26260
26261 2008-03-31  Bruno Haible  <bruno@clisp.org>
26262
26263         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26264         Reported by Eric Blake.
26265
26266 2008-03-31  Jim Meyering  <meyering@redhat.com>
26267
26268         Don't compare actual signbit return values.
26269         * tests/test-strtod.c (main): Rather, compare only their
26270         zero/non-zero nature.
26271
26272 2008-03-31  Eric Blake  <ebb9@byu.net>
26273
26274         More strtod documentation.
26275         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26276         failures as distinct bugs.
26277
26278 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26281         Problem reported by Erik Benada in
26282         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26283
26284 2008-03-30  Bruno Haible  <bruno@clisp.org>
26285
26286         * tests/test-strtod.c: Add comments about which assertion fails on which
26287         platform.
26288         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26289
26290 2008-03-30  Eric Blake  <ebb9@byu.net>
26291
26292         Test signbit behavior on zeros.
26293         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26294         (test_signbitd, test_signbitl): Likewise.
26295
26296         More strtod touchups.
26297         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26298         sign of negative underflow, for now.  Use .5, not .1.
26299         * doc/posix-functions/strtod.texi (strtod): Mention these
26300         limitations.
26301         Reported by Jim Meyering.
26302
26303 2008-03-30  Bruno Haible  <bruno@clisp.org>
26304
26305         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26306         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26307
26308 2008-03-30  Bruno Haible  <bruno@clisp.org>
26309
26310         Avoid failure when attempting to return empty iconv results on some
26311         platforms.
26312         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26313         allocation, don't report ENOMEM when the resulting string is empty.
26314
26315 2008-03-30  Bruno Haible  <bruno@clisp.org>
26316
26317         Fix buffer overrun.
26318         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26319         Don't consider the width for tmp_length. Check count against tmp_length
26320         before doing the padding. Ensure enough allocation during padding.
26321
26322 2008-03-30  Eric Blake  <ebb9@byu.net>
26323
26324         strtod touchups.
26325         * lib/strtod.c (strtod): Avoid compiler warnings.
26326         Reported by Jim Meyering.
26327
26328 2008-03-30  Bruno Haible  <bruno@clisp.org>
26329
26330         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26331         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26332         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26333         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26334         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26335         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26336         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26337         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26338
26339         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26340         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26341         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26342         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26343         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26344         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26345         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26346         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26347
26348         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26349         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26350         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26351         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26352         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26353         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26354         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26355         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26356
26357         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26358         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26359
26360         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26361         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26362
26363         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26364         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26365
26366         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26368         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26369
26370         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26372         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26373
26374         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26376         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26377
26378         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26380         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26381
26382         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26383         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26385         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26386         (Depends-on): Add EOVERFLOW.
26387         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26388         (Depends-on): Add EOVERFLOW.
26389         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26390         (Depends-on): Add EOVERFLOW.
26391         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26392         (Depends-on): Add EOVERFLOW.
26393         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26394         (Depends-on): Add EOVERFLOW.
26395         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26396         (Depends-on): Add EOVERFLOW.
26397         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26398         (Depends-on): Add EOVERFLOW.
26399         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26400         (Depends-on): Add EOVERFLOW.
26401
26402         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26404         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26405
26406         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26408         * modules/snprintf (Depends-on): Add EOVERFLOW.
26409
26410         * lib/poll.c (EOVERFLOW): Remove fallback.
26411         * modules/poll (Depends-on): Add EOVERFLOW.
26412
26413         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26414         * modules/getugroups (Depends-on): Add EOVERFLOW.
26415
26416         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26417         * modules/getdelim (Depends-on): Add EOVERFLOW.
26418
26419         * lib/ftell.c (EOVERFLOW): Remove fallback.
26420         * modules/ftell (Depends-on): Add EOVERFLOW.
26421
26422         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26424         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26425
26426         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26427
26428         * modules/EOVERFLOW-tests: New file.
26429         * tests/test-EOVERFLOW.c: New file.
26430
26431         * modules/EOVERFLOW: New file.
26432         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26433
26434 2008-03-30  Bruno Haible  <bruno@clisp.org>
26435
26436         Fix bug introduced on 2007-06-10.
26437         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26438         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26439
26440 2008-03-30  Bruno Haible  <bruno@clisp.org>
26441
26442         Improve freadseek's efficiency after ungetc.
26443         * lib/freadseek.c: Include freadahead.h.
26444         (freadptrinc): New function, extracted from freadseek.
26445         (freadseek): Use it in a loop. Use freadahead to determine the number
26446         of loop iterations.
26447         * modules/freadseek (Depends-on): Add freadahead.
26448         (configure.ac): Require AC_C_INLINE.
26449
26450 2008-03-30  Bruno Haible  <bruno@clisp.org>
26451
26452         * lib/freadseek.c (freadseek): Don't ignore the return value of
26453         freadptr.
26454
26455 2008-03-29  Eric Blake  <ebb9@byu.net>
26456
26457         Add hex float support.
26458         * modules/strtod (Depends-on): Add c-ctype.
26459         (Link): Mention POW_LIB.
26460         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26461         whitespace between 'e' and exponent.
26462         * tests/test-strtod.c (main): Enable hex float tests.
26463         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26464         now provides.
26465
26466         Document various strtod bugs, with some fixes.
26467         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26468         "-0x", "inf", "nan", and hex constants.
26469         * doc/posix-functions/atof.texi (atof): Likewise.
26470         * modules/stdlib (Makefile.am): Support strtod.
26471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26472         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26473         detect additional strtod bugs.
26474         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26475         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26476         bool where appropriate.  Parse 'inf' and 'nan'.
26477         * tests/test-strtod.c: New file.
26478         * modules/strtod (Depends-on): Add stdbool, stdlib.
26479         (configure.ac): Turn on module indicator.
26480         * modules/strtod-tests: New module.
26481
26482 2008-03-29  Eric Blake  <ebb9@byu.net>
26483
26484         Fix ftell on mingw.
26485         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26486         * modules/ftell-tests (Depends-on): Add binary-io.
26487         * modules/ftello-tests (Depends-on): Likewise.
26488         * tests/test-ftell.c (main): Enhance test to cover behavior after
26489         ungetc.  Enforce binary mode.
26490         * tests/test-ftello.c (main): Likewise.
26491
26492         Pass test-freadseek on cygwin.
26493         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26494         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26495         ungetc buffer.
26496
26497         * tests/test-fflush2.c (main): Fix typo.
26498
26499 2008-03-29  Bruno Haible  <bruno@clisp.org>
26500
26501         * tests/test-fflush2.c (main): Temporarily disable the contents of
26502         this test.
26503         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26504         Reported by Eric Blake.
26505
26506 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26507
26508         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26509         (GC_SHA224_DIGEST_SIZE): Add.
26510
26511         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26512         (gc_hash_digest_length): Likewise.
26513         (gc_hash_buffer): Likewise.
26514
26515 2008-03-25  Bruno Haible  <bruno@clisp.org>
26516
26517         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26518         detail which gettext release to use.
26519         Reported by Simon Josefsson.
26520
26521 2008-03-26  Jim Meyering  <meyering@redhat.com>
26522
26523         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26524         * modules/gnumakefile (clean-GNUmakefile): Also, use
26525         test ... && ... || : syntax rather than if-then ... fi.
26526
26527         gnumakefile: Don't double-quote-expand $(VPATH) value.
26528         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26529
26530 2008-03-24  Eric Blake  <ebb9@byu.net>
26531
26532         Alter GNUmakefile to install into top directory.
26533         * modules/maintainer-makefile: Split, and add dependency...
26534         * modules/gnumakefile: to this new module.
26535         * build-aux/GNUmakefile: Move...
26536         * top/GNUmakefile: ...here.
26537         * build-aux/maint.mk: Move...
26538         * top/maint.mk: ...here.
26539         * MODULES.html.sh (Support for maintaining...): Document new
26540         module.
26541
26542 2008-03-23  Bruno Haible  <bruno@clisp.org>
26543
26544         * gnulib-tool: New options --vc-files, --no-vc-files.
26545         (func_usage): Document them.
26546         (vc_files): New variable.
26547         (func_import): Consider vc_files.
26548         (func_create_testdir): Set vc_files to empty.
26549         Suggested by Jim Meyering and Karl Berry.
26550
26551 2008-03-23  Bruno Haible  <bruno@clisp.org>
26552
26553         Fix regex compilation error on HP-UX 11.
26554         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26555         * modules/regex (Files): Add m4/mbstate_t.m4.
26556         Reported by Ton Voon <ton.voon@altinity.com>.
26557
26558 2008-03-23  Bruno Haible  <bruno@clisp.org>
26559
26560         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26561
26562 2008-03-23  Eric Blake  <ebb9@byu.net>
26563             Bruno Haible  <bruno@clisp.org>
26564
26565         Install files from top/ in the destination directory.
26566         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26567         augmentation also for the files from top/.
26568         (func_import, func_create_testdir): Rewrite file names:
26569         top/filename -> filename.
26570
26571 2008-03-23  Bruno Haible  <bruno@clisp.org>
26572
26573         Tweak "gnulib --version" output.
26574         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26575
26576 2008-03-23  Bruno Haible  <bruno@clisp.org>
26577
26578         Tweak "gnulib --version" output.
26579         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26580         rather than contents of ChangeLog, when possible.
26581
26582 2008-03-21  Eric Blake  <ebb9@byu.net>
26583
26584         More --version tweaks.
26585         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26586         date of last ChangeLog entry.
26587
26588 2008-03-21  Jim Meyering  <meyering@redhat.com>
26589
26590         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26591
26592 2008-03-20  Eric Blake  <ebb9@byu.net>
26593
26594         VPATH fix.
26595         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26596
26597 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26598
26599         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26600         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26601
26602 2008-03-20  Eric Blake  <ebb9@byu.net>
26603
26604         Sync GNUmakefile with coreutils.
26605         * build-aux/GNUmakefile (have-Makefile): Rename...
26606         (_have-Makefile): ...to this, for namespace consideration.
26607         (GNUmakefile.cfg): Include, if present.
26608         (_autoreconf): Define a default.
26609         (_is-dist-target): New rule for rebuilds to pick up intra-release
26610         version.
26611         (maint-cfg.mk): Rename...
26612         (cfg.mk): ...to this.
26613
26614 2008-03-18  Jim Meyering  <meyering@redhat.com>
26615
26616         New script and module: mktempd
26617         * MODULES.html.sh (maint+release support): Add mktempd.
26618         * build-aux/mktempd: New file.
26619         * modules/mktempd: New file.
26620
26621 2008-03-15  Jim Meyering  <meyering@redhat.com>
26622
26623         Undo last change.
26624         * lib/sha1.c, lib/md5.c: 63 != ~63.
26625         Reported by Andreas Schwab.
26626
26627         sha1.c, md5.c: Hoist a redundant expression.
26628         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26629         "ctx->buflen" only once, before calling *_process_block.
26630         * lib/md5.c (md5_process_bytes): Likewise.
26631
26632 2008-03-14  Eric Blake  <ebb9@byu.net>
26633
26634         Bump copyright year in files generated by gnulib-tool.
26635         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26636         gnulib-tool, rather than hard-coding it.
26637
26638         Fix 'gnulib-tool --version' output to work with git.
26639         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26640         (startup): ...here.
26641         (func_version): Use it to invoke git-version-gen, rather than
26642         relying on CVS keyword expansion.  Modernize wording.
26643         (cvsdatestamp, last_checkin_date, version): Kill unused
26644         variables.
26645
26646 2008-03-12  Jim Meyering  <meyering@redhat.com>
26647
26648         Recognize optional cast of the argument to free.
26649         * build-aux/useless-if-before-free: Update regexps.
26650
26651         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26652
26653 2008-03-11  Bruno Haible  <bruno@clisp.org>
26654
26655         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26656         by a single package.
26657         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26658         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26659         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26660         Reported by Sam Steingold <sds@gnu.org>.
26661
26662 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26663
26664         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26665         repositories.
26666
26667 2008-03-11  Bruno Haible  <bruno@clisp.org>
26668
26669         Avoid conflicts between local macro definitions.
26670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26671         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26672
26673 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26674             Bruno Haible  <bruno@clisp.org>
26675
26676         Make va_copy work with some version of xlc on AIX 5.1.
26677         * lib/stdarg.in.h: New file.
26678         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26679         On AIX, use a <stdarg.h> file substitute.
26680         * modules/stdarg (Files): Add lib/stdarg.in.h.
26681         (Depends-on): Add include_next.
26682         (Makefile.am): Build a stdarg.h substitute if requested.
26683         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26684
26685 2008-03-10  Bruno Haible  <bruno@clisp.org>
26686
26687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26689         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26690
26691 2008-03-10  Bruno Haible  <bruno@clisp.org>
26692
26693         * modules/stdlib (Depends-on): Add include_next, remove
26694         absolute-header.
26695
26696 2008-03-09  Bruno Haible  <bruno@clisp.org>
26697
26698         * lib/freadahead.h (freadahead): Document more precisely.
26699         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26700         the sum of both buffer sizes.
26701         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26702         * NEWS: Document the change.
26703
26704 2008-03-09  Bruno Haible  <bruno@clisp.org>
26705
26706         Extend freadptr to return also the buffer size.
26707         * lib/freadptr.h (freadptr): Add sizep argument.
26708         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26709         (freadptr): Add sizep argument. Determine buffer size like freadahead
26710         does.
26711         * tests/test-freadptr.c: Don't include freadahead.h.
26712         (main): Adapt for new calling convention of freadptr.
26713         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26714         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26715         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26716         tests/test-freadptr2.sh.
26717         (Depends): Remove freadahead.
26718         (TESTS): Add test-freadptr2.sh.
26719         (check_PROGRAMS): Add test-freadptr2.
26720
26721 2008-03-09  Bruno Haible  <bruno@clisp.org>
26722
26723         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26724         Report and solution by Simon Josefsson.
26725
26726 2008-03-06  Bruno Haible  <bruno@clisp.org>
26727
26728         Make fflush after ungetc work on BSD platforms.
26729         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26730         * tests/test-fflush2.c: New file.
26731         * tests/test-fflush2.sh: New file.
26732         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26733         tests/test-fflush2.c.
26734         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26735         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26736
26737 2008-03-06  Eric Blake  <ebb9@byu.net>
26738
26739         Likewise for ftello.
26740         * modules/ftello (Dependencies): Add extensions.
26741         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26742
26743 2008-03-06  Bruno Haible  <bruno@clisp.org>
26744
26745         * modules/fseeko (Dependencies): Add extensions.
26746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26747         Needed on glibc systems.
26748
26749 2008-03-06  Bruno Haible  <bruno@clisp.org>
26750
26751         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26752         email address.
26753         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26754
26755 2008-03-06  Bruno Haible  <bruno@clisp.org>
26756
26757         * users.txt: Add libgnupdf.
26758
26759 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26760
26761         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26762         (Header File Substitutes, Function Substitutes,
26763         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26764         (Build robot for gnulib): Fix typo.
26765
26766 2008-03-06  Bruno Haible  <bruno@clisp.org>
26767
26768         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26769         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26770
26771 2008-03-06  Bruno Haible  <bruno@clisp.org>
26772
26773         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26774         * doc/gnulib.texi: Include it.
26775
26776 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26777
26778         * modules/func (License): Change license to unlimited; there was
26779         no LGPL parts in the module anyway.
26780
26781 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26782
26783         * modules/__func__: Renamed to modules/func.
26784         * modules/__func__-tests: Renamed to modules/func-tests.
26785         * tests/test-__func__.c: Renamed to tests/test-func.c.
26786         * m4/__func__.m4: Renamed to m4/func.m4.
26787         * doc/gnulib.texi (__func__): Section renamed to func.
26788         Suggested by Eric Blake <ebb9@byu.net>.
26789
26790 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26791
26792         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26793         about __func__.  Make example self-contained.  Suggested by Eric
26794         Blake <ebb9@byu.net>.
26795
26796         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26797         Suggested by Eric Blake <ebb9@byu.net>.
26798
26799 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26800
26801         * modules/__func__: New file.
26802         * modules/__func__-tests: New file.
26803         * tests/test-__func__.c: New file.
26804         * m4/__func__.m4: New file.
26805         * doc/gnulib.texi (__func__): Document __func__ module.
26806
26807 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26808
26809         * modules/byteswap (License): Re-license as LGPLv2+.
26810
26811 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26812
26813         * doc/Makefile: Add pdf target.
26814
26815 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26816
26817         * modules/inline (License): Use 'unlimited', since there are only
26818         *.m4 files in this module.
26819
26820 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26821             Bruno Haible  <bruno@clisp.org>
26822
26823         Add support for HP C 7.1 on OpenVMS 8.3.
26824         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26825
26826 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26827
26828         Update VMS specifics.
26829         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26830
26831 2008-03-02  Jim Meyering  <meyering@redhat.com>
26832
26833         Remove the last dependency on the "free" module.
26834         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26835         Reported by Bob Proulx.
26836
26837         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26838
26839         Remove useless "if" tests before free.  Deprecate "free" module.
26840         * doc/posix-functions/free.texi: Mention that this
26841         module is no longer useful.
26842         * modules/free (Notice): Say this module is obsolete.
26843         * modules/readutmp (Depends-on): Remove free.
26844         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26845         * lib/putenv.c (putenv): Likewise.
26846         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26847         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26848         * tests/test-c-strcasestr.c (main): Likewise.
26849         * tests/test-c-strstr.c (main): Likewise.
26850         * tests/test-mbscasestr1.c (main): Likewise.
26851         * tests/test-mbscasestr2.c (main): Likewise.
26852         * tests/test-mbsstr1.c (main): Likewise.
26853         * tests/test-mbsstr2.c (main): Likewise.
26854         * tests/test-memmem.c (main): Likewise.
26855         * tests/test-strcasestr.c (main): Likewise.
26856         * tests/test-striconv.c (main): Likewise.
26857         * tests/test-striconveh.c (main): Likewise.
26858         * tests/test-striconveha.c (main): Likewise.
26859         * tests/test-strstr.c (main): Likewise.
26860
26861         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26862
26863         bootstrap: sync from coreutils again
26864         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26865
26866 2008-03-01  Jim Meyering  <meyering@redhat.com>
26867
26868         bootstrap: sync from coreutils
26869         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26870         also when the target doesn't exist.
26871
26872 2008-03-01  Eric Blake  <ebb9@byu.net>
26873
26874         Fix bugs in last patch.
26875         * lib/memchr2.c (memchr2): Fix typo.
26876         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26877         extension.
26878         Reported by Bruce Korb.
26879
26880         New module 'memchr2'.
26881         * modules/memchr2: New file.
26882         * modules/memchr2-tests: Likewise.
26883         * lib/memchr2.h: Likewise.
26884         * lib/memchr2.c: Likewise, based on memchr.c.
26885         * tests/test-memchr2.c: New test.
26886         * MODULES.html.sh (String handling): Add memchr2.
26887
26888 2008-02-29  Bruno Haible  <bruno@clisp.org>
26889
26890         * modules/freadseek-tests: New file.
26891         * tests/test-freadseek.sh: New file.
26892         * tests/test-freadseek.c: New file.
26893
26894         New module 'freadseek'.
26895         * modules/freadseek: New file.
26896         * lib/freadseek.h: New file.
26897         * lib/freadseek.c: New file.
26898         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26899
26900 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26901
26902         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26903         wydawca.
26904
26905         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26906         program_invocation_name and program_invocation_short_name are
26907         present.
26908
26909 2008-02-28  Bruno Haible  <bruno@clisp.org>
26910
26911         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26912         * tests/test-freadptr.sh: Also test non-seekable stdin.
26913
26914 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26915
26916         * build-aux/bootstrap (source_base, m4_base)
26917         (doc_base, tests_base): New variables.
26918         (gnulib_tool_options): Do not hardcode base directories, use
26919         the above variables instead.
26920
26921 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26922
26923         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26924
26925 2008-02-28  Bruno Haible  <bruno@clisp.org>
26926
26927         * modules/freadptr-tests: New file.
26928         * tests/test-freadptr.sh: New file.
26929         * tests/test-freadptr.c: New file.
26930
26931         New module 'freadptr'.
26932         * modules/freadptr: New file.
26933         * lib/freadptr.h: New file.
26934         * lib/freadptr.c: New file.
26935         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26936
26937 2008-02-26  Karl Berry  <karl@freefriends.org>
26938
26939         Sync from Libtool:
26940         * libltdl/argz.c (argz_add, argz_count): New functions.
26941         * libltdl/argz.in.h: Declare them.
26942         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26943
26944 2008-02-22  Bruno Haible  <bruno@clisp.org>
26945
26946         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26947         is a pointer type.  Needed for HP-UX 10.
26948         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26949         * doc/posix-functions/gmtime_r.texi: Likewise.
26950         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26951
26952 2008-02-24  Bruno Haible  <bruno@clisp.org>
26953
26954         * modules/environ-tests: New file.
26955         * tests/test-environ.c: New file.
26956
26957         New module 'environ'.
26958         * modules/environ: New file.
26959         * lib/unistd.in.h (environ): New declaration.
26960         * m4/environ.m4: New file.
26961         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26962         after use.
26963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26964         HAVE_DECL_ENVIRON.
26965         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26966         HAVE_DECL_ENVIRON.
26967         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26968         wrong claim that 'environ' is missing on some systems.
26969         * modules/execute (Depends-on): Add environ.
26970         * lib/execute.c (environ): Remove fallback declaration.
26971         * modules/pipe (Depends-on): Add environ.
26972         * lib/pipe.c (environ): Remove fallback declaration.
26973         * modules/setenv (Depends-on): Add environ.
26974         * lib/setenv.c (environ): Remove fallback declaration.
26975         * modules/unsetenv (Depends-on): Add environ.
26976         * lib/unsetenv.c (environ): Remove fallback declaration.
26977         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26978         m4/environ.m4.
26979         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26980         (gl_PREREQ_UNSETENV): Likewise.
26981
26982 2008-02-24  Bruno Haible  <bruno@clisp.org>
26983
26984         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26985
26986 2008-02-20  Bob Proulx  <bob@proulx.com>
26987
26988         Enable use of older two part flavor 'git describe'.
26989         * build-aux/git-version-gen: If using the older two part flavor of
26990         git version then recreate the third part now present in the
26991         newer three part flavor of git describe.
26992
26993 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26994
26995         * lib/fts.c (fts_build): Typo correction to comment.
26996
26997 2008-02-17  Bruno Haible  <bruno@clisp.org>
26998
26999         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27000         generating no-op conflicts.
27001
27002 2008-02-17  Bruno Haible  <bruno@clisp.org>
27003
27004         Speed up by 10%.
27005         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27006         result_entries, rather than an index-based loop.
27007
27008 2008-02-17  Bruno Haible  <bruno@clisp.org>
27009
27010         Speed up by 25%.
27011         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27012         'hashcode_cached'.
27013         (entry_create): New function.
27014         (entry_hashcode): Use the cached hashcode if possible.
27015         (read_changelog_file, try_split_merged_entry): Use entry_create.
27016
27017 2008-02-17  Bruno Haible  <bruno@clisp.org>
27018
27019         Speed up from O(n^2) to O(n) for long ChangeLog files.
27020         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27021         (read_changelog_file): Change implementation of entries_reversed list
27022         to rbtreehash.
27023         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27024
27025 2008-02-17  Bruno Haible  <bruno@clisp.org>
27026
27027         New option --split-merged-entry.
27028         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27029         (find_paragraph_end, try_split_merged_entry): New functions.
27030         (long_options): Add option --split-merged-entry.
27031         (usage): Document option --split-merged-entry.
27032         (main): Implement option --split-merged-entry.
27033         Reported by Eric Blake.
27034
27035 2008-02-17  Bruno Haible  <bruno@clisp.org>
27036
27037         * lib/git-merge-changelog.c: Include c-strstr.h.
27038         (main): Support the "git pull --rebase" situation.
27039         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27040         Reported by Eric Blake.
27041
27042 2008-02-16  Eric Blake  <ebb9@byu.net>
27043
27044         Avoid doubling \ in common case of "c-maybe" quoting style.
27045         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27046         eliding outer quotes.
27047         * lib/quotearg.h: Document this.
27048         * tests/test-quotearg.c (result_strings, inputs, results_g)
27049         (flag_results, locale_results): Test it by adding a new string to
27050         each test group.
27051         (compare_strings): Test new string.
27052
27053 2008-02-13  Eric Blake  <ebb9@byu.net>
27054
27055         Avoid trigraph quoting in default output.
27056         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27057         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27058         unless explicitly requested.
27059         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27060
27061 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27062
27063         Don't rely on signed integer overflowing to negative value.
27064         * lib/getugroups.c (getugroups): Include <limits.h>.
27065         Instead, compare against INT_MAX, and increment only if the test passes.
27066
27067 2008-02-13  Jim Meyering  <meyering@redhat.com>
27068         and Eric Blake  <ebb9@byu.net>
27069
27070         Avoid shadowing warning and compile errors on Linux.
27071         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27072         forwarding macros on Linux.
27073         (dcgettext): Define a stub, for Linux.
27074         (results_g, main): Avoid warnings.
27075
27076 2008-02-12  Eric Blake  <ebb9@byu.net>
27077
27078         Silence warning in last patch.
27079         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27080
27081         Quotearg part 4: add tests, fix c-maybe colon quoting.
27082         * lib/quotearg.h: Improve documentation.
27083         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27084         escapes when adding outer quotes.  When quoting trigraphs, use
27085         valid C notation.  When quoting NUL, omit extra characters if next
27086         character is not digit.  Alter prototype.
27087         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27088         callers.
27089         * modules/quotearg-tests: New module.
27090         * tests/test-quotearg.c: New test.
27091
27092 2008-02-07  Eric Blake  <ebb9@byu.net>
27093
27094         Quotearg part 3: add flag to control outer quote elision.
27095         * lib/quotearg.h (c_maybe_quoting_style): New style.
27096         (enum quoting_flags): Better documentation of flags.
27097         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27098         c-maybe style.
27099         (quotearg_buffer_restyled): Handle new flag to elide outer
27100         quotes.
27101
27102         Quotearg part 2: add flag that can control NUL elision.
27103         * lib/quotearg.h (set_quoting_flags): New prototype.
27104         * lib/quotearg.c (struct quoting_options): Add flag field.
27105         (set_quoting_flags): New function.
27106         (quotearg_buffer_restyled): Add flags parameter.
27107         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27108         (quotearg_n_options): Set the flag, since length cannot be
27109         returned.
27110         (quoting_options_from_style): Default flags correctly.
27111
27112         Quotearg part 1: more wrappers, restore quotearg_char state.
27113         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27114         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27115         (quotearg_colon_mem): New wrappers.
27116         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27117         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27118         functions.
27119         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27120         (quotearg_colon_mem): New functions.
27121
27122 2008-02-11  Bruno Haible  <bruno@clisp.org>
27123
27124         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27125         library in the current directory: it does not work with parallel make.
27126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27127
27128 2008-02-11  Bruno Haible  <bruno@clisp.org>
27129
27130         * .gitattributes: New file.
27131
27132 2008-02-11  Jim Meyering  <meyering@redhat.com>
27133
27134         useless-if-before-free: Fix reversed exit values.
27135         * build-aux/useless-if-before-free: Use correct values
27136         for EXIT_MATCH and EXIT_NO_MATCH.
27137
27138         * build-aux/useless-if-before-free: Close stdout carefully.
27139
27140 2008-02-10  Bruno Haible  <bruno@clisp.org>
27141
27142         New module 'git-merge-changelog'.
27143         * modules/git-merge-changelog: New file.
27144         * lib/git-merge-changelog.c: New file.
27145
27146 2008-02-10  Jim Meyering  <meyering@redhat.com>
27147
27148         useless-if-before-free: New option: --list (-l).
27149
27150         useless-if-before-free: Don't exit immediately upon open failure.
27151         * build-aux/useless-if-before-free: Exit 2 for errors.
27152         Upon failure to open a file, don't exit immediately.
27153         Rather, just warn and continue with any remaining files.
27154
27155 2008-02-10  Bruno Haible  <bruno@clisp.org>
27156
27157         New abstract list operation 'node_set_value'.
27158         * lib/gl_list.h (gl_list_node_set_value): New function.
27159         (struct gl_list_implementation): New field node_set_value.
27160         * lib/gl_list.c (gl_list_node_set_value): New function.
27161         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27162         (gl_array_list_implementation): Update.
27163         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27164         (gl_carray_list_implementation): Update.
27165         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27166         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27167         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27168         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27169         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27170         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27171         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27172         Update.
27173         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27174         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27175         (gl_sublist_list_implementation): Update.
27176
27177 2008-02-10  Bruno Haible  <bruno@clisp.org>
27178
27179         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27180         Needed when ELEMENT is #defined to 'some_type *'.
27181
27182 2008-02-10  Jim Meyering  <meyering@redhat.com>
27183
27184         New script and module: useless-if-before-free
27185         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27186         * build-aux/useless-if-before-free: New file.
27187         * modules/useless-if-before-free: New file.
27188
27189         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27190
27191         xstrtol_error: Fix typo.
27192         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27193         s/exit_failure/exit_status/.
27194
27195 2008-02-09  Jim Meyering  <meyering@redhat.com>
27196
27197         New script and module: gitlog-to-changelog
27198         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27199         * modules/gitlog-to-changelog: New file.
27200         * build-aux/gitlog-to-changelog: New file.
27201
27202 2008-02-08  Jim Meyering  <meyering@redhat.com>
27203
27204         Avoid two "parameter unused" warnings.
27205         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27206         Mark "st" as used.
27207
27208         Use "git COMMAND", not "git-COMMAND".
27209         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27210         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27211         * build-aux/git-version-gen: Use "git status", not "git-status".
27212
27213 2008-02-07  Bruno Haible  <bruno@clisp.org>
27214
27215         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27216         Avoids a crash on Windows Vista.
27217         Reported by Adam Strzelecki <ono@java.pl> via
27218         Simon Josefsson <simon@josefsson.org>.
27219
27220 2008-02-06  Bruno Haible  <bruno@clisp.org>
27221
27222         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27223         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27224         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27226         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27228         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27229         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27237         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27238         left-adjust flag.
27239         * tests/test-snprintf-posix.h (test_function): Likewise.
27240         * tests/test-sprintf-posix.h (test_function): Likewise.
27241         * tests/test-vasprintf-posix.c (test_function): Likewise.
27242         * doc/posix-functions/fprintf.texi: Update.
27243         * doc/posix-functions/printf.texi: Update.
27244         * doc/posix-functions/snprintf.texi: Update.
27245         * doc/posix-functions/sprintf.texi: Update.
27246         * doc/posix-functions/vfprintf.texi: Update.
27247         * doc/posix-functions/vprintf.texi: Update.
27248         * doc/posix-functions/vsnprintf.texi: Update.
27249         * doc/posix-functions/vsprintf.texi: Update.
27250         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27251
27252 2008-02-06  Bruno Haible  <bruno@clisp.org>
27253
27254         Fix bug introduced on 2008-01-26.
27255         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27256
27257 2008-02-06  Bruno Haible  <bruno@clisp.org>
27258
27259         Fix bug introduced on 2007-06-10.
27260         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27261         !NEED_PRINTF_FLAG_ZERO.
27262
27263 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27264
27265         getloadavg: use libperfstat on AIX5
27266         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27267
27268 2008-02-03  Bruno Haible  <bruno@clisp.org>
27269
27270         * lib/diffseq.h: Add comments about required #includes.
27271         Reported by Michael Biggs <gnulib@doubleplum.net>.
27272
27273 2008-02-01  Bruno Haible  <bruno@clisp.org>
27274
27275         * users.txt: Add gnuit.
27276
27277 2008-01-31  Bruno Haible  <bruno@clisp.org>
27278
27279         * lib/md4.c (set_uint32): Mark as inline.
27280         * lib/md5.c (set_uint32): Likewise.
27281         * lib/sha1.c (set_uint32): Likewise.
27282         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27283         * m4/md5.m4 (gl_MD5): Likewise.
27284         * m4/sha1.m4 (gl_SHA1): Likewise.
27285
27286 2008-01-31  Jim Meyering  <meyering@redhat.com>
27287
27288         Use "sizeof VAR", rather than a literal "4".
27289         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27290         * lib/md4.c (md4_read_ctx): Likewise.
27291         * lib/sha1.c (sha1_read_ctx): Likewise.
27292
27293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27294
27295         * tests/test-sha1.c: New file, based on test-md5.c.
27296
27297         * modules/crypto/sha1-tests: New file.
27298
27299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27300
27301         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27302
27303 2008-01-31  Jim Meyering  <meyering@redhat.com>
27304
27305         Prefer "sizeof v" over the equivalent "4".
27306         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27307         * lib/md5.c (set_uint32): Likewise.
27308         * lib/sha1.c (set_uint32): Likewise.
27309
27310 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27311
27312         * lib/sha1.c (set_uint32): Mark function as static.
27313
27314 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27315
27316         md2: clarify comments to say that alignment is not required.
27317         * lib/md2.h: Remove warning about alignment in comment.
27318         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27319         never been required.
27320
27321 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27322
27323         md4: adapt alignment constraint fix from sha1.
27324         * lib/md4.c (set_uint32): New function, from sha1.c
27325         (md4_read_ctx): Use it.
27326         (md4_finish_ctx): Doc fix.
27327         * lib/md4.h: Doc fix.
27328
27329 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27330
27331         md5: adapt alignment constraint fix from sha1.
27332         * lib/md5.c (set_uint32): New function, from sha1.c
27333         (md5_read_ctx): Use it.
27334         (md5_finish_ctx): Doc fix.
27335         * lib/md5.h: Doc fix.
27336
27337 2008-01-30  Peter Palfrader  <weasel@debian.org>
27338
27339         sha1: remove the result buffer alignment constraint
27340         * lib/sha1.c (set_uint32): New function.
27341         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27342         constraint.
27343         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27344         * lib/sha1.h: Likewise.
27345
27346 2008-01-30  Andreas Schwab  <schwab@suse.de>
27347             Bruno Haible  <bruno@clisp.org>
27348
27349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27350         correct definition of LDBL_MIN_EXP.
27351
27352 2008-01-30  Karl Berry  <karl@gnu.org>
27353
27354         * config/srclist-update: try to preserve x bit on updates.
27355         * config/srclistvars.sh: update for karl.
27356
27357 2008-01-29  Jim Meyering  <meyering@redhat.com>
27358
27359         vasnprintf.c: Avoid warning about unused label
27360         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27361         "overflow" label definition and associated code with the
27362         same cpp condition that guards the sole use of that label.
27363
27364 2008-01-26  Bruno Haible  <bruno@clisp.org>
27365
27366         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27367         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27368         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27369         * lib/isnanl-nolibm.h (isnanl): Likewise.
27370         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27371
27372 2008-01-26  Bruno Haible  <bruno@clisp.org>
27373
27374         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27375         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27376
27377 2008-01-26  Bruno Haible  <bruno@clisp.org>
27378
27379         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27380         GCC >= 4.0 built-in.
27381         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27382
27383 2008-01-26  Bruno Haible  <bruno@clisp.org>
27384
27385         Rename isnan, applicable to 'double' only, to isnand.
27386         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27387         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27388         (configure.ac): Update.
27389         (Include): Replace "isnan.h" with "isnand.h".
27390         * m4/isnand.m4: Renamed from m4/isnan.m4.
27391         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27392         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27393         instead of isnan.c.
27394         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27395         instead of HAVE_ISNAN_IN_LIBC.
27396         (isnand): Renamed from isnan.
27397         * lib/isnand.c: New file.
27398         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27399         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27400         (Makefile.am): Update.
27401         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27402         Include isnand.h instead of isnan.h.
27403         (main): Test isnand instead of isnan.
27404         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27405         isnan-nolibm.
27406         * modules/frexp (Depends-on): Likewise.
27407         * modules/frexp-tests (Depends-on): Likewise.
27408         * modules/frexp-nolibm (Depends-on): Likewise.
27409         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27410         * modules/isfinite (Depends-on): Likewise.
27411         * modules/round-tests (Depends-on): Likewise.
27412         * modules/signbit (Depends-on): Likewise.
27413         * modules/signbit-tests (Depends-on): Likewise.
27414         * modules/snprintf-posix (Depends-on): Likewise.
27415         * modules/sprintf-posix (Depends-on): Likewise.
27416         * modules/trunc-tests (Depends-on): Likewise.
27417         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27418         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27419         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27420         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27421         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27422         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27423         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27424         * modules/vasnprintf-posix (Depends-on): Likewise.
27425         * modules/vasprintf-posix (Depends-on): Likewise.
27426         * modules/vfprintf-posix (Depends-on): Likewise.
27427         * modules/vsnprintf-posix (Depends-on): Likewise.
27428         * modules/vsprintf-posix (Depends-on): Likewise.
27429         * lib/frexp.c: Include isnand.h instead of isnan.h.
27430         (ISNAN): Set to isnand instead of isnan.
27431         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27432         (gl_isfinited): Use isnand instead of isnan.
27433         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27434         (gl_signbitd): Use isnand instead of isnan.
27435         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27436         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27437         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27438         (main): Use isnand instead of isnan.
27439         * tests/test-round1.c: Include isnand.h.
27440         (main): Use isnand instead of isnan.
27441         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27442         (ISNAN): Set to isnand instead of isnan.
27443         * tests/test-trunc1.c: Include isnand.h.
27444         (main): Use isnand instead of isnan.
27445         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27446         (equal): Use isnand instead of isnan.
27447         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27448         isnand-nolibm.
27449         * NEWS: Mention the change.
27450
27451 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27452             Bruno Haible  <bruno@clisp.org>
27453
27454         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27455         the GCC builtins for signbits are present and set
27456         REPLACE_SIGNBIT_USING_GCC if so.
27457         * lib/math.in.h (signbit): Define using GCC builtins if
27458         REPLACE_SIGNBIT_USING_GCC is set.
27459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27460         REPLACE_SIGNBIT_USING_GCC.
27461         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27462
27463 2008-01-25  Jim Meyering  <meyering@redhat.com>
27464
27465         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27466         * lib/poll.c: Include <config.h>, not "config.h".
27467         * tests/test-getaddrinfo.c: Likewise.
27468
27469 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27470
27471         * modules/sockets-tests: New file.
27472
27473 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27474
27475         * modules/sockets: New module, can be used to call WSA_Startup and
27476         WSA_Cleanup when needed.
27477
27478         * lib/sockets.h, lib/sockets.c: New files.
27479
27480         * m4/sockets.m4: New file.
27481
27482         * tests/test-sockets.c: New file.
27483
27484 2008-01-19  Bruno Haible  <bruno@clisp.org>
27485
27486         * doc/posix-headers: Renamed from doc/headers.
27487         * doc/posix-functions: Renamed from doc/functions.
27488         * doc/gnulib.texi: Update.
27489
27490 2008-01-19  Bruno Haible  <bruno@clisp.org>
27491
27492         * doc/glibc-functions/strcasestr.texi: Include contents of
27493         doc/functions/strcasestr.texi, fixing the list of platforms.
27494         * doc/functions/strcasestr.texi: Remove file.
27495
27496 2008-01-19  Bruno Haible  <bruno@clisp.org>
27497
27498         * doc/glibc-functions/memmem.texi: Include contents of
27499         doc/functions/memmem.texi.
27500         * doc/functions/memmem.texi: Remove file.
27501
27502 2008-01-18  Bruno Haible  <bruno@clisp.org>
27503
27504         * doc/glibc-functions/*.texi: New files.
27505         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27506         to use the new files.
27507
27508 2008-01-17  Bruno Haible  <bruno@clisp.org>
27509
27510         * tests/test-gethostname.c (main): Fix printf statement.
27511
27512 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27513
27514         * modules/gethostname-tests: New file.
27515
27516         * tests/test-gethostname.c: New file.
27517
27518 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27519
27520         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27521         used by the UNAME case.  Reported by Bruno Haible
27522         <bruno@clisp.org>.
27523
27524 2008-01-17  Eric Blake  <ebb9@byu.net>
27525
27526         Convert c-strcasestr to be more efficient.
27527         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27528         (Depends-on): Add c-strcase, remove malloca, strnlen.
27529         * tests/test-c-strcasestr.c (main): Enhance test.
27530         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27531
27532 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27533
27534         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27535         Use it in creating po/Makevars.
27536
27537 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27538
27539         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27540         Applications that requires it should initialize libgcrypt
27541         manually.
27542
27543 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27544
27545         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27546
27547 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27548
27549         Fix problem with getdate on mingw32 reported by Simon Josefsson
27550         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27551         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27552         tzname", when deciding whether to declare tzname.
27553         * lib/strftime.c (tzname): Likewise.
27554
27555 2008-01-15  Bruno Haible  <bruno@clisp.org>
27556
27557         Work around a MacOS X 10.5 bug in frexpl().
27558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27559         * doc/functions/frexpl.texi: Document the bug.
27560         Reported by Elias Pipping <pipping@gentoo.org>.
27561
27562 2008-01-14  Eric Blake  <ebb9@byu.net>
27563
27564         Touch up previous patch.
27565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27566         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27567
27568         Convert strcasestr module to use Two-Way algorithm.
27569         * modules/strcasestr-simple: New module, based on the old
27570         strcasestr, but with Two-Way rather than KMP.
27571         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27572         * lib/string.in.h (rpl_strcasestr): Declare.
27573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27574         performance.
27575         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27576         * modules/string (Makefile.am): Support strcasestr.
27577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27578         * modules/strcasestr-tests (Depends-on): Check for alarm.
27579         * tests/test-strcasestr.c: Augment test.
27580         * lib/str-two-way.h: Clean up stray macro.
27581         * NEWS: Document new module.
27582         * MODULES.html.sh (string handling): Likewise.
27583         * doc/functions/strcasestr.texi: New file.
27584         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27585         here, since it is not a POSIX function.
27586
27587 2008-01-14  Colin Watson  <cjwatson@debian.org>
27588             Bruno Haible  <bruno@clisp.org>
27589
27590         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27591         works fine; if not, set REPLACE_STRSIGNAL.
27592         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27594         REPLACE_STRSIGNAL.
27595         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27596         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27597         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27598
27599 2008-01-14  Bruno Haible  <bruno@clisp.org>
27600
27601         * modules/strsignal (Include): Change to <string.h>.
27602
27603 2008-01-14  Colin Watson  <cjwatson@debian.org>
27604
27605         * modules/argp (Notice): Add a notice recommending to change
27606         XGETTEXT_OPTIONS.
27607         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27608
27609 2008-01-13  Colin Watson  <cjwatson@debian.org>
27610
27611         * modules/strsignal-tests: New file.
27612         * tests/test-strsignal.c: New file.
27613
27614         * lib/strsignal.c: New file, from glibc with modifications.
27615         * lib/siglist.h: New file, from glibc with modifications.
27616         * lib/string.in.h (strsignal): New declaration.
27617         * m4/strsignal.m4: New file.
27618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27619         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27620         * modules/strsignal: New file.
27621         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27622         HAVE_DECL_STRSIGNAL.
27623
27624 2008-01-13  Bruno Haible  <bruno@clisp.org>
27625
27626         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27627         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27628         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27629         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27630
27631 2008-01-13  Bruno Haible  <bruno@clisp.org>
27632
27633         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27634         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27635         * lib/argp.h (__attribute__): Likewise.
27636         * lib/c-stack.c (__attribute__): Likewise.
27637         * lib/error.h (__attribute__): Likewise.
27638         * lib/fts.c (__attribute__): Likewise.
27639         * lib/openat.h (__attribute__): Likewise.
27640         * lib/stdio.in.h (__attribute__): Likewise.
27641         * lib/string.in.h (__attribute__): Likewise.
27642         * lib/utimens.c (__attribute__): Likewise.
27643         * lib/vasnprintf.h (__attribute__): Likewise.
27644         * lib/xalloc.h (__attribute__): Likewise.
27645         * lib/xprintf.h (__attribute__): Likewise.
27646         * lib/xstrtol.h (__attribute__): Likewise.
27647         * lib/xvasprintf.h (__attribute__): Likewise.
27648
27649 2008-01-12  Bruno Haible  <bruno@clisp.org>
27650
27651         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27652         * doc/glibc-headers/a.out.texi: New file.
27653         * doc/glibc-headers/aliases.texi: New file.
27654         * doc/glibc-headers/alloca.texi: New file.
27655         * doc/glibc-headers/ar.texi: New file.
27656         * doc/glibc-headers/argp.texi: New file.
27657         * doc/glibc-headers/argz.texi: New file.
27658         * doc/glibc-headers/byteswap.texi: New file.
27659         * doc/glibc-headers/crypt.texi: New file.
27660         * doc/glibc-headers/endian.texi: New file.
27661         * doc/glibc-headers/envz.texi: New file.
27662         * doc/glibc-headers/err.texi: New file.
27663         * doc/glibc-headers/error.texi: New file.
27664         * doc/glibc-headers/execinfo.texi: New file.
27665         * doc/glibc-headers/fpu_control.texi: New file.
27666         * doc/glibc-headers/fstab.texi: New file.
27667         * doc/glibc-headers/fts.texi: New file.
27668         * doc/glibc-headers/getopt.texi: New file.
27669         * doc/glibc-headers/ieee754.texi: New file.
27670         * doc/glibc-headers/ifaddrs.texi: New file.
27671         * doc/glibc-headers/libintl.texi: New file.
27672         * doc/glibc-headers/mcheck.texi: New file.
27673         * doc/glibc-headers/mntent.texi: New file.
27674         * doc/glibc-headers/obstack.texi: New file.
27675         * doc/glibc-headers/paths.texi: New file.
27676         * doc/glibc-headers/printf.texi: New file.
27677         * doc/glibc-headers/pty.texi: New file.
27678         * doc/glibc-headers/resolv.texi: New file.
27679         * doc/glibc-headers/shadow.texi: New file.
27680         * doc/glibc-headers/sysexits.texi: New file.
27681         * doc/glibc-headers/ttyent.texi: New file.
27682
27683 2008-01-12  Jim Meyering  <meyering@redhat.com>
27684
27685         announce-gen: emit Gnulib's git-based version string.
27686         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27687         New option --gnulib-version=V, where V is expected to be
27688         the output of running git describe in the gnulib directory.
27689         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27690         not useful, and plan to stop publishing an xdelta file with each
27691         coreutils release.
27692
27693         * build-aux/announce-gen: Also check for lzma-compressed files.
27694
27695 2008-01-11  Bruno Haible  <bruno@clisp.org>
27696
27697         * tests/test-memmem.c (main): Increase maximum allowed time.
27698         * tests/test-strstr.c (main): Likewise.
27699
27700 2008-01-11  Bruno Haible  <bruno@clisp.org>
27701
27702         * doc/functions/memmem.texi: Add more precisions about platforms.
27703         * doc/functions/strstr.texi: Likewise.
27704
27705 2008-01-10  Eric Blake  <ebb9@byu.net>
27706
27707         * m4/strstr.m4: Delete cruft from copy-n-paste.
27708         Reported by Bruno Haible.
27709
27710 2008-01-10  Bruno Haible  <bruno@clisp.org>
27711
27712         Make c-strstr rely on strstr.
27713         * lib/c-strstr.c: Don't include str-kmp.h.
27714         (c_strstr): Define in terms of strstr.
27715         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27716         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27717
27718 2008-01-10  Bruno Haible  <bruno@clisp.org>
27719
27720         * doc/gnulib.texi (String Functions in C Locale): New section.
27721         * doc/c-ctype.texi: New file.
27722         * doc/c-strcase.texi: New file.
27723         * doc/c-strcaseeq.texi: New file.
27724         * doc/c-strcasestr.texi: New file.
27725         * doc/c-strstr.texi: New file.
27726         * doc/c-strtod.texi: New file.
27727         * doc/c-strtold.texi: New file.
27728
27729 2008-01-10  Eric Blake  <ebb9@byu.net>
27730
27731         * lib/relocatable.h: Fix a comment.
27732
27733 2008-01-10  Eric Blake  <ebb9@byu.net>
27734
27735         Share two-way algorithm.
27736         * lib/str-two-way.h: New file, merged from...
27737         * lib/memmem.c: ...here...
27738         * lib/strstr.c: ...and here.
27739         * modules/memmem (Files): Use it.
27740         * modules/strstr (Files): Likewise.
27741
27742         Avoid quadratic strstr implementations.
27743         * lib/strstr.c: New file.
27744         * m4/strstr.m4: Likewise.
27745         * modules/strstr: Likewise.
27746         * modules/strstr-tests: Likewise.
27747         * tests/test-strstr.c: Likewise.
27748         * lib/string.in.h (rpl_strstr): Declare.
27749         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27751         * modules/string (Makefile.am): Likewise.
27752         * MODULES.html.sh (string handling): Mention new module.
27753         * doc/functions/strstr.texi (strstr): Document the bug.
27754
27755 2008-01-10  Bruno Haible  <bruno@clisp.org>
27756
27757         * lib/relocatable.h (relocate): State whether result is freshly
27758         allocated or not.
27759         * lib/relocatable.c (relocate): Return a freshly allocated string
27760         instead of a pointer to a privately held string.
27761         Reported by Sylvain Beucler <beuc@gnu.org>.
27762
27763 2008-01-10  Colin Watson  <cjwatson@debian.org>
27764
27765         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27766         s/S_ISNLK/S_ISLNK/.
27767
27768 2008-01-09  Bruno Haible  <bruno@clisp.org>
27769
27770         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27771         and other files.
27772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27773         if it's only a guess.
27774         * modules/memmem: Simplify by depending on memmem-simple.
27775
27776 2008-01-09  Bruno Haible  <bruno@clisp.org>
27777
27778         Work around OpenBSD 4.0 tdelete() bug.
27779         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27780         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27781         macros and don't redefine the enum values.
27782         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27783         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27784         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27785
27786 2008-01-09  Bruno Haible  <bruno@clisp.org>
27787
27788         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27789         (main): Don't perform the tests if setlocale did not install a UTF-8
27790         locale. Needed on OpenBSD 4.0.
27791         * modules/wcwidth-tests (Depends-on): Add localcharset.
27792
27793 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27794
27795         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27796         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27797         * NEWS: announce this.
27798         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27799
27800 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27801         and Eric Blake  <ebb9@byu.net>
27802
27803         Add memmem-simple module.
27804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27805         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27806         * modules/memmem-simple: New file.
27807         * modules/memmem (Description): Tweak.
27808         * MODULES.html.sh (string handling): Mention new module.
27809         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27810         addressed by memmem-simple.
27811         * NEWS: Document the difference.
27812
27813 2008-01-09  Eric Blake  <ebb9@byu.net>
27814
27815         Give gcc some memmem optimization hints.
27816         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27817         (strcasestr): Declare as pure.
27818         * modules/memmem (Maintainer): Claim my implementation.
27819
27820 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27821
27822         Support AIX 6.1 and higher.
27823         * build-aux/config.libpath: Likewise.
27824         * build-aux/config.rpath: Likewise.
27825
27826 2008-01-08  Jim Meyering  <meyering@redhat.com>
27827             Bruno Haible  <bruno@clisp.org>
27828
27829         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27830         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27831         Reported by Peter Fales in
27832         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27833
27834 2008-01-08  Bruno Haible  <bruno@clisp.org>
27835
27836         * modules/unictype/category-of (Depends-on): Add
27837         unictype/category-none.
27838         * modules/unictype/category-and-tests (Depends-on): Add
27839         unictype/category-{L,N,Lu,Nd}.
27840         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27841         * modules/unictype/category-or-tests (Depends-on): Add
27842         unictype/category-{L,N}.
27843         * modules/unictype/category-name-tests (Depends-on): Add
27844         unictype/category-{Z,Nl}.
27845         Reported by Simon Josefsson.
27846
27847 2008-01-08  Bruno Haible  <bruno@clisp.org>
27848
27849         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27850         convention better.
27851         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27852         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27853         Reported by Peter Miller <millerp@canb.auug.org.au>.
27854
27855 2008-01-08  Eric Blake  <ebb9@byu.net>
27856
27857         Rewrite memmem to guarantee linear complexity without malloc.
27858         * lib/memmem.c (memmem): Use Two-Way rather than
27859         Knuth-Morris-Pratt, to allow O(1) space usage.
27860         (critical_factorization, two_way_short_needle)
27861         (two_way_long_needle): New functions.
27862         (knuth_morris_pratt): Delete.
27863         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27864         Add stdint.
27865         * tests/test-memmem.c (main): Add tests for periodic needle and
27866         sublinear performance.
27867         * doc/functions/memmem.texi (memmem): Document other deficiencies
27868         in cygwin and older glibc.
27869
27870 2008-01-08  Bruno Haible  <bruno@clisp.org>
27871
27872         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27873         augmentation.
27874
27875 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27876
27877         Add a configure time option: --disable-acl.
27878         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27879         AC_ARG_ENABLE(acl).
27880
27881 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27882
27883         * tests/test-localename.c: Don't include obsolete "setenv.h".
27884
27885         * modules/localename-tests (Depends-on): Need unsetenv.
27886
27887 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27888
27889         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27890
27891 2008-01-06  Colin Watson  <cjwatson@debian.org>
27892
27893         * users.txt: Add man-db.
27894
27895 2008-01-07  Bruno Haible  <bruno@clisp.org>
27896
27897         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27898         previous section name.
27899
27900 2008-01-07  Bruno Haible  <bruno@clisp.org>
27901
27902         * lib/progname.c (set_program_name): Don't strip off a leading
27903         "lt-" prefix outside a .libs directory.
27904         Suggested by Paul Eggert.
27905
27906 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27907             Bruno Haible  <bruno@clisp.org>
27908
27909         Improve memory cleanup in 'relocatable' module.
27910         * lib/relocatable.h (compute_curr_prefix): Change return type to
27911         'char *'.
27912         * lib/relocatable.c (compute_curr_prefix): Change return type to
27913         'char *'. Free curr_installdir after use.
27914         (relocate): Free curr_prefix_better after use.
27915         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27916
27917 2008-01-01  Bruno Haible  <bruno@clisp.org>
27918
27919         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27920         failure on older glibc systems.
27921         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27922
27923 2008-01-05  Eric Blake  <ebb9@byu.net>
27924
27925         Avoid quadratic system memmem.
27926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27927         Reported by Ralf Wildenhues.
27928
27929         Fix memmem test for mingw.
27930         * modules/memmem-tests (configure.ac): Check for alarm.
27931         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27932         it.
27933         * doc/functions/memmem.texi: New file.
27934         * doc/gnulib.texi (Function Substitutes): Add memmem.
27935         Reported by Bruno Haible.
27936
27937 2008-01-04  Bruno Haible  <bruno@clisp.org>
27938
27939         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27940         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27941         gl_HEADER_STRING_H_DEFAULTS.
27942
27943 2008-01-04  Eric Blake  <ebb9@byu.net>
27944
27945         Shorten duration of memmem test.
27946         * tests/test-memmem.c (main): Use alarm to declare failure if test
27947         is taking too long.
27948         Reported by Ralf Wildenhues.
27949
27950 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27951
27952         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27953         string, needed by strerror.
27954
27955 2008-01-03  Colin Watson  <cjwatson@debian.org>
27956             Bruno Haible  <bruno@clisp.org>
27957
27958         * doc/gnulib-tool.texi (Localization): New section.
27959
27960 2008-01-02  Bruno Haible  <bruno@clisp.org>
27961
27962         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27963         variables to 'unsigned char *' type.
27964         Reported by Paul Eggert.
27965
27966 2008-01-02  Jim Meyering  <jim@meyering.net>
27967
27968         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27969
27970 2007-12-31  Jim Meyering  <jim@meyering.net>
27971
27972         Avoid use of private FTS type name.
27973         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27974
27975 2007-12-30  Karl Berry  <karl@gnu.org>
27976
27977         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27978         work around defect in Texinfo and/or the standalone Info browser.
27979
27980 2007-12-30  Bruno Haible  <bruno@clisp.org>
27981
27982         Unify 5 copies of the KMP code.
27983         * lib/str-kmp.h: New file.
27984         * lib/c-strcasestr.c: Include str-kmp.h.
27985         (knuth_morris_pratt): Remove function.
27986         (c_strcasestr): Update.
27987         * lib/c-strstr.c: Include str-kmp.h.
27988         (knuth_morris_pratt): Remove function.
27989         (c_strcasestr): Update.
27990         * lib/mbscasestr.c: Include str-kmp.h.
27991         (knuth_morris_pratt_unibyte): Remove function.
27992         * lib/mbsstr.c: Include str-kmp.h.
27993         (knuth_morris_pratt_unibyte): Remove function.
27994         * lib/strcasestr.c: Include str-kmp.h.
27995         (knuth_morris_pratt): Remove function.
27996         (strcasestr): Update.
27997         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27998         * modules/c-strstr (Files): Likewise.
27999         * modules/mbscasestr (Files): Likewise.
28000         * modules/mbsstr (Files): Likewise.
28001         * modules/strcasestr (Files): Likewise.
28002         Suggested by Paul Eggert.
28003
28004 2007-12-30  Bruno Haible  <bruno@clisp.org>
28005
28006         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28007         defined.
28008
28009 2007-12-30  Bruno Haible  <bruno@clisp.org>
28010
28011         * lib/xmalloca.h: Include xalloc.h.
28012         (xnmalloca): New macro.
28013
28014 2007-12-30  Bruno Haible  <bruno@clisp.org>
28015
28016         * lib/malloca.h (nmalloca): New macro.
28017         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28018         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28019         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28020         knuth_morris_pratt_multibyte): Likewise.
28021         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28022         knuth_morris_pratt_multibyte): Likewise.
28023         * lib/memmem.c (knuth_morris_pratt): Likewise.
28024         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28025
28026 2007-12-25  Bruno Haible  <bruno@clisp.org>
28027
28028         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28029         * lib/glob.c: Don't include openat.h.
28030         (link_exists2_p): Add back the code that deals with the
28031         !GLOB_ALTDIRFUNC case.
28032         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28033         let it do the filename concatenation.
28034         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28035         * modules/glob (Depends-on): Remove openat.
28036
28037 2007-12-31  Bruno Haible  <bruno@clisp.org>
28038
28039         * modules/dirfd (License): Change to LGPLv2+.
28040         Approved by Jim Meyering.
28041
28042 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28043
28044         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28045         when multiplying M by sizeof (size_t).
28046
28047 2007-12-10  Martin Lambers  <marlam@marlam.de>
28048
28049         Override getpagesize on mingw.
28050         * lib/getpagesize.c: New file.
28051         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28052         * modules/getpagesize (Files): Add lib/getpagesize.c.
28053         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28055         REPLACE_GETPAGESIZE.
28056         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28057
28058 2007-12-25  Bruno Haible  <bruno@clisp.org>
28059
28060         * modules/localcharset (Notice): New field.
28061         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28062         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28063
28064 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28065             Bruno Haible  <bruno@clisp.org>
28066
28067         Avoid using the syntax symbol() in formatted documentation.
28068         * MODULES.html.sh (func_module): When replacing symbol() with a
28069         hyperlink, remove the parentheses. Show an error if some remain.
28070         Recognize and render the '...' syntax.
28071         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28072         Rework. Add paragraph about GCC's inlining.
28073         * doc/alloca.texi: Likewise.
28074         * doc/error.texi: Remove parentheses from symbol reference.
28075         * doc/gnulib-intro.texi: Likewise.
28076         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28077         * modules/fnmatch (Description): Reword to say "the ... function".
28078         * modules/full-read (Description): Likewise.
28079         * modules/full-write (Description): Likewise.
28080         * modules/safe-read (Description): Likewise.
28081         * modules/safe-write (Description): Likewise.
28082         * modules/strchrnul (Description): Likewise.
28083         * modules/trim (Description): Likewise.
28084         * modules/error (Description): Remove parentheses from symbol
28085         references.
28086         * modules/verror (Description): Likewise.
28087         Reported by Karl Berry.
28088
28089 2007-12-25  Bruno Haible  <bruno@clisp.org>
28090
28091         Fixup after 2007-10-16 commit.
28092         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28093
28094 2007-12-24  Bruno Haible  <bruno@clisp.org>
28095
28096         Make --enable-relocatable work with DESTDIR.
28097         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28098         to compute installdir from destprog.
28099         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28100         also set the RELOC_DESTDIR variable.
28101         Reported by Левашев Иван <octagram@bluebottle.com>.
28102
28103 2007-12-24  Bruno Haible  <bruno@clisp.org>
28104
28105         Fix link error due to xalloc_die().
28106         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28107         of xreadlink.
28108         * lib/relocwrapper.c: Update comments.
28109         * build-aux/install-reloc: Remove xreadlink.c from file list.
28110         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28111         xreadlink.c.
28112         Reported by Левашев Иван <octagram@bluebottle.com>.
28113
28114 2007-12-24  Bruno Haible  <bruno@clisp.org>
28115
28116         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28117         * lib/setenv.h: Remove file.
28118         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28119         lib/setenv.h.
28120         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28121         (Depends-on): Add stdlib.
28122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28123         gl_FUNC_UNSETENV.
28124         (Include): Replace setenv.h with <stdlib.h>.
28125         * modules/unsetenv: New file.
28126         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28127         * lib/unsetenv.c: Include <stdlib.h> first.
28128         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28129         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28130         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28131         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28132         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28133         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28135         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28136         * doc/functions/unsetenv.texi: Update.
28137         * modules/xsetenv (Depends-on): Add unsetenv.
28138         * modules/getdate (Depends-on): Likewise.
28139         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28140         * lib/xsetenv.c: Don't include setenv.h.
28141         * lib/getdate.y: Likewise.
28142         * lib/relocwrapper.c: Likewise.
28143         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28144         (Depends-on): Add stdlib.
28145         * NEWS: Mention the changes.
28146         Reported by Левашев Иван <octagram@bluebottle.com>.
28147
28148 2007-12-23  Bruno Haible  <bruno@clisp.org>
28149
28150         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28151         indentation.
28152
28153 2007-12-23  Bruno Haible  <bruno@clisp.org>
28154
28155         * lib/c-strcasestr.c: Add more comments.
28156         * lib/c-strstr.c: Likewise.
28157         * lib/mbscasestr.c: Likewise.
28158         * lib/mbsstr.c: Likewise.
28159         * lib/strcasestr.c: Likewise.
28160         * lib/memmem.c: Likewise.
28161
28162 2007-12-23  Bruno Haible  <bruno@clisp.org>
28163
28164         * tests/test-memmem.c: Include <string.h> first.
28165
28166 2007-12-22  Bruno Haible  <bruno@clisp.org>
28167
28168         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28169         the contents of $testsbase.
28170         Reported by Ralf Wildenhues.
28171
28172 2007-12-22  Bruno Haible  <bruno@clisp.org>
28173
28174         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28175         two variables local_ldadd_before, local_ldadd_last.
28176
28177 2007-12-20  Eric Blake  <ebb9@byu.net>
28178
28179         Work around circular library issue when cross-compiling.
28180         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28181         that progname.o does not need to pull in rpl_memcmp.
28182
28183 2007-12-19  Eric Blake  <ebb9@byu.net>
28184
28185         Fix memmem to avoid O(n^2) worst-case complexity.
28186         * lib/memmem.c (knuth_morris_pratt): New function.
28187         (memmem): Use it if first few naive iterations fail.
28188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28189         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28190         * modules/memchr (License): Likewise.
28191         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28192         malloca.
28193         * tests/test-memmem.c: Rewrite, borrowing ideas from
28194         test-mbsstr1.c; the old version wouldn't even compile!
28195         * modules/memmem-tests: New file.
28196         * lib/string.in.h (rpl_memmem): Add declaration.
28197         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28199         REPLACE_MEMMEM.
28200
28201 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28202
28203         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28204         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28205         before any system include files, and undef after them all.  This
28206         should fix a problem on VMS reported by John E. Malmberg in
28207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28208
28209 2007-12-17  Eric Blake  <ebb9@byu.net>
28210
28211         Revert addition of verify, for BSD/OS.
28212         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28213         can't handle large files, for the sake of obsolete platforms.
28214         * modules/fseeko (Depends-on): Remove verify.
28215         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28216         * doc/functions/ftello.texi (ftello): Likewise.
28217         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28218         Reported by Larry Jones.
28219
28220 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28221
28222         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28223         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28224
28225 2007-12-17  Jim Meyering  <meyering@redhat.com>
28226
28227         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28228         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28229         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28230         * modules/getcwd (Depends-on): Add openat.
28231         Reported by Petr Salinger.
28232
28233 2007-12-17  Bruno Haible  <bruno@clisp.org>
28234
28235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28236         avoid a segmentation fault of the configure test on x86_64 systems.
28237
28238 2007-12-15  Jim Meyering  <meyering@redhat.com>
28239
28240         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28241
28242 2007-12-13  Eric Blake  <ebb9@byu.net>
28243
28244         Another fseek test.
28245         * tests/test-fseek.c (main): Also test ungetc handling.
28246         * tests/test-fseeko.c (main): Likewise.
28247         * modules/fseeko (Depends-on): Add verify.
28248         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28249         large.
28250         Reported by Larry Jones.
28251
28252         Fix fseeko on mingw.
28253         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28254         seek.
28255
28256         Beef up fseek tests.
28257         * tests/test-fseek.c (main): Also test eof handling.
28258         * tests/test-fseeko.c (main): Likewise.
28259         Reported by Larry Jones.
28260
28261 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28262
28263         Fix fseeko on BSD-based platforms.
28264         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28265         successful seek.
28266
28267 2007-12-12  Eric Blake  <ebb9@byu.net>
28268
28269         Allow circular dependency of separate libtests.a
28270         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28271         when use_libtests.
28272
28273 2007-12-11  Eric Blake  <ebb9@byu.net>
28274
28275         Fix bug with -0.0L in previous patch.
28276         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28277         * tests/test-isnan.c (main): Also test on zeroes.
28278         * tests/test-isnanf.c (main): Likewise.
28279         * tests/test-isnanl.h (main): Likewise.
28280
28281         Detect pseudo-denormals on x86 even when cross-compiling.
28282         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28283         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28284         invalid bit patterns that happen to satisfy ==.
28285
28286         Avoid link failures with separate libtests.a.
28287         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28288         last, to satisfy circular dependencies.
28289
28290 2007-12-11  Eric Blake  <ebb9@byu.net>
28291         and Bruno Haible  <bruno@clisp.org>
28292
28293         Fix OpenBSD 4.0 <float.h> handling of long double.
28294         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28295         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28296         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28297
28298 2007-12-11  Jim Meyering  <meyering@redhat.com>
28299
28300         * users.txt: Add libvirt.
28301
28302         Support versions of autoconf prior to 2.59c.
28303         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28304         if it is not already defined.
28305
28306 2007-12-09  Bruno Haible  <bruno@clisp.org>
28307
28308         Let 'gnulib-tool --import' collect sources needed for the tests in
28309         tests/ rather than in lib/.
28310         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28311         argument. If true, add rules to generate libtests.a, and put libtests.a
28312         into $(LDADD). Consider source files in subdirectories and set
28313         uses_subdirs.
28314         (func_emit_initmacro_start, func_emit_initmacro_end,
28315         func_emit_initmacro_done): Pass all arguments explicitly.
28316         (func_import): Determine two module lists main_modules,
28317         testsrelated_modules. Determine use_libtests. Determine two variables
28318         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28319         instead of just sed_transform_lib_file. Determine two variables
28320         main_files and testsrelated_files. Compute 'files' as the union of
28321         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28322         func_add_or_update. In the generated gnulib-comp.m4, collect the
28323         object files for tests/ in different variables than those for lib/.
28324         Substitute LIBTESTS_LIBDEPS.
28325         (func_create_testdir): Combine the uses_subdirs results from
28326         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28327
28328 2007-12-09  Bruno Haible  <bruno@clisp.org>
28329
28330         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28331         the build-aux directory.
28332
28333 2007-12-09  Bruno Haible  <bruno@clisp.org>
28334
28335         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28336         introduced on 2006-09-09.
28337
28338 2007-12-07  Jim Meyering  <meyering@redhat.com>
28339
28340         Let these macros work also with autoconf-2.59.
28341         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28342         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28344
28345 2007-12-06  Jim Meyering  <meyering@redhat.com>
28346
28347         Avoid a configure-time syntax error in gl_FUNC_ACL.
28348         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28349         function in each branch, before testing the cache variable.
28350
28351 2007-12-04  Eric Blake  <ebb9@byu.net>
28352
28353         Make scripts executable.
28354         * build-aux/config.guess: Add execute permissions.
28355         * build-aux/config.sub: Likewise.
28356         * build-aux/gendocs.sh: Likewise.
28357
28358         Fix frexp on mingw.
28359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28360         cross-compiling.
28361         * doc/functions/frexp.texi (frexp): Document the bug.
28362
28363         Make cygwin fseeko check more reliable.
28364         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28365         version numbers, rather than unrelated feature check.
28366         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28367         * doc/functions/ftello.texi (ftello): Likewise.
28368         Reported by Bruno Haible.
28369
28370         * m4/strerror.m4: Bump version number.
28371
28372 2007-12-03  Bruno Haible  <bruno@clisp.org>
28373
28374         * doc/functions/mprotect.texi: Mention the mingw problem.
28375
28376 2007-12-03  Eric Blake  <ebb9@byu.net>
28377
28378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28379         REPLACE_STRERROR is initialized before this macro.
28380
28381 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28382
28383         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28384         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28385         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28386         put -lsec in even for programs other than 'ls'.  This fixes a problem
28387         for gettext reported by Bruno Haible in
28388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28389         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28390         Add support for Solaris 10.  This isn't efficient, but should get the
28391         job done for now.
28392
28393 2007-12-03  James Youngman  <jay@gnu.org>
28394
28395         * doc/regexprops-generic.texi: change "an close-group" to "a
28396         close-group" and "illegal" to "not allowed".
28397
28398 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28399
28400         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28401         pr_byname.h. Needed for the rare case when the maintainer has done
28402         "make maintainer-clean" in the source directory and then attempts a
28403         build outside the source directory.
28404         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28405         scripts_byname.h.
28406
28407 2007-12-02  Martin Lambers <marlam@marlam.de>
28408             Bruno Haible  <bruno@clisp.org>
28409
28410         * lib/getpagesize.h: Remove file.
28411         * lib/unistd.in.h: Include declaration of getpagesize here.
28412         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28413         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28414         HAVE_SYS_PARAM_H.
28415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28416         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28417         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28418         (Depends-on): Add unistd.
28419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28420         (Include): Use <unistd.h> instead of getpagesize.h.
28421         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28422         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28423         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28424         gl_GETPAGESIZE invocation, already handled by module dependency.
28425         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28426
28427 2007-12-02  Bruno Haible  <bruno@clisp.org>
28428
28429         * modules/strings-tests: New file.
28430         * tests/test-strings.c: New file.
28431
28432         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28433         * lib/strings.in.h: New file.
28434         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28435         * m4/strings_h.m4: New file.
28436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28437         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28438         * modules/strings: New file.
28439         * modules/string (Makefile.am): Update.
28440         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28441         Reported by Karl Berry.
28442
28443 2007-12-01  Eric Blake  <ebb9@byu.net>
28444
28445         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28446         accomodate fix in cygwin 1.5.25.
28447
28448 2007-12-01  Jim Meyering  <meyering@redhat.com>
28449
28450         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28451         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28452         that would inhibit utf8-optimization of a regexp containing line-
28453         or buffer-anchors, e.g., `^', `$'.
28454
28455 2007-11-30  Bruno Haible  <bruno@clisp.org>
28456
28457         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28458         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28459         glthread_recursive_lock_init.
28460         * lib/lock.c (glthread_recursive_lock_init)
28461         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28462         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28463
28464 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28465
28466         New function qset_acl, like set_acl but with syscall semantics.
28467         * lib/acl.h (qset_acl): New decl.
28468         * lib/acl.c (qset_acl): New function.
28469         (set_acl): Use new function.  Use more-consistent diagnostics.
28470
28471 2007-11-28  Jim Meyering  <meyering@redhat.com>
28472
28473         * modules/physmem (License): Change from GPL to LGPLv2+.
28474
28475 2007-11-26  Bruno Haible  <bruno@clisp.org>
28476
28477         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28478         'long double' type has excess precision.
28479         Reported by Jim Meyering in
28480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28481
28482 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28483
28484         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28485         Sync from <http://gnu.org/licenses>.
28486         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28487         with license text from same location.
28488         * doc/maintain.texi, doc/standards.texi:  Sync from
28489         <http://savannah.gnu.org/projects/gnustandards>.
28490
28491 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28492         and Jim Meyering  <meyering@redhat.com>
28493
28494         Adjust getdate' grammar to accept a slightly more regular language.
28495         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28496         Before, the former was rejected.
28497         * lib/getdate.y (digits_to_date_time): New function, factored
28498         out of ...
28499         (number): ...here.  Just call digits_to_date_time.
28500         (hybrid): New non-terminal to handle an <unsigned number,
28501         signed relative offset> sequence consistently.
28502
28503 2007-11-18  Jim Meyering  <meyering@redhat.com>
28504
28505         Pull my changes from coreutils:
28506         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28507         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28508         use of $gnulib_tool_option_extras, so that it's separated from the
28509         preceding argument.
28510
28511         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28512         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28513         parent destination directories before copying a file into place.
28514
28515 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28516
28517         bootstrap: work also with 4-argument variant of AC_INIT
28518         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28519
28520 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28521
28522         Port test-getaddrinfo to Solaris.
28523         Problem reported by Bruno Haible in
28524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28525         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28526         explanation of setting 'hints'.
28527         Don't reject an implementation merely because it returns EAI_SERVICE.
28528         (EAI_SERVICE): Define to 0 if not defined.
28529
28530 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28531
28532         The license of gnu-make and posix-shell is now "GPLed build tool".
28533         * modules/gnu-make (License): Likewise.
28534         * modules/posix-shell (License): Likewise.
28535
28536         New module posix-shell, for determining a POSIX shell
28537         or perhaps something that is close enough to a POSIX shell.
28538         * m4/posix-shell.m4: New file.
28539         * modules/posix-shell: New file.
28540
28541         * MODULES.html.sh: Mention new module.
28542
28543         New module gnu-make, for determining whether we're using GNU Make.
28544         * m4/gnu-make.m4: New file.
28545         * modules/gnu-make: New file.
28546         * MODULES.html.sh: Mention new module.
28547
28548 2007-11-14  Jim Meyering  <meyering@redhat.com>
28549
28550         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28551         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28552         use this macro to create a function _definition_.
28553         Remove useless "#undef ARGMATCH_DIE".
28554
28555 2007-11-14  Bruno Haible  <bruno@clisp.org>
28556
28557         * lib/config.charset: Update for OpenBSD 4.1.
28558         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28559
28560 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28561
28562         Document 64-bit #if problems in stdint.texi.
28563         * doc/headers/stdint.texi (stdint.h): Mention problems with
28564         64-bit-#if, and how to work around them.
28565
28566         Don't insist on 'long long int' support in the preprocessor.  It
28567         breaks too many things.  For example, PRIdMAX still uses a 'long
28568         long int' format with the latest Sun compiler, even though
28569         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28570         preprocessor problem.  This causes the latest coreutils to dump
28571         core on Solaris 10 sparc with the Sun C compiler.
28572         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28573         the troublesome expressions at configure-time, not at #if-time.
28574         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28575         preprocessor.
28576         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28577         compile-time C checks, done at 'configure'-time.
28578         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28579         * modules/inttypes (Makefile): Substitute the new symbols that
28580         gl_INTTYPES_H now generates.
28581         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28582
28583 2007-11-12  Bruno Haible  <bruno@clisp.org>
28584
28585         Tests for Unicode character classification functions.
28586
28587         * modules/unictype/bidicategory-byname-tests: New file.
28588         * modules/unictype/bidicategory-name-tests: New file.
28589         * modules/unictype/bidicategory-of-tests: New file.
28590         * modules/unictype/bidicategory-test-tests: New file.
28591         * modules/unictype/block-list-tests: New file.
28592         * modules/unictype/block-of-tests: New file.
28593         * modules/unictype/block-test-tests: New file.
28594         * modules/unictype/category-C-tests: New file.
28595         * modules/unictype/category-Cc-tests: New file.
28596         * modules/unictype/category-Cf-tests: New file.
28597         * modules/unictype/category-Cn-tests: New file.
28598         * modules/unictype/category-Co-tests: New file.
28599         * modules/unictype/category-Cs-tests: New file.
28600         * modules/unictype/category-L-tests: New file.
28601         * modules/unictype/category-Ll-tests: New file.
28602         * modules/unictype/category-Lm-tests: New file.
28603         * modules/unictype/category-Lo-tests: New file.
28604         * modules/unictype/category-Lt-tests: New file.
28605         * modules/unictype/category-Lu-tests: New file.
28606         * modules/unictype/category-M-tests: New file.
28607         * modules/unictype/category-Mc-tests: New file.
28608         * modules/unictype/category-Me-tests: New file.
28609         * modules/unictype/category-Mn-tests: New file.
28610         * modules/unictype/category-N-tests: New file.
28611         * modules/unictype/category-Nd-tests: New file.
28612         * modules/unictype/category-Nl-tests: New file.
28613         * modules/unictype/category-No-tests: New file.
28614         * modules/unictype/category-P-tests: New file.
28615         * modules/unictype/category-Pc-tests: New file.
28616         * modules/unictype/category-Pd-tests: New file.
28617         * modules/unictype/category-Pe-tests: New file.
28618         * modules/unictype/category-Pf-tests: New file.
28619         * modules/unictype/category-Pi-tests: New file.
28620         * modules/unictype/category-Po-tests: New file.
28621         * modules/unictype/category-Ps-tests: New file.
28622         * modules/unictype/category-S-tests: New file.
28623         * modules/unictype/category-Sc-tests: New file.
28624         * modules/unictype/category-Sk-tests: New file.
28625         * modules/unictype/category-Sm-tests: New file.
28626         * modules/unictype/category-So-tests: New file.
28627         * modules/unictype/category-Z-tests: New file.
28628         * modules/unictype/category-Zl-tests: New file.
28629         * modules/unictype/category-Zp-tests: New file.
28630         * modules/unictype/category-Zs-tests: New file.
28631         * modules/unictype/category-and-not-tests: New file.
28632         * modules/unictype/category-and-tests: New file.
28633         * modules/unictype/category-byname-tests: New file.
28634         * modules/unictype/category-name-tests: New file.
28635         * modules/unictype/category-none-tests: New file.
28636         * modules/unictype/category-of-tests: New file.
28637         * modules/unictype/category-or-tests: New file.
28638         * modules/unictype/category-test-withtable-tests: New file.
28639         * modules/unictype/combining-class-tests: New file.
28640         * modules/unictype/ctype-alnum-tests: New file.
28641         * modules/unictype/ctype-alpha-tests: New file.
28642         * modules/unictype/ctype-blank-tests: New file.
28643         * modules/unictype/ctype-cntrl-tests: New file.
28644         * modules/unictype/ctype-digit-tests: New file.
28645         * modules/unictype/ctype-graph-tests: New file.
28646         * modules/unictype/ctype-lower-tests: New file.
28647         * modules/unictype/ctype-print-tests: New file.
28648         * modules/unictype/ctype-punct-tests: New file.
28649         * modules/unictype/ctype-space-tests: New file.
28650         * modules/unictype/ctype-upper-tests: New file.
28651         * modules/unictype/ctype-xdigit-tests: New file.
28652         * modules/unictype/decimal-digit-tests: New file.
28653         * modules/unictype/digit-tests: New file.
28654         * modules/unictype/mirror-tests: New file.
28655         * modules/unictype/numeric-tests: New file.
28656         * modules/unictype/property-alphabetic-tests: New file.
28657         * modules/unictype/property-ascii-hex-digit-tests: New file.
28658         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28659         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28660         * modules/unictype/property-bidi-block-separator-tests: New file.
28661         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28662         * modules/unictype/property-bidi-common-separator-tests: New file.
28663         * modules/unictype/property-bidi-control-tests: New file.
28664         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28665         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28666         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28667         * modules/unictype/property-bidi-european-digit-tests: New file.
28668         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28669         * modules/unictype/property-bidi-left-to-right-tests: New file.
28670         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28671         * modules/unictype/property-bidi-other-neutral-tests: New file.
28672         * modules/unictype/property-bidi-pdf-tests: New file.
28673         * modules/unictype/property-bidi-segment-separator-tests: New file.
28674         * modules/unictype/property-bidi-whitespace-tests: New file.
28675         * modules/unictype/property-byname-tests: New file.
28676         * modules/unictype/property-combining-tests: New file.
28677         * modules/unictype/property-composite-tests: New file.
28678         * modules/unictype/property-currency-symbol-tests: New file.
28679         * modules/unictype/property-dash-tests: New file.
28680         * modules/unictype/property-decimal-digit-tests: New file.
28681         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28682         * modules/unictype/property-deprecated-tests: New file.
28683         * modules/unictype/property-diacritic-tests: New file.
28684         * modules/unictype/property-extender-tests: New file.
28685         * modules/unictype/property-format-control-tests: New file.
28686         * modules/unictype/property-grapheme-base-tests: New file.
28687         * modules/unictype/property-grapheme-extend-tests: New file.
28688         * modules/unictype/property-grapheme-link-tests: New file.
28689         * modules/unictype/property-hex-digit-tests: New file.
28690         * modules/unictype/property-hyphen-tests: New file.
28691         * modules/unictype/property-id-continue-tests: New file.
28692         * modules/unictype/property-id-start-tests: New file.
28693         * modules/unictype/property-ideographic-tests: New file.
28694         * modules/unictype/property-ids-binary-operator-tests: New file.
28695         * modules/unictype/property-ids-trinary-operator-tests: New file.
28696         * modules/unictype/property-ignorable-control-tests: New file.
28697         * modules/unictype/property-iso-control-tests: New file.
28698         * modules/unictype/property-join-control-tests: New file.
28699         * modules/unictype/property-left-of-pair-tests: New file.
28700         * modules/unictype/property-line-separator-tests: New file.
28701         * modules/unictype/property-logical-order-exception-tests: New file.
28702         * modules/unictype/property-lowercase-tests: New file.
28703         * modules/unictype/property-math-tests: New file.
28704         * modules/unictype/property-non-break-tests: New file.
28705         * modules/unictype/property-not-a-character-tests: New file.
28706         * modules/unictype/property-numeric-tests: New file.
28707         * modules/unictype/property-other-alphabetic-tests: New file.
28708         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28709         * modules/unictype/property-other-grapheme-extend-tests: New file.
28710         * modules/unictype/property-other-id-continue-tests: New file.
28711         * modules/unictype/property-other-id-start-tests: New file.
28712         * modules/unictype/property-other-lowercase-tests: New file.
28713         * modules/unictype/property-other-math-tests: New file.
28714         * modules/unictype/property-other-uppercase-tests: New file.
28715         * modules/unictype/property-paired-punctuation-tests: New file.
28716         * modules/unictype/property-paragraph-separator-tests: New file.
28717         * modules/unictype/property-pattern-syntax-tests: New file.
28718         * modules/unictype/property-pattern-white-space-tests: New file.
28719         * modules/unictype/property-private-use-tests: New file.
28720         * modules/unictype/property-punctuation-tests: New file.
28721         * modules/unictype/property-quotation-mark-tests: New file.
28722         * modules/unictype/property-radical-tests: New file.
28723         * modules/unictype/property-sentence-terminal-tests: New file.
28724         * modules/unictype/property-soft-dotted-tests: New file.
28725         * modules/unictype/property-space-tests: New file.
28726         * modules/unictype/property-terminal-punctuation-tests: New file.
28727         * modules/unictype/property-test-tests: New file.
28728         * modules/unictype/property-titlecase-tests: New file.
28729         * modules/unictype/property-unassigned-code-value-tests: New file.
28730         * modules/unictype/property-unified-ideograph-tests: New file.
28731         * modules/unictype/property-uppercase-tests: New file.
28732         * modules/unictype/property-variation-selector-tests: New file.
28733         * modules/unictype/property-white-space-tests: New file.
28734         * modules/unictype/property-xid-continue-tests: New file.
28735         * modules/unictype/property-xid-start-tests: New file.
28736         * modules/unictype/property-zero-width-tests: New file.
28737         * modules/unictype/scripts-tests: New file.
28738         * modules/unictype/syntax-c-ident-tests: New file.
28739         * modules/unictype/syntax-c-whitespace-tests: New file.
28740         * modules/unictype/syntax-java-ident-tests: New file.
28741         * modules/unictype/syntax-java-whitespace-tests: New file.
28742         * tests/unictype/test-bidi_byname.c: New file.
28743         * tests/unictype/test-bidi_name.c: New file.
28744         * tests/unictype/test-bidi_of.c: New file.
28745         * tests/unictype/test-bidi_test.c: New file.
28746         * tests/unictype/test-block_list.c: New file.
28747         * tests/unictype/test-block_of.c: New file.
28748         * tests/unictype/test-block_test.c: New file.
28749         * tests/unictype/test-categ_and.c: New file.
28750         * tests/unictype/test-categ_and_not.c: New file.
28751         * tests/unictype/test-categ_byname.c: New file.
28752         * tests/unictype/test-categ_name.c: New file.
28753         * tests/unictype/test-categ_none.c: New file.
28754         * tests/unictype/test-categ_of.c: New file.
28755         * tests/unictype/test-categ_or.c: New file.
28756         * tests/unictype/test-categ_test_withtable.c: New file.
28757         * tests/unictype/test-combining.c: New file.
28758         * tests/unictype/test-decdigit.c: New file.
28759         * tests/unictype/test-digit.c: New file.
28760         * tests/unictype/test-mirror.c: New file.
28761         * tests/unictype/test-numeric.c: New file.
28762         * tests/unictype/test-pr_byname.c: New file.
28763         * tests/unictype/test-pr_test.c: New file.
28764         * tests/unictype/test-predicate-part1.h: New file.
28765         * tests/unictype/test-predicate-part2.h: New file.
28766         * tests/unictype/test-scripts.c: New file.
28767         * tests/unictype/test-sy_c_ident.c: New file.
28768         * tests/unictype/test-sy_java_ident.c: New file.
28769
28770         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28771         for Unicode 5.0.0.
28772         * tests/unictype/test-categ_Cc.c: Likewise.
28773         * tests/unictype/test-categ_Cf.c: Likewise.
28774         * tests/unictype/test-categ_Cn.c: Likewise.
28775         * tests/unictype/test-categ_Co.c: Likewise.
28776         * tests/unictype/test-categ_Cs.c: Likewise.
28777         * tests/unictype/test-categ_L.c: Likewise.
28778         * tests/unictype/test-categ_Ll.c: Likewise.
28779         * tests/unictype/test-categ_Lm.c: Likewise.
28780         * tests/unictype/test-categ_Lo.c: Likewise.
28781         * tests/unictype/test-categ_Lt.c: Likewise.
28782         * tests/unictype/test-categ_Lu.c: Likewise.
28783         * tests/unictype/test-categ_M.c: Likewise.
28784         * tests/unictype/test-categ_Mc.c: Likewise.
28785         * tests/unictype/test-categ_Me.c: Likewise.
28786         * tests/unictype/test-categ_Mn.c: Likewise.
28787         * tests/unictype/test-categ_N.c: Likewise.
28788         * tests/unictype/test-categ_Nd.c: Likewise.
28789         * tests/unictype/test-categ_Nl.c: Likewise.
28790         * tests/unictype/test-categ_No.c: Likewise.
28791         * tests/unictype/test-categ_P.c: Likewise.
28792         * tests/unictype/test-categ_Pc.c: Likewise.
28793         * tests/unictype/test-categ_Pd.c: Likewise.
28794         * tests/unictype/test-categ_Pe.c: Likewise.
28795         * tests/unictype/test-categ_Pf.c: Likewise.
28796         * tests/unictype/test-categ_Pi.c: Likewise.
28797         * tests/unictype/test-categ_Po.c: Likewise.
28798         * tests/unictype/test-categ_Ps.c: Likewise.
28799         * tests/unictype/test-categ_S.c: Likewise.
28800         * tests/unictype/test-categ_Sc.c: Likewise.
28801         * tests/unictype/test-categ_Sk.c: Likewise.
28802         * tests/unictype/test-categ_Sm.c: Likewise.
28803         * tests/unictype/test-categ_So.c: Likewise.
28804         * tests/unictype/test-categ_Z.c: Likewise.
28805         * tests/unictype/test-categ_Zl.c: Likewise.
28806         * tests/unictype/test-categ_Zp.c: Likewise.
28807         * tests/unictype/test-categ_Zs.c: Likewise.
28808         * tests/unictype/test-ctype_alnum.c: Likewise.
28809         * tests/unictype/test-ctype_alpha.c: Likewise.
28810         * tests/unictype/test-ctype_blank.c: Likewise.
28811         * tests/unictype/test-ctype_cntrl.c: Likewise.
28812         * tests/unictype/test-ctype_digit.c: Likewise.
28813         * tests/unictype/test-ctype_graph.c: Likewise.
28814         * tests/unictype/test-ctype_lower.c: Likewise.
28815         * tests/unictype/test-ctype_print.c: Likewise.
28816         * tests/unictype/test-ctype_punct.c: Likewise.
28817         * tests/unictype/test-ctype_space.c: Likewise.
28818         * tests/unictype/test-ctype_upper.c: Likewise.
28819         * tests/unictype/test-ctype_xdigit.c: Likewise.
28820         * tests/unictype/test-decdigit.h: Likewise.
28821         * tests/unictype/test-digit.h: Likewise.
28822         * tests/unictype/test-numeric.h: Likewise.
28823         * tests/unictype/test-pr_alphabetic.c: Likewise.
28824         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28825         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28826         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28827         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28828         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28829         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28830         * tests/unictype/test-pr_bidi_control.c: Likewise.
28831         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28832         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28833         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28834         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28835         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28836         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28837         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28838         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28839         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28840         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28841         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28842         * tests/unictype/test-pr_combining.c: Likewise.
28843         * tests/unictype/test-pr_composite.c: Likewise.
28844         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28845         * tests/unictype/test-pr_dash.c: Likewise.
28846         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28847         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28848         * tests/unictype/test-pr_deprecated.c: Likewise.
28849         * tests/unictype/test-pr_diacritic.c: Likewise.
28850         * tests/unictype/test-pr_extender.c: Likewise.
28851         * tests/unictype/test-pr_format_control.c: Likewise.
28852         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28853         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28854         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28855         * tests/unictype/test-pr_hex_digit.c: Likewise.
28856         * tests/unictype/test-pr_hyphen.c: Likewise.
28857         * tests/unictype/test-pr_id_continue.c: Likewise.
28858         * tests/unictype/test-pr_id_start.c: Likewise.
28859         * tests/unictype/test-pr_ideographic.c: Likewise.
28860         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28861         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28862         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28863         * tests/unictype/test-pr_iso_control.c: Likewise.
28864         * tests/unictype/test-pr_join_control.c: Likewise.
28865         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28866         * tests/unictype/test-pr_line_separator.c: Likewise.
28867         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28868         * tests/unictype/test-pr_lowercase.c: Likewise.
28869         * tests/unictype/test-pr_math.c: Likewise.
28870         * tests/unictype/test-pr_non_break.c: Likewise.
28871         * tests/unictype/test-pr_not_a_character.c: Likewise.
28872         * tests/unictype/test-pr_numeric.c: Likewise.
28873         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28874         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28875         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28876         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28877         * tests/unictype/test-pr_other_id_start.c: Likewise.
28878         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28879         * tests/unictype/test-pr_other_math.c: Likewise.
28880         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28881         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28882         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28883         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28884         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28885         * tests/unictype/test-pr_private_use.c: Likewise.
28886         * tests/unictype/test-pr_punctuation.c: Likewise.
28887         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28888         * tests/unictype/test-pr_radical.c: Likewise.
28889         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28890         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28891         * tests/unictype/test-pr_space.c: Likewise.
28892         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28893         * tests/unictype/test-pr_titlecase.c: Likewise.
28894         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28895         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28896         * tests/unictype/test-pr_uppercase.c: Likewise.
28897         * tests/unictype/test-pr_variation_selector.c: Likewise.
28898         * tests/unictype/test-pr_white_space.c: Likewise.
28899         * tests/unictype/test-pr_xid_continue.c: Likewise.
28900         * tests/unictype/test-pr_xid_start.c: Likewise.
28901         * tests/unictype/test-pr_zero_width.c: Likewise.
28902         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28903         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28904
28905 2007-11-12  Bruno Haible  <bruno@clisp.org>
28906
28907         Unicode character classification functions.
28908         * lib/unictype.h: New file.
28909         * modules/unictype/base: New file.
28910         * modules/unictype/category-L: New file.
28911         * modules/unictype/category-Lu: New file.
28912         * modules/unictype/category-Ll: New file.
28913         * modules/unictype/category-Lt: New file.
28914         * modules/unictype/category-Lm: New file.
28915         * modules/unictype/category-Lo: New file.
28916         * modules/unictype/category-M: New file.
28917         * modules/unictype/category-Mn: New file.
28918         * modules/unictype/category-Mc: New file.
28919         * modules/unictype/category-Me: New file.
28920         * modules/unictype/category-N: New file.
28921         * modules/unictype/category-Nd: New file.
28922         * modules/unictype/category-Nl: New file.
28923         * modules/unictype/category-No: New file.
28924         * modules/unictype/category-P: New file.
28925         * modules/unictype/category-Pc: New file.
28926         * modules/unictype/category-Pd: New file.
28927         * modules/unictype/category-Ps: New file.
28928         * modules/unictype/category-Pe: New file.
28929         * modules/unictype/category-Pi: New file.
28930         * modules/unictype/category-Pf: New file.
28931         * modules/unictype/category-Po: New file.
28932         * modules/unictype/category-S: New file.
28933         * modules/unictype/category-Sm: New file.
28934         * modules/unictype/category-Sc: New file.
28935         * modules/unictype/category-Sk: New file.
28936         * modules/unictype/category-So: New file.
28937         * modules/unictype/category-Z: New file.
28938         * modules/unictype/category-Zs: New file.
28939         * modules/unictype/category-Zl: New file.
28940         * modules/unictype/category-Zp: New file.
28941         * modules/unictype/category-C: New file.
28942         * modules/unictype/category-Cc: New file.
28943         * modules/unictype/category-Cf: New file.
28944         * modules/unictype/category-Cs: New file.
28945         * modules/unictype/category-Co: New file.
28946         * modules/unictype/category-Cn: New file.
28947         * modules/unictype/category-or: New file.
28948         * modules/unictype/category-of: New file.
28949         * modules/unictype/category-test: New file.
28950         * modules/unictype/category-test-withtable: New file.
28951         * modules/unictype/category-byname: New file.
28952         * modules/unictype/category-none: New file.
28953         * modules/unictype/category-and: New file.
28954         * modules/unictype/category-and-not: New file.
28955         * modules/unictype/category-name: New file.
28956         * modules/unictype/combining-class: New file.
28957         * modules/unictype/category-all: New file.
28958         * modules/unictype/bidicategory-all: New file.
28959         * modules/unictype/bidicategory-byname: New file.
28960         * modules/unictype/bidicategory-name: New file.
28961         * modules/unictype/bidicategory-of: New file.
28962         * modules/unictype/bidicategory-test: New file.
28963         * modules/unictype/decimal-digit: New file.
28964         * modules/unictype/digit: New file.
28965         * modules/unictype/numeric: New file.
28966         * modules/unictype/mirror: New file.
28967         * modules/unictype/property-white-space: New file.
28968         * modules/unictype/property-alphabetic: New file.
28969         * modules/unictype/property-other-alphabetic: New file.
28970         * modules/unictype/property-not-a-character: New file.
28971         * modules/unictype/property-default-ignorable-code-point: New file.
28972         * modules/unictype/property-other-default-ignorable-code-point: New
28973         file.
28974         * modules/unictype/property-deprecated: New file.
28975         * modules/unictype/property-logical-order-exception: New file.
28976         * modules/unictype/property-variation-selector: New file.
28977         * modules/unictype/property-private-use: New file.
28978         * modules/unictype/property-unassigned-code-value: New file.
28979         * modules/unictype/property-uppercase: New file.
28980         * modules/unictype/property-other-uppercase: New file.
28981         * modules/unictype/property-lowercase: New file.
28982         * modules/unictype/property-other-lowercase: New file.
28983         * modules/unictype/property-titlecase: New file.
28984         * modules/unictype/property-soft-dotted: New file.
28985         * modules/unictype/property-id-start: New file.
28986         * modules/unictype/property-other-id-start: New file.
28987         * modules/unictype/property-id-continue: New file.
28988         * modules/unictype/property-other-id-continue: New file.
28989         * modules/unictype/property-xid-start: New file.
28990         * modules/unictype/property-xid-continue: New file.
28991         * modules/unictype/property-pattern-white-space: New file.
28992         * modules/unictype/property-pattern-syntax: New file.
28993         * modules/unictype/property-join-control: New file.
28994         * modules/unictype/property-grapheme-base: New file.
28995         * modules/unictype/property-grapheme-extend: New file.
28996         * modules/unictype/property-other-grapheme-extend: New file.
28997         * modules/unictype/property-grapheme-link: New file.
28998         * modules/unictype/property-bidi-control: New file.
28999         * modules/unictype/property-bidi-left-to-right: New file.
29000         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29001         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29002         * modules/unictype/property-bidi-european-digit: New file.
29003         * modules/unictype/property-bidi-eur-num-separator: New file.
29004         * modules/unictype/property-bidi-eur-num-terminator: New file.
29005         * modules/unictype/property-bidi-arabic-digit: New file.
29006         * modules/unictype/property-bidi-common-separator: New file.
29007         * modules/unictype/property-bidi-block-separator: New file.
29008         * modules/unictype/property-bidi-segment-separator: New file.
29009         * modules/unictype/property-bidi-whitespace: New file.
29010         * modules/unictype/property-bidi-non-spacing-mark: New file.
29011         * modules/unictype/property-bidi-boundary-neutral: New file.
29012         * modules/unictype/property-bidi-pdf: New file.
29013         * modules/unictype/property-bidi-embedding-or-override: New file.
29014         * modules/unictype/property-bidi-other-neutral: New file.
29015         * modules/unictype/property-hex-digit: New file.
29016         * modules/unictype/property-ascii-hex-digit: New file.
29017         * modules/unictype/property-ideographic: New file.
29018         * modules/unictype/property-unified-ideograph: New file.
29019         * modules/unictype/property-radical: New file.
29020         * modules/unictype/property-ids-binary-operator: New file.
29021         * modules/unictype/property-ids-trinary-operator: New file.
29022         * modules/unictype/property-zero-width: New file.
29023         * modules/unictype/property-space: New file.
29024         * modules/unictype/property-non-break: New file.
29025         * modules/unictype/property-iso-control: New file.
29026         * modules/unictype/property-format-control: New file.
29027         * modules/unictype/property-dash: New file.
29028         * modules/unictype/property-hyphen: New file.
29029         * modules/unictype/property-punctuation: New file.
29030         * modules/unictype/property-line-separator: New file.
29031         * modules/unictype/property-paragraph-separator: New file.
29032         * modules/unictype/property-quotation-mark: New file.
29033         * modules/unictype/property-sentence-terminal: New file.
29034         * modules/unictype/property-terminal-punctuation: New file.
29035         * modules/unictype/property-currency-symbol: New file.
29036         * modules/unictype/property-math: New file.
29037         * modules/unictype/property-other-math: New file.
29038         * modules/unictype/property-paired-punctuation: New file.
29039         * modules/unictype/property-left-of-pair: New file.
29040         * modules/unictype/property-combining: New file.
29041         * modules/unictype/property-composite: New file.
29042         * modules/unictype/property-decimal-digit: New file.
29043         * modules/unictype/property-numeric: New file.
29044         * modules/unictype/property-diacritic: New file.
29045         * modules/unictype/property-extender: New file.
29046         * modules/unictype/property-ignorable-control: New file.
29047         * modules/unictype/property-test: New file.
29048         * modules/unictype/property-byname: New file.
29049         * modules/unictype/property-all: New file.
29050         * modules/unictype/scripts: New file.
29051         * modules/unictype/scripts-all: New file.
29052         * modules/unictype/block-of: New file.
29053         * modules/unictype/block-test: New file.
29054         * modules/unictype/block-list: New file.
29055         * modules/unictype/block-all: New file.
29056         * modules/unictype/syntax-c-whitespace: New file.
29057         * modules/unictype/syntax-java-whitespace: New file.
29058         * modules/unictype/syntax-c-ident: New file.
29059         * modules/unictype/syntax-java-ident: New file.
29060         * modules/unictype/ctype-alnum: New file.
29061         * modules/unictype/ctype-alpha: New file.
29062         * modules/unictype/ctype-cntrl: New file.
29063         * modules/unictype/ctype-digit: New file.
29064         * modules/unictype/ctype-graph: New file.
29065         * modules/unictype/ctype-lower: New file.
29066         * modules/unictype/ctype-print: New file.
29067         * modules/unictype/ctype-punct: New file.
29068         * modules/unictype/ctype-space: New file.
29069         * modules/unictype/ctype-upper: New file.
29070         * modules/unictype/ctype-xdigit: New file.
29071         * modules/unictype/ctype-blank: New file.
29072         * lib/unictype/bidi_byname.c: New file.
29073         * lib/unictype/bidi_name.c: New file.
29074         * lib/unictype/bidi_of.c: New file.
29075         * lib/unictype/bidi_test.c: New file.
29076         * lib/unictype/bitmap.h: New file.
29077         * lib/unictype/block_test.c: New file.
29078         * lib/unictype/blocks.c: New file.
29079         * lib/unictype/categ_C.c: New file.
29080         * lib/unictype/categ_Cc.c: New file.
29081         * lib/unictype/categ_Cf.c: New file.
29082         * lib/unictype/categ_Cn.c: New file.
29083         * lib/unictype/categ_Co.c: New file.
29084         * lib/unictype/categ_Cs.c: New file.
29085         * lib/unictype/categ_L.c: New file.
29086         * lib/unictype/categ_Ll.c: New file.
29087         * lib/unictype/categ_Lm.c: New file.
29088         * lib/unictype/categ_Lo.c: New file.
29089         * lib/unictype/categ_Lt.c: New file.
29090         * lib/unictype/categ_Lu.c: New file.
29091         * lib/unictype/categ_M.c: New file.
29092         * lib/unictype/categ_Mc.c: New file.
29093         * lib/unictype/categ_Me.c: New file.
29094         * lib/unictype/categ_Mn.c: New file.
29095         * lib/unictype/categ_N.c: New file.
29096         * lib/unictype/categ_Nd.c: New file.
29097         * lib/unictype/categ_Nl.c: New file.
29098         * lib/unictype/categ_No.c: New file.
29099         * lib/unictype/categ_P.c: New file.
29100         * lib/unictype/categ_Pc.c: New file.
29101         * lib/unictype/categ_Pd.c: New file.
29102         * lib/unictype/categ_Pe.c: New file.
29103         * lib/unictype/categ_Pf.c: New file.
29104         * lib/unictype/categ_Pi.c: New file.
29105         * lib/unictype/categ_Po.c: New file.
29106         * lib/unictype/categ_Ps.c: New file.
29107         * lib/unictype/categ_S.c: New file.
29108         * lib/unictype/categ_Sc.c: New file.
29109         * lib/unictype/categ_Sk.c: New file.
29110         * lib/unictype/categ_Sm.c: New file.
29111         * lib/unictype/categ_So.c: New file.
29112         * lib/unictype/categ_Z.c: New file.
29113         * lib/unictype/categ_Zl.c: New file.
29114         * lib/unictype/categ_Zp.c: New file.
29115         * lib/unictype/categ_Zs.c: New file.
29116         * lib/unictype/categ_and.c: New file.
29117         * lib/unictype/categ_and_not.c: New file.
29118         * lib/unictype/categ_byname.c: New file.
29119         * lib/unictype/categ_name.c: New file.
29120         * lib/unictype/categ_none.c: New file.
29121         * lib/unictype/categ_of.c: New file.
29122         * lib/unictype/categ_or.c: New file.
29123         * lib/unictype/categ_test.c: New file.
29124         * lib/unictype/combining.c: New file.
29125         * lib/unictype/ctype_alnum.c: New file.
29126         * lib/unictype/ctype_alpha.c: New file.
29127         * lib/unictype/ctype_blank.c: New file.
29128         * lib/unictype/ctype_cntrl.c: New file.
29129         * lib/unictype/ctype_digit.c: New file.
29130         * lib/unictype/ctype_graph.c: New file.
29131         * lib/unictype/ctype_lower.c: New file.
29132         * lib/unictype/ctype_print.c: New file.
29133         * lib/unictype/ctype_punct.c: New file.
29134         * lib/unictype/ctype_space.c: New file.
29135         * lib/unictype/ctype_upper.c: New file.
29136         * lib/unictype/ctype_xdigit.c: New file.
29137         * lib/unictype/decdigit.c: New file.
29138         * lib/unictype/digit.c: New file.
29139         * lib/unictype/identsyntaxmap.h: New file.
29140         * lib/unictype/mirror.c: New file.
29141         * lib/unictype/numeric.c: New file.
29142         * lib/unictype/pr_alphabetic.c: New file.
29143         * lib/unictype/pr_ascii_hex_digit.c: New file.
29144         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29145         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29146         * lib/unictype/pr_bidi_block_separator.c: New file.
29147         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29148         * lib/unictype/pr_bidi_common_separator.c: New file.
29149         * lib/unictype/pr_bidi_control.c: New file.
29150         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29151         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29152         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29153         * lib/unictype/pr_bidi_european_digit.c: New file.
29154         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29155         * lib/unictype/pr_bidi_left_to_right.c: New file.
29156         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29157         * lib/unictype/pr_bidi_other_neutral.c: New file.
29158         * lib/unictype/pr_bidi_pdf.c: New file.
29159         * lib/unictype/pr_bidi_segment_separator.c: New file.
29160         * lib/unictype/pr_bidi_whitespace.c: New file.
29161         * lib/unictype/pr_byname.c: New file.
29162         * lib/unictype/pr_byname.gperf: New file.
29163         * lib/unictype/pr_combining.c: New file.
29164         * lib/unictype/pr_composite.c: New file.
29165         * lib/unictype/pr_currency_symbol.c: New file.
29166         * lib/unictype/pr_dash.c: New file.
29167         * lib/unictype/pr_decimal_digit.c: New file.
29168         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29169         * lib/unictype/pr_deprecated.c: New file.
29170         * lib/unictype/pr_diacritic.c: New file.
29171         * lib/unictype/pr_extender.c: New file.
29172         * lib/unictype/pr_format_control.c: New file.
29173         * lib/unictype/pr_grapheme_base.c: New file.
29174         * lib/unictype/pr_grapheme_extend.c: New file.
29175         * lib/unictype/pr_grapheme_link.c: New file.
29176         * lib/unictype/pr_hex_digit.c: New file.
29177         * lib/unictype/pr_hyphen.c: New file.
29178         * lib/unictype/pr_id_continue.c: New file.
29179         * lib/unictype/pr_id_start.c: New file.
29180         * lib/unictype/pr_ideographic.c: New file.
29181         * lib/unictype/pr_ids_binary_operator.c: New file.
29182         * lib/unictype/pr_ids_trinary_operator.c: New file.
29183         * lib/unictype/pr_ignorable_control.c: New file.
29184         * lib/unictype/pr_iso_control.c: New file.
29185         * lib/unictype/pr_join_control.c: New file.
29186         * lib/unictype/pr_left_of_pair.c: New file.
29187         * lib/unictype/pr_line_separator.c: New file.
29188         * lib/unictype/pr_logical_order_exception.c: New file.
29189         * lib/unictype/pr_lowercase.c: New file.
29190         * lib/unictype/pr_math.c: New file.
29191         * lib/unictype/pr_non_break.c: New file.
29192         * lib/unictype/pr_not_a_character.c: New file.
29193         * lib/unictype/pr_numeric.c: New file.
29194         * lib/unictype/pr_other_alphabetic.c: New file.
29195         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29196         * lib/unictype/pr_other_grapheme_extend.c: New file.
29197         * lib/unictype/pr_other_id_continue.c: New file.
29198         * lib/unictype/pr_other_id_start.c: New file.
29199         * lib/unictype/pr_other_lowercase.c: New file.
29200         * lib/unictype/pr_other_math.c: New file.
29201         * lib/unictype/pr_other_uppercase.c: New file.
29202         * lib/unictype/pr_paired_punctuation.c: New file.
29203         * lib/unictype/pr_paragraph_separator.c: New file.
29204         * lib/unictype/pr_pattern_syntax.c: New file.
29205         * lib/unictype/pr_pattern_white_space.c: New file.
29206         * lib/unictype/pr_private_use.c: New file.
29207         * lib/unictype/pr_punctuation.c: New file.
29208         * lib/unictype/pr_quotation_mark.c: New file.
29209         * lib/unictype/pr_radical.c: New file.
29210         * lib/unictype/pr_sentence_terminal.c: New file.
29211         * lib/unictype/pr_soft_dotted.c: New file.
29212         * lib/unictype/pr_space.c: New file.
29213         * lib/unictype/pr_terminal_punctuation.c: New file.
29214         * lib/unictype/pr_test.c: New file.
29215         * lib/unictype/pr_titlecase.c: New file.
29216         * lib/unictype/pr_unassigned_code_value.c: New file.
29217         * lib/unictype/pr_unified_ideograph.c: New file.
29218         * lib/unictype/pr_uppercase.c: New file.
29219         * lib/unictype/pr_variation_selector.c: New file.
29220         * lib/unictype/pr_white_space.c: New file.
29221         * lib/unictype/pr_xid_continue.c: New file.
29222         * lib/unictype/pr_xid_start.c: New file.
29223         * lib/unictype/pr_zero_width.c: New file.
29224         * lib/unictype/scripts.c: New file.
29225         * lib/unictype/sy_c_ident.c: New file.
29226         * lib/unictype/sy_c_whitespace.c: New file.
29227         * lib/unictype/sy_java_ident.c: New file.
29228         * lib/unictype/sy_java_whitespace.c: New file.
29229
29230         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29231         Unicode 5.0.0.
29232         * lib/unictype/blocks.h: Likewise.
29233         * lib/unictype/categ_C.h: Likewise.
29234         * lib/unictype/categ_Cc.h: Likewise.
29235         * lib/unictype/categ_Cf.h: Likewise.
29236         * lib/unictype/categ_Cn.h: Likewise.
29237         * lib/unictype/categ_Co.h: Likewise.
29238         * lib/unictype/categ_Cs.h: Likewise.
29239         * lib/unictype/categ_L.h: Likewise.
29240         * lib/unictype/categ_Ll.h: Likewise.
29241         * lib/unictype/categ_Lm.h: Likewise.
29242         * lib/unictype/categ_Lo.h: Likewise.
29243         * lib/unictype/categ_Lt.h: Likewise.
29244         * lib/unictype/categ_Lu.h: Likewise.
29245         * lib/unictype/categ_M.h: Likewise.
29246         * lib/unictype/categ_Mc.h: Likewise.
29247         * lib/unictype/categ_Me.h: Likewise.
29248         * lib/unictype/categ_Mn.h: Likewise.
29249         * lib/unictype/categ_N.h: Likewise.
29250         * lib/unictype/categ_Nd.h: Likewise.
29251         * lib/unictype/categ_Nl.h: Likewise.
29252         * lib/unictype/categ_No.h: Likewise.
29253         * lib/unictype/categ_P.h: Likewise.
29254         * lib/unictype/categ_Pc.h: Likewise.
29255         * lib/unictype/categ_Pd.h: Likewise.
29256         * lib/unictype/categ_Pe.h: Likewise.
29257         * lib/unictype/categ_Pf.h: Likewise.
29258         * lib/unictype/categ_Pi.h: Likewise.
29259         * lib/unictype/categ_Po.h: Likewise.
29260         * lib/unictype/categ_Ps.h: Likewise.
29261         * lib/unictype/categ_S.h: Likewise.
29262         * lib/unictype/categ_Sc.h: Likewise.
29263         * lib/unictype/categ_Sk.h: Likewise.
29264         * lib/unictype/categ_Sm.h: Likewise.
29265         * lib/unictype/categ_So.h: Likewise.
29266         * lib/unictype/categ_Z.h: Likewise.
29267         * lib/unictype/categ_Zl.h: Likewise.
29268         * lib/unictype/categ_Zp.h: Likewise.
29269         * lib/unictype/categ_Zs.h: Likewise.
29270         * lib/unictype/categ_of.h: Likewise.
29271         * lib/unictype/combining.h: Likewise.
29272         * lib/unictype/ctype_alnum.h: Likewise.
29273         * lib/unictype/ctype_alpha.h: Likewise.
29274         * lib/unictype/ctype_blank.h: Likewise.
29275         * lib/unictype/ctype_cntrl.h: Likewise.
29276         * lib/unictype/ctype_digit.h: Likewise.
29277         * lib/unictype/ctype_graph.h: Likewise.
29278         * lib/unictype/ctype_lower.h: Likewise.
29279         * lib/unictype/ctype_print.h: Likewise.
29280         * lib/unictype/ctype_punct.h: Likewise.
29281         * lib/unictype/ctype_space.h: Likewise.
29282         * lib/unictype/ctype_upper.h: Likewise.
29283         * lib/unictype/ctype_xdigit.h: Likewise.
29284         * lib/unictype/decdigit.h: Likewise.
29285         * lib/unictype/digit.h: Likewise.
29286         * lib/unictype/mirror.h: Likewise.
29287         * lib/unictype/numeric.h: Likewise.
29288         * lib/unictype/pr_alphabetic.h: Likewise.
29289         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29290         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29291         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29292         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29293         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29294         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29295         * lib/unictype/pr_bidi_control.h: Likewise.
29296         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29297         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29298         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29299         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29300         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29301         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29302         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29303         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29304         * lib/unictype/pr_bidi_pdf.h: Likewise.
29305         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29306         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29307         * lib/unictype/pr_combining.h: Likewise.
29308         * lib/unictype/pr_composite.h: Likewise.
29309         * lib/unictype/pr_currency_symbol.h: Likewise.
29310         * lib/unictype/pr_dash.h: Likewise.
29311         * lib/unictype/pr_decimal_digit.h: Likewise.
29312         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29313         * lib/unictype/pr_deprecated.h: Likewise.
29314         * lib/unictype/pr_diacritic.h: Likewise.
29315         * lib/unictype/pr_extender.h: Likewise.
29316         * lib/unictype/pr_format_control.h: Likewise.
29317         * lib/unictype/pr_grapheme_base.h: Likewise.
29318         * lib/unictype/pr_grapheme_extend.h: Likewise.
29319         * lib/unictype/pr_grapheme_link.h: Likewise.
29320         * lib/unictype/pr_hex_digit.h: Likewise.
29321         * lib/unictype/pr_hyphen.h: Likewise.
29322         * lib/unictype/pr_id_continue.h: Likewise.
29323         * lib/unictype/pr_id_start.h: Likewise.
29324         * lib/unictype/pr_ideographic.h: Likewise.
29325         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29326         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29327         * lib/unictype/pr_ignorable_control.h: Likewise.
29328         * lib/unictype/pr_iso_control.h: Likewise.
29329         * lib/unictype/pr_join_control.h: Likewise.
29330         * lib/unictype/pr_left_of_pair.h: Likewise.
29331         * lib/unictype/pr_line_separator.h: Likewise.
29332         * lib/unictype/pr_logical_order_exception.h: Likewise.
29333         * lib/unictype/pr_lowercase.h: Likewise.
29334         * lib/unictype/pr_math.h: Likewise.
29335         * lib/unictype/pr_non_break.h: Likewise.
29336         * lib/unictype/pr_not_a_character.h: Likewise.
29337         * lib/unictype/pr_numeric.h: Likewise.
29338         * lib/unictype/pr_other_alphabetic.h: Likewise.
29339         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29340         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29341         * lib/unictype/pr_other_id_continue.h: Likewise.
29342         * lib/unictype/pr_other_id_start.h: Likewise.
29343         * lib/unictype/pr_other_lowercase.h: Likewise.
29344         * lib/unictype/pr_other_math.h: Likewise.
29345         * lib/unictype/pr_other_uppercase.h: Likewise.
29346         * lib/unictype/pr_paired_punctuation.h: Likewise.
29347         * lib/unictype/pr_paragraph_separator.h: Likewise.
29348         * lib/unictype/pr_pattern_syntax.h: Likewise.
29349         * lib/unictype/pr_pattern_white_space.h: Likewise.
29350         * lib/unictype/pr_private_use.h: Likewise.
29351         * lib/unictype/pr_punctuation.h: Likewise.
29352         * lib/unictype/pr_quotation_mark.h: Likewise.
29353         * lib/unictype/pr_radical.h: Likewise.
29354         * lib/unictype/pr_sentence_terminal.h: Likewise.
29355         * lib/unictype/pr_soft_dotted.h: Likewise.
29356         * lib/unictype/pr_space.h: Likewise.
29357         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29358         * lib/unictype/pr_titlecase.h: Likewise.
29359         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29360         * lib/unictype/pr_unified_ideograph.h: Likewise.
29361         * lib/unictype/pr_uppercase.h: Likewise.
29362         * lib/unictype/pr_variation_selector.h: Likewise.
29363         * lib/unictype/pr_white_space.h: Likewise.
29364         * lib/unictype/pr_xid_continue.h: Likewise.
29365         * lib/unictype/pr_xid_start.h: Likewise.
29366         * lib/unictype/pr_zero_width.h: Likewise.
29367         * lib/unictype/scripts.h: Likewise.
29368         * lib/unictype/scripts_byname.gperf: Likewise.
29369         * lib/unictype/sy_c_ident.h: Likewise.
29370         * lib/unictype/sy_c_whitespace.h: Likewise.
29371         * lib/unictype/sy_java_ident.h: Likewise.
29372         * lib/unictype/sy_java_whitespace.h: Likewise.
29373
29374         * lib/unictype/Makefile: New file.
29375         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29376         glibc.
29377         * lib/unictype/3level.h: New file, copied from glibc.
29378         * lib/unictype/3levelbit.h: New file.
29379
29380 2007-11-11  Bruno Haible  <bruno@clisp.org>
29381
29382         * modules/gperf: New file.
29383         * modules/iconv_open (Depends-on): Add it.
29384         (Makefile.am): Remove the GPERF definition.
29385
29386 2007-11-11  Bruno Haible  <bruno@clisp.org>
29387
29388         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29389         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29390
29391 2007-11-11  Bruno Haible  <bruno@clisp.org>
29392
29393         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29394         (usage): Remove function.
29395
29396 2007-11-11  Bruno Haible  <bruno@clisp.org>
29397
29398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29399         gl_FUNC_CEILF_LIBS.
29400         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29401         gl_FUNC_CEIL_LIBS.
29402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29403         gl_FUNC_CEILL_LIBS.
29404         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29405         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29406         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29407
29408 2007-11-11  Bruno Haible  <bruno@clisp.org>
29409
29410         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29411         roundf were declared but do not exist on functions.
29412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29413         roundl were declared but do not exist on functions.
29414         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29415         HAVE_FLOORL_AND_CEILL, respectively.
29416         Needed for Sun C on Solaris 10.
29417
29418 2007-11-11  Bruno Haible  <bruno@clisp.org>
29419
29420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29421         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29422         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29423         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29424         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29425         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29426         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29427         HAVE_DECL_ROUNDF.
29428         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29429         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29431         of HAVE_DECL_ROUND*.
29432         * modules/math (Makefile.am): Update.
29433
29434 2007-11-10  Bruno Haible  <bruno@clisp.org>
29435
29436         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29437         ptrdiff_t as m4/intl.m4.
29438
29439 2007-11-10  Jim Meyering  <meyering@redhat.com>
29440
29441         Avoid link failure for the argmatch test.
29442         * tests/test-argmatch.c (usage): Define function to avoid a link
29443         failure: argmatch_die requires a usage function.
29444
29445 2007-11-09  Bruno Haible  <bruno@clisp.org>
29446
29447         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29448         * doc/functions/vsnprintf.texi: Likewise.
29449         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29450         with a size argument < 2.
29451
29452 2007-11-09  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29455         buffer. Fixes an inefficiency introduced on 2007-11-03.
29456
29457 2007-11-09  Bruno Haible  <bruno@clisp.org>
29458
29459         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29460         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29461
29462 2007-11-08  Jim Meyering  <meyering@redhat.com>
29463
29464         Change cache variable name prefix "jm_" to "gl_" everywhere.
29465         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29466         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29467         * m4/uptime.m4: s/gl_/jm_/
29468
29469 2007-11-07  Bruno Haible  <bruno@clisp.org>
29470
29471         Update to GNU gettext 0.17.
29472         * m4/intl.m4: Update to GNU gettext 0.17.
29473         * m4/po.m4: Likewise.
29474         * modules/gettext (Files): Remove m4/ulonglong.m4.
29475         (configure.ac): Require gettext infrastructure from version 0.17.
29476
29477 2007-11-06  Bruno Haible  <bruno@clisp.org>
29478
29479         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29480         symbolic values are not defined in a public header.
29481         * lib/freadable.c (freadable) [QNX]: Likewise.
29482         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29483         * lib/freading.c (freading) [QNX]: Likewise.
29484         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29485         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29486         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29487         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29488         Reported by Alain Magloire.
29489
29490         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29491
29492 2007-11-05  Bruno Haible  <bruno@clisp.org>
29493
29494         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29495         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29496         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29497         Reported by Eric Blake.
29498
29499 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29500             Bruno Haible  <bruno@clisp.org>
29501
29502         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29503         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29504         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29505         (malloc): Undefine also before including <stdlib.h>.
29506         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29507         Needed on OSF/1 4.0.
29508
29509 2007-11-05  Jim Meyering  <meyering@redhat.com>
29510
29511         git-version-gen: sync from coreutils.
29512         * build-aux/git-version-gen: Add comments.
29513         Change the first '-' to '.' in the snapshot version string,
29514         e.g., 6.9-377-08144 -> 6.9.377-08144
29515         Remove first parameter.
29516         Don't declare a version "-dirty" merely because a time
29517         stamp has changed.
29518
29519 2007-11-04  Bruno Haible  <bruno@clisp.org>
29520
29521         * lib/lock.h: Protect all macro definitions containing an 'if'
29522         statement through a "do { ... } while (0)".
29523         * lib/tls.h: Likewise.
29524
29525 2007-11-04  Bruno Haible  <bruno@clisp.org>
29526
29527         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29528
29529 2007-11-04  Bruno Haible  <bruno@clisp.org>
29530
29531         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29532         * modules/fprintf-posix (Depends-on): Add nocrash.
29533         * modules/snprintf-posix (Depends-on): Likewise.
29534         * modules/sprintf-posix (Depends-on): Likewise.
29535         * modules/vasnprintf-posix (Depends-on): Likewise.
29536         * modules/vasprintf-posix (Depends-on): Likewise.
29537         * modules/vfprintf-posix (Depends-on): Likewise.
29538         * modules/vsnprintf-posix (Depends-on): Likewise.
29539         * modules/vsprintf-posix (Depends-on): Likewise.
29540         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29541         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29542         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29543         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29544         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29545         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29546         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29547
29548 2007-11-04  Bruno Haible  <bruno@clisp.org>
29549
29550         * modules/nocrash: New file.
29551         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29552         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29553
29554 2007-11-04  Bruno Haible  <bruno@clisp.org>
29555
29556         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29557         precision handling.
29558         * tests/test-vasprintf-posix.c (test_function): Likewise.
29559         * tests/test-snprintf-posix.h (test_function): Likewise.
29560         * tests/test-sprintf-posix.h (test_function): Likewise.
29561
29562         Fix *printf behaviour for large precisions on mingw and BeOS.
29563         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29564         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29566         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29568         gl_PRINTF_PRECISION and test its result. Invoke
29569         gl_PREREQ_VASNPRINTF_PRECISION.
29570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29577         * doc/functions/fprintf.texi: Update.
29578         * doc/functions/printf.texi: Update.
29579         * doc/functions/snprintf.texi: Update.
29580         * doc/functions/sprintf.texi: Update.
29581         * doc/functions/vfprintf.texi: Update.
29582         * doc/functions/vprintf.texi: Update.
29583         * doc/functions/vsnprintf.texi: Update.
29584         * doc/functions/vsprintf.texi: Update.
29585
29586 2007-11-04  Bruno Haible  <bruno@clisp.org>
29587
29588         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29589
29590 2007-11-04  Bruno Haible  <bruno@clisp.org>
29591
29592         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29593         Reported by Sylvain Beucler <beuc@gnu.org>.
29594
29595 2007-11-03  Bruno Haible  <bruno@clisp.org>
29596
29597         * tests/test-fprintf-posix2.sh: New file.
29598         * tests/test-fprintf-posix2.c: New file.
29599         * modules/fprintf-posix-tests (Files): Add them.
29600         (TESTS): Add test-fprintf-posix2.sh.
29601         (configure.ac): Check for getrlimit and setrlimit.
29602         (check_PROGRAMS): Add test-fprintf-posix2.
29603
29604         * tests/test-printf-posix2.sh: New file.
29605         * tests/test-printf-posix2.c: New file.
29606         * modules/printf-posix-tests (Files): Add them.
29607         (TESTS): Add test-printf-posix2.sh.
29608         (configure.ac): Check for getrlimit and setrlimit.
29609         (check_PROGRAMS): Add test-printf-posix2.
29610
29611         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29612         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29613         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29614         (decode_double): New function, copied from decode_long_double.
29615         (scale10_round_decimal_decoded): New function, extracted from
29616         scale10_round_decimal_long_double.
29617         (scale10_round_decimal_long_double): Use it.
29618         (scale10_round_decimal_double): New function.
29619         (floorlog10): New function.
29620         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29622         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29624         gl_PRINTF_ENOMEM and test its result. Invoke
29625         gl_PREREQ_VASNPRINTF_ENOMEM.
29626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29633         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29634         * modules/snprintf-posix (Depends-on): Likewise.
29635         * modules/sprintf-posix (Depends-on): Likewise.
29636         * modules/vasnprintf-posix (Depends-on): Likewise.
29637         * modules/vasprintf-posix (Depends-on): Likewise.
29638         * modules/vfprintf-posix (Depends-on): Likewise.
29639         * modules/vsnprintf-posix (Depends-on): Likewise.
29640         * modules/vsprintf-posix (Depends-on): Likewise.
29641         * doc/functions/fprintf.texi: Update.
29642         * doc/functions/printf.texi: Update.
29643         * doc/functions/snprintf.texi: Update.
29644         * doc/functions/sprintf.texi: Update.
29645         * doc/functions/vfprintf.texi: Update.
29646         * doc/functions/vprintf.texi: Update.
29647         * doc/functions/vsnprintf.texi: Update.
29648         * doc/functions/vsprintf.texi: Update.
29649
29650 2007-11-03  Bruno Haible  <bruno@clisp.org>
29651
29652         * modules/frexp-nolibm-tests: New file.
29653
29654         * modules/frexp-nolibm: New file.
29655         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29656
29657 2007-11-03  Bruno Haible  <bruno@clisp.org>
29658
29659         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29660         value is C99 compliant.
29661         Needed for OSF/1 5.1.
29662
29663 2007-11-03  Bruno Haible  <bruno@clisp.org>
29664
29665         Fix out-of-memory handling of vasnprintf.
29666         * lib/printf-parse.c: Include <errno.h>.
29667         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29668         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29669         is already set.
29670
29671 2007-11-02  Eric Blake  <ebb9@byu.net>
29672
29673         Fix tests on cygwin.
29674         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29675
29676 2007-11-01  Bruno Haible  <bruno@clisp.org>
29677
29678         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29679         warning.
29680         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29681         needed for POSIX compatibility.
29682
29683 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29684
29685         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29686         for compatibility with GNU.
29687
29688 2007-11-01  Bruno Haible  <bruno@clisp.org>
29689
29690         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29691         (putenv): Renamed from rpl_putenv. Change argument type from
29692         'const char *' to 'char *'.
29693         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29694         of defining putenv in config.h, just set REPLACE_PUTENV.
29695         * modules/putenv (Depends-on): Add stdlib.
29696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29697         (Include): Use <stdlib.h>.
29698         * lib/stdlib.in.h (putenv): New declaration.
29699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29700         REPLACE_PUTENV.
29701         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29702         REPLACE_PUTENV.
29703         Needed for MacOS X 10.5.0.
29704         Reported by Peter O'Gorman <peter@pogma.com>.
29705
29706 2007-11-01  Jim Meyering  <meyering@redhat.com>
29707
29708         Treat an empty date string exactly like "0".
29709         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29710         if the remaining date string (to be parsed) is empty, use "0".
29711         Reported by Mischa Molhoek and discussed in this thread:
29712         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29713
29714 2007-10-31  Bruno Haible  <bruno@clisp.org>
29715
29716         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29717         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29718         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29719         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29720         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29721         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29722
29723 2007-10-31  Bruno Haible  <bruno@clisp.org>
29724
29725         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29726         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29727         (AC_TYPE_LONG_LONG_INT): Use it.
29728         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29729         it as well.
29730         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29731         to m4/longlong.m4.
29732         * modules/stdint (Files): Remove m4/ulonglong.m4.
29733         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29734         m4/ulonglong.m4.
29735         * modules/strtoumax (Files): Likewise.
29736
29737 2007-10-30  Bruno Haible  <bruno@clisp.org>
29738
29739         * modules/xvasprintf-posix: New file.
29740         Suggested by Eric Blake.
29741
29742 2007-10-30  Bruno Haible  <bruno@clisp.org>
29743
29744         * modules/xprintf-posix-tests: New file.
29745         * tests/test-xprintf-posix.sh: New file.
29746         * tests/test-xprintf-posix.c: New file.
29747         * tests/test-xfprintf-posix.c: New file.
29748
29749         * modules/xprintf-posix: New file.
29750
29751 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29752
29753         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29754         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29755         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29756
29757 2007-10-29  Bruno Haible  <bruno@clisp.org>
29758
29759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29760         contain the special marker '_cv_'.
29761         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29762         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29763         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29764         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29765         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29766         Reported by Ralf Wildenhues.
29767
29768 2007-10-29  Bruno Haible  <bruno@clisp.org>
29769
29770         * gnulib-tool (func_import): When --lgpl is not specified, set
29771         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29772         GPLv3.
29773         Reported by Simon Josefsson.
29774
29775 2007-10-28  Bruno Haible  <bruno@clisp.org>
29776
29777         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29778         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29779         HAVE_DECL_ISFINITE.
29780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29781         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29782         HAVE_DECL_ISFINITE.
29783
29784 2007-10-28  Bruno Haible  <bruno@clisp.org>
29785
29786         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29787         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29788
29789 2007-10-28  Bruno Haible  <bruno@clisp.org>
29790
29791         Fix link errors with Sun C 5.0 on Solaris 10.
29792         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29793         function is declared but not present in the compiler's libm.
29794         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29795         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29796         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29797         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29798         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29799         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29800         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29802         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29803         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29804         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29805         HAVE_DECL_FLOORL.
29806
29807 2007-10-28  Bruno Haible  <bruno@clisp.org>
29808
29809         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29810         gl_FUNC_FLOORL. Cache the result.
29811         (gl_FUNC_FLOORL): Use it.
29812         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29813         gl_FUNC_CEILL. Cache the result.
29814         (gl_FUNC_CEILL): Use it.
29815
29816         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29817         gl_FUNC_FLOOR. Cache the result.
29818         (gl_FUNC_FLOOR): Use it.
29819         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29820         gl_FUNC_CEIL. Cache the result.
29821         (gl_FUNC_CEIL): Use it.
29822
29823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29824         gl_FUNC_FLOORF. Cache the result.
29825         (gl_FUNC_FLOORF): Use it.
29826         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29827         gl_FUNC_CEILF. Cache the result.
29828         (gl_FUNC_CEILF): Use it.
29829
29830 2007-10-28  Bruno Haible  <bruno@clisp.org>
29831
29832         * gnulib-tool: Allow specifying the LGPL version number through
29833         --lgpl=2 or --lgpl=3.
29834         (func_usage): Document --lgpl with argument.
29835         Handle --lgpl=... arguments.
29836         (func_import): Recognize also gl_LGPL calls with an argument. When
29837         --lgpl=2 is used and the module's license is just LGPL, report an
29838         error. Set sed_transform_lib_file according to the lgpl variable. In
29839         the generated files, use --lgpl or gl_LGPL invocations with argument,
29840         if necessary.
29841         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29842         an LGPv2+ license.
29843         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29844         gl_LGPL macro.
29845
29846 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29847             Bruno Haible  <bruno@clisp.org>
29848
29849         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29850         (u16_uctomb_aux): Likewise.
29851         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29852         !HAVE_INLINE.
29853         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29854
29855 2007-10-28  Bruno Haible  <bruno@clisp.org>
29856
29857         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29858         Invoke AM_GETTEXT_OPTION if it exists.
29859         * modules/vasprintf: Likewise.
29860         * modules/verror: Likewise.
29861         * modules/xprintf: Likewise.
29862         * modules/xvasprintf: Likewise.
29863
29864 2007-10-27  Ben Pfaff  <blp@gnu.org>
29865
29866         * lib/math.in.h: Define isfinite macro and prototypes for
29867         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29868         implementations.
29869         * m4/math_h.m4: New substitutions for isfinite module.
29870         * lib/isfinite.c: New file.
29871         * m4/isfinite.m4: New file.
29872         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29873         * modules/isfinite: New file.
29874         * modules/isfinite-tests: New file.
29875         * tests/tests-isfinite.c: New file.
29876         * doc/functions/isfinite.texi: Mention isfinite module.
29877         * MODULES.html.sh: Mention new module.
29878
29879 2007-10-27  Ben Pfaff  <blp@gnu.org>
29880
29881         Ralf Wildenhues reported that Tru64 4.0D declares the round
29882         functions but does not have definitions.
29883         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29884         cannot be found in any library, set the output variable to
29885         "missing" instead of "".
29886         * m4/round.m4: Also use our substitute if we cannot find round in
29887         any library, even if it is declared.
29888         * m4/roundf.m4: Likewise for roundf.
29889         * m4/roundl.m4: Likewise for roundl.
29890         * lib/math.in.h: Undefine roundf, round, roundl before defining
29891         their replacements, to allow for hypothetical systems where these
29892         may be defined as macros but not available in libraries.
29893
29894 2007-10-27  Bruno Haible  <bruno@clisp.org>
29895
29896         * doc/gnulib.texi: Invoke @firstparagraphindent.
29897         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29898         changes in gnulib.
29899         (Source changes): New section.
29900
29901 2007-10-26  Bruno Haible  <bruno@clisp.org>
29902
29903         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29904         borrowed from autoconf.
29905
29906 2007-10-26  Bruno Haible  <bruno@clisp.org>
29907
29908         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29909         strerror returned the empty string. Needed on HP-UX 11.00.
29910
29911 2007-10-24  Micah Cowan  <micah@cowan.name>
29912
29913         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29914         * build-aux/bootstrap: Remove support for now-unnecessary option,
29915         --cvs-user, and envvars CVS_USER, CVS_RSH.
29916
29917 2007-10-24  Jim Meyering  <meyering@redhat.com>
29918
29919         Avoid diagnostics from sha1sum when there is no cached checksum.
29920         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29921         if the po.s1 file hasn't been created yet.
29922
29923         * build-aux/bootstrap: Sync from coreutils:
29924         2007-10-24  Jim Meyering  <meyering@redhat.com>
29925         Get gnulib from the git repository, not from an obsolete cvs one.
29926         * build-aux/bootstrap: Suggestion from Micah Cowan.
29927         2007-10-04  Jim Meyering  <jim@meyering.net>
29928         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29929         (update_po_files): Work also when there are no .po files in po/.
29930
29931 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29932
29933         * README: Append ".git" to git and cg examples.
29934         Problem reported by Benoit Sigoure.
29935
29936 2007-10-23  Micah Cowan  <micah@cowan.name>
29937
29938         * users.txt: Add wget.
29939
29940 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29941
29942         Fix linking of some unistdio tests on FreeBSD.
29943         * modules/unistdio/u16-vsnprintf-tests
29944         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29945         * modules/unistdio/u16-vsprintf-tests
29946         (test_u16_vsnprintf1_LDADD): Likewise.
29947         * modules/unistdio/u32-vsnprintf-tests
29948         (test_u32_vsnprintf1_LDADD): Likewise.
29949         * modules/unistdio/u32-vsprintf-tests
29950         (test_u32_vsprintf1_LDADD): Likewise.
29951         * modules/unistdio/u8-vsnprintf-tests
29952         (test_u8_vsnprintf1_LDADD): Likewise.
29953         * modules/unistdio/u8-vsprintf-tests
29954         (test_u8_vsprintf1_LDADD): Likewise.
29955         * modules/unistdio/ulc-vsnprintf-tests
29956         (test_ulc_vsnprintf1_LDADD): Likewise.
29957         * modules/unistdio/ulc-vsprintf-tests
29958         (test_ulc_vsprintf1_LDADD): Likewise.
29959
29960         Fix linking of some uniconv tests on FreeBSD.
29961         * modules/uniconv/u16-conv-from-enc-tests
29962         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29963         * modules/uniconv/u16-conv-to-enc-tests
29964         (test_u16_conv_to_enc_LDADD): Likewise.
29965         * modules/uniconv/u16-strconv-from-enc-tests
29966         (test_u16_strconv_from_enc_LDADD): Likewise.
29967         * modules/uniconv/u16-strconv-to-enc-tests
29968         (test_u16_strconv_to_enc_LDADD): Likewise.
29969         * modules/uniconv/u32-conv-from-enc-tests
29970         (test_u32_conv_from_enc_LDADD): Likewise.
29971         * modules/uniconv/u32-conv-to-enc-tests
29972         (test_u32_conv_to_enc_LDADD): Likewise.
29973         * modules/uniconv/u32-strconv-from-enc-tests
29974         (test_u32_strconv_from_enc_LDADD): Likewise.
29975         * modules/uniconv/u32-strconv-to-enc-tests
29976         (test_u32_strconv_to_enc_LDADD): Likewise.
29977         * modules/uniconv/u8-conv-from-enc-tests
29978         (test_u8_conv_from_enc_LDADD): Likewise.
29979         * modules/uniconv/u8-conv-to-enc-tests
29980         (test_u8_conv_to_enc_LDADD): Likewise.
29981         * modules/uniconv/u8-strconv-from-enc-tests
29982         (test_u8_strconv_from_enc_LDADD): Likewise.
29983         * modules/uniconv/u8-strconv-to-enc-tests
29984         (test_u8_strconv_to_enc_LDADD): Likewise.
29985
29986 2007-10-22  Bruno Haible  <bruno@clisp.org>
29987
29988         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29989         size.
29990
29991 2007-10-22  Eric Blake  <ebb9@byu.net>
29992
29993         Tweak x*printf documentation.
29994         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29995         variable name and comments.
29996         Suggested by Bruno Haible.
29997
29998 2007-10-22  Bruno Haible  <bruno@clisp.org>
29999
30000         * lib/acl.c (copy_acl): Fix file name in comment.
30001
30002 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30003
30004         Fix Tru64 problem with stdbool.h.
30005         * lib/stdbool.in.h (false, true):
30006         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30007         Don't declare as an enum in this situation; it runs afoul of Tru64.
30008         Problem reported by Steven M. Schweda in
30009         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30010
30011 2007-10-22  Eric Blake  <ebb9@byu.net>
30012
30013         Also wrap vf?printf.
30014         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30015         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30016         (xvprintf, xvfprintf): New functions.
30017
30018 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30019
30020         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30021         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30022
30023         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30024         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30025
30026 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30027
30028         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30029         by Bruno Haible.
30030
30031 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30032
30033         * lib/getloadavg.c
30034         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30035         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30036
30037         * tests/test-i-ring.c: Work for C89.
30038
30039 2007-10-22  Bruno Haible  <bruno@clisp.org>
30040
30041         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30042         -1u, in preprocessor expression, so that we don't test for the bug
30043         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30045
30046 2007-10-22  Eric Blake  <ebb9@byu.net>
30047
30048         * tests/test-yesno.sh: Silence stderr during test.
30049
30050 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30051
30052         * modules/crypto/gc-camellia: New file.
30053
30054         * m4/gc-camellia.m4: New file.
30055
30056         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30057
30058         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30059
30060 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30061
30062         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30063         --help to stdout.  Reported by sms@antinode.org (Steven
30064         M. Schweda).
30065
30066 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30067
30068         * users.txt: Fix link to libksba.
30069
30070 2007-10-21  Ben Pfaff  <blp@gnu.org>
30071
30072         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30073         round.c roundf implementation that depends on floorf and ceilf to
30074         be tested unconditionally.
30075
30076 2007-10-21  Ben Pfaff  <blp@gnu.org>
30077
30078         * m4/check-libm-func.m4: Removed.
30079         * m4/check-math-lib.m4: New file.
30080         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30081         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30082         definition and lack of AC_LIBOBJ([roundf]).
30083         * m4/roundl.m4: Ditto, and similarly for roundl.
30084         * modules/round: Reference new m4 file.
30085         * modules/roundf: Ditto.
30086         * modules/roundl: Ditto.
30087         * tests/test-round2.c (main): Use ROUND instead of round.
30088         Bug report from Bruno Haible.
30089
30090 2007-10-21  Bruno Haible  <bruno@clisp.org>
30091
30092         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30093         context.
30094
30095 2007-10-21  Bruno Haible  <bruno@clisp.org>
30096
30097         * tests/test-wcwidth.c (main): Allow negative result for some control
30098         characters.
30099
30100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30101         Needed on OSF/1 5.1.
30102
30103 2007-10-21  Bruno Haible  <bruno@clisp.org>
30104
30105         * tests/test-floorf1.c: Include isnanf.h.
30106         (main): Use isnanf() instead of isnan().
30107         * tests/test-ceilf1.c: Include isnanf.h.
30108         (main): Use isnanf() instead of isnan().
30109         * tests/test-truncf1.c: Include isnanf.h.
30110         (main): Use isnanf() instead of isnan().
30111         * tests/test-roundf1.c: Include isnanf.h.
30112         (main): Use isnanf() instead of isnan().
30113
30114 2007-10-21  Eric Blake  <ebb9@byu.net>
30115
30116         * users.txt: Update URL for m4.
30117
30118 2007-10-21  Bruno Haible  <bruno@clisp.org>
30119
30120         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30121
30122 2007-10-21  Bruno Haible  <bruno@clisp.org>
30123
30124         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30125         Git's management files if the CVS files are not present.
30126
30127 2007-10-20  Bruno Haible  <bruno@clisp.org>
30128
30129         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30130         gcc-3.4.x.
30131
30132 2007-10-20  Ben Pfaff  <blp@gnu.org>
30133
30134         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30135         implementations.
30136         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30137         * lib/round.c: New file.
30138         * lib/roundf.c: New file.
30139         * lib/roundl.c: New file.
30140         * m4/round.m4: New file.
30141         * m4/roundf.m4: New file.
30142         * m4/roundl.m4: New file.
30143         * m4/check-libm-func-m4: New file.
30144         * modules/math: Replace round, roundf, roundl related @VARS@ in
30145         math.in.h.
30146         * modules/round: New file.
30147         * modules/round-tests: New file.
30148         * modules/roundf: New file.
30149         * modules/roundf-tests: New file.
30150         * modules/roundl: New file.
30151         * modules/roundl-tests: New file.
30152         * tests/test-round1.c: New file.
30153         * tests/test-round2.c: New file.
30154         * tests/test-roundf1.c: New file.
30155         * tests/test-roundf2.c: New file.
30156         * tests/test-roundl.c: New file.
30157         * doc/functions/round.texi: Mention round module.
30158         * doc/functions/roundf.texi: Mention roundf module.
30159         * doc/functions/roundl.texi: Mention roundl module.
30160         * MODULES.html.sh: Mention new modules.
30161         Thanks to Bruno Haible for suggestions.
30162
30163 2007-10-20  Jim Meyering  <meyering@redhat.com>
30164
30165         * lib/xprintf.c: Include <config.h> unconditionally.
30166
30167         Change xprintf's license to GPL.
30168         * modules/xprintf (License): s/LGPL/GPL/, since this module
30169         depends on modules (exit and exitfail) which are GPL.
30170         Suggestion from Bruno Haible.
30171
30172         xprintf fixes.
30173         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30174         Use a clearer diagnostic.
30175         Patch from Bruno Haible.
30176
30177 2007-10-20  Bruno Haible  <bruno@clisp.org>
30178
30179         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30180         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30182
30183 2007-10-20  Bruno Haible  <bruno@clisp.org>
30184
30185         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30186         precision in the comparison result > x - 1 or similar.
30187         * tests/test-ceilf2.c (correct_result_p): Likewise.
30188         * tests/test-truncf2.c (correct_result_p): Likewise.
30189         * tests/test-trunc2.c (correct_result_p): Likewise.
30190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30191
30192 2007-10-20  Bruno Haible  <bruno@clisp.org>
30193
30194         * modules/ceil: New file.
30195         * m4/ceil.m4: New file.
30196         * doc/functions/ceil.texi: Mention the 'ceil' module.
30197
30198 2007-10-20  Bruno Haible  <bruno@clisp.org>
30199
30200         * modules/floor: New file.
30201         * m4/floor.m4: New file.
30202         * doc/functions/floor.texi: Mention the 'floor' module.
30203
30204 2007-10-20  Bruno Haible  <bruno@clisp.org>
30205
30206         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30207         of %a.
30208         * modules/floorf-tests (Depends-on): Likewise.
30209         * modules/truncf-tests (Depends-on): Likewise.
30210         * modules/trunc-tests (Depends-on): Likewise.
30211         Reported by Ben Pfaff.
30212
30213 2007-10-19  Jim Meyering  <meyering@redhat.com>
30214
30215         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30216         Don't bother testing specific errno values.  Just test ferror.
30217
30218         New module: xprintf
30219         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30220
30221 2007-10-19  Bruno Haible  <bruno@clisp.org>
30222
30223         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30224         syntax.
30225         * modules/javaexec (Makefile.am): Likewise.
30226         * modules/relocatable-prog (Makefile.am): Likewise.
30227         Suggested by Jim Meyering.
30228
30229 2007-10-18  Bruno Haible  <bruno@clisp.org>
30230
30231         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30232         Reported by Jim Meyering.
30233
30234 2007-10-18  Eric Blake  <ebb9@byu.net>
30235
30236         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30237
30238 2007-10-18  Bruno Haible  <bruno@clisp.org>
30239
30240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30241         the format string into writable memory. Needed in Fortify conditions.
30242
30243 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30244             Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30247         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30248         * modules/trim (Depends-on): Add mbchar.
30249         (configure.ac): Add gl_FUNC_MBRTOWC.
30250         (Makefile.am): Augment lib_SOURCES.
30251
30252 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30253
30254         Modify glob.c to use fstatat and dirfd, to simplify it.
30255         Suggested by Eric Blake.
30256         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30257         Don't include <stdbool.h>; not used.
30258         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30259         (link_exists_p): Simplify implementation, since we can now assume
30260         dirfd and fstatat.
30261         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30262
30263 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30264
30265         * gnulib-tool (func_get_dependencies): Fix sed script to
30266         match only tests.
30267
30268 2007-10-17  Bruno Haible  <bruno@clisp.org>
30269
30270         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30271         allow locale names without encoding suffix.
30272         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30274
30275 2007-10-16  Bruno Haible  <bruno@clisp.org>
30276
30277         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30278         * lib/getgroups.c (getgroups): Likewise.
30279         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30280
30281 2007-10-16  Bruno Haible  <bruno@clisp.org>
30282
30283         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30284         * modules/malloc-posix (License): Likewise.
30285         * modules/realloc-posix (License): Likewise.
30286         * modules/calloc-posix (License): Likewise.
30287         * modules/intprops (License): Change from GPL to LGPL, with
30288         Paul Eggert's approval.
30289
30290 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30291
30292         Merge glibc changes into lib/glob.c.
30293
30294         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30295         2007-10-15 04:59:03 UTC.  Here are the changes:
30296
30297         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30298
30299         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30300
30301         * lib/glob.c: Add some branch prediction throughout.
30302
30303         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30304
30305         [BZ #5103]
30306         * lib/glob.c (glob): Recognize patterns starting \/.
30307
30308         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30309
30310         [BZ #3996]
30311         * lib/glob.c (attribute_hidden): Define if not defined.
30312         (glob): Unescape dirname, filename or username when needed and not
30313         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30314         is NULL.  Handle unescaped [ in pattern without closing ].
30315         Don't pass GLOB_CHECK down to recursive glob for directories.
30316         (__glob_pattern_type): New function.
30317         (__glob_pattern_p): Implement using __glob_pattern_type.
30318         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30319         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30320         Remove unreachable code.
30321
30322         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30323
30324         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30325         explain why there are no leaks.
30326
30327         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30328
30329         [BZ #3253]
30330         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30331         time, rather allocate increasingly bigger arrays of pointers, if
30332         possible with alloca, if too large with malloc.
30333
30334 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30335
30336         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30337         Problem reported by H.Merijn Brand in
30338         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30340         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30341
30342 2007-10-15  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30345         with explicit rpl_ prefix.
30346         * lib/fopen.c (fopen): Likewise.
30347         * lib/freopen.c (freopen): Likewise.
30348         * lib/iconv.c (iconv): Likewise.
30349         * lib/iconv_close.c (iconv_close): Likewise.
30350
30351 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30352
30353         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30354
30355 2007-10-15  Bruno Haible  <bruno@clisp.org>
30356
30357         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30358         <stddef.h> instead of <stdlib.h> since we only need NULL.
30359         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30360
30361 2007-10-15  Bruno Haible  <bruno@clisp.org>
30362
30363         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30364         Replace paragraph talking about LIBOBJS.
30365         Reported by Colin Watson <cjwatson@debian.org>.
30366
30367 2007-10-15  Bruno Haible  <bruno@clisp.org>
30368
30369         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30370         <stdlib.h> before using NULL.
30371
30372 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30373
30374         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30375         Reported by Albert Chin <china@thewrittenword.com>.
30376
30377 2007-10-14  Bruno Haible  <bruno@clisp.org>
30378
30379         * modules/iconv_open-utf-tests: New file.
30380         * tests/test-iconv-utf.c: New file.
30381
30382         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30383         * modules/iconv_open-utf: New file.
30384         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30385         (iconv, iconv_close): New declarations.
30386         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30387         be defined.
30388         (iconv_open): Add special handling of conversion between UTF-8 and
30389         UTF-{16,32}{BE,LE}.
30390         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30391         * lib/iconv_close.c: New file.
30392         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30393         gl_FUNC_ICONV_OPEN.
30394         (gl_FUNC_ICONV_OPEN): Use it.
30395         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30396         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30397         and REPLACE_ICONV_UTF.
30398         * modules/iconv_open (Depends-on): Add c-strcase.
30399         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30400         ICONV_CONST.
30401         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30402
30403 2007-10-13  Albert Chin  <china@thewrittenword.com>
30404             Bruno Haible  <bruno@clisp.org>
30405
30406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30407         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30408
30409 2007-10-13  Bruno Haible  <bruno@clisp.org>
30410
30411         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30412         defined, use the ISO C99 inline semantics.
30413         * lib/argp.h (ARGP_EI): Likewise.
30414
30415 2007-10-13  Bruno Haible  <bruno@clisp.org>
30416
30417         Handle 'inline' change in gcc 4.3.0.
30418         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30419         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30420         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30421         argp_fmtstream_point): Disable 'extern' declaration if the function
30422         definition is going to be provided inline.
30423         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30424         semantics, not the ISO C99 inline semantics.
30425         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30426         'extern' declaration if the function definition is going to be provided
30427         inline.
30428         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30429         the GNU C inline semantics, not the ISO C99 inline semantics. With
30430         GCC 4.2, avoid a warning.
30431
30432 2007-10-13  Bruno Haible  <bruno@clisp.org>
30433
30434         * lib/freading.h (freading): Enable the use of __freading for
30435         glibc >= 2.7.
30436         * lib/freading.c (freading): Likewise.
30437
30438 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30439
30440         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30441         "warning: C99 inline functions are not supported; using GNU89".
30442
30443 2007-10-12  Bruno Haible  <bruno@clisp.org>
30444
30445         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30446         of 2.
30447         * tests/test-ceilf2.c: New file.
30448         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30449
30450         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30451         * modules/ceilf-tests: Update.
30452
30453 2007-10-12  Bruno Haible  <bruno@clisp.org>
30454
30455         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30456         of 2.
30457         * tests/test-floorf2.c: New file.
30458         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30459
30460         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30461         * modules/floorf-tests: Update.
30462
30463 2007-10-12  Bruno Haible  <bruno@clisp.org>
30464
30465         * tests/test-trunc2.c: New file.
30466         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30467
30468         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30469         * modules/trunc-tests: Update.
30470
30471 2007-10-12  Bruno Haible  <bruno@clisp.org>
30472
30473         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30474         of 2.
30475         * tests/test-truncf2.c: New file.
30476         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30477
30478         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30479         * modules/truncf-tests: Update.
30480
30481 2007-10-11  Eric Blake  <ebb9@byu.net>
30482
30483         Don't claim strerror is broken on Interix.
30484         * doc/functions/strerror.texi (strerror): Known broken systems are
30485         now Solaris 8, and not Interix.
30486         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30487         Interix on cross-compile.
30488         Reported by Martin Koeppe in
30489         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30490
30491 2007-10-11  Bruno Haible  <bruno@clisp.org>
30492
30493         * modules/i-ring-tests: New file.
30494         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30495         instead of assert.
30496
30497 2007-10-11  Bruno Haible  <bruno@clisp.org>
30498
30499         * modules/filenamecat-tests: New file.
30500         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30501         * lib/filenamecat.c: Remove test code.
30502
30503 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30504
30505         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30506
30507         * lib/strerror.c: Include <string.h> always, to test interface,
30508         and to remove the need for the dummy.
30509         Include intprops.h to compute width instead of doing it ourselves
30510         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30511         (strerror): Define it to return NULL if there's no system strerror.
30512         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30513         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30514         ancient pre-strerror Unix systems well any more.  Saying "unknown
30515         system error" is enough.
30516         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30517         simpler strerror.c implementation.
30518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30519         Simplify the tests to reflect the simpler strerror implementation.
30520         * modules/strerror (Depends-on): Add intprops.
30521
30522 2007-10-09  Eric Blake  <ebb9@byu.net>
30523
30524         Silence test-fpending.
30525         * modules/fpending-tests (Files): Add wrapper script.
30526         * tests/test-fpending.sh: New file.
30527
30528 2007-10-09  Bruno Haible  <bruno@clisp.org>
30529
30530         * MODULES.html.sh (func_module): Don't create a hyperlink for
30531         function names like 'printf_frexp'.
30532         (Misc): Add crc, memxor.
30533         (Characteristics of floating types): New section.
30534         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30535         isnanf-nolibm, signbit, trunc, truncf, truncl.
30536         (Enhancements for ISO C 99 functions): New subsection Input/output.
30537         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30538         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30539         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30540         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30541         (Enhancements for POSIX:2001 functions): Add chdir-long.
30542         (File system functions): Add areadlink, chdir-safer, read-file.
30543         Remove cycle-check.
30544         (File system as inode set): New section.
30545         (Date and time): Add gethrxtime.
30546         (Multithreading): Add openmp.
30547         (Internationalization functions): Add localename.
30548         (Unicode string functions): Add unistr/u*-mbsnlen.
30549         (Support for maintaining and releasing projects): Add git-version-gen.
30550         (Lone files): Remove directories.
30551
30552 2007-10-08  Ben Pfaff  <blp@gnu.org>
30553
30554         * lib/xmalloca.h: Fix typo in comment.
30555
30556 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30557
30558         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30559         when avoiding problems with integer overflow.  Use a portable test
30560         instead.
30561
30562 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30563
30564         * modules/dummy (License): Change to LGPLv2+.
30565         * modules/float (License): Likewise
30566         * modules/realloc (License): Likewise
30567         * modules/stdlib (License): Likewise
30568
30569 2007-10-07  Bruno Haible  <bruno@clisp.org>
30570
30571         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30572         * floor.c (TWO_MANT_DIG): Likewise.
30573         * ceil.c (TWO_MANT_DIG): Likewise.
30574         Reported by Ben Pfaff.
30575
30576 2007-10-07  Bruno Haible  <bruno@clisp.org>
30577
30578         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30579         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30580         * lib/frexp.c (FUNC): Likewise.
30581         * lib/printf-frexp.h (printf_frexp): Likewise.
30582         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30583         * lib/printf-frexp.c (FUNC): Likewise.
30584         Suggested by Jim Meyering.
30585
30586 2007-10-07  Jim Meyering  <meyering@redhat.com>
30587
30588         Make xnanosleep's integer overflow test more robust.
30589         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30590         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30591
30592 2007-10-07  Bruno Haible  <bruno@clisp.org>
30593
30594         * NEWS: Mention the license change.
30595
30596         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30597         abbreviations in the modules files.
30598
30599         Change copyright notice from GPLv2+ to GPLv3+.
30600         * README: Change copyright notice.
30601         * MODULES.html.sh: Likewise.
30602         * build-aux/bootstrap.conf: Likewise.
30603         * build-aux/config.libpath: Likewise.
30604         * build-aux/csharpcomp.sh.in: Likewise.
30605         * build-aux/csharpexec.sh.in: Likewise.
30606         * build-aux/install-reloc: Likewise.
30607         * build-aux/javacomp.sh.in: Likewise.
30608         * build-aux/javaexec.sh.in: Likewise.
30609         * build-aux/ldd.sh.in: Likewise.
30610         * build-aux/reloc-ldflags: Likewise.
30611         * build-aux/relocatable.sh.in: Likewise.
30612         * build-aux/x-to-1.in: Likewise.
30613         * check-module: Likewise.
30614         * config/srclistvars.sh: Likewise.
30615         * gnulib-tool: Likewise.
30616         * lib/acl-internal.h: Likewise.
30617         * lib/acl.c: Likewise.
30618         * lib/acl.h: Likewise.
30619         * lib/acl_entries.c: Likewise.
30620         * lib/areadlink-with-size.c: Likewise.
30621         * lib/areadlink.c: Likewise.
30622         * lib/areadlink.h: Likewise.
30623         * lib/argmatch.c: Likewise.
30624         * lib/argmatch.h: Likewise.
30625         * lib/argp-ba.c: Likewise.
30626         * lib/argp-eexst.c: Likewise.
30627         * lib/argp-fmtstream.c: Likewise.
30628         * lib/argp-fmtstream.h: Likewise.
30629         * lib/argp-fs-xinl.c: Likewise.
30630         * lib/argp-help.c: Likewise.
30631         * lib/argp-namefrob.h: Likewise.
30632         * lib/argp-parse.c: Likewise.
30633         * lib/argp-pin.c: Likewise.
30634         * lib/argp-pv.c: Likewise.
30635         * lib/argp-pvh.c: Likewise.
30636         * lib/argp-xinl.c: Likewise.
30637         * lib/argp.h: Likewise.
30638         * lib/at-func.c: Likewise.
30639         * lib/atanl.c: Likewise.
30640         * lib/backupfile.c: Likewise.
30641         * lib/backupfile.h: Likewise.
30642         * lib/basename.c: Likewise.
30643         * lib/binary-io.h: Likewise.
30644         * lib/byteswap.in.h: Likewise.
30645         * lib/c-stack.c: Likewise.
30646         * lib/c-stack.h: Likewise.
30647         * lib/c-strcasestr.c: Likewise.
30648         * lib/c-strcasestr.h: Likewise.
30649         * lib/c-strstr.c: Likewise.
30650         * lib/c-strstr.h: Likewise.
30651         * lib/c-strtod.c: Likewise.
30652         * lib/calloc.c: Likewise.
30653         * lib/canon-host.c: Likewise.
30654         * lib/canon-host.h: Likewise.
30655         * lib/canonicalize-lgpl.c: Likewise.
30656         * lib/canonicalize.c: Likewise.
30657         * lib/canonicalize.h: Likewise.
30658         * lib/ceil.c: Likewise.
30659         * lib/ceilf.c: Likewise.
30660         * lib/ceill.c: Likewise.
30661         * lib/chdir-long.c: Likewise.
30662         * lib/chdir-long.h: Likewise.
30663         * lib/chdir-safer.c: Likewise.
30664         * lib/chdir-safer.h: Likewise.
30665         * lib/chown.c: Likewise.
30666         * lib/classpath.c: Likewise.
30667         * lib/classpath.h: Likewise.
30668         * lib/clean-temp.c: Likewise.
30669         * lib/clean-temp.h: Likewise.
30670         * lib/cloexec.c: Likewise.
30671         * lib/close-stream.c: Likewise.
30672         * lib/closein.c: Likewise.
30673         * lib/closein.h: Likewise.
30674         * lib/closeout.c: Likewise.
30675         * lib/closeout.h: Likewise.
30676         * lib/concat-filename.c: Likewise.
30677         * lib/copy-file.c: Likewise.
30678         * lib/copy-file.h: Likewise.
30679         * lib/count-one-bits.h: Likewise.
30680         * lib/crc.c: Likewise.
30681         * lib/crc.h: Likewise.
30682         * lib/creat-safer.c: Likewise.
30683         * lib/csharpcomp.c: Likewise.
30684         * lib/csharpcomp.h: Likewise.
30685         * lib/csharpexec.c: Likewise.
30686         * lib/csharpexec.h: Likewise.
30687         * lib/cycle-check.c: Likewise.
30688         * lib/cycle-check.h: Likewise.
30689         * lib/diacrit.c: Likewise.
30690         * lib/diacrit.h: Likewise.
30691         * lib/diffseq.h: Likewise.
30692         * lib/dirchownmod.c: Likewise.
30693         * lib/dirent.in.h: Likewise.
30694         * lib/dirfd.c: Likewise.
30695         * lib/dirfd.h: Likewise.
30696         * lib/dirname.c: Likewise.
30697         * lib/dirname.h: Likewise.
30698         * lib/dummy.c: Likewise.
30699         * lib/dup-safer.c: Likewise.
30700         * lib/dup2.c: Likewise.
30701         * lib/eealloc.h: Likewise.
30702         * lib/error.c: Likewise.
30703         * lib/error.h: Likewise.
30704         * lib/euidaccess.c: Likewise.
30705         * lib/exclude.c: Likewise.
30706         * lib/exclude.h: Likewise.
30707         * lib/execute.c: Likewise.
30708         * lib/execute.h: Likewise.
30709         * lib/exitfail.c: Likewise.
30710         * lib/exitfail.h: Likewise.
30711         * lib/expl.c: Likewise.
30712         * lib/fatal-signal.c: Likewise.
30713         * lib/fatal-signal.h: Likewise.
30714         * lib/fbufmode.c: Likewise.
30715         * lib/fbufmode.h: Likewise.
30716         * lib/fchdir.c: Likewise.
30717         * lib/fchmodat.c: Likewise.
30718         * lib/fchownat.c: Likewise.
30719         * lib/fcntl--.h: Likewise.
30720         * lib/fcntl-safer.h: Likewise.
30721         * lib/fcntl.in.h: Likewise.
30722         * lib/fd-safer.c: Likewise.
30723         * lib/fflush.c: Likewise.
30724         * lib/file-has-acl.c: Likewise.
30725         * lib/file-set.c: Likewise.
30726         * lib/file-type.c: Likewise.
30727         * lib/file-type.h: Likewise.
30728         * lib/fileblocks.c: Likewise.
30729         * lib/filemode.c: Likewise.
30730         * lib/filemode.h: Likewise.
30731         * lib/filename.h: Likewise.
30732         * lib/filenamecat.c: Likewise.
30733         * lib/filenamecat.h: Likewise.
30734         * lib/findprog.c: Likewise.
30735         * lib/findprog.h: Likewise.
30736         * lib/float.in.h: Likewise.
30737         * lib/floor.c: Likewise.
30738         * lib/floorf.c: Likewise.
30739         * lib/floorl.c: Likewise.
30740         * lib/fopen-safer.c: Likewise.
30741         * lib/fopen.c: Likewise.
30742         * lib/fpending.c: Likewise.
30743         * lib/fpending.h: Likewise.
30744         * lib/fprintf.c: Likewise.
30745         * lib/fprintftime.h: Likewise.
30746         * lib/fpucw.h: Likewise.
30747         * lib/fpurge.c: Likewise.
30748         * lib/fpurge.h: Likewise.
30749         * lib/freadable.c: Likewise.
30750         * lib/freadable.h: Likewise.
30751         * lib/freadahead.c: Likewise.
30752         * lib/freadahead.h: Likewise.
30753         * lib/freading.c: Likewise.
30754         * lib/freading.h: Likewise.
30755         * lib/free.c: Likewise.
30756         * lib/freopen.c: Likewise.
30757         * lib/frexp.c: Likewise.
30758         * lib/frexpl.c: Likewise.
30759         * lib/fseek.c: Likewise.
30760         * lib/fseterr.c: Likewise.
30761         * lib/fseterr.h: Likewise.
30762         * lib/fstatat.c: Likewise.
30763         * lib/fstrcmp.c: Likewise.
30764         * lib/fstrcmp.h: Likewise.
30765         * lib/fsusage.c: Likewise.
30766         * lib/fsusage.h: Likewise.
30767         * lib/ftell.c: Likewise.
30768         * lib/ftello.c: Likewise.
30769         * lib/fts-cycle.c: Likewise.
30770         * lib/fts.c: Likewise.
30771         * lib/fts_.h: Likewise.
30772         * lib/full-read.c: Likewise.
30773         * lib/full-read.h: Likewise.
30774         * lib/full-write.c: Likewise.
30775         * lib/full-write.h: Likewise.
30776         * lib/fwritable.c: Likewise.
30777         * lib/fwritable.h: Likewise.
30778         * lib/fwriteerror.c: Likewise.
30779         * lib/fwriteerror.h: Likewise.
30780         * lib/fwriting.c: Likewise.
30781         * lib/fwriting.h: Likewise.
30782         * lib/gcd.c: Likewise.
30783         * lib/gcd.h: Likewise.
30784         * lib/getcwd.c: Likewise.
30785         * lib/getdate.h: Likewise.
30786         * lib/getdate.y: Likewise.
30787         * lib/getdomainname.c: Likewise.
30788         * lib/getdomainname.h: Likewise.
30789         * lib/getgroups.c: Likewise.
30790         * lib/gethostname.c: Likewise.
30791         * lib/gethrxtime.c: Likewise.
30792         * lib/gethrxtime.h: Likewise.
30793         * lib/getloadavg.c: Likewise.
30794         * lib/getndelim2.c: Likewise.
30795         * lib/getndelim2.h: Likewise.
30796         * lib/getnline.c: Likewise.
30797         * lib/getnline.h: Likewise.
30798         * lib/getopt.c: Likewise.
30799         * lib/getopt.in.h: Likewise.
30800         * lib/getopt1.c: Likewise.
30801         * lib/getopt_int.h: Likewise.
30802         * lib/getpagesize.h: Likewise.
30803         * lib/getsubopt.c: Likewise.
30804         * lib/gettime.c: Likewise.
30805         * lib/getugroups.c: Likewise.
30806         * lib/getugroups.h: Likewise.
30807         * lib/getusershell.c: Likewise.
30808         * lib/gl_anyavltree_list1.h: Likewise.
30809         * lib/gl_anyavltree_list2.h: Likewise.
30810         * lib/gl_anyhash_list1.h: Likewise.
30811         * lib/gl_anyhash_list2.h: Likewise.
30812         * lib/gl_anylinked_list1.h: Likewise.
30813         * lib/gl_anylinked_list2.h: Likewise.
30814         * lib/gl_anyrbtree_list1.h: Likewise.
30815         * lib/gl_anyrbtree_list2.h: Likewise.
30816         * lib/gl_anytree_list1.h: Likewise.
30817         * lib/gl_anytree_list2.h: Likewise.
30818         * lib/gl_anytree_oset.h: Likewise.
30819         * lib/gl_anytreehash_list1.h: Likewise.
30820         * lib/gl_anytreehash_list2.h: Likewise.
30821         * lib/gl_array_list.c: Likewise.
30822         * lib/gl_array_list.h: Likewise.
30823         * lib/gl_array_oset.c: Likewise.
30824         * lib/gl_array_oset.h: Likewise.
30825         * lib/gl_avltree_list.c: Likewise.
30826         * lib/gl_avltree_list.h: Likewise.
30827         * lib/gl_avltree_oset.c: Likewise.
30828         * lib/gl_avltree_oset.h: Likewise.
30829         * lib/gl_avltreehash_list.c: Likewise.
30830         * lib/gl_avltreehash_list.h: Likewise.
30831         * lib/gl_carray_list.c: Likewise.
30832         * lib/gl_carray_list.h: Likewise.
30833         * lib/gl_linked_list.c: Likewise.
30834         * lib/gl_linked_list.h: Likewise.
30835         * lib/gl_linkedhash_list.c: Likewise.
30836         * lib/gl_linkedhash_list.h: Likewise.
30837         * lib/gl_list.c: Likewise.
30838         * lib/gl_list.h: Likewise.
30839         * lib/gl_oset.c: Likewise.
30840         * lib/gl_oset.h: Likewise.
30841         * lib/gl_rbtree_list.c: Likewise.
30842         * lib/gl_rbtree_list.h: Likewise.
30843         * lib/gl_rbtree_oset.c: Likewise.
30844         * lib/gl_rbtree_oset.h: Likewise.
30845         * lib/gl_rbtreehash_list.c: Likewise.
30846         * lib/gl_rbtreehash_list.h: Likewise.
30847         * lib/gl_sublist.c: Likewise.
30848         * lib/gl_sublist.h: Likewise.
30849         * lib/group-member.c: Likewise.
30850         * lib/group-member.h: Likewise.
30851         * lib/hard-locale.c: Likewise.
30852         * lib/hard-locale.h: Likewise.
30853         * lib/hash-pjw.c: Likewise.
30854         * lib/hash-pjw.h: Likewise.
30855         * lib/hash-triple.c: Likewise.
30856         * lib/hash.c: Likewise.
30857         * lib/hash.h: Likewise.
30858         * lib/human.c: Likewise.
30859         * lib/human.h: Likewise.
30860         * lib/i-ring.c: Likewise.
30861         * lib/i-ring.h: Likewise.
30862         * lib/idcache.c: Likewise.
30863         * lib/imaxabs.c: Likewise.
30864         * lib/imaxdiv.c: Likewise.
30865         * lib/inet_pton.c: Likewise.
30866         * lib/inet_pton.h: Likewise.
30867         * lib/intprops.h: Likewise.
30868         * lib/inttostr.c: Likewise.
30869         * lib/inttostr.h: Likewise.
30870         * lib/inttypes.in.h: Likewise.
30871         * lib/isapipe.c: Likewise.
30872         * lib/isdir.c: Likewise.
30873         * lib/isnan.c: Likewise.
30874         * lib/isnan.h: Likewise.
30875         * lib/isnanf.c: Likewise.
30876         * lib/isnanf.h: Likewise.
30877         * lib/isnanl-nolibm.h: Likewise.
30878         * lib/isnanl.c: Likewise.
30879         * lib/isnanl.h: Likewise.
30880         * lib/javacomp.c: Likewise.
30881         * lib/javacomp.h: Likewise.
30882         * lib/javaexec.c: Likewise.
30883         * lib/javaexec.h: Likewise.
30884         * lib/javaversion.c: Likewise.
30885         * lib/javaversion.h: Likewise.
30886         * lib/javaversion.java: Likewise.
30887         * lib/lbrkprop.h: Likewise.
30888         * lib/lchmod.h: Likewise.
30889         * lib/lchown.c: Likewise.
30890         * lib/ldexpl.c: Likewise.
30891         * lib/linebreak.c: Likewise.
30892         * lib/linebreak.h: Likewise.
30893         * lib/linebuffer.c: Likewise.
30894         * lib/linebuffer.h: Likewise.
30895         * lib/locale.in.h: Likewise.
30896         * lib/logl.c: Likewise.
30897         * lib/long-options.c: Likewise.
30898         * lib/long-options.h: Likewise.
30899         * lib/lstat.c: Likewise.
30900         * lib/lstat.h: Likewise.
30901         * lib/math.in.h: Likewise.
30902         * lib/mbchar.c: Likewise.
30903         * lib/mbchar.h: Likewise.
30904         * lib/mbfile.h: Likewise.
30905         * lib/mbiter.h: Likewise.
30906         * lib/mbscasecmp.c: Likewise.
30907         * lib/mbscasestr.c: Likewise.
30908         * lib/mbschr.c: Likewise.
30909         * lib/mbscspn.c: Likewise.
30910         * lib/mbslen.c: Likewise.
30911         * lib/mbsncasecmp.c: Likewise.
30912         * lib/mbsnlen.c: Likewise.
30913         * lib/mbspbrk.c: Likewise.
30914         * lib/mbspcasecmp.c: Likewise.
30915         * lib/mbsrchr.c: Likewise.
30916         * lib/mbssep.c: Likewise.
30917         * lib/mbsspn.c: Likewise.
30918         * lib/mbsstr.c: Likewise.
30919         * lib/mbstok_r.c: Likewise.
30920         * lib/mbswidth.c: Likewise.
30921         * lib/mbswidth.h: Likewise.
30922         * lib/mbuiter.h: Likewise.
30923         * lib/memcasecmp.c: Likewise.
30924         * lib/memcasecmp.h: Likewise.
30925         * lib/memchr.c: Likewise.
30926         * lib/memcmp.c: Likewise.
30927         * lib/memcoll.c: Likewise.
30928         * lib/memcoll.h: Likewise.
30929         * lib/memcpy.c: Likewise.
30930         * lib/memrchr.c: Likewise.
30931         * lib/mkancesdirs.c: Likewise.
30932         * lib/mkdir-p.c: Likewise.
30933         * lib/mkdir-p.h: Likewise.
30934         * lib/mkdir.c: Likewise.
30935         * lib/mkdirat.c: Likewise.
30936         * lib/mkdtemp.c: Likewise.
30937         * lib/mkstemp-safer.c: Likewise.
30938         * lib/mkstemp.c: Likewise.
30939         * lib/modechange.c: Likewise.
30940         * lib/modechange.h: Likewise.
30941         * lib/mountlist.c: Likewise.
30942         * lib/mountlist.h: Likewise.
30943         * lib/mpsort.c: Likewise.
30944         * lib/nanosleep.c: Likewise.
30945         * lib/obstack.c: Likewise.
30946         * lib/obstack.h: Likewise.
30947         * lib/open-safer.c: Likewise.
30948         * lib/open.c: Likewise.
30949         * lib/openat-die.c: Likewise.
30950         * lib/openat-priv.h: Likewise.
30951         * lib/openat-proc.c: Likewise.
30952         * lib/openat.c: Likewise.
30953         * lib/openat.h: Likewise.
30954         * lib/pagealign_alloc.c: Likewise.
30955         * lib/pagealign_alloc.h: Likewise.
30956         * lib/physmem.c: Likewise.
30957         * lib/physmem.h: Likewise.
30958         * lib/pipe-safer.c: Likewise.
30959         * lib/pipe.c: Likewise.
30960         * lib/pipe.h: Likewise.
30961         * lib/posixtm.c: Likewise.
30962         * lib/posixtm.h: Likewise.
30963         * lib/posixver.c: Likewise.
30964         * lib/printf-frexp.c: Likewise.
30965         * lib/printf-frexp.h: Likewise.
30966         * lib/printf-frexpl.c: Likewise.
30967         * lib/printf-frexpl.h: Likewise.
30968         * lib/printf.c: Likewise.
30969         * lib/progname.c: Likewise.
30970         * lib/progname.h: Likewise.
30971         * lib/progreloc.c: Likewise.
30972         * lib/putenv.c: Likewise.
30973         * lib/quote.c: Likewise.
30974         * lib/quote.h: Likewise.
30975         * lib/quotearg.c: Likewise.
30976         * lib/quotearg.h: Likewise.
30977         * lib/raise.c: Likewise.
30978         * lib/readline.c: Likewise.
30979         * lib/readline.h: Likewise.
30980         * lib/readlink.c: Likewise.
30981         * lib/readtokens.c: Likewise.
30982         * lib/readtokens.h: Likewise.
30983         * lib/readtokens0.c: Likewise.
30984         * lib/readtokens0.h: Likewise.
30985         * lib/readutmp.c: Likewise.
30986         * lib/readutmp.h: Likewise.
30987         * lib/realloc.c: Likewise.
30988         * lib/relocwrapper.c: Likewise.
30989         * lib/rename-dest-slash.c: Likewise.
30990         * lib/rename.c: Likewise.
30991         * lib/rmdir.c: Likewise.
30992         * lib/rpmatch.c: Likewise.
30993         * lib/safe-read.c: Likewise.
30994         * lib/safe-read.h: Likewise.
30995         * lib/safe-write.c: Likewise.
30996         * lib/safe-write.h: Likewise.
30997         * lib/same-inode.h: Likewise.
30998         * lib/same.c: Likewise.
30999         * lib/same.h: Likewise.
31000         * lib/save-cwd.c: Likewise.
31001         * lib/save-cwd.h: Likewise.
31002         * lib/savedir.c: Likewise.
31003         * lib/savedir.h: Likewise.
31004         * lib/savewd.c: Likewise.
31005         * lib/savewd.h: Likewise.
31006         * lib/search.in.h: Likewise.
31007         * lib/setenv.c: Likewise.
31008         * lib/setenv.h: Likewise.
31009         * lib/settime.c: Likewise.
31010         * lib/sh-quote.c: Likewise.
31011         * lib/sh-quote.h: Likewise.
31012         * lib/sig2str.c: Likewise.
31013         * lib/sig2str.h: Likewise.
31014         * lib/signal.in.h: Likewise.
31015         * lib/signbitd.c: Likewise.
31016         * lib/signbitf.c: Likewise.
31017         * lib/signbitl.c: Likewise.
31018         * lib/sigprocmask.c: Likewise.
31019         * lib/sincosl.c: Likewise.
31020         * lib/sleep.c: Likewise.
31021         * lib/sprintf.c: Likewise.
31022         * lib/sqrtl.c: Likewise.
31023         * lib/stat-time.h: Likewise.
31024         * lib/stdio--.h: Likewise.
31025         * lib/stdio-safer.h: Likewise.
31026         * lib/stdlib--.h: Likewise.
31027         * lib/stdlib-safer.h: Likewise.
31028         * lib/stdlib.in.h: Likewise.
31029         * lib/stpcpy.c: Likewise.
31030         * lib/stpncpy.c: Likewise.
31031         * lib/strchrnul.c: Likewise.
31032         * lib/strcspn.c: Likewise.
31033         * lib/strerror.c: Likewise.
31034         * lib/strftime.c: Likewise.
31035         * lib/strftime.h: Likewise.
31036         * lib/striconveh.c: Likewise.
31037         * lib/striconveh.h: Likewise.
31038         * lib/striconveha.c: Likewise.
31039         * lib/striconveha.h: Likewise.
31040         * lib/stripslash.c: Likewise.
31041         * lib/strnlen1.c: Likewise.
31042         * lib/strnlen1.h: Likewise.
31043         * lib/strtod.c: Likewise.
31044         * lib/strtoimax.c: Likewise.
31045         * lib/strtok_r.c: Likewise.
31046         * lib/strtol.c: Likewise.
31047         * lib/strtoll.c: Likewise.
31048         * lib/strtoul.c: Likewise.
31049         * lib/strtoull.c: Likewise.
31050         * lib/sysexits.in.h: Likewise.
31051         * lib/tempname.c: Likewise.
31052         * lib/tempname.h: Likewise.
31053         * lib/timespec.h: Likewise.
31054         * lib/tls.c: Likewise.
31055         * lib/tls.h: Likewise.
31056         * lib/tmpdir.c: Likewise.
31057         * lib/tmpdir.h: Likewise.
31058         * lib/tmpfile-safer.c: Likewise.
31059         * lib/tmpfile.c: Likewise.
31060         * lib/trigl.c: Likewise.
31061         * lib/trigl.h: Likewise.
31062         * lib/trim.c: Likewise.
31063         * lib/trim.h: Likewise.
31064         * lib/trunc.c: Likewise.
31065         * lib/truncf.c: Likewise.
31066         * lib/truncl.c: Likewise.
31067         * lib/tsearch.c: Likewise.
31068         * lib/unicodeio.c: Likewise.
31069         * lib/unicodeio.h: Likewise.
31070         * lib/unistd--.h: Likewise.
31071         * lib/unistd-safer.h: Likewise.
31072         * lib/unistdio/ulc-fprintf.c: Likewise.
31073         * lib/unistdio/ulc-vfprintf.c: Likewise.
31074         * lib/unlinkdir.c: Likewise.
31075         * lib/unlinkdir.h: Likewise.
31076         * lib/unlocked-io.h: Likewise.
31077         * lib/unsetenv.c: Likewise.
31078         * lib/userspec.c: Likewise.
31079         * lib/utime.c: Likewise.
31080         * lib/utimecmp.c: Likewise.
31081         * lib/utimecmp.h: Likewise.
31082         * lib/utimens.c: Likewise.
31083         * lib/verify.h: Likewise.
31084         * lib/verror.c: Likewise.
31085         * lib/verror.h: Likewise.
31086         * lib/version-etc-fsf.c: Likewise.
31087         * lib/version-etc.c: Likewise.
31088         * lib/version-etc.h: Likewise.
31089         * lib/vfprintf.c: Likewise.
31090         * lib/vprintf.c: Likewise.
31091         * lib/vsprintf.c: Likewise.
31092         * lib/w32spawn.h: Likewise.
31093         * lib/wait-process.c: Likewise.
31094         * lib/wait-process.h: Likewise.
31095         * lib/wcwidth.c: Likewise.
31096         * lib/write-any-file.c: Likewise.
31097         * lib/xalloc-die.c: Likewise.
31098         * lib/xalloc.h: Likewise.
31099         * lib/xasprintf.c: Likewise.
31100         * lib/xgetcwd.c: Likewise.
31101         * lib/xgetcwd.h: Likewise.
31102         * lib/xgetdomainname.c: Likewise.
31103         * lib/xgetdomainname.h: Likewise.
31104         * lib/xgethostname.c: Likewise.
31105         * lib/xmalloc.c: Likewise.
31106         * lib/xmalloca.c: Likewise.
31107         * lib/xmalloca.h: Likewise.
31108         * lib/xmemcoll.c: Likewise.
31109         * lib/xnanosleep.c: Likewise.
31110         * lib/xreadlink.c: Likewise.
31111         * lib/xreadlink.h: Likewise.
31112         * lib/xsetenv.c: Likewise.
31113         * lib/xsetenv.h: Likewise.
31114         * lib/xstriconv.c: Likewise.
31115         * lib/xstriconv.h: Likewise.
31116         * lib/xstrndup.c: Likewise.
31117         * lib/xstrndup.h: Likewise.
31118         * lib/xstrtod.c: Likewise.
31119         * lib/xstrtod.h: Likewise.
31120         * lib/xstrtol-error.c: Likewise.
31121         * lib/xstrtol.c: Likewise.
31122         * lib/xstrtol.h: Likewise.
31123         * lib/xtime.h: Likewise.
31124         * lib/xvasprintf.c: Likewise.
31125         * lib/xvasprintf.h: Likewise.
31126         * lib/yesno.c: Likewise.
31127         * lib/yesno.h: Likewise.
31128         * posix-modules: Likewise.
31129         * tests/test-alloca-opt.c: Likewise.
31130         * tests/test-arcfour.c: Likewise.
31131         * tests/test-arctwo.c: Likewise.
31132         * tests/test-argmatch.c: Likewise.
31133         * tests/test-argp-2.sh: Likewise.
31134         * tests/test-argp.c: Likewise.
31135         * tests/test-arpa_inet.c: Likewise.
31136         * tests/test-array_list.c: Likewise.
31137         * tests/test-array_oset.c: Likewise.
31138         * tests/test-atexit.c: Likewise.
31139         * tests/test-avltree_list.c: Likewise.
31140         * tests/test-avltree_oset.c: Likewise.
31141         * tests/test-avltreehash_list.c: Likewise.
31142         * tests/test-base64.c: Likewise.
31143         * tests/test-binary-io.c: Likewise.
31144         * tests/test-byteswap.c: Likewise.
31145         * tests/test-c-ctype.c: Likewise.
31146         * tests/test-c-strcasecmp.c: Likewise.
31147         * tests/test-c-strcasestr.c: Likewise.
31148         * tests/test-c-strncasecmp.c: Likewise.
31149         * tests/test-c-strstr.c: Likewise.
31150         * tests/test-canonicalize-lgpl.c: Likewise.
31151         * tests/test-canonicalize.c: Likewise.
31152         * tests/test-carray_list.c: Likewise.
31153         * tests/test-ceilf.c: Likewise.
31154         * tests/test-ceill.c: Likewise.
31155         * tests/test-count-one-bits.c: Likewise.
31156         * tests/test-crc.c: Likewise.
31157         * tests/test-dirname.c: Likewise.
31158         * tests/test-fbufmode.c: Likewise.
31159         * tests/test-fcntl.c: Likewise.
31160         * tests/test-fflush.c: Likewise.
31161         * tests/test-floorf.c: Likewise.
31162         * tests/test-floorl.c: Likewise.
31163         * tests/test-fopen.c: Likewise.
31164         * tests/test-fprintf-posix.c: Likewise.
31165         * tests/test-fprintf-posix.h: Likewise.
31166         * tests/test-fpurge.c: Likewise.
31167         * tests/test-freadable.c: Likewise.
31168         * tests/test-freadahead.c: Likewise.
31169         * tests/test-freading.c: Likewise.
31170         * tests/test-freopen.c: Likewise.
31171         * tests/test-frexp.c: Likewise.
31172         * tests/test-frexpl.c: Likewise.
31173         * tests/test-fseek.c: Likewise.
31174         * tests/test-fseeko.c: Likewise.
31175         * tests/test-fseterr.c: Likewise.
31176         * tests/test-fstrcmp.c: Likewise.
31177         * tests/test-ftell.c: Likewise.
31178         * tests/test-ftello.c: Likewise.
31179         * tests/test-fwritable.c: Likewise.
31180         * tests/test-fwriting.c: Likewise.
31181         * tests/test-getaddrinfo.c: Likewise.
31182         * tests/test-getpass.c: Likewise.
31183         * tests/test-gettimeofday.c: Likewise.
31184         * tests/test-hmac-md5.c: Likewise.
31185         * tests/test-hmac-sha1.c: Likewise.
31186         * tests/test-iconv.c: Likewise.
31187         * tests/test-iconvme.c: Likewise.
31188         * tests/test-inttypes.c: Likewise.
31189         * tests/test-isnan.c: Likewise.
31190         * tests/test-isnanf.c: Likewise.
31191         * tests/test-isnanl-nolibm.c: Likewise.
31192         * tests/test-isnanl.c: Likewise.
31193         * tests/test-isnanl.h: Likewise.
31194         * tests/test-ldexpl.c: Likewise.
31195         * tests/test-linked_list.c: Likewise.
31196         * tests/test-linkedhash_list.c: Likewise.
31197         * tests/test-locale.c: Likewise.
31198         * tests/test-localename.c: Likewise.
31199         * tests/test-lock.c: Likewise.
31200         * tests/test-lseek.c: Likewise.
31201         * tests/test-malloca.c: Likewise.
31202         * tests/test-math.c: Likewise.
31203         * tests/test-mbscasecmp.c: Likewise.
31204         * tests/test-mbscasestr1.c: Likewise.
31205         * tests/test-mbscasestr2.c: Likewise.
31206         * tests/test-mbscasestr3.c: Likewise.
31207         * tests/test-mbscasestr4.c: Likewise.
31208         * tests/test-mbschr.c: Likewise.
31209         * tests/test-mbscspn.c: Likewise.
31210         * tests/test-mbsncasecmp.c: Likewise.
31211         * tests/test-mbspbrk.c: Likewise.
31212         * tests/test-mbspcasecmp.c: Likewise.
31213         * tests/test-mbsrchr.c: Likewise.
31214         * tests/test-mbsspn.c: Likewise.
31215         * tests/test-mbsstr1.c: Likewise.
31216         * tests/test-mbsstr2.c: Likewise.
31217         * tests/test-mbsstr3.c: Likewise.
31218         * tests/test-md5.c: Likewise.
31219         * tests/test-memmem.c: Likewise.
31220         * tests/test-netinet_in.c: Likewise.
31221         * tests/test-open.c: Likewise.
31222         * tests/test-printf-frexp.c: Likewise.
31223         * tests/test-printf-frexpl.c: Likewise.
31224         * tests/test-printf-posix.c: Likewise.
31225         * tests/test-printf-posix.h: Likewise.
31226         * tests/test-rbtree_list.c: Likewise.
31227         * tests/test-rbtree_oset.c: Likewise.
31228         * tests/test-rbtreehash_list.c: Likewise.
31229         * tests/test-read-file.c: Likewise.
31230         * tests/test-rijndael.c: Likewise.
31231         * tests/test-search.c: Likewise.
31232         * tests/test-signbit.c: Likewise.
31233         * tests/test-sleep.c: Likewise.
31234         * tests/test-snprintf-posix.c: Likewise.
31235         * tests/test-snprintf-posix.h: Likewise.
31236         * tests/test-snprintf.c: Likewise.
31237         * tests/test-sprintf-posix.c: Likewise.
31238         * tests/test-sprintf-posix.h: Likewise.
31239         * tests/test-stat-time.c: Likewise.
31240         * tests/test-stdbool.c: Likewise.
31241         * tests/test-stdint.c: Likewise.
31242         * tests/test-stdio.c: Likewise.
31243         * tests/test-stdlib.c: Likewise.
31244         * tests/test-stpncpy.c: Likewise.
31245         * tests/test-strcasestr.c: Likewise.
31246         * tests/test-striconv.c: Likewise.
31247         * tests/test-striconveh.c: Likewise.
31248         * tests/test-striconveha.c: Likewise.
31249         * tests/test-string.c: Likewise.
31250         * tests/test-sys_select.c: Likewise.
31251         * tests/test-sys_socket.c: Likewise.
31252         * tests/test-sys_stat.c: Likewise.
31253         * tests/test-sys_time.c: Likewise.
31254         * tests/test-sysexits.c: Likewise.
31255         * tests/test-time.c: Likewise.
31256         * tests/test-tls.c: Likewise.
31257         * tests/test-trunc.c: Likewise.
31258         * tests/test-truncf.c: Likewise.
31259         * tests/test-truncl.c: Likewise.
31260         * tests/test-unistd.c: Likewise.
31261         * tests/test-vasnprintf-posix.c: Likewise.
31262         * tests/test-vasnprintf-posix2.c: Likewise.
31263         * tests/test-vasnprintf.c: Likewise.
31264         * tests/test-vasprintf-posix.c: Likewise.
31265         * tests/test-vasprintf.c: Likewise.
31266         * tests/test-verify.c: Likewise.
31267         * tests/test-vfprintf-posix.c: Likewise.
31268         * tests/test-vprintf-posix.c: Likewise.
31269         * tests/test-vsnprintf-posix.c: Likewise.
31270         * tests/test-vsnprintf.c: Likewise.
31271         * tests/test-vsprintf-posix.c: Likewise.
31272         * tests/test-wchar.c: Likewise.
31273         * tests/test-wctype.c: Likewise.
31274         * tests/test-wcwidth.c: Likewise.
31275         * tests/test-xstrtol.c: Likewise.
31276         * tests/test-xvasprintf.c: Likewise.
31277         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31278         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31279         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31280         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31281         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31282         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31283         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31284         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31285         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31286         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31289         * tests/uniname/test-uninames.c: Likewise.
31290         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31291         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31292         * tests/unistdio/test-u16-printf1.h: Likewise.
31293         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31294         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31295         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31296         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31297         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31298         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31299         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31300         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31301         * tests/unistdio/test-u32-printf1.h: Likewise.
31302         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31303         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31304         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31305         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31306         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31307         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31308         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31309         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31310         * tests/unistdio/test-u8-printf1.h: Likewise.
31311         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31312         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31313         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31314         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31315         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31316         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31317         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31318         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31319         * tests/unistdio/test-ulc-printf1.h: Likewise.
31320         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31321         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31322         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31323         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31324         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31325         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31326         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31327         * tests/uniwidth/test-u16-width.c: Likewise.
31328         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31329         * tests/uniwidth/test-u32-width.c: Likewise.
31330         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31331         * tests/uniwidth/test-u8-width.c: Likewise.
31332         * tests/uniwidth/test-uc_width.c: Likewise.
31333         * config/srclist-update: Likewise.
31334         (fixlicense): Update to GPLv3+.
31335
31336         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31337         * tests/test-tsearch.c: Change copyright notice.
31338
31339         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31340         * lib/c-strcaseeq.h: Change copyright notice.
31341         * lib/streq.h: Likewise.
31342         * lib/uniconv.h: Likewise.
31343         * lib/uniconv/u-conv-from-enc.h: Likewise.
31344         * lib/uniconv/u-conv-to-enc.h: Likewise.
31345         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31346         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31347         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31348         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31349         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31350         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31351         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31352         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31353         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31354         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31355         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31356         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31357         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31358         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31359         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31360         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31361         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31362         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31363         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31364         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31365         * lib/uniname.h: Likewise.
31366         * lib/uniname/uniname.c: Likewise.
31367         * lib/unistdio.h: Likewise.
31368         * lib/unistdio/u-asnprintf.h: Likewise.
31369         * lib/unistdio/u-asprintf.h: Likewise.
31370         * lib/unistdio/u-printf-args.c: Likewise.
31371         * lib/unistdio/u-printf-args.h: Likewise.
31372         * lib/unistdio/u-printf-parse.h: Likewise.
31373         * lib/unistdio/u-snprintf.h: Likewise.
31374         * lib/unistdio/u-sprintf.h: Likewise.
31375         * lib/unistdio/u-vasprintf.h: Likewise.
31376         * lib/unistdio/u-vsnprintf.h: Likewise.
31377         * lib/unistdio/u-vsprintf.h: Likewise.
31378         * lib/unistdio/u16-asnprintf.c: Likewise.
31379         * lib/unistdio/u16-asprintf.c: Likewise.
31380         * lib/unistdio/u16-printf-parse.c: Likewise.
31381         * lib/unistdio/u16-snprintf.c: Likewise.
31382         * lib/unistdio/u16-sprintf.c: Likewise.
31383         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31384         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31385         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31386         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31387         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31388         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31389         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31390         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31391         * lib/unistdio/u16-vasnprintf.c: Likewise.
31392         * lib/unistdio/u16-vasprintf.c: Likewise.
31393         * lib/unistdio/u16-vsnprintf.c: Likewise.
31394         * lib/unistdio/u16-vsprintf.c: Likewise.
31395         * lib/unistdio/u32-asnprintf.c: Likewise.
31396         * lib/unistdio/u32-asprintf.c: Likewise.
31397         * lib/unistdio/u32-printf-parse.c: Likewise.
31398         * lib/unistdio/u32-snprintf.c: Likewise.
31399         * lib/unistdio/u32-sprintf.c: Likewise.
31400         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31401         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31402         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31403         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31404         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31405         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31406         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31407         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31408         * lib/unistdio/u32-vasnprintf.c: Likewise.
31409         * lib/unistdio/u32-vasprintf.c: Likewise.
31410         * lib/unistdio/u32-vsnprintf.c: Likewise.
31411         * lib/unistdio/u32-vsprintf.c: Likewise.
31412         * lib/unistdio/u8-asnprintf.c: Likewise.
31413         * lib/unistdio/u8-asprintf.c: Likewise.
31414         * lib/unistdio/u8-printf-parse.c: Likewise.
31415         * lib/unistdio/u8-snprintf.c: Likewise.
31416         * lib/unistdio/u8-sprintf.c: Likewise.
31417         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31418         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31419         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31420         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31421         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31422         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31423         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31424         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31425         * lib/unistdio/u8-vasnprintf.c: Likewise.
31426         * lib/unistdio/u8-vasprintf.c: Likewise.
31427         * lib/unistdio/u8-vsnprintf.c: Likewise.
31428         * lib/unistdio/u8-vsprintf.c: Likewise.
31429         * lib/unistdio/ulc-asnprintf.c: Likewise.
31430         * lib/unistdio/ulc-asprintf.c: Likewise.
31431         * lib/unistdio/ulc-printf-parse.c: Likewise.
31432         * lib/unistdio/ulc-snprintf.c: Likewise.
31433         * lib/unistdio/ulc-sprintf.c: Likewise.
31434         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31435         * lib/unistdio/ulc-vasprintf.c: Likewise.
31436         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31437         * lib/unistdio/ulc-vsprintf.c: Likewise.
31438         * lib/unistr.h: Likewise.
31439         * lib/unistr/u-cpy-alloc.h: Likewise.
31440         * lib/unistr/u-cpy.h: Likewise.
31441         * lib/unistr/u-endswith.h: Likewise.
31442         * lib/unistr/u-move.h: Likewise.
31443         * lib/unistr/u-set.h: Likewise.
31444         * lib/unistr/u-startswith.h: Likewise.
31445         * lib/unistr/u-stpcpy.h: Likewise.
31446         * lib/unistr/u-stpncpy.h: Likewise.
31447         * lib/unistr/u-strcat.h: Likewise.
31448         * lib/unistr/u-strcpy.h: Likewise.
31449         * lib/unistr/u-strcspn.h: Likewise.
31450         * lib/unistr/u-strdup.h: Likewise.
31451         * lib/unistr/u-strlen.h: Likewise.
31452         * lib/unistr/u-strncat.h: Likewise.
31453         * lib/unistr/u-strncpy.h: Likewise.
31454         * lib/unistr/u-strnlen.h: Likewise.
31455         * lib/unistr/u-strpbrk.h: Likewise.
31456         * lib/unistr/u-strspn.h: Likewise.
31457         * lib/unistr/u-strstr.h: Likewise.
31458         * lib/unistr/u-strtok.h: Likewise.
31459         * lib/unistr/u16-check.c: Likewise.
31460         * lib/unistr/u16-chr.c: Likewise.
31461         * lib/unistr/u16-cmp.c: Likewise.
31462         * lib/unistr/u16-cpy-alloc.c: Likewise.
31463         * lib/unistr/u16-cpy.c: Likewise.
31464         * lib/unistr/u16-endswith.c: Likewise.
31465         * lib/unistr/u16-mblen.c: Likewise.
31466         * lib/unistr/u16-mbsnlen.c: Likewise.
31467         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31468         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31469         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31470         * lib/unistr/u16-mbtouc.c: Likewise.
31471         * lib/unistr/u16-mbtoucr.c: Likewise.
31472         * lib/unistr/u16-move.c: Likewise.
31473         * lib/unistr/u16-next.c: Likewise.
31474         * lib/unistr/u16-prev.c: Likewise.
31475         * lib/unistr/u16-set.c: Likewise.
31476         * lib/unistr/u16-startswith.c: Likewise.
31477         * lib/unistr/u16-stpcpy.c: Likewise.
31478         * lib/unistr/u16-stpncpy.c: Likewise.
31479         * lib/unistr/u16-strcat.c: Likewise.
31480         * lib/unistr/u16-strchr.c: Likewise.
31481         * lib/unistr/u16-strcmp.c: Likewise.
31482         * lib/unistr/u16-strcpy.c: Likewise.
31483         * lib/unistr/u16-strcspn.c: Likewise.
31484         * lib/unistr/u16-strdup.c: Likewise.
31485         * lib/unistr/u16-strlen.c: Likewise.
31486         * lib/unistr/u16-strmblen.c: Likewise.
31487         * lib/unistr/u16-strmbtouc.c: Likewise.
31488         * lib/unistr/u16-strncat.c: Likewise.
31489         * lib/unistr/u16-strncmp.c: Likewise.
31490         * lib/unistr/u16-strncpy.c: Likewise.
31491         * lib/unistr/u16-strnlen.c: Likewise.
31492         * lib/unistr/u16-strpbrk.c: Likewise.
31493         * lib/unistr/u16-strrchr.c: Likewise.
31494         * lib/unistr/u16-strspn.c: Likewise.
31495         * lib/unistr/u16-strstr.c: Likewise.
31496         * lib/unistr/u16-strtok.c: Likewise.
31497         * lib/unistr/u16-to-u32.c: Likewise.
31498         * lib/unistr/u16-to-u8.c: Likewise.
31499         * lib/unistr/u16-uctomb-aux.c: Likewise.
31500         * lib/unistr/u16-uctomb.c: Likewise.
31501         * lib/unistr/u32-check.c: Likewise.
31502         * lib/unistr/u32-chr.c: Likewise.
31503         * lib/unistr/u32-cmp.c: Likewise.
31504         * lib/unistr/u32-cpy-alloc.c: Likewise.
31505         * lib/unistr/u32-cpy.c: Likewise.
31506         * lib/unistr/u32-endswith.c: Likewise.
31507         * lib/unistr/u32-mblen.c: Likewise.
31508         * lib/unistr/u32-mbsnlen.c: Likewise.
31509         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31510         * lib/unistr/u32-mbtouc.c: Likewise.
31511         * lib/unistr/u32-mbtoucr.c: Likewise.
31512         * lib/unistr/u32-move.c: Likewise.
31513         * lib/unistr/u32-next.c: Likewise.
31514         * lib/unistr/u32-prev.c: Likewise.
31515         * lib/unistr/u32-set.c: Likewise.
31516         * lib/unistr/u32-startswith.c: Likewise.
31517         * lib/unistr/u32-stpcpy.c: Likewise.
31518         * lib/unistr/u32-stpncpy.c: Likewise.
31519         * lib/unistr/u32-strcat.c: Likewise.
31520         * lib/unistr/u32-strchr.c: Likewise.
31521         * lib/unistr/u32-strcmp.c: Likewise.
31522         * lib/unistr/u32-strcpy.c: Likewise.
31523         * lib/unistr/u32-strcspn.c: Likewise.
31524         * lib/unistr/u32-strdup.c: Likewise.
31525         * lib/unistr/u32-strlen.c: Likewise.
31526         * lib/unistr/u32-strmblen.c: Likewise.
31527         * lib/unistr/u32-strmbtouc.c: Likewise.
31528         * lib/unistr/u32-strncat.c: Likewise.
31529         * lib/unistr/u32-strncmp.c: Likewise.
31530         * lib/unistr/u32-strncpy.c: Likewise.
31531         * lib/unistr/u32-strnlen.c: Likewise.
31532         * lib/unistr/u32-strpbrk.c: Likewise.
31533         * lib/unistr/u32-strrchr.c: Likewise.
31534         * lib/unistr/u32-strspn.c: Likewise.
31535         * lib/unistr/u32-strstr.c: Likewise.
31536         * lib/unistr/u32-strtok.c: Likewise.
31537         * lib/unistr/u32-to-u16.c: Likewise.
31538         * lib/unistr/u32-to-u8.c: Likewise.
31539         * lib/unistr/u32-uctomb.c: Likewise.
31540         * lib/unistr/u8-check.c: Likewise.
31541         * lib/unistr/u8-chr.c: Likewise.
31542         * lib/unistr/u8-cmp.c: Likewise.
31543         * lib/unistr/u8-cpy-alloc.c: Likewise.
31544         * lib/unistr/u8-cpy.c: Likewise.
31545         * lib/unistr/u8-endswith.c: Likewise.
31546         * lib/unistr/u8-mblen.c: Likewise.
31547         * lib/unistr/u8-mbsnlen.c: Likewise.
31548         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31549         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31550         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31551         * lib/unistr/u8-mbtouc.c: Likewise.
31552         * lib/unistr/u8-mbtoucr.c: Likewise.
31553         * lib/unistr/u8-move.c: Likewise.
31554         * lib/unistr/u8-next.c: Likewise.
31555         * lib/unistr/u8-prev.c: Likewise.
31556         * lib/unistr/u8-set.c: Likewise.
31557         * lib/unistr/u8-startswith.c: Likewise.
31558         * lib/unistr/u8-stpcpy.c: Likewise.
31559         * lib/unistr/u8-stpncpy.c: Likewise.
31560         * lib/unistr/u8-strcat.c: Likewise.
31561         * lib/unistr/u8-strchr.c: Likewise.
31562         * lib/unistr/u8-strcmp.c: Likewise.
31563         * lib/unistr/u8-strcpy.c: Likewise.
31564         * lib/unistr/u8-strcspn.c: Likewise.
31565         * lib/unistr/u8-strdup.c: Likewise.
31566         * lib/unistr/u8-strlen.c: Likewise.
31567         * lib/unistr/u8-strmblen.c: Likewise.
31568         * lib/unistr/u8-strmbtouc.c: Likewise.
31569         * lib/unistr/u8-strncat.c: Likewise.
31570         * lib/unistr/u8-strncmp.c: Likewise.
31571         * lib/unistr/u8-strncpy.c: Likewise.
31572         * lib/unistr/u8-strnlen.c: Likewise.
31573         * lib/unistr/u8-strpbrk.c: Likewise.
31574         * lib/unistr/u8-strrchr.c: Likewise.
31575         * lib/unistr/u8-strspn.c: Likewise.
31576         * lib/unistr/u8-strstr.c: Likewise.
31577         * lib/unistr/u8-strtok.c: Likewise.
31578         * lib/unistr/u8-to-u16.c: Likewise.
31579         * lib/unistr/u8-to-u32.c: Likewise.
31580         * lib/unistr/u8-uctomb-aux.c: Likewise.
31581         * lib/unistr/u8-uctomb.c: Likewise.
31582         * lib/unitypes.h: Likewise.
31583         * lib/uniwidth.h: Likewise.
31584         * lib/uniwidth/cjk.h: Likewise.
31585         * lib/uniwidth/u16-strwidth.c: Likewise.
31586         * lib/uniwidth/u16-width.c: Likewise.
31587         * lib/uniwidth/u32-strwidth.c: Likewise.
31588         * lib/uniwidth/u32-width.c: Likewise.
31589         * lib/uniwidth/u8-strwidth.c: Likewise.
31590         * lib/uniwidth/u8-width.c: Likewise.
31591         * lib/uniwidth/width.c: Likewise.
31592
31593 2007-10-07  Bruno Haible  <bruno@clisp.org>
31594
31595         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31596         The file is still under LGPL (see modules/inttypes).
31597
31598 2007-10-06  Bruno Haible  <bruno@clisp.org>
31599
31600         * modules/trunc (Dependencies): Add 'extensions'.
31601         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31602         Reported by Ben Pfaff <blp@gnu.org>.
31603
31604 2007-10-06  Bruno Haible  <bruno@clisp.org>
31605
31606         * modules/freopen-tests: New file.
31607         * tests/test-freopen.c: New file.
31608
31609         * modules/fopen-tests: New file.
31610         * tests/test-fopen.c: New file.
31611
31612         * modules/fopen: New file.
31613         * lib/fopen.c: New file.
31614         * m4/fopen.m4: New file.
31615         * modules/freopen: New file.
31616         * lib/freopen.c: New file.
31617         * m4/freopen.m4: New file.
31618         * lib/stdio.in.h (fopen, freopen): New declarations.
31619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31620         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31621         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31622         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31623         * doc/functions/fopen.texi: Mention the 'fopen' module.
31624         * doc/functions/freopen.texi: Mention the 'freopen' module.
31625
31626 2007-10-06  Bruno Haible  <bruno@clisp.org>
31627
31628         * modules/open-tests: New file.
31629         * tests/test-open.c: New file.
31630
31631         * modules/open: New file.
31632         * lib/open.c: New file.
31633         * m4/open.m4: New file.
31634         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31635         lib/open.c does.
31636         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31637         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31638         macros.
31639         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31640         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31641         REPLACE_OPEN.
31642         * doc/functions/open.texi: Mention the 'open' module.
31643
31644 2007-10-04  Bruno Haible  <bruno@clisp.org>
31645
31646         * modules/ceill-tests: New file.
31647         * tests/test-ceill.c: New file.
31648
31649         * modules/ceill: New file.
31650         * lib/ceill.c: Replace entire file.
31651         * m4/ceill.m4: New file.
31652         * lib/math.in.h (ceill): Replace declaration.
31653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31654         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31655         * doc/functions/ceill.texi: Mention the 'ceill' module.
31656         * modules/mathl (Files): Remove lib/ceill.c.
31657         (Depends-on): Add ceill.
31658
31659 2007-10-04  Bruno Haible  <bruno@clisp.org>
31660
31661         * modules/ceilf-tests: New file.
31662         * tests/test-ceilf.c: New file.
31663
31664         * modules/ceilf: New file.
31665         * lib/ceil.c: New file.
31666         * lib/ceilf.c: New file.
31667         * m4/ceilf.m4: New file.
31668         * lib/math.in.h (ceilf): New declaration.
31669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31670         HAVE_DECL_CEILF.
31671         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31672         HAVE_DECL_CEILF.
31673         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31674
31675 2007-10-04  Bruno Haible  <bruno@clisp.org>
31676
31677         * modules/floorl-tests: New file.
31678         * tests/test-floorl.c: New file.
31679
31680         * modules/floorl: New file.
31681         * lib/floorl.c: Replace entire file.
31682         * m4/floorl.m4: New file.
31683         * lib/math.in.h (floorl): Replace declaration.
31684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31686         * doc/functions/floorl.texi: Mention the 'floorl' module.
31687         * modules/mathl (Files): Remove lib/floorl.c.
31688         (Depends-on): Add floorl.
31689
31690 2007-10-04  Bruno Haible  <bruno@clisp.org>
31691
31692         * modules/floorf-tests: New file.
31693         * tests/test-floorf.c: New file.
31694
31695         * modules/floorf: New file.
31696         * lib/floor.c: New file.
31697         * lib/floorf.c: New file.
31698         * m4/floorf.m4: New file.
31699         * lib/math.in.h (floorf): New declaration.
31700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31701         HAVE_DECL_FLOORF.
31702         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31703         HAVE_DECL_FLOORF.
31704         * doc/functions/floorf.texi: Mention the 'floorf' module.
31705
31706 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31707             Bruno Haible  <bruno@clisp.org>
31708
31709         Advertise for the Git server instead of the CVS server.
31710         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31711         repository instead of the CVS one.
31712         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31713         about all VCS systems generically.
31714         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31715
31716 2007-10-04  Bruno Haible  <bruno@clisp.org>
31717
31718         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31719         means.
31720         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31721
31722 2007-10-04  Bruno Haible  <bruno@clisp.org>
31723
31724         * modules/truncl-tests: New file.
31725         * tests/test-truncl.c: New file.
31726
31727         * modules/truncl: New file.
31728         * lib/truncl.c: New file.
31729         * m4/truncl.m4: New file.
31730         * lib/math.in.h (truncl): New declaration.
31731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31732         HAVE_DECL_TRUNCL.
31733         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31734         HAVE_DECL_TRUNCL.
31735         * doc/functions/truncl.texi: Mention the 'truncl' module.
31736
31737 2007-10-04  Bruno Haible  <bruno@clisp.org>
31738
31739         * modules/truncf-tests: New file.
31740         * tests/test-truncf.c: New file.
31741
31742         * modules/truncf: New file.
31743         * lib/trunc.c: Make paramerizable through USE_* macros.
31744         * lib/truncf.c: New file.
31745         * m4/truncf.m4: New file.
31746         * lib/math.in.h (truncf): New declaration.
31747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31748         HAVE_DECL_TRUNCF.
31749         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31750         HAVE_DECL_TRUNCF.
31751         * doc/functions/truncf.texi: Mention the 'truncf' module.
31752
31753 2007-10-03  Bruno Haible  <bruno@clisp.org>
31754
31755         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31756         augmentation also for tests modules.
31757         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31758         * modules/atexit-tests (Makefile.am): Likewise.
31759         * modules/binary-io-tests (Makefile.am): Likewise.
31760         * modules/c-strcase-tests (Makefile.am): Likewise.
31761         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31762         * modules/canonicalize-tests (Makefile.am): Likewise.
31763         * modules/closein-tests (Makefile.am): Likewise.
31764         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31765         * modules/freadahead-tests (Makefile.am): Likewise.
31766         * modules/fseek-tests (Makefile.am): Likewise.
31767         * modules/fseeko-tests (Makefile.am): Likewise.
31768         * modules/ftell-tests (Makefile.am): Likewise.
31769         * modules/ftello-tests (Makefile.am): Likewise.
31770         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31771         * modules/isnanl-tests (Makefile.am): Likewise.
31772         * modules/lseek-tests (Makefile.am): Likewise.
31773         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31774         * modules/mbscasestr-tests (Makefile.am): Likewise.
31775         * modules/mbschr-tests (Makefile.am): Likewise.
31776         * modules/mbscspn-tests (Makefile.am): Likewise.
31777         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31778         * modules/mbspbrk-tests (Makefile.am): Likewise.
31779         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31780         * modules/mbsrchr-tests (Makefile.am): Likewise.
31781         * modules/mbsspn-tests (Makefile.am): Likewise.
31782         * modules/mbsstr-tests (Makefile.am): Likewise.
31783         * modules/printf-posix-tests (Makefile.am): Likewise.
31784         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31785         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31786         * modules/tsearch-tests (Makefile.am): Likewise.
31787         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31788         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31789         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31790         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31791         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31792         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31793         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31794         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31795         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31796         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31797         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31798         * modules/xstrtol-tests (Makefile.am): Likewise.
31799         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31800         * modules/yesno-tests (Makefile.am): Likewise.
31801
31802 2007-10-03  Bruno Haible  <bruno@clisp.org>
31803
31804         * modules/trunc-tests: New file.
31805         * tests/test-trunc.c: New file.
31806
31807         * modules/trunc: New file.
31808         * lib/trunc.c: New file.
31809         * m4/trunc.m4: New file.
31810         * lib/math.in.h (trunc): New declaration.
31811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31812         HAVE_DECL_TRUNC.
31813         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31814         HAVE_DECL_TRUNC.
31815         * doc/functions/trunc.texi: Mention the 'trunc' module.
31816
31817 2007-10-03  Bruno Haible  <bruno@clisp.org>
31818
31819         * tests/test-fpending.c: New file, mostly copied
31820         from coreutils/lib/t-fpending.c.
31821         * modules/fpending-tests: New file.
31822
31823 2007-10-03  Bruno Haible  <bruno@clisp.org>
31824
31825         Port the stdio extensions to QNX (untested).
31826         * lib/fseterr.c (fseterr): Add support for QNX.
31827         * lib/fbufmode.c (fbufmode): Likewise.
31828         * lib/freadable.c (freadable): Likewise.
31829         * lib/fwritable.c (fwritable): Likewise.
31830         * lib/freading.c (freading): Likewise.
31831         * lib/fwriting.c (fwriting): Likewise.
31832         * lib/freadahead.c (freadahed): Likewise.
31833         * lib/fpurge.c (fpurge): Likewise.
31834         * lib/fseeko.c (rpl_fseeko): Likewise.
31835
31836 2007-10-03  Bruno Haible  <bruno@clisp.org>
31837             Jim Meyering  <jim@meyering.net>
31838             Eric Blake  <ebb9@byu.net>
31839
31840         * doc/relocatable.texi: Use @command instead of @program.
31841
31842 2007-10-02  Jim Meyering  <jim@meyering.net>
31843
31844         Perform one more "_.h" -> ".in.h" substitution.
31845         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31846         instead of unistd_.h here, too.
31847
31848 2007-10-01  Bruno Haible  <bruno@clisp.org>
31849
31850         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31851         Needed for the alloca-opt module.
31852
31853 2007-09-30  Bruno Haible  <bruno@clisp.org>
31854
31855         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31856         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31857         alloca_.h.
31858         * lib/argz.in.h: Renamed from lib/argz_.h.
31859         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31860         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31861         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31862         byteswap_.h.
31863         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31864         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31865         dirent_.h.
31866         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31867         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31868         fcntl_.h.
31869         * lib/float.in.h: Renamed from lib/float_.h.
31870         * modules/float (Files, Makefile.am): Use float.in.h instead of
31871         float_.h.
31872         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31873         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31874         fnmatch_.h.
31875         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31876         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31877         getopt_.h.
31878         * lib/glob.in.h: Renamed from lib/glob_.h.
31879         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31880         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31881         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31882         iconv_.h.
31883         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31884         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31885         inttypes_.h.
31886         * lib/locale.in.h: Renamed from lib/locale_.h.
31887         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31888         locale_.h.
31889         * lib/math.in.h: Renamed from lib/math_.h.
31890         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31891         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31892         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31893         of netinet_in_.h. Add dependency.
31894         * lib/poll.in.h: Renamed from lib/poll_.h.
31895         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31896         * lib/search.in.h: Renamed from lib/search_.h.
31897         * modules/search (Files, Makefile.am): Use search.in.h instead of
31898         search_.h.
31899         * lib/signal.in.h: Renamed from lib/signal_.h.
31900         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31901         _signal.h.
31902         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31903         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31904         stdbool_.h.
31905         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31906         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31907         stdint_.h.
31908         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31909         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31910         stdio_.h.
31911         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31912         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31913         stdlib_.h.
31914         * lib/string.in.h: Renamed from lib/string_.h.
31915         * modules/string (Files, Makefile.am): Use string.in.h instead of
31916         string_.h.
31917         * doc/gnulib-tool.texi (Initial import): Update.
31918         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31919         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31920         of sys_select_.h. Add dependency.
31921         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31922         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31923         of sys_socket_.h.
31924         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31925         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31926         sys_stat_.h.
31927         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31928         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31929         sys_time_.h.
31930         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31931         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31932         sysexits_.h.
31933         * lib/time.in.h: Renamed from lib/time_.h.
31934         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31935         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31936         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31937         unistd_.h.
31938         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31939         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31940         wchar_.h.
31941         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31942         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31943         wctype_.h.
31944         * build-aux/bootstrap (slurp): Update.
31945         * lib/.cppi-disable: Update.
31946
31947 2007-09-30  Bruno Haible  <bruno@clisp.org>
31948
31949         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31950         Needed on BeOS.
31951
31952 2007-09-30  Bruno Haible  <bruno@clisp.org>
31953
31954         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31955
31956 2007-09-29  Bruno Haible  <bruno@clisp.org>
31957
31958         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31959
31960 2007-09-29  Bruno Haible  <bruno@clisp.org>
31961
31962         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31963         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31964         * build-aux/install-reloc: Compile also areadlink.c.
31965         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31966
31967 2007-09-29  Bruno Haible  <bruno@clisp.org>
31968
31969         * gnulib-tool (func_emit_initmacro_done): Indentation.
31970
31971 2007-09-29  Bruno Haible  <bruno@clisp.org>
31972
31973         * README: Add CVS checkout update instructions.
31974         Info from Bob Proulx <bob@proulx.com>.
31975
31976 2007-09-28  Eric Blake  <ebb9@byu.net>
31977
31978         Provide move-if-change.
31979         * build-aux/move-if-change: New file, based on best practice
31980         rather than any canonical upstream location.
31981
31982 2007-09-28  Jim Meyering  <jim@meyering.net>
31983
31984         Fix canonicalize loop-detection corner case.
31985         Do not attempt to stat the symlink values stored via seen_triple.
31986         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31987         on linux-2.6.18, (but not 2.6.22).
31988         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31989         triple_compare.  The former compares dev,ino,filename, while the latter
31990         would actually stat dirname(filename) when dev and ino were equal.
31991         * lib/hash-triple.c: Install <string.h>.
31992         (STREQ): Define.
31993         (triple_compare_ino_str): New function.
31994         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31995
31996 2007-09-28  Eric Blake  <ebb9@byu.net>
31997
31998         Enforce that AC_REPLACE_FUNCS files exist.
31999         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32000         override check for typos.
32001
32002         Fix test-closein on Solaris 10.
32003         * tests/test-closein.c (main): Don't assume stdin can be inherited
32004         closed on all systems.
32005         * tests/test-closein.sh: Likewise.
32006         Reported by Piotr Tarnowski.
32007
32008 2007-09-28  Jim Meyering  <jim@meyering.net>
32009
32010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32011
32012 2007-09-27  Jim Meyering  <jim@meyering.net>
32013
32014         canonicalize: Avoid a false-positive cycle failure.
32015         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32016         Sort.  Remove cycle-check.
32017         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32018         not cycle-check.h.
32019         (seen_triple): New function.
32020         (canonicalize_filename_mode): Use it instead of cycle-check.
32021         * tests/test-canonicalize.c: Add a test for this bug.
32022         * tests/test-canonicalize.sh: Set up and run the test.
32023
32024         New module, file-set, from coreutils.
32025         * modules/file-set: Define it.
32026         * lib/file-set.c, lib/file-set.h: Implement.
32027
32028         New module, hash-triple, from coreutils.
32029         * modules/hash-triple: Define it.
32030         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32031
32032 2007-09-25  Eric Blake  <ebb9@byu.net>
32033
32034         Fix strerror on Interix.
32035         * lib/string_.h (strerror): Declare replacement.
32036         * doc/functions/strerror.texi (strerror): Document the Interix
32037         shortcoming.
32038         * modules/string (Makefile.am): Support new hooks.
32039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32040         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32041         gl_FUNC_STRERROR_SEPARATE.
32042         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32043         * lib/strerror.c (rpl_strerror): Provide replacement.
32044         * modules/strerror (Depends-on): Add string.
32045         (configure.ac): Detect use of module.
32046         * tests/test-strerror.c: New file.
32047         * modules/strerror-tests: New test module.
32048         * modules/argp (Depends-on): Add strerror.
32049         * modules/error (Depends-on): Likewise.
32050         Reported by Martin Koeppe.
32051
32052 2007-09-24  Bruno Haible  <bruno@clisp.org>
32053
32054         * README: Update git instructions.
32055
32056 2007-09-24  Eric Blake  <ebb9@byu.net>
32057
32058         Revert fpending breakage from 2007-09-08.
32059         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32060         __fpending.c.
32061
32062 2007-09-24  Jim Meyering  <jim@meyering.net>
32063
32064         filenamecat.c: Add a test.
32065         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32066         showing how the function works when DIR is the empty string.
32067
32068 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32069
32070         * tests/test-canonicalize.sh: Turn on executable bit.
32071
32072 2007-09-19  Eric Blake  <ebb9@byu.net>
32073
32074         * README: Update CVS instructions.
32075
32076 2007-09-18  Bruno Haible  <bruno@clisp.org>
32077
32078         * modules/areadlink: New file.
32079         * lib/areadlink.h (areadlink): New declaration.
32080         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32081
32082 2007-09-17  Jim Meyering  <jim@meyering.net>
32083
32084         * lib/savewd.c (ESTALE) [!defined]: Define.
32085         Reported to be required on Interix by Martin Koeppe.
32086
32087 2007-09-17  Bruno Haible  <bruno@clisp.org>
32088
32089         * gnulib-tool (func_version): Use $version.
32090
32091 2007-09-16  Bruno Haible  <bruno@clisp.org>
32092
32093         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32094         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32095         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32096         Reported by Greg Schafer <gschafer@zip.com.au>.
32097
32098 2007-09-15  Bruno Haible  <bruno@clisp.org>
32099
32100         * gnulib-tool (sed): Try a little harder to make bash understand the
32101         alias.
32102         Reported by Bruce Korb <bruce.korb@gmail.com>.
32103
32104 2007-09-13  Eric Blake  <ebb9@byu.net>
32105
32106         * ChangeLog: Remove conflict markers.
32107
32108 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32109
32110         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32111         Reported by Bruno Haible <bruno@clisp.org>.
32112
32113 2007-09-12  Bruno Haible  <bruno@clisp.org>
32114
32115         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32116         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32117         is not defined.
32118
32119 2007-09-12  Eric Blake  <ebb9@byu.net>
32120
32121         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32123         Autoconf definition.
32124         * modules/euidaccess (Depends-on): Add extensions, for
32125         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32126         * modules/fnmatch (Depends-on): Likewise.
32127         * modules/getaddrinfo (Depends-on): Likewise.
32128         * modules/getdelim (Depends-on): Likewise.
32129         * modules/getline (Depends-on): Likewise.
32130         * modules/getsubopt (Depends-on): Likewise.
32131         * modules/gettext (Depends-on): Likewise.
32132         * modules/group-member (Depends-on): Likewise.
32133         * modules/mbchar (Depends-on): Likewise.
32134         * modules/memmem (Depends-on): Likewise.
32135         * modules/mempcpy (Depends-on): Likewise.
32136         * modules/memrchr (Depends-on): Likewise.
32137         * modules/pagealign_alloc (Depends-on): Likewise.
32138         * modules/readutmp (Depends-on): Likewise.
32139         * modules/stpcpy (Depends-on): Likewise.
32140         * modules/stpncpy (Depends-on): Likewise.
32141         * modules/strchrnul (Depends-on): Likewise.
32142         * modules/strndup (Depends-on): Likewise.
32143         * modules/strsep (Depends-on): Likewise.
32144         * modules/strverscmp (Depends-on): Likewise.
32145         * modules/vasprintf (Depends-on): Likewise.
32146         * modules/wcwidth (Depends-on): Likewise.
32147         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32148         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32149         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32153         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32154         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32155         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32156         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32161         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32162         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32163         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32164         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32166         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32168         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32169         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32170         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32171         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32173         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32174         so that lock.m4 can be used in gettext without extensions module.
32175
32176 2007-09-11  Bruno Haible  <bruno@clisp.org>
32177
32178         * m4/isc-posix.m4: Remove file.
32179         Suggested by Eric Blake.
32180
32181 2007-09-11  Eric Blake  <ebb9@byu.net>
32182
32183         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32184
32185 2007-09-10  Bruno Haible  <bruno@clisp.org>
32186
32187         * posix-modules: Fix typo in error message.
32188         Reported by Matt <mkraai@beckman.com>.
32189
32190 2007-09-09  Bruno Haible  <bruno@clisp.org>
32191
32192         * doc/functions/getdelim.texi: Update list of platforms lacking the
32193         function.
32194         * doc/functions/getline.texi: Likewise.
32195
32196 2007-09-09  Jim Meyering  <jim@meyering.net>
32197
32198         * lib/hash.c (hash_initialize): Detect calloc failure.
32199         Reported by Bruno Haible.
32200
32201 2007-09-09  Bruno Haible  <bruno@clisp.org>
32202
32203         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32204         malloc or realloc fails.
32205
32206 2007-09-09  Bruno Haible  <bruno@clisp.org>
32207
32208         * modules/getcwd (Depends-on): Add malloc-posix.
32209         * modules/glob (Depends-on): Likewise.
32210         * modules/putenv (Depends-on): Likewise.
32211         * modules/strdup (Depends-on): Likewise.
32212         * modules/getdelim (Depends-on): Add realloc-posix.
32213         * modules/read-file (Depends-on): Likewise.
32214
32215 2007-09-09  Bruno Haible  <bruno@clisp.org>
32216
32217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32218         (gl_FUNC_MALLOC_POSIX): Require it.
32219         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32220         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32221         * modules/realloc (Files): Add m4/malloc.m4.
32222         * modules/calloc (Files): Likewise.
32223
32224 2007-09-09  Bruno Haible  <bruno@clisp.org>
32225
32226         * modules/malloc-posix: New file.
32227         * modules/malloc (Depends-on): Add malloc-posix.
32228         * lib/malloc.c: Include errno.h.
32229         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32230         and a POSIX-compatible malloc into a single function. Set ENOMEM
32231         when returning NULL.
32232         * m4/malloc.m4: New file.
32233         * doc/functions/malloc.texi: Mention the malloc-posix module.
32234         * lib/stdlib_.h (malloc): New declaration.
32235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32236         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32237         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32238         and HAVE_MALLOC_POSIX.
32239
32240 2007-09-09  Bruno Haible  <bruno@clisp.org>
32241
32242         * modules/realloc-posix: New file.
32243         * modules/realloc (Depends-on): Add realloc-posix.
32244         * lib/realloc.c: Include errno.h.
32245         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32246         and a POSIX-compatible realloc into a single function. Set ENOMEM
32247         when returning NULL.
32248         * m4/realloc.m4: New file.
32249         * doc/functions/realloc.texi: Mention the realloc-posix module.
32250         * lib/stdlib_.h (realloc): New declaration.
32251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32252         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32253         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32254         and HAVE_REALLOC_POSIX.
32255
32256 2007-09-09  Bruno Haible  <bruno@clisp.org>
32257
32258         * modules/calloc-posix: New file.
32259         * modules/calloc (Depends-on): Add calloc-posix.
32260         * lib/calloc.c: Include errno.h.
32261         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32262         and a POSIX-compatible calloc into a single function. Set ENOMEM
32263         when returning NULL.
32264         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32265         * doc/functions/calloc.texi: Mention the calloc-posix module.
32266         * lib/stdlib_.h (calloc): New declaration.
32267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32268         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32269         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32270         and HAVE_CALLOC_POSIX.
32271
32272 2007-09-09  Bruno Haible  <bruno@clisp.org>
32273
32274         Allow for modules to show an arbitrary notice.
32275         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32276         * gnulib-tool: New option --extract-notice.
32277         (func_usage): Document it.
32278         (sed_extract_prog): Update.
32279         (func_get_notice): New function.
32280         (func_modules_notice): New function.
32281         (func_import, func_create_testdir): Invoke it.
32282         Suggested by Jim Meyering.
32283
32284 2007-09-09  Bruno Haible  <bruno@clisp.org>
32285
32286         * gnulib-tool: New options --verbose, --quiet.
32287         (func_usage): Document them.
32288         (verbose): New variable.
32289         (func_execute_command): New function.
32290         (func_import): Don't show the module list and the file list if
32291         $verbose < 0.
32292         (func_create_testdir): Likewise. Use func_execute_command.
32293         (func_create_megatestdir): Use func_execute_command.
32294
32295 2007-09-08  Bruno Haible  <bruno@clisp.org>
32296
32297         * gnulib-tool (func_import): Prefer rsync over wget when available,
32298         for fetching the PO files.
32299
32300 2007-09-08  Bruno Haible  <bruno@clisp.org>
32301
32302         * posix-modules: New file. Portions copied from gnulib-tool.
32303         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32304
32305 2007-09-08  Jim Meyering  <jim@meyering.net>
32306
32307         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32308         * lib/fpending.h: Rename from __fpending.h.
32309         * lib/fpending.c: Rename from __fpending.c.
32310         Include "fpending.h", not "__fpending.h".
32311         * lib/__fpending.h, lib/__fpending.c: Remove files.
32312         * modules/fpending (Files): Reflect new file names.
32313         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32314
32315 2007-09-08  Bruno Haible  <bruno@clisp.org>
32316
32317         * m4/inttypes-h.m4: Remove stub file.
32318
32319 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32320
32321         * doc/headers/stdint.texi: Discuss #include_next issue.
32322
32323 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32324
32325         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32326
32327 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32328
32329         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32330         in variable name.
32331
32332 2007-09-03  Jim Meyering  <jim@meyering.net>
32333
32334         New module: git-version-gen.
32335         * modules/git-version-gen: New file.
32336
32337         Import changes from coreutils for bootstrap script.
32338
32339         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32340
32341         bootstrap: uses rsync to download the .po files
32342         * build-aux/bootstrap (po_download_command_format): New global.
32343         (download_po_files): Use rsync.
32344         (update_po_files): Don't remove .po files after download,
32345         so future rsync runs can take advantage of the copies.
32346
32347         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32348
32349         Solve the unnecessary-.po-file-regeneration problem once and for all.
32350         * build-aux/bootstrap (download_po_files): New function, renamed from
32351         get_translations.  Now, downloads, but doesn't update LINGUAS.
32352         (update_po_files): New function.
32353
32354         bootstrap: Ignore more.
32355         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32356         uniwidth to e.g., lib/.gitignore.
32357         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32358
32359         * build-aux/bootstrap: New setting: vc_ignore.
32360         (insert_sorted_if_absent): Create $file if absent.
32361         Adapt to new, possibly empty, list: $vc_ignore.
32362
32363         bootstrap: generate more ignorable names
32364         * build-aux/bootstrap (slurp): When generating ignorable names,
32365         also map .sin to .sed, .gperf to .c, and .y to .c.
32366
32367 2007-09-03  Jim Meyering  <jim@meyering.net>
32368
32369         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32370         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32371
32372 2007-09-02  Bruno Haible  <bruno@clisp.org>
32373
32374         Fix mis-recognition of 'mcs' on QNX 6.
32375         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32376         output contains the string "Mono".
32377         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32378         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32379
32380 2007-09-01  Bruno Haible  <bruno@clisp.org>
32381
32382         Fix collision between uniwidth/* and linebreak modules.
32383         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32384         u32_width): Remove declarations.
32385         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32386         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32387         streq3, streq2, streq1, streq0): Remove functions.
32388         (STREQ): Remove macro.
32389         (is_cjk_encoding): Remove function.
32390         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32391         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32392         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32393         * NEWS: Document the change.
32394
32395 2007-09-01  Bruno Haible  <bruno@clisp.org>
32396
32397         * lib/streq.h: Add double-inclusion guard.
32398
32399 2007-09-01  Karl Berry  <karl@gnu.org>
32400
32401         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32402
32403 2007-08-28  Jim Meyering  <jim@meyering.net>
32404
32405         Rename mreadlink_with_size to areadlink_with_size.
32406         * NEWS: Document the change.
32407         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32408         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32409         * lib/mreadlink.h: Rename this to...
32410         * lib/areadlink.h: ...this.
32411         * modules/mreadlink-with-size: Rename this to...
32412         * modules/areadlink-with-size: ...this.
32413         * lib/canonicalize.c: Reflect the renaming.
32414         * modules/canonicalize: Likewise.
32415
32416 2007-08-26  Bruno Haible  <bruno@clisp.org>
32417
32418         * gnulib-tool (func_import): When deciding which files to remove,
32419         consider also dangling symbolic links.
32420         Reported by Eric Blake.
32421
32422 2007-08-26  Bruno Haible  <bruno@clisp.org>
32423
32424         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32425
32426 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32427
32428         * lib/readline.c: Don't include getline.h, the prototype is now
32429         found in stdio.h.
32430
32431 2007-08-23  Jim Meyering  <jim@meyering.net>
32432
32433         Getdelim touchup.
32434         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32435         around the funlockfile call, since funlockfile never sets errno.
32436         Don't set errno upon failed realloc.
32437
32438 2007-08-22  Eric Blake  <ebb9@byu.net>
32439
32440         Getline touchups.
32441         * lib/getdelim.c (getdelim): Revert regression that required *n to
32442         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32444         getdelim, rather than whether implementation is missing.
32445         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32446         * lib/stdio_.h (getline): Also declare if replacement is
32447         required.
32448         * doc/functions/getdelim.texi: New file.
32449         * doc/functions/getline.texi: Likewise.
32450         * doc/gnulib.texi (Function Substitutes): Add new files.
32451         Reported by Bruno Haible.
32452
32453 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32454
32455         * users.txt: Add Guile.
32456
32457 2007-08-22  Eric Blake  <ebb9@byu.net>
32458
32459         * tests/test-getdelim.c (main): Use remove, not unlink.
32460         * tests/test-getline.c (main): Likewise.
32461
32462         Move getline and getdelim into stdio.h, per POSIX 200x.
32463         * modules/getline (Files): Remove getline.h.
32464         (Depends-on): Add stdio.
32465         (configure.ac): Add module indicator.
32466         * modules/getdelim (Files): Remove getdelim.h.
32467         (Depends-on): Add stdio.
32468         (configure.ac): Add module indicator.
32469         * modules/stdio (Makefile.am): Work with new indicators.
32470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32472         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32473         * lib/getdelim.h: Delete.
32474         * lib/getline.h: Delete.
32475         * lib/stdio_.h (getdelim, getline): Declare.
32476         * modules/getdelim-tests: New module.
32477         * modules/getline-tests: Likewise.
32478         * tests/test-getdelim.c: New file.
32479         * tests/test-getline.c: Likewise.
32480         * NEWS: Document the change.
32481         * lib/getline.c: Update choice of header.
32482         * lib/csharpcomp.c: Likewise.
32483         * lib/getpass.c: Likewise.
32484         * lib/javacomp.c: Likewise.
32485         * lib/javaversion.c: Likewise.
32486         * lib/yesno.c: Likewise.
32487         * lib/getdelim.c: Likewise.
32488         (getdelim): Set errno on failure, and avoid memory leak.
32489
32490 2007-08-19  Bruno Haible  <bruno@clisp.org>
32491
32492         * modules/closein (Depends-on): Add freadahead.
32493         * lib/closein.c: Include freadahead.h.
32494         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32495         is zero.
32496
32497 2007-08-19  Bruno Haible  <bruno@clisp.org>
32498
32499         * modules/freadahead-tests: New file.
32500         * tests/test-freadahead.sh: New file.
32501         * tests/test-freadahead.c: New file.
32502
32503         * modules/freadahead: New file.
32504         * lib/freadahead.h: New file.
32505         * lib/freadahead.c: New file.
32506         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32507         fbufmode, fpurge, freadable, fwritable.
32508
32509 2007-08-19  Eric Blake  <ebb9@byu.net>
32510
32511         Test yesno in combination with closein.
32512         * lib/yesno.c (yesno): Document use of stdin.
32513         * modules/yesno-tests (Files): New module.
32514         * tests/test-yesno.c (main): New file.
32515         * tests/test-yesno.sh: Likewise.
32516
32517 2007-08-19  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32520         * lib/fseeko.c (rpl_fseeko): Likewise.
32521         * lib/fseterr.c (fseterr): Likewise.
32522
32523 2007-08-19  Bruno Haible  <bruno@clisp.org>
32524
32525         * tests/test-lseek.c (main): Disable a test for BeOS.
32526         * doc/functions/lseek.texi: Document the BeOS bug.
32527
32528 2007-08-19  Bruno Haible  <bruno@clisp.org>
32529             Eric Blake  <ebb9@byu.net>
32530
32531         * lib/lseek.c: Include <sys/stat.h>.
32532         (rpl_lseek): Add workaround code also for Unix platforms.
32533         Needed for BeOS.
32534         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32535         * doc/functions/lseek.texi: Document BeOS definiency.
32536
32537 2007-08-18  Bruno Haible  <bruno@clisp.org>
32538
32539         * modules/fstrcmp-tests: New file.
32540         * tests/test-fstrcmp.c: New file.
32541
32542 2007-08-18  Bruno Haible  <bruno@clisp.org>
32543
32544         * modules/fstrcmp: New file, from GNU gettext with modifications.
32545         * lib/fstrcmp.h: New file, from GNU gettext.
32546         * lib/fstrcmp.c: New file, from GNU gettext.
32547         * MODULES.html.sh (String handling): Add fstrcmp.
32548
32549 2007-08-18  Bruno Haible  <bruno@clisp.org>
32550
32551         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32552         'bool'.
32553         (diag, compareseq): Remove const from the ctxt argument.
32554         (USE_HEURISTIC): Undefine at the end.
32555
32556 2007-08-18  Jim Meyering  <jim@meyering.net>
32557
32558         New file: lib/idcache.h
32559         * NEWS: Mention the addition.
32560         * modules/idcache (Files): Add lib/idcache.h
32561         * lib/idcache.c: Include "idcache.h".
32562         Don't include <sys/types.h>.
32563         Add a FIXME comment.
32564         Move file-scoped "static" declarations to the top.
32565         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32566
32567 2007-08-17  Bruno Haible  <bruno@clisp.org>
32568         and Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * MODULES.html.sh: Add diffseq.
32571         * modules/diffseq: New file.
32572         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32573         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32574
32575 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32576
32577         Import changes from coreutils for bootstrap script.
32578
32579         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32580
32581         * build-aux/bootstrap (slurp): Work even in environments where
32582         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32583         current code does not slurp files whose names start with ".", and
32584         this looks like it might be a troublesome area.
32585
32586         2007-07-11  Jim Meyering  <jim@meyering.net>
32587
32588         If there's a GPL vN copyright comment, require that N == 3.
32589
32590         2007-07-08  Jim Meyering  <jim@meyering.net>
32591
32592         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32593         * build-aux/bootstrap (mam_template): Move definition out of loop.
32594
32595         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32596
32597         * build-aux/bootstrap (symlink_to_dir): Rename function from
32598         symlink_to_gnulib.  Add a directory parameter.  Update all
32599         callers.
32600         (cp_mark_as_generated): Also check for -- and link to -- files in
32601         gl/.
32602
32603         2007-07-08  Jim Meyering  <jim@meyering.net>
32604
32605         Adapt to deeper hierarchy in gnulib.
32606         * build-aux/bootstrap (symlink_to_dir): If the destination
32607         directory doesn't exist, create it. This is required at least for
32608         "lib/uniwidth/cjk.h".
32609
32610         2007-05-15  Jim Meyering  <jim@meyering.net>
32611
32612         * build-aux/bootstrap: Now that generated Makefile.am files
32613         are no longer under version control, they must be created at
32614         bootstrap time.
32615
32616 2007-08-14  Ben Pfaff  <blp@gnu.org>
32617
32618         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32619
32620 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32621
32622         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32623         given the changes below.
32624         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32625         even on hosts that have padding bits beyond the supported 64.
32626
32627 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32628
32629         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32630         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32631         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32632         depends on it.
32633         (xstrtol_error): Remove.
32634         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32635         but with a different signature.
32636         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32637         * lib/xstrtol-error.c: Include exitfail.h.
32638         (xstrtol_fatal): New function, with a different signature from the
32639         old xstrtol_error, so that the caller need not worry about passing
32640         in an exit status, or about storage management of the option argument.
32641         (xstrtol_error): Now a static function.  Redo signature to
32642         implement xstrtol_fatal.  Output the correct number of hyphens in
32643         front of the option so that the caller need not worry about
32644         storage management.
32645         (N_): New macro.
32646         (_): Remove; not used now.
32647         * modules/xstrtol: Depend on getopt.
32648         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32649         of old STRTOL_FATAL_ERROR macro.
32650         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32651         of test program.
32652         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32653         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32654
32655 2007-08-08  Eric Blake  <ebb9@byu.net>
32656
32657         * lib/xstrtol-error.c: Add missing include.
32658
32659         Move xstrtol messages into gnulib domain, when --pobase is used.
32660         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32661         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32662         * modules/xstrtol (Files): Distribute new file.
32663         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32664         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32665         * tests/test-xstrtol.c: ...into new file.
32666         * tests/test-xstrtoul.c: Also test xstrtoul.
32667         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32668         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32669         * tests/test-xstrtol.sh: Drive the tests.
32670         * tests/test-xstrtoimax.sh: Likewise.
32671         * tests/test-xstrtoumax.sh: Likewise.
32672         * modules/xstrtol-tests: New module.
32673         * modules/xstrtoimax-tests: Likewise.
32674         * modules/xstrtoumax-tests: Likewise.
32675
32676 2007-08-08  Jim Meyering  <jim@meyering.net>
32677
32678         New function: mfile_name_concat.
32679         * lib/filenamecat.c (mfile_name_concat): New function, just like
32680         file_name_concat, but return NULL upon failure rather than exiting
32681         with a diagnostic.
32682         * lib/filenamecat.h: Declare it.
32683
32684 2007-08-07  Bruno Haible  <bruno@clisp.org>
32685
32686         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32687         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32688         warning from gcc.
32689         Reported by Eric Blake.
32690
32691 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32692
32693         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32694         * modules/crypto/arcfour (License): Likewise.
32695         * modules/crypto/des-tests (License): Likewise.
32696         * modules/crypto/gc-arctwo-tests (License): Likewise.
32697         * modules/crypto/gc-des-tests (License): Likewise.
32698         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32699         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32700         * modules/crypto/gc-md2-tests (License): Likewise.
32701         * modules/crypto/gc-md4-tests (License): Likewise.
32702         * modules/crypto/gc-md5-tests (License): Likewise.
32703         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32704         * modules/crypto/gc-rijndael-tests (License): Likewise.
32705         * modules/crypto/gc-sha1-tests (License): Likewise.
32706         * modules/crypto/gc-tests (License): Likewise.
32707         * modules/crypto/hmac-md5 (License): Likewise.
32708         * modules/crypto/hmac-sha1 (License): Likewise.
32709         * modules/crypto/md2-tests (License): Likewise.
32710         * modules/crypto/md4-tests (License): Likewise.
32711         * modules/crypto/md5 (License): Likewise.
32712         * modules/crypto/rijndael (License): Likewise.
32713         * modules/crypto/sha1 (License): Likewise.
32714         * modules/memxor (License): Likewise.
32715
32716 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32717         and Bruno Haible  <bruno@clisp.org>
32718
32719         * NEWS: Describe interface changes to human, xstrtol.
32720         * lib/human.h: Include <xstrtol.h>.
32721         (human_options): Return enum strtol_error, not int.  Remove
32722         bool arg; take int * instead.
32723         * lib/human.c: Don't include "gettext.h".
32724         (_): Remove; no longer used.
32725         Don't include <xstrtol.h>, since human.h does it.
32726         (human_options): Adjust to abovementioned interface changes.
32727         Do not report error to stderr; that's now the caller's
32728         responsibility.
32729         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32730         interface change.
32731         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32732         Str, Argument_type_string.  All uses changed.  Put " argument"
32733         in diagnostics to make them clearer.  Change wording of suffix
32734         message for clarity.
32735         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32736         Argument_type_string.
32737         (STRTOL_FATAL_WARN): Remove; no longer used.
32738         * modules/human (Depends-on): Remove gettext-h.
32739
32740 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32741
32742         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32743
32744 2007-07-31  Bruno Haible  <bruno@clisp.org>
32745
32746         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32747         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32748         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32749
32750 2007-07-31  Bruno Haible  <bruno@clisp.org>
32751
32752         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32753         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32754
32755 2007-07-30  Bruno Haible  <bruno@clisp.org>
32756
32757         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32758         * modules/c-ctype (License): Likewise.
32759         * modules/c-strcase (License): Likewise.
32760         * modules/check-version (License): Likewise.
32761         * modules/iconv (License): Likewise.
32762         * modules/iconv_open (License): Likewise.
32763         * modules/read-file (License): Likewise.
32764         * modules/striconv (License): Likewise.
32765         * modules/strverscmp (License): Likewise.
32766         * modules/vasprintf (License): Likewise.
32767         * modules/crypto/des (License): Likewise.
32768         * modules/crypto/gc (License): Likewise.
32769         * modules/crypto/gc-arcfour (License): Likewise.
32770         * modules/crypto/gc-arctwo (License): Likewise.
32771         * modules/crypto/gc-des (License): Likewise.
32772         * modules/crypto/gc-hmac-md5 (License): Likewise.
32773         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32774         * modules/crypto/gc-md2 (License): Likewise.
32775         * modules/crypto/gc-md4 (License): Likewise.
32776         * modules/crypto/gc-md5 (License): Likewise.
32777         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32778         * modules/crypto/gc-random (License): Likewise.
32779         * modules/crypto/gc-rijndael (License): Likewise.
32780         * modules/crypto/gc-sha1 (License): Likewise.
32781         * modules/crypto/md2 (License): Likewise.
32782         * modules/crypto/md4 (License): Likewise.
32783
32784 2007-07-30  Jim Meyering  <jim@meyering.net>
32785
32786         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32787         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32788         it has valid stat data.  This bug would cause du not to count the
32789         sizes of inaccessible directories.
32790         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32791         in <http://bugzilla.redhat.com/250077>.
32792
32793 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32794             Bruno Haible  <bruno@clisp.org>
32795
32796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32797         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32798         #include_next, gives a diagnostic about it, but reports no error in
32799         the exit code.
32800         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32801
32802 2007-07-24  Ben Pfaff  <blp@gnu.org>
32803
32804         Improve name: "count-one-bits" is better than "popcount".
32805         * MODULES.html.sh: Update name.
32806         * lib/popcount.h: Renamed lib/count-one-bits.h.
32807         (popcount): Renamed count_one_bits.
32808         (popcountl): Renamed count_one_bits_l.
32809         (popcountll): Renamed count_one_bits_ll.
32810         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32811         * modules/popcount: Renamed module/count-one-bits.
32812         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32813         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32814
32815 2007-07-23  Ben Pfaff  <blp@gnu.org>
32816
32817         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32818         better code generation, and add U to large constants to avoid
32819         warnings, in non-GCC case.
32820         Suggested by Bruno Haible.
32821
32822 2007-07-23  Ben Pfaff  <blp@gnu.org>
32823
32824         * lib/popcount.h: Use verify_true instead of if...abort.
32825         * modules/popcount: Depend on verify module.
32826         Suggested by Jim Meyering.
32827
32828 2007-07-23  Bruno Haible  <bruno@clisp.org>
32829
32830         * gnulib-tool (func_import): Create a .cvsignore file also when the
32831         directory is not yet in CVS but the toplevel directory is. When
32832         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32833         Reported by Karl Berry.
32834
32835 2007-07-22  Ben Pfaff  <blp@gnu.org>
32836
32837         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32838         case.
32839         Suggested by Eric Blake.
32840
32841 2007-07-22  Ben Pfaff  <blp@gnu.org>
32842
32843         New module: popcount.
32844         * MODULES.html.sh: Add popcount.
32845         * modules/popcount: New file.
32846         * modules/popcount-tests: New file.
32847         * tests/test-popcount.c: New file.
32848         * lib/popcount.h: New file.
32849         * m4/popcount.m4: New file.
32850
32851 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32852
32853         * build-aux/announce-gen: Update to GPLv3.
32854
32855         * build-aux/config.guess: Update from config.
32856
32857 2007-07-21  Bruno Haible  <bruno@clisp.org>
32858
32859         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32860         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32861
32862 2007-07-20  Jim Meyering  <jim@meyering.net>
32863
32864         * check-module: Diagnose a self-dependency.
32865
32866 2007-07-19  Bruno Haible  <bruno@clisp.org>
32867
32868         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32869         empty.
32870         Reported by Eric Blake.
32871
32872 2007-07-18  Bruno Haible  <bruno@clisp.org>
32873
32874         * gnulib-tool: New options --po-base, --po-domain.
32875         (func_usage): Document them.
32876         (pobase, po_domain): New variables.
32877         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32878         DEFAULT_TEXT_DOMAIN.
32879         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32880         (func_import): Consider pobase and po_domain. Create a po/ directory.
32881         (func_create_testdir): Set pobase and po_domain to empty.
32882         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32883         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32884
32885 2007-07-18  Bruno Haible  <bruno@clisp.org>
32886
32887         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32888         EXTRA_DIST augmentation for files in build-aux/.
32889
32890 2007-07-16  Bruno Haible  <bruno@clisp.org>
32891
32892         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32893         * modules/getdelim (License): Likewise.
32894
32895 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32896
32897         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32898         * modules/d-type (License): Likewise.
32899         * modules/extensions (License): Likewise.
32900         * modules/fnmatch (License): Likewise.
32901         * modules/fseeko (License): Likewise.
32902         * modules/getaddrinfo (License): Likewise.
32903         * modules/getline (License): Likewise.
32904         * modules/getlogin_r (License): Likewise.
32905         * modules/getpass (License): Likewise.
32906         * modules/gettimeofday (License): Likewise.
32907         * modules/glob (License): Likewise.
32908         * modules/inet_ntop (License): Likewise.
32909         * modules/malloc (License): Likewise.
32910         * modules/malloca (License): Likewise.
32911         * modules/memmem (License): Likewise.
32912         * modules/mempcpy (License): Likewise.
32913         * modules/memset (License): Likewise.
32914         * modules/minmax (License): Likewise.
32915         * modules/mktime (License): Likewise.
32916         * modules/netinet_in (License): Likewise.
32917         * modules/pathmax (License): Likewise.
32918         * modules/poll (License): Likewise.
32919         * modules/regex (License): Likewise.
32920         * modules/snprintf (License): Likewise.
32921         * modules/stdbool (License): Likewise.
32922         * modules/stdint (License): Likewise.
32923         * modules/stdio (License): Likewise.
32924         * modules/strcase (License): Likewise.
32925         * modules/strcasestr (License): Likewise.
32926         * modules/strdup (License): Likewise.
32927         * modules/string (License): Likewise.
32928         * modules/strndup (License): Likewise.
32929         * modules/strnlen (License): Likewise.
32930         * modules/strpbrk (License): Likewise.
32931         * modules/strptime (License): Likewise.
32932         * modules/strsep (License): Likewise.
32933         * modules/sys_select (License): Likewise.
32934         * modules/sys_socket (License): Likewise.
32935         * modules/sys_stat (License): Likewise.
32936         * modules/sys_time (License): Likewise.
32937         * modules/time (License): Likewise.
32938         * modules/time_r (License): Likewise.
32939         * modules/timegm (License): Likewise.
32940         * modules/unistd (License): Likewise.
32941         * modules/vsnprintf (License): Likewise.
32942         * modules/wctype (License): Likewise.
32943
32944 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32945
32946         * modules/argz (License): LGPLv2+.
32947
32948 2007-07-15  Karl Berry  <karl@gnu.org>
32949
32950         * doc/gnulib.texi: revise node structure per new fdl.texi.
32951
32952 2007-07-14  Bruno Haible  <bruno@clisp.org>
32953
32954         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32955         the output file.
32956         * lib/uniname/uninames.h: Regenerated.
32957
32958 2007-07-14  Karl Berry  <karl@gnu.org>
32959
32960         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32961         omitting sectioning and index commands.
32962
32963 2007-07-13  Bruno Haible  <bruno@clisp.org>
32964
32965         New gnulib-tool option --more-symlinks.
32966         * gnulib-tool (func_usage): Document --more-symlinks.
32967         (do_copyrights): New variable.
32968         Recognize option --more-symlinks.
32969         (func_import): Don't add a copyright notice transform to
32970         sed_transform_lib_file if do_copyrights is empty.
32971
32972 2007-07-13  Bruno Haible  <bruno@clisp.org>
32973
32974         * lib/vasnprintf.c (decimal_point_char): Define also if
32975         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32976         && !NEED_PRINTF_DIRECTIVE_A.
32977         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32978         Gary V. Vaughan <gary@gnu.org>.
32979
32980 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * lib/inttypes_.h: Undo previous change, since it was fixed
32983         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32984
32985 2007-07-13  Bruno Haible  <bruno@clisp.org>
32986
32987         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32988         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32989
32990 2007-07-13  Jim Meyering  <jim@meyering.net>
32991
32992         df: Don't fail for Tru64's "file-on-file mount".
32993         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32994         so we fall through and use statfs instead.  Details here:
32995         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32996         Reported by Albert Chin.
32997
32998 2007-07-13  Bruno Haible  <bruno@clisp.org>
32999
33000         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33001         * modules/configmake (License): Likewise.
33002         * modules/gettext (License): Likewise.
33003         * modules/gettext-h (License): Likewise.
33004         * modules/include_next (License): Likewise.
33005         * modules/link-warning (License): Likewise.
33006         * modules/localcharset (License): Likewise.
33007         * modules/localename (License): Likewise.
33008         * modules/lock (License): Likewise.
33009         * modules/relocatable-lib-lgpl (License): Likewise.
33010         * modules/size_max (License): Likewise.
33011         * modules/vasnprintf (License): Likewise.
33012         * modules/wchar (License): Likewise.
33013         * modules/xsize (License): Likewise.
33014
33015 2007-07-13  Bruno Haible  <bruno@clisp.org>
33016
33017         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33018         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33019
33020 2007-07-12  Bruno Haible  <bruno@clisp.org>
33021
33022         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33023         in the modules files.
33024
33025 2007-07-11  Karl Berry  <karl@gnu.org>
33026
33027         * MODULES.html.sh (func_module): use
33028          sed -e '\|^'"${includefile}"'$|d'
33029          instead of /.../d, to avoid errors on $includefile's containing /.
33030
33031 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33032
33033         * gnulib-tool (func_import): Avoid duplication of --avoid
33034         statements
33035         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33036         names to `_' in variable names.
33037
33038 2007-07-10  Eric Blake  <ebb9@byu.net>
33039
33040         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33041         * NEWS: Document this change.
33042
33043 2007-07-08  Bruno Haible  <bruno@clisp.org>
33044
33045         Update to Unicode 5.0.
33046         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33047         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33048         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33049         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33050         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33051         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33052         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33053         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33054         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33055         U+10A3F, U+1D242..U+1D244.
33056         (nonspacing_table_ind): Update.
33057         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33058         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33059
33060 2007-07-08  Bruno Haible  <bruno@clisp.org>
33061
33062         Update to Unicode 5.0.
33063         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33064         code transform. Extend the name index field of unicode_name_to_code and
33065         unicode_code_to_name from 16 to 24 bits.
33066         * lib/uniname/uniname.c (unicode_character_name,
33067         unicode_name_character): Add the range 0x12xxx to the code transform.
33068         * lib/uniname/uninames.h: Regenerated.
33069         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33070
33071 2007-07-07  Bruno Haible  <bruno@clisp.org>
33072
33073         * modules/wcwidth-tests: New file.
33074         * tests/test-wcwidth.c: New file.
33075
33076         Work around MacOS X wcwidth() bug.
33077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33078         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33079         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33080         original wcwidth in non-UTF-8 locales.
33081         * modules/wcwidth (Depends-on): Add localcharset, streq,
33082         uniwidth/width.
33083         * doc/functions/wcwidth.texi: Update.
33084
33085 2007-07-07  Bruno Haible  <bruno@clisp.org>
33086
33087         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33088         (wcwidth): New declaration.
33089         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33090         macros.
33091         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33092         here. Prepare for creating <wchar.h> unconditionally.
33093         * modules/wchar (Depends-on): Add link-warning.
33094         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33095         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33096         * lib/wcwidth.h: Remove file.
33097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33098         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33099         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33100         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33101         (Include): Replace wcwidth.h with <wchar.h>.
33102         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33103         * lib/mbchar.h: Don't include wcwidth.h.
33104         * lib/mbswidth.c: Likewise.
33105         * NEWS: Mention the change.
33106
33107 2007-07-07  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33110         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33111         definition with an external declaration.
33112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33113         defined as a function. Remove AC_C_INLINE requirement.
33114         * modules/wcwidth (Files): Add lib/wcwidth.c.
33115         (Makefile.am): Remove redundant statement.
33116
33117 2007-07-07  Bruno Haible  <bruno@clisp.org>
33118
33119         * MODULES.html.sh (Unicode string functions): Add the new modules.
33120
33121         * tests/uniwidth/test-u32-strwidth.c: New file.
33122         * modules/uniwidth/u32-strwidth-tests: New file.
33123
33124         * lib/uniwidth/u32-strwidth.c: New file.
33125         * modules/uniwidth/u32-strwidth: New file.
33126
33127         * tests/uniwidth/test-u16-strwidth.c: New file.
33128         * modules/uniwidth/u16-strwidth-tests: New file.
33129
33130         * lib/uniwidth/u16-strwidth.c: New file.
33131         * modules/uniwidth/u16-strwidth: New file.
33132
33133         * tests/uniwidth/test-u8-strwidth.c: New file.
33134         * modules/uniwidth/u8-strwidth-tests: New file.
33135
33136         * lib/uniwidth/u8-strwidth.c: New file.
33137         * modules/uniwidth/u8-strwidth: New file.
33138
33139         * tests/uniwidth/test-u32-width.c: New file.
33140         * modules/uniwidth/u32-width-tests: New file.
33141
33142         * lib/uniwidth/u32-width.c: New file.
33143         * modules/uniwidth/u32-width: New file.
33144
33145         * tests/uniwidth/test-u16-width.c: New file.
33146         * modules/uniwidth/u16-width-tests: New file.
33147
33148         * lib/uniwidth/u16-width.c: New file.
33149         * modules/uniwidth/u16-width: New file.
33150
33151         * tests/uniwidth/test-u8-width.c: New file.
33152         * modules/uniwidth/u8-width-tests: New file.
33153
33154         * lib/uniwidth/u8-width.c: New file.
33155         * modules/uniwidth/u8-width: New file.
33156
33157         * tests/uniwidth/test-uc_width.c: New file.
33158         * modules/uniwidth/width-tests: New file.
33159
33160         * lib/uniwidth/width.c: New file, from GNU libiconv.
33161         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33162         * modules/uniwidth/width: New file.
33163
33164         * lib/uniwidth.h: New file, from GNU libiconv.
33165         * modules/uniwidth/base: New file.
33166
33167 2007-07-07  Bruno Haible  <bruno@clisp.org>
33168
33169         * lib/uniname.h: New file, from GNU gettext.
33170         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33171         * lib/uniname/uninames.h: New file, from GNU gettext.
33172         * lib/uniname/uniname.c: New file, from GNU gettext.
33173         * tests/uniname/test-uninames.sh: New file.
33174         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33175         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33176         * modules/uniname/base: New file.
33177         * modules/uniname/uniname: New file.
33178         * modules/uniname/uniname-tests: New file.
33179         * MODULES.html.sh (Unicode string functions): Add the new modules.
33180
33181 2007-07-06  Bruno Haible  <bruno@clisp.org>
33182
33183         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33184
33185 2007-07-06  Bruno Haible  <bruno@clisp.org>
33186
33187         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33188         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33189         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33190         include <sys/time.h>.
33191         Reported by Eric Blake.
33192
33193 2007-07-06  Eric Blake  <ebb9@byu.net>
33194
33195         Fix testing canonicalize on cygwin.
33196         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33197         Revert patch from 2007-06-19.
33198         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33199         canonicalize module is also in use.
33200         * tests/test-canonicalize.c: New file.
33201         * tests/test-canonicalize.sh: Likewise.
33202         * modules/canonicalize-tests: Likewise.
33203
33204 2007-07-06  Jim Meyering  <jim@meyering.net>
33205
33206         * lib/getugroups.c (getugroups): Detect getgrent failure.
33207         Adjust comment to reflect reality: this function may return -1.
33208
33209 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33210
33211         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33212         the new TP address.
33213         (usage): Fix typo
33214         (gnulib_mk): New variable.
33215
33216 2007-07-05  Jim Meyering  <jim@meyering.net>
33217
33218         Don't let endgrent clobber errno, no matter how improbable.
33219         * lib/getugroups.c (getugroups): Save and restore errno around
33220         endgrent call.
33221
33222         Close the group DB even when failing with 2^31 or more members.
33223         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33224
33225 2007-07-04  Jim Meyering  <jim@meyering.net>
33226
33227         * lib/getugroups.h: New file.
33228         * lib/getugroups.c: Include "getugroups.h".
33229         Remove uses of "register" keyword.
33230         Move local variable, "cp", down into scope where used.
33231         Give "username" parameter the "const" attribute.
33232         * modules/getugroups (Files): Add lib/getugroups.h
33233
33234 2007-07-04  Karl Berry  <karl@gnu.org>
33235
33236         * MODULES.html.sh (func_all_modules): Complete rename of
33237         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33238
33239 2007-07-02  Bruno Haible  <bruno@clisp.org>
33240
33241         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33242         mode, when inttypes.h comes from gnulib.
33243         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33244
33245 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33246
33247         * NEWS: Mention lgpl module name change.
33248
33249         * modules/lgpl-2.1: Renamed from lgpl.
33250
33251         * NEWS: Mention gpl module name change.
33252
33253         * modules/gpl-3.0: New file, based on gpl-2.0.
33254
33255         * modules/gpl-2.0: Renamed from gpl.
33256
33257         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33258         doc/gpl-2.0.texi.
33259
33260 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33261
33262         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33263         #define __STDC_LIMIT_MACROS temporarily while including
33264         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33265         Problem reported by Joel E. Denny in
33266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33267
33268 2007-07-01  Bruno Haible  <bruno@clisp.org>
33269
33270         * lib/unistdio.h: New file.
33271         * lib/unistdio/u-asnprintf.h: New file.
33272         * lib/unistdio/u-asprintf.h: New file.
33273         * lib/unistdio/u-printf-args.c: New file.
33274         * lib/unistdio/u-printf-args.h: New file.
33275         * lib/unistdio/u-printf-parse.h: New file.
33276         * lib/unistdio/u-snprintf.h: New file.
33277         * lib/unistdio/u-sprintf.h: New file.
33278         * lib/unistdio/u-vasprintf.h: New file.
33279         * lib/unistdio/u-vsnprintf.h: New file.
33280         * lib/unistdio/u-vsprintf.h: New file.
33281         * lib/unistdio/ulc-asnprintf.c: New file.
33282         * lib/unistdio/ulc-asprintf.c: New file.
33283         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33284         * lib/unistdio/ulc-printf-parse.c: New file.
33285         * lib/unistdio/ulc-snprintf.c: New file.
33286         * lib/unistdio/ulc-sprintf.c: New file.
33287         * lib/unistdio/ulc-vasnprintf.c: New file.
33288         * lib/unistdio/ulc-vasprintf.c: New file.
33289         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33290         * lib/unistdio/ulc-vsnprintf.c: New file.
33291         * lib/unistdio/ulc-vsprintf.c: New file.
33292         * lib/unistdio/u8-asnprintf.c: New file.
33293         * lib/unistdio/u8-asprintf.c: New file.
33294         * lib/unistdio/u8-printf-parse.c: New file.
33295         * lib/unistdio/u8-snprintf.c: New file.
33296         * lib/unistdio/u8-sprintf.c: New file.
33297         * lib/unistdio/u8-vasnprintf.c: New file.
33298         * lib/unistdio/u8-vasprintf.c: New file.
33299         * lib/unistdio/u8-vsnprintf.c: New file.
33300         * lib/unistdio/u8-vsprintf.c: New file.
33301         * lib/unistdio/u8-u8-asnprintf.c: New file.
33302         * lib/unistdio/u8-u8-asprintf.c: New file.
33303         * lib/unistdio/u8-u8-snprintf.c: New file.
33304         * lib/unistdio/u8-u8-sprintf.c: New file.
33305         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33306         * lib/unistdio/u8-u8-vasprintf.c: New file.
33307         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33308         * lib/unistdio/u8-u8-vsprintf.c: New file.
33309         * lib/unistdio/u16-asnprintf.c: New file.
33310         * lib/unistdio/u16-asprintf.c: New file.
33311         * lib/unistdio/u16-printf-parse.c: New file.
33312         * lib/unistdio/u16-snprintf.c: New file.
33313         * lib/unistdio/u16-sprintf.c: New file.
33314         * lib/unistdio/u16-vasnprintf.c: New file.
33315         * lib/unistdio/u16-vasprintf.c: New file.
33316         * lib/unistdio/u16-vsnprintf.c: New file.
33317         * lib/unistdio/u16-vsprintf.c: New file.
33318         * lib/unistdio/u16-u16-asnprintf.c: New file.
33319         * lib/unistdio/u16-u16-asprintf.c: New file.
33320         * lib/unistdio/u16-u16-snprintf.c: New file.
33321         * lib/unistdio/u16-u16-sprintf.c: New file.
33322         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33323         * lib/unistdio/u16-u16-vasprintf.c: New file.
33324         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33325         * lib/unistdio/u16-u16-vsprintf.c: New file.
33326         * lib/unistdio/u32-asnprintf.c: New file.
33327         * lib/unistdio/u32-asprintf.c: New file.
33328         * lib/unistdio/u32-printf-parse.c: New file.
33329         * lib/unistdio/u32-snprintf.c: New file.
33330         * lib/unistdio/u32-sprintf.c: New file.
33331         * lib/unistdio/u32-vasnprintf.c: New file.
33332         * lib/unistdio/u32-vasprintf.c: New file.
33333         * lib/unistdio/u32-vsnprintf.c: New file.
33334         * lib/unistdio/u32-vsprintf.c: New file.
33335         * lib/unistdio/u32-u32-asnprintf.c: New file.
33336         * lib/unistdio/u32-u32-asprintf.c: New file.
33337         * lib/unistdio/u32-u32-snprintf.c: New file.
33338         * lib/unistdio/u32-u32-sprintf.c: New file.
33339         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33340         * lib/unistdio/u32-u32-vasprintf.c: New file.
33341         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33342         * lib/unistdio/u32-u32-vsprintf.c: New file.
33343         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33344         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33345         * tests/unistdio/test-ulc-printf1.h: New file.
33346         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33347         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33348         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33349         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33350         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33351         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33352         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33353         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33354         * tests/unistdio/test-u8-asnprintf1.c: New file.
33355         * tests/unistdio/test-u8-asnprintf1.h: New file.
33356         * tests/unistdio/test-u8-printf1.h: New file.
33357         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33358         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33359         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33360         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33361         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33362         * tests/unistdio/test-u8-vasprintf1.c: New file.
33363         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33364         * tests/unistdio/test-u8-vsprintf1.c: New file.
33365         * tests/unistdio/test-u16-asnprintf1.c: New file.
33366         * tests/unistdio/test-u16-asnprintf1.h: New file.
33367         * tests/unistdio/test-u16-printf1.h: New file.
33368         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33369         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33370         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33371         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33372         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33373         * tests/unistdio/test-u16-vasprintf1.c: New file.
33374         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33375         * tests/unistdio/test-u16-vsprintf1.c: New file.
33376         * tests/unistdio/test-u32-asnprintf1.c: New file.
33377         * tests/unistdio/test-u32-asnprintf1.h: New file.
33378         * tests/unistdio/test-u32-printf1.h: New file.
33379         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33380         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33381         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33382         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33383         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33384         * tests/unistdio/test-u32-vasprintf1.c: New file.
33385         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33386         * tests/unistdio/test-u32-vsprintf1.c: New file.
33387         * modules/unistdio/base: New file.
33388         * modules/unistdio/u-printf-args: New file.
33389         * modules/unistdio/ulc-asnprintf: New file.
33390         * modules/unistdio/ulc-asprintf: New file.
33391         * modules/unistdio/ulc-fprintf: New file.
33392         * modules/unistdio/ulc-printf-parse: New file.
33393         * modules/unistdio/ulc-snprintf: New file.
33394         * modules/unistdio/ulc-sprintf: New file.
33395         * modules/unistdio/ulc-vasnprintf: New file.
33396         * modules/unistdio/ulc-vasprintf: New file.
33397         * modules/unistdio/ulc-vfprintf: New file.
33398         * modules/unistdio/ulc-vsnprintf: New file.
33399         * modules/unistdio/ulc-vsprintf: New file.
33400         * modules/unistdio/u8-asnprintf: New file.
33401         * modules/unistdio/u8-asprintf: New file.
33402         * modules/unistdio/u8-printf-parse: New file.
33403         * modules/unistdio/u8-snprintf: New file.
33404         * modules/unistdio/u8-sprintf: New file.
33405         * modules/unistdio/u8-vasnprintf: New file.
33406         * modules/unistdio/u8-vasprintf: New file.
33407         * modules/unistdio/u8-vsnprintf: New file.
33408         * modules/unistdio/u8-vsprintf: New file.
33409         * modules/unistdio/u8-u8-asnprintf: New file.
33410         * modules/unistdio/u8-u8-asprintf: New file.
33411         * modules/unistdio/u8-u8-snprintf: New file.
33412         * modules/unistdio/u8-u8-sprintf: New file.
33413         * modules/unistdio/u8-u8-vasnprintf: New file.
33414         * modules/unistdio/u8-u8-vasprintf: New file.
33415         * modules/unistdio/u8-u8-vsnprintf: New file.
33416         * modules/unistdio/u8-u8-vsprintf: New file.
33417         * modules/unistdio/u16-asnprintf: New file.
33418         * modules/unistdio/u16-asprintf: New file.
33419         * modules/unistdio/u16-printf-parse: New file.
33420         * modules/unistdio/u16-snprintf: New file.
33421         * modules/unistdio/u16-sprintf: New file.
33422         * modules/unistdio/u16-vasnprintf: New file.
33423         * modules/unistdio/u16-vasprintf: New file.
33424         * modules/unistdio/u16-vsnprintf: New file.
33425         * modules/unistdio/u16-vsprintf: New file.
33426         * modules/unistdio/u16-u16-asnprintf: New file.
33427         * modules/unistdio/u16-u16-asprintf: New file.
33428         * modules/unistdio/u16-u16-snprintf: New file.
33429         * modules/unistdio/u16-u16-sprintf: New file.
33430         * modules/unistdio/u16-u16-vasnprintf: New file.
33431         * modules/unistdio/u16-u16-vasprintf: New file.
33432         * modules/unistdio/u16-u16-vsnprintf: New file.
33433         * modules/unistdio/u16-u16-vsprintf: New file.
33434         * modules/unistdio/u32-asnprintf: New file.
33435         * modules/unistdio/u32-asprintf: New file.
33436         * modules/unistdio/u32-printf-parse: New file.
33437         * modules/unistdio/u32-snprintf: New file.
33438         * modules/unistdio/u32-sprintf: New file.
33439         * modules/unistdio/u32-vasnprintf: New file.
33440         * modules/unistdio/u32-vasprintf: New file.
33441         * modules/unistdio/u32-vsnprintf: New file.
33442         * modules/unistdio/u32-vsprintf: New file.
33443         * modules/unistdio/u32-u32-asnprintf: New file.
33444         * modules/unistdio/u32-u32-asprintf: New file.
33445         * modules/unistdio/u32-u32-snprintf: New file.
33446         * modules/unistdio/u32-u32-sprintf: New file.
33447         * modules/unistdio/u32-u32-vasnprintf: New file.
33448         * modules/unistdio/u32-u32-vasprintf: New file.
33449         * modules/unistdio/u32-u32-vsnprintf: New file.
33450         * modules/unistdio/u32-u32-vsprintf: New file.
33451         * modules/unistdio/ulc-asnprintf-tests: New file.
33452         * modules/unistdio/ulc-vasnprintf-tests: New file.
33453         * modules/unistdio/ulc-vasprintf-tests: New file.
33454         * modules/unistdio/ulc-vsnprintf-tests: New file.
33455         * modules/unistdio/ulc-vsprintf-tests: New file.
33456         * modules/unistdio/u8-asnprintf-tests: New file.
33457         * modules/unistdio/u8-vasnprintf-tests: New file.
33458         * modules/unistdio/u8-vasprintf-tests: New file.
33459         * modules/unistdio/u8-vsnprintf-tests: New file.
33460         * modules/unistdio/u8-vsprintf-tests: New file.
33461         * modules/unistdio/u16-asnprintf-tests: New file.
33462         * modules/unistdio/u16-vasnprintf-tests: New file.
33463         * modules/unistdio/u16-vasprintf-tests: New file.
33464         * modules/unistdio/u16-vsnprintf-tests: New file.
33465         * modules/unistdio/u16-vsprintf-tests: New file.
33466         * modules/unistdio/u32-asnprintf-tests: New file.
33467         * modules/unistdio/u32-vasnprintf-tests: New file.
33468         * modules/unistdio/u32-vasprintf-tests: New file.
33469         * modules/unistdio/u32-vsnprintf-tests: New file.
33470         * modules/unistdio/u32-vsprintf-tests: New file.
33471         * MODULES.html.sh (Unicode string functions): Add the new modules.
33472
33473 2007-07-01  Bruno Haible  <bruno@clisp.org>
33474
33475         * lib/sprintf.c (sprintf): Limit the available length estimation,
33476         to avoid address wraparound.
33477         * lib/vsprintf.c (vsprintf): Likewise.
33478         * modules/sprintf-posix (Dependencies): Add stdint.
33479         * modules/vsprintf-posix (Dependencies): Likewise.
33480
33481 2007-07-01  Bruno Haible  <bruno@clisp.org>
33482
33483         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33484         Windows PATH as well. Conservative double-quoting. Comments.
33485
33486 2007-07-01  Bruno Haible  <bruno@clisp.org>
33487             Eric Blake  <ebb9@byu.net>
33488             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33489
33490         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33491         empty components in $PATH, denoting '.'.
33492
33493 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33494
33495         * gnulib-tool: Fix indentation.
33496         (func_create_megatestdir): Likewise.
33497         Report by Bruno Haible.
33498
33499 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33500
33501         Sync from Automake.
33502         * build-aux/gnupload: Fix shell portability issues with for loops.
33503         Report by Karl Berry.
33504
33505 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33506
33507         * build-aux/maint.mk (POURL): Use translationproject.org.
33508
33509 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33510             Bruno Haible  <bruno@clisp.org>
33511
33512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33513         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33514         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33515         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33516         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33517
33518 2007-06-27  Bruno Haible  <bruno@clisp.org>
33519
33520         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33521         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33522
33523 2007-06-26  Karl Berry  <karl@gnu.org>
33524
33525         * MODULES.html.sh: remove xreadlink-with-size.
33526
33527 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33530         method that I hope also handles the double-include problem noted
33531         by Bruno Haible in
33532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33533
33534 2007-06-23  Bruno Haible  <bruno@clisp.org>
33535
33536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33537         Don't let the 'mostlyclean' target fail if the last subdirectory could
33538         not be removed.
33539         Reported by Karl Berry.
33540
33541 2007-06-23  Bruno Haible  <bruno@clisp.org>
33542
33543         * gnulib-tool (echo): Add a speedier workaround for ksh.
33544         * tests/test-echo.sh: Likewise.
33545
33546 2007-06-23  Bruno Haible  <bruno@clisp.org>
33547
33548         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33549         * tests/test-echo.sh: Likewise.
33550
33551 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33552
33553         * gnulib-tool (IFS): Initialize early, so we don't set it to
33554         empty later.
33555         (self_abspathname): Rewrite algorithm to set it, reindent.
33556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33557         (func_create_megatestdir): Merge some sed scripts.
33558
33559 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33560
33561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33562         exposed by Sun Studio 11 cc on Solaris 8.
33563
33564 2007-06-22  Bruno Haible  <bruno@clisp.org>
33565
33566         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33567         backslashes.
33568         * tests/test-echo.sh: New file.
33569
33570 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33571
33572         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33573         simplify `sed_replace_build_aux' scripts, they are portable but
33574         echoing them with `echo' is not.
33575         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33576
33577 2007-06-21  Karl Berry  <karl@gnu.org>
33578
33579         * config/srclist.txt: guess we can't handle the licenses via
33580         srclist at the moment.
33581
33582 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33583
33584         * MODULES.html.sh: Add include_next.
33585         * modules/include_next: New file.
33586
33587 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33588
33589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33590         INCLUDE_NEXT.
33591         (gl_CHECK_NEXT_HEADERS): New macro.
33592         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33593         the obsolescent gl_ABSOLUTE_HEADER.
33594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33595         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33596         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33597         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33598         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33599         * m4/math_h.m4 (gl_MATH_H): Likewise.
33600         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33601         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33602         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33604         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33605         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33606         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33610         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33612         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33613         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33614         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33616         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33617         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33618         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33619         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33620         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33621         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33622         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33623         * lib/float_.h: Likewise.
33624         * lib/inttypes_.h: Likewise.
33625         * lib/math_.h: Likewise.
33626         * lib/search_.h: Likewise.
33627         * lib/signal_.h: Likewise.
33628         * lib/stdint_.h: Likewise.
33629         * lib/stdio_.h: Likewise.
33630         * lib/stdlib_.h: Likewise.
33631         * lib/string_.h: Likewise.
33632         * lib/sys_stat_.h: Likewise.
33633         * lib/sys_time_.h: Likewise.
33634         * lib/time_.h: Likewise.
33635         * lib/unistd_.h: Likewise.
33636         * lib/wchar_.h: Likewise.
33637         * lib/wctype_.h: Likewise.
33638         * lib/dirent_.h: Likewise.
33639         * lib/iconv_.h: Likewise.
33640         * lib/locale_.h: Likewise.
33641         * lib/netinet_in_.h: Likewise.
33642         * lib/sys_select_.h: Likewise.
33643         * lib/sys_socket_.h: Likewise.
33644         * lib/sysexits_.h: Likewise.
33645         * modules/fcntl (Depends-on): Depend on include_next, not
33646         absolute_header.
33647         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33648         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33649         * modules/fchdir: Likewise.
33650         * modules/float: Likewise.
33651         * modules/iconv_open: Likewise.
33652         * modules/inttypes: Likewise.
33653         * modules/locale: Likewise.
33654         * modules/math: Likewise.
33655         * modules/netinet_in: Likewise.
33656         * modules/search: Likewise.
33657         * modules/signal: Likewise.
33658         * modules/stdint: Likewise.
33659         * modules/stdio: Likewise.
33660         * modules/stdlib: Likewise.
33661         * modules/string: Likewise.
33662         * modules/sys_select: Likewise.
33663         * modules/sys_socket: Likewise.
33664         * modules/sys_stat: Likewise.
33665         * modules/sys_time: Likewise.
33666         * modules/sysexits: Likewise.
33667         * modules/time: Likewise.
33668         * modules/unistd: Likewise.
33669         * modules/wchar: Likewise.
33670         * modules/wctype: Likewise.
33671         * modules/sys_stat: Change maintainer to "all".
33672         * modules/unistd: Likewise.
33673
33674 2007-06-20  Karl Berry  <karl@gnu.org>
33675
33676         * config/srclist.txt: track www changes in license files.
33677
33678 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33679
33680         * build-aux/bootstrap: Remove stray dot.
33681         Make sure build_aux settings are honored when linking
33682         gnulib_extra_files.
33683
33684 2007-06-19  Eric Blake  <ebb9@byu.net>
33685
33686         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33687         Allow compilation on cygwin.
33688
33689 2007-06-19  Jim Meyering  <jim@meyering.net>
33690
33691         xreadlink-with-size: Remove module.  No longer used.
33692         Ex-callers now use xreadlink or mreadlink-with-size.
33693         * modules/xreadlink-with-size: Remove module.
33694         * lib/xreadlink-with-size.c: Remove file.
33695         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33696         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33697         just before the function definition *is* accurate.
33698
33699         Eliminate one way canonicalize_filename_mode could exit.
33700         * lib/canonicalize.c (canonicalize_filename_mode):
33701         Use mreadlink_with_size, not xreadlink_with_size.
33702
33703 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33704
33705         Detect porting problems to FreeBSD/arm, which has time_t wider than
33706         long int.  Original problem reported for GNU diff by Xin Li in
33707         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33708         * modules/getdate (Depends-on): Add intprops, verify.
33709         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33710         is an integer type no wider than long int.
33711
33712 2007-06-18  Jim Meyering  <jim@meyering.net>
33713
33714         New module: mreadlink-with-size.
33715         * MODULES.html.sh: Add mreadlink-with-size.
33716         * modules/mreadlink-with-size: New module
33717         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33718         not xreadlink-with-size.
33719         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33720
33721 2007-06-16  Bruno Haible  <bruno@clisp.org>
33722
33723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33724         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33725         Reported by Gary V. Vaughan <gary@gnu.org>.
33726
33727 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33728
33729         Revamp lchown so that it lives in unistd.h where it belongs.
33730         * lib/lchown.h: Remove.
33731         * lib/dirchownmod.c: Don't include lib/lchown.h.
33732         * lib/fchownat.c: Likewise.
33733         * lib/openat.c: Likewise.
33734         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33735         does not follow symlinks.
33736         (EOPNOTSUPP): Define if not defined.
33737         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33738         is defined to 0.
33739         (lchown): New decl.
33740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33741         Do not check for lchown decl.
33742         Set REPLACE_LCHOWN.
33743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33744         REPLACE_LCHOWN.
33745         * modules/chown: Make it clear it follows symlinks.
33746         * modules/lchown: Make it clear it doesn't follow symlinks.
33747         (Files): Remove lib/lchown.h
33748         (Depends-on): Add unistd.
33749         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33750         (Include): Include <unistd.h>, not "lchown.h".
33751         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33752         REPLACE_LCHOWN.
33753
33754 2007-06-15  Jim Meyering  <jim@meyering.net>
33755
33756         Change license (GPL to LGPL) of fsusage and dependents.
33757         * modules/fsusage (License): Change to LGPL.
33758         * modules/full-read (License): Likewise.
33759         * modules/full-write (License): Likewise.
33760         * modules/safe-read (License): Likewise.
33761         * modules/safe-write (License): Likewise.
33762
33763 2007-06-14  Ben Pfaff  <blp@gnu.org>
33764
33765         Missing part of allocsa -> malloca transition.
33766         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33767         gl_MALLOCA.
33768
33769 2007-06-12  Bruno Haible  <bruno@clisp.org>
33770
33771         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33772         to ia64, x86_64, i386.
33773         Reported by Eric Blake.
33774
33775 2007-06-12  Bruno Haible  <bruno@clisp.org>
33776
33777         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33778         cross-compiling to x86_64.
33779
33780 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33781
33782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33783         glitch reported by Ralf Wildenhues in
33784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33785
33786         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33787         Vin Shelton.
33788
33789 2007-06-11  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33792         replacement string.
33793         Reported by Eric Blake.
33794
33795 2007-06-10  Bruno Haible  <bruno@clisp.org>
33796
33797         Prepare vasnprintf code for use with Unicode strings.
33798         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33799         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33800         TYPE_U32_STRING.
33801         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33802         a_u32_string variants.
33803         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33804         * lib/printf-args.c: Don't include config.h and the specification
33805         header if PRINTF_FETCHARGS is already defined.
33806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33807         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33808         TYPE_U16_STRING, TYPE_U32_STRING.
33809         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33810         u16_directive, u16_directives, u32_directive, u32_directives): New
33811         types.
33812         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33813         New declarations.
33814         * lib/printf-parse.c: Don't include config.h and the specification
33815         header if PRINTF_PARSE is already defined. Eliminate the set of
33816         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33817         them now. Include c-ctype.h.
33818         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33819         directive and CHAR_T_ONLY_ASCII.
33820         * lib/vasnprintf.c: Don't include config.h and the specification header
33821         if VASNPRINTF is already defined.
33822         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33823         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33824         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33825         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33826         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33827         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33828         code accordingly.
33829         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33830         pad_ourselves also in this case, with the 'c' and 's' directives, and
33831         with a different notion of "width".
33832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33833
33834 2007-06-10  Bruno Haible  <bruno@clisp.org>
33835
33836         * modules/unistr/u32-mbsnlen: New file.
33837         * lib/unistr/u32-mbsnlen.c: New file.
33838
33839         * modules/unistr/u16-mbsnlen: New file.
33840         * lib/unistr/u16-mbsnlen.c: New file.
33841
33842         * modules/unistr/u8-mbsnlen: New file.
33843         * lib/unistr/u8-mbsnlen.c: New file.
33844
33845         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33846         declarations.
33847
33848 2007-06-10  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/string_.h (mbsnlen): New declaration.
33851         * lib/mbsnlen.c: New file.
33852         * m4/mbsnlen.m4: New file.
33853         * modules/mbsnlen: New file.
33854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33855         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33856         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33857
33858 2007-06-10  Bruno Haible  <bruno@clisp.org>
33859
33860         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33861
33862 2007-06-10  Bruno Haible  <bruno@clisp.org>
33863
33864         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33865         * lib/mbuiter.h: Likewise.
33866
33867 2007-06-10  Bruno Haible  <bruno@clisp.org>
33868
33869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33870         declaration.
33871
33872 2007-06-10  Karl Berry  <karl@gnu.org>
33873
33874         * config/srclist.txt: remove gettext entries, Bruno prefers
33875         to update individually.
33876
33877 2007-06-10  Bruno Haible  <bruno@clisp.org>
33878
33879         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33880         'maxlen'. Ensure only length + width bytes are allocated, not
33881         length + 1 + width.
33882
33883 2007-06-09  Bruno Haible  <bruno@clisp.org>
33884
33885         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33886         (CHAR_T): Remove macro.
33887         (VASNPRINTF): Update.
33888
33889 2007-06-09  Bruno Haible  <bruno@clisp.org>
33890
33891         * MODULES.html.sh (Unicode string functions): Add the new modules.
33892
33893         * modules/uniconv/u32-conv-to-enc: New file.
33894         * lib/uniconv/u32-conv-to-enc.c: New file.
33895         * modules/uniconv/u32-conv-to-enc-tests: New file.
33896         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33897
33898         * modules/uniconv/u16-conv-to-enc: New file.
33899         * lib/uniconv/u16-conv-to-enc.c: New file.
33900         * lib/uniconv/u-conv-to-enc.h: New file.
33901         * modules/uniconv/u16-conv-to-enc-tests: New file.
33902         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33903
33904         * modules/uniconv/u8-conv-to-enc: New file.
33905         * lib/uniconv/u8-conv-to-enc.c: New file.
33906         * modules/uniconv/u8-conv-to-enc-tests: New file.
33907         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33908
33909         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33910         u32_conv_to_encoding): New declarations.
33911
33912 2007-06-09  Bruno Haible  <bruno@clisp.org>
33913
33914         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33915
33916 2007-06-09  Bruno Haible  <bruno@clisp.org>
33917
33918         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33919         * modules/malloca: Renamed from modules/allocsa, updated.
33920         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33921         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33922         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33923         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33924         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33925         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33926         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33927         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33928         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33929         * modules/c-strcasestr (Depends-on): Update.
33930         * lib/c-strcasestr.c: Update.
33931         * modules/c-strstr (Depends-on): Update.
33932         * lib/c-strstr.c: Update.
33933         * modules/canonicalize-lgpl (Depends-on): Update.
33934         * lib/canonicalize-lgpl.c: Update.
33935         * modules/clean-temp (Depends-on): Update.
33936         * lib/clean-temp.c: Update.
33937         * modules/csharpcomp (Depends-on): Update.
33938         * lib/csharpcomp.c: Update.
33939         * modules/csharpexec (Depends-on): Update.
33940         * lib/csharpexec.c: Update.
33941         * modules/javacomp (Depends-on): Update.
33942         * lib/javacomp.c: Update.
33943         * modules/javaexec (Depends-on): Update.
33944         * lib/javaexec.c: Update.
33945         * modules/mbscasestr (Depends-on): Update.
33946         * lib/mbscasestr.c: Update.
33947         * modules/mbsstr (Depends-on): Update.
33948         * lib/mbsstr.c: Update.
33949         * modules/setenv (Depends-on): Update.
33950         * lib/setenv.c: Update.
33951         * modules/strcasestr (Depends-on): Update.
33952         * lib/strcasestr.c: Update.
33953         * modules/striconveha (Depends-on): Update.
33954         * lib/striconveha.c: Update.
33955         * modules/relocatable-prog-wrapper (Files): Update.
33956         * lib/relocwrapper.c: Update.
33957         * build-aux/install-reloc: Update.
33958         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33959
33960 2007-06-08  Bruno Haible  <bruno@clisp.org>
33961
33962         Port to uClibc.
33963         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33964         * lib/fpurge.c (fpurge): Likewise.
33965         * lib/freading.c (freading): Likewise.
33966         * lib/fseeko.c (rpl_fseeko): Likewise.
33967         * lib/fseterr.c (fseterr): Likewise.
33968         * lib/fwriting.c (fwriting): Likewise.
33969         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33970
33971 2007-06-08  Bruno Haible  <bruno@clisp.org>
33972
33973         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33974         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33975         * modules/gettext (Files): Add m4/intlmacosx.m4.
33976
33977 2007-06-07  Bruno Haible  <bruno@clisp.org>
33978
33979         * modules/localename-tests: New file.
33980         * tests/test-localename.c: New file.
33981
33982         New module 'localename'.
33983         * lib/localename.h: New file.
33984         * lib/localename.c: New file, from GNU gettext.
33985         * m4/localename.m4: New file.
33986         * modules/localename: New file.
33987
33988 2007-06-07  Bruno Haible  <bruno@clisp.org>
33989
33990         Work around the lack of <wchar.h> on some builds of uClibc.
33991         * doc/headers/wchar.texi: Update.
33992         * lib/wchar_.h: Include <wchar.h> only if it exists.
33993         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33994         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33995         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33996         doesn't exist.
33997         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33998         * modules/mbfile (Depends-on): Add wchar.
33999         * modules/mbiter (Depends-on): Likewise.
34000         * modules/mbuiter (Depends-on): Likewise.
34001         Reported by Simon Josefsson.
34002
34003 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34004
34005         Work around problem reported by Steven M. Schweda in
34006         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34007         Tru64 5.1B with the Compaq compiler environment installed declares
34008         an 'isblank' function but does not define it in the C library.
34009         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34010         * lib/regex_internal.h (isblank): Likewise.
34011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34012         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34013
34014 2007-06-05  Bruno Haible  <bruno@clisp.org>
34015
34016         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34017         ia64.
34018         * modules/printf-safe: New file.
34019         * modules/fprintf-posix (Depends-on): Add printf-safe.
34020         * modules/printf-posix (Depends-on): Likewise.
34021         * modules/snprintf-posix (Depends-on): Likewise.
34022         * modules/sprintf-posix (Depends-on): Likewise.
34023         * modules/vasnprintf-posix (Depends-on): Likewise.
34024         * modules/vasprintf-posix (Depends-on): Likewise.
34025         * modules/vfprintf-posix (Depends-on): Likewise.
34026         * modules/vprintf-posix (Depends-on): Likewise.
34027         * modules/vsnprintf-posix (Depends-on): Likewise.
34028         * modules/vsprintf-posix (Depends-on): Likewise.
34029         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34030         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34031         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34032         "no" on i386, x86_64, ia64.
34033         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34034         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34035         on i386, x86_64, ia64.
34036         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34038         on i386, x86_64, ia64.
34039         * tests/test-vasnprintf-posix.c: Include float.h.
34040         (LDBL80_WORDS): New macro.
34041         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34042         on i386, x86_64, ia64.
34043         * tests/test-vasprintf-posix.c: Include float.h.
34044         (LDBL80_WORDS): New macro.
34045         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34046         on i386, x86_64, ia64.
34047         * tests/test-snprintf-posix.c: Include float.h.
34048         * tests/test-sprintf-posix.c: Likewise.
34049         * tests/test-vsnprintf-posix.c: Likewise.
34050         * tests/test-vsprintf-posix.c: Likewise.
34051
34052 2007-06-05  Bruno Haible  <bruno@clisp.org>
34053
34054         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34056         non-IEEE numbers on i386, x86_64, ia64.
34057         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34058         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34059         * tests/test-isnanl.h: Include float.h.
34060         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34061
34062 2007-06-05  Bruno Haible  <bruno@clisp.org>
34063
34064         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34065         also the %a / %A. Handle the %a / %A code before this extra handling.
34066
34067 2007-06-05  Bruno Haible  <bruno@clisp.org>
34068
34069         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34070         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34071
34072 2007-06-05  Bruno Haible  <bruno@clisp.org>
34073
34074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34075         typo in variable name.
34076
34077 2007-06-05  Eric Blake  <ebb9@byu.net>
34078
34079         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34080         Reported by Simon Josefsson.
34081
34082 2007-06-04  Bruno Haible  <bruno@clisp.org>
34083
34084         Avoid test failures on some PowerPC platforms.
34085         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34086         Define differently for PowerPC.
34087         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34088         Reported by Gary V. Vaughan <gary@gnu.org>.
34089
34090 2007-06-02  Bruno Haible  <bruno@clisp.org>
34091
34092         Fix test-stdint failure on FreeBSD/ia64.
34093         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34094         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34095         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34096         * doc/headers/stdint.texi: Update.
34097
34098 2007-06-01  Bruno Haible  <bruno@clisp.org>
34099
34100         * tests/test-binary-io.c (main): Pass a third argument to open().
34101         Reported by Gary V. Vaughan <gary@gnu.org>.
34102
34103 2007-06-01  Bruno Haible  <bruno@clisp.org>
34104
34105         * doc/functions/frexpl.texi: Update for mingw.
34106
34107 2007-06-01  Bruno Haible  <bruno@clisp.org>
34108
34109         * tests/test-lseek.c (main): Disable test of errno for invalid third
34110         argument.
34111         * doc/functions/lseek.texi: Update.
34112         Reported by Gary V. Vaughan <gary@gnu.org>.
34113
34114 2007-05-28  Bruno Haible  <bruno@clisp.org>
34115
34116         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34117
34118 2007-05-31  Eric Blake  <ebb9@byu.net>
34119
34120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34121         cross compiling.
34122
34123 2007-05-30  Eric Blake  <ebb9@byu.net>
34124         and Bruno Haible  <bruno@clisp.org>
34125
34126         Work around mingw test failures exposed by m4-1.4.9b.
34127         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34128         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34129         moment.
34130
34131 2007-05-30  Bruno Haible  <bruno@clisp.org>
34132
34133         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34134         assuming that they are closed. Needed on HP-UX 11.
34135
34136 2007-05-29  Bruno Haible  <bruno@clisp.org>
34137
34138         Fix a problem with #include_next.
34139         * lib/dirent_.h: Split the double-inclusion guard.
34140         * lib/fcntl_.h: Likewise.
34141         * lib/float_.h: Likewise.
34142         * lib/iconv_.h: Likewise.
34143         * lib/inttypes_.h: Likewise.
34144         * lib/locale_.h: Likewise.
34145         * lib/math_.h: Likewise.
34146         * lib/netinet_in_.h: Likewise.
34147         * lib/search_.h: Likewise.
34148         * lib/signal_.h: Likewise.
34149         * lib/stdint_.h: Likewise.
34150         * lib/stdio_.h: Likewise.
34151         * lib/stdlib_.h: Likewise.
34152         * lib/string_.h: Likewise.
34153         * lib/sys_select_.h: Likewise.
34154         * lib/sys_socket_.h: Likewise.
34155         * lib/sys_stat_.h: Likewise.
34156         * lib/sys_time_.h: Likewise.
34157         * lib/sysexits_.h: Likewise.
34158         * lib/time_.h: Likewise.
34159         * lib/unistd_.h: Likewise.
34160         * lib/wchar_.h: Likewise.
34161         * lib/wctype_.h: Likewise.
34162
34163 2007-05-29  Bruno Haible  <bruno@clisp.org>
34164
34165         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34166         for the moment.
34167
34168 2007-05-29  Bruno Haible  <bruno@clisp.org>
34169
34170         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34171         invocation.
34172         Reported by Eric Blake.
34173
34174 2007-05-29  Bruno Haible  <bruno@clisp.org>
34175
34176         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34177         compiling case.
34178
34179 2007-05-29  Eric Blake  <ebb9@byu.net>
34180             Bruno Haible  <bruno@clisp.org>
34181
34182         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34183         cross compiles.
34184
34185 2007-05-28  Eric Blake  <ebb9@byu.net>
34186
34187         * modules/closein-tests (test_closein_LDADD): Support test on
34188         cygwin with libtool.
34189
34190 2007-05-28  Bruno Haible  <bruno@clisp.org>
34191
34192         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34193         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34194         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34195         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34198         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34199         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34200         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34201
34202 2007-05-28  Eric Blake  <ebb9@byu.net>
34203
34204         Unconditionally include <config.h> in unit tests.
34205         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34206         * tests/test-allocsa.c, tests/test-arcfour.c,
34207         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34208         tests/test-array_list.c, tests/test-array_oset.c,
34209         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34210         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34211         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34212         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34213         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34214         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34215         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34216         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34217         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34218         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34219         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34220         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34221         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34222         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34223         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34224         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34225         test-md5.c, test-memmem.c, test-printf-posix.c,
34226         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34227         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34228         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34229         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34230         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34231         test-vasnprintf-posix2.c, test-vasnprintf.c,
34232         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34233         test-vfprintf-posix.c, test-vprintf-posix.c,
34234         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34235         test-xvasprintf.c: Likewise.
34236
34237 2007-05-28  Bruno Haible  <bruno@clisp.org>
34238
34239         * gnulib-tool (func_import): Remember the --with-tests command-line
34240         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34241         Reported by Eric Blake.
34242
34243 2007-05-28  Bruno Haible  <bruno@clisp.org>
34244
34245         * modules/ftell-tests: New file.
34246         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34247         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34248
34249         * lib/ftell.c: New file.
34250         * modules/ftell: New file.
34251         * m4/ftell.m4: New file.
34252         * doc/functions/ftell.texi: Update.
34253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34254         REPLACE_FTELL.
34255         * lib/stdio_.h (rpl_ftell): New declaration.
34256         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34257         REPLACE_FTELL.
34258
34259 2007-05-28  Eric Blake  <ebb9@byu.net>
34260
34261         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34262
34263 2007-05-28  Bruno Haible  <bruno@clisp.org>
34264
34265         * modules/fseek-tests: New file.
34266         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34267         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34268
34269         * lib/fseek.c: New file.
34270         * modules/fseek: New file.
34271         * m4/fseek.m4: New file.
34272         * doc/functions/fseek.texi: Update.
34273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34274         REPLACE_FSEEK.
34275         * lib/stdio_.h (rpl_fseek): New declaration.
34276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34277         REPLACE_FSEEK.
34278
34279 2007-05-28  Bruno Haible  <bruno@clisp.org>
34280
34281         * lib/stdio_.h (fflush): More comments.
34282
34283 2007-05-28  Bruno Haible  <bruno@clisp.org>
34284
34285         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34286         runtime test.
34287
34288 2007-05-28  Eric Blake  <ebb9@byu.net>
34289
34290         Improve lseek module.
34291         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34292         * lib/unistd_.h (lseek): Scale back link warning message.
34293         * tests/test-lseek.c: Beef up test.
34294         * tests/test-lseek.sh: Exercise more facets of lseek.
34295         Reported by Bruno Haible.
34296
34297 2007-05-28  Bruno Haible  <bruno@clisp.org>
34298
34299         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34300         to define.
34301
34302 2007-05-27  Bruno Haible  <bruno@clisp.org>
34303
34304         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34305
34306 2007-05-27  Bruno Haible  <bruno@clisp.org>
34307
34308         * modules/openmp: New file.
34309         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34310         Noah Misch.
34311
34312 2007-05-26  Bruno Haible  <bruno@clisp.org>
34313
34314         * modules/chdir-long (Depends-on): Add fchdir.
34315         * modules/chdir-safer (Depends-on): Likewise.
34316         * modules/fts (Depends-on): Likewise.
34317         * modules/fts-lgpl (Depends-on): Likewise.
34318         * modules/openat (Depends-on): Likewise.
34319         * modules/savewd (Depends-on): Likewise.
34320
34321 2007-05-24  Eric Blake  <ebb9@byu.net>
34322
34323         Fix lseek on mingw.
34324         * modules/lseek: New module.
34325         * m4/lseek.m4: New file.
34326         * lib/lseek.c: New file.
34327         * modules/lseek-tests: New file.
34328         * tests/test-lseek.c: New file.
34329         * tests/test-lseek.sh: New file.
34330         * MODULES.html.sh: Document lseek module.
34331         * modules/fflush (Depends-on): Add lseek, fseeko.
34332         * modules/fseeko (Depends-on): Likewise.
34333         * modules/ftello (Depends-on): Likewise.
34334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34335         broken.
34336         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34337         broken.
34338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34339         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34340         * lib/ftello.c (rpl_ftello): Likewise.
34341         * tests/test-fseeko.c (main): Test this.
34342         * tests/test-fseeko.sh: Likewise.
34343         * tests/test-ftello.c (main): Likewise.
34344         * tests/test-ftello.sh: Likewise.
34345         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34346         implies replacing fseek.
34347         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34348         HAVE_FTELLO.
34349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34350         * modules/unistd (Makefile.am): Likewise.
34351         * lib/unistd_.h (lseek): Declare a replacement.
34352         * doc/functions/lseek.texi (lseek): Document this fix.
34353         * doc/functions/fseek.texi (fseek): Likewise.
34354         * doc/functions/ftell.texi (ftell): Likewise.
34355
34356 2007-05-24  Bruno Haible  <bruno@clisp.org>
34357
34358         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34359         in the printed representation of a NaN.
34360         * tests/test-vasprintf-posix.c (test_function): Likewise.
34361         * tests/test-snprintf-posix.h (test_function): Likewise.
34362         * tests/test-sprintf-posix.h (test_function): Likewise.
34363         Reported by Eric Blake.
34364
34365 2007-05-23  Eric Blake  <ebb9@byu.net>
34366
34367         Fix fseeko/ftello on cygwin 1.5.24.
34368         * doc/functions/fseeko.texi (fseeko): Document the fix.
34369         * doc/functions/ftello.texi (ftello): Document the fix.
34370         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34371         * doc/functions/stdout.text (stdout): New file.
34372         * doc/functions/stderr.text (stderr): New file.
34373         * doc/gnulib.texi (Function Substitutes): Use new files.
34374         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34375         prior to 1.7.0.
34376         * tests/test-ftello.c (main): Likewise for ftello.
34377         * tests/test-fseeko.sh: New file.
34378         * tests/test-ftello.sh: New file.
34379         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34380         with seekable stdin.
34381         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34383         (gl_REPLACE_FSEEKO): New macro.
34384         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34385         * modules/fseeko (Files): Distribute fseeko.c.
34386         * modules/ftello (Files): Distribute ftello.c.
34387         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34388         mode.
34389         * lib/ftello.c (rpl_ftello): New file.
34390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34391         fseeko, ftello.
34392         (gl_STDIN_LARGE_OFFSET): New macro.
34393         * modules/stdio (Makefile.am): Perform the replacement.
34394         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34395
34396 2007-05-23  Bruno Haible  <bruno@clisp.org>
34397
34398         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34399         GNULIB_POSIXCHECK is defined.
34400
34401 2007-05-21  Bruno Haible  <bruno@clisp.org>
34402
34403         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34404         Check also the output for NaN arguments. When cross-compiling, guess
34405         no on IRIX.
34406         * lib/vasnprintf.c: Update comments.
34407         * tests/test-vasnprintf-posix.c (strisnan): New function.
34408         (test_function): Use it.
34409         * tests/test-vasprintf-posix.c (strisnan): New function.
34410         (test_function): Use it.
34411         * tests/test-snprintf-posix.h (strisnan): New function.
34412         (test_function): Use it.
34413         * tests/test-sprintf-posix.h (strisnan): New function.
34414         (test_function): Use it.
34415         Reported by Eric Blake.
34416
34417 2007-05-20  Bruno Haible  <bruno@clisp.org>
34418
34419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34420         numbers that fails on BeOS.
34421         * doc/functions/frexpl.texi: Update.
34422
34423 2007-05-20  Jim Meyering  <jim@meyering.net>
34424
34425         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34426         forced upon us by glibc-2.6.
34427
34428 2007-05-20  Bruno Haible  <bruno@clisp.org>
34429
34430         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34431         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34432         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34433         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34434         NEED_PRINTF_INFINITE.
34435         (is_infinitel): New function.
34436         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34438         gl_PREREQ_VASNPRINTF_INFINITE.
34439         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34441         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34442         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34443         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34444         gl_PREREQ_VASNPRINTF_INFINITE.
34445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34452         * doc/functions/fprintf.texi: Update.
34453         * doc/functions/printf.texi: Update.
34454         * doc/functions/snprintf.texi: Update.
34455         * doc/functions/sprintf.texi: Update.
34456         * doc/functions/vfprintf.texi: Update.
34457         * doc/functions/vprintf.texi: Update.
34458         * doc/functions/vsnprintf.texi: Update.
34459         * doc/functions/vsprintf.texi: Update.
34460
34461 2007-05-20  Bruno Haible  <bruno@clisp.org>
34462
34463         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34464         was not found in libc.
34465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34466
34467 2007-05-20  Bruno Haible  <bruno@clisp.org>
34468
34469         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34470         printed as "-nan" instead of "nan".
34471         * tests/test-vasprintf-posix.c (test_function): Likewise.
34472         * tests/test-snprintf-posix.h (test_function): Likewise.
34473         * tests/test-sprintf-posix.h (test_function): Likewise.
34474         Needed for HP-UX 11.
34475
34476 2007-05-20  Jim Meyering  <jim@meyering.net>
34477
34478         Fix buggy test for the fchownat-deref bug.
34479         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34480         symlink required for the run-test.  Without it, this test would
34481         always declare that fchownat doesn't work, and client code would
34482         unnecessarily use the replacement function with fixed libc.
34483         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34484         Reported by Greg Schafer.
34485
34486 2007-05-19  Bruno Haible  <bruno@clisp.org>
34487
34488         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34489         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34490         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34491         Needed for IRIX 6.5 and Solaris 2.5.1.
34492
34493 2007-05-19  Bruno Haible  <bruno@clisp.org>
34494
34495         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34496         (test_function): Skip tests involving -0.0 on platforms where
34497         -0.0 = 0.0.
34498         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34499         (test_function): Skip tests involving -0.0 on platforms where
34500         -0.0 = 0.0.
34501         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34502         (test_function): Skip tests involving -0.0 on platforms where
34503         -0.0 = 0.0.
34504         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34505         (test_function): Skip tests involving -0.0 on platforms where
34506         -0.0 = 0.0.
34507         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34508         tests.
34509         * tests/test-printf-posix.h (test_function): Likewise.
34510         * tests/test-printf-posix.output: Remove all -0.0 related results.
34511         Needed for IRIX 6.5.
34512
34513 2007-05-19  Bruno Haible  <bruno@clisp.org>
34514
34515         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34516         printed as "nan0x7fffffff" instead of "nan".
34517         * tests/test-vasprintf-posix.c (test_function): Likewise.
34518         * tests/test-snprintf-posix.h (test_function): Likewise.
34519         * tests/test-sprintf-posix.h (test_function): Likewise.
34520         * tests/test-fprintf-posix.h (NaN): Remove macro.
34521         (test_function): Remove all NaN related tests.
34522         * tests/test-printf-posix.h (NaN): Remove macro.
34523         (test_function): Remove all NaN related tests.
34524         * tests/test-printf-posix.output: Remove all NaN related results.
34525         Needed for IRIX 6.5.
34526
34527 2007-05-19  Bruno Haible  <bruno@clisp.org>
34528
34529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34531
34532 2007-05-19  Bruno Haible  <bruno@clisp.org>
34533
34534         * lib/float_.h: New file.
34535         * m4/float_h.m4: New file.
34536         * modules/float: New file.
34537         * modules/isnanl (Dependencies): Add float.
34538         * modules/isnanl-nolibm (Dependencies): Likewise.
34539         * modules/mathl (Dependencies): Likewise.
34540         * modules/printf-frexpl (Dependencies): Likewise.
34541         * modules/signbit (Dependencies): Likewise.
34542         * modules/vasnprintf (Dependencies): Likewise.
34543         * doc/headers/float.texi: Update.
34544
34545 2007-05-19  Jim Meyering  <jim@meyering.net>
34546
34547         * lib/utimens.c (gl_futimens): Rename from futimens,
34548         now that glibc-2.6 declares futimens.
34549         * lib/utimens.h: Likewise.
34550
34551 2007-05-19  Bruno Haible  <bruno@clisp.org>
34552
34553         Avoid test failures on mingw.
34554         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34555         * tests/test-printf-posix.sh: Likewise.
34556         * tests/test-vfprintf-posix.sh: Likewise.
34557         * tests/test-vprintf-posix.sh: Likewise.
34558
34559 2007-05-19  Bruno Haible  <bruno@clisp.org>
34560
34561         Fix *printf result for NaN, Inf, -0.0 on mingw.
34562         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34563         * lib/vasnprintf.c: Include math.h and isnan.h.
34564         (is_infinite_or_zero): New function.
34565         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34566         values in the %f, %F, %e, %E, %g, %G directives.
34567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34569         gl_PRINTF_INFINITE and test its result. Invoke
34570         gl_PREREQ_VASNPRINTF_INFINITE.
34571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34578         * doc/functions/fprintf.texi: Update.
34579         * doc/functions/printf.texi: Update.
34580         * doc/functions/snprintf.texi: Update.
34581         * doc/functions/sprintf.texi: Update.
34582         * doc/functions/vfprintf.texi: Update.
34583         * doc/functions/vprintf.texi: Update.
34584         * doc/functions/vsnprintf.texi: Update.
34585         * doc/functions/vsprintf.texi: Update.
34586
34587 2007-05-19  Bruno Haible  <bruno@clisp.org>
34588
34589         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34590         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34591         Instead of multiplying with 10^k, set extra_zeroes to k.
34592         (scale10_round_long_double): Remove function.
34593
34594 2007-05-18  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34597         introduced on 2007-05-06.
34598
34599 2007-05-18  Bruno Haible  <bruno@clisp.org>
34600
34601         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34602         %g directives.
34603         * tests/test-vasprintf-posix.c (test_function): Likewise.
34604         * tests/test-snprintf-posix.h (test_function): Likewise.
34605         * tests/test-sprintf-posix.h (test_function): Likewise.
34606
34607 2007-05-18  Bruno Haible  <bruno@clisp.org>
34608
34609         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34610         (strmatch): New function.
34611         (test_function): Test the %f directive on numbers of various exponents.
34612         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34613         (strmatch): New function.
34614         (test_function): Test the %f directive on numbers of various exponents.
34615         * tests/test-snprintf-posix.h (strmatch): New function.
34616         (test_function): Test the %f directive on numbers of various exponents.
34617         * tests/test-sprintf-posix.h (strmatch): New function.
34618         (test_function): Test the %f directive on numbers of various exponents.
34619         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34620         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34621         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34622         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34623
34624 2007-05-18  Bruno Haible  <bruno@clisp.org>
34625
34626         Add support for 'long double' number output.
34627         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34628         * lib/vasnprintf.c: Include math.h and float+.h.
34629         (mp_limb_t): New type.
34630         (GMP_LIMB_BITS): New macro.
34631         (mp_twolimb_t): New type.
34632         (GMP_TWOLIMB_BITS): New macro.
34633         (mpn_t): New type.
34634         (multiply, divide, convert_to_decimal, decode_long_double,
34635         scale10_round_long_double, scale10_round_decimal_long_double,
34636         floorlog10l): New functions.
34637         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34638         for the %f, %F, %e, %E, %g, %G directives.
34639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34641         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34642         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34650         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34651         * modules/snprintf-posix (Depends-on): Likewise.
34652         * modules/sprintf-posix (Depends-on): Likewise.
34653         * modules/vasnprintf-posix (Depends-on): Likewise.
34654         * modules/vasprintf-posix (Depends-on): Likewise.
34655         * modules/vfprintf-posix (Depends-on): Likewise.
34656         * modules/vsnprintf-posix (Depends-on): Likewise.
34657         * modules/vsprintf-posix (Depends-on): Likewise.
34658         * modules/vasnprintf (Files): Add lib/float+.h.
34659         * doc/functions/fprintf.texi: Update.
34660         * doc/functions/printf.texi: Update.
34661         * doc/functions/snprintf.texi: Update.
34662         * doc/functions/sprintf.texi: Update.
34663         * doc/functions/vfprintf.texi: Update.
34664         * doc/functions/vprintf.texi: Update.
34665         * doc/functions/vsnprintf.texi: Update.
34666         * doc/functions/vsprintf.texi: Update.
34667
34668 2007-05-18  Bruno Haible  <bruno@clisp.org>
34669
34670         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34671
34672 2007-05-18  Bruno Haible  <bruno@clisp.org>
34673
34674         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34675         for printing 64-bit integers. Needed for mingw.
34676
34677 2007-05-18  Bruno Haible  <bruno@clisp.org>
34678
34679         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34680         gl_FUNC_FREXPL_WORKS.
34681         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34682
34683 2007-05-18  Bruno Haible  <bruno@clisp.org>
34684
34685         * modules/frexpl-nolibm-tests: New file.
34686
34687         * modules/frexpl-nolibm: New file.
34688         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34689
34690 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34691
34692         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34693         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34694         GCC 4.2, which otherwise issues a lot of warnings.
34695         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34696         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34697         Likewise.
34698         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34699         * modules/iconv_open (iconv.h): Likewise.
34700         * modules/locale (locale.h): Likewise.
34701         * modules/netinet_in (netinet/in.h): Likewise.
34702         * modules/sys_select (sys_select.h): Likewise.
34703         * modules/sys_socket (sys/socket.h): Likewise.
34704         * modules/sys_stat (sys/stat.h): Likewise.
34705         * modules/sysexits (sysexits.h): Likewise.
34706         * modules/unistd (unistd.h): Likewise.
34707
34708 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34709
34710         * modules/closein-tests (Makefile.am): Distribute
34711         `test-closein.sh'.
34712
34713 2007-05-17  Bruno Haible  <bruno@clisp.org>
34714
34715         * tests/test-printf-posix.output: Renamed from
34716         tests/test-fprintf-posix.out.
34717         * modules/fprintf-posix-tests: Update.
34718         * modules/printf-posix-tests: Update.
34719         * modules/vfprintf-posix-tests: Update.
34720         * modules/vprintf-posix-tests: Update.
34721         * tests/test-fprintf-posix.sh: Update.
34722         * tests/test-printf-posix.sh: Update.
34723         * tests/test-vfprintf-posix.sh: Update.
34724         * tests/test-vprintf-posix.sh: Update.
34725         Reported by Ralf Wildenhues.
34726
34727 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34728
34729         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34730         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34731         GCC 4.2, which otherwise issues a lot of warnings.
34732         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34733         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34734         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34735         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34736         it should no longer be needed.
34737         * lib/string_.h: Likewise.
34738         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34739         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34740         * modules/inttypes (inttypes.h): Likewise.
34741         * modules/math (math.h): Likewise.
34742         * modules/search (search.h): Likewise.
34743         * modules/signal (signal.h): Likewise.
34744         * modules/stdint (stdint.h): Likewise.
34745         * modules/stdio (stdio.h): Likewise.
34746         * modules/stdlib (stdlib.h): Likewise.
34747         * modules/string (string.h): Likewise.
34748         * modules/sys_time (sys/time.h): Likewise.
34749         * modules/time (time.h): Likewise.
34750         * modules/wchar (wchar.h): Likewise.
34751         * modules/wctype (wtype.h): Likewise.
34752
34753 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34754
34755         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34756
34757 2007-05-13  Bruno Haible  <bruno@clisp.org>
34758
34759         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34760         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34761         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34762         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34763         (gl_PREREQ_STRTOK_R): Don't require it here.
34764
34765 2007-05-13  Bruno Haible  <bruno@clisp.org>
34766
34767         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34768         when used in C++ mode.
34769
34770 2007-05-12  Bruno Haible  <bruno@clisp.org>
34771
34772         * lib/linebuffer.h: Tweak doc.
34773         * lib/linebuffer.c: Likewise.
34774
34775 2007-05-12  James Youngman  <jay@gnu.org>
34776
34777         * lib/linebuffer.c (readlinebuffer_delim): New function,
34778         like readlinebuffer, but use a caller-specified delimiter.
34779         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34780         as the delimiter.
34781         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34782
34783 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34784
34785         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34786         * modules/openat (Files): Remove openat-die.c.
34787         (Depends-on): Add openat-die.
34788         * modules/openat-die: New module.
34789
34790 2007-05-06  Bruno Haible  <bruno@clisp.org>
34791
34792         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34793         Update with info about Cygwin.
34794         * doc/functions/fprintf.texi: Update.
34795         * doc/functions/printf.texi: Update.
34796         * doc/functions/snprintf.texi: Update.
34797         * doc/functions/sprintf.texi: Update.
34798         * doc/functions/vfprintf.texi: Update.
34799         * doc/functions/vprintf.texi: Update.
34800         * doc/functions/vsnprintf.texi: Update.
34801         * doc/functions/vsprintf.texi: Update.
34802         Reported by Eric Blake.
34803
34804 2007-05-06  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34807         padding ourselves for the floating-point directives.
34808         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34811         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34812         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34820         * tests/test-snprintf-posix.h (test_function): Also check the width
34821         and some flags in the %f directive.
34822         * tests/test-sprintf-posix.h (test_function): Likewise.
34823         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34824         * tests/test-vasprintf-posix.c (test_function): Likewise.
34825         * doc/functions/fprintf.texi: Update.
34826         * doc/functions/printf.texi: Update.
34827         * doc/functions/snprintf.texi: Update.
34828         * doc/functions/sprintf.texi: Update.
34829         * doc/functions/vfprintf.texi: Update.
34830         * doc/functions/vprintf.texi: Update.
34831         * doc/functions/vsnprintf.texi: Update.
34832         * doc/functions/vsprintf.texi: Update.
34833
34834 2007-05-06  Bruno Haible  <bruno@clisp.org>
34835
34836         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34837         pass the ' flag character to sprintf or snprintf.
34838         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34841         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34842         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34850         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34851         flag.
34852         * tests/test-sprintf-posix.h (test_function): Likewise.
34853         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34854         * tests/test-vasprintf-posix.c (test_function): Likewise.
34855         * doc/functions/fprintf.texi: Update.
34856         * doc/functions/printf.texi: Update.
34857         * doc/functions/snprintf.texi: Update.
34858         * doc/functions/sprintf.texi: Update.
34859         * doc/functions/vfprintf.texi: Update.
34860         * doc/functions/vprintf.texi: Update.
34861         * doc/functions/vsnprintf.texi: Update.
34862         * doc/functions/vsprintf.texi: Update.
34863
34864 2007-05-01  Bruno Haible  <bruno@clisp.org>
34865
34866         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34867
34868 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34869
34870         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34871         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34872
34873 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34876         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34878
34879 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34880
34881         * lib/argp-help.c (struct hol_entry): New member `ord'.
34882         (HOL_ENTRY_PTRCMP): Use ord for comparison
34883         (hol_sort): Initialize ord.
34884
34885 2007-05-01  Bruno Haible  <bruno@clisp.org>
34886
34887         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34888         Reported by Eric Blake.
34889         * doc/gnulib.texi (Function Substitutes): Update.
34890
34891 2007-05-01  Bruno Haible  <bruno@clisp.org>
34892
34893         * doc/functions.texi: Remove file, now redundant through
34894         doc/functions/*.texi.
34895
34896 2007-05-01  Bruno Haible  <bruno@clisp.org>
34897
34898         * modules/argp (Depends-on): Add sleep.
34899
34900 2007-05-01  Bruno Haible  <bruno@clisp.org>
34901
34902         * modules/sleep-tests: New file.
34903         * tests/test-sleep.c: New file.
34904
34905         * modules/sleep: New file.
34906         * lib/sleep.c: New file.
34907         * m4/sleep.m4: New file.
34908         * lib/unistd_.h (sleep): New declaration.
34909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34910         HAVE_SLEEP.
34911         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34912         * doc/functions/sleep.texi: Document the sleep module.
34913
34914 2007-05-01  Bruno Haible  <bruno@clisp.org>
34915
34916         * lib/sigprocmask.h: Remove file.
34917         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34918         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34919         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34920         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34921         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34922         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34923         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34924         HAVE_SIGSET_T as a shell variable.
34925         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34926         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34927         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34928         (Depends-on): Add signal. Remove verify.
34929         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34930         (Include): Mention <signal.h> instead of sigprocmask.h.
34931         * NEWS: Mention the change.
34932         * lib/fatal-signal.c: Don't include sigprocmask.h.
34933
34934 2007-05-01  Bruno Haible  <bruno@clisp.org>
34935
34936         * modules/signal: New file.
34937         * lib/signal_.h: New file.
34938         * m4/signal_h.m4: New file.
34939
34940 2007-05-01  Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34943         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34944         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34945         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34946
34947 2007-05-01  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34950         configure time.
34951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34952         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34953         * modules/sys_stat (Makefile.am): Substitute their values into
34954         sys/stat.h.
34955
34956 2007-05-01  Bruno Haible  <bruno@clisp.org>
34957
34958         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34959         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34960         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34961
34962 2007-05-01  Bruno Haible  <bruno@clisp.org>
34963
34964         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34965         'assert' module here.
34966
34967 2007-05-01  Bruno Haible  <bruno@clisp.org>
34968
34969         * doc/functions/*.texi: New files.
34970         * doc/functions/google-ranking.txt: New file.
34971         * doc/gnulib.texi (Function Substitutes): New chapter.
34972         (ctime, inet_ntoa): Remove sections.
34973         * doc/ctime.texi: Remove file.
34974         * doc/inet_ntoa.texi: Remove file.
34975         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34976         dependencies.
34977         (%.info): New rule, specifying a --reference-limit.
34978
34979 2007-05-01  Bruno Haible  <bruno@clisp.org>
34980
34981         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34982
34983 2007-05-01  Bruno Haible  <bruno@clisp.org>
34984
34985         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34986         the portability of 'mkdir' to mingw systems.
34987
34988 2007-05-01  Bruno Haible  <bruno@clisp.org>
34989
34990         * doc/headers/google-ranking.txt: New file.
34991
34992 2007-04-30  Eric Blake  <ebb9@byu.net>
34993
34994         Prefer fseeko to fseek.
34995         * modules/getpass (Depends-on): Add fseeko.
34996         * lib/getpass.c (getpass): Use fseeko, not fseek.
34997
34998 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34999
35000         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35001         assumes the sorting is stable, while most qsort implementations
35002         are not.  Use argument addresses to ensure they never compare as
35003         equal.
35004
35005         * tests/test-argp-2.sh (usage-indent test): Fix output
35006         (func_compare): Restore diff options
35007         * tests/test-argp.c: Restore #include "progname.h"
35008
35009 2007-04-29  Bruno Haible  <bruno@clisp.org>
35010
35011         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35013         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35015         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35016         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35017         (TESTS, check_PROGRAMS): Add test-snprintf.
35018         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35019         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35020         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35021         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35022         assertions that fail on HP-UX, OSF/1, or IRIX.
35023         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35024
35025 2007-04-29  Bruno Haible  <bruno@clisp.org>
35026
35027         * MODULES.html.sh (posix_functions): Remove 'contents'.
35028
35029 2007-04-29  Karl Berry  <karl@gnu.org>
35030
35031         * config/srclist.txt (gendocs_template_min): new entry.
35032
35033 2007-04-29  Bruno Haible  <bruno@clisp.org>
35034
35035         Work around fpurge bug on BSD systems.
35036         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35038         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35039         fpurge to rpl_fpurge if the system already has this function.
35040         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35041         the case where the system already has this function. Correct invariants
35042         on BSD systems.
35043         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35044         BSD systems.
35045
35046 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35047
35048         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35049         proposed by Sven Verdoolaege.
35050
35051         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35052         options.
35053         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35054         (usage and help tests): Update
35055
35056 2007-04-29  Bruno Haible  <bruno@clisp.org>
35057
35058         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35059         Print more information in case of failure. Disable a test on BeOS.
35060
35061 2007-04-29  Bruno Haible  <bruno@clisp.org>
35062
35063         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35064         This helps debugging on systems on which no gdb is available.
35065
35066 2007-04-29  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/freading.h: Improve comments.
35069         * lib/fwriting.h: Likewise.
35070         * tests/test-freading.c (main): Don't check freading immediately after
35071         repositioning. Needed for glibc.
35072
35073 2007-04-29  Bruno Haible  <bruno@clisp.org>
35074
35075         * lib/freading.c (freading): Trivial simplification.
35076
35077 2007-04-28  Bruno Haible  <bruno@clisp.org>
35078
35079         * tests/test-fwriting.c (main): Also test the interaction between
35080         fflush and fwriting.
35081         * modules/fwriting-tests (Depends-on): Add fflush.
35082
35083         * tests/test-freading.c (main): Also test the interaction between
35084         fflush and freading.
35085         * modules/freading-tests (Depends-on): Add fflush.
35086
35087 2007-04-28  Bruno Haible  <bruno@clisp.org>
35088
35089         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35090         fseeko and ftello.
35091         Suggested by Eric Blake.
35092
35093 2007-04-28  Jim Meyering  <jim@meyering.net>
35094
35095         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35096         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35097         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35098
35099 2007-04-27  Eric Blake  <ebb9@byu.net>
35100
35101         * doc/headers/assert.texi (assert.h): Document assert module use.
35102
35103 2007-04-27  Bruno Haible  <bruno@clisp.org>
35104
35105         * doc/headers/*.texi: New files.
35106         * doc/gnulib.texi (Header File Substitutes): New chapter.
35107         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35108         dependencies.
35109         (standards.info ,standards.html, standards.dvi): Update dependencies.
35110         (mostlyclean, clean): New targets.
35111
35112 2007-04-27  Bruno Haible  <bruno@clisp.org>
35113
35114         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35115         * modules/sysexits (Files, Makefile.am): Update.
35116
35117         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35118         * modules/sys_socket (Files, Makefile.am): Update.
35119
35120         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35121         * modules/sys_stat (Files, Makefile.am): Update.
35122
35123 2007-04-27  Eric Blake  <ebb9@byu.net>
35124
35125         * lib/freading.h: Improve comments.
35126         * lib/fwriting.h: Likewise.
35127         * lib/fflush.c: Likewise.
35128
35129         Fix closein for mingw.
35130         * modules/closein-tests: Add tests for closein.
35131         * tests/test-closein.c: New file.
35132         * tests/test-closein.sh: Likewise.
35133         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35134         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35135
35136 2007-04-27  Bruno Haible  <bruno@clisp.org>
35137
35138         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35139         version is < 6.
35140         * lib/math_.h [__DECC]: Likewise.
35141         * lib/stdio_.h [__DECC]: Likewise.
35142         * lib/stdlib_.h [__DECC]: Likewise.
35143         * lib/string_.h [__DECC]: Likewise.
35144         * lib/time_.h [__DECC]: Likewise.
35145         * lib/wchar_.h [__DECC]: Likewise.
35146         * lib/wctype_.h [__DECC]: Likewise.
35147
35148 2007-04-27  Bruno Haible  <bruno@clisp.org>
35149
35150         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35151
35152 2007-04-27  Bruno Haible  <bruno@clisp.org>
35153
35154         * lib/fflush.c: Add comments.
35155         * modules/fpurge-tests (Depends-on): Add fflush.
35156         * modules/freadable-tests (Depends-on): Likewise.
35157         * modules/fwritable-tests (Depends-on): Likewise.
35158
35159 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35160
35161         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35162         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35163         Report by Bruno Haible <bruno@clisp.org>.
35164
35165 2007-04-26  Eric Blake  <ebb9@byu.net>
35166
35167         Fix fflush on mingw.
35168         * modules/fflush (Depends-on): Add freading.
35169         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35170         but unread data.
35171
35172 2007-04-26  Eric Blake  <ebb9@byu.net>
35173         and Bruno Haible  <bruno@clisp.org>
35174
35175         Implement freading and fwriting.
35176         * lib/freading.c: New file.
35177         * lib/freading.h: Likewise.
35178         * m4/freading.m4: Likewise.
35179         * modules/freading: Likewise.
35180         * modules/freading-tests: Likewise.
35181         * tests/test-freading.c: Likewise.
35182         * lib/fwriting.c: New file.
35183         * lib/fwriting.h: Likewise.
35184         * m4/fwriting.m4: Likewise.
35185         * modules/fwriting: Likewise.
35186         * modules/fwriting-tests: Likewise.
35187         * tests/test-fwriting.c: Likewise.
35188         * MODULES.html.sh (File stream based Input/Output): Mention them.
35189
35190 2007-04-26  Bruno Haible  <bruno@clisp.org>
35191
35192         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35193         'long' when we assume it.
35194         Suggested by Eric Blake.
35195
35196 2007-04-26  Bruno Haible  <bruno@clisp.org>
35197
35198         Ensure fseeko, ftello are declared on glibc systems.
35199         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35200         * modules/fseeko (configure.ac-early): Likewise.
35201         * modules/ftello (configure.ac-early): Likewise.
35202         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35203         AC_FUNC_FSEEKO for this.
35204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35205         (gl_CHECK_FSEEKO): Remove macro.
35206
35207 2007-04-26  Bruno Haible  <bruno@clisp.org>
35208
35209         * tests/test-fflush.c (main): Also check the ftell result after
35210         fflush and fseek/fseeko.
35211         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35212         file descriptor position cache in the stream.
35213         * lib/fseeko.c (rpl_fseeko): Likewise.
35214
35215 2007-04-26  Bruno Haible  <bruno@clisp.org>
35216
35217         * modules/fflush-tests (Depends-on): Add fseeko.
35218
35219 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35220             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35221
35222         * lib/argz_.h: ensure error_t definition is obtained in same
35223         mechanism system argz.h would have.
35224         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35225         argz facilities are known bad.  Err on the side of caution if
35226         cross-compiling.
35227
35228 2007-04-25  Eric Blake  <ebb9@byu.net>
35229
35230         * lib/fpurge.c (includes): Use stdlib.h for free.
35231         * tests/test-fflush.c (main): Also test fflush-fseeko.
35232
35233 2007-04-25  Bruno Haible  <bruno@clisp.org>
35234
35235         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35236         * lib/fseeko.c: New file.
35237         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35238         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35239         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35240         gl_FUNC_FSEEKO.
35241         (gl_FUNC_FSEEKO): Invoke it.
35242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35243         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35244         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35245
35246 2007-04-25  Bruno Haible  <bruno@clisp.org>
35247
35248         * modules/fflush (Depends-on): Add ftello.
35249
35250 2007-04-25  Bruno Haible  <bruno@clisp.org>
35251
35252         * modules/ftello-tests: New file.
35253         * tests/test-ftello.c: New file.
35254
35255         * modules/ftello: New file.
35256         * m4/ftello.m4: New file.
35257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35258         HAVE_FTELLO.
35259         * lib/stdio_.h (ftello): New declaration.
35260         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35261         HAVE_FTELLO.
35262
35263 2007-04-25  Bruno Haible  <bruno@clisp.org>
35264
35265         * modules/fseeko-tests: New file.
35266         * tests/test-fseeko.c: New file.
35267
35268         * modules/fseeko: New file.
35269         * m4/fseeko.m4: New file.
35270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35271         HAVE_FSEEKO.
35272         * lib/stdio_.h (fseeko): New declaration.
35273         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35274         HAVE_FSEEKO.
35275
35276 2007-04-25  Bruno Haible  <bruno@clisp.org>
35277
35278         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35279
35280 2007-04-25  Bruno Haible  <bruno@clisp.org>
35281
35282         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35283         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35284         * tests/test-unistd.c: Likewise.
35285         * tests/test-fcntl.c: Likewise.
35286
35287 2007-04-23  Eric Blake  <ebb9@byu.net>
35288
35289         * lib/fflush.c: Fix missing include.
35290         Reported by Bruno Haible.
35291
35292 2007-04-23  Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35295         Reported by Eric Blake.
35296
35297 2007-04-23  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35300
35301 2007-04-23  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35304
35305 2007-04-23  Bruno Haible  <bruno@clisp.org>
35306
35307         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35308         Needed on HP-UX 11.
35309
35310 2007-04-16  Eric Blake  <ebb9@byu.net>
35311
35312         Make fflush rely on fpurge.
35313         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35314         open coding all variants.
35315         * modules/fflush (Depends-on): Add fpurge and unistd.
35316         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35317         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35318
35319         Fix --with-tests compilation on cygwin.
35320         * modules/argmatch-tests (Makefile.am): List gnulib library first
35321         in LDADD.
35322         * modules/argp-tests (Makefile.am): Likewise.
35323         * modules/array-list-tests (Makefile.am): Likewise.
35324         * modules/array-oset-tests (Makefile.am): Likewise.
35325         * modules/avltree-list-tests (Makefile.am): Likewise.
35326         * modules/avltree-oset-tests (Makefile.am): Likewise.
35327         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35328         * modules/carray-list-tests (Makefile.am): Likewise.
35329         * modules/dirname-tests (Makefile.am): Likewise.
35330         * modules/frexp-tests (Makefile.am): Likewise.
35331         * modules/isnanl-tests (Makefile.am): Likewise.
35332         * modules/linked-list-tests (Makefile.am): Likewise.
35333         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35334         * modules/lock-tests (Makefile.am): Likewise.
35335         * modules/rbtree-list-tests (Makefile.am): Likewise.
35336         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35337         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35338         * modules/tls-tests (Makefile.am): Likewise.
35339         * modules/tsearch-tests (Makefile.am): Likewise.
35340         * modules/xvasprintf-tests (Makefile.am): Likewise.
35341
35342         Fix fpurge for cygwin.
35343         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35344         value.
35345         * modules/fpurge-tests (Depends-on): Clean up trash.
35346
35347 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35348
35349         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35350
35351         * m4/autobuild.m4: Re-indent.
35352
35353 2007-04-13  Bruno Haible  <bruno@clisp.org>
35354
35355         * modules/fpurge-tests: New file.
35356         * tests/test-fpurge.c: New file.
35357
35358         * modules/fpurge: New file.
35359         * lib/fpurge.h: New file.
35360         * lib/fpurge.c: New file.
35361         * m4/fpurge.m4: New file.
35362
35363 2007-04-13  Bruno Haible  <bruno@clisp.org>
35364
35365         * modules/fbufmode-tests: New file.
35366         * tests/test-fbufmode.c: New file.
35367
35368         * modules/fbufmode: New file.
35369         * lib/fbufmode.h: New file.
35370         * lib/fbufmode.c: New file.
35371         * m4/fbufmode.m4: New file.
35372
35373 2007-04-13  Bruno Haible  <bruno@clisp.org>
35374
35375         * modules/fwritable-tests: New file.
35376         * tests/test-fwritable.c: New file.
35377
35378         * modules/fwritable: New file.
35379         * lib/fwritable.h: New file.
35380         * lib/fwritable.c: New file.
35381         * m4/fwritable.m4: New file.
35382
35383 2007-04-13  Bruno Haible  <bruno@clisp.org>
35384
35385         * modules/freadable-tests: New file.
35386         * tests/test-freadable.c: New file.
35387
35388         * modules/freadable: New file.
35389         * lib/freadable.h: New file.
35390         * lib/freadable.c: New file.
35391         * m4/freadable.m4: New file.
35392
35393 2007-04-13  Bruno Haible  <bruno@clisp.org>
35394
35395         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35396         MOSTLYCLEANFILES.
35397
35398 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35399
35400         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35401         gzip bootstrap.conf to avoid dragging in i18n machinery.
35402         (gnulib_tool_option): Use it.
35403
35404 2007-04-13  Bruno Haible  <bruno@clisp.org>
35405
35406         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35407         %F directives.
35408         * tests/test-vasprintf-posix.c (test_function): Likewise.
35409         * tests/test-snprintf-posix.h (test_function): Likewise.
35410         * tests/test-sprintf-posix.h (test_function): Likewise.
35411         * tests/test-fprintf-posix.h (test_function): Likewise.
35412         * tests/test-printf-posix.h (test_function): Likewise.
35413         * tests/test-fprintf-posix.out: Likewise.
35414
35415 2007-04-13  Bruno Haible  <bruno@clisp.org>
35416
35417         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35418         * modules/tls-tests (configure.ac): Likewise.
35419         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35420
35421 2007-04-13  Bruno Haible  <bruno@clisp.org>
35422
35423         * lib/tls.c (glthread_tls_get): Fix return type.
35424         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35425
35426 2007-04-12  Eric Blake  <ebb9@byu.net>
35427
35428         * modules/gettime (Depends-on): Remove gettime.
35429         Reported by Dmitry V. Levin.
35430
35431 2007-04-12  Bruno Haible  <bruno@clisp.org>
35432
35433         * modules/fflush (Include): Mention <stdio.h>.
35434         * modules/strtoimax (Include): Mention <inttypes.h>.
35435         * modules/strtoumax (Include): Likewise.
35436
35437 2007-04-12  Eric Blake  <ebb9@byu.net>
35438
35439         * .cvsignore: New file.
35440         * .gitignore: Likewise.
35441
35442 2007-04-12  Bruno Haible  <bruno@clisp.org>
35443
35444         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35445         not before, since $(LDADD) often contains libgnu.a.
35446         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35447         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35448         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35449         Needed on Cygwin.
35450
35451 2007-04-12  Eric Blake  <ebb9@byu.net>
35452
35453         Work around glibc's failure to flush stdin on fclose.
35454         * lib/closein.c (close_stdin): Flush stdin before closing.
35455
35456         Work around glibc's failure to reset seekable stdin on exit.
35457         * modules/closein: New module.
35458         * lib/closein.c: New file.
35459         * lib/closein.h: Likewise.
35460         * m4/closein.m4: Likewise.
35461         * MODULES.html.sh (File stream based Input/Output): Document it.
35462
35463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35464
35465         * gnulib-tool: Rename generated 'autobuild' script to
35466         'do-autobuild' in --create-megatestdir output.
35467
35468         * doc/gnulib.texi (Build robot for gnulib): Fix.
35469
35470 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35471
35472         * modules/sysexits (Depends-on): Add absolute-header.
35473
35474 2007-04-12  Eric Blake  <ebb9@byu.net>
35475
35476         No need to preserve errno on success.
35477         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35478         Reported by Bruno Haible.
35479
35480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35481
35482         * MODULES.html.sh (Support for maintaining and releasing
35483         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35484
35485 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35486
35487         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35488
35489 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35490
35491         * modules/autobuild: New module.
35492
35493         * m4/autobuild.m4: New file.
35494
35495 2007-04-11  Bruno Haible  <bruno@clisp.org>
35496
35497         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35498         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35525         Reported by Eric Blake.
35526
35527 2007-04-11  Bruno Haible  <bruno@clisp.org>
35528
35529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35530
35531 2007-04-10  Bruno Haible  <bruno@clisp.org>
35532
35533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35534         for NaN and Infinity. Needed on FreeBSD 6.1.
35535         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35536         regarding results for "%010a" of Infinity and NaN.
35537         * tests/test-vasprintf-posix.c (test_function): Likewise.
35538         * tests/test-snprintf-posix.h (test_function): Likewise.
35539         * tests/test-sprintf-posix.h (test_function): Likewise.
35540         * tests/test-fprintf-posix.h (test_function): Likewise.
35541         * tests/test-printf-posix.h (test_function): Likewise.
35542         * tests/test-fprintf-posix.out: Likewise.
35543
35544 2007-04-10  Bruno Haible  <bruno@clisp.org>
35545
35546         * modules/locale-tests: New file.
35547         * tests/test-locale.c: New file.
35548
35549         * modules/locale: New file.
35550         * lib/locale_.h: New file.
35551         * m4/locale_h.m4: New file.
35552
35553 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35554             Bruno Haible  <bruno@clisp.org>
35555
35556         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35557         be determined, test for availability of the copysignf, copysign,
35558         copysignl functions.
35559         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35560         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35561         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35562
35563 2007-04-09  Eric Blake  <ebb9@byu.net>
35564
35565         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35566         * modules/stdio (Makefile.am): Support fflush.
35567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35568         * modules/fflush: New file.
35569         * lib/fflush.c: Likewise.
35570         * m4/fflush.m4: Likewise.
35571         * modules/fflush-tests: New test.
35572         * tests/test-fflush.c: Likewise.
35573         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35574
35575 2007-04-06  Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35578         (VASNPRINTF): Use signbit for faster determination whether to print a
35579         minus sign.
35580         * modules/vasnprintf (Files): Remove lib/float+.h.
35581         * modules/fprintf-posix (Depends-on): Add signbit.
35582         * modules/snprintf-posix (Depends-on): Likewise.
35583         * modules/sprintf-posix (Depends-on): Likewise.
35584         * modules/vasnprintf-posix (Depends-on): Likewise.
35585         * modules/vasprintf-posix (Depends-on): Likewise.
35586         * modules/vfprintf-posix (Depends-on): Likewise.
35587         * modules/vsnprintf-posix (Depends-on): Likewise.
35588         * modules/vsprintf-posix (Depends-on): Likewise.
35589
35590 2007-04-06  Bruno Haible  <bruno@clisp.org>
35591
35592         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35593         * tests/test-frexpl.c (main): Likewise.
35594         * tests/test-ldexpl.c (main): Likewise.
35595         * modules/frexp-tests (Depends-on): Add signbit.
35596         * modules/frexpl-tests (Depdends-on): Likewise.
35597         * modules/ldexpl-tests (Depdends-on): Likewise.
35598
35599 2007-04-06  Bruno Haible  <bruno@clisp.org>
35600
35601         * modules/signbit-tests: New file.
35602         * tests/test-signbit.c: New file.
35603
35604         * modules/signbit: New file.
35605         * lib/signbitf.c: New file.
35606         * lib/signbitd.c: New file.
35607         * lib/signbitl.c: New file.
35608         * m4/signbit.m4: New file.
35609         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35610         (signbit): New macro.
35611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35612         REPLACE_SIGNBIT.
35613         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35614         REPLACE_FREXPL into math.h.
35615
35616 2007-04-06  Bruno Haible  <bruno@clisp.org>
35617
35618         * modules/isnanf-nolibm-tests: New file.
35619         * tests/test-isnanf.c: New file.
35620
35621         * modules/isnanf-nolibm: New file.
35622         * lib/isnanf.h: New file.
35623         * lib/isnanf.c: New file.
35624         * lib/isnan.c: Consider the USE_FLOAT macro.
35625         * m4/isnanf.m4: New file.
35626
35627 2007-04-06  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35630         (Link): New section.
35631
35632         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35633
35634 2007-04-06  Bruno Haible  <bruno@clisp.org>
35635
35636         Assume the 'long double' type.
35637         * m4/longdouble.m4: Remove file.
35638         * config/srclist.txt: Don't mention longdouble.m4.
35639         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35640         * lib/float+.h: Likewise.
35641         * lib/frexp.c: Likewise.
35642         * lib/printf-args.h: Likewise.
35643         * lib/printf-args.c: Likewise.
35644         * lib/printf-frexp.c: Likewise.
35645         * lib/printf-parse.c: Likewise.
35646         * lib/vasnprintf.c: Likewise.
35647         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35648         * m4/intl.m4: Likewise.
35649         * m4/isnanl.m4: Likewise.
35650         * m4/printf.m4: Likewise.
35651         * m4/printf-frexpl.m4: Likewise.
35652         * m4/vasnprintf.m4: Likewise.
35653         * modules/allocsa (Files): Remove m4/longdouble.m4.
35654         * modules/gettext (Files): Likewise.
35655         * modules/relocatable-prog-wrapper (Files): Likewise.
35656         * modules/vasnprintf (Files): Likewise.
35657         * modules/isnanl (Files): Likewise.
35658         (Include): Simplify.
35659         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35660         (Include): Simplify.
35661         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35662         (Include): Simplify.
35663         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35664         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35665         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35666         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35667         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35668         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35669         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35671         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35673         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35675         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35676         * tests/test-isnanl.c: Likewise.
35677         * tests/test-snprintf-posix.h: Likewise.
35678         * tests/test-sprintf-posix.h: Likewise.
35679         * tests/test-vasnprintf-posix.c: Likewise.
35680         * tests/test-vasnprintf-posix2.c: Likewise.
35681         * tests/test-vasprintf-posix.c: Likewise.
35682
35683 2007-04-06  Bruno Haible  <bruno@clisp.org>
35684
35685         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35686         * lib/math_.h [__DECC]: Include the overridden include file through
35687         #include_next, outside the double-inclusion guard.
35688         * lib/stdio_.h [__DECC]: Likewise.
35689         * lib/stdlib_.h [__DECC]: Likewise.
35690         * lib/string_.h [__DECC]: Likewise.
35691         * lib/time_.h [__DECC]: Likewise.
35692         * lib/wchar_.h [__DECC]: Likewise.
35693         * lib/wctype_.h [__DECC]: Likewise.
35694         * lib/inttypes_.h [__DECC]: Likewise.
35695         Reported by Albert Chin <china@thewrittenword.com> in
35696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35697
35698 2007-04-04  Eric Blake  <ebb9@byu.net>
35699
35700         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35701         1.5.x.
35702
35703 2007-04-04  Bruno Haible  <bruno@clisp.org>
35704
35705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35706         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35707
35708 2007-04-04  Bruno Haible  <bruno@clisp.org>
35709
35710         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35711         results for "%010a" of Infinity and NaN.
35712         * tests/test-vasprintf-posix.c (test_function): Likewise.
35713         * tests/test-snprintf-posix.h (test_function): Likewise.
35714         * tests/test-sprintf-posix.h (test_function): Likewise.
35715         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35716         * tests/test-printf-posix.h (test_function): Likewise.
35717         * tests/test-fprintf-posix.out: Update.
35718         Needed for FreeBSD 6.1.
35719
35720 2007-04-04  Bruno Haible  <bruno@clisp.org>
35721
35722         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35723         directly used by the gnulib modules nor by gnulib-tool.
35724
35725 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35726
35727         * DEPENDENCIES: Give overall description of version dependency
35728         desirability.  Use more-typical names for apps.
35729         Add shell, coreutils, diffutils, grep, tar, gzip.
35730
35731 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35732
35733         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35734
35735 2007-04-04  Karl Berry  <karl@gnu.org>
35736
35737         * MODULES.html.sh (func_module): missing '.
35738
35739 2007-04-03  Bruno Haible  <bruno@clisp.org>
35740
35741         * modules/argmatch-tests (Makefile.am): New variable
35742         test_argmatch_LDADD.
35743         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35744         * modules/array-list-tests (Makefile.am): New variable
35745         test_array_list_LDADD.
35746         * modules/array-oset-tests (Makefile.am): New variable
35747         test_array_oset_LDADD.
35748         * modules/avltree-list-tests (Makefile.am): New variable
35749         test_avltree_list_LDADD.
35750         * modules/avltree-oset-tests (Makefile.am): New variable
35751         test_avltree_oset_LDADD.
35752         * modules/avltreehash-list-tests (Makefile.am): New variable
35753         test_avltreehash_list_LDADD.
35754         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35755         test_canonicalize_lgpl_LDADD.
35756         * modules/carray-list-tests (Makefile.am): New variable
35757         test_carray_list_LDADD.
35758         * modules/dirname-tests (Makefile.am): New variable
35759         test_dirname_LDADD.
35760         * modules/linked-list-tests (Makefile.am): New variable
35761         test_linked_list_LDADD.
35762         * modules/linkedhash-list-tests (Makefile.am): New variable
35763         test_linkedhash_list_LDADD.
35764         * modules/rbtree-list-tests (Makefile.am): New variable
35765         test_rbtree_list_LDADD.
35766         * modules/rbtree-oset-tests (Makefile.am): New variable
35767         test_rbtree_oset_LDADD.
35768         * modules/rbtreehash-list-tests (Makefile.am): New variable
35769         test_rbtreehash_list_LDADD.
35770         * modules/xvasprintf-tests (Makefile.am): New variable
35771         test_xvasprintf_LDADD.
35772         Reported by Eric Blake.
35773
35774 2007-04-03  Eric Blake  <ebb9@byu.net>
35775
35776         * DEPENDENCIES: Weaken m4 requirements.
35777
35778 2007-04-03  Bruno Haible  <bruno@clisp.org>
35779
35780         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35781         * modules/isnanl-tests (configure.ac): Likewise.
35782
35783 2007-04-03  Ben Pfaff  <blp@gnu.org>
35784
35785         * modules/iconv_open: Add $(srcdir)/ to source directory
35786         references in Makefile fragments that call gperf, to fix VPATH
35787         builds.
35788
35789 2007-04-03  Bruno Haible  <bruno@clisp.org>
35790
35791         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35792         * lib/ldexpl.c: Undo last change.
35793
35794 2007-04-03  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/printf-frexpl (Depends-on): Undo last change.
35797         (Files): Add m4/ldexpl.m4.
35798
35799 2007-04-03  Bruno Haible  <bruno@clisp.org>
35800
35801         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35802         * modules/isnanl (Link): New section.
35803
35804         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35805         * modules/frexp (Link): New section.
35806
35807         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35808         * modules/frexpl (Link): New section.
35809
35810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35811         * modules/ldexpl (Link): New section.
35812
35813 2007-04-03  Bruno Haible  <bruno@clisp.org>
35814
35815         * modules/TEMPLATE-EXTENDED: New file.
35816         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35817
35818 2007-04-03  Bruno Haible  <bruno@clisp.org>
35819
35820         * DEPENDENCIES: New file.
35821         Suggested by Simon Josefsson.
35822
35823 2007-04-03  Bruno Haible  <bruno@clisp.org>
35824
35825         * doc/gnulib.texi: Escape @.
35826
35827 2007-04-03  James Youngman  <jay@gnu.org>
35828         and Paul Eggert  <eggert@cs.ucla.edu>
35829
35830         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35831         birthtime on all systems that have birthtime, not just those which
35832         use st_birthtimensec rather than st_birthtim.  Putting zero in
35833         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35834         that the birth time is not available for files on an NFS mount.
35835
35836 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35837
35838         * modules/memxor: Move back from crypto/, suggested by Bruno.
35839         * modules/crypto/hmac-sha1: Fix memxor dependency.
35840
35841         * modules/crypto/gc: Moved from ../.
35842
35843 2007-04-02  Eric Blake  <ebb9@byu.net>
35844
35845         * lib/ldexpl.c (includes): Avoid libm.
35846
35847         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35848
35849 2007-04-02  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35852         on IRIX.
35853
35854 2007-04-02  Bruno Haible  <bruno@clisp.org>
35855
35856         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35857         x86 or x86_64 platforms running MacOS X.
35858         Reported by Ryan Schmidt <@ryandesign.com>.
35859
35860 2007-04-02  Bruno Haible  <bruno@clisp.org>
35861
35862         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35863         i386.
35864
35865 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35866
35867         * modules/crypto/arcfour: Moved from ../.
35868         * modules/crypto/arcfour-tests: Moved from ../.
35869         * modules/crypto/arctwo: Moved from ../.
35870         * modules/crypto/arctwo-tests: Moved from ../.
35871         * modules/crypto/des: Moved from ../.
35872         * modules/crypto/des-tests: Moved from ../.
35873         * modules/crypto/gc-arcfour: Moved from ../.
35874         * modules/crypto/gc-arcfour-tests: Moved from ../.
35875         * modules/crypto/gc-arctwo: Moved from ../.
35876         * modules/crypto/gc-arctwo-tests: Moved from ../.
35877         * modules/crypto/gc-des: Moved from ../.
35878         * modules/crypto/gc-des-tests: Moved from ../.
35879         * modules/crypto/gc-hmac-md5: Moved from ../.
35880         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35881         * modules/crypto/gc-hmac-sha1: Moved from ../.
35882         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35883         * modules/crypto/gc-md2: Moved from ../.
35884         * modules/crypto/gc-md2-tests: Moved from ../.
35885         * modules/crypto/gc-md4: Moved from ../.
35886         * modules/crypto/gc-md4-tests: Moved from ../.
35887         * modules/crypto/gc-md5: Moved from ../.
35888         * modules/crypto/gc-md5-tests: Moved from ../.
35889         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35890         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35891         * modules/crypto/gc-random: Moved from ../.
35892         * modules/crypto/gc-rijndael: Moved from ../.
35893         * modules/crypto/gc-rijndael-tests: Moved from ../.
35894         * modules/crypto/gc-sha1: Moved from ../.
35895         * modules/crypto/gc-sha1-tests: Moved from ../.
35896         * modules/crypto/gc-tests: Moved from ../.
35897         * modules/crypto/hmac-md5: Moved from ../.
35898         * modules/crypto/hmac-md5-tests: Moved from ../.
35899         * modules/crypto/hmac-sha1: Moved from ../.
35900         * modules/crypto/hmac-sha1-tests: Moved from ../.
35901         * modules/crypto/md2: Moved from ../.
35902         * modules/crypto/md2-tests: Moved from ../.
35903         * modules/crypto/md4: Moved from ../.
35904         * modules/crypto/md4-tests: Moved from ../.
35905         * modules/crypto/md5: Moved from ../.
35906         * modules/crypto/md5-tests: Moved from ../.
35907         * modules/crypto/memxor: Moved from ../.
35908         * modules/crypto/rijndael: Moved from ../.
35909         * modules/crypto/rijndael-tests: Moved from ../.
35910         * modules/crypto/sha1: Moved from ../.
35911
35912 2007-03-30  James Youngman  <jay@gnu.org>
35913
35914         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35915         rename() to change the ctime of a file (because ctime is unaffected
35916         by rename on jfs2 on AIX 5.1).
35917         (main): Start by doing cleanup, in case a previous run failed leaving
35918         test files behind.
35919
35920 2007-03-31  Bruno Haible  <bruno@clisp.org>
35921
35922         Support old proprietary implementations of iconv.
35923         * modules/iconv_open: New file.
35924         * lib/iconv_.h: New file.
35925         * m4/iconv_h.m4: New file.
35926         * lib/iconv_open.c: New file.
35927         * lib/iconv_open-aix.gperf: New file.
35928         * lib/iconv_open-hpux.gperf: New file.
35929         * lib/iconv_open-irix.gperf: New file.
35930         * lib/iconv_open-osf.gperf: New file.
35931         * m4/iconv_open.m4: New file.
35932         * modules/linebreak (Depends-on): Add iconv_open.
35933         * modules/striconv (Depends-on): Likewise.
35934         * modules/striconveh (Depends-on): Likewise.
35935         * modules/unicodeio (Depends-on): Likewise.
35936         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35937         (iconv_t)(-1).
35938         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35939         conversion if cd is (iconv_t)(-1).
35940         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35941         is not possible.
35942
35943 2007-03-31  Bruno Haible  <bruno@clisp.org>
35944
35945         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35946         work on Solaris either. Protect also second use of "autodetect_jp".
35947
35948 2007-03-31  Bruno Haible  <bruno@clisp.org>
35949
35950         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35951         the function is not present.
35952
35953 2007-03-31  Bruno Haible  <bruno@clisp.org>
35954
35955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35956         the function is not present.
35957
35958 2007-03-31  Bruno Haible  <bruno@clisp.org>
35959
35960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35961         a bug in HP-UX iconv_open().
35962
35963 2007-03-31  Bruno Haible  <bruno@clisp.org>
35964
35965         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35966         (Mathematics <math.h>): New section, add fpieee.
35967         (Input/output <stdio.h>): Add fseterr.
35968         (Mathematics <math.h>): New section, add printf-frexp.
35969         (Container data structures): Add sublist.
35970         (Core language properties): Add fpucw, inline.
35971         (Functions for greatest-width integer types <inttypes.h>): Add
35972         imaxabs, imaxdiv, inttypes.
35973         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35974         isnanl-nolibm, ldexp.
35975         (Mathematics <math.h>): New section, add printf-frexpl.
35976         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35977         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35978         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35979         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35980         (Unicode string functions): Add unistr/u*-mbtoucr.
35981         (Java): Add javacomp-script, javaexec-script.
35982         (C#): Add csharpcomp-script, csharpexec-script.
35983         (Support for building libraries and executables): Add havelib,
35984         relocatable-*.
35985         (Support for maintaining and releasing projects): Renamed from
35986         'Support for maintaining and release projects'. Add announce-gen.
35987
35988 2007-03-31  Bruno Haible  <bruno@clisp.org>
35989
35990         * README: Talk primarily about git.
35991         (git and CVS): Renamed from CVS.
35992         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35993         gnulib is available through git.
35994         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35995
35996 2007-03-30  Bruno Haible  <bruno@clisp.org>
35997
35998         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35999         * lib/poll_.h: Likewise.
36000         * lib/stat_.h: Likewise.
36001         * lib/sys_time_.h: Likewise.
36002         * lib/sysexit_.h: Likewise.
36003         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36004         * lib/stdbool_.h: Likewise.
36005         * lib/byteswap_.h: Add double-inclusion guard.
36006
36007 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36008
36009         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36010
36011 2007-03-30  Karl Berry  <karl@gnu.org>
36012
36013         * config/srclist-update: double space after USA in the license
36014         substitution, since that's how it's usually (?) written.
36015
36016 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36017
36018         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36019         reported by Bruno Haible.
36020
36021 2007-03-29  Bruno Haible  <bruno@clisp.org>
36022
36023         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36024         a bug in AIX iconv().
36025
36026 2007-03-29  Bruno Haible  <bruno@clisp.org>
36027
36028         * modules/ldexpl-tests: New file.
36029         * tests/test-ldexpl.c: New file.
36030
36031 2007-03-29  Bruno Haible  <bruno@clisp.org>
36032
36033         * lib/ldexpl.c: Include fpucw.h.
36034         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36035         multiplication.
36036         * modules/ldexpl (Depends-on): Add fpucw.
36037
36038 2007-03-29  Bruno Haible  <bruno@clisp.org>
36039
36040         * modules/ldexpl: New file.
36041         * m4/ldexpl.m4: New file.
36042         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36043         set.
36044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36045         REPLACE_LDEXPL.
36046         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36047         REPLACE_LDEXPL.
36048         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36049         gl_FUNC_LDEXPL_WORKS.
36050         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36051         * modules/mathl (Files): Remove lib/ldexpl.c.
36052         (Depends-on): Add ldexpl.
36053
36054 2007-03-29  Bruno Haible  <bruno@clisp.org>
36055
36056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36057
36058 2007-03-29  Bruno Haible  <bruno@clisp.org>
36059
36060         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36061         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36062         and possibly also HP-UX.
36063         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36064         work on AIX, IRIX, HP-UX, OSF/1.
36065         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36066         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36067         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36068         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36069         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36070         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36071
36072 2007-03-29  Bruno Haible  <bruno@clisp.org>
36073
36074         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36075
36076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36077
36078         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36079         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36080
36081 2007-03-29  Eric Blake  <ebb9@byu.net>
36082
36083         * lib/acl-internal.h: Remove redundant include.
36084         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36085         Cygwin when a file is locked.
36086
36087 2007-03-29  Bruno Haible  <bruno@clisp.org>
36088
36089         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36090         file.
36091         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36092
36093 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36094
36095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36096         try to remove a parent directory if the child couldn't be removed
36097         (except for the first rmdir, which could fail because the child
36098         doesn't exist).  Problem reported by Jeff Blaine in
36099         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36100
36101 2007-03-28  Bruno Haible  <bruno@clisp.org>
36102
36103         * lib/striconveh.c (utf8conv_carefully): New function.
36104         (mem_cd_iconveh_internal): Invoke it.
36105
36106 2007-03-28  Bruno Haible  <bruno@clisp.org>
36107
36108         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36109         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36110         input.
36111         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36112         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36113         unistr/u8-uctomb.
36114
36115 2007-03-28  Bruno Haible  <bruno@clisp.org>
36116
36117         * modules/unistr/u8-mbtoucr: New file.
36118         * lib/unistr/u8-mbtoucr.c: New file.
36119         * modules/unistr/u16-mbtoucr: New file.
36120         * lib/unistr/u16-mbtoucr.c: New file.
36121         * modules/unistr/u16-mbtoucr: New file.
36122         * lib/unistr/u16-mbtoucr.c: New file.
36123         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36124
36125 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36126             Bruno Haible  <bruno@clisp.org>
36127
36128         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36129         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36130         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36131
36132         * m4/stdio_h.m4: Add stubs for vasprintf too.
36133
36134         * modules/stdio: Support vasprintf in sed command.
36135
36136         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36137         vasprintf.h.  Add stdio module indicator.
36138
36139         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36140         vasprintf.h.
36141
36142         * lib/vasprintf.h: File removed.
36143
36144         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36145         * lib/vasprintf.c: Ditto.
36146         * lib/xvasprintf.c: Ditto.
36147         * tests/test-vasprintf-posix.c: Ditto.
36148         * tests/test-vasprintf.c: Ditto.
36149
36150 2007-03-27  Bruno Haible  <bruno@clisp.org>
36151
36152         Make vasnprintf multithread-safe.
36153         * lib/vasnprintf.c (decimal_point_char): New function.
36154         (VASNPRINTF): Use it.
36155         Suggested by Simon Josefsson.
36156
36157 2007-03-27  Eric Blake  <ebb9@byu.net>
36158
36159         Support sub-second birthtime on cygwin.
36160         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36161         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36162         (get_stat_birthtime): Also work with st_birthtim.
36163
36164 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36165
36166         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36167         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36168         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36169         (get_stat_birthtime_ns): Simplify compile-time tests.
36170         (get_stat_birthtime): Change the API to look like
36171         get_stat_mtime etc., except return a negative tv_nsec on error.
36172         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36173         Don't check for "spare" fields.
36174         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36175         or for struct stat.st_birthtime, as these tests aren't used.
36176         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36177
36178 2007-03-27  Bruno Haible  <bruno@clisp.org>
36179
36180         * lib/stat-time.h: Include <sys/stat.h>.
36181
36182 2007-03-27  James Youngman  <jay@gnu.org>
36183
36184         * lib/stat-time.h (get_stat_birthtime): New function for
36185           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36186         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36187           and its variants.
36188         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36189         * modules/stat-time-test: New file.
36190         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36191
36192 2007-03-26  Bruno Haible  <bruno@clisp.org>
36193
36194         Better support of signalling NaNs.
36195         * lib/atanl.c: Include isnanl.h.
36196         (atanl): Perform test for NaN at the beginning of the function and
36197         through a call to isnanl.
36198         * lib/cosl.c: Include isnanl.h.
36199         (cosl): Perform test for NaN at the beginning of the function and
36200         through a call to isnanl.
36201         * lib/ldexpl.c: Include isnanl.h.
36202         (ldexpl): Perform test for NaN through a call to isnanl.
36203         * lib/logl.c: Include isnanl.h.
36204         (logl): Perform test for NaN at the beginning of the function and
36205         through a call to isnanl.
36206         * lib/sinl.c: Include isnanl.h.
36207         (sinl): Perform test for NaN at the beginning of the function and
36208         through a call to isnanl.
36209         * lib/sqrtl.c: Include isnanl.h.
36210         (sqrtl): Perform test for NaN at the beginning of the function and
36211         through a call to isnanl.
36212         * lib/tanl.c: Include isnanl.h.
36213         (tanl): Perform test for NaN at the beginning of the function and
36214         through a call to isnanl.
36215         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36216         * modules/mathl (Depends-on): Add isnanl.
36217
36218 2007-03-26  Eric Blake  <ebb9@byu.net>
36219
36220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36221         regression in logic sense of previous patch.
36222
36223 2007-03-26  Bruno Haible  <bruno@clisp.org>
36224
36225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36226         unportable shell command "if ! ...".
36227         Reported by Ralf Wildenhues.
36228
36229 2007-03-25  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36232         <sysexits.h> file, and only add EX_CONFIG.
36233         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36234         absolute file name and whether it is sufficient. Substitute also
36235         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36236         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36237         ABSOLUTE_SYSEXITS_H into sysexits.h.
36238
36239 2007-03-25  Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36242         hints is NULL.
36243
36244 2007-03-25  Bruno Haible  <bruno@clisp.org>
36245
36246         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36247         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36248
36249 2007-03-25  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/vasnprintf.c: Include langinfo.h.
36252         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36253         multithread-safe.
36254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36263         Reported by Simon Josefsson.
36264
36265 2007-03-25  Bruno Haible  <bruno@clisp.org>
36266
36267         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36268         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36269         * modules/vasnprintf (Depends-on): Add stdint.
36270
36271 2007-03-25  Bruno Haible  <bruno@clisp.org>
36272
36273         * modules/fpieee: New file.
36274         * m4/fpieee.m4: New file.
36275         * modules/isnan-nolibm (Depends-on): Add fpieee.
36276         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36277         * modules/isnanl (Depends-on): Add fpieee.
36278
36279 2007-03-25  Bruno Haible  <bruno@clisp.org>
36280
36281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36282
36283 2007-03-25  Bruno Haible  <bruno@clisp.org>
36284
36285         Avoid test failures on IRIX 6.5.
36286         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36287         (main): Use it.
36288         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36289         macros.
36290         (main): Use them.
36291
36292 2007-03-25  Bruno Haible  <bruno@clisp.org>
36293
36294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36295         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36296         exists but doesn't work.
36297         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36298         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36300         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36301
36302 2007-03-25  Bruno Haible  <bruno@clisp.org>
36303
36304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36305         returns inf. Needed on IRIX 6.5.
36306
36307 2007-03-25  Bruno Haible  <bruno@clisp.org>
36308
36309         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36310         (main): Use isnanl instead of x != x idiom.
36311         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36312
36313         * tests/test-frexp.c: Include isnan.h.
36314         (main): Use isnan instead of x != x idiom.
36315         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36316
36317 2007-03-25  Bruno Haible  <bruno@clisp.org>
36318
36319         * tests/test-frexp.c (NaN): New function/macro.
36320         (main): Use it instead of 0.0 / 0.0.
36321         * tests/test-isnan.c (NaN): New function/macro.
36322         (main): Use it instead of 0.0 / 0.0.
36323         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36324         (test_function): Use it instead of 0.0 / 0.0.
36325         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36326         (test_function): Use it instead of 0.0 / 0.0.
36327         * tests/test-snprintf-posix.h (NaN): New function/macro.
36328         (test_function): Use it instead of 0.0 / 0.0.
36329         * tests/test-sprintf-posix.h (NaN): New function/macro.
36330         (test_function): Use it instead of 0.0 / 0.0.
36331         * tests/test-fprintf-posix.h (NaN): New function/macro.
36332         (test_function): Use it instead of 0.0 / 0.0.
36333         * tests/test-printf-posix.h (NaN): New function/macro.
36334         (test_function): Use it instead of 0.0 / 0.0.
36335
36336         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36337
36338 2007-03-25  Bruno Haible  <bruno@clisp.org>
36339
36340         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36341
36342 2007-03-25  Bruno Haible  <bruno@clisp.org>
36343
36344         * lib/regexec.c (merge_state_with_log): Make static.
36345
36346 2007-03-25  Bruno Haible  <bruno@clisp.org>
36347
36348         * lib/trigl.c (kernel_rem_pio2): Make static.
36349
36350 2007-03-25  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/sincosl.c (sincosl_table): Make static.
36353
36354 2007-03-25  Bruno Haible  <bruno@clisp.org>
36355
36356         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36357         if the compiler does not support C99.
36358
36359 2007-03-25  Bruno Haible  <bruno@clisp.org>
36360
36361         * modules/time (Makefile.am): Ensure all rule action lines start with a
36362         tab.
36363
36364 2007-03-24  Bruno Haible  <bruno@clisp.org>
36365
36366         * modules/tsearch-tests: New file.
36367         * tests/test-tsearch.sh: New file.
36368         * tests/test-tsearch.c: New file, mostly copied from glibc.
36369
36370         * modules/search-tests: New file.
36371         * tests/test-search.c: New file.
36372
36373         * modules/search: New file.
36374         * lib/search_.h: New file, incorporating lib/tsearch.h.
36375         * m4/search_h.m4: New file.
36376         * lib/tsearch.h: Remove file.
36377         * lib/tsearch.c: Include search.h instead of tsearch.h.
36378         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36379         HAVE_TSEARCH.
36380         * modules/tsearch (Files): Remove lib/tsearch.h.
36381         (Depends-on): Add search.
36382         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36383         (Include): Change tsearch.h into search.h.
36384
36385 2007-03-24  Bruno Haible  <bruno@clisp.org>
36386
36387         * modules/fpucw: New file.
36388         * lib/fpucw.h: New file.
36389         * lib/frexp.c: Include fpucw.h.
36390         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36391         (FUNC): Use them.
36392         * lib/printf-frexp.c: Include fpucw.h.
36393         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36394         (FUNC): Use them.
36395         * lib/vasnprintf.c: Include fpucw.h.
36396         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36397         'long double' calculations.
36398         * tests/test-frexpl.c: Include fpucw.h.
36399         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36400         * tests/test-printf-frexpl.c: Include fpucw.h.
36401         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36402         * modules/frexpl (Depends-on): Add fpucw.
36403         * modules/printf-frexpl (Depends-on): Likewise.
36404         * modules/fprintf-posix (Depends-on): Likewise.
36405         * modules/snprintf-posix (Depends-on): Likewise.
36406         * modules/sprintf-posix (Depends-on): Likewise.
36407         * modules/vasnprintf-posix (Depends-on): Likewise.
36408         * modules/vasprintf-posix (Depends-on): Likewise.
36409         * modules/vfprintf-posix (Depends-on): Likewise.
36410         * modules/vsnprintf-posix (Depends-on): Likewise.
36411         * modules/vsprintf-posix (Depends-on): Likewise.
36412         * modules/frexpl-tests (Depends-on): Likewise.
36413         * modules/printf-frexpl-tests (Depends-on): Likewise.
36414
36415 2007-03-24  Bruno Haible  <bruno@clisp.org>
36416
36417         * lib/float+.h: New file.
36418         * lib/isnan.c: Include float+.h.
36419         (SIZE): New macro.
36420         (FUNC): Compare only SIZE bytes of the value.
36421         * lib/vasnprintf.c: Include float+.h.
36422         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36423         SIZEOF_LDBL or SIZEOF_DBL bytes.
36424         * modules/isnan-nolibm (Files): Add lib/float+.h.
36425         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36426         * modules/isnanl (Files): Add lib/float+.h.
36427         * modules/vasnprintf (Files): Add lib/float+.h.
36428
36429 2007-03-24  Bruno Haible  <bruno@clisp.org>
36430
36431         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36432         include isnanl-nolibm.h.
36433
36434 2007-03-24  Bruno Haible  <bruno@clisp.org>
36435
36436         * tests/test-read-file.c (main): Don't produce spurious output for
36437         expected situations. Make the test fail if it encountered unexpected
36438         results.
36439
36440 2007-03-24  Bruno Haible  <bruno@clisp.org>
36441
36442         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36443         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36444
36445 2007-03-24  Bruno Haible  <bruno@clisp.org>
36446
36447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36448
36449 2007-03-24  Bruno Haible  <bruno@clisp.org>
36450
36451         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36452         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36453
36454         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36455         * modules/utf8-ucs4: Turn into a symbolic link to module
36456         unistr/u8-mbtouc.
36457
36458         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36459         utf8-ucs4-unsafe.
36460         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36461         unistr/u8-mbtouc-unsafe.
36462
36463         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36464         * modules/utf16-ucs4: Turn into a symbolic link to module
36465         unistr/u16-mbtouc.
36466
36467         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36468         utf16-ucs4-unsafe.
36469         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36470         unistr/u16-mbtouc-unsafe.
36471
36472         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36473         * modules/ucs4-utf8: Turn into a symbolic link to module
36474         unistr/u8-ubtomb.
36475
36476         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36477         * modules/ucs4-utf16: Turn into a symbolic link to module
36478         unistr/u16-ubtomb.
36479
36480 2007-03-24  Bruno Haible  <bruno@clisp.org>
36481
36482         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36483         Enable the function only if HAVE_INLINE.
36484         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36485         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36486         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36487         Enable the function only if HAVE_INLINE.
36488         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36489         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36490         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36491         Enable the function only if HAVE_INLINE.
36492         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36493         Enable the function only if HAVE_INLINE.
36494         * modules/utf8-ucs4: Update.
36495         * modules/utf8-ucs4-unsafe: Update.
36496         * modules/utf16-ucs4: Update.
36497         * modules/utf16-ucs4-unsafe: Update.
36498         * modules/ucs4-utf8: Update.
36499         * modules/ucs4-utf16: Update.
36500
36501 2007-03-24  Bruno Haible  <bruno@clisp.org>
36502
36503         * lib/utf8-ucs4.h: Remove file.
36504         * lib/utf8-ucs4-unsafe.h: Remove file.
36505         * lib/utf16-ucs4.h: Remove file.
36506         * lib/utf16-ucs4-unsafe.h: Remove file.
36507         * lib/ucs4-utf8.h: Remove file.
36508         * lib/ucs4-utf16.h: Remove file.
36509         * lib/unistr.h: Include their previous contents.
36510         * m4/utf-ucs4.m4: Remove file.
36511         * m4/ucs4-utf.m4: Remove file.
36512         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36513         (Depends-on): Add unistr/base.
36514         (configure.ac): Remove gl_UTF_UCS4.
36515         (Makefile.am): Update.
36516         (Include): Change to unistr.h.
36517         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36518         (Depends-on): Add unistr/base.
36519         (configure.ac): Remove gl_UTF_UCS4.
36520         (Makefile.am): Update.
36521         (Include): Change to unistr.h.
36522         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36523         (Depends-on): Add unistr/base.
36524         (configure.ac): Remove gl_UTF_UCS4.
36525         (Makefile.am): Update.
36526         (Include): Change to unistr.h.
36527         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36528         (Depends-on): Add unistr/base.
36529         (configure.ac): Remove gl_UTF_UCS4.
36530         (Makefile.am): Update.
36531         (Include): Change to unistr.h.
36532         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36533         (Depends-on): Add unistr/base.
36534         (configure.ac): Remove gl_UCS4_UTF.
36535         (Makefile.am): Update.
36536         (Include): Change to unistr.h.
36537         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36538         (Depends-on): Add unistr/base.
36539         (configure.ac): Remove gl_UCS4_UTF.
36540         (Makefile.am): Update.
36541         (Include): Change to unistr.h.
36542         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36543         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36544         utf8-ucs4-unsafe.h.
36545         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36546         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36547         utf16-ucs4-unsafe.h.
36548         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36549         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36550         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36551         * lib/unistr/u8-strchr.c: Likewise.
36552         * lib/unistr/u8-strrchr.c: Likewise.
36553         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36554         * lib/unistr/u16-strchr.c: Likewise.
36555         * lib/unistr/u16-strrchr.c: Likewise.
36556         * lib/striconveh.c: Update.
36557         * lib/linebreak.c: Update.
36558
36559 2007-03-24  Bruno Haible  <bruno@clisp.org>
36560
36561         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36562         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36563
36564 2007-03-22  Bruno Haible  <bruno@clisp.org>
36565
36566         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36567
36568 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36569
36570         * MODULES.html.sh (File system functions): New module write-any-file.
36571         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36572         * m4/write-any-file.m4: New files.
36573
36574 2007-03-23  Eric Blake  <ebb9@byu.net>
36575
36576         * gnulib-tool: Rearrange space-tab sequences, since some editors
36577         like to eat them.
36578
36579 2007-03-23  Eric Blake  <ebb9@byu.net>
36580
36581         * lib/version-etc.c (version_etc_va): Update license wording to
36582         be more concise.  Recommended by Richard Stallman.
36583
36584 2007-03-22  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/poll.c (MSG_PEEK): New fallback definition.
36587
36588 2007-03-22  Bruno Haible  <bruno@clisp.org>
36589
36590         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36591         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36592         (main): Update.
36593         Fixes a compilation error on BeOS.
36594
36595 2007-03-22  Bruno Haible  <bruno@clisp.org>
36596
36597         * modules/frexpl-tests: New file.
36598         * tests/test-frexpl.c: New file.
36599
36600         * modules/frexpl: New file.
36601         * m4/frexpl.m4: New file.
36602         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36603         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36605         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36606         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36607         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36608
36609 2007-03-22  Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/frexpl.c: Share code with lib/frexp.c.
36612         * modules/mathl (Files): Add lib/frexp.c.
36613         (Depends-on): Add isnanl-nolibm.
36614
36615 2007-03-22  Bruno Haible  <bruno@clisp.org>
36616
36617         * modules/printf-frexp (Files): Add m4/frexp.m4.
36618         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36619         only if the found frexp function actually works.
36620
36621 2007-03-22  Bruno Haible  <bruno@clisp.org>
36622
36623         * lib/frexp.c: Remove older implementation that uses divisions.
36624
36625 2007-03-21  Bruno Haible  <bruno@clisp.org>
36626
36627         * modules/frexp-tests: New file.
36628         * tests/test-frexp.c: New file.
36629
36630         * modules/frexp: New file.
36631         * lib/frexp.c: New file.
36632         * m4/frexp.m4: New file.
36633         * lib/math_.h (frexp): New declaration.
36634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36635         REPLACE_FREXP.
36636         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36637
36638 2007-03-21  Bruno Haible  <bruno@clisp.org>
36639
36640         * modules/isnanl-tests: New file.
36641         * tests/test-isnanl.c: New file.
36642
36643         * modules/isnanl: New file.
36644         * lib/isnanl.h: New file.
36645         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36646         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36647         gl_FUNC_ISNANL_WORKS.
36648         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36649         New macros.
36650
36651 2007-03-21  Bruno Haible  <bruno@clisp.org>
36652
36653         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36654         lib/isnanl.h.
36655         (Include): Update.
36656         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36657         * lib/vasnprintf.c: Update.
36658         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36659         tests/test-isnanl.h, remove tests/test-isnanl.c.
36660         (Makefile.am): Update.
36661         * tests/test-isnanl-nolibm.c: New file.
36662         * tests/test-isnanl.h: New file.
36663         * tests/test-isnanl.c: Remove file.
36664
36665 2007-03-21  Jim Meyering  <jim@meyering.net>
36666
36667         When trying to open ".", treat ESTALE like EACCES.
36668         * lib/savewd.c (savewd_save): Resort to forking not just upon
36669         failure with EACCES, but also when errno is ESTALE.
36670
36671 2007-03-20  Bruno Haible  <bruno@clisp.org>
36672
36673         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36674         Needed on AIX 5.1. Reported by Matthew Woehlke.
36675
36676 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36677
36678         Suggestions by Bruno Haible:
36679         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36680         our own.
36681         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36682         * modules/acl (Depends-on): Add gettext.
36683
36684 2007-03-19  Bruno Haible  <bruno@clisp.org>
36685
36686         * modules/iconvme: Remove file.
36687         * lib/iconvme.h: Remove file.
36688         * lib/iconvme.c: Remove file.
36689         * m4/iconvme.m4: Remove file.
36690
36691 2007-03-19  Bruno Haible  <bruno@clisp.org>
36692
36693         * doc/relocatable-maint.texi: Break long shell script line.
36694         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36695
36696 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36697
36698         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36699         handle file_has_acl.
36700         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36701         * lib/acl.c: Move header inclusions and related macro defns into
36702         lib/acl-internal.h.
36703         (S_ISLNK): Remove defn, since that's now done for us.
36704         (file_has_acl): Move to lib/file-has-acl.c.
36705         Call acl_trivial if available.  This is the crucial part of the fix.
36706         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36707         shared within the library.  Rewrite a bit, partly to make it compatible
36708         with the GNU coding style.
36709         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36710         Remove unnecessary double-quotes.
36711         Don't test for acl_to_text; the build will catch that.
36712         Replace acl_entries if it doesn't exist and it is needed.
36713         Check for -lsec and acl_trivial (as used on Solaris 10).
36714         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36715         lib/file-has-acl.c.
36716         (Depends-on): Add sys_stat, for S_ISLNK.
36717
36718 2007-03-19  Ben Pfaff  <blp@gnu.org>
36719
36720         * doc/gnulib.texi: Fix typos.
36721         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36722
36723 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36724
36725         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36726         If size is zero here, buf must be zero.
36727
36728 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36729
36730         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36731         <bruno@clisp.org>.
36732
36733 2007-03-18  Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36736         Suggested by Eric Blake.
36737
36738 2007-03-18  Ben Pfaff  <blp@gnu.org>
36739
36740         * doc/relocatable.texi: Recommend using as prefix a directory
36741         that does not exist and will never be created.  Based on
36742         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36743         and others.
36744
36745 2007-03-17  Bruno Haible  <bruno@clisp.org>
36746
36747         * lib/fchownat.c: Include lchown.h.
36748
36749 2007-03-17  Bruno Haible  <bruno@clisp.org>
36750
36751         Fix endless loop when the given allocated size was > INT_MAX.
36752         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36753         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36754         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36755         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36756         * lib/sprintf.c (sprintf): Likewise.
36757
36758 2007-03-17  Bruno Haible  <bruno@clisp.org>
36759
36760         * tests/test-argp-2.sh (func_compare): Output a context diff.
36761
36762 2007-03-17  Bruno Haible  <bruno@clisp.org>
36763
36764         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36765         locale's decimal-point character.
36766
36767 2007-03-17  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36770         before comparing it. Needed because on some platforms (e.g. x86) a
36771         'long double' occupies less bytes than sizeof (long double).
36772
36773 2007-03-17  Bruno Haible  <bruno@clisp.org>
36774
36775         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36776         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36777         * tests/test-getaddrinfo.c (simple): Likewise.
36778         * tests/test-read-file.c (main): Likewise.
36779
36780 2007-03-17  Bruno Haible  <bruno@clisp.org>
36781
36782         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36783
36784 2007-03-17  Bruno Haible  <bruno@clisp.org>
36785
36786         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36787         unused variable.
36788
36789 2007-03-17  Bruno Haible  <bruno@clisp.org>
36790
36791         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36792         * tests/test-c-strncasecmp.c: Likewise.
36793
36794 2007-03-17  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/stdlib (Depends-on): Add unistd.
36797         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36798         Needed for MacOS X 10.3.
36799
36800 2007-03-17  Bruno Haible  <bruno@clisp.org>
36801
36802         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36803
36804 2007-03-17  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36807
36808 2007-03-17  Bruno Haible  <bruno@clisp.org>
36809
36810         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36811         to reflect files copied from gnulib (with or without modifications).
36812         Suggested by Jim Meyering.
36813
36814 2007-03-17  Eric Blake  <ebb9@byu.net>
36815
36816         * NEWS: Document stdlib change from 2007-02-18.
36817
36818 2007-03-17  Jim Meyering  <jim@meyering.net>
36819
36820         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36821         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36822         someone uses a name containing shell meta-characters.
36823         Reported by Alfred M. Szmidt.
36824
36825         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36826
36827 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36828
36829         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36830         and copy gettext configuration files only if configure.ac contains
36831         a use of AM_GNU_GETTEXT_VERSION.
36832
36833 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36834
36835         * build-aux/bootstrap (gnulib_name): New variable.
36836         (gnulib_tool_options): Use it.
36837
36838 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36839
36840         * tests/test-des.c: Use new namespace.
36841
36842 2007-03-15  Bruno Haible  <bruno@clisp.org>
36843
36844         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36845         Reported by James Youngman <jay@gnu.org>.
36846
36847 2007-03-15  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36850         declared prototype. Needed with cc on OSF/1 5.1.
36851
36852 2007-03-15  Bruno Haible  <bruno@clisp.org>
36853
36854         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36855         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36856         (struct gl_list_implementation): Add dispose_fn argument to the
36857         'create_empty', 'create' methods.
36858         (struct gl_list_impl_base): Add field 'dispose_fn'.
36859         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36860         argument.
36861         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36862         dispose_fn argument.
36863         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36864         dispose_fn on the dropped values.
36865         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36866         dispose_fn argument.
36867         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36868         dropped values.
36869         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36870         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36871         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36872         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36873         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36874         argument.
36875         (gl_tree_list_free): Call dispose_fn on the dropped values.
36876         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36877         the dropped values.
36878         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36879         Add dispose_fn argument.
36880         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36881         Call dispose_fn on the dropped values.
36882         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36883         Add dispose_fn argument.
36884         (gl_sublist_create): Initialize the 'dispose_fn' field.
36885         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36886         * tests/test-array_list.c (main): Update.
36887         * tests/test-carray_list.c (main): Update.
36888         * tests/test-avltree_list.c (main): Update.
36889         * tests/test-rbtree_list.c (main): Update.
36890         * tests/test-avltreehash_list.c (main): Update.
36891         * tests/test-rbtreehash_list.c (main): Update.
36892         * tests/test-linked_list.c (main): Update.
36893         * tests/test-linkedhash_list.c (main): Update.
36894         * tests/test-array_oset.c (main): Update.
36895
36896 2007-03-15  Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36899         (gl_oset_create_empty): Add dispose_fn argument.
36900         (struct gl_oset_implementation): Add dispose_fn argument to
36901         'create_empty' method.
36902         (struct gl_oset_impl_base): Add dispose_fn field.
36903         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36904         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36905         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36906         values.
36907         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36908         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36909         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36910         dropped value.
36911         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36912         dropped value.
36913         * tests/test-array_oset.c (main): Update.
36914         * tests/test-avltree_oset.c (main): Update.
36915         * tests/test-rbtree_oset.c (main): Update.
36916         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36917
36918 2007-03-13  Bruno Haible  <bruno@clisp.org>
36919
36920         * tests/test-stdbool.c (i): Update after last patch.
36921
36922 2007-03-12  Bruno Haible  <bruno@clisp.org>
36923
36924         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36925         the iswprint macro. Needed on Solaris 2.5.1.
36926
36927 2007-03-12  Bruno Haible  <bruno@clisp.org>
36928
36929         * tests/test-printf-frexp.c (main): Declare x as volatile.
36930
36931 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36932
36933         * doc/gnulib.texi (Build robot for gnulib): New section.
36934
36935 2007-03-12  Jim Meyering  <jim@meyering.net>
36936
36937         * build-aux/bootstrap: New file.
36938         * build-aux/bootstrap.conf: New file, from coreutils.
36939
36940 2007-03-11  Bruno Haible  <bruno@clisp.org>
36941
36942         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36943
36944 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36945
36946         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36947         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36948         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36949
36950 2007-03-11  Bruno Haible  <bruno@clisp.org>
36951
36952         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36953         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36954
36955 2007-03-11  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36958         formula. Needed for SunPRO C 5.0.
36959
36960 2007-03-11  Bruno Haible  <bruno@clisp.org>
36961
36962         * modules/long-options (Depends-on): Add getopt.
36963
36964 2007-03-11  Bruno Haible  <bruno@clisp.org>
36965
36966         * modules/modechange (Depends-on): Add stdbool.
36967
36968 2007-03-11  Bruno Haible  <bruno@clisp.org>
36969
36970         * modules/i-ring (Depends-on): Add stdbool.
36971
36972 2007-03-11  Bruno Haible  <bruno@clisp.org>
36973
36974         * modules/gc-des (Depends-on): Add stdbool.
36975
36976 2007-03-11  Bruno Haible  <bruno@clisp.org>
36977
36978         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36979
36980 2007-03-11  Bruno Haible  <bruno@clisp.org>
36981
36982         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36983
36984 2007-03-11  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36987
36988 2007-03-11  Bruno Haible  <bruno@clisp.org>
36989
36990         * lib/vasnprintf.c (sprintf): Undefine.
36991
36992 2007-03-11  Bruno Haible  <bruno@clisp.org>
36993
36994         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36995         initializers in SunPRO C and Compaq C compilers.
36996
36997 2007-03-11  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37000         decrementing code ANSI C compliant.
37001
37002 2007-03-11  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37005         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37006
37007 2007-03-11  Bruno Haible  <bruno@clisp.org>
37008
37009         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37010         <stdbool.h> substitute doesn't pass.
37011
37012 2007-03-11  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37015
37016 2007-03-11  Bruno Haible  <bruno@clisp.org>
37017
37018         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37019         script, for submission to autobuild.josefsson.org.
37020
37021 2007-03-10  Bruno Haible  <bruno@clisp.org>
37022
37023         * modules/canonicalize-lgpl-tests: New file.
37024         * tests/test-canonicalize-lgpl.sh: New file.
37025         * tests/test-canonicalize-lgpl.c: New file.
37026
37027         * modules/c-strcase-tests: New file.
37028         * tests/test-c-strcase.sh: New file.
37029         * tests/test-c-strcasecmp.c: New file.
37030         * tests/test-c-strncasecmp.c: New file.
37031
37032         * modules/atexit-tests: New file.
37033         * tests/test-atexit.sh: New file.
37034         * tests/test-atexit.c: New file.
37035
37036 2007-03-10  Bruno Haible  <bruno@clisp.org>
37037
37038         * tests/test-binary-io.sh: Use temporary filenames that are not so
37039         likely to clash with those of other tests (in a parallel make).
37040         * tests/test-binary-io.c: Likewise.
37041
37042 2007-03-10  Bruno Haible  <bruno@clisp.org>
37043
37044         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37045         fallback; use #error instead.
37046         Suggested by Simon Josefsson.
37047
37048 2007-03-10  Bruno Haible  <bruno@clisp.org>
37049
37050         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37051         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37052         first and the last.
37053
37054 2007-03-10  Bruno Haible  <bruno@clisp.org>
37055
37056         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37057
37058 2007-03-10  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37061         "make distcheck".
37062         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37063         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37064         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37065
37066 2007-03-10  Bruno Haible  <bruno@clisp.org>
37067
37068         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37069         variable.
37070         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37071         variable.
37072
37073 2007-03-09  Eric Blake  <ebb9@byu.net>
37074         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37075
37076         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37077         types are not being provided by gnulib.
37078         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37079         types are supported.
37080
37081 2007-03-10  Bruno Haible  <bruno@clisp.org>
37082
37083         * lib/stdio_.h (__attribute__): New macro.
37084         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37085         vsprintf): Specify __attribute__ __format__ for GCC.
37086         Suggested by Eric Blake.
37087
37088 2007-03-09  Bruno Haible  <bruno@clisp.org>
37089
37090         * modules/printf-posix-tests: New file.
37091         * tests/test-printf-posix.sh: New file.
37092         * tests/test-printf-posix.c: New file.
37093
37094         * modules/printf-posix: New file.
37095         * lib/printf.c: New file.
37096         * m4/printf-posix-rpl.m4: New file.
37097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37098         REPLACE_PRINTF.
37099         * lib/stdio_.h (printf): New declaration.
37100         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37101         ____strfmon____): New macros.
37102         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37103         REPLACE_PRINTF.
37104
37105 2007-03-09  Bruno Haible  <bruno@clisp.org>
37106
37107         * tests/test-vasnprintf-posix2.sh: New file.
37108         * tests/test-vasnprintf-posix2.c: New file.
37109         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37110         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37111         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37112
37113         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37114         a locale dependent decimal point, rather than always '.'.
37115
37116 2007-03-09  Eric Blake  <ebb9@byu.net>
37117
37118         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37119         spite of platforms like Tandem/NSK that define it to -1.
37120
37121 2007-03-08  Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/vprintf-posix-tests: New file.
37124         * tests/test-vprintf-posix.sh: New file.
37125         * tests/test-vprintf-posix.c: New file.
37126         * tests/test-printf-posix.h: New file.
37127
37128         * modules/vprintf-posix: New file.
37129         * lib/vprintf.c: New file.
37130         * m4/vprintf-posix.m4: New file.
37131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37132         REPLACE_VPRINTF.
37133         * lib/stdio_.h (vprintf): New declaration.
37134         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37135         REPLACE_VPRINTF.
37136
37137 2007-03-08  Bruno Haible  <bruno@clisp.org>
37138
37139         * modules/fprintf-posix-tests: New file.
37140         * tests/test-fprintf-posix.sh: New file.
37141         * tests/test-fprintf-posix.c: New file.
37142
37143         * modules/fprintf-posix: New file.
37144         * lib/fprintf.c: New file.
37145         * m4/fprintf-posix.m4: New file.
37146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37147         REPLACE_FPRINTF.
37148         * lib/stdio_.h (fprintf): New declaration.
37149         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37150         REPLACE_FPRINTF.
37151
37152 2007-03-08  Bruno Haible  <bruno@clisp.org>
37153
37154         * modules/vfprintf-posix-tests: New file.
37155         * tests/test-vfprintf-posix.sh: New file.
37156         * tests/test-vfprintf-posix.c: New file.
37157         * tests/test-fprintf-posix.h: New file.
37158         * tests/test-fprintf-posix.out: New file.
37159
37160         * modules/vfprintf-posix: New file.
37161         * lib/vfprintf.c: New file.
37162         * m4/vfprintf-posix.m4: New file.
37163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37164         REPLACE_VFPRINTF.
37165         * lib/stdio_.h (vfprintf): New declaration.
37166         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37167         REPLACE_VFPRINTF.
37168
37169 2007-03-08  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37172
37173 2007-03-08  Bruno Haible  <bruno@clisp.org>
37174
37175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37176         instead of 'expr' invocations.
37177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37182         Suggested by Paul Eggert.
37183
37184 2007-03-08  Bruno Haible  <bruno@clisp.org>
37185
37186         * modules/fseterr-tests: New file.
37187         * tests/test-fseterr.c: New file.
37188
37189         * modules/fseterr: New file.
37190         * lib/fseterr.h: New file.
37191         * lib/fseterr.c: New file.
37192
37193 2007-03-08  Bruno Haible  <bruno@clisp.org>
37194
37195         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37196         * lib/getopt_.h: Likewise.
37197         * lib/mbswidth.h: Likewise.
37198         * lib/setenv.h: Likewise.
37199         * lib/vasnprintf.h: Likewise.
37200         * lib/vasprintf.h: Likewise.
37201         * lib/verror.h: Likewise.
37202         * lib/xsetenv.h: Likewise.
37203         * lib/xvasprintf.h: Likewise.
37204
37205 2007-03-08  Jim Meyering  <jim@meyering.net>
37206
37207         * users.txt: Add parted.
37208
37209         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37210
37211 2007-03-07  Bruno Haible  <bruno@clisp.org>
37212
37213         * m4/printf.m4: Make the shell script snippets copy&pastable.
37214
37215 2007-03-02  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/netinet_in_.h: New file.
37218         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37219         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37220         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37221         (Depends-on): Add absolute-header.
37222         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37223         into netinet/in.h.
37224
37225 2007-03-03  Bruno Haible  <bruno@clisp.org>
37226
37227         * lib/sys_select_.h: New file.
37228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37229         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37230         * modules/sys_select (Files): Add lib/sys_select_.h.
37231         (Depends-on): Add absolute-header.
37232         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37233         into sys/select.h.
37234
37235 2007-03-02  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37238         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37239         values.
37240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37241         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37242         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37243         * modules/sys_socket (Depends-on): Add absolute-header.
37244         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37245         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37246         (Include): Remove requirement of inclusion of <sys/types.h>.
37247
37248 2007-03-02  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/byteswap_.h (bswap_32): Fix formula.
37251
37252 2007-03-06  Bruno Haible  <bruno@clisp.org>
37253
37254         * modules/sprintf-posix-tests: New file.
37255         * tests/test-sprintf-posix.c: New file.
37256
37257         * modules/sprintf-posix: New file.
37258         * lib/sprintf.c: New file.
37259         * m4/sprintf-posix.m4: New file.
37260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37261         REPLACE_SPRINTF.
37262         * lib/stdio_.h (sprintf): New declaration.
37263         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37264         REPLACE_SPRINTF.
37265
37266 2007-03-06  Bruno Haible  <bruno@clisp.org>
37267
37268         * modules/vsprintf-posix-tests: New file.
37269         * tests/test-vsprintf-posix.c: New file.
37270         * tests/test-sprintf-posix.h: New file.
37271
37272         * modules/vsprintf-posix: New file.
37273         * lib/vsprintf.c: New file.
37274         * m4/vsprintf-posix.m4: New file.
37275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37276         REPLACE_VSPRINTF.
37277         * lib/stdio_.h (vsprintf): New declaration.
37278         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37279         REPLACE_VSPRINTF.
37280
37281 2007-03-06  Bruno Haible  <bruno@clisp.org>
37282
37283         * modules/vsnprintf (Depend-on): Remove minmax.
37284
37285 2007-03-06  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/snprintf-posix-tests: New file.
37288         * tests/test-snprintf-posix.c: New file.
37289
37290         * modules/snprintf-posix: New file.
37291         * m4/snprintf-posix.m4: New file.
37292         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37293         gl_FUNC_SNPRINTF.
37294         (gl_FUNC_SNPRINTF): Invoke it.
37295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37296         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37297         is set.
37298         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37299
37300 2007-03-06  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/vsnprintf-posix-tests: New file.
37303         * tests/test-vsnprintf-posix.c: New file.
37304         * tests/test-snprintf-posix.h: New file.
37305
37306         * modules/vsnprintf-posix: New file.
37307         * m4/vsnprintf-posix.m4: New file.
37308         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37309         gl_FUNC_VSNPRINTF.
37310         (gl_FUNC_VSNPRINTF): Invoke it.
37311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37312         * lib/stdio_.h (vsnprintf): Define as a replacement if
37313         REPLACE_VSNPRINTF is set.
37314         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37315
37316 2007-03-06  Bruno Haible  <bruno@clisp.org>
37317
37318         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37320
37321 2007-03-06  Bruno Haible  <bruno@clisp.org>
37322
37323         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37324         (asinl): Declare also if HAVE_DECL_ASINL is set.
37325         (atanl): Declare also if HAVE_DECL_ATANL is set.
37326         (ceill): Declare also if HAVE_DECL_CEILL is set.
37327         (cosl): Declare also if HAVE_DECL_COSL is set.
37328         (expl): Declare also if HAVE_DECL_EXPL is set.
37329         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37330         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37331         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37332         (logl): Declare also if HAVE_DECL_LOGL is set.
37333         (sinl): Declare also if HAVE_DECL_SINL is set.
37334         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37335         (tanl): Declare also if HAVE_DECL_TANL is set.
37336         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37339         declaration of frexpl, ldexpl.
37340         * modules/printf-frexpl (Depends-on): Add math.
37341         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37342
37343 2007-03-05  Bruno Haible  <bruno@clisp.org>
37344
37345         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37346         frexpl and ldexpl are declared.
37347         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37348
37349 2007-03-05  Bruno Haible  <bruno@clisp.org>
37350
37351         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37352         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37353
37354 2007-03-05  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/stdio_.h: Include <stddef.h>.
37357
37358 2007-03-05  Bruno Haible  <bruno@clisp.org>
37359
37360         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37361
37362 2007-03-05  Bruno Haible  <bruno@clisp.org>
37363
37364         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37365         NetBSD 4, from Ralf Wildenhues.
37366
37367 2007-03-04  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/vasprintf.h: Update #if logic for the case when the functions
37370         exist but are overridden.
37371
37372 2007-03-04  Bruno Haible  <bruno@clisp.org>
37373
37374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37375         implementations: glibc-2.4 and MacOS X 10.3.
37376         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37377         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37378         * tests/test-vasprintf-posix.c (test_function): Likewise.
37379
37380 2007-03-04  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/vasprintf-posix-tests: New file.
37383         * tests/test-vasprintf-posix.c: New file.
37384
37385         * modules/vasprintf-posix: New file.
37386         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37387         defined.
37388         * m4/vasprintf-posix.m4: New file.
37389         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37390         gl_FUNC_VASPRINTF.
37391         (gl_FUNC_VASPRINTF): Invoke it.
37392         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37393         here.
37394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37395
37396 2007-03-04  Bruno Haible  <bruno@clisp.org>
37397
37398         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37399         REPLACE_GETTIMEOFDAY.
37400         * modules/sys_time (Makefile.am): Likewise.
37401         * m4/sys_time_h.m4: Likewise.
37402         * m4/gettimeofday.m4: Likewise.
37403
37404 2007-03-04  Bruno Haible  <bruno@clisp.org>
37405
37406         * modules/vasnprintf-posix-tests: New file.
37407         * tests/test-vasnprintf-posix.c: New file.
37408
37409         * modules/vasnprintf-posix: New file.
37410         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37411         printf-frexpl.h.
37412         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37413         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37414         REPLACE_VASNPRINTF is defined.
37415         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37416         gl_FUNC_VASNPRINTF.
37417         (gl_FUNC_VASNPRINTF): Invoke it.
37418         * m4/vasnprintf-posix.m4: New file.
37419         * m4/printf.m4: New file.
37420
37421 2007-03-04  Bruno Haible  <bruno@clisp.org>
37422
37423         Compile progreloc.c only if --enable-relocatable is specified.
37424         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37425         if --enable-relocatable was specified.
37426         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37427         lib_SOURCES.
37428
37429 2007-03-04  Jim Meyering  <jim@meyering.net>
37430
37431         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37432         Use it consistently, rather than enumerating errno constants.
37433
37434 2007-03-04  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/xvasprintf-tests: New file.
37437         * tests/test-xvasprintf.c: New file.
37438
37439         * modules/vasprintf-tests: New file.
37440         * tests/test-vasprintf.c: New file.
37441
37442         * modules/vasnprintf-tests: New file.
37443         * tests/test-vasnprintf.c: New file.
37444
37445         * modules/vsnprintf-tests: New file.
37446         * tests/test-vsnprintf.c: New file.
37447
37448         * modules/snprintf-tests: New file.
37449         * tests/test-snprintf.c: New file.
37450
37451 2007-03-04  Bruno Haible  <bruno@clisp.org>
37452
37453         Compile relocatable.c only if --enable-relocatable is specified.
37454         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37455         gl_RELOCATABLE_LIBRARY.
37456         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37457         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37458         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37459         gl_RELOCATABLE_LIBRARY.
37460         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37461         (Makefile.am): Remove lib_SOURCES.
37462         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37463         gl_RELOCATABLE_LIBRARY.
37464         (Makefile.am): Remove lib_SOURCES.
37465         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37466         always.
37467         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37468         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37469
37470 2007-03-04  Bruno Haible  <bruno@clisp.org>
37471
37472         * modules/argmatch-tests: New file.
37473         * tests/test-argmatch.c: New file.
37474
37475         * tests/test-allocsa.c (main): Halve the number of loop runs.
37476
37477         * modules/alloca-opt-tests: New file.
37478         * tests/test-alloca-opt.c: New file.
37479
37480 2007-03-04  Jim Meyering  <jim@meyering.net>
37481
37482         Work around difference between Linux ACLs and Solaris 10 ZFS.
37483         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37484         for EINVAL.
37485
37486 2007-03-03  Bruno Haible  <bruno@clisp.org>
37487
37488         * modules/relocatable-prog (Depends-on): Add back progreloc's
37489         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37490
37491 2007-03-03  Bruno Haible  <bruno@clisp.org>
37492
37493         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37494         * modules/relocatable-lib: New file.
37495
37496 2007-03-03  Bruno Haible  <bruno@clisp.org>
37497
37498         * modules/relocatable-prog: Renamed from modules/relocatable.
37499         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37500
37501 2007-03-03  Bruno Haible  <bruno@clisp.org>
37502
37503         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37504         m4/relocatable-lib.m4.
37505         (Depends-on): Remove 'relocatable'.
37506         (configure.ac): Add gl_RELOCATABLE_NOP.
37507
37508 2007-03-03  Bruno Haible  <bruno@clisp.org>
37509
37510         * modules/relocatable-prog-wrapper: New file.
37511         * modules/relocatable (Depends-on): Add it. Remove all other
37512         dependencies except progname.
37513         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37514
37515         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37516         (gl_FUNC_STRERROR): Nop.
37517         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37518
37519         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37520         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37521
37522         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37523         (gl_FUNC_READLINK): Update.
37524
37525         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37526
37527 2007-03-03  Bruno Haible  <bruno@clisp.org>
37528
37529         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37530         * modules/xreadlink (Depends-on): Add unistd.
37531         * modules/xreadlink-with-size (Depends-on): Likewise.
37532
37533 2007-03-03  Bruno Haible  <bruno@clisp.org>
37534
37535         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37536         extracted from gt_FUNC_SETENV.
37537         (gt_FUNC_SETENV): Remove macro.
37538         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37539         remove gt_FUNC_SETENV.
37540
37541 2007-03-03  Bruno Haible  <bruno@clisp.org>
37542
37543         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37544         ENABLE_RELOCATABLE here.
37545         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37546
37547 2007-03-03  Bruno Haible  <bruno@clisp.org>
37548
37549         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37550         * tests/test-rbtreehash_list.c: Include progname.h.
37551         (main): Call set_program_name.
37552
37553         * modules/rbtree-oset-tests (Depends-on): Add progname.
37554         * tests/test-rbtree_oset.c: Include progname.h.
37555         (main): Call set_program_name.
37556
37557         * modules/rbtree-list-tests (Depends-on): Add progname.
37558         * tests/test-rbtree_list.c: Include progname.h.
37559         (main): Call set_program_name.
37560
37561         * modules/linked-list-tests (Depends-on): Add progname.
37562         * tests/test-linked_list.c: Include progname.h.
37563         (main): Call set_program_name.
37564
37565 2007-03-03  Bruno Haible  <bruno@clisp.org>
37566
37567         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37568         All uses of __restrict changed to _Restrict_.
37569         * lib/glob_.h (__restrict): Remove macro.
37570
37571 2007-03-02  Bruno Haible  <bruno@clisp.org>
37572
37573         * modules/gettext (configure.ac): Require gettext infrastructure
37574         from version 0.16.1.
37575
37576 2007-03-02  Bruno Haible  <bruno@clisp.org>
37577
37578         * modules/linkedhash-list-tests (Depends-on): Add progname.
37579         * tests/test-linkedhash_list.c: Include progname.h.
37580         (main): Call set_program_name.
37581
37582         * modules/carray-list-tests (Depends-on): Add progname.
37583         * tests/test-carray_list.c: Include progname.h.
37584         (main): Call set_program_name.
37585
37586         * modules/avltreehash-list-tests (Depends-on): Add progname.
37587         * tests/test-avltreehash_list.c: Include progname.h.
37588         (main): Call set_program_name.
37589
37590         * modules/avltree-oset-tests (Depends-on): Add progname.
37591         * tests/test-avltree_oset.c: Include progname.h.
37592         (main): Call set_program_name.
37593
37594         * modules/avltree-list-tests (Depends-on): Add progname.
37595         * tests/test-avltree_list.c: Include progname.h.
37596         (main): Call set_program_name.
37597
37598         * modules/array-oset-tests (Depends-on): Add progname.
37599         * tests/test-array_oset.c: Include progname.h.
37600         (main): Call set_program_name.
37601
37602         * modules/array-list-tests (Depends-on): Add progname.
37603         * tests/test-array_list.c: Include progname.h.
37604         (main): Call set_program_name.
37605
37606         * modules/argp-tests (Depends-on): Add progname.
37607         * tests/test-argp.c: Include argp.h first. Include progname.h.
37608         (main): Call set_program_name.
37609
37610 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37611
37612         * doc/gnulib-tool.texi (Initial import): Reword description of
37613         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37614         limited effect even if defined after the first system include.
37615
37616 2007-03-01  Bruno Haible  <bruno@clisp.org>
37617
37618         * build-aux/config.libpath: Update to libtool-1.5.22.
37619         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37620
37621 2007-03-01  Bruno Haible  <bruno@clisp.org>
37622
37623         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37624         foo_CFLAGS.
37625         Reported by Ralf Wildenhues.
37626
37627 2007-03-01  Bruno Haible  <bruno@clisp.org>
37628
37629         * build-aux/install-reloc: Remove object files left over by some
37630         compilers.
37631         Reported by Ralf Wildenhues.
37632
37633 2007-03-01  Bruno Haible  <bruno@clisp.org>
37634
37635         * build-aux/install-reloc: Break long lines.
37636
37637 2007-03-01  Bruno Haible  <bruno@clisp.org>
37638
37639         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37640         Reported by Ralf Wildenhues.
37641
37642 2007-03-01  Bruno Haible  <bruno@clisp.org>
37643
37644         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37645         include ordering constraints.
37646
37647 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37648
37649         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37651         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37652         as another example.
37653         * lib/time_.h: Fix misspelling.
37654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37655         Require gl_HEADER_TIME_H_DEFAULTS.
37656         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37657         * m4/time_r.m4 (gl_TIME_R): Likewise.
37658         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37659
37660 2007-03-01  Bruno Haible  <bruno@clisp.org>
37661
37662         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37663         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37664
37665 2007-03-01  Jim Meyering  <jim@meyering.net>
37666
37667         * modules/xreadlink (Maintainer): Add my name.
37668         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37669
37670 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37671             Bruno Haible  <bruno@clisp.org>
37672
37673         * build-aux/install-reloc: Compile also c-ctype.c.
37674         * build-aux/relocatable.sh.in: New file.
37675         * doc/relocatable.texi: New file.
37676         * doc/relocatable-maint.texi: New file.
37677         * doc/gnulib.texi: Include relocatable-maint.texi.
37678         * lib/progreloc.c: Include unistd.h unconditionally.
37679         * lib/relocwrapper.c: Include unistd.h unconditionally.
37680         Include c-ctype.h.
37681         (add_dotbin): Use c_tolower.
37682         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37683         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37684         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37685         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37686         to m4/relocatable-lib.m4.
37687         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37688         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37689         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37690         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37691         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37692         * modules/relocatable: New file.
37693         * modules/relocatable-lib: New file.
37694         * modules/relocatable-script: New file.
37695
37696 2007-02-28  Bruno Haible  <bruno@clisp.org>
37697
37698         Import --enable-relocatable infrastructure.
37699         * build-aux/config.libpath: New file, from GNU gettext.
37700         * build-aux/install-reloc: New file, from GNU gettext.
37701         * build-aux/reloc-ldflags: New file, from GNU gettext.
37702         * lib/relocatable.h: New file, from GNU gettext.
37703         * lib/relocatable.c: New file, from GNU gettext.
37704         * lib/relocwrapper.c: New file, from GNU gettext.
37705         * m4/relocatable.m4: New file, from GNU gettext.
37706
37707 2007-02-28  Bruno Haible  <bruno@clisp.org>
37708
37709         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37710
37711         * modules/xreadlink: New file, from GNU gettext with modifications.
37712         * lib/xreadlink.c: New file, from GNU gettext.
37713         * lib/xreadlink.h: Add comments.
37714         (xreadlink): New declaration.
37715
37716         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37717         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37718         lib/xreadlink-with-size.c.
37719         (configure.ac): Remove gl_XREADLINK invocation.
37720         (Makefile.am): Augment lib_SOURCES.
37721         * m4/xreadlink.m4: Remove file.
37722         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37723         (xreadlink_with_size): Renamed from xreadink.
37724         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37725         * modules/canonicalize (Depends-on): Replace xreadlink with
37726         xreadlink-with-size.
37727         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37728
37729 2007-02-25  Jim Meyering  <jim@meyering.net>
37730
37731         * build-aux/announce-gen: When complaining about excess arguments,
37732         list them.
37733
37734 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37735
37736         * README: Document signed integer overflow situation more
37737         accurately.
37738
37739 2007-02-25  Bruno Haible  <bruno@clisp.org>
37740
37741         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37742         'a' or 'A' conversion.
37743
37744 2007-02-25  Bruno Haible  <bruno@clisp.org>
37745
37746         * modules/filename: Renamed from modules/pathname.
37747         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37748         lib/concatpath.c with lib/concat-filename.c.
37749         (Makefile.am): Update.
37750         (Include): Replace pathname.h with filename.h.
37751         * lib/filename.h: Renamed from lib/pathname.h.
37752         (concatenated_filename): Renamed from concatenated_pathname.
37753         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37754         (concatenated_filename): Renamed from concatenated_pathname.
37755         * lib/findprog.c: Include filename.h instead of pathname.h.
37756         (find_in_path): Update.
37757         * lib/javacomp.c: Include filename.h instead of pathname.h.
37758         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37759         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37760         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37761         is_oldgcj_14_13_usable, is_javac_usable): Update.
37762         * lib/javaexec.c: Include filename.h instead of pathname.h.
37763         (execute_java_class): Update.
37764         * modules/findprog: Update.
37765         * modules/javacomp: Update.
37766         * modules/javaexec: Update.
37767         * MODULES.html.sh (File system functions): Add 'filename', remove
37768         'pathname'.
37769
37770 2007-02-25  Bruno Haible  <bruno@clisp.org>
37771
37772         * modules/printf-frexpl-tests: New file.
37773         * tests/test-printf-frexpl.c: New file.
37774
37775         * modules/printf-frexpl: New file.
37776         * lib/printf-frexpl.h: New file.
37777         * lib/printf-frexpl.c: New file.
37778         * m4/printf-frexpl.m4: New file.
37779
37780 2007-02-25  Bruno Haible  <bruno@clisp.org>
37781
37782         * modules/printf-frexp-tests: New file.
37783         * tests/test-printf-frexp.c: New file.
37784
37785         * modules/printf-frexp: New file.
37786         * lib/printf-frexp.h: New file.
37787         * lib/printf-frexp.c: New file.
37788         * m4/printf-frexp.m4: New file.
37789
37790 2007-02-25  Bruno Haible  <bruno@clisp.org>
37791
37792         Assume automake >= 1.10 for the tests.
37793         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37794         * modules/arctwo-tests: Likewise.
37795         * modules/argp-tests: Likewise.
37796         * modules/avltree-list-tests: Likewise.
37797         * modules/avltree-oset-tests: Likewise.
37798         * modules/avltreehash-list-tests: Likewise.
37799         * modules/carray-list-tests: Likewise.
37800         * modules/crc-tests: Likewise.
37801         * modules/des-tests: Likewise.
37802         * modules/gc-arcfour-tests: Likewise.
37803         * modules/gc-arctwo-tests: Likewise.
37804         * modules/gc-des-tests: Likewise.
37805         * modules/gc-hmac-md5-tests: Likewise.
37806         * modules/gc-hmac-sha1-tests: Likewise.
37807         * modules/gc-md2-tests: Likewise.
37808         * modules/gc-md4-tests: Likewise.
37809         * modules/gc-md5-tests: Likewise.
37810         * modules/gc-pbkdf2-sha1-tests: Likewise.
37811         * modules/gc-rijndael-tests: Likewise.
37812         * modules/gc-sha1-tests: Likewise.
37813         * modules/gc-tests: Likewise.
37814         * modules/getaddrinfo-tests: Likewise.
37815         * modules/hmac-md5-tests: Likewise.
37816         * modules/hmac-sha1-tests: Likewise.
37817         * modules/linked-list-tests: Likewise.
37818         * modules/linkedhash-list-tests: Likewise.
37819         * modules/lock-tests: Likewise.
37820         * modules/md2-tests: Likewise.
37821         * modules/md4-tests: Likewise.
37822         * modules/md5-tests: Likewise.
37823         * modules/rbtree-list-tests: Likewise.
37824         * modules/rbtree-oset-tests: Likewise.
37825         * modules/rbtreehash-list-tests: Likewise.
37826         * modules/read-file-tests: Likewise.
37827         * modules/rijndael-tests: Likewise.
37828         * modules/stdint-tests: Likewise.
37829         * modules/tls-tests: Likewise.
37830
37831 2007-02-24  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37834         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37835         function; instead check whether isnan with a double argument links.
37836         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37837         function; instead check whether isnan with a 'long double' argument
37838         links.
37839         Reported by Eric Blake <ebb9@byu.net>.
37840
37841 2007-02-24  Bruno Haible  <bruno@clisp.org>
37842
37843         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37844         defined.
37845         * lib/isnanl.c: Remove all code. Just include isnan.c.
37846         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37847
37848 2007-02-25  Jim Meyering  <jim@meyering.net>
37849
37850         Avoid conflicting types for 'unsetenv' on FreeBSD.
37851         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37852         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37853         in stdlib.h.
37854
37855 2007-02-24  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/isnanl-nolibm-tests: New file.
37858         * tests/test-isnanl.c: New file.
37859
37860         * modules/isnanl-nolibm: New file.
37861         * lib/isnanl.h: New file.
37862         * lib/isnanl.c: New file.
37863         * m4/isnanl.m4: New file.
37864
37865 2007-02-24  Bruno Haible  <bruno@clisp.org>
37866
37867         * modules/isnan-nolibm-tests: New file.
37868         * tests/test-isnan.c: New file.
37869
37870         * modules/isnan-nolibm: New file.
37871         * lib/isnan.h: New file.
37872         * lib/isnan.c: New file.
37873         * m4/isnan.m4: New file.
37874
37875 2007-02-24  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37878         assume that an exponent fits in 20 bits.
37879
37880 2007-02-24  Jim Meyering  <jim@meyering.net>
37881
37882         * m4/regex.m4: Update the description of the configure-time option,
37883         --without-included-regex, to state accurately what the defaults are,
37884         and perhaps to give people an idea why using this option is risky.
37885
37886 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37887
37888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37889         loops on small arguments.  This attempts to avoid the problem
37890         Bruno Haible reported for AIX 4.3.2 in
37891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37892
37893 2007-02-23  Bruno Haible  <bruno@clisp.org>
37894
37895         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37896         Needed for help2man.
37897
37898 2007-02-23  Karl Berry  <karl@gnu.org>
37899
37900         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37901         exists, foo.h should be cvs-ignored, not committed.
37902
37903 2007-02-23  Eric Blake  <ebb9@byu.net>
37904
37905         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37906         * lib/stat-time.h (includes): Likewise.
37907         * lib/utimecmp.c (includes): Likewise.
37908         * lib/utimens.h (includes): Likewise.
37909         * lib/getdate.y (includes): Also include "timespec.h" for use
37910         internal to the module.
37911         * modules/utimens (Depends-on): Revert yesterday's patch.
37912         * modules/nanosleep (Depends-on): Add missing dependency.
37913
37914 2007-02-22  Bruno Haible  <bruno@clisp.org>
37915
37916         * lib/glob.c: Don't include getlogin_r.h.
37917
37918 2007-02-22  Jim Meyering  <jim@meyering.net>
37919
37920         * modules/utimens (Depends-on): Add timespec, required for
37921         utimens.h's inclusion of timespec.h.
37922
37923 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37924
37925         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37926         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37927         Schwab in
37928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37929         I'll try to think of a better way to fix the Solaris problem.
37930
37931         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37932         like glibc; on Solaris 10, it fails with errno == EINVAL.
37933         POSIX says the behavior is unspecified if the first argument is NULL,
37934         so play it safe and never pass NULL to the system getcwd.
37935
37936 2007-02-21  Jim Meyering  <jim@meyering.net>
37937
37938         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37939         of gettimeofday.  It would conflict with the one now always
37940         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37941         an IRIX 6.5 build failure.
37942
37943 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37944
37945         Minor fixups to port to Solaris 10 with Sun C 5.8.
37946         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37947         * modules/getcwd (Depends-on): Add dirfd.
37948         * lib/putenv.c (putenv): #undef it.
37949         (rpl_putenv): New decl.
37950         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37951
37952 2007-02-20  Bruno Haible  <bruno@clisp.org>
37953
37954         * modules/stdio-tests: New file.
37955         * tests/test-stdio.c: New file.
37956
37957         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37958         (Depends-on): Add stdio.
37959         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37960         (Include): Use <stdio.h> instead of vsnprintf.h.
37961         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37962         HAVE_DECL_VSNPRINTF.
37963         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37964
37965         * modules/snprintf (Files): Remove lib/snprintf.h.
37966         (Depends-on): Add stdio.
37967         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37968         (Include): Use <stdio.h> instead of snprintf.h.
37969         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37970         HAVE_DECL_SNPRINTF.
37971         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37972         * lib/getaddrinfo.c: Likewise.
37973
37974         * modules/stdio: New file.
37975         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37976         * lib/snprintf.h: Remove file.
37977         * lib/vsnprintf.h: Remove file.
37978         * lib/.cppi-disable: Remove snprintf.h.
37979         * m4/stdio_h.m4: New file.
37980         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37981
37982 2007-02-20  Jim Meyering  <jim@meyering.net>
37983
37984         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37985         used by e.g., mingw.  From Bruno Haible.
37986
37987 2007-02-19  Bruno Haible  <bruno@clisp.org>
37988
37989         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37990         warnings.
37991         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37992
37993 2007-02-19  Bruno Haible  <bruno@clisp.org>
37994
37995         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37996         from mingw users.
37997
37998 2007-02-19  Bruno Haible  <bruno@clisp.org>
37999
38000         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38001         warnings.
38002         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38003
38004 2007-02-19  Jim Meyering  <jim@meyering.net>
38005
38006         Don't use FD after a successful "fdopendir (fd)".
38007         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38008         Reset it by calling dirfd on the just-obtained DIR*.
38009
38010         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38011         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38012
38013 2007-02-18  Bruno Haible  <bruno@clisp.org>
38014
38015         * lib/readlink.c: Include <unistd.h>.
38016         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38017         HAVE_READLINK.
38018         * modules/readlink (Depends-on): Add unistd.
38019         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38020         (Include): Add <unistd.h>.
38021
38022         * lib/getlogin_r.h: Remove file.
38023         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38024         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38025         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38026         HAVE_DECL_GETLOGIN_R.
38027         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38028         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38029         (Include): Use <unistd.h> instead of getlogin_r.h.
38030
38031         * lib/getcwd.h: Remove file.
38032         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38033         * lib/xgetcwd.c: Likewise.
38034         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38035         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38036         * modules/getcwd (Files): Remove lib/getcwd.h.
38037         (Depends-on): Add unistd.
38038         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38039         (Include): Use <unistd.h> instad of getcwd.h.
38040
38041         * lib/ftruncate.c: Include <unistd.h> first.
38042         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38043         Set HAVE_FTRUNCATE.
38044         * modules/ftruncate (Depends-on): Add unistd.
38045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38046
38047         * lib/fchdir.c: Include <unistd.h> first.
38048         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38050         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38051         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38052         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38053
38054         * lib/dup2.c: Include <unistd.h> first.
38055         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38056         HAVE_DUP2.
38057         * modules/dup2 (Depends-on): Add unistd.
38058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38059
38060         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38061         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38062         REPLACE_CHOWN. Don't define chown as a macro here.
38063         * modules/chown (Depends-on): Add unistd.
38064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38065
38066         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38067         Add definition for GL_LINK_WARNING.
38068         (chown, dup2): New declarations.
38069         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38070         link warning.
38071         (ftruncate): New declaration.
38072         (getcwd): New declaration, taken from old getcwd.h.
38073         (getlogin_r): New declaration, taken from old getlogin_r.h.
38074         (readlink): New declaration.
38075         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38076         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38077         (gl_PREREQ_UNISTD): Remove macro.
38078         (gl_UNISTD_MODULE_INDICATOR): New macro.
38079         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38080         many new variables. Don't set UNISTD_H.
38081         * modules/unistd (Description): Change.
38082         (Depends-on): Add link-warning.
38083         (configure.ac): Update.
38084         (Makefile.am): Create unistd.h always. Substitute many new variables
38085         into it.
38086
38087 2007-02-18  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38090         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38091         HAVE_GETSUBOPT.
38092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38093         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38094         * lib/getsubopt.h: Remove file.
38095         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38096         (Depends-on): Add stdlib.
38097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38098         (Includes): Use <stdlib.h> instead of getsubopt.h.
38099         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38100         Set HAVE_GETSUBOPT.
38101         * lib/getsubopt.c: Don't include getsubopt.h.
38102
38103 2007-02-18  Bruno Haible  <bruno@clisp.org>
38104
38105         * modules/fchdir (Depends-on): Add dup2.
38106
38107 2007-02-18  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/stdlib_.h: Handle glibc's special invocation convention
38110         specially.
38111
38112 2007-02-18  Bruno Haible  <bruno@clisp.org>
38113
38114         * modules/stdlib-tests: New file.
38115         * tests/test-stdlib.c: New file.
38116
38117         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38118         (Depends-on): Add stdlib.
38119         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38120         (Includes): Use <stdlib.h> instead of mkstemp.h.
38121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38122         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38123         * lib/mkstemp.c: Don't include mkstemp.h.
38124         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38125         * lib/stdlib--.h: Don't include mkstemp.h.
38126
38127         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38128         (Depends-on): Add stdlib.
38129         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38130         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38131         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38132         HAVE_MKDTEMP.
38133         * lib/mkdtemp.c: Don't include mkdtemp.h.
38134         * lib/clean-temp.c: Don't include mkdtemp.h.
38135
38136         * modules/exit (Files): Remove lib/exit.h.
38137         (Depends-on): Add stdlib.
38138         (Makefile.am): Remove lib_SOURCES.
38139         (Include): Use <stdlib.h> instead of exit.h.
38140         * lib/argmatch.c: Don't include exit.h.
38141         * lib/execute.c: Likewise.
38142         * lib/pagealign_alloc.c: Likewise.
38143         * lib/pipe.c: Likewise.
38144         * lib/wait-process.c: Likewise.
38145         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38146         * lib/exitfail.c: Likewise.
38147         * lib/savewd.c: Likewise.
38148         * lib/xsetenv.c: Likewise.
38149
38150         * modules/stdlib: New file.
38151         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38152         and extra comments about mkstemp().
38153         * lib/exit.h: Remove file.
38154         * lib/mkdtemp.h: Remove file.
38155         * lib/mkstemp.h: Remove file.
38156         * m4/stdlib_h.m4: New file.
38157         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38158
38159 2007-02-18  Bruno Haible  <bruno@clisp.org>
38160
38161         * modules/math-tests: New file.
38162         * tests/test-math.c: New file.
38163
38164         * modules/math: New file.
38165         * modules/mathl (Files): Remove lib/mathl.h.
38166         (Depends-on): Add math.
38167         (Makefile.am): Don't mention mathl.h.
38168         (Include): Use <math.h> instead of mathl.h.
38169         * lib/math_.h: New file.
38170         * lib/mathl.h: Remove file.
38171         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38172         mathl.h.
38173         * lib/asinl.c: Likewise.
38174         * lib/atanl.c: Likewise.
38175         * lib/ceill.c: Likewise.
38176         * lib/cosl.c: Likewise.
38177         * lib/expl.c: Likewise.
38178         * lib/floorl.c: Likewise.
38179         * lib/frexpl.c: Likewise.
38180         * lib/ldexpl.c: Likewise.
38181         * lib/logl.c: Likewise.
38182         * lib/sincosl.c: Likewise.
38183         * lib/sinl.c: Likewise.
38184         * lib/sqrtl.c: Likewise.
38185         * lib/tanl.c: Likewise.
38186         * lib/trigl.c: Likewise.
38187         * m4/math_h.m4: New file.
38188         * MODULES.html.sh (Mathematics): Add math.
38189
38190 2007-02-17  Bruno Haible  <bruno@clisp.org>
38191
38192         * modules/wctype-tests: New file.
38193         * tests/test-wctype.c: New file.
38194
38195         * modules/wchar-tests: New file.
38196         * tests/test-wchar.c: New file.
38197
38198         * modules/unistd-tests: New file.
38199         * tests/test-unistd.c: New file.
38200
38201         * modules/time-tests: New file.
38202         * tests/test-time.c: New file.
38203
38204         * modules/sysexits-tests: New file.
38205         * tests/test-sysexits.c: New file.
38206
38207         * modules/sys_time-tests: New file.
38208         * tests/test-sys_time.c: New file.
38209
38210         * modules/sys_stat-tests: New file.
38211         * tests/test-sys_stat.c: New file.
38212
38213         * modules/sys_socket-tests: New file.
38214         * tests/test-sys_socket.c: New file.
38215
38216         * modules/sys_select-tests: New file.
38217         * tests/test-sys_select.c: New file.
38218
38219         * modules/string-tests: New file.
38220         * tests/test-string.c: New file.
38221
38222         * modules/stdbool-tests: New file.
38223         * tests/test-stdbool.c: New file.
38224
38225         * modules/netinet_in-tests: New file.
38226         * tests/test-netinet_in.c: New file.
38227
38228         * modules/inttypes-tests: New file.
38229         * tests/test-inttypes.c: New file.
38230
38231         * modules/fcntl-tests: New file.
38232         * tests/test-fcntl.c: New file.
38233
38234         * modules/byteswap-tests: New file.
38235         * tests/test-byteswap.c: New file.
38236
38237         * modules/arpa_inet-tests: New file.
38238         * tests/test-arpa_inet.c: New file.
38239
38240 2007-02-17  Bruno Haible  <bruno@clisp.org>
38241
38242         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38243         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38244         if the corresponding module is not enabled. Emit link warnings if
38245         the function is used nevertheless.
38246         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38247         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38248         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38249         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38250         * modules/inttypes (Depends-on): Add link-warning.
38251         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38252         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38253         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38254         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38255         * modules/imaxdiv (configure.ac): Likewise.
38256         * modules/strtoimax (configure.ac): Likewise.
38257         * modules/strtoumax (configure.ac): Likewise.
38258
38259 2007-02-17  Bruno Haible  <bruno@clisp.org>
38260
38261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38262         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38263         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38264         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38265
38266 2007-02-17  Bruno Haible  <bruno@clisp.org>
38267
38268         * modules/link-warning: New file.
38269         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38270         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38271         * modules/string (Depends-on): Add link-warning.
38272         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38273         string.h.
38274         * MODULES.html.sh (Support for building libraries and executables): Add
38275         link-warning.
38276
38277 2007-02-17  Bruno Haible  <bruno@clisp.org>
38278
38279         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38280         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38281         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38282         long lines.
38283
38284 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38285             Bruno Haible  <bruno@clisp.org>
38286
38287         * modules/tmpfile: New file.
38288         * lib/tmpfile.c: New file.
38289         * m4/tmpfile.m4: New file.
38290         * MODULES.html.sh (func_all_modules): New section "Input/output".
38291
38292 2007-02-15  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38295         (supports_delete_on_close): New function.
38296         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38297
38298 2007-02-14  Bruno Haible  <bruno@clisp.org>
38299
38300         * modules/mbspcasecmp-tests: New file.
38301         * tests/test-mbspcasecmp.sh: New file.
38302         * tests/test-mbspcasecmp.c: New file.
38303
38304         New module mbspcasecmp.
38305         * modules/mbspcasecmp: New file.
38306         * lib/mbspcasecmp.c: New file.
38307         * lib/string_.h (strncasecmp): Change warning message.
38308         (mbspcasecmp): New declaration.
38309         * m4/mbspcasecmp.m4: New file.
38310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38311         GNULIB_MBSPCASECMP.
38312         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38313         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38314
38315 2007-02-14  Bruno Haible  <bruno@clisp.org>
38316
38317         * modules/mbsncasecmp-tests: New file.
38318         * tests/test-mbsncasecmp.sh: New file.
38319         * tests/test-mbsncasecmp.c: New file.
38320
38321         New module mbsncasecmp.
38322         * modules/mbsncasecmp: New file.
38323         * lib/mbsncasecmp.c: New file.
38324         * lib/string_.h (mbsncasecmp): New declaration.
38325         * m4/mbsncasecmp.m4: New file.
38326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38327         GNULIB_MBSNCASECMP.
38328         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38329         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38330
38331 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38332
38333         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38334         Verify that it doesn't overlap with our flags.
38335         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38336         do not have the desired effect in multibyte locales; instead, use
38337         mbscasecmp.
38338         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38339         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38340         we don't require GNU fnmatch ourselves (if our users require it, they
38341         should do so explicitly).
38342
38343         Fix regex code so it doesn't rely on strcasecmp.
38344         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38345         Otherwise, include gnulib's langinfo.h.
38346         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38347         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38348         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38349         * modules/regex (FILES): Remove m4/codeset.m4.
38350         (Depends-on): Add localcharset.  Remove strcase.
38351
38352 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38353
38354         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38355         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38356
38357 2007-02-13  Bruno Haible  <bruno@clisp.org>
38358
38359         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38361
38362 2007-02-12  Bruno Haible  <bruno@clisp.org>
38363
38364         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38365         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38366         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38367         time warning rather than a link error.
38368
38369 2007-02-12  Bruno Haible  <bruno@clisp.org>
38370
38371         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38372         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38374
38375 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38376
38377         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38378         args, not 2.
38379
38380 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38381
38382         New module 'time', so that apps can include <time.h> as per
38383         POSIX and GNU instead of separate include files like time_r.h
38384         and timegm.h.  This implementation tries out a simpler approach
38385         for replacing decls in standard include files (as compared to
38386         the string module), somewhat as an experiment.
38387
38388         * config/srclist.txt: Comment out mktime.c for now.
38389         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38390         since it doesn't apply any more.  Use generic wording instead.
38391         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38392         'time'.
38393         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38394         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38395         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38396         Don't include <sys/types.h>; no longer needed since we assume C89.
38397         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38398         * lib/strftime.c: Likewise.
38399         * lib/time_r.c: Likewise.
38400         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38401         * lib/nanosleep.c: Include <time.h> first, to check interface.
38402         * lib/strptime.c: Likewise.
38403         * lib/time_r.c: Likewise.
38404         * lib/timegm.c: Likewise.
38405         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38406         needed.
38407         * lib/timegm.c: Don't include timegm.h; no longer needed.
38408         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38409         time.h now handles any problems in that area.
38410         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38411         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38412         that time.h defines struct timespec.
38413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38414         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38415         handles that.
38416         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38417         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38418         needed.  Set REPLACE_LOCALTIME.
38419         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38420         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38421         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38422         nanosleep; time_h.m4 now does that.  Don't require
38423         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38424         module handles this now.
38425         * modules/getdate (Depends-on): Remove timespec.  Add time.
38426         * modules/nanosleep (Depends-on): Likewise.
38427         * modules/stat-time (Depends-on): Likewise.
38428         * modules/nanosleep (Include): Include time.h, not timespec.h.
38429         * modules/strptime (Files): Remove lib/strptime.h.
38430         (Depends-on): Add extensions, time.
38431         (Include): Include time.h, not strptime.h.
38432         * modules/time_r (Files): Remove lib/time_r.h.
38433         (Depends-on): Add time.
38434         (Include): Include time.h, not time_r.h.
38435         * modules/timegm: Likewise.
38436         * modules/timespec (Description): Now does timespec-related decls
38437         of our own, instead of struct timespec itself.
38438         (Depends-on): Add time; remove extensions.
38439         (Maintainer): Add self.
38440         * modules/utimecmp (Depends-on): Add time; remove timespec.
38441         * modules/utimens (Depends-on): Likewise.
38442         * modules/xnanosleep (Depends-on): Likewise.
38443
38444 2007-02-11  Bruno Haible  <bruno@clisp.org>
38445
38446         * lib/c-strstr.c: Include allocsa.h.
38447         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38448         * lib/c-strcasestr.c: Include allocsa.h.
38449         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38450         * lib/strcasestr.c: Include allocsa.h.
38451         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38452         * lib/mbsstr.c: Include allocsa.h.
38453         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38454         allocsa/freesa instead of malloc/free.
38455         * lib/mbscasestr.c: Include allocsa.h.
38456         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38457         allocsa/freesa instead of malloc/free.
38458         * modules/c-strstr (Depends-on): Add allocsa.
38459         * modules/c-strcasestr (Depends-on): Likewise.
38460         * modules/strcasestr (Depends-on): Likewise.
38461         * modules/mbsstr (Depends-on): Likewise.
38462         * modules/mbscasestr (Depends-on): Likewise.
38463
38464 2007-02-11  Bruno Haible  <bruno@clisp.org>
38465
38466         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38467
38468         * modules/mbsspn-tests: New file.
38469         * tests/test-mbsspn.sh: New file.
38470         * tests/test-mbsspn.c: New file.
38471
38472 2007-02-11  Bruno Haible  <bruno@clisp.org>
38473
38474         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38475
38476         * modules/mbspbrk-tests: New file.
38477         * tests/test-mbspbrk.sh: New file.
38478         * tests/test-mbspbrk.c: New file.
38479
38480 2007-02-11  Bruno Haible  <bruno@clisp.org>
38481
38482         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38483         unneeded cast.
38484
38485         * modules/mbscspn-tests: New file.
38486         * tests/test-mbscspn.sh: New file.
38487         * tests/test-mbscspn.c: New file.
38488
38489 2007-02-11  Bruno Haible  <bruno@clisp.org>
38490
38491         * modules/mbscasecmp-tests: New file.
38492         * tests/test-mbscasecmp.sh: New file.
38493         * tests/test-mbscasecmp.c: New file.
38494
38495 2007-02-11  Bruno Haible  <bruno@clisp.org>
38496
38497         Ensure O(n) worst-case complexity of mbscasestr.
38498         * lib/mbscasestr.c: Include stdbool.h.
38499         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38500         functions.
38501         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38502         the bookkeeping indicates that it's worth it.
38503         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38504
38505         * modules/mbscasestr-tests: New file.
38506         * tests/test-mbscasestr1.c: New file.
38507         * tests/test-mbscasestr2.sh: New file.
38508         * tests/test-mbscasestr2.c: New file.
38509         * tests/test-mbscasestr3.sh: New file.
38510         * tests/test-mbscasestr3.c: New file.
38511         * tests/test-mbscasestr4.sh: New file.
38512         * tests/test-mbscasestr4.c: New file.
38513         * m4/locale-tr.m4: New file.
38514
38515 2007-02-11  Bruno Haible  <bruno@clisp.org>
38516
38517         Ensure O(n) worst-case complexity of mbsstr.
38518         * lib/mbsstr.c: Include stdbool.h.
38519         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38520         functions.
38521         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38522         bookkeeping indicates that it's worth it.
38523         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38524
38525         * modules/mbsstr-tests: New file.
38526         * tests/test-mbsstr1.c: New file.
38527         * tests/test-mbsstr2.sh: New file.
38528         * tests/test-mbsstr2.c: New file.
38529         * tests/test-mbsstr3.sh: New file.
38530         * tests/test-mbsstr3.c: New file.
38531         * m4/locale-fr.m4: New file.
38532
38533 2007-02-11  Bruno Haible  <bruno@clisp.org>
38534
38535         * lib/mbsrchr.c (mbsrchr): Fix bug.
38536
38537         * modules/mbsrchr-tests: New file.
38538         * tests/test-mbsrchr.sh: New file.
38539         * tests/test-mbsrchr.c: New file.
38540
38541 2007-02-11  Bruno Haible  <bruno@clisp.org>
38542
38543         * lib/mbschr.c (mbschr): Fix bug.
38544
38545         * modules/mbschr-tests: New file.
38546         * tests/test-mbschr.sh: New file.
38547         * tests/test-mbschr.c: New file.
38548         * m4/locale-zh.m4: New file.
38549
38550 2007-02-11  Bruno Haible  <bruno@clisp.org>
38551
38552         Support for copying multibyte string iterators.
38553         * lib/mbiter.h: Include <string.h>.
38554         (mbiter_multi_copy): New function.
38555         (mbi_copy): New macro.
38556         * lib/mbuiter.h: Include <string.h>.
38557         (mbuiter_multi_copy): New function.
38558         (mbui_copy): New macro.
38559
38560 2007-02-11  Bruno Haible  <bruno@clisp.org>
38561
38562         New module mbslen.
38563         * modules/mbslen: New file.
38564         * lib/mbslen.c: New file.
38565         * lib/string_.h (mbslen): New declaration.
38566         * m4/mbslen.m4: New file.
38567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38568         GNULIB_MBSLEN.
38569         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38570         * MODULES.html.sh (Internationalization functions): Add mbslen.
38571
38572 2007-02-11  Bruno Haible  <bruno@clisp.org>
38573
38574         Ensure O(n) worst-case complexity of strcasestr substitute.
38575         * lib/strcasestr.c: Include stdbool.h.
38576         (knuth_morris_pratt): New function.
38577         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38578         bookkeeping indicates that it's worth it.
38579         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38580
38581         * modules/strcasestr-tests: New file.
38582         * tests/test-strcasestr.c: New file.
38583
38584 2007-02-11  Bruno Haible  <bruno@clisp.org>
38585
38586         Ensure O(n) worst-case complexity of c_strcasestr.
38587         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38588         (knuth_morris_pratt): New function.
38589         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38590         the bookkeeping indicates that it's worth it.
38591         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38592
38593         * modules/c-strcasestr-tests: New file.
38594         * tests/test-c-strcasestr.c: New file.
38595
38596 2007-02-11  Bruno Haible  <bruno@clisp.org>
38597
38598         Ensure O(n) worst-case complexity of c_strstr.
38599         * lib/c-strstr.c: Include stdbool.h, string.h.
38600         (knuth_morris_pratt): New function.
38601         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38602         bookkeeping indicates that it's worth it.
38603         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38604
38605         * lib/c-strstr.c: Complete rewrite for maintainability.
38606
38607         * modules/c-strstr-tests: New file.
38608         * tests/test-c-strstr.c: New file.
38609
38610 2007-02-11  Bruno Haible  <bruno@clisp.org>
38611
38612         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38613         5.2.1 and earlier, whereby \055 was treated just like the range
38614         delimiter '-'.
38615         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38616
38617 2007-02-08  Bruno Haible  <bruno@clisp.org>
38618
38619         * modules/regex (Depends-on): Add stdbool.
38620         Reported by Dalibor Topic <robilad@kaffe.org>.
38621
38622 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38623
38624         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38625         Prefer returning from main to exiting from it.
38626         Remove unnecessary parens after sizeof.
38627
38628 2007-02-05  Bruno Haible  <bruno@clisp.org>
38629
38630         New module mbssep.
38631         * modules/mbssep: New file.
38632         * lib/mbssep.c: New file.
38633         * lib/string_.h (strsep): Add a conditional link warning.
38634         (mbssep): New declaration.
38635         * m4/mbssep.m4: New file.
38636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38637         GNULIB_MBSSEP.
38638         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38639         * MODULES.html.sh (Internationalization functions): Add mbssep.
38640
38641 2007-02-05  Bruno Haible  <bruno@clisp.org>
38642
38643         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38644         Optimize search in case of 1 delimiter.
38645
38646 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38647
38648         * lib/acl.h: Include sys/types.h before sys/acl.h.
38649
38650 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38651
38652         Merge upstream fix for glibc bugzilla #3957:
38653
38654         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38655
38656         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38657         bit for RE_HAT_LISTS_NOT_NEWLINE.
38658         (build_charclass_op): Remove bogus comment.
38659
38660 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38661
38662         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38663
38664 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38665
38666         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38667         * lib/memmem.c [!defined _LIBC]: Include config.h.
38668
38669 2007-02-04  Bruno Haible  <bruno@clisp.org>
38670
38671         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38672         warning message.
38673
38674 2007-02-04  Bruno Haible  <bruno@clisp.org>
38675
38676         New module mbstok_r.
38677         * modules/mbstok_r: New file.
38678         * lib/mbstok_r.c: New file.
38679         * lib/string_.h (strtok_r): Change argument names to match the
38680         comments. Add a conditional link warning.
38681         (mbstok_r): New declaration.
38682         * m4/mbstok_r.m4: New file.
38683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38684         GNULIB_MBSTOK_R.
38685         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38686         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38687
38688 2007-02-04  Bruno Haible  <bruno@clisp.org>
38689
38690         New module mbsspn.
38691         * modules/mbsspn: New file.
38692         * lib/mbsspn.c: New file.
38693         * lib/string_.h (strspn): Add a conditional link warning.
38694         (mbsspn): New declaration.
38695         * m4/mbsspn.m4: New file.
38696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38697         GNULIB_MBSSPN.
38698         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38699         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38700
38701 2007-02-04  Bruno Haible  <bruno@clisp.org>
38702
38703         New module mbspbrk.
38704         * modules/mbspbrk: New file.
38705         * lib/mbspbrk.c: New file.
38706         * lib/string_.h (strpbrk): Add a conditional link warning.
38707         (mbspbrk): New declaration.
38708         * m4/mbspbrk.m4: New file.
38709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38710         GNULIB_MBSPBRK.
38711         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38712         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38713
38714 2007-02-04  Bruno Haible  <bruno@clisp.org>
38715
38716         New module mbscspn.
38717         * modules/mbscspn: New file.
38718         * lib/mbscspn.c: New file.
38719         * lib/string_.h (strcspn): Add a conditional link warning.
38720         (mbscspn): New declaration.
38721         * m4/mbscspn.m4: New file.
38722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38723         GNULIB_MBSCSPN.
38724         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38725         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38726
38727 2007-02-04  Bruno Haible  <bruno@clisp.org>
38728
38729         New module mbscasestr, reduced goal of strcasestr.
38730         * modules/mbscasestr: New file.
38731         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38732         (mbscasestr): Renamed from strcasestr.
38733         * lib/strcasestr.c: Don't include mbuiter.h.
38734         (strcasestr): Remove support for multibyte locales.
38735         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38736         Change the conditional link warning.
38737         (mbscasestr): New declaration.
38738         * m4/mbscasestr.m4: New file.
38739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38740         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38741         REPLACE_STRCASESTR.
38742         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38744         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38745         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38746         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38747         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38748         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38749         (Depends-on): Remove mbuiter.
38750         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38751
38752 2007-02-04  Bruno Haible  <bruno@clisp.org>
38753
38754         Simplify handling of strncasecmp.
38755         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38756         the conditional link warning.
38757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38758         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38759         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38760         * modules/strcase (configure.ac): Don't invoke
38761         gl_STRING_MODULE_INDICATOR.
38762         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38763
38764 2007-02-04  Bruno Haible  <bruno@clisp.org>
38765
38766         New module mbscasecmp, reduced goal of strcasecmp.
38767         * modules/mbscasecmp: New file.
38768         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38769         (mbscasecmp): Renamed from strcasecmp.
38770         * lib/strcasecmp.c: Don't include mbuiter.h.
38771         (strcasecmp): Remove support for multibyte locales.
38772         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38773         Change the conditional link warning.
38774         (mbscasecmp): New declaration.
38775         * m4/mbscasecmp.m4: New file.
38776         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38777         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38778         REPLACE_STRCASECMP.
38779         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38781         GNULIB_MBSCASECMP.
38782         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38783         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38784         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38785         (Depends-on): Remove mbuiter.
38786         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38787
38788 2007-02-04  Bruno Haible  <bruno@clisp.org>
38789
38790         New module mbsstr. Remove module strstr.
38791         * modules/mbsstr: New file.
38792         * modules/strstr: Remove file.
38793         * lib/mbsstr.c: Renamed from lib/strstr.c.
38794         (mbsstr): Renamed from strstr.
38795         * lib/string_.h (strstr): Remove declaration. Change the conditional
38796         link warning.
38797         (mbsstr): New declaration.
38798         * m4/mbsstr.m4: New file.
38799         * m4/strstr.m4: Remove file.
38800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38801         REPLACE_STRSTR.
38802         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38803         Don't initialize GNULIB_STRSTR.
38804         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38805         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38806         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38807         (Support for systems lacking ANSI C 89): Remove strstr.
38808
38809 2007-02-04  Bruno Haible  <bruno@clisp.org>
38810
38811         New module mbsrchr.
38812         * modules/mbsrchr: New file.
38813         * lib/mbsrchr.c: New file.
38814         * lib/string_.h (strrchr): Add a conditional link warning.
38815         (mbsrchr): New declaration.
38816         * m4/mbsrchr.m4: New file.
38817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38818         GNULIB_MBSRCHR.
38819         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38820         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38821
38822 2007-02-04  Bruno Haible  <bruno@clisp.org>
38823
38824         New module mbschr.
38825         * modules/mbschr: New file.
38826         * lib/mbschr.c: New file.
38827         * lib/string_.h (strchr): Add a conditional link warning.
38828         (mbschr): New declaration.
38829         * m4/mbschr.m4: New file.
38830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38831         GNULIB_MBSCHR.
38832         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38833         * MODULES.html.sh (Internationalization functions): Add mbschr.
38834
38835 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38836
38837         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38838
38839         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38840
38841 2007-02-04  Bruno Haible  <bruno@clisp.org>
38842
38843         New module description section 'configure.ac-early'.
38844         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38845         (func_get_autoconf_early_snippet): New function.
38846         (func_import, func_create_testdir): Use it. Remove special cases for
38847         modules 'extensions' and 'lock'.
38848         * modules/extensions (configure.ac-early): Require
38849         gl_USE_SYSTEM_EXTENSIONS.
38850         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38851
38852 2007-02-04  Bruno Haible  <bruno@clisp.org>
38853
38854         Make use of gcj-4.3's -fsource and -ftarget option.
38855         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38856         and if so try the options -fsource and -ftarget.
38857         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38858         source_version, ftarget_option, target_version arguments.
38859         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38860         (is_envjavac_oldgcj_14_14_usable): Renamed from
38861         is_envjavac_gcj_14_14_usable.
38862         (is_envjavac_oldgcj_14_13_usable): Renamed from
38863         is_envjavac_gcj_14_13_usable.
38864         (is_gcj_present): Update.
38865         (is_gcj_43, is_gcj43_usable): New functions.
38866         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38867         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38868         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38869         try the options -fsource and -ftarget.
38870
38871 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38872
38873         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38874         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38875         larger value.
38876
38877 2007-02-03  Jim Meyering  <jim@meyering.net>
38878
38879         Give tools a better chance to allocate space for very large buffers.
38880         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38881
38882         Make pwd and readlink work also when run with an unreadable parent dir
38883         on systems with openat support.
38884         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38885         provided getcwd function, even when we have openat support.
38886         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38887
38888 2007-02-02  Bruno Haible  <bruno@clisp.org>
38889
38890         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38891         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38892         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38893         portability problems if one of these functions is only used on specific
38894         platforms.
38895         Reported by Paul Eggert.
38896
38897 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38898
38899         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38900         is causing more trouble than it's curing.
38901         * lib/regex_internal.h (__mempcpy): Remove.
38902         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38903         (and make the code a tad smaller to boot).
38904         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38905
38906 2007-02-02  Jim Meyering  <jim@meyering.net>
38907
38908         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38909         section, not in the Makefile.am: one.
38910
38911 2007-02-02  Eric Blake  <ebb9@byu.net>
38912
38913         * lib/strchrnul.c: Always include config.h first.
38914
38915         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38916         gnulib strstr is not necessary here.
38917
38918 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38919
38920         * m4/socklen.m4: Fix typo.
38921
38922 2007-02-02  Eric Blake  <ebb9@byu.net>
38923
38924         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38925         * modules/netinet_in (Makefile.am): Likewise.
38926
38927 2007-02-01  Bruno Haible  <bruno@clisp.org>
38928
38929         * lib/string_.h (GL_LINK_WARNING): New macro.
38930         (strcasecmp, strstr, strcasestr): If provided by the system,
38931         conditionally define as a macro that leads to a warning instead of to
38932         an error.
38933         (strncasecmp): Conditionally define as a macro that leads to a warning.
38934
38935 2007-02-01  Karl Berry  <karl@gnu.org>
38936
38937         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38938
38939 2007-02-01  Bruno Haible  <bruno@clisp.org>
38940
38941         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38942         renamings.
38943
38944 2007-02-01  Eric Blake  <ebb9@byu.net>
38945
38946         * modules/regex (Depends-on): Revert dependence on mempcpy.
38947         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38948         module's definition of mempcpy.
38949         Reported by Paul Eggert.
38950
38951 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38952
38953         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38954         the symbol XYZ before redefining it.  This fixes a problem with
38955         programs that don't use XYZ, when compiled on systems that define
38956         XYZ to something else.
38957
38958 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38959
38960         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38961         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38962         writeable to group or other and (2) is intended to have a special
38963         mode bit that is set or cleared.  In such a case, the directory
38964         should be neither group- nor other-writeable until the special
38965         mode bits are right.
38966
38967 2007-01-31  Eric Blake  <ebb9@byu.net>
38968
38969         * modules/mountlist (Depends-on): Add strstr.
38970
38971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38972         bug.
38973         * modules/string (Makefile.am): Remove redundant replacement.
38974         * modules/regex (Depends-on): Add mempcpy.
38975
38976 2007-01-31  Bruno Haible  <bruno@clisp.org>
38977
38978         New module description field 'Link'.
38979         * gnulib-tool (func_usage): Document --extract-link-directive.
38980         (sed_extract_prog): Recognize 'Link' directive.
38981         (func_get_link_directive): New function.
38982         (func_import): Show summary of link directives.
38983         Handle --extract-link-directive option.
38984         * modules/acl (Link): New section.
38985         * modules/clock-time (Link): New section.
38986         * modules/euidaccess (Link): New section.
38987         * modules/gettext (Link): New section.
38988         * modules/iconv (Link): New section.
38989         * modules/lock (Link): New section.
38990         * modules/nanosleep (Link): New section.
38991         * modules/readline (Link): New section.
38992
38993 2007-01-27  Bruno Haible  <bruno@clisp.org>
38994
38995         Enforce the use of gnulib modules for unportable <string.h> functions.
38996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38997         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38998         (gl_HEADER_STRING_H_BODY): Require it.
38999         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39000         the symbol XYZ to one that gives a link error.
39001         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39002         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39003         * modules/mempcpy (configure.ac): Likewise.
39004         * modules/memrchr (configure.ac): Likewise.
39005         * modules/stpcpy (configure.ac): Likewise.
39006         * modules/stpncpy (configure.ac): Likewise.
39007         * modules/strcase (configure.ac): Likewise.
39008         * modules/strcasestr (configure.ac): Likewise.
39009         * modules/strchrnul (configure.ac): Likewise.
39010         * modules/strdup (configure.ac): Likewise.
39011         * modules/strndup (configure.ac): Likewise.
39012         * modules/strnlen (configure.ac): Likewise.
39013         * modules/strpbrk (configure.ac): Likewise.
39014         * modules/strsep (configure.ac): Likewise.
39015         * modules/strstr (configure.ac): Likewise.
39016         * modules/strtok_r (configure.ac): Likewise.
39017
39018 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39019
39020         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39021
39022 2007-01-30  Jim Meyering  <jim@meyering.net>
39023
39024         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39025
39026 2007-01-29  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39029         * lib/execute.c: Likewise.
39030         * lib/pipe.c: Likewise.
39031         * lib/printf-args.h: Likewise.
39032         * lib/printf-args.c: Likewise.
39033         * lib/printf-parse.c: Likewise.
39034         * lib/vasnprintf.c: Likewise.
39035
39036 2007-01-29  Eric Blake  <ebb9@byu.net>
39037
39038         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39039         declaration.
39040
39041 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39042
39043         * lib/strptime.h (strptime): Use 'restrict' for args where
39044         POSIX requires this.
39045         * lib/strptime.c (strptime): Likewise.
39046         Change license notice from LGPL to GPL, since gnulib-tool will
39047         change this as needed.
39048         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39049         defined.
39050         Include "strptime.h" first, to check interface.
39051         Do not #undef _LIBC and _NL_CURRENT.
39052         Do not include <stdlib.h>; no longer needed.
39053         Include "time_r.h" and declare ptime_locale_status
39054         only if _LIBC is not defined.
39055         (__P): Remove unused macro.
39056         (match_string): Bring back glibc version, but use it only if _LIBC
39057         is defined.
39058         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39059         Remove unnecessary assertion and abort() call.
39060         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39061         * m4/strptime.m4: Fix serial number comment.
39062         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39063         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39064         (Depends-on): Add time_r.
39065
39066 2007-01-29  Bruno Haible  <bruno@clisp.org>
39067
39068         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39069         strptime.
39070         * modules/strptime (Depends-on): Add stdbool.
39071         * lib/strptime.h: Include <time.h> always. Add comments.
39072
39073 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39074
39075         * modules/strptime: New file.
39076         * lib/strptime.h: New file.
39077         * lib/strptime.c: New file.
39078         * m4/strptime.m4: New file.
39079
39080 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39081
39082         * MODULES.html.sh: New module mpsort.
39083         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39084
39085         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39086         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39088         All uses changed.
39089         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39090         All uses changed.
39091         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39092         to _Restrict_.
39093         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39094         the parameter matches the prototype.
39095
39096 2007-01-28  Jim Meyering  <jim@meyering.net>
39097
39098         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39099         sys/time.h here, reverting that part of the previous patch:
39100         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39101
39102 2007-01-28  Bruno Haible  <bruno@clisp.org>
39103
39104         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39105         value of $(SYS_TIME_H).
39106         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39107         remove it conditionally, too. [added by Jim Meyering]
39108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39110         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39111         GETTIMEOFDAY_REPLACEMENT to 1.
39112
39113 2007-01-28  Bruno Haible  <bruno@clisp.org>
39114
39115         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39116         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39118         Set UNISTD_H instead of UNISTD_H2.
39119         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39120
39121 2007-01-28  Bruno Haible  <bruno@clisp.org>
39122
39123         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39124         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39125
39126 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39127
39128         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39129         (func_create_testdir): Ensure C locale for `grep' and `tr'
39130         character ranges.
39131         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39132         ACLOCAL_AMFLAGS parsing state machine.
39133
39134 2007-01-27  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/unistr/base: Update.
39137
39138 2007-01-27  Bruno Haible  <bruno@clisp.org>
39139
39140         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39141         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39142         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39143         modules/unistr/u32-mbtouc.
39144         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39145         * lib/unistr.h: Update.
39146         * lib/linebreak.c: Update.
39147         * modules/unistr/u32-mbtouc: Renamed from
39148         modules/unistr/u32-mbtouc-safe.
39149         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39150         * lib/unistr.h: Update.
39151         * lib/unistr/u32-to-u8.c: Update.
39152         * lib/unistr/u32-to-u16.c: Update.
39153
39154 2007-01-27  Bruno Haible  <bruno@clisp.org>
39155
39156         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39157         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39158         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39159         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39160         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39161         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39162         modules/unistr/u16-mbtouc.
39163         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39164         * lib/unistr.h: Update.
39165         * lib/linebreak.c: Update.
39166         * modules/linebreak: Update.
39167         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39168         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39169         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39170         * modules/unistr/u16-mbtouc: Renamed from
39171         modules/unistr/u16-mbtouc-safe.
39172         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39173         * lib/unistr.h: Update.
39174         * lib/unistr/u16-to-u8.c: Update.
39175         * modules/unistr/u16-to-u8: Update.
39176         * lib/unistr/u16-to-u32.c: Update.
39177         * modules/unistr/u16-to-u32: Update.
39178
39179 2007-01-27  Bruno Haible  <bruno@clisp.org>
39180
39181         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39182         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39183         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39184         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39185         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39186         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39187         modules/unistr/u8-mbtouc.
39188         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39189         * lib/unistr.h: Update.
39190         * lib/striconveh.c: Update.
39191         * modules/striconveh: Update.
39192         * lib/linebreak.c: Update.
39193         * modules/linebreak: Update.
39194         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39195         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39196         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39197         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39198         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39199         * lib/unistr.h: Update.
39200         * lib/striconveh.c: Update.
39201         * modules/striconveh: Update.
39202         * lib/unistr/u8-to-u16.c: Update.
39203         * modules/unistr/u8-to-u16: Update.
39204         * lib/unistr/u8-to-u32.c: Update.
39205         * modules/unistr/u8-to-u32: Update.
39206
39207 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39208
39209         Sync from Libtool.
39210         * lib/argz.c: Do not include strings.h nor memory.h, include
39211         string.h unconditionally.  Patch by Simon Josefsson.
39212
39213 2007-01-27  Bruno Haible  <bruno@clisp.org>
39214
39215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39216         from gl_HEADER_STRING_H_BODY.
39217         (gl_HEADER_STRING_H_BODY): Require it.
39218         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39219         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39220         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39221         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39222         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39223         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39225         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39226         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39229         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39230         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39231         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39232         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39233
39234 2007-01-27  Bruno Haible  <bruno@clisp.org>
39235
39236         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39237         check_PROGRAMS into noinst_PROGRAMS.
39238         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39239         check_PROGRAMS in this case.
39240         (func_import): Set for_test to false.
39241         (func_create_testdir): Set for_test to true.
39242
39243 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39244             Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39247         (Depends-on): Add string.
39248         (Includes): Use <string.h> instead of strcasestr.h.
39249         * modules/string (Makefile.am): Also substitute the value of
39250         REPLACE_STRCASESTR.
39251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39252         assume strcasestr is declared in <string.h> not <strings.h>. Also
39253         set REPLACE_STRCASESTR.
39254         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39255         REPLACE_STRCASESTR.
39256         * lib/strcasestr.h: Remove file.
39257         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39258         * lib/string_.h (strcasestr): New declaration.
39259
39260 2007-01-27  Bruno Haible  <bruno@clisp.org>
39261
39262         * lib/string_.h: Use 'extern'.
39263
39264 2007-01-27  Jim Meyering  <jim@meyering.net>
39265
39266         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39267         of set-but-not-used local, "q".
39268
39269         * lib/mempcpy.c: Include <config.h> before <string.h>.
39270         This fixes a compilation error on HP-UX, due to the system's
39271         "restrict"-using mempcpy prototype.
39272
39273 2007-01-26  Bruno Haible  <bruno@clisp.org>
39274
39275         Small optimization.
39276         * lib/javacomp.c: Include c-strstr.h.
39277          (is_envjavac_gcj): Use c_strstr instead of strstr.
39278         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39279
39280 2007-01-26  Bruno Haible  <bruno@clisp.org>
39281
39282         * MODULES.html.sh (Unicode string functions): Add the new modules.
39283
39284         * modules/uniconv/u32-strconv-to-locale: New file.
39285         * lib/uniconv/u32-strconv-to-locale.c: New file.
39286
39287         * modules/uniconv/u16-strconv-to-locale: New file.
39288         * lib/uniconv/u16-strconv-to-locale.c: New file.
39289
39290         * modules/uniconv/u8-strconv-to-locale: New file.
39291         * lib/uniconv/u8-strconv-to-locale.c: New file.
39292
39293         * modules/uniconv/u32-strconv-from-locale: New file.
39294         * lib/uniconv/u32-strconv-from-locale.c: New file.
39295
39296         * modules/uniconv/u16-strconv-from-locale: New file.
39297         * lib/uniconv/u16-strconv-from-locale.c: New file.
39298
39299         * modules/uniconv/u8-strconv-from-locale: New file.
39300         * lib/uniconv/u8-strconv-from-locale.c: New file.
39301
39302         * modules/uniconv/u32-strconv-to-enc: New file.
39303         * lib/uniconv/u32-strconv-to-enc.c: New file.
39304         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39305         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39306
39307         * modules/uniconv/u16-strconv-to-enc: New file.
39308         * lib/uniconv/u16-strconv-to-enc.c: New file.
39309         * lib/uniconv/u-strconv-to-enc.h: New file.
39310         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39311         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39312
39313         * modules/uniconv/u8-strconv-to-enc: New file.
39314         * lib/uniconv/u8-strconv-to-enc.c: New file.
39315         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39316         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39317
39318         * modules/uniconv/u32-strconv-from-enc: New file.
39319         * lib/uniconv/u32-strconv-from-enc.c: New file.
39320         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39321         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39322
39323         * modules/uniconv/u16-strconv-from-enc: New file.
39324         * lib/uniconv/u16-strconv-from-enc.c: New file.
39325         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39326         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39327
39328         * modules/uniconv/u8-strconv-from-enc: New file.
39329         * lib/uniconv/u8-strconv-from-enc.c: New file.
39330         * lib/uniconv/u-strconv-from-enc.h: New file.
39331         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39332         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39333
39334         * modules/uniconv/u32-conv-from-enc: New file.
39335         * lib/uniconv/u32-conv-from-enc.c: New file.
39336         * modules/uniconv/u32-conv-from-enc-tests: New file.
39337         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39338
39339         * modules/uniconv/u16-conv-from-enc: New file.
39340         * lib/uniconv/u16-conv-from-enc.c: New file.
39341         * lib/uniconv/u-conv-from-enc.h: New file.
39342         * modules/uniconv/u16-conv-from-enc-tests: New file.
39343         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39344
39345         * modules/uniconv/u8-conv-from-enc: New file.
39346         * lib/uniconv/u8-conv-from-enc.c: New file.
39347         * modules/uniconv/u8-conv-from-enc-tests: New file.
39348         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39349
39350         * modules/uniconv/base: New file.
39351         * lib/uniconv.h: New file.
39352
39353 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39354
39355         * doc/gnulib-tool.texi (Initial import): Update to match current
39356         behavior with strdup module.
39357         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39358         * lib/memmem.h: Remove; all uses removed.  This is now done
39359         by <string.h>.
39360         * lib/mempcpy.h: Likewise.
39361         * lib/memrchr.h: Likewise.
39362         * lib/stpcpy.h: Likewise.
39363         * lib/stpncpy.h: Likewise.
39364         * lib/strcase.h: Likewise.
39365         * lib/strchrnul.h: Likewise.
39366         * lib/strdup.h: Likewise.
39367         * lib/strndup.h: Likewise.
39368         * lib/strnlen.h: Likewise.
39369         * lib/strpbrk.h: Likewise.
39370         * lib/strsep.h: Likewise.
39371         * lib/strstr.h: Likewise.
39372         * lib/strtok_r.h: Likewise.
39373         * lib/string_.h: New file.
39374         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39375         Rely on <string.h> instead.
39376         * lib/canon-host.c: Likewise.
39377         * lib/chdir-long.c: Likewise.
39378         * lib/concatpath.c: Likewise.
39379         * lib/exclude.c: Likewise.
39380         * lib/fchdir.c: Likewise.
39381         * lib/getaddrinfo.c: Likewise.
39382         * lib/getcwd.c: Likewise.
39383         * lib/getsubopt.c: Likewise.
39384         * lib/glob.c: Likewise.
39385         * lib/hard-locale.c: Likewise.
39386         * lib/iconvme.c: Likewise.
39387         * lib/javacomp.c: Likewise.
39388         * lib/mempcpy.c: Likewise.
39389         * lib/memrchr.c: Likewise.
39390         * lib/regex_internal.h: Likewise.
39391         * lib/stpncpy.c: Likewise.
39392         * lib/strcasecmp.c: Likewise.
39393         * lib/strchrnul.c: Likewise.
39394         * lib/strdup.c: Likewise.
39395         * lib/striconv.c: Likewise.
39396         * lib/striconveh.c: Likewise.
39397         * lib/striconveha.c: Likewise.
39398         * lib/strncasecmp.c: Likewise.
39399         * lib/strndup.c: Likewise.
39400         * lib/strnlen.c: Likewise.
39401         * lib/strsep.c: Likewise.
39402         * lib/strstr.c: Likewise.
39403         * lib/strtok_r.c: Likewise.
39404         * lib/userspec.c: Likewise.
39405         * lib/w32spawn.h: Likewise.
39406         * lib/xstrndup.c: Likewise.
39407         * lib/mountlist.c (strstr): Remove decl.
39408         * m4/string_h.m4: New file.
39409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39410         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39411         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39412         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39413         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39414         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39415         Set REPLACE_STRCASECMP if necessary.
39416         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39417         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39418         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39419         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39420         HAVE_DECL_STRDUP if necessary.
39421         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39422         since gl_FUNC_STRNDUP does that now.
39423         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39424         Check for decl here...
39425         (gl_PREREQ_STRNLEN): ... not here.
39426         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39427         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39428         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39429         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39430         necessary.
39431         * modules/string: New file.
39432         * modules/memmem (Files): Remove special-purpose include file.
39433         (Depends-on): Add string.
39434         (Include): Include <string.h>, not the removed file.
39435         * modules/mempcpy: Likewise.
39436         * modules/memrchr: Likewise.
39437         * modules/stpcpy: Likewise.
39438         * modules/stpncpy: Likewise.
39439         * modules/strcase: Likewise.
39440         * modules/strchrnul: Likewise.
39441         * modules/strdup: Likewise.
39442         * modules/strndup: Likewise.
39443         * modules/strnlen: Likewise.
39444         * modules/strpbrk: Likewise.
39445         * modules/strsep: Likewise.
39446         * modules/strstr: Likewise.
39447         * modules/strtok_r: Likewise.
39448         * tests/test-dirname.c: Don't include "strdup.h", since
39449         <string.h> now suffices.
39450         * tests/test-memmem.c: Don't include "memmem.h", since
39451         <string.h> now suffices.
39452
39453 2007-01-25  Bruno Haible  <bruno@clisp.org>
39454
39455         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39456         *resultp is 0.
39457
39458         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39459         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39460         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39461         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39462
39463         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39464         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39465         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39466         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39467         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39468         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39469
39470 2007-01-24  Bruno Haible  <bruno@clisp.org>
39471
39472         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39474         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39475         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39476         gl_FUNC_FTS_CORE.
39477         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39478         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39479         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39480         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39481         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39482         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39483         gl_FUNC_FCHOWNAT.
39484         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39485         gl_FUNC_STRFTIME.
39486         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39487         Reported by Ralf Wildenhues.
39488
39489 2007-01-24  Bruno Haible  <bruno@clisp.org>
39490
39491         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39492         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39493         gl_GETADDRINFO.
39494         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39495         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39496         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39497
39498 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39499
39500         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39501         Don't use 'exit'; just return from 'main'.
39502         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39503
39504         * lib/fnmatch_.h: Readjust white space and comments to match
39505         glibc, to avoid spurious diffs.
39506
39507 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39508
39509         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39510         2004-12-01 change by Jakub Jelinek, since this code won't compile
39511         if !LIBC.  Problem reported by Bob Proulx.
39512
39513 2007-01-23  Bruno Haible  <bruno@clisp.org>
39514
39515         * lib/striconveh.c: Include c-strcaseeq.h.
39516         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39517         * modules/striconveh (Depends-on): Add c-strcaseeq.
39518
39519 2007-01-23  Bruno Haible  <bruno@clisp.org>
39520
39521         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39522
39523         * modules/c-strcaseeq: New file.
39524         * lib/c-strcaseeq.h: New file.
39525
39526         * modules/streq: New file.
39527         * lib/streq.h: New file.
39528
39529 2007-01-23  Bruno Haible  <bruno@clisp.org>
39530
39531         * modules/striconveha-tests: New file.
39532         * tests/test-striconveha.c: New file.
39533
39534         * lib/striconveha.h: Include <stdbool.h>.
39535         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39536         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39537         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39538         (mem_iconveha): New function.
39539         (str_iconveha_notranslit): Renamed from str_iconveha.
39540         (str_iconveha): New function.
39541         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39542         c-strcase.
39543
39544 2007-01-23  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39547         encodings without forgiving before trying any encoding with handler.
39548         (str_iconveha): Try all encodings without forgiving before trying any
39549         encoding with handler.
39550
39551 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39552
39553         Import the following changes from libc.
39554
39555         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39556
39557         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39558
39559         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39560
39561         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39562         normal_bracket label.
39563
39564         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39565
39566         [BZ #361]
39567         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39568         to normal_bracket after fetching the next character.
39569
39570 2007-01-22  Bruno Haible  <bruno@clisp.org>
39571
39572         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39573         argument.
39574         * lib/striconveh.c (iconv_carefully_1): New function.
39575         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39576         argument.
39577         (str_cd_iconveh): Update.
39578         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39579         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39580         * tests/test-striconveh.c (MAGIC): New macro.
39581         (new_offsets): New function.
39582         (main): Test call with and without offsets.
39583
39584 2007-01-22  Bruno Haible  <bruno@clisp.org>
39585
39586         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39587         * modules/sys_select (Makefile.am): Likewise.
39588         * modules/sys_socket (Makefile.am): Likewise.
39589         * modules/sys_time (Makefile.am): Likewise.
39590
39591 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39592
39593         * modules/gettimeofday (License): Change from GPL to LGPL, since
39594         gettimeofday is a library function.
39595
39596 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39597
39598         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39599
39600 2007-01-21  Bruno Haible  <bruno@clisp.org>
39601
39602         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39603
39604 2007-01-21  Bruno Haible  <bruno@clisp.org>
39605
39606         * modules/striconveha: New file.
39607         * lib/striconveha.h: New file.
39608         * lib/striconveha.c: New file.
39609         * MODULES.html.sh (Internationalization functions): Add striconveha.
39610         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39611         string.
39612         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39613
39614 2007-01-21  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39617         * lib/striconveh.c (str_iconveh): Likewise.
39618
39619 2007-01-21  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/striconveh.h (mem_iconveh): New declaration.
39622         * lib/striconveh.c (mem_iconveh): New function.
39623         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39624
39625 2007-01-21  Bruno Haible  <bruno@clisp.org>
39626
39627         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39628
39629         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39630         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39631         original result buffer.
39632         (str_cd_iconveh): Update.
39633         * tests/test-striconveh.c (main): Update.
39634
39635         * lib/striconv.h (mem_cd_iconv): Change specification.
39636         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39637         result buffer.
39638         (str_cd_iconv): Update.
39639         * tests/test-striconv.c (main): Update.
39640
39641 2007-01-21  Bruno Haible  <bruno@clisp.org>
39642
39643         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39644
39645 2007-01-20  Jim Meyering  <jim@meyering.net>
39646
39647         * lib/userspec.c (parse_with_separator): If a user or group string
39648         starts with "+", skip the corresponding name-to-ID look-up, since
39649         such a look-up must fail: user and group names may not include "+".
39650
39651 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39652
39653         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39654         since we now assume the sys_time module.
39655         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39656         check for sys/time.h; no longer needed.
39657         * modules/poll (Depends-on): Depend on sys_time.
39658
39659 2007-01-18  Bruno Haible  <bruno@clisp.org>
39660
39661         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39663
39664         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39665         gettimeofday.
39666
39667         * tests/test-gettimeofday.c: Include <time.h>.
39668         (dummy): Remove variable.
39669
39670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39671         gl_HEADER_SYS_TIME_H.
39672         (gl_HEADER_SYS_TIME_H): New macro.
39673
39674         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39675         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39676         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39677         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39678         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39680         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39681         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39682         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39683         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39684         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39685
39686         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39687         last change; it caused a compilation error when cross-compiling to
39688         Cygwin.
39689
39690 2007-01-18  Jim Meyering  <jim@meyering.net>
39691
39692         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39693         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39694         than the race-prone "test -d sys || mkdir sys".
39695         (configure.ac): Use AC_PROG_MKDIR_P.
39696         * modules/sys_select: Likewise.
39697         * modules/sys_socket: Likewise.
39698         * modules/sys_time: Likewise.
39699
39700 2007-01-18  Eric Blake  <ebb9@byu.net>
39701
39702         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39703         replace gettimeofday.
39704         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39705         name, to avoid infinite recursion.
39706
39707 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39708
39709         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39710         module sys_time.
39711         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39712         assume timespec.h defines struct timeval.
39713         * lib/settime.c: Likewise.
39714         * lib/utimens.c: Likewise.
39715         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39716         since we now assume the gettimeofday module.
39717         * lib/tempname.c (__gen_tempname): Likewise.
39718         * lib/gettimeofday.h: Remove.
39719         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39720         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39721         Include <time.h>, for 'time()'.
39722         (localtime_buffer_addr): Also use this workaround if
39723         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39724         to simplify the uses.  All uses changed.
39725         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39726         that #undef is inside {}, and 'const' follows type name consistently.
39727         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39728         (gettimeofday): Do not use the maximum possible value for
39729         tv->tv_usec, since that might break usages other than ls.c.
39730         Instead, we'll leave ls.c alone.  This undoes today's patch
39731         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39732         we've never observed the problem but might as well keep the
39733         canary.
39734         * lib/nanosleep.c: Include timespec.h first, for interface check.
39735         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39736         now assume the sys_time module.
39737         * lib/tempname.c: Likewise.
39738         * lib/timespec.h: Likewise.
39739         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39740         needed.
39741         * lib/strftime.c: Likewise.
39742         * lib/timespec.h: Likewise.
39743         * lib/posixtm.c: Include posixtm.h first, for interface check.
39744         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39745         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39746         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39747         * lib/sys_time_.h: New file.
39748         * lib/timespec.h (struct timespec): Use long int, not long.
39749         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39750         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39751         Remove obsolescent call to AC_HEADER_TIME.
39752         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39754         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39755         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39756         Likewise.
39757         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39758         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39759         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39760         into the sys_time module.  Check for gettimeofday just once.
39761         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39762         for gettimeofday signature to just check the signature.  Merely
39763         compile it, since linking doesn't test signature.  Improve test for
39764         whether gettimeofday.o is actually needed.
39765         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39766         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39767         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39768         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39769         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39770         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39771         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39772         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39773         than worrying about sys/time.h.
39774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39775         Don't bother worrying about TIME_WITH_SYS_TIME.
39776         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39777         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39778         * m4/sys_time_h.m4: New file.
39779         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39780         Don't include sys/time.h.  Return from main rather than exiting.
39781         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39782         all uses changed.
39783         * modules/gethrxtime (Depends-on): Add sys_time.
39784         * modules/gettime (Depends-on): Likewise.
39785         * modules/gettimeofday (Depends-on): Likewise.
39786         * modules/nanosleep (Depends-on): Likewise.
39787         * modules/settime (Depends-on): Likewise.
39788         * modules/tempname (Depends-on): Likewise.
39789         * modules/utimens (Depends-on): Likewise.
39790         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39791         (Include:) Change back to <sys/time.h>.
39792         (Maintainer:) Add self.
39793         * modules/sys_time: New file.
39794         * modules/tempname (Depends-on): Add gettimeofday.
39795         * tests/test-gettimeofday.c: Include <sys/time.h>
39796         rather than gettimeofday.h.
39797
39798 2007-01-17  Bruno Haible  <bruno@clisp.org>
39799
39800         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39801         the license default to GPL.
39802         (func_create_testdir): Don't complain if a module is LGPL and its
39803         tests module depends on GPLed modules.
39804
39805 2007-01-17  Bruno Haible  <bruno@clisp.org>
39806
39807         * lib/gettimeofday.c (gettimeofday): Add code for the case
39808         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39809         maximum possible value for tv->tv_usec, rather than the minimum one.
39810
39811 2005-10-08  Martin Lambers  <marlam@marlam.de>
39812 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39813 2007-01-16  Bruno Haible  <bruno@clisp.org>
39814
39815         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39816         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39817         gl_FUNC_GETTIMEOFDAY.
39818         (Include): Add gettimeofday.h.
39819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39820         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39821         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39822         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39823         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39824         * lib/gettimeofday.h: New file.
39825         * lib/gettimeofday.c: Include <sys/timeb.h>.
39826         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39827         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39828         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39829         fall back on time().
39830
39831         * tests/test-gettimeofday.c: New file.
39832         * modules/gettimeofday-tests: New file.
39833
39834 2007-01-16  Eric Blake  <ebb9@byu.net>
39835
39836         * modules/fnmatch (Depends-on): Depend on wchar.
39837         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39838         * m4/fnmatch.m4: Likewise.
39839         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39840         * m4/mbchar.m4: Likewise.
39841         * modules/mbswidth (Depends-on): Depend on wchar.
39842         * lib/mbswidth.c: Assume <wchar.h>.
39843         * m4/mbswidth.m4: Likewise.
39844         * modules/quotearg (Depends-on): Depend on wchar.
39845         * lib/quotearg.c: Assume <wchar.h>.
39846         * m4/quotearg.m4: Likewise.
39847         * modules/regex (Depends-on): Depend on wchar.
39848         * lib/regex_internal.h: Assume <wchar.h>.
39849         * m4/regex.m4: Likewise.
39850         * modules/stdint (Depends-on): Depend on wchar.
39851         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39852         * m4/stdint.m4: Likewise.
39853         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39854         * modules/strftime (Depends-on): Depend on wchar.
39855         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39856         * modules/strtol (Depends-on): Depend on wchar.
39857         * lib/strtol.c: Assume <wchar.h>.
39858         * modules/wcwidth (Depends-on): Depend on wchar.
39859         * lib/wcwidth.h: Assume <wchar.h>.
39860         * m4/wcwidth.m4: Likewise.
39861
39862 2007-01-16  Bruno Haible  <bruno@clisp.org>
39863
39864         * modules/csharpexec-script: New, created from...
39865         * modules/csharpexec: ... this.
39866
39867 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39868
39869         * modules/javaexec-script: New, created from...
39870         * modules/javaexec: ... this.
39871
39872 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39873
39874         * modules/poll (Dependencies): Add sys_select.
39875
39876 2007-01-15  Jim Meyering  <jim@meyering.net>
39877
39878         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39879         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39880         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39881         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39882
39883 2007-01-15  Bruno Haible  <bruno@clisp.org>
39884
39885         * modules/striconveh: New file.
39886         * lib/striconveh.h: New file.
39887         * lib/striconveh.c: New file.
39888         * MODULES.html.sh (Internationalization functions): Add striconveh.
39889
39890         * modules/striconveh-tests: New file.
39891         * tests/test-striconveh.c: New file.
39892
39893 2007-01-15  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39896         not from GNU libiconv or GNU libc.
39897
39898 2007-01-15  Bruno Haible  <bruno@clisp.org>
39899
39900         * doc/gnulib-intro.texi (Copyright): Explain the different license
39901         terms for module descriptions, autoconf macros, tests, documentation.
39902
39903 2007-01-14  Bruno Haible  <bruno@clisp.org>
39904
39905         * modules/striconv-tests: New file.
39906         * tests/test-striconv.c: New file.
39907
39908 2007-01-14  Bruno Haible  <bruno@clisp.org>
39909
39910         * modules/iconv-tests: New file.
39911         * tests/test-iconv.c: New file.
39912
39913 2007-01-14  Bruno Haible  <bruno@clisp.org>
39914
39915         * gnulib-tool (func_get_license): For test modules, use the license of
39916         the main module.
39917
39918 2007-01-14  Bruno Haible  <bruno@clisp.org>
39919
39920         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39921         if iconv is found to exist.
39922
39923 2007-01-14  Bruno Haible  <bruno@clisp.org>
39924
39925         * modules/c-ctype-tests: New file.
39926         * tests/test-c-ctype.c: New file.
39927
39928 2007-01-14  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/binary-io-tests: New file.
39931         * tests/test-binary-io.sh: New file.
39932         * tests/test-binary-io.c: New file.
39933
39934 2007-01-14  Bruno Haible  <bruno@clisp.org>
39935
39936         * modules/array-oset-tests: New file.
39937         * tests/test-array_oset.c: New file.
39938
39939 2007-01-14  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/array-list-tests: New file.
39942         * tests/test-array_list.c: New file.
39943
39944 2007-01-14  Bruno Haible  <bruno@clisp.org>
39945
39946         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39947         and make.
39948         Reported by Simon Josefsson in
39949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39950
39951 2007-01-14  Bruno Haible  <bruno@clisp.org>
39952
39953         * modules/allocsa-tests: New file.
39954         * tests/test-allocsa.c: New file.
39955
39956 2007-01-14  Bruno Haible  <bruno@clisp.org>
39957
39958         * modules/fchdir (Depends-on): Add absolute-header.
39959         * modules/unistd (Depends-on): Likewise.
39960
39961 2006-12-30  Bruno Haible  <bruno@clisp.org>
39962
39963         * modules/fchdir: New file.
39964         * modules/unistd (Files): Add lib/unistd_.h.
39965         (Makefile.am): Generate unistd.h from unistd_.h.
39966         * lib/fchdir.c: New file.
39967         * lib/dirent_.h: New file.
39968         * lib/unistd_.h: New file.
39969         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39970         * m4/fchdir.m4: New file.
39971         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39972         (gl_HEADER_UNISTD): Invoke it.
39973         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39974         function.
39975         * lib/backupfile.c (opendir, closedir): Undefine.
39976         * lib/chown.c (open, close): Undefine.
39977         * lib/clean-temp.c (open, close): Undefine.
39978         * lib/copy-file.c (open, close): Undefine.
39979         * lib/execute.c (open, close): Undefine.
39980         * lib/fsusage.c (open, close): Undefine.
39981         * lib/gc-gnulib.c (open, close): Undefine.
39982         * lib/getcwd.c (opendir, closedir): Undefine.
39983         * lib/glob.c (opendir, closedir): Undefine.
39984         * lib/javacomp.c (open, close): Undefine.
39985         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39986         * lib/openat-proc.c (open, close): Undefine.
39987         * lib/pagealign_alloc.c (open, close): Undefine.
39988         * lib/pipe.c (open, close): Undefine.
39989         * lib/progreloc.c (open, close): Undefine.
39990         * lib/savedir.c (opendir, closedir): Undefine.
39991         * lib/utime.c (open, close): Undefine.
39992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39993
39994 2007-01-10  Bruno Haible  <bruno@clisp.org>
39995
39996         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39997
39998 2007-01-12  Eric Blake  <ebb9@byu.net>
39999
40000         Provide a robust <wchar.h>.  Further simplifications are now
40001         possible in other modules, but not included here.
40002         * modules/wchar: New module.
40003         * m4/wchar.m4: New file.
40004         * lib/wchar_.h: Likewise.
40005         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40006         of the new module.
40007         * MODULES.html.sh (Extended multibyte and wide character utilities):
40008         New section.
40009
40010 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40011
40012         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40013         to a reasonable default for memory allocation.
40014         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40015         file system that reports garbage st_size values for symlinks.
40016         Problem reported by Liyang Hu.
40017
40018 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40019
40020         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40021         Emacs .#* auto-save files).
40022
40023 2007-01-11  Bruno Haible  <bruno@clisp.org>
40024
40025         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40026         directory.
40027
40028 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40029
40030         Use @...@ consistently in lib/wctype_.h.
40031         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40032         on it being set to 1 or 0.
40033         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40034         go back to AC_SUBSTing it.
40035         * modules/wctype (Makefile.am): Undo previous change.
40036
40037 2007-01-10  Eric Blake  <ebb9@byu.net>
40038
40039         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40040         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40041         * modules/wctype (Makefile.am): Likewise.
40042         Reported by Chris McGuire.
40043
40044 2007-01-10  Jim Meyering  <jim@meyering.net>
40045
40046         fts.c: a small readability/maintainability improvement
40047         * lib/fts.c (fts_read): Make this code slightly more readable and
40048         maintainable by hoisting the "sp->fts_cur = p" assignments to
40049         immediately follow the statements that set P.  Derived from
40050         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40051
40052 2007-01-10  Eric Blake  <ebb9@byu.net>
40053
40054         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40055         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40057         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40058         Reported by Chris McGuire.
40059
40060 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40061
40062         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40063         in sed script.
40064
40065 2007-01-09  Bruno Haible  <bruno@clisp.org>
40066
40067         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40068         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40069         variables.
40070         (func_module): Use them.
40071
40072 2007-01-09  Bruno Haible  <bruno@clisp.org>
40073
40074         * modules/unistr/base: New file.
40075         * lib/unistr.h: New file.
40076
40077         * modules/unistr/u8-to-u16: New file.
40078         * lib/unistr/u8-to-u16.c: New file.
40079
40080         * modules/unistr/u8-to-u32: New file.
40081         * lib/unistr/u8-to-u32.c: New file.
40082
40083         * modules/unistr/u16-to-u8: New file.
40084         * lib/unistr/u16-to-u8.c: New file.
40085
40086         * modules/unistr/u16-to-u32: New file.
40087         * lib/unistr/u16-to-u32.c: New file.
40088
40089         * modules/unistr/u32-to-u8: New file.
40090         * lib/unistr/u32-to-u8.c: New file.
40091
40092         * modules/unistr/u32-to-u16: New file.
40093         * lib/unistr/u32-to-u16.c: New file.
40094
40095         * modules/unistr/u8-check: New file.
40096         * modules/unistr/u16-check: New file.
40097         * modules/unistr/u32-check: New file.
40098         * lib/unistr/u8-check.c: New file.
40099         * lib/unistr/u16-check.c: New file.
40100         * lib/unistr/u32-check.c: New file.
40101
40102         * modules/unistr/u8-chr: New file.
40103         * modules/unistr/u16-chr: New file.
40104         * modules/unistr/u32-chr: New file.
40105         * lib/unistr/u8-chr.c: New file.
40106         * lib/unistr/u16-chr.c: New file.
40107         * lib/unistr/u32-chr.c: New file.
40108
40109         * modules/unistr/u8-cmp: New file.
40110         * modules/unistr/u16-cmp: New file.
40111         * modules/unistr/u32-cmp: New file.
40112         * lib/unistr/u8-cmp.c: New file.
40113         * lib/unistr/u16-cmp.c: New file.
40114         * lib/unistr/u32-cmp.c: New file.
40115
40116         * modules/unistr/u8-cpy: New file.
40117         * modules/unistr/u16-cpy: New file.
40118         * modules/unistr/u32-cpy: New file.
40119         * lib/unistr/u8-cpy.c: New file.
40120         * lib/unistr/u16-cpy.c: New file.
40121         * lib/unistr/u32-cpy.c: New file.
40122         * lib/unistr/u-cpy.h: New file.
40123
40124         * modules/unistr/u8-cpy-alloc: New file.
40125         * modules/unistr/u16-cpy-alloc: New file.
40126         * modules/unistr/u32-cpy-alloc: New file.
40127         * lib/unistr/u8-cpy-alloc.c: New file.
40128         * lib/unistr/u16-cpy-alloc.c: New file.
40129         * lib/unistr/u32-cpy-alloc.c: New file.
40130         * lib/unistr/u-cpy-alloc.h: New file.
40131
40132         * modules/unistr/u8-endswith: New file.
40133         * modules/unistr/u16-endswith: New file.
40134         * modules/unistr/u32-endswith: New file.
40135         * lib/unistr/u8-endswith.c: New file.
40136         * lib/unistr/u16-endswith.c: New file.
40137         * lib/unistr/u32-endswith.c: New file.
40138         * lib/unistr/u-endswith.h: New file.
40139
40140         * modules/unistr/u8-mblen: New file.
40141         * modules/unistr/u16-mblen: New file.
40142         * modules/unistr/u32-mblen: New file.
40143         * lib/unistr/u8-mblen.c: New file.
40144         * lib/unistr/u16-mblen.c: New file.
40145         * lib/unistr/u32-mblen.c: New file.
40146
40147         * modules/unistr/u8-mbtouc: New file.
40148         * modules/unistr/u16-mbtouc: New file.
40149         * modules/unistr/u32-mbtouc: New file.
40150         * lib/unistr/u8-mbtouc.c: New file.
40151         * lib/unistr/u16-mbtouc.c: New file.
40152         * lib/unistr/u32-mbtouc.c: New file.
40153
40154         * modules/unistr/u8-mbtouc-safe: New file.
40155         * modules/unistr/u16-mbtouc-safe: New file.
40156         * modules/unistr/u32-mbtouc-safe: New file.
40157         * lib/unistr/u8-mbtouc-safe.c: New file.
40158         * lib/unistr/u16-mbtouc-safe.c: New file.
40159         * lib/unistr/u32-mbtouc-safe.c: New file.
40160
40161         * modules/unistr/u8-move: New file.
40162         * modules/unistr/u16-move: New file.
40163         * modules/unistr/u32-move: New file.
40164         * lib/unistr/u8-move.c: New file.
40165         * lib/unistr/u16-move.c: New file.
40166         * lib/unistr/u32-move.c: New file.
40167         * lib/unistr/u-move.h: New file.
40168
40169         * modules/unistr/u8-next: New file.
40170         * modules/unistr/u16-next: New file.
40171         * modules/unistr/u32-next: New file.
40172         * lib/unistr/u8-next.c: New file.
40173         * lib/unistr/u16-next.c: New file.
40174         * lib/unistr/u32-next.c: New file.
40175
40176         * modules/unistr/u8-prev: New file.
40177         * modules/unistr/u16-prev: New file.
40178         * modules/unistr/u32-prev: New file.
40179         * lib/unistr/u8-prev.c: New file.
40180         * lib/unistr/u16-prev.c: New file.
40181         * lib/unistr/u32-prev.c: New file.
40182
40183         * modules/unistr/u8-set: New file.
40184         * modules/unistr/u16-set: New file.
40185         * modules/unistr/u32-set: New file.
40186         * lib/unistr/u8-set.c: New file.
40187         * lib/unistr/u16-set.c: New file.
40188         * lib/unistr/u32-set.c: New file.
40189         * lib/unistr/u-set.h: New file.
40190
40191         * modules/unistr/u8-startswith: New file.
40192         * modules/unistr/u16-startswith: New file.
40193         * modules/unistr/u32-startswith: New file.
40194         * lib/unistr/u8-startswith.c: New file.
40195         * lib/unistr/u16-startswith.c: New file.
40196         * lib/unistr/u32-startswith.c: New file.
40197         * lib/unistr/u-startswith.h: New file.
40198
40199         * modules/unistr/u8-stpcpy: New file.
40200         * modules/unistr/u16-stpcpy: New file.
40201         * modules/unistr/u32-stpcpy: New file.
40202         * lib/unistr/u8-stpcpy.c: New file.
40203         * lib/unistr/u16-stpcpy.c: New file.
40204         * lib/unistr/u32-stpcpy.c: New file.
40205         * lib/unistr/u-stpcpy.h: New file.
40206
40207         * modules/unistr/u8-stpncpy: New file.
40208         * modules/unistr/u16-stpncpy: New file.
40209         * modules/unistr/u32-stpncpy: New file.
40210         * lib/unistr/u8-stpncpy.c: New file.
40211         * lib/unistr/u16-stpncpy.c: New file.
40212         * lib/unistr/u32-stpncpy.c: New file.
40213         * lib/unistr/u-stpncpy.h: New file.
40214
40215         * modules/unistr/u8-strcat: New file.
40216         * modules/unistr/u16-strcat: New file.
40217         * modules/unistr/u32-strcat: New file.
40218         * lib/unistr/u8-strcat.c: New file.
40219         * lib/unistr/u16-strcat.c: New file.
40220         * lib/unistr/u32-strcat.c: New file.
40221         * lib/unistr/u-strcat.h: New file.
40222
40223         * modules/unistr/u8-strchr: New file.
40224         * modules/unistr/u16-strchr: New file.
40225         * modules/unistr/u32-strchr: New file.
40226         * lib/unistr/u8-strchr.c: New file.
40227         * lib/unistr/u16-strchr.c: New file.
40228         * lib/unistr/u32-strchr.c: New file.
40229
40230         * modules/unistr/u8-strcmp: New file.
40231         * modules/unistr/u16-strcmp: New file.
40232         * modules/unistr/u32-strcmp: New file.
40233         * lib/unistr/u8-strcmp.c: New file.
40234         * lib/unistr/u16-strcmp.c: New file.
40235         * lib/unistr/u32-strcmp.c: New file.
40236
40237         * modules/unistr/u8-strcpy: New file.
40238         * modules/unistr/u16-strcpy: New file.
40239         * modules/unistr/u32-strcpy: New file.
40240         * lib/unistr/u8-strcpy.c: New file.
40241         * lib/unistr/u16-strcpy.c: New file.
40242         * lib/unistr/u32-strcpy.c: New file.
40243         * lib/unistr/u-strcpy.h: New file.
40244
40245         * modules/unistr/u8-strcspn: New file.
40246         * modules/unistr/u16-strcspn: New file.
40247         * modules/unistr/u32-strcspn: New file.
40248         * lib/unistr/u8-strcspn.c: New file.
40249         * lib/unistr/u16-strcspn.c: New file.
40250         * lib/unistr/u32-strcspn.c: New file.
40251         * lib/unistr/u-strcspn.h: New file.
40252
40253         * modules/unistr/u8-strdup: New file.
40254         * modules/unistr/u16-strdup: New file.
40255         * modules/unistr/u32-strdup: New file.
40256         * lib/unistr/u8-strdup.c: New file.
40257         * lib/unistr/u16-strdup.c: New file.
40258         * lib/unistr/u32-strdup.c: New file.
40259         * lib/unistr/u-strdup.h: New file.
40260
40261         * modules/unistr/u8-strlen: New file.
40262         * modules/unistr/u16-strlen: New file.
40263         * modules/unistr/u32-strlen: New file.
40264         * lib/unistr/u8-strlen.c: New file.
40265         * lib/unistr/u16-strlen.c: New file.
40266         * lib/unistr/u32-strlen.c: New file.
40267         * lib/unistr/u-strlen.h: New file.
40268
40269         * modules/unistr/u8-strmblen: New file.
40270         * modules/unistr/u16-strmblen: New file.
40271         * modules/unistr/u32-strmblen: New file.
40272         * lib/unistr/u8-strmblen.c: New file.
40273         * lib/unistr/u16-strmblen.c: New file.
40274         * lib/unistr/u32-strmblen.c: New file.
40275
40276         * modules/unistr/u8-strmbtouc: New file.
40277         * modules/unistr/u16-strmbtouc: New file.
40278         * modules/unistr/u32-strmbtouc: New file.
40279         * lib/unistr/u8-strmbtouc.c: New file.
40280         * lib/unistr/u16-strmbtouc.c: New file.
40281         * lib/unistr/u32-strmbtouc.c: New file.
40282
40283         * modules/unistr/u8-strncat: New file.
40284         * modules/unistr/u16-strncat: New file.
40285         * modules/unistr/u32-strncat: New file.
40286         * lib/unistr/u8-strncat.c: New file.
40287         * lib/unistr/u16-strncat.c: New file.
40288         * lib/unistr/u32-strncat.c: New file.
40289         * lib/unistr/u-strncat.h: New file.
40290
40291         * modules/unistr/u8-strncmp: New file.
40292         * modules/unistr/u16-strncmp: New file.
40293         * modules/unistr/u32-strncmp: New file.
40294         * lib/unistr/u8-strncmp.c: New file.
40295         * lib/unistr/u16-strncmp.c: New file.
40296         * lib/unistr/u32-strncmp.c: New file.
40297
40298         * modules/unistr/u8-strncpy: New file.
40299         * modules/unistr/u16-strncpy: New file.
40300         * modules/unistr/u32-strncpy: New file.
40301         * lib/unistr/u8-strncpy.c: New file.
40302         * lib/unistr/u16-strncpy.c: New file.
40303         * lib/unistr/u32-strncpy.c: New file.
40304         * lib/unistr/u-strncpy.h: New file.
40305
40306         * modules/unistr/u8-strnlen: New file.
40307         * modules/unistr/u16-strnlen: New file.
40308         * modules/unistr/u32-strnlen: New file.
40309         * lib/unistr/u8-strnlen.c: New file.
40310         * lib/unistr/u16-strnlen.c: New file.
40311         * lib/unistr/u32-strnlen.c: New file.
40312         * lib/unistr/u-strnlen.h: New file.
40313
40314         * modules/unistr/u8-strpbrk: New file.
40315         * modules/unistr/u16-strpbrk: New file.
40316         * modules/unistr/u32-strpbrk: New file.
40317         * lib/unistr/u8-strpbrk.c: New file.
40318         * lib/unistr/u16-strpbrk.c: New file.
40319         * lib/unistr/u32-strpbrk.c: New file.
40320         * lib/unistr/u-strpbrk.h: New file.
40321
40322         * modules/unistr/u8-strrchr: New file.
40323         * modules/unistr/u16-strrchr: New file.
40324         * modules/unistr/u32-strrchr: New file.
40325         * lib/unistr/u8-strrchr.c: New file.
40326         * lib/unistr/u16-strrchr.c: New file.
40327         * lib/unistr/u32-strrchr.c: New file.
40328
40329         * modules/unistr/u8-strspn: New file.
40330         * modules/unistr/u16-strspn: New file.
40331         * modules/unistr/u32-strspn: New file.
40332         * lib/unistr/u8-strspn.c: New file.
40333         * lib/unistr/u16-strspn.c: New file.
40334         * lib/unistr/u32-strspn.c: New file.
40335         * lib/unistr/u-strspn.h: New file.
40336
40337         * modules/unistr/u8-strstr: New file.
40338         * modules/unistr/u16-strstr: New file.
40339         * modules/unistr/u32-strstr: New file.
40340         * lib/unistr/u8-strstr.c: New file.
40341         * lib/unistr/u16-strstr.c: New file.
40342         * lib/unistr/u32-strstr.c: New file.
40343         * lib/unistr/u-strstr.h: New file.
40344
40345         * modules/unistr/u8-strtok: New file.
40346         * modules/unistr/u16-strtok: New file.
40347         * modules/unistr/u32-strtok: New file.
40348         * lib/unistr/u8-strtok.c: New file.
40349         * lib/unistr/u16-strtok.c: New file.
40350         * lib/unistr/u32-strtok.c: New file.
40351         * lib/unistr/u-strtok.h: New file.
40352
40353         * modules/unistr/u8-uctomb: New file.
40354         * modules/unistr/u16-uctomb: New file.
40355         * modules/unistr/u32-uctomb: New file.
40356         * lib/unistr/u8-uctomb.c: New file.
40357         * lib/unistr/u16-uctomb.c: New file.
40358         * lib/unistr/u32-uctomb.c: New file.
40359
40360         * MODULES.html.sh (Unicode string functions): Add the new modules.
40361
40362 2007-01-08  Bruno Haible  <bruno@clisp.org>
40363
40364         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40365         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40366         subdirectories.
40367
40368 2007-01-08  Karl Berry  <karl@gnu.org>
40369
40370         * doc/error.texi: mention that main() fns must set program_name
40371         when progname is used.
40372
40373 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40374
40375         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40376         WCTYPE_H is empty, for the benefit of builds from non-distclean
40377         directories.  Problem reported by Eric Blake in
40378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40379
40380 2007-01-08  Bruno Haible  <bruno@clisp.org>
40381
40382         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40383         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40384         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40385         PROVIDE_CANONICALIZE_FILENAME_MODE.
40386         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40387
40388 2007-01-08  Bruno Haible  <bruno@clisp.org>
40389
40390         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40391         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40392         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40393         * lib/fts.c: Likewise.
40394         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40395
40396 2006-12-25  Bruno Haible  <bruno@clisp.org>
40397
40398         * modules/utf8-ucs4-safe: New file.
40399         * lib/utf8-ucs4-safe.h: New file.
40400         * lib/unistr/utf8-ucs4-safe.c: New file.
40401
40402         * modules/utf16-ucs4-safe: New file.
40403         * lib/utf16-ucs4-safe.h: New file.
40404         * lib/unistr/utf16-ucs4-safe.c: New file.
40405
40406         * MODULES.html.sh (Unicode string functions): Add the new modules.
40407
40408 2007-01-08  Bruno Haible  <bruno@clisp.org>
40409
40410         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40411         (Depends-on): Add unitypes.
40412         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40413         (u8_mbtouc_aux): Move out to separate file.
40414         (u8_mbtouc): Use ucs4_t, uint8_t types.
40415         * lib/unistr/utf8-ucs4.c: New file.
40416
40417         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40418         (Depends-on): Add unitypes.
40419         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40420         (u16_mbtouc_aux): Move out to separate file.
40421         (u16_mbtouc): Use ucs4_t, uint16_t types.
40422         * lib/unistr/utf16-ucs4.c: New file.
40423
40424         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40425         (Depends-on): Add unitypes.
40426         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40427         (u8_uctomb_aux): Move out to separate file.
40428         (u8_uctomb): Use ucs4_t, uint8_t types.
40429         * lib/unistr/ucs4-utf8.c: New file.
40430
40431         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40432         (Depends-on): Add unitypes.
40433         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40434         (u16_uctomb_aux): Move out to separate file.
40435         (u16_uctomb): Use ucs4_t, uint16_t types.
40436         * lib/unistr/ucs4-utf16.c: New file.
40437
40438 2006-12-25  Bruno Haible  <bruno@clisp.org>
40439
40440         * modules/unitypes: New file.
40441         * lib/unitypes.h: New file.
40442         * MODULES.html.sh (func_all_modules): New section "Unicode string
40443         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40444         this section. Add unitypes.
40445
40446 2007-01-08  Bruno Haible  <bruno@clisp.org>
40447
40448         Avoid variable names that conflict with those from libtool.
40449         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40450         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40451         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40452         library_names_spec to acl_library_names_spec, hardcode_* to
40453         acl_hardcode_*.
40454         Reported by Ralf Wildenhues.
40455
40456 2007-01-08  Bruno Haible  <bruno@clisp.org>
40457
40458         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40459         definition.
40460         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40461         definition.
40462         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40463         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40464         definition.
40465         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40466         definition.
40467         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40468         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40469         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40470         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40471         definition.
40472         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40473         definition.
40474         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40475         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40476         GC_USE_<algorithm>.
40477         * lib/gc-libgcrypt.c: Likewise.
40478         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40479         * modules/gc-arctwo (configure.ac): Likewise.
40480         * modules/gc-des (configure.ac): Likewise.
40481         * modules/gc-hmac-md5 (configure.ac): Likewise.
40482         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40483         * modules/gc-md2 (configure.ac): Likewise.
40484         * modules/gc-md4 (configure.ac): Likewise.
40485         * modules/gc-md5 (configure.ac): Likewise.
40486         * modules/gc-random (configure.ac): Likewise.
40487         * modules/gc-rijndael (configure.ac): Likewise.
40488         * modules/gc-sha1 (configure.ac): Likewise.
40489
40490 2007-01-08  Bruno Haible  <bruno@clisp.org>
40491
40492         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40493         macro definition.
40494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40495         definition.
40496         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40497         definition.
40498         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40499         * modules/fcntl-safer (configure.ac): Likewise.
40500         * modules/fopen-safer (configure.ac): Likewise.
40501         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40502         GNULIB_FWRITEERROR macro definition.
40503
40504 2007-01-08  Bruno Haible  <bruno@clisp.org>
40505
40506         * m4/gnulib-common.m4: New file.
40507         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40508         (func_get_filelist): Add m4/gnulib-common.m4.
40509
40510 2007-01-08  Bruno Haible  <bruno@clisp.org>
40511
40512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40513         command.
40514
40515 2007-01-08  Jim Meyering  <jim@meyering.net>
40516
40517         Use a more robust test for a "can't happen" condition.
40518         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40519         narrowed the st_size value.  Presuming the "can't happen" condition
40520         is true, that narrowing could conceivably convert an invalid st_size
40521         value into a valid one.  Instead, use a change based on Matthew
40522         Woehlke's original patch.
40523
40524         Slight readability improvement: use an assert-like macro
40525         in place of literal "abort ()" uses.
40526         * lib/fts.c (fts_assert): Define.
40527         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40528         Use this macro instead of a bare 'abort'.
40529
40530 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40531
40532         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40533         simply work around them.
40534         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40535         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40536         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40537         declaring.
40538         Don't bother to define as macros, since the standard doesn't require it.
40539         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40540         longer worry about IRIX 5.3.
40541         (HAVE_WCTYPE_CTMP_BUG): Remove.
40542
40543 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40544
40545         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40546         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40547         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40548         Problems reported by Georg Schwarz for IRIX 5.3.
40549
40550         * gnulib-tool (autoconf_minversion): Take the maximum version number
40551         found, not the minimum.  Problem reported by James Youngman.
40552
40553 2007-01-03  Karl Berry  <karl@gnu.org>
40554
40555         * doc/error.texi: new file, explaining interaction with progname.
40556         * doc/gnulib.texi: include it.  Update copyright.
40557
40558 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40559
40560         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40561         AC_CANONICAL_HOST, to improve autobuild outputs.
40562
40563 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40564             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40565
40566         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40567         sockets, server sockets, and other file descriptors.  Count errors
40568         to compute the return value.  Reorder the code a bit to be easier
40569         to follow.  Don't set event bits that were not requested (except
40570         POLLERR and POLLHUP).
40571
40572 2007-01-01  Bruno Haible  <bruno@clisp.org>
40573
40574         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40575
40576 2007-01-03  Jim Meyering  <jim@meyering.net>
40577
40578         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40579
40580 2007-01-02  Bruno Haible  <bruno@clisp.org>
40581
40582         * modules/settime (Include): Require timespec.h.
40583         * modules/nanosleep (Include): Likewise.
40584
40585 2007-01-01  Bruno Haible  <bruno@clisp.org>
40586
40587         * gnulib-tool (func_emit_copyright_notice): Bump year.
40588         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40589
40590 2007-01-01  Bruno Haible  <bruno@clisp.org>
40591
40592         Improve support for OpenBSD.
40593         * build-aux/config.rpath (libname_spec): Export.
40594         (library_names_spec): New variable. Export.
40595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40596         library_names_spec from the config.rpath output. Locate shared library
40597         through the name pattern in library_names_spec.
40598
40599 2007-01-01  Eric Blake  <ebb9@byu.net>
40600
40601         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40602
40603 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40604
40605         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40606         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40607         assume the C locale, and avoid an "eval" that could cause trouble.
40608         Problem with SORT reported by Bob Proulx.
40609
40610         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40611         Define.  Trivial patch from Henning Nielsen Lund, originally
40612         sent to bug-grep@gnu.org today.
40613
40614 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40615
40616         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40617         struct stat.  Problem reported by Henning Nielsen Lund.
40618         * lib/acl.c: Include acl.h first, to check interface.  Don't
40619         bother to include sys/types.h and sys/stat.h again.
40620
40621 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40622
40623         Import the following change from libc; problem reported by
40624         Sven Verdoolaege.
40625
40626         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40627
40628         [BZ #1373]
40629         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40630
40631 2006-12-28  Jim Meyering  <jim@meyering.net>
40632
40633         * build-aux/announce-gen: Do not assume that the package
40634         builds any of tar.gz, tar.bz2, and .xdelta files.
40635         Suggestion from Simon Josefsson.
40636
40637 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40638
40639         * modules/announce-gen: New file.
40640
40641 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40642
40643         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40644         handles its gotchas now.
40645         * lib/mbswidth.c: Likewise.
40646         * lib/wcwidth.h: Likewise.
40647         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40648         and iswcntrl; the wctype module does this stuff now.
40649         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40651         * modules/mbchar (Depends-on): Add wctype.
40652         * modules/mbswidth (Depends-on): Likewise.
40653         * modules/wcwidth (Depends-on): Likewise.
40654
40655 2006-12-27  Eric Blake  <ebb9@byu.net>
40656
40657         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40658         module uses more than what <wctype.h> is required to provide.
40659
40660 2006-12-26  Eric Blake  <ebb9@byu.net>
40661
40662         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40663
40664 2006-12-26  Eric Blake  <ebb9@byu.net>
40665
40666         * modules/absolute-header: New module.
40667         * modules/fcntl (Depends-on): Depend on it.
40668         * modules/inttypes (Depends-on): Likewise.
40669         * modules/stdint (Depends-on): Likewise.
40670         * modules/sys_stat (Depends-on): Likewise.
40671         * modules/wctype (Depends-on): Likewise.
40672         * MODULES.html.sh (Support for building libraries and
40673         executables): Document it.
40674
40675 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40676
40677         * gnulib-tool (SED): Remove, undoing previous change.
40678         The problem was that it broke coreutils on Solaris, because
40679         "sed --posix" leaked into a makefile.
40680         (sed): New alias, if 'alias' and GNU sed.
40681
40682 2006-12-24  Jim Meyering  <jim@meyering.net>
40683
40684         Work around an fchownat bug in glibc-2.4:
40685         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40686         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40687         in spite of the -P option.
40688         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40689         New macros.
40690         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40691         * modules/openat (Files): Add lib/fchownat.c.
40692         * lib/openat.c (fchownat): Don't define here.  Move to...
40693         * lib/fchownat.c: ...this new file.
40694
40695 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40696
40697         Fix bug reported by Bruno Haible in
40698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40699         where quotearg.c didn't compile on Mac OS X 10.2 because it
40700         lacks <wchar.h> and wint_t.
40701         * lib/wctype_.h (__wctype_wint_t): New type.
40702         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40703         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40704         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40705         Arg is now of type __wctype_wint_t, not wint_t.
40706         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40707         substitute HAVE_WINT_T.
40708         * modules/wctype (Files): Add m4/wint_t.m4.
40709         (wctype.h): Substitute HAVE_WINT_T.
40710
40711 2006-12-23  Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40714
40715 2006-12-23  Bruno Haible  <bruno@clisp.org>
40716
40717         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40718         S_ISLNK.
40719         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40720         mingw.
40721
40722 2006-12-22  Bruno Haible  <bruno@clisp.org>
40723
40724         * lib/copy-file.c: Include acl.h.
40725         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40726         Close the file descriptors only after being done with copy_acl.
40727         * modules/copy-file (Depends-on): Add acl.
40728
40729 2006-12-22  Bruno Haible  <bruno@clisp.org>
40730
40731         * gnulib-tool (SED): New variable.
40732         Use $SED instead of sed everywhere.
40733
40734 2006-12-22  Bruno Haible  <bruno@clisp.org>
40735
40736         * modules/no-c++: New file.
40737         * m4/no-c++.m4: New file.
40738         * MODULES.html.sh (Support for building libraries and executables):
40739         Add no-c++.
40740
40741 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40742
40743         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40744         Include <limits.h>, and use its INT_MAX to rewrite the
40745         j loop so that it does not overflow 'int'.  Problem reported by
40746         Ralf Wildenhues in
40747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40748         Play it safe by shifting left by 1 rather than multiplying by 2,
40749         as GCC is less likely to optimize this away when the value
40750         is signed (when it assumes overflow leads to undefined behavior).
40751         Also, don't assume time_t uses two's complement.
40752
40753 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40754
40755         * MODULES.html.sh: New module wctype.
40756         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40757         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40758         <wctype.h>, since the new wctype module should fix this.
40759         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40760         the wctype module should arrange for it.
40761         * lib/regex_internal.h: Likewise.
40762         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40763         since the wctype module should handle this now.
40764         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40765         * modules/fnmatch (Depends-on): Add wctype.
40766         * modules/quotearg (Depends-on): Likewise.
40767         * modules/regex (Depends-on): Likewise.
40768
40769 2006-12-19  Bruno Haible  <bruno@clisp.org>
40770
40771         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40772         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40773
40774 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40775
40776         * modules/savewd (Depends-on): Fix dependency on fcntl.
40777
40778 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40779
40780         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40781         conforms to C99, rather than relying on the user's environment
40782         setting of STDINT_H.
40783
40784 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40785         and Eric Blake  <ebb9@byu.net>
40786
40787         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40788         This is more consistent with the other defines here.
40789         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40790         Port to z/OS.  Problem reported by Paul Gilmartin.
40791         Change local vars to use gl_ prefix rather than ac_.
40792         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40793         with other defines.
40794         * modules/double-slash-root: New module.
40795         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40796         (Depends-on): Add double-slash-root.
40797         * MODULES.html.sh (File system functions): Mention new module.
40798
40799 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40800
40801         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40802         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40803         This is for the benefit of gzip, which doesn't do i18n.
40804
40805 2006-12-12  Jim Meyering  <jim@meyering.net>
40806
40807         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40808         Reported by Andreas Schwab <schwab@suse.de>.
40809
40810 2006-12-12  Bruno Haible  <bruno@clisp.org>
40811
40812         Merge these changes.
40813         2006-09-05  Bruno Haible  <bruno@clisp.org>
40814         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40815         iconv_alloc succeeded.
40816         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40817         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40818         test for " && dest " at the end - dest is always != NULL there. Call
40819         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40820         with 2xNULL arguments, also to flush the state storage. Handle the
40821         IRIX iconv behaviour. Realloc the final result, to throw away unused
40822         memory.
40823
40824 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40825
40826         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40827         and fchmodat unconditionally, since glibc 2.4 has them.
40828         Problem reported by Arkadiusz Miskiewicz.
40829
40830 2006-12-10  Bruno Haible  <bruno@clisp.org>
40831
40832         * gnulib-tool (func_import): Show the include files only for those
40833         modules that are copied and specified.
40834         Reported by Karl Berry.
40835
40836 2006-12-08  Jim Meyering  <jim@meyering.net>
40837
40838         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40839         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40840
40841         * build-aux/announce-gen: Add two new options, both optional:
40842         --bootstrap-tools=TOOL_LIST
40843               a comma-separated list of tools, e.g.,
40844               autoconf,automake,bison,gnulib
40845         --gnulib-snapshot-date=DATE
40846               if gnulib is in the bootstrap tool list,
40847               then report this as the snapshot date.
40848               If not specified, use the current date/time.
40849               If you specify a date here, be sure it's UTC.
40850
40851 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40852
40853         * tests/test-argp-2.sh: Fix test to match actual output.
40854         (func_compare): Fix sed script to be portable.
40855
40856 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40859         workaround for this case.  It is not autoconfigured now; offhand
40860         it's hard to see how to autoconfigure it.
40861
40862 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40863
40864         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40865         a directory that is about to be chowned.  Such a directory's
40866         initial file permissions should permit the owner only and this
40867         should not be changed until after the chown, since the group and
40868         other bits would be incorrect if they granted permission before
40869         the chown.
40870
40871         Fix porting problem for iswctype reported by Georg Schwarz in:
40872         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40873         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40874         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40876         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40877
40878 2006-12-03  Jim Meyering  <jim@meyering.net>
40879
40880         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40881         p->fts_statp may not yet be defined.
40882         (fts_read): Instead, set it in the caller, once p->fts_statp is
40883         sure to be defined, and corresponds to a top-level directory.
40884         This bug made du -x fail.  Here's the coreutils test case:
40885         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40886         Reported by Mike Frysinger.
40887
40888 2006-12-01  Jim Meyering  <jim@meyering.net>
40889
40890         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40891         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40892         Reported by Simon Josefsson.
40893
40894 2006-11-30  Jim Meyering  <jim@meyering.net>
40895
40896         * m4/warning.m4: Use the all-permissive copyright notice
40897         recommended by RMS (rather than LGPL).
40898         * m4/vararrays.m4: Likewise.
40899         * m4/flexmember.m4: Likewise.
40900
40901 2006-11-29  Bruno Haible  <bruno@clisp.org>
40902
40903         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40904         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40905         using +=.
40906         Reported by Simon Josefsson <simon@josefsson.org>.
40907
40908 2006-11-28  James Youngman <jay@gnu.org>
40909
40910         * README: Advise users that they might find the bug-gnulib@gnu.org
40911         and autotools-announce@gnu.org mailing lists useful.
40912
40913 2006-11-28  Bruno Haible  <bruno@clisp.org>
40914
40915         * m4/ptrdiff_max.m4: Remove file.
40916
40917 2006-11-21  Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40920         _AC_COMPUTE_INT.
40921         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40922         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40923         _AC_COMPUTE_INT.
40924         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40925         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40926         _AC_COMPUTE_INT.
40927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40928
40929 2006-11-28  Jim Meyering  <jim@meyering.net>
40930
40931         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40932         warning from "gcc -Wshadow" about shadowing the builtin.
40933
40934 2006-11-27  Bruno Haible  <bruno@clisp.org>
40935
40936         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40937         _AC_COMPUTE_INT.
40938         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40939
40940 2006-11-27  Bruno Haible  <bruno@clisp.org>
40941             Paul Eggert  <eggert@cs.ucla.edu>
40942
40943         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40944
40945 2006-11-26  Bruno Haible  <bruno@clisp.org>
40946
40947         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40948         noinst_LTLIBRARIES.
40949
40950 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40951             Bruno Haible  <bruno@clisp.org>
40952
40953         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40954         if compiling with "gcc -ansi".
40955
40956 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         Fix some incompatibilities with gcc -ansi -pedantic.
40959         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40960         if compiling pedantically with GCC, unless it's C99 or later.
40961         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40962         it mishandles gcc -ansi -pedantic as well.
40963         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40964         if gcc -pedantic.
40965         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40966         initializers for struct if -pedantic, unless it's C99 or later.
40967
40968 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40969
40970         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40971         Don't close an fd more than once. Identical atimes indicate
40972         success, not failure.
40973
40974 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40975
40976         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40977
40978 2006-11-23  Jim Meyering  <jim@meyering.net>
40979
40980         * build-aux/announce-gen: New file.  From coreutils.
40981
40982 2006-11-22  Jim Meyering  <jim@meyering.net>
40983
40984         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40985         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40986         (fts_read): Use a temporary to narrow the overused st_size member
40987         before using it in a switch statement.  Reported by Matthew Woehlke.
40988
40989         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40990         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40991
40992 2006-11-20  Bruno Haible  <bruno@clisp.org>
40993
40994         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40995         changequote instead of pairs of brackets.
40996         Reported by Andreas Schwab <schwab@suse.de>.
40997
40998 2006-11-21  Jim Meyering  <jim@meyering.net>
40999
41000         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41001         so as to remain compatible with older compilers.
41002         Patch from Michael Deutschmann.
41003
41004 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41005
41006         * MODULES.html.sh (File system functions): Add openat.
41007
41008         * lib/openat.h (rpl_fstatat): New macro, if
41009         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41010         (fstatat): Define to rpl_fstatat under the same conditions,
41011         unless COMPILING_FSTATAT.
41012         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41013         seems to have the bug.
41014         * lib/fstatat.c: New file.
41015         * modules/openat (Files): Add it.
41016
41017 2006-11-20  Bruno Haible  <bruno@clisp.org>
41018
41019         * Makefile: New file.
41020
41021 2006-11-20  Jim Meyering  <jim@meyering.net>
41022
41023         The beginnings of syntax-related checks for gnulib.
41024         * lib/Makefile: New file.
41025         * lib/t-idcache: New script.  Ensure that the two halves of
41026         idcache.c stay in sync.
41027
41028         * lib/idcache.c: Adjust comments in user- and group- portions to
41029         be more accurate, and to be consistent with one another.
41030
41031 2006-11-20  Jim Meyering  <jim@meyering.net>
41032
41033         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41034         continue using the flexible array member (thus, this module performs
41035         half as many malloc calls), with the addition that...
41036         (getgroup, getuser): Consistently record a non-match via an empty
41037         "name" string, and map an empty string match to a NULL return value.
41038         * modules/idcache (Depends-on): Re-add flexmember.
41039
41040         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41041         (getuidbyname, getgroup, getgidbyname): Likewise.
41042
41043         Use cleaner syntax: NULL rather than 0.
41044         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41045
41046 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41047
41048         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41049         It mishandled the case where the group was missing.
41050         Problem reported by Greg Schafer.
41051         * modules/idcache: Likewise.
41052
41053 2006-11-18  Jim Meyering  <jim@meyering.net>
41054
41055         * check-module (%exempt_header): Add exception for some
41056         conditionally-included headers.
41057
41058         * modules/i-ring (Depends-on): Add verify.
41059         (License): Change to LGPL.
41060
41061 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41062
41063         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41064         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41065         and inttostr.h.  Use snprintf rather than uinttostr, so that
41066         LGPLed code doesn't depend on GPLed.
41067
41068 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41069
41070         * modules/inline (License): Change from GPL to LGPL.
41071
41072 2006-11-17  Jim Meyering  <jim@meyering.net>
41073
41074         * modules/d-type (License): Switch to LGPL.
41075
41076 2006-11-15  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41079
41080 2006-11-15  Eric Blake  <ebb9@byu.net>
41081
41082         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41083         the module dependency.
41084
41085 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41086             Bruno Haible  <bruno@clisp.org>
41087
41088         * gnulib-tool (func_create_testdir): Add license consistency check.
41089
41090 2006-11-15  Eric Blake  <ebb9@byu.net>
41091
41092         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41093         random "(cached)" in configure output.
41094
41095 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41096
41097         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41098         test for conforming inttypes.h is both announced and cached.
41099
41100         * MODULES.html.sh (seen_modules, seen_files): New variables.
41101         (func_module): Rewrite to use a few less gnulib-tool and sed
41102         invocations.  Avoid a couple of quadratic algorithms for ...
41103         (missed_modules, missed_files): ... these, with ...
41104         (func_append, func_tmpdir): ... these new functions, from
41105         gnulib-tool.  Analogously, install traps for cleanup.
41106
41107         * tests/test-gc.c (main): Remove unused variables.
41108         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41109
41110 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41111
41112         * modules/inttostr (License): Change to LGPL.
41113
41114 2006-11-14  Eric Blake  <ebb9@byu.net>
41115
41116         * modules/tempname (License): Change to LGPL.
41117
41118 2006-11-14  Eric Blake  <ebb9@byu.net>
41119
41120         * doc/functions.texi (Function Portability): *printf functions on
41121         Cygwin now understand all POSIX size specifiers.
41122
41123 2006-11-14  Bruno Haible  <bruno@clisp.org>
41124
41125         * modules/c-ctype (License): Change to LGPL.
41126
41127 2006-11-12  Bruno Haible  <bruno@clisp.org>
41128
41129         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41130         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41131         for GNOME libraries, for which the include files are installed in
41132         subdirectories of $prefix/include.
41133
41134 2006-11-12  Bruno Haible  <bruno@clisp.org>
41135
41136         * m4/lib-link.m4: Require at least autoconf-2.54.
41137         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41138         name to underscores for the --with option.
41139
41140 2006-11-13  Bruno Haible  <bruno@clisp.org>
41141
41142         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41143         the tests directory.
41144         Reported by Ralf Wildenhues.
41145
41146 2006-11-13  Bruno Haible  <bruno@clisp.org>
41147
41148         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41149         (func_emit_initmacro_end): Undo the override here.
41150         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41151         Works around the famous automake error in coreutils.
41152
41153 2006-11-13  Eric Blake  <ebb9@byu.net>
41154
41155         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41156         element, not its node.
41157
41158 2006-11-12  Bruno Haible  <bruno@clisp.org>
41159
41160         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41161         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41162
41163 2006-11-12  Bruno Haible  <bruno@clisp.org>
41164
41165         * gnulib-tool: New option --local-symlink.
41166         (func_usage): Document it.
41167         (lsymbolic): New variable.
41168         (func_import, func_create_testdir): If --symlink was not specified,
41169         test whether --local-symlink was specified and the file comes from
41170         the local_gnulib_dir.
41171
41172 2006-11-12  Bruno Haible  <bruno@clisp.org>
41173
41174         * gnulib-tool (func_ln): New function.
41175         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41176
41177 2006-11-12  Bruno Haible  <bruno@clisp.org>
41178
41179         Finish support for source files in subdirectories.
41180         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41181         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41182         AUTOMAKE_OPTIONS.
41183         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41184
41185 2006-11-12  Bruno Haible  <bruno@clisp.org>
41186
41187         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41188         EXTRA_lib_SOURCES augmentation.
41189         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41190
41191 2006-11-12  Jim Meyering  <jim@meyering.net>
41192
41193         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41194         file descriptors.  This also averts a failure on systems with
41195         native openat support when a traversed directory lacks "x" access.
41196         * lib/fts_.h: Include "i-ring.h"
41197         (struct FTS) [fts_fd_ring]: New member.
41198         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41199         (FCHDIR): Add parentheses.
41200         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41201         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41202         When descending, rather than simply closing the previous
41203         fts_cwd_fd value, push that file descriptor onto the ring.
41204         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41205         (fts_open): Initialize the new fd_ring member.
41206         (fts_close): Clear the ring.
41207         (fts_safe_changedir): When possible, use our new fd_ring to skip
41208         the diropen and fstat and dev/ino comparison that would normally
41209         accompany a virtual `chdir ("..")'.
41210
41211         * modules/fts (Depends-on): Add i-ring.
41212         * modules/i-ring: New module.
41213         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41214         * m4/i-ring.m4: New file.
41215
41216 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41217
41218         * gnulib-tool (func_create_testdir): Fix replacement of
41219         `build-aux' in configure.ac.  Run autotools in gltests
41220         subdirectory.
41221         (func_create_testdir, func_create_megatestdir, test): There is
41222         no need for '--force' in most autotool invocations in a new
41223         tree.  Actually fail the whole test if any of the tools, or the
41224         configure or make stages fail.
41225
41226         Sync from Automake.
41227         * build-aux/gnupload: Revert last change.  Add pointer to upload
41228         instructions of the GNU Maintenance Instructions.
41229         Suggestion by Karl Berry.
41230
41231 2006-11-10  Jim Meyering  <jim@meyering.net>
41232
41233         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41234
41235 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41238         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41239         (bind_textdomain_codeset) [! ENABLE_NLS]:
41240         Evaluate all the arguments.  That way, callers get compatible behavior
41241         if the arguments have side effects.  Also, it avoids some GCC
41242         diagnostics in some cases; Joel E. Denny reported problems when Bison
41243         was configured with --enable-gcc-warnigs.
41244
41245 2006-11-10  Jim Meyering  <jim@meyering.net>
41246
41247         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41248         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41249         account.
41250
41251 2006-11-10  Jim Meyering  <jim@meyering.net>
41252
41253         * modules/inline: New file/module.
41254         * modules/xalloc (Files): Remove m4/inline.m4.
41255         (Depends-on): Add inline, instead.
41256         * modules/oset: Likewise.
41257         * modules/list: Likewise.
41258
41259 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41260
41261         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41262         Problem reported by Matthew Woehlke.
41263
41264 2006-11-09  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/tempname.c (gen_tempname): Remove variant that invokes
41267         __gen_tempname.
41268         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41269         __gen_tempname.
41270
41271 2006-11-08  Bruno Haible  <bruno@clisp.org>
41272
41273         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41274         to 'yes' instead of 'cross-compiling'.
41275
41276 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41277
41278         * lib/quotearg.h (quotearg_free): New decl.
41279         * lib/quotearg.c (quotearg_free): New function.
41280         (slot0, nslots, slotvec0, slotvec):
41281         Now file-scope so that quotearg_free can get at them.
41282
41283 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41284
41285         Sync from Automake.
41286         * build-aux/gnupload: Add missing 'gnu' to example URL.
41287         Report by Karl Berry.
41288
41289 2006-11-08  Bruno Haible  <bruno@clisp.org>
41290
41291         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41292         Suggested by Paul Eggert.
41293
41294 2006-11-08  Jim Meyering  <jim@meyering.net>
41295
41296         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41297         It's already included if !_LIBC.
41298         (fts_safe_changedir): Add a comment.
41299
41300 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41301
41302         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41303         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41304         Matthew Woehlke.
41305
41306         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41307         definitions up, to avoid colliding with change below.
41308         (static_inline) [HAVE_INLINE]: New macro.
41309         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41310         Provide extern decls when !HAVE_INLINE.  Do not define unless
41311         static_inline is defined, either by us or by xmalloc.c.  Use
41312         static_inline rather than static inline.
41313         (XCALLOC): Optimize sizeof(T) = 1 case.
41314         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41315
41316 2006-11-07  Bruno Haible  <bruno@clisp.org>
41317
41318         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41319         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41320         AC_C_INLINE.
41321         * modules/xalloc (Files): Add m4/inline.m4.
41322
41323 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41324
41325         * README: Fix typo.
41326         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41327         (Miscellanous Notes): ...from this.
41328
41329 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41330
41331         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41332         Mention that offsetof should be used instead of sizeof.
41333         From Bruno Haible.
41334
41335 2006-11-07  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41338
41339 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41340
41341         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41342         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41343         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41344         (gl_tree_add_before, gl_tree_add_after):
41345         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41346         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41347         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41348         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41349         (gl_linked_add_after, gl_linked_add_at): Likewise.
41350         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41351         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41352         (gl_tree_add_before, gl_tree_add_after): Likewise.
41353         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41354         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41355         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41356
41357 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41358
41359         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41360
41361 2006-11-06  Bruno Haible  <bruno@clisp.org>
41362
41363         * m4/inline.m4: New file.
41364         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41365         * modules/list (Files): Add m4/inline.m4.
41366         * modules/oset (Files): Likewise.
41367
41368 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41369
41370         * lib/idcache.c: Include <stddef.h>, for offsetof.
41371         (struct userid.name): Change from char * to a flexible array member.
41372         All uses changed.
41373         * modules/idcache (Depends-on): Add flexmember.
41374
41375         * MODULES.html.sh (Core language properties): New module flexmember.
41376         * modules/flexmember, m4/flexmember.m4: New files.
41377
41378         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41379         inline functions that are identical with the old xnmalloc_inline,
41380         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41381         that we can avoid some unnecessary integer multiplications and
41382         divisions in the common case where the element size is known at
41383         compile time.
41384         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41385         needed.
41386         (xnboundedmalloc): Remove.
41387         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41388         arguments, for consistency with rest of this header.
41389         (xcharalloc): Rewrite using XNMALLOC.
41390         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41391         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41392         versions have been moved to lib/xalloc.h and renamed to be the
41393         non-*_inline versions.
41394         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41395         and xnrealloc functions, since those functions are now inline and
41396         now call us.
41397         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41398         renaming described above.
41399         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41400         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41401         captures the dependency in AC_C_INLINE.
41402
41403         New module canonicalize-lgpl, proposed by Charles Wilson in
41404         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41405         with a few small changes afterwards.
41406         * MODULES.html.sh (File system functions): New module
41407         canonicalize-lgpl.
41408         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41409         and canonicalize_file_name.
41410         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41411         * modules/canonicalize-lgpl: New files.
41412
41413 2006-11-05  Bruno Haible  <bruno@clisp.org>
41414
41415         * gnulib-tool (func_import, func_create_testdir): Create directories
41416         also for files in subdirectories of lib/.
41417
41418 2006-11-05  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41421         ANSI C compliant.
41422
41423 2006-11-03  Bruno Haible  <bruno@clisp.org>
41424
41425         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41426         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41427         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41428         (xnboundedmalloc): New inline function.
41429         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41430         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41431         xmalloc.
41432         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41433         xmalloc.
41434         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41435         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41436         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41437         xmalloc.
41438         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41439         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41440         xmalloc.
41441         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41442         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41443         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41444         xmalloc.
41445         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41446         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41447         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41448         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41449         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41450         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41451         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41452
41453 2006-11-03  Bruno Haible  <bruno@clisp.org>
41454
41455         * lib/c-ctype.h [C++]: Define functions without name mangling.
41456         * lib/fwriteerror.h [C++]: Likewise.
41457         * lib/gcd.h [C++]: Likewise.
41458         * lib/linebreak.h [C++]: Likewise.
41459
41460 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41461
41462         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41463         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41464         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41465         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41466         Check for functions and headers just once.
41467         Check for declaration of canonicalize_file_name.
41468         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41469
41470 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41471
41472         * gnulib-tool (func_import): Fix typo in actioncmd.
41473
41474 2006-11-02  Bruno Haible  <bruno@clisp.org>
41475
41476         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41477         newline sequence in the Makefile.am snippet as a space, like "make"
41478         does.
41479         Reported by Roger Persson <perrog@gmail.com>.
41480
41481 2006-11-01  Bruno Haible  <bruno@clisp.org>
41482
41483         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41484         already declared in <string.h>.
41485         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41486
41487 2006-11-01  Bruno Haible  <bruno@clisp.org>
41488
41489         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41490         * lib/strcase.h: Include <string.h>.
41491         (strcasecmp): Define to rpl_strcasecmp here.
41492
41493 2006-11-01  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41496
41497 2006-11-01  Eric Blake  <ebb9@byu.net>
41498
41499         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41500
41501         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41502
41503 2006-10-29  Bruno Haible  <bruno@clisp.org>
41504
41505         Make it compile in C++ mode.
41506         * lib/full-write.c (full_rw): Add a cast.
41507
41508 2006-11-01  Bruno Haible  <bruno@clisp.org>
41509
41510         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41511         be POSIX compliant.
41512         Reported by Roger Persson <perrog@gmail.com>.
41513
41514 2006-11-01  Eric Blake  <ebb9@byu.net>
41515
41516         * lib/getopt_.h: Fix comments.
41517
41518 2006-10-31  Eric Blake  <ebb9@byu.net>
41519
41520         * modules/tmpdir (Depends-on): Add sys_stat.
41521         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41522         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41523         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41524         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41525         tempname.
41526
41527 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41528
41529         Avoid some C++ diagnostics reported by Bruno Haible.
41530         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41531         xmalloc.
41532         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41533         (struct slotvec): Move to top level.
41534         (quotearg_n_options): Rewrite to avoid xmalloc.
41535         * lib/xalloc.h (xcharalloc): New function.
41536         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41537         [defined __cplusplus]: Add function template that provides result
41538         type propagation.  This part of the change is from Bruno Haible.
41539
41540 2006-10-29  Bruno Haible  <bruno@clisp.org>
41541
41542         Make it compile in C++ mode.
41543         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41544         * lib/strnlen1.c (strnlen1): Cast memchr result.
41545         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41546         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41547         (create_temp_dir): Rename local variable 'template'.
41548         (compile_csharp_using_sscli): Add cast.
41549         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41550         * lib/findprog.c (find_in_path): Likewise.
41551         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41552         * lib/wait-process.c (register_slave_subprocess): Likewise.
41553
41554 2006-10-22  Bruno Haible  <bruno@clisp.org>
41555
41556         * modules/tsearch: New file.
41557         * lib/tsearch.h: New file.
41558         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41559         * m4/tsearch.m4: New file.
41560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41561
41562 2006-10-29  Eric Blake  <ebb9@byu.net>
41563
41564         * lib/arcfour.c: Assume config.h.
41565         * lib/arctwo.c: Likewise.
41566         * lib/base64.c: Likewise.
41567         * lib/check-version.c: Likewise.
41568         * lib/crc.c: Likewise.
41569         * lib/des.c: Likewise.
41570         * lib/gc-gnulib.c: Likewise.
41571         * lib/gc-libgcrypt.c: Likewise.
41572         * lib/gc-pbkdf2-sha1.c: Likewise.
41573         * lib/getaddrinfo.c: Likewise.
41574         * lib/getdelim.c: Likewise.
41575         * lib/getline.c: Likewise.
41576         * lib/hmac-md5.c: Likewise.
41577         * lib/hmac-sha1.c: Likewise.
41578         * lib/iconvme.c: Likewise.
41579         * lib/md2.c: Likewise.
41580         * lib/md4.c: Likewise.
41581         * lib/memxor.c: Likewise.
41582         * lib/read-file.c: Likewise.
41583         * lib/readline.c: Likewise.
41584         * lib/rijndael-alg-fst.c: Likewise.
41585         * lib/rijndael-api-fst.c: Likewise.
41586         * lib/xgetdomainname.c: Likewise.
41587
41588 2006-10-28  Eric Blake  <ebb9@byu.net>
41589
41590         * lib/xstrndup.c: Assume config.h.
41591
41592 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41593
41594         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41595         stat-macros.h is now for our own macros, whereas stat_h is for
41596         macros in the <sys/stat.h> name space.
41597         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41598         (STAT_MACROS_H): Remove.
41599         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41600         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41601         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41602         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41603         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41604         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41605         Move these macros to ...
41606         * lib/stat_.h: here.  Don't include stat-macros.h.
41607         * lib/canonicalize.c: Don't include stat-macros.h.
41608         * lib/chown.c: Likewise.
41609         * lib/euidaccess.c: Likewise.
41610         * lib/file-type.c: Likewise.
41611         * lib/filemode.c: Likewise.
41612         * lib/glob.c: Likewise.
41613         * lib/isapipe.c: Likewise.
41614         * lib/lchown.c: Likewise.
41615         * lib/lstat.c: Likewise.
41616         * lib/mkdir-p.c: Likewise.
41617         * lib/rmdir.c: Likewise.
41618         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41620         unless mkdir isn't declared, to speed up 'configure'.
41621         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41622         would define all the S_* symbols.
41623         * modules/canonicalize (Depends-on):
41624         Depend on sys_stat, not stat-macros.
41625         * modules/chown: Likewise.
41626         * modules/euidaccess: Likewise.
41627         * modules/filemode: Likewise.
41628         * modules/file-type: Likewise.
41629         * modules/glob: Likewise.
41630         * modules/isapipe: Likewise.
41631         * modules/lchown: Likewise.
41632         * modules/lstat: Likewise.
41633         * modules/mkancesdirs: Likewise.
41634         * modules/rmdir: Likewise.
41635         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41636         * modules/modechange: Likewise.
41637         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41638         (configure.ac): Remove gl_STAT_MACROS.
41639         * modules/sys_stat (Depends-on): Remove stat-macros.
41640
41641 2006-10-27  Bruno Haible  <bruno@clisp.org>
41642
41643         * m4/signed.m4: Remove file.
41644         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41645         invocation.
41646         * modules/vasnprintf (Files): Remove m4/signed.m4.
41647
41648 2006-10-27  Bruno Haible  <bruno@clisp.org>
41649
41650         Update to GNU gettext 0.16.
41651         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41652         m4/inttypes-h.m4, m4/signed.m4.
41653         * m4/gettext.m4: Update to GNU gettext 0.16.
41654         * m4/intl.m4: New file, from GNU gettext.
41655         * m4/intldir.m4: New file, from GNU gettext.
41656         * config/srclist.txt: Update
41657
41658 2006-10-27  Eric Blake  <ebb9@byu.net>
41659
41660         * MODULES.html.sh: Document tempname.
41661         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41662         dependencies.
41663         (Files): Move lib/tempname.c...
41664         * modules/tempname: ...to this new module.
41665         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41666         (gl_PREREQ_TEMPNAME): Move...
41667         * m4/tempname.m4: ...to this new file.
41668         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41669         * modules/sys_stat (Depends-on): Add stat-macros.
41670         * lib/stat_.h (includes): Pick up stat macros.
41671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41672         if stat macros are broken.
41673         * lib/tempname.c (includes): No need to include "stat-macros.h".
41674         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41675         (direxists, __path_search) [!_LIBC]: Don't compile these in
41676         gnulib; the tmpdir module covers that.
41677         * lib/tempname.h: New file.
41678
41679 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41680
41681         * COPYING: Explain how gnulib-tool converts licence headers.
41682         Almost all wording by Eric Blake.
41683
41684 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41685
41686         * lib/mbchar.h (is_basic_table): Make read-only.
41687         * lib/mbchar.c (is_basic_table): Likewise.
41688         Reported by John Darrington.
41689
41690 2006-10-25  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/progname.h (set_program_name): Undefine before defining.
41693
41694 2006-10-25  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41697         false for non-gcc C++ compilers.
41698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41699
41700 2006-10-24  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41703         iconv implementations like Irix iconv.
41704
41705 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41706
41707         * modules/vararrays: New file.
41708         * m4/vararrays.m4: New file, taken from diffutils.
41709         * MODULES.html.sh: New module vararrays.
41710
41711 2006-10-24  Karl Berry  <karl@gnu.org>
41712
41713         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41714         Don't call GNU Unix.
41715
41716 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41717
41718         * users.txt: Add Libtool.
41719
41720         Sync from Libtool:
41721
41722         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41725         to gnulib's policy of including config.h unconditionally.
41726
41727 2006-10-24  Bruno Haible  <bruno@clisp.org>
41728
41729         * modules/wcwidth (Files): Add m4/wint_t.m4.
41730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41731         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41732
41733 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41734
41735         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41736         to pacify GCC with some -W flags enabled.  Problem reported by
41737         Bruno Haible.
41738
41739 2006-10-24  Jim Meyering  <jim@meyering.net>
41740
41741         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41742         Reported by Karl Berry.
41743
41744 2006-10-23  Bruno Haible  <bruno@clisp.org>
41745
41746         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41747
41748 2006-10-24  Bruno Haible  <bruno@clisp.org>
41749
41750         * lib/gl_list.h: Use C comment style, not C++ comment style.
41751
41752 2006-10-23  Eric Blake  <ebb9@byu.net>
41753
41754         * lib/getaddrinfo.c (includes): Add missing include.
41755
41756 2006-10-23  Bruno Haible  <bruno@clisp.org>
41757             Paul Eggert  <eggert@cs.ucla.edu>
41758
41759         Ability to rename obstack_free.
41760         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41761         obstack_free.
41762         (obstack_free): Invoke the __obstack_free macro.
41763         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41764
41765 2006-10-23  Bruno Haible  <bruno@clisp.org>
41766             Paul Eggert  <eggert@cs.ucla.edu>
41767
41768         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41769         __argc, __argv from the declaration. (They are defined as macros on
41770         mingw.)
41771
41772 2006-10-22  Bruno Haible  <bruno@clisp.org>
41773
41774         * doc/gnulib-intro.texi: New file.
41775         * doc/gnulib.texi: Include it.
41776
41777 2006-10-21  Bruno Haible  <bruno@clisp.org>
41778
41779         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41780         "Introduction", "Miscellanous Notes", "Particular Modules".
41781
41782 2006-10-21  Bruno Haible  <bruno@clisp.org>
41783
41784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41785         Change mostlyclean-local rule to avoid sh syntax error from bash
41786         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41787
41788 2006-10-23  Jim Meyering  <jim@meyering.net>
41789
41790         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41791         in place of snprintf.
41792
41793         * modules/inttostr (Files): Add lib/uinttostr.c.
41794         * lib/uinttostr.c (inttostr): New file/function.
41795         * lib/inttostr.h (uinttostr): Declare.
41796         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41797         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41798         Add uinttostr.
41799         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41800
41801 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41802
41803         * lib/canonicalize.c (ELOOP): Define if not already defined.
41804         Problem reported by Bruno Haible in
41805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41806
41807 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41808
41809         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41810         Problem reported by Perry Smith and Ville Laurikari.
41811
41812         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41813         uses.
41814
41815 2006-10-19  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41818         for mingw.
41819
41820 2006-10-19  Bruno Haible  <bruno@clisp.org>
41821
41822         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41823         Needed for mingw.
41824
41825 2006-10-19  Bruno Haible  <bruno@clisp.org>
41826
41827         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41828
41829 2006-10-19  Bruno Haible  <bruno@clisp.org>
41830
41831         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41832         it.
41833
41834 2006-10-19  Bruno Haible  <bruno@clisp.org>
41835
41836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41837         invocation.
41838
41839 2006-10-19  Bruno Haible  <bruno@clisp.org>
41840
41841         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41842         mountlist by default.
41843
41844 2006-10-16  Bruno Haible  <bruno@clisp.org>
41845
41846         * lib/c-strstr.c: Include c-strstr.h.
41847
41848 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41849
41850         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41851         in a slash.
41852
41853 2006-10-18  Bruno Haible  <bruno@clisp.org>
41854
41855         * lib/lock.h [C++]: Wrap definitions in extern "C".
41856
41857 2006-10-18  Bruno Haible  <bruno@clisp.org>
41858
41859         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41860         gl_LIBOBJS list.
41861
41862 2006-10-18  Bruno Haible  <bruno@clisp.org>
41863
41864         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41865
41866 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41867
41868         * lib/xstrtol.h: Include gettext.h.
41869         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41870         Problem reported by Eric Blake.
41871         * modules/xstrtol (Depends-on): Add gettext-h.
41872
41873 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41874
41875         * lib/strftime.c (advance): New macro.
41876         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41877         incomplete type, so you can't add 0 to it.  Problem and patch
41878         reported by Eelco Dolstra for dietlibc.
41879
41880 2006-10-18  Jim Meyering  <jim@meyering.net>
41881
41882         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41883         type for a local, and rename it: s/up/user_proc/.
41884
41885 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41886
41887         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41888         READ_UTMP_USER_PROCESS.
41889         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41890
41891 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41892
41893         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41894         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41895
41896 2006-10-17  Eric Blake  <ebb9@byu.net>
41897
41898         * lib/sigprocmask.c (sigprocmask): Fix typo.
41899
41900         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41901
41902         * modules/clean-temp (Makefile.am): Don't add to make output...
41903         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41904         config.h.
41905
41906 2006-10-17  Bruno Haible  <bruno@clisp.org>
41907
41908         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41909         differently if DEFAULT_TEXT_DOMAIN is set.
41910
41911 2006-10-16  Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/clean-temp.c: Include fwriteerror.h.
41914
41915 2006-10-16  Bruno Haible  <bruno@clisp.org>
41916
41917         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41918
41919 2006-10-16  Bruno Haible  <bruno@clisp.org>
41920
41921         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41922         * lib/sigprocmask.h: Include <sys/types.h>.
41923         (sigset_t): Use the system's definition if present.
41924
41925 2006-10-17  Eric Blake  <ebb9@byu.net>
41926
41927         * lib/xvasprintf.c (includes): Assume config.h.
41928         * lib/xasprintf.c (includes): Likewise.
41929
41930 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41931
41932         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41933         at least as wide as intmax_t.
41934
41935 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41936
41937         (Imported from Automake.)
41938         * build-aux/gnupload: Update to version 1.1 of directive file.
41939
41940 2006-10-16  Eric Blake  <ebb9@byu.net>
41941
41942         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41943         match Automake 1.10a.
41944
41945 2006-10-14  Bruno Haible  <bruno@clisp.org>
41946
41947         * modules/sigprocmask: New file.
41948         * lib/sigprocmask.h: New file.
41949         * lib/sigprocmask.c: New file.
41950         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41951         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41952         request sigprocmask.o.
41953         (gl_PREREQ_SIGPROCMASK): New macro.
41954         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41955         (Depends-on): Add sigprocmask.
41956         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41957         gt_SIGNALBLOCKING. Test for 'raise' only once.
41958         * lib/fatal-signal.c: Include sigprocmask.h.
41959         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41960         unblock_fatal_signals): Define always.
41961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41962         sigprocmask.
41963
41964 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         Sync from Automake.
41967         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41968         which incorrectly sets the mode of an existing destination
41969         directory.  In some cases the unpatched install-sh could do the
41970         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41971         system.  We hope this is rare in practice, but it's clearly worth
41972         fixing.  Problem reported by Alex Unleashed in
41973         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41974         Also, don't bother to check for -m bugs unless we're using -m;
41975         suggested by Stepan Kasal.
41976
41977 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41978
41979         Sync from Automake.
41980         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41981         `-c' flag, so they appear at the same position as in %FASTDEP%
41982         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41983         which ignores unknown options only after the first non-option.
41984         Bug report against M4 by Nelson H. F. Beebe.
41985
41986 2006-10-13  Jim Meyering  <jim@meyering.net>
41987
41988         Fix a bug in yesterday's change.
41989         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41990         p->fts_statp->st_dev would be used uninitialized.
41991         Ensures that we always call fts_stat on the very first entry.
41992         Miklos Szeredi reported that find -xdev stopped working.
41993
41994 2006-10-12  Bruno Haible  <bruno@clisp.org>
41995
41996         * gnulib-tool (func_get_automake_snippet): Append an automatically
41997         computed EXTRA_DIST augmentation.
41998         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41999         * modules/alloca-opt (Makefile.am): Likewise.
42000         * modules/allocsa (Makefile.am): Likewise.
42001         * modules/arcfour (Makefile.am): Likewise.
42002         * modules/arctwo (Makefile.am): Likewise.
42003         * modules/argmatch (Makefile.am): Likewise.
42004         * modules/argz (Makefile.am): Likewise.
42005         * modules/atexit (Makefile.am): Likewise.
42006         * modules/backupfile (Makefile.am): Likewise.
42007         * modules/byteswap (Makefile.am): Likewise.
42008         * modules/c-strtod (Makefile.am): Likewise.
42009         * modules/c-strtold (Makefile.am): Likewise.
42010         * modules/calloc (Makefile.am): Likewise.
42011         * modules/canon-host (Makefile.am): Likewise.
42012         * modules/canonicalize (Makefile.am): Likewise.
42013         * modules/chdir-long (Makefile.am): Likewise.
42014         * modules/chdir-safer (Makefile.am): Likewise.
42015         * modules/check-version (Makefile.am): Likewise.
42016         * modules/chown (Makefile.am): Likewise.
42017         * modules/cloexec (Makefile.am): Likewise.
42018         * modules/close-stream (Makefile.am): Likewise.
42019         * modules/closeout (Makefile.am): Likewise.
42020         * modules/crc (Makefile.am): Likewise.
42021         * modules/csharpexec (Makefile.am): Likewise.
42022         * modules/cycle-check (Makefile.am): Likewise.
42023         * modules/des (Makefile.am): Likewise.
42024         * modules/dev-ino (Makefile.am): Likewise.
42025         * modules/dirfd (Makefile.am): Likewise.
42026         * modules/dirname (Makefile.am): Likewise.
42027         * modules/dup2 (Makefile.am): Likewise.
42028         * modules/eealloc (Makefile.am): Likewise.
42029         * modules/error (Makefile.am): Likewise.
42030         * modules/euidaccess (Makefile.am): Likewise.
42031         * modules/exclude (Makefile.am): Likewise.
42032         * modules/exitfail (Makefile.am): Likewise.
42033         * modules/fcntl-safer (Makefile.am): Likewise.
42034         * modules/fcntl (Makefile.am): Likewise.
42035         * modules/file-type (Makefile.am): Likewise.
42036         * modules/fileblocks (Makefile.am): Likewise.
42037         * modules/filemode (Makefile.am): Likewise.
42038         * modules/filenamecat (Makefile.am): Likewise.
42039         * modules/fnmatch (Makefile.am): Likewise.
42040         * modules/fopen-safer (Makefile.am): Likewise.
42041         * modules/fpending (Makefile.am): Likewise.
42042         * modules/fprintftime (Makefile.am): Likewise.
42043         * modules/free (Makefile.am): Likewise.
42044         * modules/fsusage (Makefile.am): Likewise.
42045         * modules/ftruncate (Makefile.am): Likewise.
42046         * modules/fts (Makefile.am): Likewise.
42047         * modules/gc-arcfour (Makefile.am): Likewise.
42048         * modules/gc-des (Makefile.am): Likewise.
42049         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42050         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42051         * modules/gc-md4 (Makefile.am): Likewise.
42052         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42053         * modules/gc-sha1 (Makefile.am): Likewise.
42054         * modules/gc (Makefile.am): Likewise.
42055         * modules/getaddrinfo (Makefile.am): Likewise.
42056         * modules/getcwd (Makefile.am): Likewise.
42057         * modules/getdelim (Makefile.am): Likewise.
42058         * modules/getdomainname (Makefile.am): Likewise.
42059         * modules/getgroups (Makefile.am): Likewise.
42060         * modules/gethostname (Makefile.am): Likewise.
42061         * modules/gethrxtime (Makefile.am): Likewise.
42062         * modules/getline (Makefile.am): Likewise.
42063         * modules/getloadavg (Makefile.am): Likewise.
42064         * modules/getlogin_r (Makefile.am): Likewise.
42065         * modules/getndelim2 (Makefile.am): Likewise.
42066         * modules/getopt (Makefile.am): Likewise.
42067         * modules/getpagesize (Makefile.am): Likewise.
42068         * modules/getpass-gnu (Makefile.am): Likewise.
42069         * modules/getpass (Makefile.am): Likewise.
42070         * modules/getsubopt (Makefile.am): Likewise.
42071         * modules/gettime (Makefile.am): Likewise.
42072         * modules/gettimeofday (Makefile.am): Likewise.
42073         * modules/getugroups (Makefile.am): Likewise.
42074         * modules/getusershell (Makefile.am): Likewise.
42075         * modules/glob (Makefile.am): Likewise.
42076         * modules/group-member (Makefile.am): Likewise.
42077         * modules/hard-locale (Makefile.am): Likewise.
42078         * modules/hash (Makefile.am): Likewise.
42079         * modules/hmac-md5 (Makefile.am): Likewise.
42080         * modules/hmac-sha1 (Makefile.am): Likewise.
42081         * modules/human (Makefile.am): Likewise.
42082         * modules/idcache (Makefile.am): Likewise.
42083         * modules/imaxabs (Makefile.am): Likewise.
42084         * modules/imaxdiv (Makefile.am): Likewise.
42085         * modules/inet_ntop (Makefile.am): Likewise.
42086         * modules/inet_pton (Makefile.am): Likewise.
42087         * modules/intprops (Makefile.am): Likewise.
42088         * modules/inttostr (Makefile.am): Likewise.
42089         * modules/inttypes (Makefile.am): Likewise.
42090         * modules/isapipe (Makefile.am): Likewise.
42091         * modules/javaversion (Makefile.am): Likewise.
42092         * modules/lchmod (Makefile.am): Likewise.
42093         * modules/lchown (Makefile.am): Likewise.
42094         * modules/localcharset (Makefile.am): Likewise.
42095         * modules/long-options (Makefile.am): Likewise.
42096         * modules/lstat (Makefile.am): Likewise.
42097         * modules/malloc (Makefile.am): Likewise.
42098         * modules/mathl (Makefile.am): Likewise.
42099         * modules/mbchar (Makefile.am): Likewise.
42100         * modules/md2 (Makefile.am): Likewise.
42101         * modules/md4 (Makefile.am): Likewise.
42102         * modules/md5 (Makefile.am): Likewise.
42103         * modules/memcasecmp (Makefile.am): Likewise.
42104         * modules/memchr (Makefile.am): Likewise.
42105         * modules/memcmp (Makefile.am): Likewise.
42106         * modules/memcoll (Makefile.am): Likewise.
42107         * modules/memcpy (Makefile.am): Likewise.
42108         * modules/memmem (Makefile.am): Likewise.
42109         * modules/memmove (Makefile.am): Likewise.
42110         * modules/mempcpy (Makefile.am): Likewise.
42111         * modules/memrchr (Makefile.am): Likewise.
42112         * modules/memset (Makefile.am): Likewise.
42113         * modules/memxor (Makefile.am): Likewise.
42114         * modules/mkancesdirs (Makefile.am): Likewise.
42115         * modules/mkdir-p (Makefile.am): Likewise.
42116         * modules/mkdir (Makefile.am): Likewise.
42117         * modules/mkdtemp (Makefile.am): Likewise.
42118         * modules/mkstemp (Makefile.am): Likewise.
42119         * modules/mktime (Makefile.am): Likewise.
42120         * modules/modechange (Makefile.am): Likewise.
42121         * modules/mountlist (Makefile.am): Likewise.
42122         * modules/nanosleep (Makefile.am): Likewise.
42123         * modules/obstack (Makefile.am): Likewise.
42124         * modules/openat (Makefile.am): Likewise.
42125         * modules/pagealign_alloc (Makefile.am): Likewise.
42126         * modules/pathmax (Makefile.am): Likewise.
42127         * modules/physmem (Makefile.am): Likewise.
42128         * modules/poll (Makefile.am): Likewise.
42129         * modules/posixtm (Makefile.am): Likewise.
42130         * modules/posixver (Makefile.am): Likewise.
42131         * modules/putenv (Makefile.am): Likewise.
42132         * modules/quote (Makefile.am): Likewise.
42133         * modules/quotearg (Makefile.am): Likewise.
42134         * modules/raise (Makefile.am): Likewise.
42135         * modules/read-file (Makefile.am): Likewise.
42136         * modules/readline (Makefile.am): Likewise.
42137         * modules/readlink (Makefile.am): Likewise.
42138         * modules/readtokens (Makefile.am): Likewise.
42139         * modules/readutmp (Makefile.am): Likewise.
42140         * modules/realloc (Makefile.am): Likewise.
42141         * modules/regex (Makefile.am): Likewise.
42142         * modules/rename-dest-slash (Makefile.am): Likewise.
42143         * modules/rename (Makefile.am): Likewise.
42144         * modules/rijndael (Makefile.am): Likewise.
42145         * modules/rmdir (Makefile.am): Likewise.
42146         * modules/rpmatch (Makefile.am): Likewise.
42147         * modules/safe-read (Makefile.am): Likewise.
42148         * modules/safe-write (Makefile.am): Likewise.
42149         * modules/same-inode (Makefile.am): Likewise.
42150         * modules/same (Makefile.am): Likewise.
42151         * modules/save-cwd (Makefile.am): Likewise.
42152         * modules/savedir (Makefile.am): Likewise.
42153         * modules/setenv (Makefile.am): Likewise.
42154         * modules/settime (Makefile.am): Likewise.
42155         * modules/sha1 (Makefile.am): Likewise.
42156         * modules/sig2str (Makefile.am): Likewise.
42157         * modules/snprintf (Makefile.am): Likewise.
42158         * modules/stat-macros (Makefile.am): Likewise.
42159         * modules/stat-time (Makefile.am): Likewise.
42160         * modules/stdbool (Makefile.am): Likewise.
42161         * modules/stdint (Makefile.am): Likewise.
42162         * modules/stdlib-safer (Makefile.am): Likewise.
42163         * modules/stpcpy (Makefile.am): Likewise.
42164         * modules/stpncpy (Makefile.am): Likewise.
42165         * modules/strcase (Makefile.am): Likewise.
42166         * modules/strcasestr (Makefile.am): Likewise.
42167         * modules/strchrnul (Makefile.am): Likewise.
42168         * modules/strcspn (Makefile.am): Likewise.
42169         * modules/strdup (Makefile.am): Likewise.
42170         * modules/strerror (Makefile.am): Likewise.
42171         * modules/strftime (Makefile.am): Likewise.
42172         * modules/strndup (Makefile.am): Likewise.
42173         * modules/strnlen (Makefile.am): Likewise.
42174         * modules/strpbrk (Makefile.am): Likewise.
42175         * modules/strsep (Makefile.am): Likewise.
42176         * modules/strstr (Makefile.am): Likewise.
42177         * modules/strtod (Makefile.am): Likewise.
42178         * modules/strtoimax (Makefile.am): Likewise.
42179         * modules/strtok_r (Makefile.am): Likewise.
42180         * modules/strtol (Makefile.am): Likewise.
42181         * modules/strtoll (Makefile.am): Likewise.
42182         * modules/strtoul (Makefile.am): Likewise.
42183         * modules/strtoull (Makefile.am): Likewise.
42184         * modules/strtoumax (Makefile.am): Likewise.
42185         * modules/strverscmp (Makefile.am): Likewise.
42186         * modules/sys_socket (Makefile.am): Likewise.
42187         * modules/sys_stat (Makefile.am): Likewise.
42188         * modules/sysexits (Makefile.am): Likewise.
42189         * modules/time_r (Makefile.am): Likewise.
42190         * modules/timegm (Makefile.am): Likewise.
42191         * modules/timespec (Makefile.am): Likewise.
42192         * modules/tmpfile-safer (Makefile.am): Likewise.
42193         * modules/trim (Makefile.am): Likewise.
42194         * modules/unistd-safer (Makefile.am): Likewise.
42195         * modules/unlinkdir (Makefile.am): Likewise.
42196         * modules/unlocked-io (Makefile.am): Likewise.
42197         * modules/userspec (Makefile.am): Likewise.
42198         * modules/utime (Makefile.am): Likewise.
42199         * modules/utimecmp (Makefile.am): Likewise.
42200         * modules/utimens (Makefile.am): Likewise.
42201         * modules/vasnprintf (Makefile.am): Likewise.
42202         * modules/vasprintf (Makefile.am): Likewise.
42203         * modules/vsnprintf (Makefile.am): Likewise.
42204         * modules/xalloc (Makefile.am): Likewise.
42205         * modules/xgetcwd (Makefile.am): Likewise.
42206         * modules/xnanosleep (Makefile.am): Likewise.
42207         * modules/xreadlink (Makefile.am): Likewise.
42208         * modules/xstrtod (Makefile.am): Likewise.
42209         * modules/xstrtol (Makefile.am): Likewise.
42210         * modules/xstrtold (Makefile.am): Likewise.
42211         * modules/yesno (Makefile.am): Likewise.
42212         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42213
42214 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42215
42216         * modules/error (Makefile.am): Distribute files through
42217         EXTRA_DIST, not lib_SOURCES.
42218
42219 2006-10-12  Eric Blake  <ebb9@byu.net>
42220
42221         * modules/error (Makefile.am): Distribute files in /lib.
42222         * modules/obstack (Makefile.am): Likewise.
42223
42224 2006-10-12  Bruno Haible  <bruno@clisp.org>
42225
42226         * modules/acl (Makefile.am): Distribute all files in lib/ through
42227         EXTRA_DIST.
42228         * modules/arcfour (Makefile.am): Likewise.
42229         * modules/arctwo (Makefile.am): Likewise.
42230         * modules/argmatch (Makefile.am): Likewise.
42231         * modules/argz (Makefile.am): Likewise.
42232         * modules/atexit (Makefile.am): Likewise.
42233         * modules/backupfile (Makefile.am): Likewise.
42234         * modules/c-strtod (Makefile.am): Likewise.
42235         * modules/c-strtold (Makefile.am): Likewise.
42236         * modules/calloc (Makefile.am): Likewise.
42237         * modules/canon-host (Makefile.am): Likewise.
42238         * modules/canonicalize (Makefile.am): Likewise.
42239         * modules/chdir-long (Makefile.am): Likewise.
42240         * modules/chdir-safer (Makefile.am): Likewise.
42241         * modules/check-version (Makefile.am): Likewise.
42242         * modules/chown (Makefile.am): Likewise.
42243         * modules/cloexec (Makefile.am): Likewise.
42244         * modules/close-stream (Makefile.am): Likewise.
42245         * modules/closeout (Makefile.am): Likewise.
42246         * modules/crc (Makefile.am): Likewise.
42247         * modules/cycle-check (Makefile.am): Likewise.
42248         * modules/des (Makefile.am): Likewise.
42249         * modules/dirfd (Makefile.am): Likewise.
42250         * modules/dirname (Makefile.am): Likewise.
42251         * modules/dup2 (Makefile.am): Likewise.
42252         * modules/euidaccess (Makefile.am): Likewise.
42253         * modules/exclude (Makefile.am): Likewise.
42254         * modules/exitfail (Makefile.am): Likewise.
42255         * modules/fcntl-safer (Makefile.am): Likewise.
42256         * modules/file-type (Makefile.am): Likewise.
42257         * modules/fileblocks (Makefile.am): Likewise.
42258         * modules/filemode (Makefile.am): Likewise.
42259         * modules/filenamecat (Makefile.am): Likewise.
42260         * modules/fnmatch (Makefile.am): Likewise.
42261         * modules/fopen-safer (Makefile.am): Likewise.
42262         * modules/fpending (Makefile.am): Likewise.
42263         * modules/fprintftime (Makefile.am): Likewise.
42264         * modules/free (Makefile.am): Likewise.
42265         * modules/fsusage (Makefile.am): Likewise.
42266         * modules/ftruncate (Makefile.am): Likewise.
42267         * modules/fts (Makefile.am): Likewise.
42268         * modules/gc (Makefile.am): Likewise.
42269         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42270         * modules/getaddrinfo (Makefile.am): Likewise.
42271         * modules/getcwd (Makefile.am): Likewise.
42272         * modules/getdelim (Makefile.am): Likewise.
42273         * modules/getdomainname (Makefile.am): Likewise.
42274         * modules/getgroups (Makefile.am): Likewise.
42275         * modules/gethostname (Makefile.am): Likewise.
42276         * modules/gethrxtime (Makefile.am): Likewise.
42277         * modules/getline (Makefile.am): Likewise.
42278         * modules/getloadavg (Makefile.am): Likewise.
42279         * modules/getlogin_r (Makefile.am): Likewise.
42280         * modules/getopt (Makefile.am): Likewise.
42281         * modules/getpass (Makefile.am): Likewise.
42282         * modules/getpass-gnu (Makefile.am): Likewise.
42283         * modules/getsubopt (Makefile.am): Likewise.
42284         * modules/gettime (Makefile.am): Likewise.
42285         * modules/gettimeofday (Makefile.am): Likewise.
42286         * modules/getugroups (Makefile.am): Likewise.
42287         * modules/getusershell (Makefile.am): Likewise.
42288         * modules/glob (Makefile.am): Likewise.
42289         * modules/group-member (Makefile.am): Likewise.
42290         * modules/hard-locale (Makefile.am): Likewise.
42291         * modules/hash (Makefile.am): Likewise.
42292         * modules/hmac-md5 (Makefile.am): Likewise.
42293         * modules/hmac-sha1 (Makefile.am): Likewise.
42294         * modules/human (Makefile.am): Likewise.
42295         * modules/idcache (Makefile.am): Likewise.
42296         * modules/imaxabs (Makefile.am): Likewise.
42297         * modules/imaxdiv (Makefile.am): Likewise.
42298         * modules/inet_ntop (Makefile.am): Likewise.
42299         * modules/inet_pton (Makefile.am): Likewise.
42300         * modules/inttostr (Makefile.am): Likewise.
42301         * modules/isapipe (Makefile.am): Likewise.
42302         * modules/lchown (Makefile.am): Likewise.
42303         * modules/long-options (Makefile.am): Likewise.
42304         * modules/lstat (Makefile.am): Likewise.
42305         * modules/malloc (Makefile.am): Likewise.
42306         * modules/mathl (Makefile.am): Likewise.
42307         * modules/mbchar (Makefile.am): Likewise.
42308         * modules/md2 (Makefile.am): Likewise.
42309         * modules/md4 (Makefile.am): Likewise.
42310         * modules/md5 (Makefile.am): Likewise.
42311         * modules/memcasecmp (Makefile.am): Likewise.
42312         * modules/memchr (Makefile.am): Likewise.
42313         * modules/memcmp (Makefile.am): Likewise.
42314         * modules/memcoll (Makefile.am): Likewise.
42315         * modules/memcpy (Makefile.am): Likewise.
42316         * modules/memmem (Makefile.am): Likewise.
42317         * modules/memmove (Makefile.am): Likewise.
42318         * modules/mempcpy (Makefile.am): Likewise.
42319         * modules/memrchr (Makefile.am): Likewise.
42320         * modules/memset (Makefile.am): Likewise.
42321         * modules/memxor (Makefile.am): Likewise.
42322         * modules/mkancesdirs (Makefile.am): Likewise.
42323         * modules/mkdir (Makefile.am): Likewise.
42324         * modules/mkdir-p (Makefile.am): Likewise.
42325         * modules/mkdtemp (Makefile.am): Likewise.
42326         * modules/mkstemp (Makefile.am): Likewise.
42327         * modules/mktime (Makefile.am): Likewise.
42328         * modules/modechange (Makefile.am): Likewise.
42329         * modules/mountlist (Makefile.am): Likewise.
42330         * modules/nanosleep (Makefile.am): Likewise.
42331         * modules/openat (Makefile.am): Likewise.
42332         * modules/pagealign_alloc (Makefile.am): Likewise.
42333         * modules/physmem (Makefile.am): Likewise.
42334         * modules/poll (Makefile.am): Likewise.
42335         * modules/posixtm (Makefile.am): Likewise.
42336         * modules/posixver (Makefile.am): Likewise.
42337         * modules/putenv (Makefile.am): Likewise.
42338         * modules/quote (Makefile.am): Likewise.
42339         * modules/quotearg (Makefile.am): Likewise.
42340         * modules/raise (Makefile.am): Likewise.
42341         * modules/read-file (Makefile.am): Likewise.
42342         * modules/readline (Makefile.am): Likewise.
42343         * modules/readlink (Makefile.am): Likewise.
42344         * modules/readtokens (Makefile.am): Likewise.
42345         * modules/readutmp (Makefile.am): Likewise.
42346         * modules/realloc (Makefile.am): Likewise.
42347         * modules/regex (Makefile.am): Likewise.
42348         * modules/rename (Makefile.am): Likewise.
42349         * modules/rename-dest-slash (Makefile.am): Likewise.
42350         * modules/rijndael (Makefile.am): Likewise.
42351         * modules/rmdir (Makefile.am): Likewise.
42352         * modules/rpmatch (Makefile.am): Likewise.
42353         * modules/safe-read (Makefile.am): Likewise.
42354         * modules/safe-write (Makefile.am): Likewise.
42355         * modules/same (Makefile.am): Likewise.
42356         * modules/save-cwd (Makefile.am): Likewise.
42357         * modules/savedir (Makefile.am): Likewise.
42358         * modules/setenv (Makefile.am): Likewise.
42359         * modules/settime (Makefile.am): Likewise.
42360         * modules/sha1 (Makefile.am): Likewise.
42361         * modules/sig2str (Makefile.am): Likewise.
42362         * modules/snprintf (Makefile.am): Likewise.
42363         * modules/stdlib-safer (Makefile.am): Likewise.
42364         * modules/stpcpy (Makefile.am): Likewise.
42365         * modules/stpncpy (Makefile.am): Likewise.
42366         * modules/strcase (Makefile.am): Likewise.
42367         * modules/strcasestr (Makefile.am): Likewise.
42368         * modules/strchrnul (Makefile.am): Likewise.
42369         * modules/strcspn (Makefile.am): Likewise.
42370         * modules/strdup (Makefile.am): Likewise.
42371         * modules/strerror (Makefile.am): Likewise.
42372         * modules/strftime (Makefile.am): Likewise.
42373         * modules/strndup (Makefile.am): Likewise.
42374         * modules/strnlen (Makefile.am): Likewise.
42375         * modules/strpbrk (Makefile.am): Likewise.
42376         * modules/strsep (Makefile.am): Likewise.
42377         * modules/strstr (Makefile.am): Likewise.
42378         * modules/strtod (Makefile.am): Likewise.
42379         * modules/strtoimax (Makefile.am): Likewise.
42380         * modules/strtok_r (Makefile.am): Likewise.
42381         * modules/strtol (Makefile.am): Likewise.
42382         * modules/strtoll (Makefile.am): Likewise.
42383         * modules/strtoul (Makefile.am): Likewise.
42384         * modules/strtoull (Makefile.am): Likewise.
42385         * modules/strtoumax (Makefile.am): Likewise.
42386         * modules/strverscmp (Makefile.am): Likewise.
42387         * modules/time_r (Makefile.am): Likewise.
42388         * modules/timegm (Makefile.am): Likewise.
42389         * modules/tmpfile-safer (Makefile.am): Likewise.
42390         * modules/unistd-safer (Makefile.am): Likewise.
42391         * modules/unlinkdir (Makefile.am): Likewise.
42392         * modules/userspec (Makefile.am): Likewise.
42393         * modules/utime (Makefile.am): Likewise.
42394         * modules/utimecmp (Makefile.am): Likewise.
42395         * modules/utimens (Makefile.am): Likewise.
42396         * modules/vasnprintf (Makefile.am): Likewise.
42397         * modules/vasprintf (Makefile.am): Likewise.
42398         * modules/vsnprintf (Makefile.am): Likewise.
42399         * modules/xalloc (Makefile.am): Likewise.
42400         * modules/xgetcwd (Makefile.am): Likewise.
42401         * modules/xnanosleep (Makefile.am): Likewise.
42402         * modules/xreadlink (Makefile.am): Likewise.
42403         * modules/xstrtod (Makefile.am): Likewise.
42404         * modules/xstrtol (Makefile.am): Likewise.
42405         * modules/xstrtold (Makefile.am): Likewise.
42406         * modules/yesno (Makefile.am): Likewise.
42407
42408 2006-10-12  Jim Meyering  <jim@meyering.net>
42409
42410         * m4/getloadavg.m4: Revert the change below.
42411
42412         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42413         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42414         fail with a symlink, which is what coreutils' ./bootstrap now
42415         creates by default.
42416
42417 2006-10-12  Bruno Haible  <bruno@clisp.org>
42418
42419         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42420         mingw.
42421         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42422         MSVC and mingw explicitly.
42423
42424 2006-10-11  Simon Josefsson  <jas@extundo.com>
42425             Bruno Haible  <bruno@clisp.org>
42426
42427         Add support for multiple gnulib-tool invocations in the scope of a
42428         single configure.ac file.
42429         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42430         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42431         with the same contents as the _LIBADD variable.
42432         (func_emit_initmacro_start, func_emit_initmacro_end,
42433         func_emit_initmacro_done): New functions.
42434         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42435         gl_LIBOBJS and gl_LTLIBOBJS.
42436
42437 2006-10-11  Bruno Haible  <bruno@clisp.org>
42438
42439         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42440         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42441         autoreconf. Instead, invoke autopoint explicitly but move back the
42442         *.m4 files from gnulib.
42443
42444 2006-10-11  Bruno Haible  <bruno@clisp.org>
42445
42446         * gnulib-tool (func_usage): Make module names after --create-testdir
42447         optional.
42448         (func_create_testdir): If no module was specified, use nearly all
42449         modules.
42450
42451 2006-10-12  Jim Meyering  <jim@meyering.net>
42452
42453         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42454         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42455         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42456         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42457         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42458         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42459         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42460         (fts_set_stat_required): New function.
42461         (fts_open): Defer the calls to fts_stat, if possible or requested.
42462         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42463         into fts_stat itself.
42464         (fts_read): Perform any required (deferred) fts_stat call.
42465         (fts_build): Likewise, for the directory we're about to open and read.
42466         In the readdir loop, carefully decide whether each entry will require
42467         an eventual call to fts_stat, using dirent.d_type info if available.
42468         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42469         a command line argument into this function.  Update all callers.
42470         Map a return value of FTS_DOT to FTS_D for a command line argument.
42471         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42472         Thanks to Miklos Szeredi for his tenacity and for the initial
42473         bug report about "find" failing on a FUSE-based file system.
42474
42475         * lib/fts.c (fts_open): Use consistent indentation.
42476
42477 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42480         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42481         reported by Jim Meyering.  All uses of cache variables renamed
42482         to match Autoconf's.
42483         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42484         the other one.
42485
42486         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42487         Fix misspelling in diagnostic.
42488
42489 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42490
42491         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42492         defined.  Problem reported by Matthew Woehlke.
42493
42494         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42495         Add support for Tandem NonStop R series.
42496         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42497         Use new macro.
42498
42499         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42500         (has_trailing_slash): Omit size arg; all callers changed.
42501         Omit 'inline', since it doesn't help performance and we'd
42502         need to configure it.
42503         Don't count //, ///, etc. as having a trailing slash.
42504         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42505         (rpl_rename_dest_slash): On failure, use rename's errno rather
42506         than (in some cases) an incorrect or junk errno.
42507         Simplify code by removing need to compute length; this does
42508         cause it to make two passes instead of one over the file name,
42509         but it's worth it.
42510
42511         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42512         change, since Autoconf's version may no longer be appropriate now
42513         that we are using CVS Autoconf's version.  Add support for Tandem.
42514
42515 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42516             Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42519         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42520         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42521         gl_AC_TYPE_LONG_LONG.
42522
42523         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42524         instead of HAVE_LONG_LONG.
42525         * lib/printf-args.c (printf_fetchargs): Likewise.
42526         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42527         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42528         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42529         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42530         gl_AC_TYPE_LONG_LONG.
42531
42532 2006-10-11  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/longlong.m4: Add comments.
42535         * m4/ulonglong.m4: Likewise.
42536
42537 2006-10-10  Bruno Haible  <bruno@clisp.org>
42538
42539         Make it possible to #define stpcpy, strdup to aliases.
42540         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42541         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42542
42543 2006-10-10  Bruno Haible  <bruno@clisp.org>
42544
42545         Make it possible to #define gcd to an alias.
42546         * lib/gcd.c: Include config.h.
42547
42548 2006-10-10  Bruno Haible  <bruno@clisp.org>
42549
42550         Make it possible to #define c_isascii to an alias.
42551         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42552         defined. Undefine the macros before defining them, to avoid gcc
42553         warnings.
42554         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42555         define NO_C_CTYPE_MACROS early.
42556
42557 2006-10-10  Bruno Haible  <bruno@clisp.org>
42558
42559         Make it possible to #define set_program_name to an alias.
42560         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42561         ENABLE_RELOCATABLE early.
42562
42563 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42564
42565         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42566         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42567         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42568         More generally, don't assume that 64-bit signed int is available
42569         if unsigned int is, and vice versa.
42570         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42571         unsigned symbols, not on their signed counterparts.
42572         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42573         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42574         (UINT64_C, UINTMAX_C):
42575         Likewise.
42576         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42577         unsigned counterparts.
42578         (Have_long_long, Unsigned): New macros.
42579         (Int): Renamed from INT.
42580         (strtoimax): Use the new macros.
42581         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42582         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42583         * modules/inttypes (inttypes.h): Substitute
42584         HAVE_UNSIGNED_LONG_LONG_INT.
42585         * modules/stdint (stdint.h): Likewise.
42586         (Files): Add m4/ulonglong.m4.
42587
42588 2006-10-10  Bruno Haible  <bruno@clisp.org>
42589
42590         Fix a gcc -Wshadow warning.
42591         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42592         to 'bucket'.
42593         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42594         gl_linked_indexof_from_to): Likewise.
42595         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42596         Likewise.
42597         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42598         Likewise.
42599         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42600         Reported by Eric Blake.
42601
42602 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42605         for NetBSD.  Problem reported by Bruno Haible.
42606
42607 2006-10-09  Jim Meyering  <jim@meyering.net>
42608
42609         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42610         Patch from Bruno Haible.
42611
42612 2006-10-09  Jim Meyering  <jim@meyering.net>
42613
42614         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42615         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42616         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42617
42618 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42619
42620         Don't include <config.h> twice; this doesn't work in some cases,
42621         e.g., when config.h has "#define intmax_t long long int" and
42622         we include <config.h>, <inttypes.h>, <config.h> in that order.
42623         Problem reported by Matthew Woehlke in:
42624         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42625         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42626         * lib/fts-cycle.c: Don't include config.h.
42627         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42628         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42629         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42630         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42631         inttypes.h.
42632         * lib/xstrtoumax.c: Likewise.
42633         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42634         __strtol and the like, so that this module is more like its siblings.
42635         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42636         Remove; no longer needed now that we assume gnulib inttypes.h.
42637
42638 2006-10-08  Bruno Haible  <bruno@clisp.org>
42639
42640         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42641         option.
42642
42643 2006-10-07  Jim Meyering  <jim@meyering.net>
42644
42645         * modules/inttypes (inttypes.h): Revert what seems to have been
42646         an inadvertent part of today's change: use "|", not "/" in the
42647         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42648
42649 2006-10-07  Bruno Haible  <bruno@clisp.org>
42650
42651         * modules/sublist: New file.
42652
42653 2006-10-07  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42656         * modules/argz (argz.h): Likewise.
42657         * modules/arpa_inet (arpa/inet.h): Likewise.
42658         * modules/byteswap (byteswap.h): Likewise.
42659         * modules/configmake (configmake.h): Likewise.
42660         * modules/fcntl (fcntl.h): Likewise.
42661         * modules/fnmatch (fnmatch.h): Likewise.
42662         * modules/getopt (getopt.h): Likewise.
42663         * modules/glob (glob.h): Likewise.
42664         * modules/inttypes (inttypes.h): Likewise.
42665         * modules/netinet_in (netinet/in.h): Likewise.
42666         * modules/poll (poll.h): Likewise.
42667         * modules/stdbool (stdbool.h): Likewise.
42668         * modules/stdint (stdint.h): Likewise.
42669         * modules/sys_select (sys/select.h): Likewise.
42670         * modules/sys_socket (sys/socket.h): Likewise.
42671         * modules/sys_stat (sys/stat.h): Likewise.
42672         * modules/sysexits (sysexits.h): Likewise.
42673         * modules/unistd (unistd.h): Likewise.
42674         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42675         Add a "DO NOT EDIT" comment to the generated file.
42676         (func_import): Likewise for gnulib-comp.m4.
42677
42678 2006-10-07  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/gl_sublist.h: New file.
42681         * lib/gl_sublist.c: New file.
42682
42683 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42684
42685         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42686         name (relative to the original working directory) and the file
42687         name component (relative to the temporary working directory).  All
42688         callers changed.
42689         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42690         * lib/mkdir-p.c (make_dir_parents): Likewise.
42691         * lib/mkdir-p.h (make_dir_parents): Likewise.
42692
42693 2006-10-06  Eric Blake  <ebb9@byu.net>
42694
42695         Define several macros for use by the clean-temp module.
42696         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42697         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42698         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42699
42700         * lib/clean-temp.h (close_stream_temp): New declaration.
42701         * lib/clean-temp.c (includes): Pull in headers according to what
42702         other modules are in use.
42703         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42704
42705 2006-10-06  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42708         instead of fopen, fwriteerror.
42709
42710 2006-10-06  Bruno Haible  <bruno@clisp.org>
42711
42712         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42713         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42714         int.
42715         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42716         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42717         Return an error indicator.
42718         Suggested by Eric Blake.
42719
42720 2006-10-06  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42723         Reported by Eric Blake.
42724
42725 2006-10-06  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/closeout (Description): Mention stderr too.
42728
42729 2006-10-06  Bruno Haible  <bruno@clisp.org>
42730         and Paul Eggert  <eggert@cs.ucla.edu>
42731
42732         * lib/closeout.c (close_stdout): Also close stderr.
42733         * lib/closeout.h: Update comment.
42734
42735 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42736
42737         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42738         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42739         * lib/dirchownmod.c: Include lchown.h.
42740         * lib/lchown.c: Don't include files that lchown.h now includes.
42741         Don't declare chown, since lchown.h now does that.
42742         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42743         (lchown): Define to rpl_chown if lchown is declared but
42744         does not exist.  Declare using a prototype if lchown is not
42745         declared.  Add a copyright notice.
42746         * lib/mkstemp.h: Include <unistd.h>.
42747         * lib/openat.c: Include lchown.h.
42748
42749         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42750         we now test for that separately.
42751         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42752         rather than O_NOFOLLOW, when testing whether it's possible to
42753         avoid a race condition reliably.
42754         * lib/savewd.c (savewd_chdir): Likewise.
42755
42756         Remove macros that are no longer needed now that stdint.h is
42757         reliable.
42758         * lib/fsusage.c (UINTMAX_MAX): Remove.
42759         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42760         * lib/utimecmp.c (SIZE_MAX): Remove.
42761
42762         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42763
42764         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42765         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42766         O_NOATIME works.
42767
42768 2006-10-05  Bruno Haible  <bruno@clisp.org>
42769
42770         * lib/gl_list.h (gl_sortedlist_search_from_to,
42771         gl_sortedlist_indexof_from_to): New declarations.
42772         (gl_list_implementation): New fields sortedlist_search_from_to,
42773         sortedlist_indexof_from_to.
42774         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42775         inline functions.
42776         * lib/gl_list.c (gl_sortedlist_search_from_to,
42777         gl_sortedlist_indexof_from_to): New functions.
42778         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42779         function.
42780         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42781         (gl_array_sortedlist_search_from_to): New function.
42782         (gl_array_list_implementation): Update.
42783         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42784         function.
42785         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42786         (gl_carray_sortedlist_search_from_to): New function.
42787         (gl_carray_list_implementation): Update.
42788         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42789         gl_linked_sortedlist_indexof_from_to): New functions.
42790         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42791         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42792         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42793         gl_tree_sortedlist_indexof_from_to): New functions.
42794         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42795         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42796         Update.
42797         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42798         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42799         Update.
42800
42801 2006-10-05  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42804         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42805         (struct gl_list_implementation): Add fields search_from_to,
42806         indexof_from_to. Remove fields search, indexof.
42807         (gl_list_search): Use the search_from_to method.
42808         (gl_list_search_from, gl_list_search_from_to): New functions.
42809         (gl_list_indexof): Use the indexof_from_to method.
42810         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42811         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42812         (gl_list_search_from, gl_list_search_from_to): New functions.
42813         (gl_list_indexof): Use the indexof_from_to method.
42814         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42815         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42816         gl_array_indexof. Add start_index, end_index arguments.
42817         (gl_array_search_from_to): Renamed from gl_array_search. Add
42818         start_index, end_index arguments.
42819         (gl_array_remove, gl_array_list_implementation): Update.
42820         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42821         gl_carray_indexof. Add start_index, end_index arguments.
42822         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42823         start_index, end_index arguments.
42824         (gl_carray_remove, gl_carray_list_implementation): Update.
42825         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42826         gl_linked_search. Add start_index, end_index arguments.
42827         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42828         start_index, end_index arguments.
42829         (gl_linked_remove): Update.
42830         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42831         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42832         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42833         field to 'size_t'.
42834         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42835         gl_tree_search. Add start_index, end_index arguments.
42836         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42837         start_index, end_index arguments.
42838         (gl_tree_remove): Update.
42839         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42840         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42841         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42842         function.
42843         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42844         gl_tree_search. Add start_index, end_index arguments.
42845         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42846         start_index, end_index arguments.
42847         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42848         Update.
42849         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42850
42851 2006-10-05  Bruno Haible  <bruno@clisp.org>
42852
42853         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42854
42855         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42856         fwriteerror_temp): New declarations.
42857         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42858         (descriptors): New variable.
42859         (cleanup): First, close the descriptors.
42860         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42861         fclose_temp, fwriteerror_temp): New functions.
42862
42863 2006-10-04  Jim Meyering  <jim@meyering.net>
42864
42865         * lib/fts.c (fts_open): Tiny comment change.
42866
42867 2006-10-04  Bruno Haible  <bruno@clisp.org>
42868
42869         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42870         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42871         gl_LOCK_BODY.
42872         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42873         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42874         gl_LOCK_EARLY_BODY.
42875         (gl_LOCK): Require gl_LOCK_BODY.
42876
42877 2006-10-04  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42880         (gl_oset_search_atleast): New declaration.
42881         (struct gl_oset_implementation): Add field 'search_atleast'.
42882         (gl_oset_search_atleast): New inline function.
42883         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42884         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42885         (gl_array_oset_implementation): Update.
42886         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42887         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42888         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42889
42890 2006-10-04  Bruno Haible  <bruno@clisp.org>
42891
42892         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42893
42894 2006-10-03  Bruno Haible  <bruno@clisp.org>
42895
42896         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42897         from gl_avltreehash_list_implementation.
42898
42899 2006-10-03  Bruno Haible  <bruno@clisp.org>
42900
42901         * lib/gl_oset.c (gl_oset_add): Fix return type.
42902
42903 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42904
42905         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42906
42907 2006-10-02  Eric Blake  <ebb9@byu.net>
42908
42909         * modules/strnlen (Depends-on): Add extensions.
42910
42911 2006-10-02  Eric Blake  <ebb9@byu.net>
42912
42913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42914         definition in 2.60+.
42915
42916 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42917
42918         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42919         checks.
42920
42921 2006-10-02  Bruno Haible  <bruno@clisp.org>
42922
42923         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42924         to the AUTOMAKE_OPTIONS.
42925         Reported by Jim Meyering.
42926
42927 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42928
42929         Work around bug in Solaris 10 /proc file system:
42930         /proc/self/fd/NNN/.. isn't the parent directory of
42931         the directory whose file descriptor is NNN.  This needs to
42932         be worked around at run time, not compile time, since a
42933         program might be built on Solaris 8, where things work, and
42934         run on Solaris 10.
42935         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42936         to use the following interface instead:
42937         (OPENAT_BUFFER_SIZE): New macro.
42938         (openat_proc_name): New function.
42939         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42940         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42941         Likewise.
42942         * lib/openat-proc.c: New file.
42943         * modules/openat (Files): Add lib/openat-proc.c.
42944         (Depends-on): Add same-inode, stdbool.
42945         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42946
42947 2006-09-29  Bruno Haible  <bruno@clisp.org>
42948
42949         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42950         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42951         argument. Set stdout_closed before testing for ferror, not after.
42952         (fwriteerror, fwriteerror_no_ebadf): New functions.
42953
42954 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42955
42956         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42957
42958 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42959
42960         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42961         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42962
42963 2006-09-28  Jim Meyering  <jim@meyering.net>
42964
42965         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42966         Include <unistd.h>.
42967
42968 2006-09-28  Bruno Haible  <bruno@clisp.org>
42969
42970         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42971         * modules/linkedhash-list (Depends-on): Likewise.
42972         * modules/rbtreehash-list (Depends-on): Likewise.
42973
42974 2006-09-28  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/strndup.h: Simplify the redefinition of strndup.
42977         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42979
42980 2006-09-28  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42983         * lib/gl_linkedhash_list.c: Likewise.
42984         * lib/gl_rbtreehash_list.c: Likewise.
42985
42986 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42987
42988         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42989         getaddrinfo.
42990
42991         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42992         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42993         it causes <stdio_ext.h> to cause a compile-time error.
42994         Problem reported by Nelson H. F. Beebe.
42995         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42996         of HAVE_DECL___PENDING.
42997
42998         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42999         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43000         declaration.
43001
43002 2006-09-27  Jim Meyering  <jim@meyering.net>
43003
43004         This file could end up with a definition for a function
43005         named __strndup, rather than rpl_strndup on a system with
43006         incomplete weak_alias support.
43007         * lib/strndup.c (strndup): Rename from __strndup.
43008         Remove #defines that used to map __strndup to strndup.
43009         Don't use K&R prototypes.
43010         Remove LIBC-related code, since this file is not sync'd with glibc.
43011         * lib/strndup.h: Revamp, accordingly.
43012         * m4/strndup.m4: Modernize.
43013
43014 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43015
43016         * modules/savewd (Depends-on): Add 'raise'.
43017         * lib/savewd.c: Include <signal.h>, for 'raise'.
43018
43019 2006-09-26  Jim Meyering  <jim@meyering.net>
43020
43021         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43022         when we detect Darwin 8.7.0's acl_get_file bug.
43023         Rearrange to perform the new (below) run-test while $LIBS
43024         contains any acl-related library.  Set USE_ACL at the end.
43025         (gl_ACL_GET_FILE): New function.
43026
43027 2006-09-26  Eric Blake  <ebb9@byu.net>
43028
43029         * lib/verror.c: Include <config.h> unconditionally.
43030
43031 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43032
43033         * modules/clock-time (Maintainer): Add self.
43034         * modules/getlogin_r (Depends-on): Add extensions.
43035
43036 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43037
43038         * modules/clock-time: New module.
43039         * modules/nanosleep (Depends-on): Add clock-time.
43040         * modules/gethrxtime (Depends-on): Likewise.
43041         * modules/gettime (Depends-on): Likewise.
43042         * modules/settime (Depends-on): Likewise.
43043
43044         * modules/fts-lgpl: Depend on openat.
43045         * modules/mkancesdirs: Depend on savewd.
43046         * modules/mkdir-p: Likewise.
43047
43048 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43049
43050         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43051
43052         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43053         `gl_have_arbitrary_file_name_length_limit' to
43054         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43055         actually works between configure runs.
43056
43057 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43058             Bruno Haible  <bruno@clisp.org>
43059
43060         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43061
43062 2006-09-25  Jim Meyering  <jim@meyering.net>
43063
43064         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43065         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43066
43067 2006-09-25  Eric Blake  <ebb9@byu.net>
43068
43069         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43070         exec's in 2006-09-18 patch when shuffling fds.
43071
43072 2006-09-25  Bruno Haible  <bruno@clisp.org>
43073
43074         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43075         Reported by Jim Meyering.
43076
43077 2006-09-24  Jim Meyering  <jim@meyering.net>
43078
43079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43080         compare a pointer against a literal "0".  That caused failures with
43081         at least HP-UX's hpcc.
43082
43083 2006-09-22  Simon Josefsson  <jas@extundo.com>
43084
43085         * modules/gc-sha1:
43086         * modules/gc-md4:
43087         * modules/gc-hmac-sha1:
43088         * modules/gc-hmac-md5:
43089         * modules/gc-des:
43090         * modules/gc-arcfour: Distribute more files.
43091
43092 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43093
43094         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43095         (gl_linked_iterator_from_to): Initialize struct completely.
43096         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43097         (gl_tree_iterator_from_to): Likewise
43098         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43099         * lib/gl_array_list.c [lint] (gl_array_iterator)
43100         (gl_array_iterator_from_to): Likewise.
43101         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43102         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43103         (gl_carray_iterator_from_to): Likewise.
43104
43105         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43106         * lib/md4.c (md4_process_block): Remove unused variable.
43107         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43108         parentheses for clarity.
43109
43110 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43111
43112         * modules/bison-i18n (Depends-on): Add gettext.
43113
43114 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43115
43116         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43117         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43118         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43119         also add missing comma that caused broken test.
43120         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43121         stdlib.h, for `abort'.
43122         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43123         variables.
43124         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43125         include unistd.h if present, for `rmdir'.
43126         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43127         variables.
43128         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43129         in the process include standard headers for prototypes.
43130         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43131         gets declared on GNU/Linux.
43132         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43133         unistd.h, for `rmdir'.
43134         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43135
43136         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43137         always true.
43138         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43139
43140         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43141
43142 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43143
43144         * gnulib-tool (func_version): Create output all at once.  This
43145         may help avoid triggering unnecessary SIGPIPEs, and at any
43146         rate it doesn't hurt.
43147
43148 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43149             Bruno Haible  <bruno@clisp.org>
43150
43151         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43152         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43153         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43154
43155         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43156         (gl_FUNC_VASPRINTF): Invoke it.
43157
43158 2006-09-22  Bruno Haible  <bruno@clisp.org>
43159
43160         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43161         getloadavg.c as first argument.
43162
43163 2006-09-22  Bruno Haible  <bruno@clisp.org>
43164
43165         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43166         at the beginning of the gl_INIT macro.
43167         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43168         gl_GETLOADAVG.
43169
43170 2006-09-22  Bruno Haible  <bruno@clisp.org>
43171
43172         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43173         module.
43174         Suggested by Ralf Wildenhues.
43175
43176 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43177
43178         Import this patch from libc:
43179
43180         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43181
43182         * lib/regex_internal.c (re_string_reconstruct): Handle
43183         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43184         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43185         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43186         re_string_context_at.
43187
43188         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43189         now requires it.
43190         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43191         gl_REGEX now does it for us.
43192         (gl_REGEX): Add test taken from
43193         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43194
43195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43196         Check that large offsets work.  Modernize Autoconf usages.
43197         Prefer "yes" to mean a good thing rather than a bad.
43198         Don't put "#define mkstemp" in config.h, as this might interfere
43199         with standard system headers that "#define mkstemp mkstemp64".
43200
43201         * modules/mkstemp (Depends-on): Add extensions, so that
43202         mkstemp is visible on some platforms.
43203         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43204         (Include): Change to "mkstemp.h" from <stdlib.h>.
43205         (Files): Add mkstemp.h.
43206
43207         * lib/mkstemp.h: New file, since some standard headers
43208         #define mkstemp.
43209         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43210         Include "mkstemp.h".
43211         Make the _LIBC code resemble glibc original more,
43212         e.g., use K&R style.
43213         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43214         (mkstemp): Remove, since mkstemp.h does this for us.
43215         * lib/stdlib--.h: Include mkstemp.h.
43216
43217         Import this patch from libc:
43218
43219         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43220
43221         * lib/tempname.c (__gen_tempname): Change attempts_min
43222         into a macro.  Use preprocessor to decide how to initialize
43223         attempts [Coverity CID 67].
43224
43225 2006-09-20  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/mkdtemp.c: Import from libc.
43228         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43229                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43230                 attempts_min into a macro.  Use preprocessor to decide how to
43231                 initialize attempts [Coverity CID 67].
43232         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43233                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43234                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43235
43236 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43237
43238         * gnulib-tool (func_exit): New function, to allow to pass the
43239         exit status portably through the trap.  Use everywhere.
43240         (--help, --version): Signal a write error.
43241         (trap): catch SIGPIPE, for write errors.
43242         Exit at the end of the trap, with the correct exit status.
43243
43244 2006-09-19  Karl Berry  <karl@gnu.org>
43245
43246         * doc/gnulib.texi: note about the license texinfo files.
43247
43248 2006-09-19  Eric Blake  <ebb9@byu.net>
43249
43250         * gnulib-tool: Avoid space-tab.
43251
43252 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43253
43254         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43255         that prevented coreutils 6.1 from building.  Problem reported
43256         by Petter Reinholdtsen.
43257
43258 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43259
43260         * gnulib-tool (avoidlist): Fix typo that broke options like
43261         --avoid=lock that are used by coreutils bootstrap.
43262
43263 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43264
43265         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43266         more systematically.
43267
43268 2006-09-18  Jim Meyering  <jim@meyering.net>
43269
43270         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43271
43272 2006-09-18  Bruno Haible  <bruno@clisp.org>
43273
43274         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43275
43276 2006-09-18  Bruno Haible  <bruno@clisp.org>
43277
43278         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43279         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43280         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43281         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43282         * m4/gettext.m4: Require autoconf >= 2.52.
43283         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43284         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43285         of gl_cv_header_inttypes_h.
43286
43287 2006-09-18  Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/javaversion.c: Include configmake.h.
43290
43291 2006-09-18  Bruno Haible  <bruno@clisp.org>
43292
43293         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43294         avoid that the while loops be executed in a subshell.
43295
43296 2006-09-18  Bruno Haible  <bruno@clisp.org>
43297
43298         * MODULES.html.sh (func_module): Break long lines.
43299         Suggested by Bruce Korb <bkorb@gnu.org>.
43300
43301 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43302
43303         Speed up by a factor of 1.12.
43304         * gnulib-tool (nl): New variable.
43305         (func_import): Rewrite include directive extraction to only read each
43306         directive once.
43307
43308 2006-09-17  Bruno Haible  <bruno@clisp.org>
43309
43310         * modules/javaversion (Makefile.am): Remove DEFS setting.
43311         (Depends-on): Add configmake, for PKGDATADIR definition.
43312
43313 2006-09-17  Bruno Haible  <bruno@clisp.org>
43314
43315         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43316
43317 2006-09-17  Bruno Haible  <bruno@clisp.org>
43318
43319         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43320         (func_modules_transitive_closure, func_modules_add_dummy,
43321         func_modules_to_filelist, func_import, func_create_testdir,
43322         func_create_megatestdir, ...): Use it wherever possible.
43323         Suggested by Ralf Wildenhues.
43324
43325 2006-09-16  Karl Berry  <karl@gnu.org>
43326
43327         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43328         to avoid sectioning errors.
43329         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43330         [ifinfo]: blank line after @center-ed titles.
43331         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43332         Spell FSF address consistently with others.
43333         (These changes approved by rms.)
43334
43335 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43336
43337         Speed up by a factor of 1.61.
43338         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43339         already checked module names again.
43340
43341 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43342
43343         Speed up by a factor of 1.13.
43344         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43345         for new_files, and the input to func_add_or_update.
43346
43347 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43348
43349         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43350         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43351
43352 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43353
43354         * modules/mkancesdirs (Depends-on): Add fcntl.
43355         * modules/savewd: New file.
43356         * MODULES.html.sh (File system functions): Add savewd.
43357
43358         * modules/configmake (Makefile.am): Add support for the
43359         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43360
43361 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43362
43363         * m4/savewd.m4: New file.
43364
43365 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43366
43367         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43368         (dirchownmod): New arg FD.  All callers changed.
43369         Use FD rather than opening the directory ourself, as opening is
43370         now the caller's responsibility.
43371         * lib/dirchownmod.h: Likewise.
43372         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43373         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43374         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43375         (test_dir): Remove.
43376         (mkancesdirs): Return length of prefix of FILE that has already
43377         been made, or -2 if there is a child doing the work.  Redo
43378         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43379         ".", and treat ".." specially since it might stray back into
43380         already-created areas.  Use a subprocess if necessary.  New arg
43381         WD; all users changed.  MAKE_DIR function should now return 1
43382         if it creates a directory that is not readable.  Return -2 if
43383         a child process is spun off.
43384         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43385         Adjust signature to match code.
43386         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43387         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43388         all users changed.
43389         * lib/savewd.c, lib/savewd.h: New files.
43390
43391 2006-09-15  Jim Meyering  <jim@meyering.net>
43392
43393         * modules/rename-dest-slash: New module.
43394         * MODULES.html.sh (posix_compat): Add it here.
43395
43396         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43397
43398 2006-09-15  Jim Meyering  <jim@meyering.net>
43399
43400         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43401         file.
43402
43403         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43404
43405 2006-09-15  Jim Meyering  <jim@meyering.net>
43406
43407         * lib/rename-dest-slash.c (has_trailing_slash): Use
43408         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43409         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43410         test before testing whether SRC is a directory.
43411         Suggestions from Bruno Haible.
43412
43413         Avoid a warning about an unused variable.
43414         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43415         into the #ifdef block where it's used.
43416
43417         * lib/rename-dest-slash.c: New file.
43418
43419 2006-09-14  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/allocsa.c: Include <config.h> unconditionally.
43422         * lib/asnprintf.c: Likewise.
43423         * lib/asprintf.c: Likewise.
43424         * lib/c-strcasecmp.c: Likewise.
43425         * lib/c-strcasestr.c: Likewise.
43426         * lib/c-strncasecmp.c: Likewise.
43427         * lib/c-strstr.c: Likewise.
43428         * lib/classpath.c: Likewise.
43429         * lib/clean-temp.c: Likewise.
43430         * lib/concatpath.c: Likewise.
43431         * lib/copy-file.c: Likewise.
43432         * lib/csharpcomp.c: Likewise.
43433         * lib/csharpexec.c: Likewise.
43434         * lib/execute.c: Likewise.
43435         * lib/fatal-signal.c: Likewise.
43436         * lib/findprog.c: Likewise.
43437         * lib/fwriteerror.c: Likewise.
43438         * lib/gl_array_list.c: Likewise.
43439         * lib/gl_array_oset.c: Likewise.
43440         * lib/gl_avltree_list.c: Likewise.
43441         * lib/gl_avltree_oset.c: Likewise.
43442         * lib/gl_avltreehash_list.c: Likewise.
43443         * lib/gl_carray_list.c: Likewise.
43444         * lib/gl_linked_list.c: Likewise.
43445         * lib/gl_linkedhash_list.c: Likewise.
43446         * lib/gl_list.c: Likewise.
43447         * lib/gl_oset.c: Likewise.
43448         * lib/gl_rbtree_list.c: Likewise.
43449         * lib/gl_rbtree_oset.c: Likewise.
43450         * lib/gl_rbtreehash_list.c: Likewise.
43451         * lib/imaxabs.c: Likewise.
43452         * lib/imaxdiv.c: Likewise.
43453         * lib/javacomp.c: Likewise.
43454         * lib/javaexec.c: Likewise.
43455         * lib/javaversion.c: Likewise.
43456         * lib/linebreak.c: Likewise.
43457         * lib/localcharset.c: Likewise.
43458         * lib/lock.c: Likewise.
43459         * lib/mbchar.c: Likewise.
43460         * lib/mbswidth.c: Likewise.
43461         * lib/mkdtemp.c: Likewise.
43462         * lib/pipe.c: Likewise.
43463         * lib/printf-args.c: Likewise.
43464         * lib/printf-parse.c: Likewise.
43465         * lib/progname.c: Likewise.
43466         * lib/progreloc.c: Likewise.
43467         * lib/readlink.c: Likewise.
43468         * lib/sh-quote.c: Likewise.
43469         * lib/stpcpy.c: Likewise.
43470         * lib/stpncpy.c: Likewise.
43471         * lib/strcasecmp.c: Likewise.
43472         * lib/strcasestr.c: Likewise.
43473         * lib/strcspn.c: Likewise.
43474         * lib/striconv.c: Likewise.
43475         * lib/strncasecmp.c: Likewise.
43476         * lib/strnlen1.c: Likewise.
43477         * lib/strstr.c: Likewise.
43478         * lib/strtok_r.c: Likewise.
43479         * lib/tls.c: Likewise.
43480         * lib/tmpdir.c: Likewise.
43481         * lib/unicodeio.c: Likewise.
43482         * lib/unsetenv.c: Likewise.
43483         * lib/vasnprintf.c: Likewise.
43484         * lib/vasprintf.c: Likewise.
43485         * lib/wait-process.c: Likewise.
43486         * lib/xallocsa.c: Likewise.
43487         * lib/xsetenv.c: Likewise.
43488         * lib/xstriconv.c: Likewise.
43489
43490 2006-09-13  Simon Josefsson  <jas@extundo.com>
43491
43492         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43493         that internally, suggested by Ralf Wildenhues
43494         <Ralf.Wildenhues@gmx.de>.
43495
43496 2006-09-13  Simon Josefsson  <jas@extundo.com>
43497
43498         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43499         @LIBOBJS@.
43500         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43501
43502 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43503
43504         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43505         longer worry about uses that don't define HAVE_CONFIG_H.
43506         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43507         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43508         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43509         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43510         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43511         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43512         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43513         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43514         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43515         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43516         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43517         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43518         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43519         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43520         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43521         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43522         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43523         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43524         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43525         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43526         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43527         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43528         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43529         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43530         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43531         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43532         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43533         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43534         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43535         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43536         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43537         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43538         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43539         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43540         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43541         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43542         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43543         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43544         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43545         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43546         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43547         Likewise.
43548
43549 2006-09-13  Eric Blake  <ebb9@byu.net>
43550
43551         * lib/getopt.c: Fix typo in last commit.
43552
43553 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43554
43555         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43556         dgettext.
43557
43558 2006-09-12  Jim Meyering  <jim@meyering.net>
43559
43560         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43561         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43562         Reported by Nelson H. F. Beebe.
43563
43564 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43565
43566         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43567         program_invocation_name and program_invocation_short_name are
43568         initialized.
43569         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43570         and program_invocation_short_name to argp.h, so they are visible
43571         to user programs.
43572         * lib/argp.h: Likewise
43573
43574 2006-09-10  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43577         m4/inttypes_h.m4, m4/uintmax_t.m4.
43578
43579 2006-09-10  Bruno Haible  <bruno@clisp.org>
43580
43581         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43582         gl_AC_TYPE_UINTMAX_T.
43583
43584 2006-09-10  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43587
43588 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43589
43590         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43591         convention.  Text proposed by Bruno Haible.
43592         (struct argp_option): Document the use of N_() wrappers.
43593
43594         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43595         '\v', and translate the two parts separately, instead of feeding
43596         the whole string to gettext.  This allows to exclude
43597         '\v' from the strings visible to the translator by writing doc
43598         strings as N_("..") "\v" N_("..").
43599
43600 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43601
43602         * config/srclist.txt: Undo latest change; the bug was fixed.
43603
43604 2006-09-09  Bruno Haible  <bruno@clisp.org>
43605
43606         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43607         assignments if building a library without libtool.
43608         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43609         in func_emit_lib_Makefile_am.
43610         (func_import): When building a static library libfoo.a, arrange to
43611         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43612         (func_create_testdir): Likewise.
43613         * modules/gc (configure.ac, Makefile.am): If building statically,
43614         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43615         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43616         * modules/striconv (configure.ac, Makefile.am): Likewise.
43617         Based on a suggestion by Ralf Wildenhues.
43618
43619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43620
43621         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43622         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43623         Also:
43624
43625         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43626         Add year_2050_test to catch glibc bug 2821
43627         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43628
43629         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43630         Prefer #ifdef to #if.
43631
43632         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43633         Return from 'main' instead of calling 'exit'.
43634
43635 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43636
43637         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43638         returned the maximum time_t value rather than (time_t) -1.
43639         Problem originally reported by William Bardwell
43640         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43641
43642         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43643         Moved to here ...
43644         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43645         ... from here.
43646
43647 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43648
43649         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43650         2821 is fixed.
43651
43652 2006-09-08  Jim Meyering  <jim@meyering.net>
43653
43654         Don't make generated files read-only.  That would bother too many
43655         people.  However, do retain the ability to work when targets are
43656         read-only: remove the destination and temporary files before writing
43657         them (when generated via sed or echo), or by using the -f option for
43658         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43659         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43660         * modules/byteswap, modules/configmake, modules/fcntl:
43661         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43662         * modules/localcharset, modules/netinet_in, modules/poll:
43663         * modules/stdbool, modules/stdint, modules/sys_select:
43664         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43665
43666 2006-09-08  Jim Meyering  <jim@meyering.net>
43667
43668         Avoid new build failure on FreeBSD 6.0.
43669         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43670         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43671         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43672
43673 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43674
43675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43676
43677 2006-09-07  Jim Meyering  <jim@meyering.net>
43678
43679         Fix global typo in last change: use chmod u-w, not chmod u-x.
43680         Spotted by Paul Eggert and Bruce Korb.
43681         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43682         * modules/byteswap, modules/configmake, modules/fcntl:
43683         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43684         * modules/localcharset, modules/netinet_in, modules/poll:
43685         * modules/stdbool, modules/stdint, modules/sys_select:
43686         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43687
43688 2006-09-06  Jim Meyering  <jim@meyering.net>
43689
43690         Make generated files be read-only.
43691         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43692         Ensure that each generated file is now read-only.
43693         * modules/argz: Likewise.
43694         * modules/arpa_inet: Likewise.
43695         * modules/byteswap: Likewise.
43696         * modules/configmake: Likewise.
43697         * modules/fcntl: Likewise.
43698         * modules/fnmatch: Likewise.
43699         * modules/getopt: Likewise.
43700         * modules/glob: Likewise.
43701         * modules/inttypes: Likewise.
43702         * modules/netinet_in: Likewise.
43703         * modules/poll: Likewise.
43704         * modules/stdbool: Likewise.
43705         * modules/stdint: Likewise.
43706         * modules/sys_select: Likewise.
43707         * modules/sys_socket: Likewise.
43708         * modules/sys_stat: Likewise.
43709         * modules/sysexits: Likewise.
43710         * modules/localcharset: Same as above, but continue using temporary
43711         file named "t-$@" (why different?) rather than the "$@-t" used
43712         everywhere else.
43713
43714         * modules/sysexits (Makefile.am): Replace literal occurrences
43715         of "sysexit.h" more readable, and more consistent, "$@".
43716
43717 2006-09-06  Bruno Haible  <bruno@clisp.org>
43718
43719         * modules/striconv: New file.
43720         * modules/xstriconv: New file.
43721         * MODULES.html.sh (Internationalization functions): Add striconv,
43722         xstriconv.
43723
43724 2006-09-06  Bruno Haible  <bruno@clisp.org>
43725
43726         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43727         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43728         not using libtool correctly.
43729
43730 2006-09-06  Bruno Haible  <bruno@clisp.org>
43731
43732         * lib/striconv.h: New file.
43733         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43734         iconvstring.c.
43735         * lib/xstriconv.h: New file.
43736         * lib/xstriconv.c: New file.
43737
43738 2006-09-06  Bruno Haible  <bruno@clisp.org>
43739
43740         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43741         lib_..._LDFLAGS.
43742
43743 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43744
43745         * lib/argz_.h: Sync from Libtool.
43746
43747         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43748                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43749
43750         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43751
43752 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43753
43754         * modules/trim: New file.
43755
43756 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43757
43758         * lib/trim.h: New file.
43759         * lib/trim.c: New file.
43760
43761 2006-09-05  Bruno Haible  <bruno@clisp.org>
43762
43763         * MODULES.html.sh (String handling): Add trim.
43764
43765 2006-09-04  Karl Berry  <karl@gnu.org>
43766
43767         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43768         until next release.
43769
43770 2006-09-03  Bruno Haible  <bruno@clisp.org>
43771
43772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43773         correctly.
43774
43775 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43776
43777         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43778         not gl_GETLOADAVG.  Omit unneeded semicolons.
43779         Problems reported by Ralf Wildenhues in
43780         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43781         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43782         at the end, which is the usual gnulib style.
43783
43784         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43785         of doing all the work ourselves.
43786         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43787         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43788
43789 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43790
43791         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43792         Problem reported by Ralf Wildenhues in
43793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43794
43795         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43796         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43797
43798 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43799
43800         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43801         yesterday's patch by changing test -n to test -z.
43802
43803 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43804
43805         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43806         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43807         the former is now obsolescent.
43808
43809         * modules/chdir-long (Depends-on): Add fcntl.
43810
43811 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43812
43813         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43814         obsolescent, and programs should use gnulib instead.
43815         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43816         but with prefixes changed.
43817
43818 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43819
43820         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43821         or stdbool.h, because they might not exist while configuring.
43822
43823         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43824         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43825         does that for us.
43826         (O_DIRECTORY): Remove.
43827
43828 2006-08-31  Eric Blake  <ebb9@byu.net>
43829
43830         * gnulib-tool: Don't let emacs change spaces to TAB.
43831
43832 2006-08-31  Bruno Haible  <bruno@clisp.org>
43833
43834         * gnulib-tool: When calling func_import more than once, do it in a
43835         subshell.
43836         Reported by Eric Blake <ebb9@byu.net>.
43837
43838 2006-08-31  Bruno Haible  <bruno@clisp.org>
43839
43840         * gnulib-tool (nl): Remove variable.
43841         (sed_transform_lib_file): Use more robust test for config-h module.
43842         (func_import): Fix typo in 2006-08-25 patch.
43843
43844 2006-08-31  Bruno Haible  <bruno@clisp.org>
43845
43846         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43847         specified, augment Makefile.am variables instead of assigning them.
43848
43849 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43850
43851         Work around a bug in both the Linux and SunOS 64-bit kernels:
43852         nanosleep mishandles sleeps for longer than 2**31 seconds.
43853         Problem reported by Frank v Waveren in
43854         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43856         Check for nanosleep bug.
43857         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43858
43859 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43860
43861         Work around a bug in both the Linux and SunOS 64-bit kernels:
43862         nanosleep mishandles sleeps for longer than 2**31 seconds.
43863         Problem reported by Frank v Waveren in
43864         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43865         * lib/nanosleep.c (BILLION): New constant.
43866         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43867         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43868         implementation.
43869
43870 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         * modules/nanosleep (Depends-on): Add gettime.
43873
43874 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43875         and Simon Josefsson  <jas@extundo.com>
43876         and Oskar Liljeblad  <oskar@osk.mine.nu>
43877
43878         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43879         * gnulib-tool (func_import): New license type 'unmodifiable license
43880         text'.
43881         * modules/fdl: Use it.  Longer description.
43882         * module/gpl, module/lgpl: New files.
43883
43884 2006-08-30  Jim Meyering  <jim@meyering.net>
43885
43886         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43887         shadowing the parameter.
43888
43889 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43890
43891         Sync from Libtool:
43892
43893         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43894
43895         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43896         sharing with gnulib.  Report by Eric Blake.
43897
43898 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43899
43900         * modules/isapipe: New file.
43901         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43902
43903 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43904
43905         * modules/configmake (Makefile.am): Add a comment, and omit
43906         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43907         by Bruno Haible.
43908
43909 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43910
43911         * m4/isapipe.m4: New file.
43912
43913 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43914
43915         * lib/isapipe.c, lib/isapipe.h: New files.
43916
43917 2006-08-29  Jim Meyering  <jim@meyering.net>
43918
43919         * modules/configmake (Makefile.am): Make configmake.h depend on
43920         Makefile.  Otherwise, a stale configmake.h could hang around.
43921
43922 2006-08-29  Eric Blake  <ebb9@byu.net>
43923
43924         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43925         resolution of upstream bug 3044.
43926
43927 2006-08-29  Bruno Haible  <bruno@clisp.org>
43928
43929         * modules/localcharset (Depends-on): Add configmake.
43930         (Makefile.am): Remove setting of LIBDIR through DEFS.
43931
43932 2006-08-29  Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43935         defined.
43936
43937 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43938
43939         * modules/fcntl: New file.
43940         * modules/chdir-safer (Depends-on): Add fcntl.
43941         * modules/fts: Likewise.
43942         * modules/mkdir-p: Likewise.
43943
43944         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43945         This undoes the most recent change, since we're now addressing the
43946         problem in a different way.
43947
43948         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43949         into output, since the output might be called Makefile.am even
43950         if $makefile_name is something different.
43951         (func_import): Use $makefile_am rather than
43952         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43953         empty.
43954
43955         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43956
43957 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43958
43959         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43960         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43961         recent change to stdint.m4, since we're now addressing the problem in a
43962         different way.
43963
43964 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43965
43966         * m4/fcntl_h.m4: New file.
43967
43968 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43969
43970         * lib/fcntl_.h: New file.
43971         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43972         the fcntl module.
43973         * lib/dirchownmod.c: Likewise.
43974         * lib/fts.c: Likewise.
43975
43976         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43977         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43978         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43979         just before including <inttypes.h>, to avoid circular inclusion.
43980
43981 2006-08-28  Jim Meyering  <jim@meyering.net>
43982
43983         * doc/visibility.texi: Actually read and correct the grammar of the
43984         sentence affected by yesterday's change.
43985
43986 2006-08-28  Eric Blake  <ebb9@byu.net>
43987
43988         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43989         needs wrapper.
43990
43991 2006-08-28  Eric Blake  <ebb9@byu.net>
43992
43993         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43994
43995 2006-08-28  Eric Blake  <ebb9@byu.net>
43996
43997         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43998
43999 2006-08-28  Bruno Haible  <bruno@clisp.org>
44000
44001         * modules/c-strstr: New file, from GNU gettext.
44002         * MODULES.html.sh (String handling): Add c-strstr.
44003
44004 2006-08-28  Bruno Haible  <bruno@clisp.org>
44005
44006         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44007         macros.
44008         Reported by Eric Blake.
44009
44010 2006-08-28  Bruno Haible  <bruno@clisp.org>
44011
44012         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44013         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44014         * lib/vasprintf.c: Include errno.h, limits.h.
44015         (EOVERFLOW): New fallback definition.
44016         (vasprintf): Test here whether the string length is > INT_MAX.
44017         * lib/vsnprintf.c: Include errno.h, limits.h.
44018         (EOVERFLOW): New fallback definition.
44019         (vsnprintf): Fix bug when generated string was too long for the buffer.
44020         Test here whether the string length is > INT_MAX.
44021
44022 2006-08-28  Bruno Haible  <bruno@clisp.org>
44023
44024         * lib/inttypes_.h (SCNX*): Remove definitions.
44025         Reported by Eric Blake.
44026
44027 2006-08-28  Bruno Haible  <bruno@clisp.org>
44028
44029         * lib/c-strstr.h: New file, from GNU gettext.
44030         * lib/c-strstr.c: New file, from GNU gettext.
44031
44032 2006-08-28  Bruno Haible  <bruno@clisp.org>
44033
44034         * gnulib-tool: Reorder some statements.
44035
44036 2006-08-28  Bruno Haible  <bruno@clisp.org>
44037
44038         * gnulib-tool: New option --makefile-name.
44039         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44040         $makefile_name.
44041         (func_import): Write $makefile_name to the cache file, and read it from
44042         there unless explicitly specified. Use $makefile_name as file name
44043         instead of Makefile.am. Adjust the recommendations accordingly.
44044
44045 2006-08-28  Bruno Haible  <bruno@clisp.org>
44046
44047         * gnulib-tool (func_verify_module): Check against misapplying patch.
44048
44049 2006-08-28  Bruno Haible  <bruno@clisp.org>
44050
44051         * gnulib-tool (func_relativize, func_relconcat): New functions.
44052         Give an error if --local-dir is given with --update.
44053         Remove trailing slashes from $local_gnulib_dir.
44054         (func_import): Store the relativized $local_gnulib_dir in
44055         gnulib-cache.m4, and read it from there if not specified explicitly.
44056
44057 2006-08-28  Bruno Haible  <bruno@clisp.org>
44058
44059         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44060         is the current directory. Respect also $local_gnulib_dir.
44061
44062 2006-08-28  Bruno Haible  <bruno@clisp.org>
44063             Simon Josefsson  <jas@extundo.com>
44064
44065         BeOS portability.
44066         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44067
44068 2006-08-27  Jim Meyering  <jim@meyering.net>
44069
44070         * doc/visibility.texi: Remove duplicate word: "pointer".
44071
44072 2006-08-26  Bruno Haible  <bruno@clisp.org>
44073
44074         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44075         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44076         (Makefile.am): Create inttypes.h from inttypes_.h.
44077         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44078
44079         * modules/imaxabs: New file.
44080
44081         * modules/imaxdiv: New file.
44082
44083 2006-08-26  Bruno Haible  <bruno@clisp.org>
44084
44085         * m4/inttypes.m4: New file.
44086         * m4/_inttypes_h.m4: Remove file.
44087         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44088         PRI_MACROS_BROKEN.
44089         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44090
44091         * m4/imaxabs.m4: New file.
44092
44093         * m4/imaxdiv.m4: New file.
44094
44095 2006-08-26  Bruno Haible  <bruno@clisp.org>
44096
44097         * lib/inttypes_.h: New file.
44098         * lib/inttypes.h: Remove file.
44099         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44100
44101         * lib/imaxabs.c: New file.
44102
44103         * lib/imaxdiv.c: New file.
44104
44105 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44106
44107         New config-h module, so that "make" output needn't be cluttered
44108         by -DHAVE_CONFIG_H.
44109         * MODULES.html.sh (Support for building libraries and executables):
44110         Add config-h.
44111         * modules/config-h: New file.
44112         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44113         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44114         the config-h module is used.
44115
44116         New configmake module, so that "make" output needn't be cluttered
44117         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44118         * MODULES.html.sh (Support for building libraries and executables):
44119         Add configmake.
44120         * modules/configmake: New file.
44121
44122 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44123
44124         * m4/config-h.m4: New file.
44125
44126 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44127
44128         * config/srclist.txt: Add elisp-comp.
44129
44130 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44131
44132         * MODULES.html.sh (Support for building libraries and executables):
44133         Add elisp-comp.
44134         * build-aux/elisp-comp: New file.
44135         * modules/elisp-comp: New file.
44136
44137 2006-08-24  Bruno Haible  <bruno@clisp.org>
44138
44139         * gnulib-tool (func_create_testdir): Use non-default values of
44140         sourcebase and m4base.
44141
44142 2006-08-24  Bruno Haible  <bruno@clisp.org>
44143
44144         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44145         HTML structure.
44146
44147 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44148
44149         * modules/openat (Depends-on): Add lchown.
44150
44151 2006-08-23  Bruno Haible  <bruno@clisp.org>
44152
44153         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44154         of gl_LOCK_EARLY instead of gl_LOCK.
44155
44156 2006-08-23  Bruno Haible  <bruno@clisp.org>
44157
44158         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44159         on OSF/1 to no.
44160         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44161
44162 2006-08-23  Bruno Haible  <bruno@clisp.org>
44163
44164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44165         as unusable.
44166
44167         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44168         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44169         (gl_LOCK): New macro.
44170
44171 2006-08-22  Simon Josefsson  <jas@extundo.com>
44172
44173         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44174         to md5 module.
44175
44176 2006-08-22  Simon Josefsson  <jas@extundo.com>
44177
44178         * MODULES.html.sh: Add "Support for maintaining and release
44179         projects".
44180
44181         * build-aux/gnupload: New file, from coreutils.
44182
44183 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44184
44185         Avoid the need for AC_LIBSOURCES in m4 macros.
44186         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44187         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44188         * modules/check-version (EXTRA_DIST): Add check-version.h.
44189         * modules/crc (EXTRA_DIST): Add crc.h.
44190         * modules/des (EXTRA_DIST): Add des.h.
44191         * modules/gc (EXTRA_DIST): Add gc.h.
44192         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44193         * modules/getline (EXTRA_DIST): Add getline.h.
44194         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44195         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44196         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44197         * modules/md2 (EXTRA_DIST): Add md2.h.
44198         * modules/md4 (EXTRA_DIST): Add md4.h.
44199         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44200         * modules/read-file (EXTRA_DIST): Add read-file.h.
44201         * modules/readline (EXTRA_DIST): Add readline.h.
44202         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44203         rijndael-api-fst.h.
44204
44205 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44206
44207         * m4/rijndael.m4 (gl_ARCFOUR):
44208         * m4/arctwo.m4 (gl_ARCTWO):
44209         * m4/check-version.m4 (gl_CHECK_VERSION):
44210         * m4/crc.m4 (gl_CRC):
44211         * m4/des.m4 (gl_DES):
44212         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44213         * m4/gc.m4 (gl_GC):
44214         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44215         * m4/getline.m4 (gl_FUNC_GETLINE):
44216         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44217         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44218         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44219         * m4/md2.m4 (gl_MD2):
44220         * m4/md4.m4 (gl_MD4):
44221         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44222         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44223         * m4/readline.m4 (gl_FUNC_READLINE):
44224         * m4/rijndael.m4 (gl_RIJNDAEL):
44225         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44226         to get the necessary .h files and whatnot.
44227
44228 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44229
44230         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44231         gnulib rather than the other way around.
44232         * config/srclistvars.sh (COREUTILS): Remove.
44233
44234 2006-08-22  Jim Meyering  <jim@meyering.net>
44235
44236         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44237
44238         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44239
44240 2006-08-22  Eric Blake  <ebb9@byu.net>
44241
44242         * modules/regexprops-generic: New file.
44243         * MODULES.html.sh (Support for building documentation): List it.
44244
44245 2006-08-22  Eric Blake  <ebb9@byu.net>
44246
44247         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44248         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44249         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44250         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44251
44252 2006-08-22  Bruno Haible  <bruno@clisp.org>
44253
44254         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44255         and lib_LTLIBRARIES like the other lib_* variables.
44256
44257 2006-08-22  Bruno Haible  <bruno@clisp.org>
44258
44259         * build-aux/x-to-1.in: New file, from GNU gettext.
44260
44261 2006-08-22  Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44264         <utmpx.h> exists.
44265
44266 2006-08-22  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44269         <utmpx.h> exists.
44270
44271 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44272
44273         BeOS portability.
44274         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44275         exist.
44276         Problem reported by Bruno Haible.
44277
44278 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44279
44280         Avoid the need for AC_LIBSOURCES in m4 macros.
44281         * modules/acl (EXTRA_DIST): Add acl.h.
44282         * modules/argmatch (Files): Add m4/argmatch.m4.
44283         (configure.ac): Add gl_ARGMATCH.
44284         (EXTRA_DIST): Renamed from lib_SOURCES, for
44285         consistency with the other modules.  Remove argmatch.c.
44286         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44287         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44288         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44289         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44290         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44291         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44292         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44293         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44294         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44295         * modules/closeout (EXTRA_DIST): Add closeout.h.
44296         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44297         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44298         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44299         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44300         dirname.h; remove basename.c and stripslash.c.
44301         * modules/exclude (EXTRA_DIST): Add exclude.h.
44302         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44303         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44304         * modules/file-type (EXTRA_DIST): Add file-type.h.
44305         * modules/filemode (EXTRA_DIST): Add filemode.h.
44306         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44307         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44308         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44309         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44310         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44311         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44312         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44313         * modules/getdate (EXTRA_DIST): Add getdate.c.
44314         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44315         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44316         * modules/getpass (EXTRA_DIST): Add getpass.h.
44317         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44318         * modules/group-member (EXTRA_DIST): Add group-member.h.
44319         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44320         * modules/hash (EXTRA_DIST): Add hash.h.
44321         * modules/human (EXTRA_DIST): Add human.h.
44322         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44323         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44324         * modules/lchown (EXTRA_DIST): Add lchown.h.
44325         * modules/long-options (EXTRA_DIST): Add long-options.h.
44326         * modules/lstat (EXTRA_DIST): Add lstat.h.
44327         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44328         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44329         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44330         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44331         * modules/memxor (EXTRA_DIST): Add memxor.h.
44332         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44333         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44334         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44335         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44336         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44337         * modules/physmem (EXTRA_DIST): Add physmem.h.
44338         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44339         * modules/posixver (EXTRA_DIST): Add posixver.h.
44340         * modules/quote (EXTRA_DIST): Add quote.h.
44341         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44342         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44343         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44344         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44345         regex_internal.h regexec.c.
44346         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44347         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44348         * modules/same (EXTRA_DIST): Add same.h.
44349         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44350         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44351         * modules/savedir (EXTRA_DIST): Add savedir.h.
44352         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44353         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44354         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44355         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44356         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44357         * modules/strdup (EXTRA_DIST): Add strdup.h.
44358         * modules/strftime (EXTRA_DIST): Add strftime.h.
44359         * modules/strndup (EXTRA_DIST): Add strndup.h.
44360         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44361         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44362         * modules/time_r (EXTRA_DIST): Add time_r.h.
44363         * modules/timespec (EXTRA_DIST): Add timespec.h.
44364         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44365         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44366         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44367         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44368         * modules/userspec (EXTRA_DIST): Add userspec.h.
44369         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44370         * modules/utimens (EXTRA_DIST): Add utimens.h.
44371         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44372         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44373         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44374         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44375         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44376         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44377         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44378         * modules/yesno (EXTRA_DIST): Add yesno.h.
44379
44380 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44381
44382         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44383
44384         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44385         * m4/dev-ino.m4, same-inode.m4: Remove.
44386
44387         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44388         * m4/acl.m4 (AC_FUNC_ACL):
44389         * m4/backupfile.m4 (gl_BACKUPFILE):
44390         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44391         * m4/canon-host.m4 (gl_CANON_HOST):
44392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44393         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44394         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44395         * m4/cloexec.m4 (gl_CLOEXEC):
44396         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44397         * m4/closeout.m4 (gl_CLOSEOUT):
44398         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44399         * m4/dirname.m4 (gl_DIRNAME):
44400         * m4/exclude.m4 (gl_EXCLUDE):
44401         * m4/exitfail.m4 (gl_EXITFAIL):
44402         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44403         * m4/file-type.m4 (gl_FILE_TYPE):
44404         * m4/filemode.m4 (gl_FILEMODE):
44405         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44406         * m4/fpending.m4 (gl_FUNC_FPENDING):
44407         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44408         * m4/fts.m4 (gl_FUNC_FTS):
44409         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44410         * m4/getdate.m4 (gl_GETDATE):
44411         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44412         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44413         * m4/getpass.m4 (gl_FUNC_GETPASS):
44414         * m4/gettime.m4 (gl_GETTIME):
44415         * m4/getugroups.m4 (gl_GETUGROUPS):
44416         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44417         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44418         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44419         * m4/hash.m4 (gl_HASH):
44420         * m4/idcache.m4 (gl_IDCACHE):
44421         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44422         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44423         * m4/long-options.m4 (gl_LONG_OPTIONS):
44424         * m4/lstat.m4 (gl_FUNC_LSTAT):
44425         * m4/md5.m4 (gl_MD5):
44426         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44427         * m4/memcoll.m4 (gl_MEMCOLL):
44428         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44429         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44430         * m4/memxor.m4 (gl_MEMXOR):
44431         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44433         * m4/modechange.m4 (gl_MODECHANGE):
44434         * m4/mountlist.m4 (gl_MOUNTLIST):
44435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44436         * m4/openat.m4 (gl_FUNC_OPENAT):
44437         * m4/pathmax.m4 (gl_PATHMAX):
44438         * m4/physmem.m4 (gl_PHYSMEM):
44439         * m4/posixtm.m4 (gl_POSIXTM):
44440         * m4/posixver.m4 (gl_POSIXVER):
44441         * m4/quote.m4 (gl_QUOTE):
44442         * m4/quotearg.m4 (gl_QUOTEARG):
44443         * m4/readtokens.m4 (gl_READTOKENS):
44444         * m4/readutmp.m4 (gl_READUTMP):
44445         * m4/regex.m4 (gl_REGEX):
44446         * m4/safe-read.m4 (gl_SAFE_READ):
44447         * m4/safe-write.m4 (gl_SAFE_WRITE):
44448         * m4/same.m4 (gl_SAME):
44449         * m4/save-cwd.m4 (gl_SAVE_CWD):
44450         * m4/savedir.m4 (gl_SAVEDIR):
44451         * m4/settime.m4 (gl_SETTIME):
44452         * m4/sha1.m4 (gl_SHA1):
44453         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44454         * m4/stat-macros.m4 (gl_STAT_MACROS):
44455         * m4/stat-time.m4 (gl_STAT_TIME):
44456         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44457         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44458         * m4/strdup.m4 (gl_FUNC_STRDUP):
44459         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44460         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44461         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44462         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44463         * m4/time_r.m4 (gl_TIME_R):
44464         * m4/timespec.m4 (gl_TIMESPEC):
44465         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44466         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44467         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44468         * m4/userspec.m4 (gl_USERSPEC):
44469         * m4/utimecmp.m4 (gl_UTIMECMP):
44470         * m4/utimens.m4 (gl_UTIMENS):
44471         * m4/xalloc.m4 (gl_XALLOC):
44472         * m4/xgetcwd.m4 (gl_XGETCWD):
44473         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44474         * m4/xreadlink.m4 (gl_XREADLINK):
44475         * m4/xstrtod.m4 (gl_XSTRTOD):
44476         * m4/yesno.m4 (gl_YESNO):
44477         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44478         to get the necessary .h files and whatnot.
44479
44480 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44481             Bruno Haible  <bruno@clisp.org>
44482
44483         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44484         /bin/sh understanding of '!' conditional negation.
44485
44486 2006-08-21  Jim Meyering  <jim@meyering.net>
44487
44488         * modules/openat (Depends-on): Really alphabetize.
44489
44490         * modules/acl (Depends-on): Add error and quote.
44491
44492         * check-module (find_included_lib_files): Add at-func.c to the
44493         ok-to-include-more-than-once white list.
44494
44495         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44496
44497 2006-08-21  Bruno Haible  <bruno@clisp.org>
44498
44499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44500         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44501         Reported by Martin Lambers <marlam@marlam.de>.
44502
44503 2006-08-21  Bruno Haible  <bruno@clisp.org>
44504
44505         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44506         specify an installation location, don't emit a noinst_LIBRARIES or
44507         noinst_LTLIBRARIES assignment.
44508
44509 2006-08-21  Bruno Haible  <bruno@clisp.org>
44510
44511         BeOS portability.
44512         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44513         BeOS has mbrtowc() but no <wctype.h>.
44514
44515 2006-08-21  Bruno Haible  <bruno@clisp.org>
44516
44517         BeOS portability.
44518         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44519         exist.
44520
44521 2006-08-21  Bruno Haible  <bruno@clisp.org>
44522
44523         BeOS portability.
44524         * lib/mbchar.h: Include <wctype.h> only if it exists.
44525
44526 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44527
44528         Remove files that are no longer needed by their respective modules.
44529         * m4/obstack.m4: Remove.
44530         * m4/strerror_r.m4: Remove.
44531         * m4/uint32_t.m4: Remove.
44532         * m4/uintptr_t.m4: Remove.
44533         * m4/ullong_max.m4: Remove.
44534         * m4/xstrtoimax.m4: Remove.
44535         * m4/xstrtoumax.m4: Remove.
44536
44537         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44538         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44539         dependencies now capture this.
44540
44541         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44542         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44543         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44544         * m4/human.m4 (gl_HUMAN): Likewise.
44545         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44546         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44547
44548         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44549
44550         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44551         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44552         stdint.
44553         * m4/human.m4 (gl_HUMAN): Likewise.
44554         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44555         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44556         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44557         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44558         * m4/xstrtol (gl_XSTRTOL): Likewise.
44559
44560         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44561         AC_TYPE_LONG_LONG_INT.
44562         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44563         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44564         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44565         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44566
44567         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44568         on stdbool.
44569
44570         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44571         (gl_PREREQ_XSTRTOUL): Remove.
44572
44573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44574
44575         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44576         mode.
44577
44578 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44579
44580         Add and change modules to make it easier for coreutils to use
44581         gnulib-tool.
44582         * modules/backupfile (Files): Remove m4/d-ino.m4.
44583         (Depends-on): Add d-ino.
44584         * modules/cycle-check (Depends-on): Add stdint.
44585         (lib_SOURCES): Add cycle-check.h.
44586         * modules/d-ino: New module.
44587         * modules/d-type: New module.
44588         * modules/error (Files): Remove m4/strerror_r.m4.
44589         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44590         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44591         m4/inttypes_h.m4, m4/uintmax_t.m4.
44592         (Depends-on): Add stdint.
44593         (lib_SOURCES): Add fsusage.h.
44594         * modules/getcwd (Files): Remove d-ino.m4.
44595         (Depends-on): Add d-ino.
44596         * modules/getndelim2 (Depends-on): Add stdint.
44597         * modules/glob (Files): Remove m4/d-type.m4.
44598         (Depends-on): Add d-type.
44599         * modules/host-os: New module.
44600         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44601         m4/inttypes_h.m4, m4/uintmax_t.m4.
44602         * Depends-on: Add stdint.
44603         (lib_SOURCES): Add human.h.
44604         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44605         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44606         m4/uintmax_t.m4, m4/ulonglong.m4.
44607         (Depends-on): Add stdint.
44608         (EXTRA_DIST): Add inttostr.h.
44609         * modules/lchmod: New module.
44610         * modules/link-follow: New module.
44611         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44612         (Depends-on): Add lchmod.
44613         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44614         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44615         (Depends-on): Add stdint.
44616         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44617         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44618         (Depends-on): Add stdint.
44619         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44620         * modules/perl: New module.
44621         * modules/regex (Depends-on): Add stdint.
44622         * modules/rmdir-errno: New module.
44623         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44624         m4/intmax_t.m4.
44625         (Depends-on): Add stdint.
44626         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44627         m4/uintmax_t.m4.
44628         (Depends-on): Add stdint.
44629         * modules/unlink-busy: New module.
44630         * modules/utimecmp (Depends-on): Add stdint.
44631         * modules/uptime: New module.
44632         * modules/winsz-ioctl: New module.
44633         * modules/winsz-termios: New module.
44634         * modules/xnanosleep (Depends-on): Add nanosleep.
44635         * modules/ullong_max: Remove.
44636         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44637         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44638         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44639         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44640         (Depends-on): Add inttypes.
44641         (lib_SOURCES): Add xstrtol.h.
44642         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44643         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44644         * MODULES.html.sh: Move 'assert' into the assert section.
44645         Move 'dummy' into the linking section.
44646         Remove ullong_max.
44647         Add section for compatibility checks for POSIX:2001 functions,
44648         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44649         winsz-ioctl, and winsz-termios into it.
44650         Add lchmod.
44651         Add top-level Misc section and put host-os, perl, and uptime
44652         into it.
44653
44654 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44655
44656         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44657         now assume the stdint module.  Do not include inttypes.h.
44658         * lib/fsusage.h: Likewise.
44659         * lib/getndelim2.c: Likewise.
44660         * lib/human.h: Likewise.
44661         * lib/inttostr.h: Likewise.
44662         * lib/obstack.c: Likewise.
44663         * lib/regex_internal.h: Likewise.
44664         * lib/tempname.c: Likewise.
44665         * lib/utimecmp.c: Likewise.
44666         * lib/xstrtol.h: Likewise.
44667
44668         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44669
44670         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44671         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44672         * lib/xtime.h: Likewise.
44673
44674 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44675
44676         * modules/openat (Files): Add lib/fchmodat.c.
44677         Fixes problem reported by Jay Youngman.
44678
44679 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44680
44681         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44682         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44683
44684 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44685             Bruno Haible  <bruno@clisp.org>
44686
44687         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44688         and is a script that invokes bison. Tighten the code. Add comments.
44689
44690 2006-08-18  Jim Meyering  <jim@meyering.net>
44691
44692         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44693         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44694         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44695         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44696
44697 2006-08-18  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/bison-i18n: New file.
44700         * MODULES.html.sh (Internationalization functions): Add it.
44701
44702 2006-08-18  Bruno Haible  <bruno@clisp.org>
44703
44704         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44705         sys/statvfs.h. When getmntinfo was found, check its declaration and
44706         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44707
44708 2006-08-18  Bruno Haible  <bruno@clisp.org>
44709
44710         * m4/bison-i18n.m4: New file, from bison.
44711
44712 2006-08-18  Bruno Haible  <bruno@clisp.org>
44713
44714         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44715         (ME_DUMMY): Treat "kernfs" as a dummy.
44716         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44717
44718 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44719
44720         Update from coreutils.
44721
44722         2006-08-15  Jim Meyering  <jim@meyering.net>
44723
44724         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44725
44726         2006-01-17  Jim Meyering  <jim@meyering.net>
44727
44728         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44729
44730         2006-01-11  Jim Meyering  <jim@meyering.net>
44731
44732         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44733         Check for the lchmod function.
44734
44735 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44736
44737         Update from coreutils.
44738
44739         * lib/__fpending.h: Add copyright notice.
44740         * lib/fprintftime.h: Likewise.
44741         * lib/savedir.c: Use (C) in copyright notice.
44742         * lib/savedir.h: Likewise.
44743
44744         2006-08-15  Jim Meyering  <jim@meyering.net>
44745
44746         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44747         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44748         in support of the EXPECTED_ERRNO macro.
44749         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44750         definitions.  Instead, define the appropriate symbols and include
44751         "at-func.c".
44752         * lib/mkdirat.c (mkdirat): Likewise.
44753         * lib/fchmodat.c (fchmodat): Likewise.
44754         (ENOSYS): Remove definition.
44755         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44756         it.  Don't include "unistd--.h" -- it wasn't ever used.
44757
44758         2006-01-17  Jim Meyering  <jim@meyering.net>
44759
44760         Rewrite fts.c not to change the current working directory,
44761         by using openat, fstatat, fdopendir, etc..
44762
44763         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44764         (HAVE_OPENAT_SUPPORT): Define.
44765         [_LIBC] (fchdir): Don't undef or define; no longer used.
44766         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44767         Now, this `function' always succeeds, and consumes its file descriptor
44768         parameter -- so callers must not close such FDs.  Update callers.
44769         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44770         (diropen): Add parameter, SP.  Adjust all callers.
44771         Implement using diropen_fd, rather than open.
44772         (fts_open): Initialize new member, fts_cwd_fd.
44773         Remove fts_rft-setting code.
44774         (fts_close): Close fts_cwd_fd, if necessary.
44775         (__opendir2): Define in terms of opendir or opendirat,
44776         depending on whether the FST_NOCHDIR flag is set.
44777         (fts_build): Since fts_safe_changedir consumes its FD, and since
44778         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44779         and close the dup'd file descriptor upon failure.
44780         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44781         (fts_safe_changedir): Tweak semantics to reflect that this function
44782         now calls cwd_advance_fd and hence consumes its FD argument.
44783         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44784         [struct FTS] (fts_rft): Remove now-unused member.
44785         [struct FTS] (fts_cycle.state): Improve comment.
44786
44787         * lib/openat.c (openat_needs_fchdir): New function.
44788         * lib/openat.h (openat_needs_fchdir): Declare it.
44789
44790 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44793         Problem and fix reported by Pádraig Brady in
44794         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44795
44796 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44797
44798         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44799
44800 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44801
44802         * lib/memcoll.c (memcoll): Optimize for the common case where the
44803         arguments are bytewise equal.
44804
44805 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44806
44807         * doc/regexprops-generic.texi: Add a copyright notice.
44808
44809 2006-08-15  Bruno Haible  <bruno@clisp.org>
44810
44811         * modules/tmpdir (License): Change to LGPL.
44812
44813 2006-08-15  Bruno Haible  <bruno@clisp.org>
44814
44815         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44816         module.
44817
44818 2006-08-14  Simon Josefsson  <jas@extundo.com>
44819
44820         * config/srclist.txt: Add gnupload.
44821
44822 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44823
44824         Change copyright notice from LGPL 2 to GPL 2, since that's the
44825         standard form used in the gnulib repository.
44826         * tests/test-lock.c: Likewise.
44827         * tests/test-stdint.c: Likewise.
44828         * tests/test-tls.c: Likewise.
44829
44830         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44831         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44832         Add copyright notice.
44833
44834         * check-module: Add copyright notice.  Output a copyright
44835         notice if "--version" is specified.
44836         * modules/COPYING: New file.
44837         * tests/test-getaddrinfo.c: Add copyright notice.
44838         * tests/test-verify.c: Likewise.
44839
44840 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44841
44842         Change copyright notice from LGPL 2 to GPL 2, since that's the
44843         standard form used in the gnulib repository.
44844         * lib/lock.c: LGPL -> GPL.
44845         * lib/lock.h: Likewise.
44846         * lib/strnlen1.c: Likewise.
44847         * lib/strnlen1.h: Likewise.
44848         * lib/tls.c: Likewise.
44849         * lib/tls.h: Likewise.
44850         * lib/tmpdir.c: Likewise.
44851
44852         * lib/TODO: Remove; this belongs only in coreutils.
44853
44854 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44855
44856         Add copyright notices to long-enough files that lack them, since
44857         otherwise the files aren't clearly free.  Use the same notice that
44858         getdate.texi already uses.
44859         * doc/alloca-opt.texi: Add copyright notice.
44860         * doc/alloca.texi: Likewise.
44861         * doc/ctime.texi: Likewise.
44862         * doc/functions.texi: Likewise.
44863         * doc/gcd.texi: Likewise.
44864         * doc/gnulib-tool.texi: Likewise.
44865         * doc/inet_ntoa.texi: Likewise.
44866         * doc/visibility.texi: Likewise.
44867
44868         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44869         * doc/quote.texi: Add copyright notice.
44870
44871         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44872         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44873         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44874         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44875         is now obsolete, and give a pointer to the Sun list.
44876         Add copyright notice.
44877
44878 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44879
44880         * config/srclistvars.sh: Add copyright notice.
44881
44882 2006-08-14  Eric Blake  <ebb9@byu.net>
44883
44884         Import the following change from libc:
44885
44886         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44887
44888         Upstream bug 2997.
44889         * lib/misc/error.c: Add space between program name and message if file
44890         name is missing.
44891
44892 2006-08-12  Karl Berry  <karl@gnu.org>
44893
44894         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44895         remove, these originate in gnulib now.
44896
44897 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44898
44899         * doc/Makefile (standards.info standards.html standards.dvi):
44900         Also depend on make-stds.texi.
44901
44902 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44903
44904         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44905         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44906
44907         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44908         in wchar_t.  Problem reported by Eric Blake.
44909
44910         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44911         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44912         Also, help the compiler to keep LEN in a register.
44913
44914 2006-08-11  Eric Blake  <ebb9@byu.net>
44915
44916         * users.txt: Sort.  Add tar.
44917
44918 2006-08-11  Bruno Haible  <bruno@clisp.org>
44919
44920         * users.txt: New file.
44921
44922 2006-08-11  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44925         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44926
44927 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44928
44929         * modules/snprintf (Depends-on): Remove minmax.
44930         (Maintainer): Add self and Bruno.
44931
44932 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44933
44934         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44935         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44936         (EOVERFLOW): Define if the system does not.
44937         Do not include "minmax.h"; it wasn't used.
44938         (snprintf): Don't assume size_t promotes to an unsigned type.
44939         Fix bug when generated string was too long for the buffer: the
44940         buffer's contents are supposed to be the initial prefix of the
44941         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44942         exceeds INT_MAX; do the check ourselves.
44943
44944         Import the following changes from libc:
44945
44946         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44947
44948         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44949         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44950         set wc to the byte which couldn't be converted.
44951         (re_string_reconstruct): Don't clear valid_raw_len before calling
44952         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44953         tip_context using re_string_context_at.
44954
44955         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44956
44957         * lib/posix/regex.h: g++ still cannot handled [restrict].
44958
44959         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44960
44961         * lib/posix/regex.h: Remove special handling for VMS.
44962
44963 2006-08-10  Jim Meyering  <jim@meyering.net>
44964
44965         * modules/same-inode: New module.
44966         * modules/dev-ino: New module.
44967         * modules/cycle-check: Depend on these modules, rather than simply
44968         including their .h files.
44969         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44970         required via m4/cycle-check.m4.
44971         * modules/same: Depend on new same-inode module, rather than
44972         including same-inode.h.
44973         * modules/chdir-safer: New file.
44974
44975         * modules/chown (Depends-on): Add stat-macros.
44976
44977 2006-08-10  Jim Meyering  <jim@meyering.net>
44978
44979         * m4/cycle-check.m4: New file.
44980         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44981         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44982
44983 2006-08-10  Eric Blake  <ebb9@byu.net>
44984
44985         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44986         in from original proposal.
44987
44988 2006-08-10  Eric Blake  <ebb9@byu.net>
44989         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44990
44991         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44992         namespace.
44993
44994 2006-08-10  Bruno Haible  <bruno@clisp.org>
44995
44996         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44997         as well.
44998
44999 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45000
45001         Sync from coreutils.
45002
45003         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45004
45005         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45006         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45007
45008 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45009
45010         * modules/restrict: Remove; no longer needed now that we assume
45011         Autoconf 2.59 or later.
45012         * MODULES.html.sh: Remove 'restrict'.
45013         * modules/argp (Depends-on): Remove 'restrict'.
45014         * modules/base64 (Depends-on): Likewise.
45015         * modules/gc (Depends-on): Likewise.
45016         * modules/getaddrinfo (Depends-on): Likewise.
45017         * modules/glob (Depends-on): Likewise.
45018         * modules/inet_ntop (Depends-on): Likewise.
45019         * modules/inet_pton (Depends-on): Likewise.
45020         * modules/memxor (Depends-on): Likewise.
45021         * modules/regex (Depends-on): Likewise.
45022         * modules/strtok_r (Depends-on): Likewise.
45023         * modules/time_r (Depends-on): Likewise.
45024
45025 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45026
45027         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45028         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45029         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45030         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45031         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45032         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45033         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45034         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45035
45036         Merge from coreutils.
45037         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45038         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45039         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45040         * m4/time_r.m4 (gl_TIME_R): Likewise.
45041
45042 2006-08-09  Karl Berry  <karl@gnu.org>
45043
45044         * config/srclist.txt: no more gettext-tools, per Bruno.
45045
45046 2006-08-08  Eric Blake  <ebb9@byu.net>
45047
45048         * modules/verror: New module.
45049         * MODULES.html.sh: Document it.
45050
45051 2006-08-08  Eric Blake  <ebb9@byu.net>
45052
45053         * lib/verror.h, lib/verror.c: New files.
45054
45055 2006-08-08  Eric Blake  <ebb9@byu.net>
45056
45057         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45058         verror_at_line output complies with GNU Coding Standards even when
45059         file is NULL.
45060
45061 2006-08-07  Bruno Haible  <bruno@clisp.org>
45062
45063         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45064         versions of AIX.
45065         Reported by Ralf Wildenhues.
45066
45067 2006-08-07  Bruno Haible  <bruno@clisp.org>
45068
45069         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45070         in an AC_DEFUN. Needed so that the autoconf snippets can use
45071         AC_REQUIRE.
45072
45073 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45074
45075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45076         Initialize pkgdata_DATA.
45077         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45078         overriding it.
45079
45080 2006-08-06  Eric Blake  <ebb9@byu.net>
45081
45082         * lib/error.h: Fold in some upstream changes from glibc.
45083         * lib/error.c: Likewise.
45084
45085 2006-08-04  Bruno Haible  <bruno@clisp.org>
45086
45087         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45088         Make the mostlyclean-local rule depend on mostlyclean-generic.
45089         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45090
45091 2006-07-31  Bruno Haible  <bruno@clisp.org>
45092
45093         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45094         <stdlib.h>, <string.h>.
45095
45096 2006-07-30  Bruno Haible  <bruno@clisp.org>
45097
45098         * modules/readlink (License): Change to LGPL.
45099
45100 2006-07-30  Bruno Haible  <bruno@clisp.org>
45101
45102         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45103         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45104         set PKGDATADIR to point to it.
45105
45106 2006-07-30  Bruno Haible  <bruno@clisp.org>
45107
45108         * modules/csharpexec (configure.ac): Comment out macro invocation.
45109         * modules/javaexec (configure.ac): Likewise.
45110         * modules/javacomp-script (configure.ac): Likewise.
45111
45112         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45113
45114 2006-07-30  Bruno Haible  <bruno@clisp.org>
45115
45116         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45117         linked-list.
45118
45119 2006-07-30  Bruno Haible  <bruno@clisp.org>
45120
45121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45122
45123 2006-07-30  Bruno Haible  <bruno@clisp.org>
45124
45125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45126         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45127         get removed.
45128
45129 2006-07-29  Bruno Haible  <bruno@clisp.org>
45130
45131         Make it possible for gnulib-tool to work with locally modified or
45132         augmented gnulib repositories.
45133         * gnulib-tool (func_usage): Document --local-dir option.
45134         (local_gnulib_dir): New variable.
45135         Handle --local-dir option.
45136         (func_lookup_file): New function.
45137         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45138         (func_get_description, func_get_filelist, func_get_description,
45139         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45140         func_get_automake_snippet, func_get_include_directive,
45141         func_get_license, func_get_maintainer): Use func_lookup_file.
45142         (func_import, func_create_testdir): Use func_lookup_file.
45143
45144 2006-07-29  Bruno Haible  <bruno@clisp.org>
45145
45146         * modules/setenv (Depends-on): Add unistd.
45147
45148 2006-07-29  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45151
45152 2006-07-29  Bruno Haible  <bruno@clisp.org>
45153
45154         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45155
45156 2006-07-29  Bruno Haible  <bruno@clisp.org>
45157
45158         * gnulib-tool (import, update): If there is no Makefile.am, look at
45159         aclocal.m4, instead of bailing out.
45160
45161 2006-07-29  Bruno Haible  <bruno@clisp.org>
45162
45163         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45164         Categorize the options by when they are useful.
45165
45166 2006-07-29  Bruno Haible  <bruno@clisp.org>
45167
45168         * gnulib-tool (func_usage): Document option --no-libtool.
45169         Handle option --no-libtool.
45170         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45171         for changed semantics of $libtool variable.
45172         (func_import): Likewise. If libtool is not used, show this through
45173         an option --no-libtool.
45174         (func_create_testdir): Update.
45175
45176 2006-07-29  Bruno Haible  <bruno@clisp.org>
45177
45178         * gnulib-tool (func_import): Extend error message about missing
45179         --doc-base.
45180
45181 2006-07-29  Bruno Haible  <bruno@clisp.org>
45182
45183         * gnulib-tool (func_import): Don't create the $docbase directory if
45184         there is no file to store there.
45185
45186 2006-07-29  Bruno Haible  <bruno@clisp.org>
45187
45188         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45189         relevant, look for configure.ac there, not in the current directory.
45190         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45191
45192 2006-07-29  Bruno Haible  <bruno@clisp.org>
45193
45194         * gnulib-tool (SORT): New variable.
45195         (func_usage): Undocument --assume-autoconf option.
45196         Remove --assume-autoconf option handling.
45197         (autoconf_minversion): Determine from the contents of configure.ac.
45198         (func_import): Remove autoconf_minversion handling.
45199         Suggested by Eric Blake.
45200
45201 2006-07-29  Bruno Haible  <bruno@clisp.org>
45202
45203         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45204
45205 2006-07-29  Bruno Haible  <bruno@clisp.org>
45206
45207         * config/srclist.txt (*setenv.[ch]): Remove rules.
45208
45209 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45210
45211         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45212
45213 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45214
45215         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45216         arpa/inet.h.
45217
45218 2006-07-28  Simon Josefsson  <jas@extundo.com>
45219
45220         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45221         * modules/inet_pton (Depends-on): Likewise.
45222
45223 2006-07-28  Simon Josefsson  <jas@extundo.com>
45224
45225         * m4/netinet_in_h.m4: New file.
45226
45227 2006-07-28  Simon Josefsson  <jas@extundo.com>
45228
45229         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45230         #include's.
45231
45232 2006-07-28  Simon Josefsson  <jas@extundo.com>
45233
45234         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45235         #include's.
45236
45237 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45238
45239         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45240         setgid on directories only if they set these bits.
45241         * lib/modechange.h: Remove obsolete comment about masks.
45242
45243 2006-07-28  Eric Blake  <ebb9@byu.net>
45244
45245         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45246         macro expansion.
45247
45248 2006-07-28  Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45251
45252 2006-07-28  Bruno Haible  <bruno@clisp.org>
45253
45254         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45255
45256 2006-07-28  Bruno Haible  <bruno@clisp.org>
45257
45258         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45259         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45260         Define fallbacks.
45261         Avoids link error on FreeBSD 4.x.
45262         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45263
45264         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45265         encoding.
45266         * lib/mbswidth.c (iswcntrl): Likewise.
45267
45268 2006-07-27  Bruno Haible  <bruno@clisp.org>
45269
45270         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45271         test.
45272
45273 2006-07-27  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45276         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45277         defined.
45278
45279 2006-07-26  Eric Blake  <ebb9@byu.net>
45280
45281         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45282
45283 2006-07-26  Eric Blake  <ebb9@byu.net>
45284
45285         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45286         like mingw that lack mkstemp.
45287         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45288         avoid compilation warning on mingw.
45289
45290 2006-07-26  Bruno Haible  <bruno@clisp.org>
45291
45292         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45293         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45294         INT_FAST*_MIN, INTPTR_MIN.
45295
45296 2006-07-25  Bruno Haible  <bruno@clisp.org>
45297
45298         * modules/version-etc (Depends-on): Add stdarg.
45299
45300 2006-07-25  Bruno Haible  <bruno@clisp.org>
45301
45302         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45303         complex commands.
45304
45305 2006-07-25  Bruno Haible  <bruno@clisp.org>
45306
45307         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45308         defined in <stdarg.h> or config.h.
45309
45310 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45311
45312         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45313         (gl_STDIO_SAFER): Remove.
45314
45315 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45316
45317         * MODULES.html.sh (File stream based Input/Output):
45318         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45319         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45320         * modules/fopen-safer, modules/tmpfile-safer: New files.
45321         * modules/stdio-safer: Remove.
45322
45323 2006-07-24  Bruno Haible  <bruno@clisp.org>
45324
45325         * modules/tmpdir: New file.
45326         * MODULES.html.sh (File system functions): Add it.
45327
45328 2006-07-24  Bruno Haible  <bruno@clisp.org>
45329
45330         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45331         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45332
45333 2006-07-24  Bruno Haible  <bruno@clisp.org>
45334
45335         * modules/clean-temp: New file.
45336
45337 2006-07-24  Bruno Haible  <bruno@clisp.org>
45338
45339         * m4/tmpdir.m4: New file, from GNU gettext.
45340
45341 2006-07-24  Bruno Haible  <bruno@clisp.org>
45342
45343         * lib/tmpdir.h: New file, from GNU gettext.
45344         * lib/tmpdir.c: New file, from GNU gettext.
45345
45346 2006-07-24  Bruno Haible  <bruno@clisp.org>
45347
45348         * lib/clean-temp.h: New file, from GNU gettext.
45349         * lib/clean-temp.c: New file, from GNU gettext.
45350
45351 2006-07-23  Eric Blake  <ebb9@byu.net>
45352
45353         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45354         (Depends-on): Add binary-io.
45355
45356 2006-07-23  Eric Blake  <ebb9@byu.net>
45357
45358         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45359
45360 2006-07-23  Eric Blake  <ebb9@byu.net>
45361
45362         * lib/tmpfile-safer.c: New file.
45363         * lib/stdio-safer.h (fopen_safer): Add prototype.
45364         * lib/stdio--.h (tmpfile): Make safer.
45365
45366 2006-07-23  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45369         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45370         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45371         gl_linked_remove_at): Use it.
45372
45373 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45374         and Simon Josefsson <jas@extundo.com>
45375
45376         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45377
45378         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45379
45380 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45381
45382         * modules/close-stream: New file.
45383         * modules/closeout (Description): Make it clear that it exits
45384         with a diagnostic on error.
45385         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45386         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45387
45388 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45389
45390         * m4/close-stream.m4: New file.
45391
45392 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45393
45394         * lib/close-stream.c, lib/close-stream.h: New files.
45395
45396 2006-07-22  Bruno Haible  <bruno@clisp.org>
45397
45398         Merge from GNU gettext 0.15.
45399
45400         2006-05-01  Bruno Haible  <bruno@clisp.org>
45401
45402                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45403
45404         2006-07-22  Bruno Haible  <bruno@clisp.org>
45405
45406                 * modules/javaversion: New file.
45407                 * MODULES.html.sh (Java): Add javaversion.
45408
45409         2006-03-12  Bruno Haible  <bruno@clisp.org>
45410
45411                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45412
45413         2005-12-04  Bruno Haible  <bruno@clisp.org>
45414
45415                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45416                 (untested).
45417
45418         2006-06-21  Bruno Haible  <bruno@clisp.org>
45419
45420                 Avoid warnings from recent versions of mcs.
45421                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45422                 -o, -L, -r any more. Use options documented since mcs-1.0
45423                 instead. Similarly for -g.
45424
45425         2005-12-04  Bruno Haible  <bruno@clisp.org>
45426
45427                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45428                 .resources, not .resource.
45429
45430         2005-07-09  Bruno Haible  <bruno@clisp.org>
45431
45432                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45433                 add a .dll suffix.
45434                 Reported by Mark Junker <mjscod@gmx.de>.
45435
45436         2006-07-22  Bruno Haible  <bruno@clisp.org>
45437
45438                 * modules/gettext: Upgrade to gettext-0.15.
45439                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45440                 m4/visibility.m4.
45441                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45442
45443 2006-07-22  Bruno Haible  <bruno@clisp.org>
45444
45445         Merge from GNU gettext 0.15.
45446
45447         2006-03-25  Bruno Haible  <bruno@clisp.org>
45448
45449                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45450
45451         2006-07-21  Bruno Haible  <bruno@clisp.org>
45452
45453                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45454                 "1.1".
45455
45456         2006-05-09  Bruno Haible  <bruno@clisp.org>
45457
45458                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45459                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45460                 for the conftestver execution.
45461
45462         2006-05-01  Bruno Haible  <bruno@clisp.org>
45463
45464                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45465                 optional target-version argument. Verify that the compiler
45466                 groks source of the specified source-version, or add -source
45467                 option as necessary. Verify that the compiler produces
45468                 bytecode in the specified target-version, or add -target and
45469                 -source options as necessary. Make the result of the test
45470                 available as variable CONF_JAVAC. Also log error output in
45471                 config.log.
45472
45473         2006-03-11  Bruno Haible  <bruno@clisp.org>
45474
45475                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45476
45477         2006-05-09  Bruno Haible  <bruno@clisp.org>
45478
45479                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45480                 CLASSPATH_SEPARATOR to a semicolon.
45481
45482         2006-03-12  Bruno Haible  <bruno@clisp.org>
45483
45484                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45485                 available as variable CONF_JAVA, for subsequent autoconf
45486                 tests. Also log error output in config.log.
45487
45488         2006-07-19  Bruno Haible  <bruno@clisp.org>
45489
45490                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45491                 that getline works on glibc2 systems. Needed to avoid trouble
45492                 in relocatable.c.
45493                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45494
45495         2005-12-04  Bruno Haible  <bruno@clisp.org>
45496
45497                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45498                 launcher (untested).
45499
45500         2005-12-04  Bruno Haible  <bruno@clisp.org>
45501
45502                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45503
45504         2006-07-22  Bruno Haible  <bruno@clisp.org>
45505
45506                 * gettext.m4: Update from GNU gettext-0.15.
45507                 * nls.m4: Likewise.
45508                 * po.m4: Likewise.
45509                 * inttypes-pri.m4: Likewise.
45510                 * inttypes-h.m4: Renamed from inttypes.m4.
45511                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45512
45513 2006-07-22  Bruno Haible  <bruno@clisp.org>
45514
45515         Merge from GNU gettext 0.15.
45516
45517         2005-07-05  Bruno Haible  <bruno@clisp.org>
45518
45519                 * printf-args.c (printf_fetchargs): Work around broken
45520                 definition of wint_t on mingw.
45521
45522         2005-02-12  Bruno Haible  <bruno@clisp.org>
45523
45524                 * xallocsa.h: Add extern "C" for C++.
45525
45526         2006-05-17  Bruno Haible  <bruno@clisp.org>
45527
45528                 Cygwin portability.
45529                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45530
45531         2006-04-30  Bruno Haible  <bruno@clisp.org>
45532
45533                 * progreloc.c: Include <mach-o/dyld.h> if available.
45534                 (find_executable): Use _NSGetExecutablePath when possible.
45535
45536         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45537
45538                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45539                 function.
45540
45541         2005-12-29  Bruno Haible  <bruno@clisp.org>
45542
45543                 * progreloc.c (set_program_name_and_installdir): Fix
45544                 compilation error.
45545
45546         2005-12-04  Bruno Haible  <bruno@clisp.org>
45547
45548                 Cygwin portability.
45549                 * progreloc.c: Include <windows.h> also on Cygwin.
45550                 (find_executable): Add support for Cygwin.
45551                 (set_program_name_and_installdir): Handle also platforms with
45552                 nonempty EXEEXT.
45553
45554         2006-07-11  Bruno Haible  <bruno@clisp.org>
45555
45556                 * javacomp.c: Fix a comment.
45557                 Reported by Jim Meyering.
45558
45559         2006-04-30  Bruno Haible  <bruno@clisp.org>
45560
45561                 * javacomp.h (compile_java_class): Add source_version,
45562                 target_version arguments.
45563                 * javacomp.c: Rewritten to choose only a compiler that
45564                 respects the specified source_version and target_version.
45565
45566         2006-06-27  Bruno Haible  <bruno@clisp.org>
45567
45568                 Assume correct S_ISDIR macro.
45569                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45570
45571         2006-07-22  Bruno Haible  <bruno@clisp.org>
45572
45573                 * javaversion.h: New file, from GNU gettext.
45574                 * javaversion.c: New file, from GNU gettext.
45575                 * javaversion.java: New file, from GNU gettext.
45576                 * javaversion.class: New file, from GNU gettext.
45577
45578         2006-05-17  Bruno Haible  <bruno@clisp.org>
45579
45580                 Cygwin portability.
45581                 * javaexec.c (execute_java_class): Test for jview program
45582                 also on Cygwin.
45583
45584         2006-04-09  Bruno Haible  <bruno@clisp.org>
45585
45586                 * fatal-signal.c: Don't include string.h.
45587                 (at_fatal_signal): Use a copying loop instead of memcpy.
45588
45589         2005-12-04  Bruno Haible  <bruno@clisp.org>
45590
45591                 * csharpexec.c: Add support for 'clix' launcher (untested).
45592                 (execute_csharp_using_sscli): New function.
45593                 (execute_csharp_program): Call it.
45594
45595         2006-06-21  Bruno Haible  <bruno@clisp.org>
45596
45597                 Avoid warnings from recent versions of mcs.
45598                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45599                 -o, -L, -r any more. Use options documented since mcs-1.0
45600                 instead. Similarly for -g.
45601
45602         2005-07-09  Bruno Haible  <bruno@clisp.org>
45603
45604                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45605                 add a .dll suffix.
45606                 Reported by Mark Junker <mjscod@gmx.de>.
45607
45608         2006-06-17  Bruno Haible  <bruno@clisp.org>
45609
45610                 * config.charset: Update for NetBSD 3.0.
45611
45612         2006-05-17  Bruno Haible  <bruno@clisp.org>
45613
45614                 Cygwin portability.
45615                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45616
45617         2006-05-16  Bruno Haible  <bruno@clisp.org>
45618
45619                 * localcharset.c [CYGWIN]: Include <windows.h>.
45620                 (get_charset_aliases): For Cygwin, return the same CPxxx
45621                 aliases list as under WIN32.
45622                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45623                 the environment variables. Fall back to GetACP().
45624
45625         2006-04-05  Bruno Haible  <bruno@clisp.org>
45626
45627                 * config.charset: Update Juan Manuel Guerrero's address.
45628
45629         2005-02-12  Bruno Haible  <bruno@clisp.org>
45630
45631                 * allocsa.h: Add extern "C" for C++.
45632
45633         2005-02-10  Bruno Haible  <bruno@clisp.org>
45634
45635                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45636                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45637
45638         2006-07-22  Bruno Haible  <bruno@clisp.org>
45639
45640                 * gettext.h: Update to GNU gettext-0.15.
45641
45642 2006-07-22  Bruno Haible  <bruno@clisp.org>
45643
45644         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45645         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45646         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45647
45648 2006-07-21  Eric Blake  <ebb9@byu.net>
45649
45650         * modules/stdlib-safer: New file.
45651         * MODULES.html.sh (File stream based Input/Output): Add
45652         stdlib-safer.
45653
45654 2006-07-21  Eric Blake  <ebb9@byu.net>
45655
45656         * lib/stdlib-safer.h: New file from coreutils, required by
45657         stdlib--.h.
45658
45659 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45660
45661         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45662
45663 2006-07-20  Bruno Haible  <bruno@clisp.org>
45664
45665         * gnulib-tool: Recognize new option --assume-autoconf.
45666         (autoconf_minversion): New variable.
45667         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45668
45669 2006-07-20  Bruno Haible  <bruno@clisp.org>
45670
45671         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45672
45673 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45674
45675         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45676         Reindent and repaginate.
45677
45678 2006-07-19  Derek Price  <derek@ximbiot.com>
45679
45680         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45681         Correct grammar.
45682
45683 2006-07-17  Bruno Haible  <bruno@clisp.org>
45684
45685         * modules/list: New file.
45686         * modules/array-list: New file.
45687         * modules/carray-list, modules/carray-list-tests: New files.
45688         * modules/linked-list, modules/linked-list-tests: New files.
45689         * modules/avltree-list, modules/avltree-list-tests: New files.
45690         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45691         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45692         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45693         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45694         * modules/oset: New file.
45695         * modules/array-oset: New file.
45696         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45697         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45698         * tests/test-carray_list.c: New file.
45699         * tests/test-linked_list.c: New file.
45700         * tests/test-avltree_list.c: New file.
45701         * tests/test-rbtree_list.c: New file.
45702         * tests/test-linkedhash_list.c: New file.
45703         * tests/test-avltreehash_list.c: New file.
45704         * tests/test-rbtreehash_list.c: New file.
45705         * tests/test-avltree_oset.c: New file.
45706         * tests/test-rbtree_oset.c: New file.
45707         * MODULES.html.sh (Container data structures): New section.
45708
45709 2006-07-17  Bruno Haible  <bruno@clisp.org>
45710
45711         * m4/gl_list.m4: New file.
45712
45713 2006-07-17  Bruno Haible  <bruno@clisp.org>
45714
45715         * lib/gl_list.h: New file.
45716         * lib/gl_list.c: New file.
45717         * lib/gl_array_list.h: New file.
45718         * lib/gl_array_list.c: New file.
45719         * lib/gl_carray_list.h: New file.
45720         * lib/gl_carray_list.c: New file.
45721         * lib/gl_linked_list.h: New file.
45722         * lib/gl_linked_list.c: New file.
45723         * lib/gl_anylinked_list1.h: New file.
45724         * lib/gl_anylinked_list2.h: New file.
45725         * lib/gl_avltree_list.h: New file.
45726         * lib/gl_avltree_list.c: New file.
45727         * lib/gl_anyavltree_list1.h: New file.
45728         * lib/gl_anyavltree_list2.h: New file.
45729         * lib/gl_rbtree_list.h: New file.
45730         * lib/gl_rbtree_list.c: New file.
45731         * lib/gl_anyrbtree_list1.h: New file.
45732         * lib/gl_anyrbtree_list2.h: New file.
45733         * lib/gl_anytree_list1.h: New file.
45734         * lib/gl_anytree_list2.h: New file.
45735         * lib/gl_linkedhash_list.h: New file.
45736         * lib/gl_linkedhash_list.c: New file.
45737         * lib/gl_anyhash_list1.h: New file.
45738         * lib/gl_anyhash_list2.h: New file.
45739         * lib/gl_avltreehash_list.h: New file.
45740         * lib/gl_avltreehash_list.c: New file.
45741         * lib/gl_rbtreehash_list.h: New file.
45742         * lib/gl_rbtreehash_list.c: New file.
45743         * lib/gl_anytreehash_list1.h: New file.
45744         * lib/gl_anytreehash_list2.h: New file.
45745
45746         * lib/gl_oset.h: New file.
45747         * lib/gl_oset.c: New file.
45748         * lib/gl_array_oset.h: New file.
45749         * lib/gl_array_oset.c: New file.
45750         * lib/gl_avltree_oset.h: New file.
45751         * lib/gl_avltree_oset.c: New file.
45752         * lib/gl_rbtree_oset.h: New file.
45753         * lib/gl_rbtree_oset.c: New file.
45754         * lib/gl_anytree_oset.h: New file.
45755
45756 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45757
45758         * m4/mkancesdirs.m4: New file.
45759         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45760         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45761         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45762         it.
45763
45764 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45765
45766         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45767         * lib/mkancesdirs.h: New files.
45768         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45769         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45770         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45771         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45772         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45773         callers changed.  Revamp internals significantly, by not
45774         attempting to create directories that are temporarily more
45775         permissive than the final results.  Do not attempt to use
45776         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45777         This removes some race conditions, fixes some bugs, and simplifies
45778         things.  Use new dirchownmod function to do owner and mode changes.
45779         * lib/mkdir-p.h: Likewise.
45780         * lib/modechange.c (octal_to_mode): New function.
45781         (struct mode_change): New member mentioned.
45782         (make_node_op_equals): New arg mentioned.  All callers changed.
45783         (mode_compile): Keep track of which mode bits the user has explicitly
45784         mentioned.
45785         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45786         New arg PMODE_BITS, to keep track of which mode bits the user
45787         mentioned; it treats S_ISUID and S_ISGID speciall.
45788         All callers changed.
45789         * lib/modechange.h: Likewise.
45790
45791 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45792
45793         * MODULES.html.sh: Add mkancestors.
45794         * modules/mkancesdirs: New module.
45795         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45796         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45797         The chdir-safer and afs files are now orphans; I'll remove them
45798         unless someone speaks up.
45799         Add lib/dirchownmod.c, lib/dirchownmod.h.
45800         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45801         Add lchown, mkancesdirs.
45802         (Maintainer): Add self.
45803
45804 2006-07-15  Karl Berry  <karl@gnu.org>
45805
45806         * gnulib-tool: help message wording/arrangement.
45807
45808 2006-07-14  Simon Josefsson  <jas@extundo.com>
45809
45810         * doc/gnulib.texi (Libtool and Windows): New section.
45811
45812 2006-07-12  Simon Josefsson  <jas@extundo.com>
45813
45814         * modules/gendocs (License): Fix license, approved by Karl.
45815
45816 2006-07-12  Eric Blake  <ebb9@byu.net>
45817
45818         * MODULES.html.sh: Add gendocs.
45819
45820 2006-07-11  Eric Blake  <ebb9@byu.net>
45821
45822         * modules/fdl: New module, to install doc/fdl.texi.
45823         * MODULES.html.sh: Add new section for documentation modules.
45824         * gnulib-tool: Avoid space-tab.
45825         (--doc-base): New option, to manage files from doc.
45826
45827 2006-07-11  Eric Blake  <ebb9@byu.net>
45828
45829         * m4/absolute-header.m4: Fix comments to match recent change.
45830
45831 2006-07-11  Eric Blake  <ebb9@byu.net>
45832
45833         * gnulib-tool: List --doc-base before --tests-base.
45834
45835 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45836
45837         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45838
45839 2006-07-11  Bruno Haible  <bruno@clisp.org>
45840
45841         * README: Mention where to put documentation.
45842
45843 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45844
45845         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45846
45847 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45848
45849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45850         to stdint.m4.
45851
45852 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45853
45854         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45855         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45856         "no/such/file/stdint.h" when there is no such file, so that
45857         the resulting C code can be parsed by dodgy compilers.
45858         Problems reported by Bob Proulx.
45859
45860 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45861
45862         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45863         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45864         macros into the GNU _D_EXACT_NAMLEN.
45865         * lib/savedir.c:  Likewise.
45866         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45867
45868 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45869         and Paul Eggert  <eggert@cs.ucla.edu>
45870
45871         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45872         * m4/savedir.m4:
45873         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45874         macros into the GNU _D_EXACT_NAMLEN.
45875
45876 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45877
45878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45879         around the absolute name, to work around a problem with the HP-UX
45880         11.23 native C compiler, reported by Bob Proulx.
45881
45882 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45883
45884         * doc/maintain.texi, make-stds.texi: Sync from
45885         <http://savannah.gnu.org/projects/gnustandards>.
45886
45887 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45888
45889         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45890
45891 2006-07-09  Jim Meyering  <jim@meyering.net>
45892
45893         * m4/glob.m4: Remove a doubled word in a comment.
45894
45895 2006-07-09  Jim Meyering  <jim@meyering.net>
45896
45897         * lib/argp-pv.c: Remove a doubled word in a comment.
45898         * lib/check-version.c (check_version): Likewise.
45899         * lib/javacomp.c (compile_java_class): Likewise.
45900
45901 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45902
45903         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45904         for the benefit of people using Autoconf 2.60.  If you want to
45905         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45906         (or m4/onceonly.m4, if pre-2.57) manually.
45907
45908 2006-07-08  Jim Meyering  <jim@meyering.net>
45909
45910         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45911         comment.
45912         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45913         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45914         comment.
45915
45916 2006-07-08  Jim Meyering  <jim@meyering.net>
45917
45918         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45919
45920 2006-07-07  Simon Josefsson  <jas@extundo.com>
45921
45922         * tests/test-crc.c: Change expected crc value, the test vector
45923         were probably computed using the old broken crc.c?
45924
45925 2006-07-06  Simon Josefsson  <jas@extundo.com>
45926
45927         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45928         now the canonical place for the M4 file).
45929
45930         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45931         from the sys_socket dependency now.
45932
45933         * modules/inet_pton (Files): Ditto.
45934
45935         * modules/inet_ntop (Files): Ditto.
45936
45937 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45938
45939         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45940         not gl_PREREQ_GETUSERSHELL.
45941
45942 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45943
45944         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45945         with only one argument, for Autoconf 2.60.
45946         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45947         expand to nothing, so add a shell command to avoid syntax error.
45948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45949
45950 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45951
45952         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45953
45954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45955
45956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45957         no longer needed.  Check for isblank decl.
45958         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45959         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45960         of existence.
45961
45962 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * lib/getloadavg.c: Use __VMS, not VMS.
45965         * lib/getopt.c: Likewise.
45966         * lib/getpagesize.h: Likewise.
45967         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45968         and probably does not work.
45969
45970 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45971
45972         * lib/.cppi-disable: Add wcwidth.
45973         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45974         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45975         (ISGRAPH): Remove.  All uses changed to isgraph.
45976         (FOLD) [!defined _LIBC]: Remove special case.
45977         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45978         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45979         HAVE_ISBLANK.
45980         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45981         case.
45982
45983 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45984
45985         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45986         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45987         brackets.  Other minor changes to suppress some compiler
45988         warnings.
45989
45990 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45991         and Paul Eggert  <eggert@cs.ucla.edu>
45992
45993         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45994         of invoking obsolescent AC_HEADER_DIRENT macro.
45995         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45996         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45997         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45999         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46000         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46001         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46002         * m4/readdir.m4: Remove; no longer needed.
46003
46004 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46005         and Paul Eggert  <eggert@cs.ucla.edu>
46006
46007         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46008         Don't worry about this obsolete case any more.
46009         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46010         directories.
46011         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46012         worry about this obsolete case any more.
46013         * lib/fts.c: Likewise.
46014         * lib/getcwd.c: Likewise.
46015         * lib/glob.h: Likewise.
46016         * lib/savedir.c: Likewise.
46017
46018 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46019
46020         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46021         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46022         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46023         needed.
46024         All uses removed.
46025         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46026         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46027         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46028         needed.
46029         * m4/getdate.m4 (gl_GETDATE): Likewise.
46030         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46031         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46032         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46033         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46034         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46035         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46036         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46037         needed.
46038
46039 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46040
46041         * lib/memcasecmp.c: Include <limits.h>.
46042         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46043         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46044         Don't assume isdigit succeeds only on '0' through '9'.
46045
46046 2006-07-05  Eric Blake  <ebb9@byu.net>
46047
46048         * modules/getaddrinfo (Depends-on): Add snprintf.
46049
46050 2006-07-05  Eric Blake  <ebb9@byu.net>
46051
46052         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46053         to avoid 'header present but could not be compiled' on cygwin.
46054
46055 2006-07-05  Eric Blake  <ebb9@byu.net>
46056
46057         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46058         missing from netdb.h.
46059         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46060
46061 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46062
46063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46064         no longer needed.
46065         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46066         * m4/getdate.m4 (gl_GETDATE): Likewise.
46067         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46068         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46069         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46070         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46072
46073 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46074
46075         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46076         All uses of is_space replaced by isspace.
46077         * lib/exit.h: Don't talk about STDC_HEADERS.
46078         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46079         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46080         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46081         replaced by isprint etc.
46082         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46083         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46084         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46085         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46086         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46087         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46088
46089 2006-07-05  Bruno Haible  <bruno@clisp.org>
46090
46091         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46092         the function exists, before testing against AIX.
46093         Reported by Martin Lambers <marlam@marlam.de>.
46094
46095 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46096
46097         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46098         From Mark D. Baushke.
46099
46100 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46101
46102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46103         to the absolute name, not just one, to bypass Sun C 5.8's
46104         "warning: #include of /usr/include/... may be non-portable".
46105
46106 2006-07-04  Eric Blake  <ebb9@byu.net>
46107
46108         * modules/dirname-tests: New test module.
46109         * tests/test-dirname.c: New file, replacing dirname.c
46110         TEST_DIRNAME section that was recently deleted.
46111
46112 2006-07-04  Bruno Haible  <bruno@clisp.org>
46113
46114         Assume ANSI C header files and <ctype.h> functions.
46115         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46116         (mbsnwidth): Use isprint, iscntrl instead.
46117
46118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         Merge from coreutils.
46121         * MODULES.html.sh: Add xstrtold.
46122         * modules/xstrtold: New file.
46123         * modules/cycle-check (Files): Add lib/same-inode.h.
46124         * modules/dirname (Files): Add m4/double-slash-root.m4.
46125         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46126         * modules/mkdir-p (Files): Add lib/same-inode.h.
46127         * modules/same (Files): Add lib/same-inode.h.
46128
46129 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46130
46131         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46132         This is to keep the terminology clean; POSIX talks about
46133         "absolute pathnames", not "full pathnames", but the GNU
46134         Coding Standards say to use "path" for something else;
46135         so use "absolute" to keep both sides happy.
46136         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46137         Set gl_absolute_header, not gl_full_header_path.
46138         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46139         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46140         All uses changed.
46141
46142         Merge from coreutils.
46143
46144         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46145
46146         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46147         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46148         want to require the building of c-strtod.o.
46149         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46150         needs -lm directly.
46151         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46152
46153         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46154
46155         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46156         --as-needed option if available.  Problem reported by Albert Chin in
46157         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46158         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46159         cc merely issues a bunch of annoying warnings for --as-needed
46160         (this problem was reported by Bob Proulx).  Also, try linking with
46161         -lm to detect a bug in binutils 2.16 (this problem was reported
46162         by Ralf Wildenhues).
46163
46164         2006-06-18  Jim Meyering  <jim@meyering.net>
46165
46166         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46167         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46168         macro.
46169         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46170         also check for glibc-2.4's abort-inducing bug.
46171
46172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46173         Low-probability clean-up should be to use rmdir to get rid of
46174         the just-created directory, not unlink.
46175
46176         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46177         configure fail, and request a bug report to inform us about it.
46178         Add a comment that, barring reports to the contrary, in 2007 we'll
46179         assume ftruncate is universally available.
46180
46181         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46182
46183         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46184
46185         2006-03-12  Jim Meyering  <jim@meyering.net>
46186
46187         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46188         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46189         * m4/same.m4 (gl_SAME): Likewise.
46190         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46191
46192         2006-03-11  Eric Blake  <ebb9@byu.net>
46193
46194         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46195         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46196         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46197         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46198
46199 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46200
46201         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46202         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46203         reported by Mark D. Baushke, one in
46204         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46205
46206         Merge from coreutils.
46207
46208         * lib/.cppi-disable: Add stdint_.h.
46209         * lib/.cvsignore: Add stdint.h.
46210
46211         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46212
46213         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46214         both double and long double versions.
46215         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46216         * lib/xstrtold.c: New file.
46217         * lib/xstrtod.h (xstrtold): New decl.
46218
46219         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46220
46221         * lib/filemode.c (setst): Remove.
46222         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46223         (arguably) clearer, and the generated code is a bit smaller on my
46224         Debian GNU/Linux stable x86 host.
46225
46226         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46227
46228         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46229         Assume that filemode.h includes sys/types.h and sys/stat.h.
46230         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46231         (ftypelet): Reorder to put common cases first, for efficiency.
46232         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46233         to do 'M'.
46234         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46235         of 10, for compatibility with FreeBSD.  All callers changed.
46236         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46237         types that can't be deduced solely from st_mode.  First arg is now a
46238         const pointer.
46239         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46240         (strmode): Renamed from mode_string.
46241         (filemodestring): New decl.
46242         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46243         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46244         needed.
46245         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46246
46247         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46248
46249         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46250         fsusage.h now does that.  Include fsusage.h first, to test interface.
46251         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46252         at most one method (the old code could have generated decls that
46253         didn't conform to C89, not that this was ever exercised).
46254         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46255
46256         2006-03-19  Jim Meyering  <jim@meyering.net>
46257
46258         Work even in a chroot where d_ino values for entries in "/"
46259         don't match the stat.st_ino values for the same names.
46260         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46261         number, iterate through all entries again, using lstat instead.
46262         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46263         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46264
46265         * lib/getcwd.c (__getcwd): Clarify a comment.
46266         Use memcpy in place of a call to strcpy.
46267
46268         2006-03-12  Jim Meyering  <jim@meyering.net>
46269
46270         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46271         matches that of the current directory (which we're about to chdir ".."
46272         out of), then save the dev-ino of the parent, instead.
46273
46274         * lib/same-inode.h (SAME_INODE): New file/macro.
46275         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46276         Include "same-inode.h", instead.
46277         * lib/same.c: Likewise.
46278         * lib/cycle-check.h: Include "same-inode.h".
46279         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46280         * lib/cycle-check.c (SAME_INODE): Remove definition.
46281         * lib/root-dev-ino.h: Include "same-inode.h".
46282
46283         2006-03-11  Eric Blake  <ebb9@byu.net>
46284
46285         * lib/same.c (same_name): s/base_name/last_component/
46286         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46287         * lib/filenamecat.c (file_name_concat): Likewise.
46288
46289         2006-03-11  Eric Blake  <ebb9@byu.net>,
46290                     Paul Eggert  <eggert@cs.ucla.edu>
46291
46292         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46293         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46294         drive prefix.
46295         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46296         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46297         (last_component): New method.
46298         * lib/dirname.c (dir_len): Determine when drive letters need a
46299         subsequent slash.  Preserve // when it is special.
46300         (dir_name): Don't append dot when drive letter is absolute.
46301         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46302         * lib/basename.c (base_name): New semantics - malloc the result.
46303         Preserve // when it is special.  Preserve relative files that look
46304         like drive letters.
46305         (base_len): Preserve // when it is special.
46306         (last_component): New method, similar to old base_name semantics.
46307         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46308         base_name.  Strip redundant slashes from ///.
46309
46310 2006-07-03  Jim Meyering  <jim@meyering.net>
46311
46312         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46313         macro is used before the first cycle_check call.
46314
46315 2006-07-03  Eric Blake  <ebb9@byu.net>
46316
46317         * modules/dirname (Depends-on): Add xstrndup.
46318
46319 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46320
46321         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46322         test cases, so that config.log is a bit easier to follow.
46323
46324 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46325
46326         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46327         both are 64 bits, since this seems to be the tradition, and this
46328         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46329         we ever run into a host that prefers long long to long in this
46330         case, we'll need another configure-time test.  Problem reported by
46331         Jim Meyering.
46332
46333 2006-07-02  Eric Blake  <ebb9@byu.net>
46334
46335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46336
46337 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46338
46339         * modules/inttypes (Depends-on): No longer depends on stdint.
46340         * modules/stdint (Description): Say more about assumptions.
46341         Say that the fast types might differ.  Say macros are used.
46342         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46343         (Makefile.am): Revise list of substituted symbols to match
46344         new stdint.m4.
46345         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46346         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46347         * tests/test-stdint.c (verify_same_types)
46348         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46349         the code conforms to C99/C89.
46350         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46351         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46352
46353 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46354
46355         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46356         but fix a bug, by requiring at least 64 bits.
46357         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46358         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46359         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46360         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46361
46362         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46363         changes.  Make 2.59 a prerequisite.  Check and substitute for
46364         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46365         inttypes.h.  Do not use special include files; just use the
46366         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46367         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46368         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46369         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46370         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46371         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46372         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46373         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46374         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46375         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46376         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46377         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46378         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46379         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46380         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46381         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46382         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46383         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46384         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46385         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46386         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46387         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46388         not check for things that C99 does not require, e.g., int8_t.  If
46389         a test isn't needed unless <stdint.h> isn't working, and is
46390         unlikely to be needed for any other reason, then don't do it
46391         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46392         size_t, since we assume C89 freestanding at least.  Do not check
46393         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46394         the right thing even if the types are not defined.  Instead use:
46395         (gl_STDINT_TYPE_PROPERTIES): New macro.
46396         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46397         testing whether <sys/types.h> clashes, as Autoconf does this for
46398         us now.  All uses removed.
46399         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46400         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46401         (gl_CHECK_TYPE_SAME):
46402         Remove; no longer needed.
46403         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46404         exists, since we'll return 0 anyway in that case.
46405         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46406
46407 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46408
46409         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46410         possible collision with system files.
46411         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46412         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46413         WCHAR_MIN and WCHAR_MAX in this case.
46414         (<stddef.h>): Do not include; no longer needed.
46415         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46416         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46417         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46418         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46419         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46420         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46421         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46422         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46423         !defined(__c99))]: Include in this case too, since it's harmless
46424         now.
46425         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46426         dangerous to do so.
46427         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46428         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46429         (_STDINT_MIN, _STDINT_MAX): New macros.
46430         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46431         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46432         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46433         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46434         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46435         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46436         macros, not typedefs; this simplifies things quite a bit.
46437         Use long int for all types narrower than int64_t.
46438         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46439         Define in terms of long long int or int64_t or long int,
46440         not int64_t or int32_t.  This saves some compile-time testing.
46441         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46442         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46443         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46444         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46445         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46446         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46447         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46448         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46449         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46450         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46451         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46452         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46453         undef any previous version and define our own version, for
46454         simplicity and consistency with the new macros for types.
46455         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46456         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46457         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46458         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46459         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46460         @WINT_T_SUFFIX@ to keep things simple here.
46461         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46462         Simplify by assuming typical 8/16/32/64 host, since we're
46463         already doing that elsewhere anyway.
46464         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46465         and assume long long int is 64 bits if available.  This
46466         speeds up 'configure'.
46467
46468 2006-07-01  Eric Blake  <ebb9@byu.net>
46469
46470         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46471         Reported by Andreas Buening.
46472
46473 2006-07-01  Eric Blake  <ebb9@byu.net>
46474
46475         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46476
46477 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46478
46479         * lib/getaddrinfo.c: fixed typo
46480
46481 2006-06-29  Jim Meyering  <jim@meyering.net>
46482
46483         * modules/strftime (Maintainer): Add my name, since with the
46484         FPRINTFTIME changes strftime.c has forked from glibc.
46485
46486 2006-06-29  Eric Blake  <ebb9@byu.net>
46487
46488         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46489
46490 2006-06-29  Eric Blake  <ebb9@byu.net>
46491
46492         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46493
46494 2006-06-29  Eric Blake  <ebb9@byu.net>
46495
46496         * lib/stat_.h: New file.
46497
46498 2006-06-29  Eric Blake  <ebb9@byu.net>
46499
46500         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46501         unused static function.
46502
46503 2006-06-29  Eric Blake  <ebb9@byu.net>
46504
46505         * doc/functions.texi (Function Portability): Document missing lstat
46506         on mingw.
46507
46508 2006-06-29  Eric Blake  <ebb9@byu.net>
46509
46510         * MODULES.html.sh: Add sys_stat.
46511         * modules/sys_stat: New module.
46512         * modules/mkstemp (Depends-on): Add sys_stat.
46513
46514 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46515
46516         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46517
46518 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46519
46520         * m4/c-bs-a.m4: Removed.
46521
46522 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46523
46524         * lib/strftime.c: Assume strftime() exists.
46525
46526 2006-06-29  Derek Price  <derek@ximbiot.com>
46527
46528         * modules/c-bs-a: Removed - \a is C89.
46529         * MODULES.html.sh: Remove c-bs-a.
46530
46531 2006-06-29  Bruno Haible  <bruno@clisp.org>
46532
46533         * modules/wcwidth (License): Change to LGPL.
46534
46535 2006-06-28  Simon Josefsson  <jas@extundo.com>
46536
46537         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46538         on _WIN32.
46539
46540         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46541         getnameinfo.
46542
46543 2006-06-28  Simon Josefsson  <jas@extundo.com>
46544
46545         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46546
46547 2006-06-28  Simon Josefsson  <jas@extundo.com>
46548
46549         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46550         functions there.  It will succeed on Windows XP, but on Windows
46551         2000 and (presumably) earlier, it will fail, and use the internal
46552         re-implementation.
46553         (use_win32_p): New function.
46554         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46555         Support AI_NUMERICSERV to disable getservbyname.
46556         (getnameinfo): New function, only supports
46557         NI_NUMERICHOST|NI_NUMERICSERV for now.
46558
46559         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46560         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46561         getnameinfo.
46562
46563 2006-06-28  Eric Blake  <ebb9@byu.net>
46564
46565         * modules/wcwidth: New file.
46566         * modules/mbchar (Depends-on): Add wcwidth.
46567         * modules/mbswidth (Depends-on): Add wcwidth.
46568         * MODULES.html.sh: Add wcwidth.
46569
46570 2006-06-28  Eric Blake  <ebb9@byu.net>
46571
46572         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46574
46575 2006-06-28  Eric Blake  <ebb9@byu.net>
46576
46577         * lib/xvasprintf.h: Fix comments.
46578
46579 2006-06-28  Eric Blake  <ebb9@byu.net>
46580
46581         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46582         * lib/mbswidth.c (wcwidth): Move from here...
46583         * lib/wcwidth.h: ...to this new file.
46584
46585 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46586
46587         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46588
46589         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46590         it's obsolete.
46591         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46592
46593 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46594
46595         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46596         Autoconf 2.60 says this stuff was obsolete.
46597
46598 2006-06-28  Bruno Haible  <bruno@clisp.org>
46599
46600         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46601
46602 2006-06-28  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46605         gt_TYPE_WCHAR_T.
46606
46607 2006-06-28  Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46610         declaration for wcwidth.
46611         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46612
46613 2006-06-28  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46616         (mkdir): Define using _mkdir.
46617
46618 2006-06-28  Bruno Haible  <bruno@clisp.org>
46619
46620         * lib/getaddrinfo.h: Fix POSIX URL.
46621         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46622         _WIN32.
46623         (use_win32_p): Make static.
46624         (getaddrinfo): Reject service name if it is empty or does not consist
46625         solely of decimal digits, or if its value is > 65535.
46626         (getnameinfo): Remove useless casts.
46627
46628 2006-06-27  Simon Josefsson  <jas@extundo.com>
46629
46630         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46631         Eggert and Martin Lambers.
46632
46633 2006-06-27  Simon Josefsson  <jas@extundo.com>
46634
46635         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46636         Eggert and Martin Lambers.
46637
46638 2006-06-27  Bruno Haible  <bruno@clisp.org>
46639
46640         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46641         result to 0, not to empty.
46642         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46643
46644 2006-06-27  Bruno Haible  <bruno@clisp.org>
46645
46646         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46647
46648 2006-06-26  Simon Josefsson  <jas@extundo.com>
46649
46650         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46651         present.
46652
46653 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46654
46655         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46656         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46658
46659 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46660
46661         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46662
46663 2006-06-26  Bruno Haible  <bruno@clisp.org>
46664
46665         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46666
46667 2006-06-26  Bruno Haible  <bruno@clisp.org>
46668
46669         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46670
46671 2006-06-26  Bruno Haible  <bruno@clisp.org>
46672
46673         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46674         SGI C compiler in pre-C99 mode.
46675         Suggested by Mark D. Baushke and Larry Jones.
46676
46677 2006-06-26  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46680         WCHAR_MAX.
46681         Reported by Mark D. Baushke and Larry Jones.
46682
46683 2006-06-26  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46686         in pre-C99 mode.
46687         Suggested by Mark D. Baushke and Larry Jones.
46688
46689 2006-06-23  Simon Josefsson  <jas@extundo.com>
46690             Bruno Haible  <bruno@clisp.org>
46691
46692         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46693         Emit mostlyclean-local rule.
46694         (func_emit_tests_Makefile_am): Likewise.
46695         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46696
46697 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46698
46699         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46700
46701 2006-06-23  Bruno Haible  <bruno@clisp.org>
46702
46703         * tests/test-stdint.c: Update to match ISO C 99 Technical
46704         Corrigendum 1.
46705
46706 2006-06-23  Bruno Haible  <bruno@clisp.org>
46707
46708         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46709
46710 2006-06-23  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/stdint_.h: Treat IRIX like OpenBSD.
46713
46714 2006-06-23  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46717         ISO C 99 Technical Corrigendum 1.
46718
46719 2006-06-22  Simon Josefsson  <jas@extundo.com>
46720
46721         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46722         MinGW.
46723
46724 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46725
46726         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46727         needed.  Some compiler complained about some of them.  Problem reported
46728         by Larry Jones in
46729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46730
46731 2006-06-21  Simon Josefsson  <jas@extundo.com>
46732
46733         * tests/test-getaddrinfo.c: New file.
46734
46735         * modules/getaddrinfo-tests: New file.
46736
46737         * MODULES.html.sh: Add inet_pton.
46738
46739         * modules/inet_pton: New file.
46740
46741 2006-06-21  Simon Josefsson  <jas@extundo.com>
46742
46743         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46744         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46745         of using the (limited) gnulib implementation on Windows XP.
46746
46747         * m4/inet_pton.m4: New file.
46748
46749 2006-06-21  Simon Josefsson  <jas@extundo.com>
46750
46751         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46752         variable.
46753
46754         * lib/socket_.h: Don't define WINVER.
46755
46756         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46757         slightly modified to work in gnulib.
46758
46759 2006-06-21  Simon Josefsson  <jas@extundo.com>
46760
46761         * doc/gnulib.texi (Windows sockets): Add.
46762
46763 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46764
46765         * lib/read-file.c (fread_file): Start with buffer allocation of
46766         0 bytes rather than 1 byte; this simplifies the code.
46767         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46768         code to free buffer and save/restore errno.
46769         (internal_read_file): Remove unused local.
46770
46771 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46772
46773         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46774         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46775         Problem reported by Denis Excoffier in
46776         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46777
46778 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46779
46780         * modules/sys_socket, modules/socklen: Include sys/types since
46781         FreeBSD 4.x's sys/socket.h needs it.
46782
46783 2006-06-19  Simon Josefsson  <jas@extundo.com>
46784
46785         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46786
46787 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46790
46791 2006-06-19  Bruno Haible  <bruno@clisp.org>
46792
46793         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46794         and FULL_PATH_INTTYPES_H in angle brackets.
46795         Reported by Mark D. Baushke <mdb@gnu.org>.
46796
46797 2006-06-17  Eric Blake  <ebb9@byu.net>
46798
46799         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46800         errno.
46801
46802 2006-06-17  Bruno Haible  <bruno@clisp.org>
46803
46804         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46805         <sys/inttypes.h>.
46806
46807 2006-06-17  Bruno Haible  <bruno@clisp.org>
46808
46809         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46810         whether errno is declared. Assume <errno.h> declares errno.
46811
46812 2006-06-17  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46815
46816 2006-06-17  Bruno Haible  <bruno@clisp.org>
46817
46818         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46819         problem on Solaris 2.5.1.
46820
46821 2006-06-16  Eric Blake  <ebb9@byu.net>
46822
46823         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46824         * lib/unicodeio.c [!defined errno]: Likewise.
46825         * lib/strtol.c [!defined errno]: Likewise.
46826         * lib/strtod.c [!defined errno]: Likewise.
46827
46828 2006-06-15  Eric Blake  <ebb9@byu.net>
46829
46830         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46831
46832 2006-06-15  Eric Blake  <ebb9@byu.net>
46833
46834         * config/srclist.txt (ssize_t.m4): Lose sync.
46835
46836 2006-06-15  Bruno Haible  <bruno@clisp.org>
46837
46838         * modules/stdint (Files): Include m4/full-header-path.m4,
46839         m4/size_max.m4, m4/wchar_t.m4.
46840         (Makefile.am): Many more substitutions.
46841         * modules/stdint-tests: New file.
46842         * tests/test-stdint.c: New file.
46843
46844 2006-06-15  Bruno Haible  <bruno@clisp.org>
46845
46846         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46847         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46848         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46849         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46850         gl_CHECK_TYPE_SAME): New macros.
46851
46852 2006-06-15  Bruno Haible  <bruno@clisp.org>
46853
46854         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46855
46856 2006-06-15  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/stdint_.h: Rewritten to be fully auto-configured.
46859         Fixes bug on HP-UX/IA64.
46860
46861 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46862
46863         * lib/getdate.y (__attribute__): Don't define if already defined.
46864         Problem reported by Larry Jones.
46865         * lib/utimens.c (__attribute__): Likewise.
46866
46867 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46868
46869         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46870         reported by Andreas Schwab.
46871
46872 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46873             Bruno Haible  <bruno@clisp.org>
46874
46875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46876         check for the declaration of strnlen and a run test that exposes the
46877         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46878         rpl_strndup.
46879
46880 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46881             Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46884
46885 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46886
46887         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46888         compile test, for Tru64 4.0D.
46889
46890 2006-05-28  Karl Berry  <karl@gnu.org>
46891
46892         * config/srclist.txt (printf-args.c): lose sync.
46893
46894 2006-05-26  Martin Lambers  <marlam@marlam.de>
46895
46896         * lib/getpass.c: Updates the test for the native W32 API, and adds
46897         missing includes, thus fixing compilation warnings.
46898
46899 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46900
46901         * lib/exclude.c (exclude_fnmatch): New function.
46902         (excluded_file_name): Call exclude_fnmatch.
46903         * lib/exclude.h (excluded_file_name): New prototype
46904
46905 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46906
46907         * lib/tempname.c (small_open, large_open): New macros.
46908         (__open, __open64) [!_LIBC]: Remove.
46909         (__gen_tempname): Use small_open and large_open instead of __open
46910         and __open64.  This fixes a portability bug on HP-UX 11.11i
46911         reported by Simon Wing-Tang in
46912         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46913
46914 2006-05-24  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46917         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46918         Reported by Thorsten Maerz <torte@netztorte.de> via
46919         Aaron Stone <aaron@serendipity.cx>.
46920
46921 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46922
46923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46924         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46925         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46926         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46927         not really conditional on the cache.
46928         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46929
46930 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46931
46932         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46933         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46934         (my_usleep): Don't mishandle maximum value.
46935
46936 2006-05-19  Jim Meyering  <jim@meyering.net>
46937
46938         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46939
46940 2006-05-17  Bruno Haible  <bruno@clisp.org>
46941
46942         Cygwin portability.
46943         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46944
46945 2006-05-17  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/stdint_.h: Fix recognition of Cygwin.
46948
46949 2006-05-15  Bruno Haible  <bruno@clisp.org>
46950
46951         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46952         on libtool patch by Ralf Wildenhues.
46953
46954 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46955
46956         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46957         test for C99 conformance; (bool) 0.5 is an integer constant
46958         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46959         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46960
46961 2006-05-11  Simon Josefsson  <jas@extundo.com>
46962
46963         * m4/xvasprintf.m4: Fix obvious typo.
46964
46965 2006-05-11  Jim Meyering  <jim@meyering.net>
46966
46967         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46968         James Lemley.
46969
46970 2006-05-10  Simon Josefsson  <jas@extundo.com>
46971
46972         * lib/md4.c: Typo fix, update copyright years.
46973         (K1, K2): Don't use L because it turn computations into 64-bit on
46974         64-bit platforms.
46975
46976 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46977
46978         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46979         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46980         unwanted sign propagation, e.g., on hosts with 64-bit int.
46981         There still are some problems with reeelly weird theoretical hosts
46982         (e.g., 33-bit int) but it's not worth worrying about now.
46983         * lib/sha1.c (rol): Likewise.
46984         (K1, K2, K3, K4): Remove unnecessary L suffix.
46985
46986 2006-05-10  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/des.c: Cast to avoid warnings.
46989
46990 2006-05-09  Bruno Haible  <bruno@clisp.org>
46991
46992         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46993         (Depends-on): Depend also on xsize, stdarg.
46994         (configure.ac): Add gl_XVASPRINTF.
46995
46996 2006-05-09  Bruno Haible  <bruno@clisp.org>
46997
46998         * m4/xvasprintf.m4: New file.
46999
47000 2006-05-09  Bruno Haible  <bruno@clisp.org>
47001
47002         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47003         (EOVERFLOW): Define fallback value.
47004         (xstrcat): New function.
47005         (xvasprintf): Recognize the special case of a string concatenation.
47006
47007 2006-05-08  Eric Blake  <ebb9@byu.net>
47008
47009         * gnulib-tool (func_version): Base copyright year on CVS date.
47010         (func_emit_copyright_notice): New function.
47011         (func_emit_lib_Makefile_am): Use it.
47012         (func_emit_tests_Makefile_am): Likewise.
47013         (func_import): Likewise.
47014
47015 2006-05-08  Bruno Haible  <bruno@clisp.org>
47016
47017         * modules/stdarg: New file.
47018         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47019
47020 2006-05-08  Bruno Haible  <bruno@clisp.org>
47021
47022         * m4/stdarg.m4: New file, from GNU gettext.
47023
47024 2006-05-08  Bruno Haible  <bruno@clisp.org>
47025
47026         * config/srclist.txt (build-aux/config.rpath): different from latest
47027         release.
47028
47029 2006-05-08  Bruno Haible  <bruno@clisp.org>
47030
47031         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47032
47033 2006-05-05  Jim Meyering  <jim@meyering.net>
47034
47035         * m4/warning.m4: New file, derived from bison's file by the same name.
47036
47037 2006-05-03  Bruno Haible  <bruno@clisp.org>
47038
47039         * lib/stdint_.h: Shorter URL.
47040         * lib/inttypes.h: Likewise.
47041
47042 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47043
47044         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47045
47046 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47047
47048         * lib/verify.h: Document the internals better.  Most of this change
47049         was written by Bruno Haible.
47050
47051 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47052
47053         * doc/verify.texi: New file, partly based on a proposal by
47054         Bruno Haible.
47055
47056 2006-05-02  Bruno Haible  <bruno@clisp.org>
47057
47058         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47059         test from here...
47060         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47061
47062 2006-04-29  Bruno Haible  <bruno@clisp.org>
47063
47064         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47065         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47066
47067 2006-04-29  Bruno Haible  <bruno@clisp.org>
47068
47069         * gnulib-tool: Make --update option actually work.
47070
47071 2006-04-29  Bruno Haible  <bruno@clisp.org>
47072
47073         * doc/gcd.texi: New file.
47074         * doc/gnulib.texi: Include it.
47075
47076 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47077
47078         * lib/getdate.y (get_date): When adding relative date, start with the
47079         initial time, not with the result of the first mktime call.
47080
47081 2006-04-25  Bruno Haible  <bruno@clisp.org>
47082
47083         * gnulib-tool (func_import): Output the include directives in three
47084         blocks, sorted separately.
47085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47086
47087 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47088
47089         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47090         to define main with arguments, for C++.  Reported by Eric Blake.
47091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47092         Prefer 'int main ()' to 'int main (void)', for C++.
47093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47095         for 'main', for C99 and C++.
47096
47097 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47098
47099         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47100         Don't assume that exit status -1 is valid.
47101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47102         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47103         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47104         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47105         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47106         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47107         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47108         functions can be used without declaring them, or that you can
47109         exit with status -1.
47110         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47111
47112 2006-04-24  Karl Berry  <karl@gnu.org>
47113
47114         * config/srclist.txt (longdouble.m4): sync lost.
47115
47116 2006-04-24  Eric Blake  <ebb9@byu.net>
47117
47118         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47119
47120 2006-04-24  Bruno Haible  <bruno@clisp.org>
47121
47122         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47123         poll() implementation in AIX.
47124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47125
47126 2006-04-24  Bruno Haible  <bruno@clisp.org>
47127
47128         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47129         assigned exactly once.
47130
47131 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47132             Bruno Haible  <bruno@clisp.org>
47133
47134         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47135         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47136         for AM_CPPFLAGS.
47137
47138 2006-04-23  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/copy-file: Depend on unistd.
47141         * modules/execute: Likewise.
47142         * modules/fatal-signal: Likewise.
47143         * modules/findprog: Likewise.
47144         * modules/mkdtemp : Likewise.
47145         * modules/pipe: Likewise.
47146         * modules/wait-process: Likewise.
47147
47148 2006-04-23  Bruno Haible  <bruno@clisp.org>
47149
47150         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47151         condition was already detected.
47152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47153
47154 2006-04-23  Bruno Haible  <bruno@clisp.org>
47155
47156         * lib/copy-file.c: Include <unistd.h> unconditionally.
47157         * lib/execute.c: Likewise.
47158         * lib/fatal-signal.c: Likewise.
47159         * lib/findprog.c: Likewise.
47160         * lib/mkdtemp.c: Likewise.
47161         * lib/pipe.h: Likewise.
47162         * lib/pipe.c: Likewise.
47163         * lib/wait-process.h: Likewise.
47164
47165 2006-04-23  Bruno Haible  <bruno@clisp.org>
47166
47167         * gnulib-tool (func_usage): Fix --import description. Document
47168         --update.
47169         (func_import): Create temporary file in a temporary directory, if
47170         --dry-run is specified. Silence errors from 'grep' when there are no
47171         m4 files in $m4dir.
47172         (func_create_testdir): Silence errors from 'grep' when there are no
47173         m4 files in $m4dir.
47174         Reported by Karl Berry <karl@freefriends.org>.
47175
47176 2006-04-20  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47179         one argument, so that the code will be portable to Autoconf 2.60.
47180         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47181         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47182         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47183
47184 2006-04-19  Derek Price  <derek@ximbiot.com>
47185             Eric Blake  <ebb9@byu.net>
47186
47187         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47188         rather than "/full/path.h".  Update comment to match.  Shorten &
47189         generalize m4_translit call via AS_TR_CPP.
47190
47191 2006-04-19  Derek Price  <derek@ximbiot.com>
47192             Eric Blake  <ebb9@byu.net>
47193
47194         * lib/inttypes.h: Correct grammar in comment.
47195
47196 2006-04-18  Derek Price  <derek@ximbiot.com>
47197             Paul Eggert  <eggert@cs.ucla.edu>
47198
47199         * modules/inttypes: New file.
47200         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47201
47202 2006-04-18  Derek Price  <derek@ximbiot.com>
47203             Paul Eggert  <eggert@cs.ucla.edu>
47204
47205         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47206         New files.
47207
47208 2006-04-18  Derek Price  <derek@ximbiot.com>
47209             Paul Eggert  <eggert@cs.ucla.edu>
47210
47211         * lib/inttypes.h: New file.
47212         * lib/strtoimax.c: Assume <inttypes.h>.
47213
47214 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47217         isn't mounted.  Problem reported by Kir Kolyshkin.
47218
47219 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47220
47221         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47222         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47223         Derek R. Price.
47224         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47225         implementation.
47226
47227 2006-04-12  Eric Blake  <ebb9@byu.net>
47228
47229         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47230         is now done automatically by the corresponding Autoconf macro.
47231
47232 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47233
47234         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47235         time_r.h.
47236
47237 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47238
47239         Merge regex changes from libc, removing some of our
47240         POSIX-conformance changes that were rejected and redoing them in a
47241         less-intrusive way.
47242
47243         * lib/regcomp.c (re_compile_internal, init_dfa):
47244         Length arg is now size_t, not Idx.  All uses changed.
47245         (peek_token): Forward decl now says internal_function.
47246         (__re_error_msgid, __re_error_msgid_idx):
47247         Now static rather than extern with attribute_hidden.
47248         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47249         For some reason libc prefers K&R style defns for external functions.
47250         (regerror) [!defined _LIBC]: Likewise.
47251         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47252         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47253         (build_range_exp, build_collating_symbol):
47254         Use K&R-style defn.
47255         (re_compile_fastmap): Use '\0' to memset, not 0.
47256         (utf8_sb_map): Make the calculations more obvious.
47257         (init_dfa, parse_bracket_exp, build_charclass_op):
47258         Call calloc and cast result, as glibc does.
47259         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47260         (build_range_exp, build_collating_symbol):
47261         Now internal functions.
47262
47263         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47264
47265         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47266         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47267         Don't depend on VMS; depend on __VMS instead, for POSIX
47268         namespace cleanness.
47269         (regoff_t): Define to ssize_t, not long int.
47270
47271         Remove the REG_ macros named below.  Instead, make the old names
47272         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47273         __USE_GNU_REGEX.
47274         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47275         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47276         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47277         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47278         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47279         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47280         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47281         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47282         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47283         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47284         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47285         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47286         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47287         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47288         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47289         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47290         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47291         (REG_NREGS):
47292         Remove.  All uses replaced by the old RE_* names.
47293         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47294         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47295         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47296         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47297         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47298         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47299         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47300         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47301         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47302         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47303         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47304         Don't bother having these macros be independent of each others'
47305         values, since they no longer exist in the POSIX name space.
47306
47307         Rename the following member names back to their old names,
47308         unless !__USE_GNU_REGEX.  All uses changed back.
47309         (buffer): Renamed from re_buffer.
47310         (allocated): Renamed from re_allocated.
47311         (used): Renamed from re_used.
47312         (syntax): Renamed from re_syntax.
47313         (fastmap): Renamed from re_fastmap.
47314         (translate): Renamed from re_translate.
47315         (can_be_null): Renamed from re_can_be_null.
47316         (regs_allocated): Renamed from re_regs_allocated.
47317         (fastmap_accurate): Renamed from re_fastmap_accurate.
47318         (no_sub): Renamed from re_no_sub.
47319         (not_bol): Renamed from re_not_bol.
47320         (not_eol): Renamed from re_not_eol.
47321         (newline_anchor): Renamed from re_newline_anchor.
47322         (num_regs): Renamed from rm_num_regs.
47323         (start): Renamed from rm_start.
47324         (end): Renamed from rm_end.
47325
47326         (free_state): Move up a bit.
47327
47328         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47329         #define to be empty.
47330         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47331         when that is what is intended.
47332         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47333         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47334         (MAX): New macro.
47335         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47336         All uses changed back to re_malloc, etc.  It's now the caller's
47337         responsibility to check for overflow; all callers changed.
47338         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47339         (re_x2nrealloc): Remove.
47340         (free_state): Remove decl.
47341
47342         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47343         (re_set_registers, re_exec):
47344         Use K&R-style defn.
47345
47346         2006-01-31  Roland McGrath  <roland@redhat.com>
47347
47348         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47349         Reported by Mike Frysinger <vapier@gentoo.org>.
47350
47351         2006-01-15  Andreas Jaeger  <aj@suse.de>
47352
47353         [BZ #1950]
47354         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47355         build_wcs_upper_buffer change.
47356         (build_wcs_upper_buffer): Change return type.
47357
47358         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47359
47360         * lib/regex_internal.h: Include <stdint.h> if available.
47361
47362         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47363
47364         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47365
47366         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47367
47368         * lib/regcomp.c: Adjust for changed secondary hash function.
47369
47370         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47371
47372         * lib/regex.h: Pretty printing.
47373         Clean up namespace a bit.
47374
47375         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47376
47377         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47378         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47379
47380         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47381                     Ulrich Drepper  <drepper@redhat.com>
47382
47383         [BZ #1302]
47384         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47385         changed.
47386         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47387
47388         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47389
47390         [BZ #281]
47391         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47392         * lib/regcomp.c: Remove unnecessary uses of
47393         unsigned RE_TRANSLATE_TYPE.
47394         * lib/regex_internal.h: Likewise.
47395         * lib/regex_internal.c: Likewise.
47396         * lib/regexec.c: Likewise.
47397         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47398
47399         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47400
47401         * lib/regexec.c (find_recover_state): Remove unnecessary
47402         initialization.
47403         (transit_state_bkref): Make DFA a const pointer.
47404         (get_subexp): Likewise.
47405         (check_arrival): Likewise.
47406         (update_cur_sifted_state): Likewise.
47407         (re_search_internal): Likewise.
47408         (prune_impossible_nodes): Likewise.
47409         (acquire_init_state_context): Likewise.
47410         (proceed_next_node): Likewise.
47411         (set_regs): Likewise.
47412         (free_fail_stack_return): Likewise.
47413         (check_arrival_expand_ecl): Mark DFA parameter as const.
47414         (check_arrival_expand_ecl_sub): Likewise.
47415         (check_subexp_limits): Likewise.
47416         (sub_epsilon_src_nodes):  Likewise.
47417         (add_epsilon_src_nodes):  Likewise.
47418         (merge_state_array): Likewise.
47419         (update_regs): Likewise.
47420         (build_trtable): Likewise.
47421         (sift_states_backward): Mark MCTX parameter as const.
47422         (build_sifted_states): Likewise.
47423         (update_cur_sifted_state): Likewise.
47424         (sift_states_mkref): Likewise.
47425         (check_arrival_expand_ecl): Mark eclosure as const.
47426         (check_dst_limits_calc_pos_1): Likewise.
47427         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47428         pointer.
47429
47430         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47431
47432         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47433         (transit_state_sb): Likewise.
47434         (transit_state_mb): Likewise.
47435         (sift_states_iter_mb): Likewise.
47436         (check_arrival_add_next_nodes): Likewise.
47437         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47438         [_LIBC] (re_search_2_stub): Use mempcpy.
47439
47440         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47441         mbrtowc for very simple UTF-8 case.
47442
47443         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47444         a pointer-to-const.
47445         (re_acquire_state_context): Likewise.
47446         * lib/regex_internal.h: Adjust prototypes.
47447
47448         * lib/regex.c: Prevent using C++ compilers.
47449
47450         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47451         (re_acquire_state_context): Likewise.
47452
47453 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47454
47455         * modules/regex (Depends-on): Add ssize_t.
47456
47457 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47460         translation table.
47461
47462 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47463
47464         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47465
47466 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47467             Bruno Haible  <bruno@clisp.org>
47468
47469         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47470         <sys/types.h> and <inttypes.h>.
47471
47472 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47473
47474         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47475         `__error_t_defined', so argp.h will not typedef the former.
47476
47477 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47478
47479         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47480         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47481         glibc names.  Even if glibc is changed to conform to POSIX, the
47482         traditional names will be available anyway, since regex depends on
47483         the extensions module.  Also, fix a longstanding typo in the
47484         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47485         reported by Emanuele Giaquinta.  Also, change sense of cached
47486         variable, so that the message makes sense.
47487
47488 2006-03-24  Simon Josefsson  <jas@extundo.com>
47489
47490         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47491         including some doc fixes.
47492         (base64_encode_alloc): Fix +1 bug on allocation failures.
47493
47494 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47495
47496         * lib/base64.c (base64_encode): Do not read past end of array with
47497         unsanitized input on systems with CHAR_BIT > 8.
47498
47499 2006-03-24  Eric Blake  <ebb9@byu.net>
47500
47501         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47502
47503 2006-03-22  Karl Berry  <karl@gnu.org>
47504
47505         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47506         * config/srclistvars.sh (COREUTILS): new var.
47507
47508 2006-03-17  Jim Meyering  <jim@meyering.net>
47509
47510         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47511         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47512
47513 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47514
47515         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47516         no longer needs it.  Instead, check that regoff_t is as least
47517         as wide as ptrdiff_t.
47518
47519         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47520         so that our regex.h stays compatible with the installed regex.
47521         This is helpful for installers who configure --without-included-regex.
47522         Problem reported by Emanuele Giaquinta.
47523
47524 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47525
47526         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47527         Typedef to long int, not to off_, as POSIX will likely change
47528         in that direction.
47529
47530 2006-03-15  Eric Blake  <ebb9@byu.net>
47531
47532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47533
47534 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47535
47536         * lib/argp-help.c (validate_uparams): Fix typo
47537         * lib/argp-parse.c (argp_default_options): Consistently begin help
47538         messages with a lowercase letter.
47539
47540 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47543         overrun buffers and shouldn't be used (much as gets shouldn't be
47544         used).
47545         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47546
47547 2006-03-08  Simon Josefsson  <jas@extundo.com>
47548
47549         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47550         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47551
47552 2006-03-08  Simon Josefsson  <jas@extundo.com>
47553
47554         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47555         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47556
47557 2006-03-08  Simon Josefsson  <jas@extundo.com>
47558
47559         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47560         signal that configure disabled the device.
47561
47562 2006-03-08  Simon Josefsson  <jas@extundo.com>
47563
47564         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47565         languages.
47566
47567 2006-03-07  Simon Josefsson  <jas@extundo.com>
47568
47569         * modules/getopt (Depends-on): Add unistd.
47570
47571         * modules/unistd: New file.
47572
47573 2006-03-07  Simon Josefsson  <jas@extundo.com>
47574
47575         * modules/gc-random: New file.
47576
47577 2006-03-07  Simon Josefsson  <jas@extundo.com>
47578
47579         * m4/unistd_h.m4: New file.
47580
47581 2006-03-07  Simon Josefsson  <jas@extundo.com>
47582
47583         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47584         test to be side-effect free by storing the result in the cache
47585         variable gl_cv_lib_readline, and moving the assignment of
47586         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47587         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47588
47589 2006-03-07  Simon Josefsson  <jas@extundo.com>
47590
47591         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47592         error on missing devices (the functions will return an error).
47593
47594         * m4/gc.m4: Move random stuff to gc-random.m4
47595
47596 2006-03-07  Simon Josefsson  <jas@extundo.com>
47597
47598         * lib/unistd_.h: New file.
47599
47600 2006-03-07  Simon Josefsson  <jas@extundo.com>
47601
47602         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47603
47604 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47605
47606         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47607         Problem reported by Juan Manuel Guerrero.
47608
47609 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47610
47611         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47612         the unistd module.
47613         * lib/getlogin_r.c: Likewise.
47614         * lib/getlogin_r.h: Likewise.
47615         * lib/glob.c: Likewise.
47616         * lib/pagealign_alloc.c: Likewise.
47617         * lib/unistd_.h: Remove; no longer needed.
47618
47619 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47620
47621         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47622         Add unistd.
47623         * modules/c-stack (Depends-on): Add unistd.
47624         * modules/getlogin_r: Likewise.
47625         * modules/glob: Likewise.
47626         * modules/pagealign_alloc: Likewise.
47627         * modules/unistd (Files): Remove lib/unistd_.h.
47628         (EXTRA_DIST): Remove.
47629         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47630         need unistd_.h.
47631         (MOSTLYCLEANFILES): Remove unistd.h-t.
47632
47633 2006-03-03  Simon Josefsson  <jas@extundo.com>
47634
47635         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47636
47637 2006-03-03  Simon Josefsson  <jas@extundo.com>
47638
47639         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47640         libidn and bison.
47641
47642 2006-03-03  Simon Josefsson  <jas@extundo.com>
47643
47644         * build-aux/maint.mk: Add indent target.
47645
47646 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47647
47648         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47649         our replacement poll.h in any case, to avoid a differing
47650         declaration from a system header.  Seen on AIX.
47651
47652 2006-03-01  Simon Josefsson  <jas@extundo.com>
47653
47654         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47655         <kasal@ucw.cz>.
47656
47657 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47658
47659         * modules/gettime (Depends-on): Add extensions module.
47660         * modules/nanosleep (Depends-on): Likewise.
47661         * modules/settime (Depends-on): Likewise.
47662
47663 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47664
47665         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47666         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47667         pedantically.
47668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47669         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47670
47671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47672         not "==".  Reported by Ralf Wildenhues.
47673
47674 2006-03-01  Karl Berry  <karl@gnu.org>
47675
47676         * doc/Copyright/request-*: new files, synced from gnuorg.
47677
47678 2006-03-01  Karl Berry  <karl@gnu.org>
47679
47680         * config/srclist.txt (Copyright/*): new entries.
47681
47682 2006-02-28  Simon Josefsson  <jas@extundo.com>
47683
47684         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47685
47686 2006-02-27  Simon Josefsson  <jas@extundo.com>
47687
47688         * lib/base64.h: Indent #define's.  From Jim Meyering
47689         <jim@meyering.net>.
47690
47691 2006-02-27  Jim Meyering  <jim@meyering.net>
47692
47693         Revert the change of 2006-02-24, so these files can continue
47694         to be sync'd from gettext.
47695         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47696         of `config.h'.
47697
47698 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47699
47700         * modules/intprops: New file.
47701         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47702         Add intprops.
47703         * modules/getloadavg (Files): Remove lib/intprops.h.
47704         (Depends-on): Add intprops.
47705         * modules/human: Likewise.
47706         * modules/inttostr: Likewise.
47707         * modules/openat: Likewise.
47708         * modules/sig2str: Likewise.
47709         * modules/userspec: Likewise.
47710         * modules/utimecmp: Likewise.
47711         * modules/xnanosleep: Likewise.
47712         * modules/xstrtol: Likewise.
47713
47714 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47715
47716         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47717         * modules/lock-tests (TESTS): Use $(EXEEXT).
47718         * modules/tls-tests: Likewise.
47719         * modules/argp-tests: Likewise.
47720         (check_PROGRAMS): New var, replacing...
47721         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47722
47723 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47724
47725         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47726         `config.h'.
47727
47728 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47729
47730         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47731
47732 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47733
47734         Sync from coreutils.
47735         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47736         gl_CHDIR_SAFER.
47737
47738 2006-02-22  Jim Meyering  <jim@meyering.net>
47739
47740         Sync from coreutils.
47741         * m4/chdir-safer.m4: New file.
47742
47743 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47744
47745         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47746         AT_FDCWD exceeds INT_MAX.
47747         * lib/openat.h (AT_FDCWD): Likewise.
47748
47749 2006-02-17  Eric Blake  <address@hidden>
47750
47751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47752
47753 2006-02-16  Simon Josefsson  <jas@extundo.com>
47754
47755         * modules/getaddrinfo (Depends-on): Add sys_socket.
47756
47757 2006-02-15  Simon Josefsson  <jas@extundo.com>
47758
47759         * build-aux/maint.mk: Add dsyntax-check rule.
47760
47761 2006-02-15  Eric Blake  <ebb9@byu.net>
47762
47763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47764         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47765         'present but cannot compile' warnings on cygwin.
47766         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47767         use ws2tcpip.h if sys/socket.h works.
47768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47769         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47770
47771 2006-02-14  Simon Josefsson  <jas@extundo.com>
47772
47773         * modules/maintainer-makefile (Files): Rename.
47774
47775         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47776         and (the local) Makefile.cfg to maint-cfg.mk.
47777
47778         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47779         to the latter.
47780
47781         * modules/maintainer-makefile: New module.
47782
47783         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47784         severaly stripped to make it possible to build it up from scratch
47785         with reliable tests.
47786
47787         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47788         fixes to permit overriding the default actions when configure and
47789         makefile are not available.
47790
47791 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47792
47793         Sync from coreutils.
47794         * modules/lstat (Depends-on): Don't depend on xalloc.
47795         (License): Change from GPL to LGPL, since this is now simply a
47796         replacement for a libc function.
47797
47798 2006-02-14  Jim Meyering  <jim@meyering.net>
47799
47800         Sync from coreutils.
47801
47802         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47803         failure on deficient systems, and simplify gnulib lgpl dependencies.
47804         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47805         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47806
47807         * lib/xalloc-die.c: Remove unused definition of N_.
47808
47809 2006-02-14  Jim Meyering  <jim@meyering.net>
47810
47811         Sync from coreutils.
47812         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47813         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47814         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47815         double-quote uses of that variable, to accommodate the rare case in
47816         which getmntent is available in none of the libraries checked.  This
47817         happens at least on FreeBSD 5.0.
47818
47819 2006-02-13  Simon Josefsson  <jas@extundo.com>
47820
47821         * gnulib-tool (Usage): Fix --import, from
47822         karl@freefriends.org (Karl Berry).
47823
47824 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47825
47826         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47827
47828 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47829
47830         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47831         "autoupdate" on 2005-12-12.
47832
47833 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47834
47835         * modules/closeout (Depends-on): Remove atexit.
47836
47837 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47838
47839         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47840         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47841
47842 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47843
47844         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47845         __EXTENSIONS__ if this causes compilation to fail.  Problem
47846         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47847         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47848
47849 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47850
47851         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47852         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47853         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47854         All uses changed.
47855
47856 2006-01-26  Simon Josefsson  <jas@extundo.com>
47857
47858         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47859         prototype is visible on mingw32.
47860
47861         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47862         for mingw32.
47863
47864         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47865         mingw32).
47866
47867 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47870         attempt to open for write; this always fails, at least on POSIX
47871         hosts.  This reinstates the 2006-01-09 change, which was
47872         inadvertently removed.
47873
47874 2006-01-26  Bruno Haible  <bruno@clisp.org>
47875
47876         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47877         Reported by Paul Eggert.
47878
47879 2006-01-26  Bruno Haible  <bruno@clisp.org>
47880             Paul Eggert  <eggert@cs.ucla.edu>
47881
47882         * lib/stdbool_.h (_Bool)
47883         [(! (defined __cplusplus || defined __BEOS__)
47884           && !defined __GNUC__
47885           && !(defined __HP_cc || defined __xlc__
47886                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47887                || defined __sgi))]:
47888         #define to signed char in these cases too; this simplifies
47889         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47890         etc., separately) and makes it more conservative.
47891
47892 2006-01-25  Simon Josefsson  <jas@extundo.com>
47893
47894         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47895         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47896         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47897
47898 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47899
47900         * lib/argp-namefrob.h: Bugfix. Remove stray #
47901
47902 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47903
47904         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47905         so that we test the test.
47906         Check for yet another HP-UX cc bug involving *bool |= bool.
47907
47908 2006-01-25  Karl Berry  <karl@gnu.org>
47909
47910         * config/srclist.txt (vasnprintf.c): sync lost.
47911
47912 2006-01-25  Jim Meyering  <jim@meyering.net>
47913
47914         Sync from the stable (b5) branch of coreutils:
47915
47916         * lib/fts.c (fts_children): Don't let close() clobber errno from
47917         failed fchdir().
47918
47919         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47920         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47921         a dangling symlink.  That can also happen at least for ELOOP.
47922         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47923         FYI, this bug predates the inclusion of fts.c in coreutils.
47924
47925         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47926         in their own block, so pre-c99 compilers don't object.
47927
47928         Avoid the double-free (first in fts_read, second in fts_close) that
47929         would occur when an `active' directory is made inaccessible (e.g.,
47930         via chmod a-x) during a traversal.
47931         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47932         before returning.  Reproduce this failure by
47933         mkdir -p a/b; cd a; chmod a-x . b
47934         Reported by Stavros Passas.
47935
47936 2006-01-25  Jim Meyering  <jim@meyering.net>
47937
47938         * lib/fileblocks.c: Remove more useless parentheses.
47939         * lib/readutmp.h: Likewise.
47940
47941 2006-01-25  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47944         warnings.
47945         Reported by Paul Eggert.
47946
47947 2006-01-25  Bruno Haible  <bruno@clisp.org>
47948
47949         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47950         rid of a trap command. For Solaris sh.
47951         Reported by Mark D. Baushke <mdb@gnu.org>.
47952
47953 2006-01-24  Simon Josefsson  <jas@extundo.com>
47954
47955         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47956         Bruno.
47957
47958 2006-01-24  Karl Berry  <karl@gnu.org>
47959
47960         * config/srclist.txt (argp-namefrob.h): sync lost.
47961
47962 2006-01-24  Jim Meyering  <jim@meyering.net>
47963
47964         * modules/openat (Files): Add lib/intprops.h.
47965         From Mark D. Baushke.
47966
47967 2006-01-24  Jim Meyering  <jim@meyering.net>
47968
47969         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47970         Reported by Mark D. Baushke.
47971
47972 2006-01-24  Jim Meyering  <jim@meyering.net>
47973
47974         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47975
47976 2006-01-24  Bruno Haible  <bruno@clisp.org>
47977
47978         * modules/strnlen (Maintainer): Change from glibc to all.
47979
47980 2006-01-24  Bruno Haible  <bruno@clisp.org>
47981
47982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47983         Patch by Paul Eggert.
47984
47985 2006-01-24  Bruno Haible  <bruno@clisp.org>
47986
47987         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47988         already has it.
47989         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47990         2005-11-26.
47991
47992         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47993         'signed char' to avoid problems with the built-in _Bool type.
47994         Reported by Paul Eggert on 2005-11-26.
47995
47996 2006-01-24  Bruno Haible  <bruno@clisp.org>
47997
47998         * gnulib-tool (func_import): Avoid constructing complicated sed
47999         expressions inside backquote.
48000         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48001
48002 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48003
48004         These changes imported from libc.
48005         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48006         test and two separate function calls.
48007         * lib/strndup.c (__strndup): Add libc_hidden_def.
48008
48009 2006-01-23  Simon Josefsson  <jas@extundo.com>
48010
48011         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48012         Remove the test_*_SOURCES variable: automake infers it by default.
48013         * modules/tls-tests: Likewise.
48014
48015 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48016
48017         Work around porting bugs reported by Dieter in
48018         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48019         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48020         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48021         Include "getopt.h" first, to check interface.
48022         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48023         !HAVE_DECL_GETENV.
48024         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48025         (__strndup): Revert to K&R-style function dfns, the glibc style.
48026         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48027         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48028         Include strnlen.h first, to get prototype properly.
48029         (strnlen): Renamed from __strnlen.
48030         Remove weak alias.
48031
48032 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48033
48034         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48035
48036 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48037
48038         * config/srclist.txt: Adjust to reflect glibc reorganization.
48039         This affects only comments.
48040
48041 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48042
48043          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48044          Reported by Bruce Korb <bkorb@gnu.org>.
48045
48046 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48047
48048         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48049         to pacify gcc -Wswitch-default.
48050
48051 2006-01-22  Bruno Haible  <bruno@clisp.org>
48052
48053         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48054         temporary buffer for sprintf, take into account the precision also
48055         for 'd', 'i', 'u', 'o', 'x', 'X'.
48056
48057 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48058
48059         * modules/argp-tests: New module
48060         * tests/test-argp.c: New file
48061         * tests/test-argp-2.sh: New file
48062
48063 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48064
48065         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48066         (__argp_base_name): Removed
48067         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48068         typo.
48069         (__argp_base_name): Provide macro definition or extern declaration
48070         depending on the configuration
48071
48072 2006-01-20  Simon Josefsson  <jas@extundo.com>
48073
48074         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48075
48076 2006-01-20  Simon Josefsson  <jas@extundo.com>
48077
48078         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48079
48080 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48081
48082         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48083         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48084         Suggested by Bruno Haible.
48085
48086 2006-01-20  Karl Berry  <karl@gnu.org>
48087
48088         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48089         until changes propagate, I guess.
48090
48091 2006-01-19  Simon Josefsson  <jas@extundo.com>
48092
48093         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48094
48095 2006-01-19  Simon Josefsson  <jas@extundo.com>
48096
48097         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48098
48099 2006-01-19  Simon Josefsson  <jas@extundo.com>
48100
48101         * gnulib-tool: Set check_PROGRAMS.
48102
48103         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48104         modules/des-tests, modules/gc-arcfour-tests,
48105         modules/gc-arctwo-tests, modules/gc-des-tests,
48106         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48107         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48108         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48109         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48110         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48111         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48112         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48113         test_*_SOURCES.
48114
48115 2006-01-18  Simon Josefsson  <jas@extundo.com>
48116
48117         * modules/socklen (Depends-on): Depend on sys_socket.
48118
48119 2006-01-18  Simon Josefsson  <jas@extundo.com>
48120
48121         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48122         modules/des-tests, modules/gc-arcfour-tests,
48123         modules/gc-arctwo-tests, modules/gc-des-tests,
48124         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48125         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48126         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48127         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48128         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48129         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48130         $(EXEEXT) to automake TESTS variable, for mingw32.
48131
48132 2006-01-17  Simon Josefsson  <jas@extundo.com>
48133
48134         * modules/socklen (Include): Need sys/socket.h.
48135
48136 2006-01-17  Bruno Haible  <bruno@clisp.org>
48137
48138         * modules/ssize_t (Include): Add <sys/types.h>.
48139
48140 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48141
48142         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48143         it's not portable and it doesn't work with cross-compiles.
48144         Problem reported by Bruno Haible.  Fix missing-$ typo in
48145         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48146         -zignore from being used with Sun's C compiler.
48147
48148 2006-01-12  Simon Josefsson  <jas@extundo.com>
48149
48150         * lib/base64.c: Fix warning, reported by Bruno Haible
48151         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48152
48153 2006-01-12  Bruno Haible  <bruno@clisp.org>
48154
48155         * modules/ldd: New file.
48156         * build-aux/ldd.sh.in: New file.
48157         * MODULES.html.sh (Support for building libraries and executables): Add
48158         ldd.
48159
48160 2006-01-12  Bruno Haible  <bruno@clisp.org>
48161
48162         * m4/ldd.m4: New file.
48163
48164 2006-01-12  Bruno Haible  <bruno@clisp.org>
48165
48166         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48167         endless loop while replacing $auxdir with build-aux.
48168
48169 2006-01-11  Simon Josefsson  <jas@extundo.com>
48170
48171         * lib/stdint_.h (SIZE_MAX): Add missing (.
48172
48173 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48174
48175         Sync from coreutils.
48176         * lib/md5.c: Fix commentary typos.
48177         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48178         * lib/md5.h (__attribute__): Remove; unused.
48179         * lib/sha1.c: Fix commentary to match md5 better.
48180         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48181         so that we don't need to worry about alignment.  All uses changed.
48182         This merges the 2005-10-28 md5 change into sha1.
48183
48184 2006-01-11  Jim Meyering  <jim@meyering.net>
48185
48186         Sync from coreutils.
48187         * lib/md5.c (OP): Fix spacing.
48188
48189 2006-01-11  Bruno Haible  <bruno@clisp.org>
48190
48191         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48192         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48193         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48194
48195 2006-01-11  Bruno Haible  <bruno@clisp.org>
48196
48197         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48198         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48199         the "early" section as well.
48200
48201 2006-01-11  Bruno Haible  <bruno@clisp.org>
48202
48203         Avoid "ar: no archive members specified" error on MacOS X.
48204         * gnulib-tool (func_modules_add_dummy): New function.
48205         (func_import, func_create_testdir): Invoke it.
48206
48207 2006-01-11  Bruno Haible  <bruno@clisp.org>
48208
48209         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48210         with $auxdir in AC_CONFIG_FILES statements.
48211
48212 2006-01-11  Bruno Haible  <bruno@clisp.org>
48213
48214         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48215         Initialize also noinst_HEADERS to empty.
48216
48217 2006-01-11  Bruno Haible  <bruno@clisp.org>
48218
48219         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48220         variables.
48221         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48222         autoreconf.
48223
48224 2006-01-11  Bruno Haible  <bruno@clisp.org>
48225
48226         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48227         overridable by the user.
48228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48229
48230 2006-01-10  Simon Josefsson  <jas@extundo.com>
48231
48232         * modules/sys_socket: New file.
48233
48234 2006-01-10  Simon Josefsson  <jas@extundo.com>
48235
48236         * m4/sys_socket_h.m4: New file.
48237
48238 2006-01-10  Simon Josefsson  <jas@extundo.com>
48239
48240         * lib/socket_.h: New file.
48241
48242 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * modules/readutmp (Maintainer): Add myself.
48245
48246 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48249         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48250         People who are still concerned with buggy memcmp implementations
48251         can invoke gl_FUNC_MEMCMP themselves.
48252
48253 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48254
48255         * lib/regex_internal.h (BITSET_WORD_BITS):
48256         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48257         preprocessor mishandles large unsigned values as if they were signed.
48258         Problem reported by Claudio Fontana in
48259         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48260
48261 2006-01-10  Jim Meyering  <jim@meyering.net>
48262
48263         Avoid the double-free (first in fts_read, second in fts_close) that
48264         would occur when an `active' directory is made inaccessible (e.g.,
48265         via chmod a-x) during a traversal.
48266         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48267         before returning.  Reproduce this failure by
48268         mkdir -p a/b; cd a; chmod a-x . b
48269         Reported by Stavros Passas.
48270
48271         Sync from coreutils.
48272         * lib/sha1.c: Tweak grammar in a comment.
48273
48274 2006-01-10  Jim Meyering  <jim@meyering.net>
48275
48276         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48277         Patch by Joerg Sonnenberger.
48278
48279 2006-01-10  Bruno Haible  <bruno@clisp.org>
48280
48281         * modules/readutmp: Depend on module free.
48282         * modules/strtok_r: Depend on module restrict.
48283
48284 2006-01-10  Bruno Haible  <bruno@clisp.org>
48285
48286         * modules/gettext (configure.ac): Add an invocation of
48287         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48288
48289 2006-01-10  Bruno Haible  <bruno@clisp.org>
48290
48291         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48292         Reported by Werner Lemberg <wl@gnu.org>.
48293
48294 2006-01-10  Bruno Haible  <bruno@clisp.org>
48295
48296         * lib/localcharset.c: Update from GNU gettext.
48297
48298 2006-01-10  Bruno Haible  <bruno@clisp.org>
48299
48300         * lib/argp.h (__const): Remove macro. Use const instead.
48301         * lib/argp-fmtstream.h (__const): Likewise.
48302         * lib/glob_.h (__const): Remove macro.
48303         * lib/glob-libc.h: Use const instead of __const.
48304
48305 2006-01-10  Bruno Haible  <bruno@clisp.org>
48306
48307         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48308         variable.
48309         Needed to avoid an automake error regarding the 'gettext' module.
48310
48311 2006-01-09  Simon Josefsson  <jas@extundo.com>
48312
48313         * modules/inet_ntop (Depends-on): Add restrict.
48314
48315 2006-01-09  Simon Josefsson  <jas@extundo.com>
48316
48317         * modules/gc-rijndael-tests (License): Put under LGPL.
48318
48319         * modules/gc-des-tests (License): Likewise.
48320
48321         * modules/gc-arcfour-tests (License): Likewise.
48322
48323         * modules/gc-arctwo-tests (License): Likewise.
48324
48325         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48326
48327         * modules/gc-hmac-sha1-tests (Files): Likewise.
48328
48329         * modules/gc-hmac-md5-tests (License): Likewise.
48330
48331         * modules/gc-sha1-tests (License): Likewise.
48332
48333         * modules/gc-md5-tests (License): Likewise.
48334
48335         * modules/gc-md4-tests (License): Likewise.
48336
48337         * modules/gc-md2-tests (License): Likewise.
48338
48339         * modules/gc-tests (License): Likewise.
48340
48341         * modules/des-tests (License): Likewise.
48342
48343         * modules/md4-tests (License): Likewise.
48344
48345         * modules/md2-tests (License): Likewise.
48346
48347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         Sync from coreutils:
48350
48351         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48352         * modules/lib-ignore: New file.
48353         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48354         chdir-safer.m4, lchmod.m4.
48355         * modules/openat: Add mkdirat.c, openat-priv.h.
48356
48357 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         Sync from coreutils.
48360         * m4/lib-ignore.m4: New file.
48361         * m4/lchmod.m4: New file.
48362
48363 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48364
48365         Sync from coreutils.
48366         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48367         for write access: POSIX says that must fail.
48368         * lib/fts.c (diropen): Likewise.
48369         * lib/save-cwd.c (save_cwd): Likewise.
48370         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48371         well, for minor improvements on hosts that lack O_DIRECTORY.
48372         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48373         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48374         Fall back on chown if open failed with EACCES.
48375
48376         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48377         Report an error at compile-time if only a 1-second nominal clock
48378         resolution is found.
48379
48380         * lib/lchmod.h: New file.
48381         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48382         (make_dir_parents): Use lchown rather than chown, and
48383         lchmod rather than chmod.
48384
48385         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48386         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48387         "proc" reported by n0dalus.
48388
48389         * lib/mountlist.c: Include <limits.h>.
48390         (dev_from_mount_options)
48391         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48392         New function.  It no longer assumes "dev=" has the System V meaning
48393         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48394         (read_file_system_list)
48395         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48396         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48397         dev= in that case.
48398
48399         * lib/posixtm.h (PDS_PRE_2000): New macro.
48400         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48401         allow_century.  All usages changed.  Reject dates outside the range
48402         1969-1999 if PDS_PRE_2000 is used.
48403
48404 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48405
48406         Sync from coreutils.
48407         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48408         (Time of day items): Mention the possibility of leap seconds.
48409         Problem reported by Dr. David Alan Gilbert.
48410
48411 2006-01-09  Jim Meyering  <jim@meyering.net>
48412
48413         Sync from coreutils.
48414
48415         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48416
48417         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48418
48419         * lib/modechange.c (mode_compile): Reject an invalid mode string
48420         that starts with an octal digit.  From Andreas Gruenbacher.
48421
48422         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48423         and dup to open_safer and dup_safer, respectively.
48424         (openat_permissive): Fix typo in comment.
48425
48426         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48427         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48428         (_): Remove; no longer needed.
48429         (openat): Renamed from rpl_openat; no need for rpl_openat
48430         since openat.h renames openat for us.
48431         Replace most of the body with a call to openat_permissive,
48432         to avoid duplicate code.
48433         Port to (probably hypothetical) environments were mode_t is
48434         wider than int.
48435         (openat_permissive): Require mode arg, so that we can check
48436         types better.  Put it just after flags.  Change cwd failure
48437         indicator from pointer-to-bool to pointer-to-errno-value.
48438         All callers changed.
48439         Invoke openat_save_fail and/or openat_restore_fail if
48440         cwd_errno is null, so that openat can call us.
48441         (openat_permissive, fdopendir, fstatat, unlinkat):
48442         Simplify errno handling to avoid some duplicate code,
48443         as it's OK to set errno on success.
48444         * lib/openat.h: Revamp code so that function macros depend on
48445         __OPENAT_PREFIX only, not also on AT_FDCWD.
48446         (openat_ro): Remove.  Caller changed to use openat_permissive.
48447         (openat_permissive): Now a macro, if not a function.
48448         (openat_restore_fail, openat_save_fail): Now always functions,
48449         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48450
48451         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48452         and openat.c.
48453         * lib/mkdirat.c: Include openat-priv.h.
48454         Remove definitions of macros defined therein.
48455         * lib/openat.c: Likewise.
48456
48457         * lib/mkdirat.c (mkdirat): New file and function.
48458         * lib/openat.h (mkdirat): Declare.
48459
48460         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48461
48462         * lib/openat.h (openat_permissive): Declare.
48463         (openat_ro): Define.
48464
48465         * lib/openat.c (EXPECTED_ERRNO): New macro.
48466         (openat_permissive): New function -- used in remove.c rewrite.
48467         (all functions): Set errno just before returning, only if there
48468         was an actual failure.
48469         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48470
48471         Emulate openat-family functions using Linux's procfs, if possible.
48472         Idea and some code based on Ulrich Drepper's glibc changes.
48473
48474         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48475         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48476         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48477         before falling back on save_cwd and restore_cwd.
48478         (fdopendir, fstatat, unlinkat): Likewise.
48479
48480         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48481         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48482
48483         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48484         as second argument to va_arg.  Otherwise, some versions of gcc
48485         warn that `if this code is reached, the program will abort'.
48486
48487 2006-01-09  Jim Meyering  <jim@meyering.net>
48488
48489         Sync from coreutils.
48490         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48491         Require openat-priv.h.
48492
48493 2006-01-09  Bruno Haible  <bruno@clisp.org>
48494
48495         * modules/strnlen (Include): Use strnlen.h.
48496
48497 2006-01-09  Bruno Haible  <bruno@clisp.org>
48498
48499         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48500
48501 2006-01-09  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/sysexit_.h (EX_OK): New macro.
48504         Suggested by Martin Lambers <marlam@marlam.de>.
48505
48506 2006-01-09  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48509         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48510
48511 2006-01-09  Bruno Haible  <bruno@clisp.org>
48512
48513         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48514         numbers.
48515
48516 2006-01-09  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48519         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48520         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48521         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48522
48523 2006-01-09  Bruno Haible  <bruno@clisp.org>
48524
48525         * build-aux/javacomp.sh.in: New file, moved from lib/.
48526         * modules/javacomp-script (Files): Update.
48527         (configure.ac): Add AC_CONFIG_FILES invocation.
48528         (EXTRA_DIST): Remove variable.
48529
48530         * build-aux/javaexec.sh.in: New file, moved from lib/.
48531         * modules/javaexec (Files): Update.
48532         (configure.ac): Add AC_CONFIG_FILES invocation.
48533         (EXTRA_DIST): Remove javaexec.sh.in.
48534
48535         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48536         * modules/csharpcomp-script (Files): Update.
48537         (configure.ac): Add AC_CONFIG_FILES invocation.
48538         (EXTRA_DIST): Remove variable.
48539
48540         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48541         * modules/csharpexec (Files): Update.
48542         (configure.ac): Add AC_CONFIG_FILES invocation.
48543         (EXTRA_DIST): Remove csharpexec.sh.in.
48544
48545 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48546
48547         Sync from coreutils.
48548
48549         Add POSIX ACL support
48550         * lib/acl.h (copy_acl, set_acl): Add declarations.
48551         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48552         systems other than Linux.
48553         (chmod_or_fchmod): New function: use fchmod when possible,
48554         and chmod otherwise.
48555         (file_has_acl): Add a POSIX ACL implementation, with a
48556         Linux-specific subcase.
48557         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48558         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48559         acls are unsupported.
48560         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48561         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48562         are unsupported.
48563
48564 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48565
48566         Sync from coreutils.
48567         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48568
48569 2006-01-07  Bruno Haible  <bruno@clisp.org>
48570
48571         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48572         gl_EARLY.
48573
48574 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48575
48576         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48577         Problem reported for Mingw by Mark Junker.
48578
48579 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48580
48581         * README: Gnulib normally doesn't generate a tarball.
48582
48583 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48584
48585         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48586         long int, not int, for nanosecond counts, so that people who are
48587         used to POSIX struct timespec won't be surprised.  Reported by Jim
48588         Meyering.
48589
48590 2005-12-28  Bruno Haible  <bruno@clisp.org>
48591
48592         * build-aux/config.rpath: Update from GNU gettext.
48593
48594 2005-12-16  Jim Meyering  <jim@meyering.net>
48595
48596         * modules/fprintftime: New module.
48597         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48598
48599 2005-12-16  Jim Meyering  <jim@meyering.net>
48600
48601         * m4/fprintftime.m4: New file.
48602
48603 2005-12-16  Jim Meyering  <jim@meyering.net>
48604
48605         * lib/fprintftime.c, lib/fprintftime.h: New files.
48606
48607 2005-12-15  Simon Josefsson  <jas@extundo.com>
48608
48609         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48610         new m4/socklen.m4.
48611
48612 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48613
48614         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48615         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48616
48617 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48618
48619         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48620         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48621         struct uparams is valid. Fall back to the default values if it is
48622         not.
48623
48624 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48625
48626         * modules/argp (Files): Add argp-pin.c
48627         (Depends-on): dirname
48628         (lib_SOURCES): Add argp-pin.c
48629
48630 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48631
48632         * m4/argp.m4:  Check if program_invocation_name and
48633         program_invocation_short_name are declared and define appropriate
48634         macros if they are not.
48635
48636 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48637
48638         * lib/argp-help.c (__argp_base_name): New function
48639         (__argp_short_program_name): Rewrite using __argp_base_name
48640         * lib/argp-namefrob.h: Define program_invocation_name and
48641         program_invocation_short_name if requested
48642         (__argp_base_name): Add prototype
48643         * lib/argp-parse.c (argp_def): Use gettext wrappers
48644         (argp_default_parser): Use __argp_base_name
48645         * lib/argp-pin.c: New file. Defines program_invocation_name and
48646         program_invocation_short_name on systems that lack them.
48647
48648 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48649
48650         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48651         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48652         porting problem reported by Georg Schwarz in
48653         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48654
48655 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48656
48657         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48658         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48659         porting problem reported by Georg Schwarz in
48660         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48661
48662 2005-12-05  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48665         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48666         Reported by Mark Junker <mjscod@gmx.de>.
48667
48668 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48669
48670         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48671         Use implementation from Albert Chin, with some
48672         comments/corrections by Stepan Kasal and myself.
48673
48674 2005-12-02  Bruno Haible  <bruno@clisp.org>
48675
48676         * gnulib-tool (func_import): Accept GPLed build tool modules when
48677         --lgpl is given.
48678         * modules/csharpcomp-script: New file.
48679         * modules/csharpcomp: Depend on it.
48680         * modules/javacomp-script: New file.
48681         * modules/javacomp: Depend on it.
48682         Suggested by Simon Josefsson.
48683
48684 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48685
48686         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48687         statement, to work around an HP-UX 10.20 compiler bug reported by
48688         Peter O'Gorman.
48689
48690 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48691
48692         * modules/savedir (Depends-on): Add openat.
48693
48694 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48695
48696         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48697         (uintmax_t) [defined uintmax_t]: Do not declare.
48698         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48699         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48700         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48701         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48702         sake of portability to weird hosts that C allows (though we don't
48703         know of any practical examples).
48704
48705         * lib/savedir.h (fdsavedir): New decl.
48706         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48707         contains most of the former guts of savedir.
48708         (savedir): Use savedirstream.
48709         Include "openat.h".
48710
48711 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48712
48713         * modules/obstack (Files): Add m4/ulonglong.m4.
48714         Problem reported by Davide Angelocola.
48715
48716 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48717
48718         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48719         coreutils no longer futzes with rounding modes.
48720
48721 2005-11-14  Jim Meyering  <jim@meyering.net>
48722
48723         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48724         replacement of mkstemp.
48725
48726 2005-11-10  Simon Josefsson  <jas@extundo.com>
48727
48728         * lib/readline.c: Remove EOL.
48729
48730 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * modules/gethrxtime (Depends-on): Add gettime.
48733
48734 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48735
48736         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48737         or gettimeofday; no longer needed.
48738
48739 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48740
48741         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48742         time business.
48743         (gethrxtime) [! (HAVE_NANOUPTIME
48744         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48745         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48746         our own approximation.
48747
48748 2005-11-08  Eric Blake  <ebb9@byu.net>
48749
48750         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48751
48752 2005-11-08  Eric Blake  <ebb9@byu.net>
48753
48754         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48755
48756 2005-11-04  Bruno Haible  <bruno@clisp.org>
48757
48758         * gnulib-tool: Implement --update mode.
48759
48760 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         Fix porting problem reported by Theodoros V. Kalamatianos.
48763         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48764         Don't assume that futimes failing means we must fail.
48765
48766 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48767
48768         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48769         variables to suggest the intended function of the PATH_MAX check.
48770
48771 2005-10-30  Kean Johnston  <jkj@sco.com>
48772
48773         Trivial changes to support SCO systems.
48774         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48775         as PATH_MAX.
48776         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48777         where __ptr is null when no I/O is pending.
48778
48779 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48782         leave errno alone.  Problem reported by Dmitry V. Levin.
48783
48784 2005-10-28  Simon Josefsson  <jas@extundo.com>
48785
48786         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48787         Test more.
48788
48789         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48790
48791         * modules/md2, modules/md2-tests: New files.
48792
48793 2005-10-28  Simon Josefsson  <jas@extundo.com>
48794
48795         * m4/inet_ntop.m4: More tests.
48796
48797         * m4/gc-md2.m4, md2.m4: New file.
48798
48799 2005-10-28  Simon Josefsson  <jas@extundo.com>
48800
48801         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48802         "restrict" keywords, as per POSIX.  Protect the function
48803         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48804         Don't use K&R prototypes.  Check the sprintf return values.
48805         Re-define EAFNOSUPPORT if not present.  Indent.
48806
48807         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48808         suggested by Bruno Haible <bruno@clisp.org>.
48809
48810         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48811
48812         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48813
48814         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48815         libgcrypt).
48816
48817         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48818
48819         * lib/md2.h, lib/md2.c: New files.
48820
48821 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48822
48823         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48824         errno alone.  Problem reported by Frederic Jolliton.
48825
48826 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48827
48828         * modules/verify (License): Change from GPL to LGPL.  This is a
48829         tiny module and there are apparently near-equivalents that are
48830         under the BSD license.
48831
48832 2005-10-24  Simon Josefsson  <jas@extundo.com>
48833
48834         * modules/sha1: Relicense to LGPL.
48835
48836 2005-10-24  Simon Josefsson  <jas@extundo.com>
48837
48838         * lib/md4.h: Shrink buffer size, now that we changed the type.
48839
48840 2005-10-23  Simon Josefsson  <jas@extundo.com>
48841
48842         * gnulib-tool (func_import): Fix --tests-base.
48843
48844 2005-10-22  Simon Josefsson  <jas@extundo.com>
48845
48846         * modules/arcfour (Depends-on): Need stdint.
48847
48848 2005-10-22  Simon Josefsson  <jas@extundo.com>
48849
48850         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48851         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48852
48853 2005-10-22  Simon Josefsson  <jas@extundo.com>
48854
48855         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48856         suggested by Bruno Haible <bruno@clisp.org>.
48857
48858 2005-10-22  Simon Josefsson  <jas@extundo.com>
48859
48860         * lib/crc.h: Include stddef.h, for size_t.
48861
48862 2005-10-22  Simon Josefsson  <jas@extundo.com>
48863
48864         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48865         arcfour_context struct (simplify test vector testing in GNU
48866         Shishi).
48867
48868 2005-10-21  Simon Josefsson  <jas@extundo.com>
48869
48870         * modules/des, modules/des-tests: New files.
48871
48872         * modules/gc-des, modules/gc-des-tests: New files.
48873
48874         * tests/test-des.c, tests/test-gc-des.c: New file.
48875
48876 2005-10-21  Simon Josefsson  <jas@extundo.com>
48877
48878         * modules/arctwo, modules/arctwo-tests: New files.
48879
48880         * tests/test-arctwo.c: New file.
48881
48882         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48883
48884         * tests/test-gc-arctwo.c: New file.
48885
48886 2005-10-21  Simon Josefsson  <jas@extundo.com>
48887
48888         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48889         Bruno Haible <bruno@clisp.org>.
48890
48891         * m4/gc-des.m4: New file.
48892
48893 2005-10-21  Simon Josefsson  <jas@extundo.com>
48894
48895         * m4/arctwo.m4: New file.
48896
48897         * m4/gc-arctwo.m4: New file.
48898
48899 2005-10-21  Simon Josefsson  <jas@extundo.com>
48900
48901         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48902         block.
48903
48904 2005-10-21  Simon Josefsson  <jas@extundo.com>
48905
48906         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48907         <bruno@clisp.org>.
48908
48909         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48910
48911         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48912         Bruno Haible <bruno@clisp.org>.
48913
48914         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48915         <bruno@clisp.org>.
48916
48917 2005-10-21  Simon Josefsson  <jas@extundo.com>
48918
48919         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48920
48921 2005-10-21  Simon Josefsson  <jas@extundo.com>
48922
48923         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48924
48925 2005-10-21  Simon Josefsson  <jas@extundo.com>
48926
48927         * lib/des.h, lib/des.c: New files.
48928
48929         * lib/gc-gnulib.c: Support DES.c
48930
48931 2005-10-21  Simon Josefsson  <jas@extundo.com>
48932
48933         * lib/arctwo.h, lib/arctwo.c: New files.
48934
48935         * lib/gc-gnulib.c: Support ARCTWO.
48936
48937 2005-10-21  Simon Josefsson  <jas@extundo.com>
48938
48939         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48940         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48941
48942 2005-10-21  Simon Josefsson  <jas@extundo.com>
48943
48944         * gnulib-tool (func_import, func_create_testdir): Define automake
48945         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48946         Makefile.am snippet),
48947         suggested by Bruno Haible <bruno@clisp.org>.
48948
48949         * modules/gc (Makefile.am): Use it.
48950
48951 2005-10-21  Bruno Haible  <bruno@clisp.org>
48952
48953         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48954         patch.
48955
48956 2005-10-19  Simon Josefsson  <jas@extundo.com>
48957
48958         * tests/test-gc-rijndael.c: New file.
48959
48960         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48961
48962 2005-10-19  Simon Josefsson  <jas@extundo.com>
48963
48964         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48965         interface too.
48966
48967 2005-10-19  Simon Josefsson  <jas@extundo.com>
48968
48969         * tests/test-gc-arcfour.c: New file.
48970
48971         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48972
48973 2005-10-19  Simon Josefsson  <jas@extundo.com>
48974
48975         * modules/gc-md4, modules/gc-md4-tests: New file.
48976
48977         * tests/test-gc-md4.c: New file.
48978
48979 2005-10-19  Simon Josefsson  <jas@extundo.com>
48980
48981         * m4/gc-md4.m4: New file.
48982
48983 2005-10-19  Simon Josefsson  <jas@extundo.com>
48984
48985         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48986         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48987         <kasal@ucw.cz>.
48988
48989 2005-10-19  Simon Josefsson  <jas@extundo.com>
48990
48991         * m4/gc-arcfour.m4: New file.
48992
48993         * m4/gc-rijndael.m4: New file.
48994
48995 2005-10-19  Simon Josefsson  <jas@extundo.com>
48996
48997         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48998
48999 2005-10-19  Simon Josefsson  <jas@extundo.com>
49000
49001         * lib/gc-gnulib.c: Support ARCFOUR.
49002
49003 2005-10-19  Simon Josefsson  <jas@extundo.com>
49004
49005         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49006         support.
49007
49008         * lib/gc.h: Add ECB enum type.
49009
49010         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49011
49012 2005-10-18  Simon Josefsson  <jas@extundo.com>
49013
49014         * tests/test-md5.c: New file.
49015
49016         * modules/md5-tests: New file.
49017
49018 2005-10-18  Simon Josefsson  <jas@extundo.com>
49019
49020         * tests/test-md4.c: New file.
49021
49022         * modules/md4, modules/md4-tests: New files.
49023
49024 2005-10-18  Simon Josefsson  <jas@extundo.com>
49025
49026         * m4/md4.m4: New file.
49027
49028 2005-10-18  Simon Josefsson  <jas@extundo.com>
49029
49030         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49031
49032 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49033
49034         * gnulib-tool (func_create_testdir): Omit the second check whether
49035         BUILT_SOURCES in nonempty.
49036
49037 2005-10-17  Simon Josefsson  <jas@extundo.com>
49038
49039         * tests/test-rijndael.c: New file.
49040
49041 2005-10-17  Simon Josefsson  <jas@extundo.com>
49042
49043         * modules/sha1: Depend on stdint instead of md5.
49044
49045         * modules/md5: Depend on stdint, remove uint32_t.
49046
49047 2005-10-17  Simon Josefsson  <jas@extundo.com>
49048
49049         * modules/gc-sha1-tests: New file.
49050
49051         * tests/test-gc-sha1.c: New file.
49052
49053 2005-10-17  Simon Josefsson  <jas@extundo.com>
49054
49055         * m4/md5.m4: Remove call to uint32_t.m4.
49056
49057 2005-10-17  Simon Josefsson  <jas@extundo.com>
49058
49059         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49060
49061         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49062         md5.h.
49063
49064         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49065
49066         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49067
49068 2005-10-17  Simon Josefsson  <jas@extundo.com>
49069
49070         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49071
49072 2005-10-17  Simon Josefsson  <jas@extundo.com>
49073
49074         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49075
49076 2005-10-17  Simon Josefsson  <jas@extundo.com>
49077
49078         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49079
49080         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49081
49082 2005-10-17  Bruno Haible  <bruno@clisp.org>
49083
49084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49085         that it can also be used in a test.
49086
49087 2005-10-16  Bruno Haible  <bruno@clisp.org>
49088
49089         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49090         TESTS_ENVIRONMENT, so that individual tests can augment it.
49091
49092         * gnulib-tool (func_create_testdir): Use an intermediate target for
49093         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49094         macros, like $(ALLOCA_H), which cannot be passed through the command
49095         line.
49096
49097 2005-10-15  Simon Josefsson  <jas@extundo.com>
49098
49099         * modules/rijndael-tests: New file.
49100
49101         * modules/rijndael: New file.
49102
49103 2005-10-15  Simon Josefsson  <jas@extundo.com>
49104
49105         * m4/rijndael.m4: New file.
49106
49107 2005-10-15  Simon Josefsson  <jas@extundo.com>
49108
49109         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49110
49111         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49112
49113 2005-10-14  Simon Josefsson  <jas@extundo.com>
49114
49115         * tests/test-arcfour.c: New file.
49116
49117         * modules/arcfour, modules/arcfour-tests: New files.
49118
49119 2005-10-14  Simon Josefsson  <jas@extundo.com>
49120
49121         * m4/arcfour.m4: New file.
49122
49123 2005-10-14  Simon Josefsson  <jas@extundo.com>
49124
49125         * lib/arcfour.h, lib/arcfour.c: New files.
49126
49127 2005-10-14  Roland McGrath  <roland@redhat.com>
49128
49129         Import from libc.  [BZ #1331]
49130         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49131         macro argument.
49132         Reported by Matej Vela <vela@debian.org>.
49133
49134 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49135
49136         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49137         include <wchar.h>; no longer needed.
49138
49139 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49140
49141         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49142
49143 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49144         and  Ulrich Drepper  <drepper@redhat.com>
49145
49146         Import from libc.
49147         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49148         instead of inline stream orientation test and two separate
49149         function calls.  Pay no attention to USE_IN_LIBIO.
49150
49151 2005-10-13  Simon Josefsson  <jas@extundo.com>
49152
49153         * modules/gc-hmac-md5-tests: New file.
49154
49155         * tests/test-gc-hmac-sha1.c: New file.
49156
49157         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49158
49159         * modules/gc-hmac-md5-tests: New file.
49160
49161         * tests/test-gc-md5.c: New file.
49162
49163         * modules/gc-md5-tests: New file.
49164
49165 2005-10-13  Simon Josefsson  <jas@extundo.com>
49166
49167         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49168         Move memory allocation outside of loop.
49169
49170 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49171
49172         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49173         intermediate directory is in a read-only file system.  Problem
49174         reported by Eric Blake.
49175
49176 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49177
49178         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49179
49180 2005-10-12  Simon Josefsson  <jas@extundo.com>
49181
49182         * tests/test-hmac-sha1.c: New file.
49183
49184         * modules/hmac-sha1-tests: New file.
49185
49186         * modules/hmac-sha1: New file.
49187
49188 2005-10-12  Simon Josefsson  <jas@extundo.com>
49189
49190         * modules/gc-sha1: New file.
49191
49192 2005-10-12  Simon Josefsson  <jas@extundo.com>
49193
49194         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49195
49196         * tests/test-gc-pbkdf2-sha1.c: New file.
49197
49198 2005-10-12  Simon Josefsson  <jas@extundo.com>
49199
49200         * modules/gc-md5, modules/gc-hmac-md5: New files.
49201
49202         * modules/gc (Files): Remove md5, memxor and hmac files.
49203
49204 2005-10-12  Simon Josefsson  <jas@extundo.com>
49205
49206         * m4/gc-pbkdf2-sha1.m4: New file.
49207
49208         * m4/gc-hmac-sha1.m4: New file.
49209
49210         * m4/gc-sha1: New file.
49211
49212         * m4/hmac-sha1.m4: New file.
49213
49214 2005-10-12  Simon Josefsson  <jas@extundo.com>
49215
49216         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49217
49218         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49219
49220 2005-10-12  Simon Josefsson  <jas@extundo.com>
49221
49222         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49223         suggested by Bruno Haible <bruno@clisp.org>.
49224
49225 2005-10-12  Simon Josefsson  <jas@extundo.com>
49226
49227         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49228
49229 2005-10-12  Simon Josefsson  <jas@extundo.com>
49230
49231         * lib/gc-pbkdf2-sha1.c: New file.
49232
49233         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49234
49235 2005-10-12  Simon Josefsson  <jas@extundo.com>
49236
49237         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49238
49239         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49240
49241 2005-10-12  Simon Josefsson  <jas@extundo.com>
49242
49243         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49244         GC_USE_HMAC_MD5, respectively.
49245
49246         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49247         (gc_md5): Fix typo.
49248
49249         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49250
49251         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49252
49253         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49254
49255 2005-10-12  Bruno Haible  <bruno@clisp.org>
49256
49257         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49258         Reported by Stepan Kasal <kasal@ucw.cz>.
49259
49260 2005-10-11  Simon Josefsson  <jas@extundo.com>
49261
49262         * tests/test-crc.c: New file.
49263
49264         * modules/crc, modules/crc-tests: New files.
49265
49266 2005-10-11  Simon Josefsson  <jas@extundo.com>
49267
49268         * m4/crc.m4: New file.
49269
49270 2005-10-11  Simon Josefsson  <jas@extundo.com>
49271
49272         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49273
49274         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49275
49276         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49277
49278 2005-10-11  Simon Josefsson  <jas@extundo.com>
49279
49280         * lib/crc.h, lib/crc.c: New files.
49281
49282         * lib/gc.h (gc_hash_buffer): Add doc.
49283
49284 2005-10-11  Bruno Haible  <bruno@clisp.org>
49285
49286         * modules/c-strcasestr: New file.
49287         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49288
49289 2005-10-11  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/c-strcase: New file.
49292         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49293
49294 2005-10-11  Bruno Haible  <bruno@clisp.org>
49295
49296         * lib/strcasecmp.c: Include limits.h.
49297         (strcasecmp): Avoid integer overflow on exotic platforms.
49298         * lib/strncasecmp.c: Include limits.h.
49299         (strncasecmp): Avoid integer overflow on exotic platforms.
49300         Reported by Paul Eggert.
49301
49302 2005-10-11  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/c-strcasestr.h: New file, from GNU gettext.
49305         * lib/c-strcasestr.c: New file, from GNU gettext.
49306
49307 2005-10-11  Bruno Haible  <bruno@clisp.org>
49308
49309         * lib/c-strcase.h: New file, from GNU gettext.
49310         * lib/c-strcasecmp.c: New file, from GNU gettext.
49311         * lib/c-strncasecmp.c: New file, from GNU gettext.
49312
49313 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49314
49315         * modules/mempcpy (License): GPL -> LGPL.
49316         * modules/strchrnul (License): Likewise.
49317         * modules/sysexits (License): Likewise.
49318
49319 2005-10-08  Simon Josefsson  <jas@extundo.com>
49320
49321         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49322
49323 2005-10-07  Simon Josefsson  <jas@extundo.com>
49324
49325         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49326
49327 2005-10-06  Simon Josefsson  <jas@extundo.com>
49328
49329         * tests/test-hmac-md5.c: New file.
49330
49331         * modules/hmac-md5-tests: New file.
49332
49333         * modules/hmac-md5: New file.
49334
49335 2005-10-06  Simon Josefsson  <jas@extundo.com>
49336
49337         * m4/hmac-md5.m4: New file.
49338
49339         * m4/memxor.m4: Require gl_C_RESTRICT.
49340
49341 2005-10-06  Simon Josefsson  <jas@extundo.com>
49342
49343         * lib/memxor.c (memxor): Avoid casts and warnings.
49344
49345 2005-10-06  Simon Josefsson  <jas@extundo.com>
49346
49347         * lib/hmac-md5.c: New file.
49348
49349         * lib/hmac.h: New file.
49350
49351 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49352
49353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49354         promotes to int, not unsigned int, to catch the AIX 5.3
49355         compiler bug.
49356
49357 2005-10-05  Simon Josefsson  <jas@extundo.com>
49358
49359         * modules/memxor: New file.
49360
49361         * modules/iconv (Files): Move config.rpath to havelib, it is used
49362         there.
49363
49364         * modules/havelib (Files): Add config.rpath.
49365
49366 2005-10-05  Simon Josefsson  <jas@extundo.com>
49367
49368         * m4/memxor.m4: New file.
49369
49370 2005-10-05  Simon Josefsson  <jas@extundo.com>
49371
49372         * lib/memxor.c (memxor): Fix compiler error.
49373
49374         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49375         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49376
49377         * lib/memxor.h, lib/memxor.c: New files.
49378
49379         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49380         we assume all systems have it, suggested by Jim Meyering
49381         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49382         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49383         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49384         same reasons.
49385
49386 2005-10-05  Simon Josefsson  <jas@extundo.com>
49387
49388         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49389
49390 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49391
49392         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49393         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49394         needed, since the source code now assumes these .h files.
49395
49396 2005-10-05  Derek Price  <derek@ximbiot.com>
49397
49398         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49399
49400 2005-10-05  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/stdint (License): Change to LGPL.
49403
49404 2005-10-04  Simon Josefsson  <jas@extundo.com>
49405
49406         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49407         D. Baushke" <mdb@gnu.org>.
49408
49409 2005-10-04  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/verify.h (verify_true): Provide alternative definition for C++.
49412
49413 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49414
49415         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49416         (SSIZE_MAX): New macro, if not already defined.
49417         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49418         than 2 GiB.
49419
49420 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49421
49422         Sync from coreutils.
49423         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49424         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49425         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49426         ULLONG_MAX doesn't work with 2.7.2.1.
49427
49428 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49429
49430         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49431         From Ben Pfaff.
49432
49433         * modules/exclude (Depends-on): Depend on verify.
49434         * modules/strtoimax (Depends-on): Likewise.
49435         * modules/utimecmp (Depends-on): Likewise.
49436
49437 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         * lib/exclude.c: Include verify.h.
49440         (verify): Remove.  All callers changed to use verify.h's version.
49441         * lib/strtoimax.c: Likewise.
49442         * lib/utimecmp.c: Likewis.e
49443
49444         Sync from coreutils.
49445         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49446         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49447         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49448         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49449         bother returning ENOSYS if settimeofday or stime fails; just let
49450         them return whatever errno they want to return.
49451         * lib/utimens.c: Include unistd.h, for dup2.
49452         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49453         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49454
49455 2005-10-02  Jim Meyering  <jim@meyering.net>
49456
49457         Sync from coreutils.
49458         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49459         from glibc-2.2.5 that fails for read-only files.
49460
49461 2005-10-02  Jim Meyering  <jim@meyering.net>
49462
49463         Sync from coreutils.
49464         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49465         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49466         `#if HAVE_CONFIG_H'.
49467         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49468         Remove AT_FDCWD test.
49469         Do not consume the fd unless successful.
49470         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49471         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49472         block, so that we don't even try to compile it if settimeofday is
49473         available.  This works around a compilation failure on OSF1 V5.1,
49474         due to stime requiring a `long int*' while tv_sec is `int'.
49475
49476 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49477
49478         Sync from coreutils.
49479         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49480         against `yes', rather than just testing for nonempty.
49481
49482 2005-10-01  Simon Josefsson  <jas@extundo.com>
49483
49484         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49485         and Darwin.
49486
49487         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49488         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49489         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49490         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49491         Check if struct addrinfo is declared.
49492
49493 2005-10-01  Simon Josefsson  <jas@extundo.com>
49494
49495         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49496         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49497         AI_* and EAI_* definitions.  Protect function declarations.
49498
49499 2005-10-01  Jim Meyering  <jim@meyering.net>
49500
49501         Sync from coreutils.
49502
49503         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49504         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49505         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49507         in the inet and nsl libraries.  Required on Solaris 5.7.
49508
49509 2005-10-01  Jim Meyering  <jim@meyering.net>
49510
49511         Sync from coreutils.
49512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49513         in the inet and nsl libraries.  Required on Solaris 5.7.
49514
49515 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49516
49517         * lib/getdelim.c (getdelim): Remove unused variables.
49518
49519 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49520
49521         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49522         so that the code works even with ancient cpp.  Portability problem
49523         with GCC 2.7.2.1 reported by Thomas M.Ott.
49524
49525 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49526
49527         * modules/regex (Depends-on): Add strcase.
49528
49529         * modules/gethostname (Licence): Change from GPL to LGPL, since
49530         gethostname.c is a trivial implementation of a standard library
49531         function.
49532         * modules/poll (License): Change from GPL to LGPL, since it's
49533         derived from LGPL code.
49534
49535 2005-09-27  Jim Meyering  <jim@meyering.net>
49536
49537         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49538         HAVE_CONFIG_H.
49539
49540         * lib/intprops.h (signed_type_or_expr__): Define.
49541         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49542         for unsigned types.
49543
49544 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49545
49546         * lib/verify.h (verify_expr): Remove, replacing with:
49547         (verify_true): New macro that returns true instead of void.
49548         (verify_type__): Remove.
49549         (verify): Use verify_true rather than verify_type__.
49550
49551 2005-09-26  Bruno Haible  <bruno@clisp.org>
49552
49553         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49554         is necessary.
49555         (lib_SOURCES): Remove mbchar.c.
49556         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49557         (Files): Add m4/mbrtowc.m4.
49558         * modules/mbiter: Likewise.
49559         * modules/mbuiter: Likewise.
49560
49561 2005-09-26  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49564         compile mbchar.c if they are not both present.
49565         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49566         * m4/mbiter.m4 (gl_MBITER): Likewise.
49567         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49568         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49569         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49570
49571 2005-09-25  Jim Meyering  <jim@meyering.net>
49572
49573         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49574         also uses socklen_t.
49575
49576 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49577
49578         * lib/utimens.c (ENOSYS): Define if not already defined.
49579         (futimens): Support having a null PATH if the file descriptor
49580         is nonnegative.
49581
49582         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49583         Remove.
49584         (__attribute): Define to empty unless GCC 3.1 or later.
49585         This works around a core dump on OpenBSD 3.4, which has GCC
49586         2.95.3, which dumps core when given __attribute__(()).  It also
49587         simplifies other tests, since we really don't want to bother with
49588         worrying about which ancient version of GCC supported what.
49589         Original problem reported by Yoann Vandoorselaere, with part of
49590         the fix suggested by Derek Price.
49591
49592 2005-09-24  Jim Meyering  <jim@meyering.net>
49593
49594         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49595         so we can once again use a positive bitfield width of 1 -- now we
49596         don't have to explain why we were using a bitfield width of 2.
49597
49598 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49599
49600         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49601         and similarly for the other external symbols.  Problem reported
49602         by James Gallager.
49603
49604         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49605         bug reported by Jim Meyering.
49606
49607         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49609         not needed, since socklen is a prerequisite module.
49610
49611 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49614         Problem reported by Eric Blake.
49615         (getaddrinfo): Initialize se so that it's not garbage.
49616         Redo internal storage allocation so that it doesn't make unportable
49617         assumptions about alignment.
49618         Fix a memory leak.
49619
49620         * lib/utimens.c (futimens): Use futimesat if available.
49621         Prefer it to futimes since it doesn't have the futimes bug.
49622
49623         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49624         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49625         Instead, declare a function that returns a pointer to an array,
49626         and use verify_type__ to declare the size of the array.
49627         Problem and germ of a solution reported by Bruno Haible.
49628         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49629         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49630
49631 2005-09-23  Jim Meyering  <jim@meyering.net>
49632
49633         Sync from coreutils.
49634         Correct build failure (socklen_t not defined) on at least
49635         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49637
49638 2005-09-23  Jim Meyering  <jim@meyering.net>
49639
49640         * modules/getaddrinfo (Depends-on): Add socklen.
49641
49642 2005-09-23  Bruno Haible  <bruno@clisp.org>
49643
49644         * tests/test-verify.c: New file.
49645
49646 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         Sync from coreutils.
49649
49650         * modules/argmatch (Depends-on): Add verify.
49651         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49652         unistd-safer.
49653         * modules/save-cwd (Depends-on): Likewise.
49654
49655         * modules/openat (Files): Add lib/openat-die.c.
49656         (Depends-on): Remove error, exitfail.
49657         Add dirname.
49658
49659         * modules/verify: New file.
49660         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49661         with "verify" module.
49662
49663 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         Sync from coreutils.
49666
49667         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49668         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49669         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49670         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49671         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49672         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49673         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49674         Don't bother checking for string.h, stdlib.h, unistd.h.
49675         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49676         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49677         module's job.
49678         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49679         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49680
49681         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49682         (gl_GETDATE): Use it.
49683
49684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49685
49686 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49687
49688         Sync from coreutils.
49689
49690         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49691         stat-time.h.
49692         * lib/argmatch.h: Include verify.h
49693         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49694         (ARGMATCH_ASSERT): Remove; unused.
49695         * lib/canonicalize.c: Assume STDC_HEADERS.
49696         * lib/exclude.c: Include "strcase.h".
49697         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49698         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49699         and stdio-safer.h.
49700         (getusershell): Call fopen, not fopen_safer.
49701         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49702         Do not include unistd-safer.h.
49703         (save_cwd): Don't call fd_safer; no longer needed
49704         now that we include fcntl--.h.
49705
49706         * lib/getdate.y (relative_time): New type.
49707         (RELATIVE_TIME_0): New constant.
49708         (parser_control): Use relative_time instead of doing it ourselves.
49709         (%union): Add new relative_time rel member.
49710         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49711         Now typeless.
49712         (relunit, relunit_snumber): Now of type rel.
49713         (zone, rel, relunit, get_date): Adjust to above changes.
49714
49715         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49716         Do not include unistd-safer.h.
49717         (getloadavg): Don't call fd_safer; no longer needed
49718         now that we include fcntl--.h.
49719
49720         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49721         (make_dir_parents): Treat ENOSYS like EEXIST.
49722
49723         Improve quality of diagnostics on restore_cwd failure.
49724         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49725         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49726         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49727         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49728         each time through the loop.  Do not diagnose restore_cwd failure;
49729         that is the caller's job (and perhaps the caller does not care).
49730
49731         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49732         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49733         If the file already exists but is not a directory, don't bother
49734         to try to make its parents.
49735         Close potential file descriptor leak if we can't chdir("/") (!).
49736         Don't always return true if chdir($PWD) fails; return true only
49737         if the requested action was done successfully (except for the
49738         chdir($PWD)).
49739         Don't log final directory unless we actually made it.
49740         Refactor to avoid duplicate code to fix up permissions.
49741         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49742
49743         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49744         to make it a bit faster and (I hope) clearer.
49745         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49746         Fix bug in formats like %2N.
49747
49748         * lib/verify.h: New file.
49749
49750 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49751
49752         Sync from coreutils.
49753         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49754
49755 2005-09-22  Jim Meyering  <jim@meyering.net>
49756
49757         Sync from coreutils.
49758
49759         * m4/lstat.m4 (gl_FUNC_LSTAT):
49760         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49761         Remove obsolete comment.
49762         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49763         * m4/xstrtod.m4: Likewise.
49764
49765         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49766
49767 2005-09-22  Jim Meyering  <jim@meyering.net>
49768
49769         Sync from coreutils.
49770
49771         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49772
49773         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49774         the .tm_year member, since otherwise gcc-4.0 would now warn about
49775         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49776
49777         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49778         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49779
49780         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49781         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49782         when run in a time zone for which daylight savings time is in effect
49783         for the starting date.
49784
49785         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49786         stop us from restricting permissions of just-created absolute-named
49787         directories.
49788         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49789         to restore initial working directory.
49790         * lib/mkdir-p.c (make_dir_parents): New parameter:
49791         different_working_dir, to tell caller if/when we change the working
49792         directory and are unable to return to the initial one.
49793         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49794         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49795         `return false'.  This fixes a bug introduced on 2004-07-30.
49796
49797         * lib/openat.c (fdopendir): Be sure to close the supplied
49798         file descriptor before returning.  This makes our replacement
49799         implementation a little closer to Solaris's, where fdopendir
49800         ties the file descriptor to the returned DIR* pointer.
49801         * lib/openat.c (unlinkat): New function.
49802         * lib/openat.h (unlinkat): Add prototype.
49803         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49804         (openat_restore_fail): Rename from openat_restore_die.
49805         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49806
49807         Provide an alternative to exiting immediately upon save_cwd or
49808         restore_cwd failure.  Now, an application can arrange e.g.,
49809         to perform a longjump in that case.
49810         * lib/openat.c: Include dirname.h.
49811         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49812         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49813         and openat_restore_die rather than calling error directly.
49814         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49815
49816         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49817         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49818         define.
49819
49820         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49821         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49822                             int utc, int nanoseconds);
49823         Background:
49824         date should not have to allocate a megabyte of virtual memory to
49825         handle a format argument like +%1048575T.  When implemented with
49826         strftime, it must allocate such a buffer, use strftime to fill it
49827         in, print it, then free it.
49828         With fprintftime, it simply prints everything and exits.
49829         With no need for memory allocation, that's one fewer way to fail.
49830         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49831         optional field width, not before, so we accept %9:z, not %:9z.
49832         (my_strftime): Be sure to use L_('x') for literals.
49833
49834         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49835         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49836         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49837         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49838         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49839         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49840         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49841         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49842         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49843         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49844         * lib/xgethostname.c, lib/xreadlink.c:
49845         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49846
49847         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49848         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49849         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49850         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49851         and don't include <sys/file.h>).
49852
49853 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49854
49855         Sync from coreutils.
49856
49857         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49858         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49859         [!LDAV_DONE]: Avoid unused variable warning.
49860
49861 2005-09-21  Bruno Haible  <bruno@clisp.org>
49862
49863         * lib/unicodeio.h (unicode_to_mb): New declaration.
49864
49865 2005-09-20  Derek Price  <derek@ximbiot.com>
49866
49867         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49868         getaddrinfo.h.
49869
49870 2005-09-20  Bruno Haible  <bruno@clisp.org>
49871
49872         * gnulib-tool: Remove trailing slashes from the values specified for
49873         --source-base, --m4-base, --tests-base, --aux-dir.
49874         Suggested by Simon Josefsson <jas@extundo.com>.
49875
49876 2005-09-20  Bruno Haible  <bruno@clisp.org>
49877
49878         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49879         func_modules_to_filelist, func_import, func_create_testdir): Make all
49880         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49881         change when gnulib-tool is invoked in a different locale.
49882
49883 2005-09-19  Simon Josefsson  <jas@extundo.com>
49884
49885         * m4/socklen.m4: Fix typo.
49886
49887 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49888
49889         Use a consistent style for including <config.h>.
49890         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49891         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49892         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49893         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49894         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49895         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49896         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49897         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49898         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49899         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49900         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49901         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49902         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49903         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49904         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49905         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49906         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49907         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49908         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49909         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49910         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49911         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49912         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49913         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49914         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49915         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49916         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49917         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49918         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49919         lib/xstrtoumax.c, lib/yesno.c:
49920         Standardize inclusion of config.h.
49921         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49922         lib/inttostr.h:  Removed inclusion of config.h from header files.
49923         * lib/inttostr.c:  Adjusted in-tree users.
49924         * lib/timespec.h: Remove superfluous warning to include config.h.
49925         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49926         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49927         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49928         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49929         config.h with HAVE_CONFIG_H.
49930
49931 2005-09-19  Jim Meyering  <jim@meyering.net>
49932
49933         * modules/pathmax (License): Change to LGPL.
49934
49935 2005-09-19  Derek Price  <derek@ximbiot.com>
49936
49937         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49938
49939 2005-09-19  Bruno Haible  <bruno@clisp.org>
49940
49941         * gnulib-tool (import): Provide default for --tests-base.
49942
49943 2005-09-19  Bruno Haible  <bruno@clisp.org>
49944
49945         * doc/quote.texi: New file, extracted from gnulib.texi.
49946         * doc/ctime.texi: New file, extracted from gnulib.texi.
49947         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49948         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49949         * doc/gnulib.texi: Include them.
49950
49951 2005-09-18  Bruno Haible  <bruno@clisp.org>
49952
49953         Portability fix.
49954         * gnulib-tool (func_readlink): New function.
49955         (func_ln_if_changed): Use it.
49956
49957 2005-09-18  Bruno Haible  <bruno@clisp.org>
49958
49959         * gnulib-tool: Support --with-tests also with --import.
49960         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49961         (func_import): Use variables $testsbase and $inctests. Emit a
49962         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49963         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49964         SUBDIRS += $testsdir.
49965         (func_create_testdir): Update.
49966
49967 2005-09-18  Bruno Haible  <bruno@clisp.org>
49968
49969         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49970         instead of $dry_run.
49971         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49972         (func_ln_if_changed): Don't handle dry-run here.
49973         (func_import): In dry-run mode, detect more precisely which actions
49974         would be performed, and don't use "...ing" verbs.
49975
49976 2005-09-18  Bruno Haible  <bruno@clisp.org>
49977
49978         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49979         (func_import): Use join on two temporary files instead of three nested
49980         loops, in order to determine which files are new or old.
49981
49982 2005-09-18  Bruno Haible  <bruno@clisp.org>
49983
49984         * gnulib-tool (func_import): Comment out code that spits out the
49985         new files with --dry-run.
49986
49987 2005-09-18  Bruno Haible  <bruno@clisp.org>
49988
49989         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49990
49991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49992
49993         * lib/stat-time.h: New file.
49994         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49995         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49996         in a different way.
49997         (timespec_cmp): New function.
49998         * lib/utimecmp.c: Include stat-time.h.
49999         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50000         members exist, not on the obsolescent ST_MTIM_NSEC.
50001         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50002
50003 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50004
50005         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50006
50007 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50008
50009         * MODULES.html.sh (File system functions): Add stat-time.
50010         * modules/stat-time: New file.
50011         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50012         is now done in a different way, by the stat-time module.
50013         * modules/utimecmp (Depends-on): Add stat-time.
50014
50015 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50016
50017         * m4/st_mtim.m4: Remove.  Superseded by...
50018         * m4/stat-time.m4: New file.
50019         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50020         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50021
50022 2005-09-15  Derek Price  <derek@ximbiot.com>
50023
50024         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50025
50026 2005-09-15  Derek Price  <derek@ximbiot.com>
50027
50028         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50029         * lib/regex_internal.c: Ditto, using this...
50030         (__GNUC_PREREQ): ...new macro.
50031         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50032         using...
50033         (__GNUC_PREREQ): ...this new macro.
50034
50035         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50036
50037 2005-09-15  Derek Price  <derek@ximbiot.com>
50038             Paul Eggert  <eggert@cs.ucla.edu>
50039
50040         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50041         changes, consolidating in...
50042         * lib/regex_internal.h: ...this file.
50043
50044 2005-09-13  Jim Meyering  <jim@meyering.net>
50045
50046         * lib/canon-host.c: Filter through gnu indent and reword comments
50047         slightly.
50048         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50049
50050 2005-09-13  Derek Price  <derek@ximbiot.com>
50051
50052         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50053         failure.
50054         Reported by Jim Meyering  <jim@meyering.net>.
50055
50056 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50057
50058         * lib/base64.c: Typo.
50059         (base64_encode): Put b64str in initialized data section.
50060
50061 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         Merge glibc and coreutils changes into gnulib, plus a few
50064         extra fixes.
50065         * lib/md5.c: Use #error rather than a string.
50066         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50067         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50068         (__attribute__): Define to empty for non recent-GCC.
50069         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50070         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50071         Renamed from their non-__ counterparts, with new macros replacing
50072         them if not _LIBC.  Add __THROW attribute.
50073         (rol): Remove.
50074         (struct md5_ctx): Align buffer if using GCC.
50075         * lib/sha1.h (struct sha1_ctx): Likewise.
50076         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50077         The old name was backwards.
50078         (NOTSWAP): Remove; not used.
50079         (rol): New macro, moved here from md5.h.
50080         (sha1_process_block): Remove a FIXME that doesn't make sense.
50081
50082 2005-09-12  Derek Price  <derek@ximbiot.com>
50083
50084         Return usable errors from canon-host.
50085         * lib/canon-host.h: New file.
50086         * lib/canon-host.c (canon_host): Wrap...
50087         (canon_host_r): ...this new function, which now relies exclusively on
50088         getaddrinfo.
50089         (ch_strerror): New function.
50090         (last_cherror): New global.
50091         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50092         interface.
50093         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50094         void *.
50095         (freeaddrinfo): Free ai->ai_canonname when set.
50096
50097 2005-09-12  Derek Price  <derek@ximbiot.com>
50098
50099         Make canon-host require getaddrinfo.
50100         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50101         AC_LIBSOURCE canon-host.h.  Call...
50102         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50103         gl_GETADDRINFO.
50104         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50105
50106 2005-09-12  Derek Price  <derek@ximbiot.com>
50107
50108         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50109         LGPL.
50110         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50111
50112 2005-09-12  Derek Price  <derek@ximbiot.com>
50113
50114         * lib/gai_strerror.c: Include config.h when available.  Include
50115         getaddrinfo.h before other headers to test interface.
50116         Reported by Larry Jones <lawrence.jones@ugs.com>.
50117
50118 2005-09-12  Derek Price  <derek@ximbiot.com>
50119             Paul Eggert  <eggert@cs.ucla.edu>
50120
50121         * modules/glob (Files): Add glob-libc.h.
50122
50123 2005-09-12  Derek Price  <derek@ximbiot.com>
50124             Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50127         glob_.h, glob-libc.h.
50128         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50129
50130 2005-09-12  Derek Price  <derek@ximbiot.com>
50131             Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50134         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50135         protecting things that should be done only in gnulib contexts.
50136         * lib/glob_.h: New file, containing only the glob things needed for
50137         gnulib.
50138         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50139         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50140         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50141         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50142         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50143         and to respect the namespace rules better.
50144
50145 2005-09-08  Simon Josefsson  <jas@extundo.com>
50146
50147         * modules/socklen: New file.
50148
50149 2005-09-08  Simon Josefsson  <jas@extundo.com>
50150
50151         * m4/socklen.m4: New file.
50152
50153 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         * modules/utimens (Files): Add m4/utimbuf.m4, since
50156         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50157         Reported by Sergey Poznyakoff.
50158
50159 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50162         definitions, since that's the preferred style in glibc.
50163         Fix a minor spacing issue, and update copyright notice to match
50164         glibc's.
50165
50166 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50167
50168         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50169
50170 2005-09-06  Simon Josefsson  <jas@extundo.com>
50171
50172         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50173         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50174
50175 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50176
50177         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50178         warning.
50179
50180 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50181
50182         * config/srclist.txt: Add glibc bug 1302.
50183
50184 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50185
50186         Change bitset word type from unsigned int to unsigned long int,
50187         as this has better performance on typical 64-bit hosts.
50188         Port bitset code to hosts with unusual word sizes.
50189         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50190         (build_collating_symbol):
50191         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50192         argument is a bitset.  This is merely a style issue, but it makes
50193         it clearer that an entire array is expected.
50194         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50195         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50196         Port to the case where bitset_word is not the same as unsigned int.
50197         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50198         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50199         Likewise.
50200         * lib/regexec.c (check_dst_limits_calc_pos_1,
50201         check_subexp_matching_top):
50202         (build_trtable, group_nodes_into_DFAstates):
50203         Likewise.
50204         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50205         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50206         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50207         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50208         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50209         * lib/regcomp.c (optimize_subexps, lower_subexp):
50210         Work even if bitset_word has holes in its bitwise representation.
50211         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50212         * lib/regexec.c (check_dst_limits_calc_pos_1,
50213         check_subexp_matching_top):
50214         Likewise.
50215         * lib/regex_internal.c (re_string_reconstruct):
50216         Don't assume UCHAR_MAX == 255.
50217         * lib/regex_internal.h (bitset_set_all): Likewise.
50218         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50219         All uses changed.
50220         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50221         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50222         All uses changed.
50223         (BITSET_WORD_MAX): New macro.
50224         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50225         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50226         (bitset_empty, bitset_copy):
50227         Prefer sizeof (bitset) to multiplying it out ourselves.
50228         (bitset_not_merge): Remove; unused.
50229         (bitset_contain): Return bool, not unsigned int with one bit on.
50230         All callers changed.
50231         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50232         alignment than re_node_set; do this by defining a new internal
50233         type struct dests_alloc and using it to allocate memory.
50234
50235 2005-09-05  Bruno Haible  <bruno@clisp.org>
50236
50237         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50238         links.
50239
50240 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50241
50242         * modules/size_max (Makefile.am): Add size_max.h
50243
50244 2005-09-04  Derek Price  <derek@ximbiot.com>
50245
50246         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50247
50248 2005-09-03  Simon Josefsson  <jas@extundo.com>
50249
50250         * gnulib-tool: Fix typo.
50251
50252 2005-09-03  Simon Josefsson  <jas@extundo.com>
50253
50254         * config/srclist.txt: Add glibc bug 1293.
50255
50256 2005-09-03  Derek Price  <derek@ximbiot.com>
50257
50258         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50259         From Larry Jones <lawrence.jones@ugs.com>.
50260
50261 2005-09-02  Simon Josefsson  <jas@extundo.com>
50262
50263         * modules/socklen: New file.
50264
50265 2005-09-02  Simon Josefsson  <jas@extundo.com>
50266
50267         * modules/havelib: New module.
50268
50269         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50270         Use havelib.
50271
50272 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         Check for arithmetic overflow when calculating sizes, to prevent
50275         some buffer-overflow issues.  These patches are conservative, in the
50276         sense that when I couldn't determine whether an overflow was possible,
50277         I inserted a run-time check.
50278         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50279         macros.
50280         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50281         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50282         (re_xnrealloc, re_x2nrealloc): New inline functions.
50283         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50284         parse_bracket_exp):
50285         (build_equiv_class, build_charclass): Check for arithmetic overflow
50286         in size expression calculations.
50287         * lib/regex_internal.c (re_string_realloc_buffers):
50288         (build_wcs_upper_buffer, re_node_set_add_intersect):
50289         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50290         (re_dfa_add_node, register_state): Likewise.
50291         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50292         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50293         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50294         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50295
50296 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50297
50298         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50299         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50300
50301 2005-09-02  Bruno Haible  <bruno@clisp.org>
50302
50303         Support for lib vs. lib64 distinction on biarch platforms.
50304         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50305         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50307
50308 2005-09-02  Bruno Haible  <bruno@clisp.org>
50309
50310         * gnulib-tool (import): In the other first-use case, provide defaults
50311         as well.
50312
50313 2005-09-02  Bruno Haible  <bruno@clisp.org>
50314
50315         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50316         patches not yet found in the latest gettext release.
50317
50318 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50321         to avoid a collision with bits/local_lim.h in glibc.
50322         All uses changed.  Problem reported by Dmitry V. Levin in
50323         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50324
50325         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50326         bugs in int versus size_t comparisons.
50327         (re_string_context_at): Fix bug where the code assumed that
50328         Idx is signed.
50329
50330         Use bool where appropriate.
50331         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50332         All callers changed.
50333         (calc_eclosure_iter): Likewise, for ROOT arg.
50334         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50335         (build_charclass_op): Likewise, for NON_MATCH arg.
50336         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50337         (re_string_construct_common): Likewise, for ICASE arg.
50338         * lib/regexec.c (re_search_2_stub, re_search_stub):
50339         Likewise, for RET_LEN arg.
50340         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50341         (set_regs): Likewise, for FL_BACKTRACK arg.
50342         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50343         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50344         (calc_eclosure_iter, parse_bracket_exp):
50345         Use bool for internal variables that are booleans.
50346         * lib/regexec.c (re_search_internal, check_matching,
50347         proceed_next_node):
50348         (set_regs, build_sifted_states, sift_states_bkref):
50349         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50350         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50351         (find_collation_sequence_value):
50352         Likewise.
50353         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50354         (re_node_set_compare):
50355         Return bool, not int. All callers changed.
50356         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50357         (build_trtable, check_node_accept): Likewise.
50358         * lib/regex_internal.h: Include stdbool.h.
50359
50360         Fix bugs uncovered when converting to bool.
50361         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50362         failure instead of charging ahead blindly.
50363         * lib/regex_internal.c (register_state): Likewise.
50364         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50365         for freeing internal storage.
50366         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50367         bitset pieces used as boolean, to avoid undefined behavior
50368         on hosts that do int overflow checking.
50369
50370 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         * config/srclist.txt: Add glibc bugs 1285-1287.
50373
50374 2005-09-01  Jim Meyering  <jim@meyering.net>
50375
50376         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50377         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50378         Require gl_STAT_MACROS, too.
50379
50380 2005-09-01  Bruno Haible  <bruno@clisp.org>
50381
50382         * gnulib-tool (import): In the first-use case, provide defaults.
50383
50384 2005-09-01  Bruno Haible  <bruno@clisp.org>
50385
50386         * gnulib-tool (func_import): Remove the .tmp files.
50387
50388 2005-09-01  Bruno Haible  <bruno@clisp.org>
50389
50390         * gnulib-tool (func_import): Fix handling of symbolic links.
50391
50392 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50393
50394         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50395         old glibc regex code mishandles strings longer than 2**31 bytes.
50396         This patch fixes this when the regex code is used in gnulib
50397         (i.e., outside glibc).
50398
50399         This patch should not affect the use of the regex code inside
50400         glibc.  No doubt this problem also needs to be handled for glibc
50401         as well, but the result will be an incompatible change to the
50402         glibc ABI, and the old ABI will have to be supported too.  That
50403         can be the the subject for another patch.
50404
50405         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50406         governing whether the rest of this patch is active.  By default,
50407         the macro is disabled and the patch has no effect.
50408         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50409         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50410         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50411         (re_match_2, re_set_registers): Use the new types.
50412         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50413         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50414         New macros.
50415         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50416         (re_string_context_at, bin_tree_t, re_dfastate_t):
50417         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50418         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50419         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50420         (re_string_char_size_at, re_string_wchar_at):
50421         (re_string_elem_size_at):
50422         Use the new types and macros to port to 64-bit hosts.
50423         Use unsigned types for internal values, so that the code
50424         mostly works even for arrays larger than SSIZE_MAX.
50425         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50426         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50427         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50428         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50429         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50430         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50431         (calc_inveclosure, parse_dup_op, build_range_exp):
50432         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50433         (fetch_number, create_token_tree, mark_opt_subexp):
50434         Likewise.
50435         * lib/regex_internal.c (re_string_construct_common,
50436         create_ci_newstate):
50437         (create_cd_newstate, re_string_allocate, re_string_construct):
50438         (re_string_realloc_buffers, build_wcs_upper_buffer):
50439         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50440         (re_string_reconstruct, re_string_peek_byte_case):
50441         (re_string_fetch_byte_case, re_string_context_at):
50442         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50443         (re_node_set_init_copy, re_node_set_add_intersect):
50444         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50445         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50446         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50447         (re_acquire_state, re_acquire_state_context, register_state):
50448         Likewise.
50449         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50450         search_cur_bkref_entry):
50451         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50452         (re_search_internal, re_search_2_stub, re_search_stub)
50453         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50454         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50455         (update_cur_sifted_state, check_dst_limits):
50456         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50457         (check_subexp_limits, sift_states_bkref, merge_state_array):
50458         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50459         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50460         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50461         (expand_bkref_cache, check_node_accept_bytes):
50462         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50463         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50464         (acquire_init_state_context, check_halt_node_context):
50465         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50466         (sift_states_backward, clean_state_log_if_needed):
50467         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50468         (find_recover_state, transit_state_sb, transit_state_mb):
50469         (transit_state_bkref, build_trtable, match_ctx_clean):
50470         Likewise.
50471         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50472         to work around an assumption that REG_MISSING is negative.
50473
50474         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50475         (seek_collating_symbol_entry) [defined _LIBC]:
50476         (lookup_collation_sequence_value) [defined _LIBC]:
50477         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50478         Use prototypes rather than old-style function definitions.
50479         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50480         (transit_state_sb) [0]:
50481         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50482
50483         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50484         rm_eo.
50485
50486         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50487         (optimize_subexps, lower_subexp):
50488         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50489         since the signed shift might overflow.  Use 1u<<31 instead.
50490         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50491         Likewise.
50492         * lib/regexec.c (check_dst_limits_calc_pos_1,
50493         check_subexp_matching_top): Likewise.
50494
50495         * lib/regcomp.c (optimize_subexps, lower_subexp):
50496         Use CHAR_BIT rather than 8, for clarity.
50497         * lib/regexec.c (check_dst_limits_calc_pos_1):
50498         (check_subexp_matching_top): Likewise.
50499         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50500         have to worry about portability issues when shifting it left.
50501         Remove no-longer-needed test for table_size > 0.
50502         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50503         in a word, as the resulting behavior is undefined.
50504         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50505         in one case, a <= should have been an <, and in another case the
50506         whole test was missing.
50507         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50508         the standard name CHAR_BIT.
50509         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50510         this is not true on one's complement and signed-magnitude hosts.
50511
50512         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50513         next_last_offset.
50514         (struct re_dfa_t): Remove unused member states_alloc.
50515         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50516
50517 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50520         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50521         and large-file glibc and in 32-bit large-file Solaris.
50522
50523 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50524
50525         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50526         lengths fit in regoff_t; this isn't true if regoff_t is the same
50527         width as size_t.
50528         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50529         (= START + RANGE) instead of RANGE.  This avoids overflow
50530         problems when regoff_t is the same width as size_t.
50531         All callers changed.
50532         (re_search_2_stub): Check for overflow when adding the
50533         sizes of the two strings.
50534         (re_search_stub): Check for overflow when adding START
50535         to RANGE; if it occurs, substitute the extreme value.
50536
50537 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50538
50539         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50540
50541 2005-08-31  Jim Meyering  <jim@meyering.net>
50542
50543         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50544         a pointer-to-const.
50545         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50546         (register_state): Likewise.
50547         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50548         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50549         (group_nodes_into_DFAstates): Likewise.
50550
50551 2005-08-31  Jim Meyering  <jim@meyering.net>
50552
50553         * check-module: Add a FIXME comment.
50554
50555 2005-08-31  Eric Blake  <ebb9@byu.net>
50556
50557         * modules/unistd-safer (Files): Add unistd--.h.
50558         * modules/stdio-safer (Files): Add stdio--.h.
50559
50560 2005-08-31  Derek Price  <derek@ximbiot.com>
50561
50562         * lib/getdelim.c (getdelim): Return EOF on EOF.
50563         Reported by Larry Jones <lawrence.jones@ugs.com>.
50564
50565 2005-08-31  Bruno Haible  <bruno@clisp.org>
50566
50567         Avoid unnecessary diffs in the generated lib/Makefile.am.
50568         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50569         the generated files.
50570         (func_import): Don't set cmd.
50571
50572 2005-08-31  Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/strstr.c: Include <stddef.h>, for NULL.
50575         * lib/strcasestr.c: Likewise.
50576         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50577
50578 2005-08-31  Bruno Haible  <bruno@clisp.org>
50579
50580         * gnulib-tool: New option --macro-prefix.
50581         (func_import): Use macro_prefix.
50582         (import): Handle option --macro-prefix.
50583
50584 2005-08-31  Bruno Haible  <bruno@clisp.org>
50585
50586         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50587         Also use new variables cached_lgpl, cached_libtool.
50588
50589 2005-08-31  Bruno Haible  <bruno@clisp.org>
50590
50591         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50592         always instantiating them.
50593
50594 2005-08-31  Bruno Haible  <bruno@clisp.org>
50595
50596         * gnulib-tool (func_import): Read the previous cached settings
50597         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50598         earlier added by gnulib but are now dropped. Warn when a gnulib file
50599         overwrites a non-gnulib file.
50600
50601 2005-08-31  Bruno Haible  <bruno@clisp.org>
50602
50603         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50604         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50605         projects that don't keep autogenerated files in CVS. Put into
50606         actioncmd only the specified modules, not the transitive closure.
50607
50608 2005-08-31  Bruno Haible  <bruno@clisp.org>
50609
50610         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50611         Create directories that shall be filled.
50612         (import): Don't look for gl_* macros in configure.ac. Recurse across
50613         all directories containing a gnulib-cache.m4 files, if meaningful.
50614
50615 2005-08-31  Bruno Haible  <bruno@clisp.org>
50616
50617         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50618         (import): Set seen_libtool when we see gl_LIBTOOL.
50619
50620 2005-08-31  Bruno Haible  <bruno@clisp.org>
50621
50622         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50623         declaration macro definitions from generated gnulib.m4.
50624
50625 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50626
50627         * lib/iconvme.h: Add prototype for iconv_alloc.
50628
50629 2005-08-29  Simon Josefsson  <jas@extundo.com>
50630
50631         * lib/iconvme.c: Fix errno.
50632
50633 2005-08-29  Bruno Haible  <bruno@clisp.org>
50634
50635         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50636         that it works when the directory contains spaces.
50637
50638 2005-08-29  Bruno Haible  <bruno@clisp.org>
50639
50640         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50641
50642 2005-08-29  Bruno Haible  <bruno@clisp.org>
50643
50644         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50645         Emit more advice.
50646
50647 2005-08-29  Bruno Haible  <bruno@clisp.org>
50648         and Stepan Kasal  <kasal@ucw.cz>
50649
50650         * check-module: If more parameters are given, check each of them
50651         separately; add more exceptions, as noted by Jim Meyering.
50652         (check_module): New procedure.
50653         (%exempt_header): Now contains all exceptions.
50654
50655 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50656
50657         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50658
50659 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50660
50661         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50662
50663 2005-08-28  Bruno Haible  <bruno@clisp.org>
50664
50665         * m4/gnulib-tool.m4: New file.
50666
50667 2005-08-27  Jim Meyering  <jim@meyering.net>
50668
50669         * modules/unistd-safer (Files): Add pipe-safer.c.
50670         * modules/fcntl-safer (Files): Add creat-safer.c.
50671
50672 2005-08-27  Jim Meyering  <jim@meyering.net>
50673
50674         * m4/stdlib-safer.m4: New file.  From coreutils.
50675         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50676         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50677         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50679         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50680
50681 2005-08-27  Jim Meyering  <jim@meyering.net>
50682
50683         * lib/fopen-safer.c: Merge minor changes from coreutils.
50684         * lib/dup-safer.c: Likewise.
50685         * lib/fd-safer.c: Likewise.
50686
50687         Merge from coreutils.
50688         * lib/stdio--.h: New file.
50689         * lib/stdlib--.h: New file.
50690         * lib/mkstemp-safer.c: New file.
50691
50692         GNU tar needs these.
50693         * lib/pipe-safer.c: New file.
50694         * lib/creat-safer.c: New file.
50695         * lib/fcntl--.h (creat): Define to creat_safer.
50696         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50697         * lib/unistd--.h (pipe): Define to pipe_safer.
50698         * lib/unistd-safer.h: Declare pipe_safer.
50699
50700 2005-08-26  Simon Josefsson  <jas@extundo.com>
50701
50702         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50703         Haible <bruno@clisp.org>.
50704
50705 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * lib/regex_internal.h: Remove all references to
50708         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50709         or better.
50710         (bitset_not, bitset_merge, bitset_not_merge):
50711         (bitset_mask, re_string_allocate, re_string_construct):
50712         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50713         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50714         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50715         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50716         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50717         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50718         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50719         (re_acquire_state_context):
50720         Remove unnecessary forward decls.
50721         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50722         Put __attribute at function definition,
50723         now that the function decl has been removed.
50724         * lib/regex_internal.c (re_string_peek_byte_case):
50725         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50726         Likewise.
50727
50728 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50729
50730         * m4/regex.m4: Add AC_PREREQ(2.50).
50731         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50732
50733 2005-08-25  Simon Josefsson  <jas@extundo.com>
50734
50735         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50736         __fsetlocking.
50737
50738 2005-08-25  Simon Josefsson  <jas@extundo.com>
50739
50740         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50741         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50742         GLIBC specific code.
50743
50744 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         Make regex safe for g++.  This fixes one real bug (an "err"
50747         that should have been "*err").  g++ problem reported by
50748         Sam Steingold.
50749         * lib/regex_internal.h (re_calloc): New macro, consistent with
50750         re_malloc etc.  All callers of calloc changed to use re_calloc.
50751         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50752         not int.  All callers changed.
50753         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50754         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50755         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50756         (find_recover_state): Change "err" to "*err"; this fixes what
50757         appears to be a real bug.
50758         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50759         versus int.
50760
50761 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * modules/regex (Depends-on): Add malloc, since the code
50764         assumes that !malloc(0) means failure.
50765
50766 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50767
50768         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50769
50770         alloca modernization/simplification for regex.
50771         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50772         needs to be at the start of the file, and can be moved into
50773         regex_internal.h and simplified.
50774         * lib/regex_internal.h: Include <alloca.h>.
50775         (__libc_use_alloca) [!defined _LIBC]: New macro.
50776         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50777         now works outside glibc.
50778
50779 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50780
50781         * config/srclist.txt: Add glibc bugs 1241, 1245.
50782
50783 2005-08-25  Jim Meyering  <jim@meyering.net>
50784
50785         * lib/open-safer.c: Include <config.h>.
50786         Otherwise, we'd lose LARGEFILE support in any file using
50787         e.g. "fcntl--.h"
50788
50789 2005-08-25  Bruno Haible  <bruno@clisp.org>
50790
50791         * m4/minmax.m4: Require autoconf 2.52.
50792         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50793         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50794         alternatives of translit over the alphabet.
50795         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50796
50797 2005-08-24  Simon Josefsson  <jas@extundo.com>
50798
50799         * tests/test-getpass.c: New file.
50800
50801 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50804         for GNU regex features.
50805
50806 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50807
50808         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50809         * lib/regex.h (regerror): Likewise.
50810
50811         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50812         requires this.  (The code never needed it.)
50813
50814         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50815         All uses of recently-renamed identifiers changed to use the new,
50816         POSIX-compliant names.  The code will build and run just fine
50817         without these changes, but it's better to eat our own dog food
50818         and use the standard-conforming names.
50819
50820         * lib/regex.h: Fix a multitude of POSIX name space violations.
50821         These changes have an effect only for programs that define
50822         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50823         do not change anything for programs compiled in the normal way.
50824         Also, there is no effect on the ABI.
50825
50826         (_REGEX_SOURCE): New macro.
50827         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50828         defined and _GNU_SOURCE is not; this fixes a name space violation.
50829
50830         Rename the following macros to obey POSIX requirements.
50831         The old names are still visible as macros if _REGEX_SOURCE is defined.
50832         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50833         RE_BACKSLASH_ESCAPE_IN_LISTS.
50834         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50835         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50836         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50837         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50838         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50839         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50840         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50841         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50842         (REG_INTERVALS): renamed from RE_INTERVALS.
50843         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50844         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50845         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50846         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50847         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50848         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50849         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50850         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50851         RE_UNMATCHED_RIGHT_PAREN_ORD.
50852         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50853         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50854         (REG_DEBUG): renamed from RE_DEBUG.
50855         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50856         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50857         unusual, since we can't clash with the POSIX REG_ICASE.
50858         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50859         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50860         (REG_NO_SUB): renamed from RE_NO_SUB.
50861         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50862         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50863         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50864         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50865         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50866         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50867         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50868         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50869         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50870         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50871         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50872         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50873         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50874         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50875         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50876         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50877         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50878         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50879         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50880         (REG_FIXED): Renamed from REGS_FIXED.
50881         (REG_NREGS): Renamed from RE_NREGS.
50882
50883         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50884         of other REG_* macros, since POSIX says the user is allowed to
50885         #undef these macros selectively.
50886
50887         (reg_errcode_t): Update comment stating what other tables need
50888         to be consistent.
50889
50890         Rename the following enum values to obey POSIX requirements.
50891         The old names are still visible as macros.
50892         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50893         is not defined, since GNU is supposed to be a superset of POSIX as
50894         much as possible, and since we want reg_errcode_t to be a signed
50895         type for implementation consistency.
50896         (_REG_NOERROR): Renamed from REG_NOERROR.
50897         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50898         (_REG_BADPAT): Renamed from REG_BADPAT.
50899         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50900         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50901         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50902         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50903         (_REG_EBRACK): Renamed from REG_EBRACK.
50904         (_REG_EPAREN): Renamed from REG_EPAREN.
50905         (_REG_EBRACE): Renamed from REG_EBRACE.
50906         (_REG_BADBR): Renamed from REG_BADBR.
50907         (_REG_ERANGE): Renamed from REG_ERANGE.
50908         (_REG_ESPACE): Renamed from REG_ESPACE.
50909         (_REG_BADRPT): Renamed from REG_BADRPT.
50910         (_REG_EEND): Renamed from REG_EEND.
50911         (_REG_ESIZE): Renamed from REG_ESIZE.
50912         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50913         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50914         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50915         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50916         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50917
50918         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50919         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50920         changed.  But support the old name if the new one is not defined
50921         and if _REGEX_SOURCE.
50922
50923         Change the following member names in struct re_pattern_buffer.
50924         The old names are still supported if !_REGEX_SOURCE.
50925         The new names are always supported, regardless of _REGEX_SOURCE.
50926         (re_buffer): Renamed from buffer.
50927         (re_allocated): Renamed from allocated.
50928         (re_used): Renamed from used.
50929         (re_syntax): Renamed from syntax.
50930         (re_fastmap): Renamed from fastmap.
50931         (re_translate): Renamed from translate.
50932         (re_can_be_null): Renamed from can_be_null.
50933         (re_regs_allocated): Renamed from regs_allocated.
50934         (re_fastmap_accurate): Renamed from fastmap_accurate.
50935         (re_no_sub): Renamed from no_sub.
50936         (re_not_bol): Renamed from not_bol.
50937         (re_not_eol): Renamed from not_eol.
50938         (re_newline_anchor): Renamed from newline_anchor.
50939
50940         Change the following member names in struct re_registers.
50941         The old names are still supported if !_REGEX_SOURCE.
50942         The new names are always supported, regardless of _REGEX_SOURCE.
50943         (rm_num_regs): Renamed from num_regs.
50944         (rm_start): Renamed from start.
50945         (rm_end): Renamed from end.
50946
50947         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50948         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50949         Prepend __ to parameter names.
50950
50951         Undo yesterday's changes.
50952
50953 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50954
50955         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50956         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50957         lib/regex.c.
50958
50959 2005-08-24  Jim Meyering  <jim@meyering.net>
50960
50961         Sync from coreutils.
50962         * m4/fcntl-safer.m4: New file.
50963
50964         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50965         and object files for this module.
50966
50967 2005-08-24  Jim Meyering  <jim@meyering.net>
50968
50969         Sync from coreutils.
50970         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50971
50972 2005-08-24  Jim Meyering  <jim@meyering.net>
50973
50974         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50975         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50976
50977 2005-08-24  Jim Meyering  <jim@meyering.net>
50978
50979         * modules/fcntl-safer: New module.
50980         * modules/fts (Depends-on): Add fcntl-safer.
50981         * MODULES.html.sh (File descriptor based Input/Output):
50982         Add fcntl-safer.
50983
50984 2005-08-24  Bruno Haible  <bruno@clisp.org>
50985
50986         Support for unit test modules.
50987         * modules/README: Mention tests modules.
50988         * modules/TEMPLATE-TESTS: New file.
50989         * gnulib-tool: New options --extract-tests-module, --with-tests and
50990         --tests-base (unused for the moment).
50991         (testsbase, inctests): New variables.
50992         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50993         (func_verify_module): Exclude TEMPLATE-TESTS.
50994         (func_verify_nontests_module, func_verify_tests_module): New functions.
50995         (func_get_dependencies): Add implicit dependency for tests modules.
50996         (func_get_tests_module): New function.
50997         (func_modules_transitive_closure): When --with-tests was specified,
50998         include the unit tests as well, unless explicitly avoided.
50999         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51000         (func_emit_tests_Makefile_am): New function.
51001         (func_create_testdir): When --with-tests was specified, emit a
51002         tests/ directory.
51003         * MODULES.html.sh (Future developments): Update.
51004
51005 2005-08-24  Bruno Haible  <bruno@clisp.org>
51006
51007         * modules/tls-tests: New file.
51008         * tests/test-tls.c: New file, from GNU gettext.
51009
51010 2005-08-24  Bruno Haible  <bruno@clisp.org>
51011
51012         * modules/lock-tests: New file.
51013         * tests/test-lock.c: New file, from GNU gettext.
51014
51015 2005-08-24  Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/lock.h: Add multiple inclusion guard.
51018         * lib/tls.h: Add multiple inclusion guard.
51019
51020 2005-08-24  Bruno Haible  <bruno@clisp.org>
51021
51022         * gnulib-tool: Add support for the --aux-dir option to
51023         --create-testdir, --create-megatestdir, --test, --megatest.
51024         (func_create_testdir, func_create_megatestdir): Optionally emit a
51025         AC_CONFIG_AUX_DIR directive.
51026         (create-testdir, create-megatestdir, test, megatest): Provide a
51027         default value for $auxdir.
51028
51029 2005-08-24  Bruno Haible  <bruno@clisp.org>
51030
51031         * gnulib-tool (import): Use compound statement instead of subshell
51032         where possible.
51033
51034 2005-08-24  Bruno Haible  <bruno@clisp.org>
51035
51036         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51037
51038 2005-08-24  Bruno Haible  <bruno@clisp.org>
51039
51040         * gnulib-tool (func_version): Update.
51041
51042 2005-08-24  Bruno Haible  <bruno@clisp.org>
51043
51044         * gnulib-tool (func_import, func_create_testdir,
51045         func_create_megatestdir): Quote all autoconf macro arguments.
51046
51047 2005-08-24  Bruno Haible  <bruno@clisp.org>
51048
51049         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51050         option --force, because --force causes the aclocal.m4 of each
51051         subdirectory to be newer than the corresponding config.h.in.
51052
51053 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51054
51055         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51056         All contents moved to gl_REGEX.
51057         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51058         assume that it does.
51059
51060 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51061
51062         * lib/regex.h (REG_NOSYS)
51063         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51064         Define, since POSIX requires it as of 2001.
51065         (_REG_ENOSYS)
51066         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51067         New private symbol, used to keep the enum signed in all cases.
51068         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51069         Youngman in
51070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51071
51072         * lib/regex_internal.c (re_string_skip_chars, register_state):
51073         (calc_state_hash):
51074         Remove forward decls; no longer needed now that we use prototypes.
51075         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51076         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51077         (clean_state_log_if_needed): Likewise.
51078
51079 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51080
51081         * config/srclist.txt: Add glibc bugs 1231-1233.
51082
51083 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         Fix problems reported by Sam Steingold in
51086         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51087         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51088         assumed that reg_errcode_t is a signed type, which is not
51089         necessarily true if _XOPEN_SOURCE is not defined.
51090         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51091         since some compilers warn about it otherwise.
51092
51093 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51094
51095         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51096         (init_word_char, create_initial_state, duplicate_node_closure):
51097         (fetch_token, peek_token_bracket, build_range_exp):
51098         (build_collating_symbol): Remove forward decls; no longer needed
51099         now that we use prototypes.
51100
51101         * lib/regcomp.c:
51102         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51103         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51104         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51105         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51106         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51107         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51108         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51109         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51110         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51111         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51112         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51113         (build_charclass, build_charclass_op, fetch_number, create_tree):
51114         (create_token_tree, mark_opt_subexp, duplicate_tree):
51115         Use prototypes rather than old-style definitions.
51116
51117         * lib/regex_internal.c:
51118         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51119         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51120         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51121         (re_string_reconstruct, re_string_peek_byte_case):
51122         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51123         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51124         (re_node_set_init_copy, re_node_set_add_intersect):
51125         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51126         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51127         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51128         (re_acquire_state, re_acquire_state_context, register_state):
51129         (create_ci_newstate, create_cd_newstate, free_state):
51130         Likewise.
51131         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51132         re_search_2):
51133         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51134         (re_search_internal, prune_impossible_nodes):
51135         (acquire_init_state_context, check_matching, static):
51136         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51137         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51138         (update_regs, sift_states_backward, build_sifted_states):
51139         (clean_state_log_if_needed, merge_state_array):
51140         (update_cur_sifted_state, add_epsilon_src_nodes):
51141         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51142         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51143         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51144         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51145         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51146         (check_arrival, check_arrival_add_next_nodes):
51147         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51148         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51149         (check_node_accept_bytes, check_node_accept, extend_buffers):
51150         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51151         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51152         (sift_ctx_init):
51153         Likewise.
51154
51155         * lib/regex_internal.h:
51156         (re_string_allocate, re_string_construct, re_string_reconstruct):
51157         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51158         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51159         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51160         (re_string_context_at, re_string_peek_byte_case):
51161         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51162         is defined, since we now use prototypes always.
51163
51164         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51165         C89 or better.  All uses removed.
51166
51167 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51168
51169         * config/srclist.txt: Add glibc bugs 1220-1227.
51170
51171 2005-08-20  Jim Meyering  <jim@meyering.net>
51172
51173         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51174         of unused local, dfa.
51175
51176 2005-08-20  Bruno Haible  <bruno@clisp.org>
51177
51178         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51179
51180 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51183         (re_node_set_insert_last, re_dfa_add_node):
51184         Rename local variables to avoid GCC shadowing warnings.
51185
51186 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51187
51188         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51189         [defined lint]: Suppress bogus uninitialized-variable warnings.
51190
51191         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51192         and let the caller return REG_ESPACE if out of space.  This
51193         removes an uninitialied-variable warning with GCC 4.0.1, and also
51194         avoids taking the address of a local variable.  All callers
51195         changed.
51196
51197 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51198
51199         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51200         $LIBCSRC/posix/regexec.c.
51201         Add glibc bug 1217 for regcomp.c.
51202
51203 2005-08-19  Jim Meyering  <jim@meyering.net>
51204
51205         * lib/regexec.c (proceed_next_node): Redo local variables to
51206         avoid GCC shadowing warnings.
51207
51208 2005-08-18  Bruno Haible  <bruno@clisp.org>
51209
51210         * lib/strstr.c (strstr): Fix return value in multibyte case.
51211         * lib/strcasestr.c (strcasestr): Likewise.
51212
51213 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51216
51217 2005-08-17  Jim Meyering  <jim@meyering.net>
51218
51219         Make the %s format (seconds since the epoch) work for a negative
51220         number and when used with a zero-padded field width, e.g. %015s.
51221
51222         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51223         label so that it precedes the code to set `digits'.  Otherwise,
51224         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51225         print `00-22'.  Now, it prints `-0022', as it should.
51226
51227 2005-08-17  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/strstr (Files): Add m4/mbrtowc.m4.
51230         (Depends-on): Add mbuiter.
51231
51232 2005-08-17  Bruno Haible  <bruno@clisp.org>
51233
51234         * modules/strcasestr: New file.
51235         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51236         strcasestr.
51237
51238 2005-08-17  Bruno Haible  <bruno@clisp.org>
51239
51240         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51241
51242 2005-08-17  Bruno Haible  <bruno@clisp.org>
51243
51244         * modules/mbuiter: New file.
51245         * MODULES.html.sh (Extended multibyte and wide character utilities):
51246         Add mbuiter.
51247
51248 2005-08-17  Bruno Haible  <bruno@clisp.org>
51249
51250         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51251         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51252
51253 2005-08-17  Bruno Haible  <bruno@clisp.org>
51254
51255         * m4/strcasestr.m4: New file.
51256
51257 2005-08-17  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51260         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51261
51262 2005-08-17  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/strcasestr.h: New file.
51265         * lib/strcasestr.c: New file.
51266
51267 2005-08-17  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/strcasecmp.c: Use mbuiter.h.
51270
51271 2005-08-17  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/mbuiter.h: New file.
51274
51275 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51278         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51279         and gl_GETOPT are both invoked via different paths (as happens
51280         with GNU tar CVS because it uses both argp and getopt), the former
51281         wins.
51282
51283 2005-08-16  Bruno Haible  <bruno@clisp.org>
51284
51285         * modules/tls: New file.
51286         * MODULES.html.sh (Multithreading): Add tls.
51287
51288 2005-08-16  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/strnlen1: New file.
51291         * MODULES.html.sh (String handling): Add strnlen1.
51292
51293 2005-08-16  Bruno Haible  <bruno@clisp.org>
51294
51295         * modules/strcase (Files): Add m4/mbrtowc.m4.
51296         (Depends-on): Add strnlen1, mbchar.
51297
51298 2005-08-16  Bruno Haible  <bruno@clisp.org>
51299
51300         * modules/mbiter: New file.
51301         * MODULES.html.sh (Extended multibyte and wide character utilities):
51302         Add mbiter.
51303
51304 2005-08-16  Bruno Haible  <bruno@clisp.org>
51305
51306         * modules/mbfile: New file.
51307         * MODULES.html.sh (Extended multibyte and wide character utilities):
51308         Add mbfile.
51309
51310 2005-08-16  Bruno Haible  <bruno@clisp.org>
51311
51312         * modules/mbchar: New file.
51313         * MODULES.html.sh (Extended multibyte and wide character utilities):
51314         New section.
51315
51316 2005-08-16  Bruno Haible  <bruno@clisp.org>
51317
51318         * m4/tls.m4: New file, from GNU gettext.
51319
51320 2005-08-16  Bruno Haible  <bruno@clisp.org>
51321
51322         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51323         always.
51324         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51325
51326 2005-08-16  Bruno Haible  <bruno@clisp.org>
51327
51328         * m4/mbiter.m4: New file.
51329
51330 2005-08-16  Bruno Haible  <bruno@clisp.org>
51331
51332         * m4/mbfile.m4: New file.
51333
51334 2005-08-16  Bruno Haible  <bruno@clisp.org>
51335
51336         * m4/mbchar.m4: New file.
51337
51338 2005-08-16  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/tls.h: New file, from GNU gettext.
51341         * lib/tls.c: New file, from GNU gettext.
51342
51343 2005-08-16  Bruno Haible  <bruno@clisp.org>
51344
51345         * lib/strnlen1.h: New file.
51346         * lib/strnlen1.c: New file.
51347
51348 2005-08-16  Bruno Haible  <bruno@clisp.org>
51349
51350         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51351         (mbi_init): Update.
51352         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51353         NUL byte, not after it.
51354
51355 2005-08-16  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/strcase.h (strcasecmp): Add note in comments.
51358         * lib/strncasecmp.c: Use code from strcasecmp.c.
51359         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51360         (strcasecmp): Work correctly in multibyte locales.
51361
51362 2005-08-16  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/mbiter.h: New file.
51365
51366 2005-08-16  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/mbfile.h: New file.
51369
51370 2005-08-16  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/mbchar.h: New file.
51373         * lib/mbchar.c: New file.
51374
51375 2005-08-16  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51378         the valid ones. Makes the comparison operations transitive:
51379         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51380         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51381
51382 2005-08-15  Simon Josefsson  <jas@extundo.com>
51383
51384         * modules/ssize_t (License): Change to 'unlimited'.
51385
51386         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51387
51388 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51389
51390         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51391         Add comments for each pending glibc patch.
51392
51393 2005-08-15  Bruno Haible  <bruno@clisp.org>
51394
51395         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51396         __cplusplus is defined.
51397
51398 2005-08-14  Jim Meyering  <jim@meyering.net>
51399
51400         Sync from coreutils.
51401
51402         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51403         Use the hash-table-based cycle-detection code not just when
51404         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51405         Reported by James Youngman in
51406         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51407         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51408         FTS_TIGHT_CYCLE_CHECK.
51409         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51410         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51411         once again.
51412         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51413         * lib/fts.c (fd_safer): Remove decl.
51414         Include fcntl--.h rather than unistd-safer.h
51415         (fts_safe_changedir): Don't call fd_safer; no longer needed
51416         now that we include fcntl--.h.
51417
51418 2005-08-12  Simon Josefsson  <jas@extundo.com>
51419
51420         * modules/getndelim2: Use ssize_t module.
51421         * modules/getnline: Likewise.
51422         * modules/safe-read: Likewise.
51423         * modules/xreadlink: Likewise.
51424
51425         * modules/ssize_t: New file.
51426
51427 2005-08-12  Simon Josefsson  <jas@extundo.com>
51428
51429         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51430
51431 2005-08-12  Simon Josefsson  <jas@extundo.com>
51432
51433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51434         ssize_t.
51435
51436 2005-08-12  Simon Josefsson  <jas@extundo.com>
51437
51438         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51439         readline, getdelim and check_version.
51440         (Support for systems lacking ISO C 99: Sizes of integer types):
51441         Add size_max.
51442
51443 2005-08-12  Bruno Haible  <bruno@clisp.org>
51444
51445         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51446
51447 2005-08-11  Simon Josefsson  <jas@extundo.com>
51448
51449         * modules/readline: New file.
51450
51451         * modules/strnlen (Files): Add strnlen.h.
51452
51453 2005-08-11  Simon Josefsson  <jas@extundo.com>
51454
51455         * m4/readline.m4: New file.
51456
51457 2005-08-11  Simon Josefsson  <jas@extundo.com>
51458
51459         * lib/readline.h, readline.c: New file.
51460
51461 2005-08-11  Simon Josefsson  <jas@extundo.com>
51462
51463         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51464         gl_AVOID.
51465
51466 2005-08-11  Bruno Haible  <bruno@clisp.org>
51467
51468         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51469
51470 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51471
51472         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51473
51474 2005-08-10  Simon Josefsson  <jas@extundo.com>
51475
51476         * tests/test-iconvme.c: New file.
51477
51478 2005-08-10  Simon Josefsson  <jas@extundo.com>
51479
51480         * m4/strnlen.m4: New file.
51481
51482         * m4/strndup.m4: Don't check for strnlen declaration, done in
51483         strnlen.m4.
51484
51485 2005-08-10  Simon Josefsson  <jas@extundo.com>
51486
51487         * lib/strndup.c: Use strnlen.h.
51488
51489         * lib/strnlen.h: New file.
51490
51491 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51492
51493         * README: Typos.
51494
51495 2005-08-02  Simon Josefsson  <jas@extundo.com>
51496
51497         * modules/readline: New file.
51498
51499 2005-08-02  Simon Josefsson  <jas@extundo.com>
51500
51501         * modules/getdelim: New file.
51502
51503         * modules/getline: Rewrite, don't use getndelim2.
51504
51505 2005-08-02  Simon Josefsson  <jas@extundo.com>
51506
51507         * m4/getline.m4: Separate out getdelim stuff into separate module.
51508
51509         * m4/getdelim.m4: New file.
51510
51511 2005-08-02  Simon Josefsson  <jas@extundo.com>
51512
51513         * lib/getline.h, getline.c: Rewrite.
51514
51515         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51516
51517 2005-07-31  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/lock.h (gl_lock_initializer): New macro.
51520         (gl_lock_define_initialized): Use it.
51521         (gl_rwlock_initializer): New macro.
51522         (gl_rwlock_define_initialized): Use it.
51523         (gl_recursive_lock_initializer): New macro.
51524         (gl_recursive_lock_define_initialized): Use it.
51525
51526 2005-07-30  Karl Berry  <karl@gnu.org>
51527
51528         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51529         Report from Ben Pfaff, regarding getopt.
51530
51531 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51534         normal way.
51535         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51536         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51537         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51538         (gl_GETOPT): Use the new macros.  Most of the implementation
51539         is moved to the new macros.  This is for programs like Emacs
51540         that don't want all the functionality of gl_GETOPT.
51541
51542 2005-07-26  Bruno Haible  <bruno@clisp.org>
51543
51544         * m4/lock.m4: Update from GNU gettext.
51545
51546 2005-07-26  Bruno Haible  <bruno@clisp.org>
51547
51548         * lib/lock.h: Update from GNU gettext.
51549         * lib/lock.c: Update from GNU gettext.
51550
51551 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51554         obsolescent AC_TRY_RUN.  Include the default includes files, for
51555         'exit'.
51556
51557 2005-07-24  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/visibility: New file.
51560         * MODULES.html.sh (Misc): Add visibility.
51561
51562 2005-07-24  Bruno Haible  <bruno@clisp.org>
51563
51564         * m4/visibility.m4: New file.
51565
51566 2005-07-24  Bruno Haible  <bruno@clisp.org>
51567
51568         * doc/visibility.texi: New file.
51569
51570 2005-07-22  Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51573         $(ALLOCA_H), redundant through BUILT_SOURCES.
51574         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51575         redundant through BUILT_SOURCES.
51576         * modules/byteswap (Makefile.am): Remove explicit dependency on
51577         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51578         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51579         $(FNMATCH_H), redundant through BUILT_SOURCES.
51580         * modules/getopt (Makefile.am): Remove explicit dependency on
51581         $(GETOPT_H), redundant through BUILT_SOURCES.
51582         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51583         redundant through BUILT_SOURCES.
51584         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51585         redundant through BUILT_SOURCES.
51586         * modules/stdbool (Makefile.am): Remove explicit dependency on
51587         $(STDBOOL_H), redundant through BUILT_SOURCES.
51588         * modules/stdint (Makefile.am): Remove explicit dependency on
51589         $(STDINT_H), redundant through BUILT_SOURCES.
51590         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51591         Remove explicit dependency on $(SYSEXITS_H).
51592         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51593
51594 2005-07-18  Simon Josefsson  <jas@extundo.com>
51595
51596         * lib/check-version.c (check_version): Accept identical versions too.
51597
51598 2005-07-18  Bruno Haible  <bruno@clisp.org>
51599
51600         * modules/lock: New file.
51601         * MODULES.html.sh (Multithreading): New section.
51602
51603 2005-07-18  Bruno Haible  <bruno@clisp.org>
51604
51605         * m4/lock.m4: New file, from GNU gettext.
51606
51607 2005-07-18  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/lock.h: New file, from GNU gettext.
51610         * lib/lock.c: New file, from GNU gettext.
51611
51612 2005-07-18  Bruno Haible  <bruno@clisp.org>
51613
51614         * lib/lock.h (gl_once_t): New type.
51615         (gl_once_define, gl_once): New macros.
51616         * lib/lock.c (fresh_once): New variable.
51617         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51618         functions.
51619
51620 2005-07-16  Simon Josefsson  <jas@extundo.com>
51621
51622         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51623         workaround, suggested by Bruno.
51624
51625 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51626
51627         * modules/xalloc (Depends-on): Add xalloc-die.
51628         * modules/xvasprintf (Depends-on): Add xalloc-die.
51629
51630 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51631
51632         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51633         with a minor change.
51634
51635 2005-07-15  Bruno Haible  <bruno@clisp.org>
51636
51637         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51638         When using lib/poll.c, define poll as rpl_poll.
51639
51640 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51641
51642         * modules/argp (Depends-on): Remove unlocked-io.
51643
51644 2005-07-14  Derek Price  <derek@ximbiot.com>
51645
51646         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51647         for glob symlink bug.
51648
51649 2005-07-14  Bruno Haible  <bruno@clisp.org>
51650
51651         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51652         Instead, test for *_unlocked function declarations directly.
51653
51654 2005-07-11  Simon Josefsson  <jas@extundo.com>
51655
51656         * modules/size_max: New file.
51657
51658         * modules/xsize: Depend on size_max module for size_max.m4.
51659
51660 2005-07-11  Simon Josefsson  <jas@extundo.com>
51661
51662         * lib/size_max.h: New file.
51663
51664 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51665
51666         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51667         copyright symbol and the year.
51668         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51669         (version_etc_va): Use parameterized copyright notice.
51670         Reword to conform to the current GNU coding standards.
51671
51672 2005-07-11  Karl Berry  <karl@gnu.org>
51673
51674         * doc/gnulib.texi (Quoting): new node.
51675         (Initial import): more info, from Patrice.
51676
51677 2005-07-11  Bruno Haible  <bruno@clisp.org>
51678
51679         * gnulib-tool (func_usage): Document option --avoid.
51680         (Command line options): Handle --avoid.
51681         (func_acceptable): New function.
51682         (func_modules_transitive_closure): Use it.
51683
51684 2005-07-11  Bruno Haible  <bruno@clisp.org>
51685
51686         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51687         Reported by Jim Meyering.
51688
51689 2005-07-10  Bruno Haible  <bruno@clisp.org>
51690
51691         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51692         Needed when size_t is smaller than 'unsigned int'.
51693         Reported by Paul Eggert.
51694
51695 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51696
51697         * modules/argp (Depends-on): Add unlocked-io
51698
51699 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51700
51701         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51702         block of defines.
51703
51704 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51707         fix now.
51708
51709 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51710         and Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51713         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51714
51715 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         * modules/regex (Files): Add lib/regex_internal.c,
51718         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51719         (Depends-on): Add extensions.
51720         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51721
51722 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51725         pathconf.
51726         * m4/same.m4 (gl_SAME): Likewise.
51727         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51728
51729         * m4/regex.m4: Adjust to new libc regex implementation.
51730         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51731         all the .c and .h parts of (the new) regex.
51732         Quote the m4 stuff better.
51733         Check for RE_ICASE bug of old gnulib.
51734         Check for REG_STARTEND of recent libc.
51735         Rename local variables from jm_* to gl_*.
51736         Quote operand of "test -f".
51737         Say "recent enough" version of libc, not "version 2".
51738         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51739         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51740         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51741         Remove check for btowc, isascii.
51742         Require AM_LANGINFO_CODESET.
51743
51744 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51745
51746         * lib/regex.c, regex.h: Sync from libc.
51747         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51748         * lib/regexec.c:
51749         New files, synced from libc, except that regex_internal.h
51750         currently has a small porting fix.
51751
51752 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51755         regex_internal.c, regexec.c.
51756         Add regex_internal.h too, but as a comment, since the libc version
51757         is currently broken in gnulib mode.
51758
51759 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51760
51761         Support programs like Emacs that use gnulib but not gettext.
51762         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51763         * modules/gettext-h: New file.
51764         * modules/gettext (Files): Remove lib/gettext.h.
51765         (Depends-on): Add gettext-h.
51766         (Makefile.am): Remove lib_SOURCES.
51767         * modules/argmatch, modules/c-stack, modules/closeout:
51768         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51769         * modules/execute, modules/file-type, modules/getaddrinfo:
51770         * modules/getopt, modules/human, modules/javacomp:
51771         * modules/javaexec, modules/mkdir-p, modules/obstack:
51772         * modules/openat, modules/pagealign_alloc, modules/pipe:
51773         * modules/quotearg, modules/regex, modules/rpmatch:
51774         * modules/unicodeio, modules/userspec, modules/version-etc:
51775         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51776         * modules/xsetenv:
51777         Depend on gettext-h, not gettext.
51778
51779 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51780
51781         * gnulib-tool (func_import): Add support for 'public domain' license.
51782         * modules/alloca, modules/atexit, modules/memmove:
51783         Now public domain, not GPL.
51784         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51785         * modules/realloc, modules/strerror, modules/strtod:
51786         Now LGPL, not GPL.
51787
51788 2005-07-05  Bruno Haible  <bruno@clisp.org>
51789
51790         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51791         autoconf CVS. Needed for mingw.
51792
51793 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51794
51795         Remove the dependency of the strftime module on the tzset module.
51796         * modules/strftime (Depends-on): Remove dependency on tzset.
51797
51798 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         Remove the dependency of the strftime module on the tzset module.
51801         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51802         gl_FUNC_TZSET_CLOBBER.
51803
51804 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         Remove the dependency of the strftime module on the tzset module.
51807         * lib/strftime.c (my_strftime)
51808         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51809         Copy the input structure, to work around some of the bug with
51810         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51811         Solaris releases, you should also use the tzset module, but we won't
51812         require it as a dependency any more since we don't want LGPLed code
51813         to depend on GPLed code.
51814
51815 2005-07-02  Jim Meyering  <jim@meyering.net>
51816
51817         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51818         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51819         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51820         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51821
51822 2005-07-02  Jim Meyering  <jim@meyering.net>
51823
51824         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51825
51826 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51829         declares only 'struct timespec;' (!).
51830
51831 2005-07-01  Jim Meyering  <jim@meyering.net>
51832
51833         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51834         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51835         * lib/save-cwd.c, tempname.c:
51836         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51837         and don't include <sys/file.h>).
51838
51839 2005-06-29  Jim Meyering  <jim@meyering.net>
51840
51841         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51842         type name.  Use the variable name instead.
51843         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51844         Likewise.
51845
51846 2005-06-28  Simon Josefsson  <jas@extundo.com>
51847
51848         * modules/check-version (Files): Add check-version.m4.
51849
51850 2005-06-28  Simon Josefsson  <jas@extundo.com>
51851
51852         * m4/check-version.m4: New file, suggested by Jim Meyering
51853         <jim@meyering.net>.
51854
51855 2005-06-28  Simon Josefsson  <jas@extundo.com>
51856
51857         * lib/check-version.h, lib/check-version.c: New files.
51858
51859 2005-06-28  Simon Josefsson  <jas@extundo.com>
51860
51861         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51862         collision with global variable.  Better indentation.  Don't
51863         increment buffer pointer beyond buffer end.  Based on comments
51864         from Paul Eggert <eggert@cs.ucla.edu>.
51865
51866         * lib/base64.h: Indent.
51867
51868 2005-06-28  Simon Josefsson  <jas@extundo.com>
51869
51870         * doc/gnulib.texi (Library version handling): New section.
51871
51872 2005-06-28  Jim Meyering  <jim@meyering.net>
51873
51874         * check-module (find_included_lib_files): Hard-code another
51875         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51876         but modules/fts-lgpl (correctly) does not list those files.
51877
51878         * modules/canonicalize (Files): Add lib/pathmax.h.
51879
51880 2005-06-25  Simon Josefsson  <jas@extundo.com>
51881
51882         * modules/check-version: New file.
51883
51884 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51887         initializer of struct addrinfo, as an indication that we don't
51888         care how many members the structure has.
51889
51890 2005-06-24  Derek Price  <derek@ximbiot.com>
51891         and Bruno Haible  <bruno@clisp.org>
51892
51893         Remove stat module & update lstat.
51894         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51895         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51896         * m4/stat.m4: Remove this file.
51897
51898 2005-06-24  Derek Price  <derek@ximbiot.com>
51899         and Bruno Haible  <bruno@clisp.org>
51900
51901         Remove stat module & update lstat.
51902         * lib/stat.c: Remove this file...
51903         (slash_aware_lstat): ...moving this content and its support...
51904         * lib/lstat.c (rpl_lstat): ...into here.
51905         * lib/lstat.h: New file.
51906
51907 2005-06-24  Derek Price  <derek@ximbiot.com>
51908         and Bruno Haible  <bruno@clisp.org>
51909
51910         Remove stat module & update lstat.
51911         * config/srclist.txt (libc sources): Remove stat.
51912
51913 2005-06-24  Derek Price  <derek@ximbiot.com>
51914         and Bruno Haible  <bruno@clisp.org>
51915
51916         Remove stat module & update lstat.
51917         * MODULES.html.sh (stat): Remove.
51918         * MODULES.html: Regenerated.
51919         * modules/lstat (Description): Correct function name.
51920         (Files): Add "lstat.h".
51921         (Depends-on): Remove stat, add xalloc, stat-macros.
51922         * modules/stat: Remove this file.
51923         (Include): Add "lstat.h", remove <sys/stat.h>.
51924
51925 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51926
51927         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51928         (ranged_convert): Don't save conversion in a temporary struct.
51929         This causes a warning with GCC 4.0.0, and anyway in the typical
51930         case it's not worth the extra 100 bytes or so of code.
51931         (ranged_convert, __mktime_internal): When calling a function via a
51932         pointer P, use P () rather than (*P) (), as we now assume C89 or
51933         better.
51934
51935 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51938         "who -r" failed to give output.  Problem reported by Tim Waugh.
51939
51940         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51941         (xcalloc): Use it to avoid needless tests.
51942         Problem reported by Jim Meyering.
51943
51944 2005-06-20  Derek Price  <derek@ximbiot.com>
51945
51946         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51947         unnecessary for Autoconfs > 2.59c.
51948
51949 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51950
51951         * lib/argp.h (__option_is_short): Check upper limit of
51952         __key. Isprint() requires its argument to have the value
51953         of an unsigned char or EOF.
51954
51955 2005-06-16  Jim Meyering  <jim@meyering.net>
51956
51957         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51958         when either N or S is zero.
51959
51960 2005-06-16  Derek Price  <derek@ximbiot.com>
51961
51962         * m4/bison.m4: Declare YACC & YFLAGS precious.
51963
51964 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51965
51966         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51967         multibyte string or pattern, fall back on unibyte matching.
51968         Problem reported by James Youngman.
51969
51970 2005-06-08  Bruno Haible  <bruno@clisp.org>
51971
51972         * modules/csharpcomp: New file.
51973         * MODULES.html.sh (C#): Add csharpcomp.
51974
51975 2005-06-08  Bruno Haible  <bruno@clisp.org>
51976
51977         * m4/csharpcomp.m4: New file, from GNU gettext.
51978
51979 2005-06-08  Bruno Haible  <bruno@clisp.org>
51980
51981         * lib/csharpcomp.h: New file, from GNU gettext.
51982         * lib/csharpcomp.c: New file, from GNU gettext.
51983         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51984
51985 2005-06-08  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51988         warning on mingw.
51989
51990 2005-06-07  Derek Price  <derek@ximbiot.com>
51991
51992         Sync from CVS.
51993         * lib/glob_.h: Indent nested #ifdef.
51994
51995 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51996
51997         Sync from coreutils.
51998         Use "file name" when talking about file names, instead of "filename"
51999         or "path", as per the GNU coding standards.
52000         * lib/mkdir-p.c: Renamed from makepath.c.
52001         (make_dir_parents): Renamed from make_path.  All callers changed.
52002         * lib/mkdir-p.h: Likewise.  All includers changed.
52003         * lib/filenamecat.c: Renamed from path-concat.c.
52004         (file_name_concat): Renamed from path_concat.  All callers changed.
52005         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52006         * lib/filenamecat.h: Likewise.  All includers changed.
52007         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52008         in comments or local variable names.
52009         * lib/basename.c: Likewise.
52010         * lib/canonicalize.c, canonicalize.h: Likewise.
52011         * lib/dirname.c, dirname.h: Likewise.
52012         * lib/euidaccess.c: Likewise.
52013         * lib/exclude.c: Likewise
52014         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52015         * lib/fsusage.c, fsuage.h: Likewise.
52016         * lib/fts.c, fts_.h: Likewise.
52017         * lib/getcwd.c: Likewise.
52018         * lib/getloadavg.c: Likewise.
52019         * lib/mkstemp.c: Likewise.
52020         * lib/mountlist.c, mountlist.h: Likewise.
52021         * lib/openat.c, openat.h: Likewise.
52022         * lib/readlink-stub.c: Likewise.
52023         * lib/readutmp.c, readutmp.h: Likewise.
52024         * lib/rename.c: Likewise.
52025         * lib/rmdir.c: Likewise.
52026         * lib/same.c: Likewise.
52027         * lib/savedir.c: Likewise.
52028         * lib/stripslash.c: Likewise.
52029         * lib/tempname.c: Likewise.
52030         * lib/xreadlink.c: Likewise.
52031         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52032         All uses changed.
52033         * lib/exclude.h: Likewise.
52034
52035         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52036         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52037         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52038         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52039         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52040         files have been getting away with it for years (MORE/BSD 4.3
52041         is extinct now).
52042         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52043         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52044
52045         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52046         Define to 256, not 255, as per modern POSIX.
52047
52048 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52049
52050         Sync from coreutils.
52051         Use "file name" when talking about file names, instead of "filename"
52052         or "path", as per the GNU coding standards.
52053         * MODULES.html.sh: mkdir-p renamed from makepath.
52054         filenamecat renamed from path-concat.
52055         * modules/filenamecat: Renamed from modules/path-concat.
52056         (Files): filenamecat.h and filenamecat.c renamed from
52057         path-concat.h and path-concat.c.
52058         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52059         (Include): filenamecat.h, not path-concat.h.
52060         * modules/mkdir-p: Renamed from modules/makepath.
52061         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52062         makepath.c.
52063         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52064         (Include): mkdir-p.h, not makepath.h.
52065
52066 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52067
52068         Sync from coreutils.
52069         * m4/mkdir-p.m4: Renamed from makepath.m4.
52070         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52071         Rename files from makepath.c to mkdir-p.c, and from
52072         makepath.h to mkdir-p.h.
52073         * m4/filenamecat.m4: Renamed from path-concat.m4.
52074         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52075         Rename files from path-concat.c to filenamecat.c,
52076         and from path-concat.h to filenamecat.h.
52077         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52078         "file name" in local variables or comments.
52079         * m4/rename.m4: Likewise.
52080
52081 2005-06-01  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/csharpexec: New file.
52084         * MODULES.html.sh (C#): New section.
52085
52086 2005-06-01  Bruno Haible  <bruno@clisp.org>
52087
52088         * m4/csharp.m4: New file, from GNU gettext.
52089         * m4/csharpexec.m4: New file, from GNU gettext.
52090
52091 2005-06-01  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/csharpexec.h: New file, from GNU gettext.
52094         * lib/csharpexec.c: New file, from GNU gettext.
52095         * lib/csharpexec.sh.in: New file, from GNU gettext.
52096
52097 2005-05-31  Derek Price  <derek@ximbiot.com>
52098             Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         Sync from cvs.
52101         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52102
52103 2005-05-31  Derek Price  <derek@ximbiot.com>
52104             Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         Sync from cvs.
52107         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52108
52109 2005-05-29  Derek Price  <derek@ximbiot.com>
52110
52111         * config/srclist.txt (glob_.h, glob.c): Add these files.
52112
52113 2005-05-29  Derek Price  <derek@ximbiot.com>
52114
52115         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52116         * modules/glob: New file.
52117         * modules/getlogin_r: Add link to POSIX spec in description.
52118
52119 2005-05-29  Derek Price  <derek@ximbiot.com>
52120             Paul Eggert  <eggert@cs.ucla.edu>
52121
52122         * m4/glob.m4: New file.
52123
52124 2005-05-29  Derek Price  <derek@ximbiot.com>
52125             Paul Eggert  <eggert@cs.ucla.edu>
52126
52127         * lib/glob_.h, lib/glob.c: New files.
52128
52129 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52132         * modules/fts-lgpl (Depends-on): Remove gettext.
52133
52134 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52135
52136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52137         and don't require gt_INTTYPES_PRI.
52138
52139 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52140
52141         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52142
52143         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52144         the configuration hassle isn't worth it.
52145         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52146         (LONGEST_MODIFIER, PRIuMAX): Remove.
52147
52148 2005-05-27  Bruno Haible  <bruno@clisp.org>
52149
52150         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52151
52152 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52153
52154         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52155         _POSIX_PTHREAD_SEMANTICS for Solaris.
52156
52157 2005-05-25  Derek Price  <derek@ximbiot.com>
52158
52159         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52160
52161 2005-05-25  Derek Price  <derek@ximbiot.com>
52162             Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52165         * lib/getlogin_r.c, getlogin_r.h: New files.
52166
52167 2005-05-25  Bruno Haible  <bruno@clisp.org>
52168             Derek Price  <derek@ximbiot.com>
52169
52170         * lib/getlogin_r.h: Simplify API documentation.
52171
52172 2005-05-23  Derek Price  <derek@ximbiot.com>
52173
52174         * modules/minmax (Files): Add m4/minmax.m4.
52175         (configure.ac): Add gl_MINMAX.
52176
52177 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52178
52179         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52180         so that unistd-safer.h (GPL'ed code) need not be included.
52181
52182 2005-05-22  Bruno Haible  <bruno@clisp.org>
52183
52184         * m4/minmax.m4: New file.
52185         Based on a patch by Derek Price <derek@ximbiot.com>.
52186
52187 2005-05-22  Bruno Haible  <bruno@clisp.org>
52188
52189         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52190         (INT64_MIN): Fix definition.
52191         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52192
52193         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52194         NEED_SIGNED_INT_TYPES.
52195
52196         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52197         HAVE_SYSTEM_INTTYPES.
52198
52199 2005-05-22  Bruno Haible  <bruno@clisp.org>
52200
52201         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52202         Also include <sys/param.h> if it defines MIN, MAX.
52203         Based on a patch by Derek Price <derek@ximbiot.com>.
52204
52205 2005-05-21  Jim Meyering  <jim@meyering.net>
52206
52207         * modules/fts (Files): Add m4/inttypes-pri.m4.
52208         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52209
52210 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52211
52212         New fts module.
52213         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52214         (setup_dir, free_dir): New functions.
52215         (enter_dir, leave_dir): Define trivial
52216         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52217         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52218         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52219         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52220         Move to fts-cycle.c.
52221         (fts_open): Use setup_dir.
52222         (fts_close): Use free_dir.
52223         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52224         This adds a label and some gotos, but the alternatives were messier.
52225         Check for memory allocation failure when entering a dir.
52226         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52227         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52228         (FTS): New member fts_cycle, that is a union that contains the
52229         old active_dir_ht and cycle_state.  All uses changed to mention
52230         fts_cycle.ht and fts_cycle.state.
52231         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52232         fts.c, with the following changes:
52233         (setup_dir, free_dir): New functions.
52234         (enter_dir): Now returns bool.  Return true if successful, false
52235         if memory exhausted.  All callers changed.
52236         Do not bother partly cleaning up on
52237         memory allocation failure; that is free_dir's job.
52238         However, free ad if hash_insert fails, to avoid memory leak.
52239         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52240         fts->fts_options to see which union member to use.
52241
52242 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52243
52244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52245         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52246
52247 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52248
52249         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52250
52251 2005-05-20  Jim Meyering  <jim@meyering.net>
52252
52253         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52254         Now a macro, to pacify GCC.
52255
52256 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52257
52258         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52259         of -1.
52260
52261 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52262
52263         * lib/chown.c (rpl_chown): Return -1 on failure.
52264
52265 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52266
52267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52268         Don't check for stddef.h.
52269         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52270         don't use its results.
52271         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52272         since we include them unconditionally.  Don't require
52273         AM_STDBOOL_H, since stdbool is a prerequisite.
52274         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52275         since we assume C89 or better.
52276         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52277         as we don't use their results.
52278         Don't check for fchdir, memmove, memset, strrchr, as we use
52279         them unconditionally.
52280         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52281         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52282
52283 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52284
52285         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52286         Include <stddef.h> unconditionally, since we assume C89 now.
52287         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52288         * lib/fts.c: Include fts_.h first, to check interface.
52289         Do not include intprops.h; no longer needed.
52290         Include cycle-check.h and hash.h, since fts_.h no longer does.
52291         Remove unnecessary casts of closedir to void.
52292         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52293         decide whether to decrement nlinks.
52294         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52295         (FTS): Use struct hash_table * instead of Hash_table, so that
52296         we no longer need to include hash.h here.
52297
52298 2005-05-18  Jim Meyering  <jim@meyering.net>
52299
52300         * modules/dirfd (License): Change to LGPL.  Most of the code
52301         is already in the public domain.
52302
52303 2005-05-18  Jim Meyering  <jim@meyering.net>
52304
52305         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52306         Reported by Yoann Vandoorselaere.
52307
52308 2005-05-17  Jim Meyering  <jim@meyering.net>
52309
52310         * m4/fts.m4: New file, from coreutils.
52311
52312 2005-05-17  Jim Meyering  <jim@meyering.net>
52313
52314         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52315
52316 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         Sync from coreutils.
52319         * m4/unlinkdir.m4: New file.
52320
52321 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         Sync from coreutils.
52324         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52325         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52326         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52327         White space changes only.
52328         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52329         special.
52330         * lib/yesno.c: Include getline.h, not ctype.h.
52331         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52332         Use getline to remove arbitrary restriction on response length.
52333
52334 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52335
52336         * config/srclist-update: Spell out "Street" in FSF postal
52337         mail address; this is the style the FSF seems to prefer.
52338
52339         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52340         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52341         this updates FSF postal mail address.
52342
52343         Sync from coreutils.
52344         * modules/unlinkdir: New file.
52345         * modules/yesno (Depends-on): Add getline.
52346         * MODULES.html.sh (File system functions): Add unlinkdir.
52347
52348 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52351         lib/strsep.h:
52352         Change the initial comment to refer to GPL, not LGPL.
52353         gnulib-tool will change it to LGPL as needed.
52354
52355         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52356         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52357         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52358         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52359         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52360         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52361         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52362         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52363         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52364         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52365         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52366         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52367         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52368         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52369         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52370         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52371         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52372         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52373         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52374         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52375         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52376         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52377         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52378         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52379         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52380         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52381         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52382         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52383         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52384         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52385         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52386         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52387         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52388         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52389         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52390         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52391         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52392         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52393         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52394         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52395         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52396         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52397         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52398         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52399         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52400         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52401         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52402         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52403         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52404         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52405         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52406         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52407         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52408         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52409         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52410         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52411         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52412         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52413         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52414         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52415         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52416         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52417         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52418         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52419         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52420         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52421         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52422         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52423         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52424         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52425         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52426         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52427         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52428         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52429         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52430         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52431         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52432         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52433         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52434         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52435         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52436         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52437         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52438         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52439         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52440         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52441         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52442         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52443         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52444         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52445         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52446         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52447         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52448         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52449         lib/yesno.c, lib/yesno.h:
52450         Update FSF postal mail address.
52451
52452 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52455         tests/test-memmem.c, tests/test-stpncpy.c:
52456         Update FSF postal mail address.
52457
52458 2005-05-13  Bruno Haible  <bruno@clisp.org>
52459
52460         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52461         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52462         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52463         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52464         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52465         Add support for 64-bit integers in the MSVC compiler.
52466
52467 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52468
52469         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52470
52471 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52472
52473         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52474
52475 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         * doc/getdate.texi (General date syntax): Don't say that date
52478         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52479         Problem reported by Nic Ferrier.
52480
52481 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52482
52483         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52484         specified in ai_socktype. Fix invalid ai_protocol
52485         check. ai_protocol is usually set to 0 or depending on
52486         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52487         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52488         ai_socktype / ai_protocol in the returned addrinfo structure.
52489
52490 2005-05-10  Simon Josefsson  <jas@extundo.com>
52491
52492         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52493         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52494
52495 2005-05-10  Karl Berry  <karl@gnu.org>
52496
52497         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52498         (from http://www.gnu.org/licenses).
52499         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52500         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52501         fdl.texi suffices.
52502
52503 2005-05-10  Karl Berry  <karl@gnu.org>
52504
52505         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52506         (COPYING.DOC): remove.
52507
52508         * config/srclist-update: new FSF address.
52509
52510 2005-05-10  Derek Price  <derek@ximbiot.com>
52511
52512         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52513         possible.
52514
52515 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52516             Bruno Haible  <bruno@clisp.org>
52517
52518         * modules/inet_ntop: New file.
52519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52520         inet_ntop.
52521
52522 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52523             Bruno Haible  <bruno@clisp.org>
52524
52525         * m4/inet_ntop.m4: New file.
52526
52527 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52528             Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/inet_ntop.h: New file.
52531         * lib/inet_ntop.c: New file, from glibc with modifications.
52532
52533 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52534
52535         * modules/time_r (License): Change to LGPL.
52536         * modules/extensions (License): Change to LGPL.  Actually,
52537         the license is more permissive than that, but currently gnulib-tool
52538         doesn't know how to handle more-permissive licenses.
52539
52540         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52541         Problem reported by Dave Love.
52542
52543 2005-05-08  Jim Meyering  <jim@meyering.net>
52544
52545         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52546         blank.
52547
52548 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * modules/argmatch (Depends-on): Add stdbool.
52551         * modules/backupfile (Depends-on): Likewise.
52552         * modules/chdir-long (Depends-on): Likewise.
52553         * modules/closeout (Depends-on): Likewise.
52554         * modules/cycle-check (Depends-on): Likewise.
52555         * modules/dirname (Depends-on): Likewise.
52556         * modules/fnmatch (Depends-on): Likewise.
52557         * modules/fsusage (Depends-on): Likewise.
52558         * modules/fwriteerror (Depends-on): Likewise.
52559         * modules/getcwd (Depends-on): Likewise.
52560         * modules/getloadavg (Depends-on): Likewise.
52561         * modules/hard-locale (Depends-on): Likewise.
52562         * modules/makepath (Depends-on): Likewise.
52563         * modules/mountlist (Depends-on): Likewise.
52564         * modules/nanosleep (Depends-on): Likewise.
52565         * modules/posixtm (Depends-on): Likewise.
52566         * modules/quotearg (Depends-on): Likewise.
52567         * modules/readtokens (Depends-on): Likewise.
52568         * modules/readtokens0 (Depends-on): Likewise.
52569         * modules/readutmp (Depends-on): Likewise.
52570         * modules/save-cwd (Depends-on): Likewise.
52571         * modules/strftime (Depends-on): Likewise.
52572         * modules/userspec (Depends-on): Likewise.
52573         * modules/utimecmp (Depends-on): Likewise.
52574         * modules/xgetcwd (Depends-on): Likewise.
52575         * modules/xnanosleep (Depends-on): Likewise.
52576         * modules/xstrtod (Depends-on): Likewise.
52577         * modules/yesno (Depends-on): Likewise.
52578
52579 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52582         needless checks.
52583
52584 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         Merge from coreutils.  Among other things,
52587         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52588         * lib/fd-safer.c: New file.
52589         * lib/fcntl-safer.h, open-safer.c: Remove.
52590         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52591         * lib/dup-safer.c: Include unistd-safer.h first.
52592         Don't include errno.h.
52593         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52594         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52595         * lib/file-type.c: Rely on file-type.h change.
52596         * lib/getloadavg.c: Include unistd-safer.h.
52597         (getloadavg): Use safer open.
52598         * lib/getusershell.c: Include "stdio-safer.h".
52599         (getusershell): Use safer fopen.
52600         * lib/long-options.c (long_options): Use NULL rather than 0.
52601         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52602         'free'.
52603         * lib/modechange.c: Likewise.
52604         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52605         (MODE_DONE): New constant.
52606         (struct mode_change): Remove 'next' member.
52607         (make_node_op_equals): New function; like the old one of the
52608         same name, except it allocates an array.
52609         (mode_compile, mode_create_from_ref): Use it.
52610         (mode_compile): Allocate result as an array, not a linked list.
52611         Parse octal string ourself, so that we catch mistakes like "+0".
52612         (mode_adjust): Arg is an array, not a linked list.
52613         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52614         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52615         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52616         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52617         Remove.  This is now stat-macros.h's job.
52618         (talloc): Remove.  All callers replaced by xalloc, so that
52619         our invokers don't have to worry about reporting memory failures.
52620         (make_node_op_equals): Remove.
52621         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52622         New constants.
52623         (struct mode_change): Moved here from modechange.h.
52624         (mode_append_entry): Remove.
52625         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52626         apps to have incorrect behavior.  Use simpler algorithm for head
52627         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52628         Detect more invalid usages rather than having somewhat-random behavior.
52629         Don't insert an "a=" action, as that leads to incorrect behavior.
52630         (mode_compile, mode_create_from_ref): Return NULL on error instead
52631         of an enum, since now there's only one way to have an error.  All
52632         callers changed.
52633         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52634         at the correct time.  Simplify calculation of "+u" and its ilk.
52635         Don't mishandle "+X".
52636         (mode_free): Remove "register" and localize decls.
52637         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52638         (struct mode_change): Move to modechange.c; callers don't
52639         need to see this stuff.
52640         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52641         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52642         (mode_change, mode_adjust): Reflect the new signatures noted above.
52643         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52644         that might redefine system include files.
52645         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52646         (my_usleep): Use NULL rather than (void *) 0.
52647         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52648         Use siginterrupt to specify that system calls should be interrupted.
52649         (rpl_nanosleep): Move initialization of suspended closer to call of
52650         my_usleep.
52651         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52652         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52653         (desirable_utmp_entry): New function.
52654         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52655         using x2nrealloc, to simplify logic.
52656         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52657         size calculation.  Do not assume utmp file is a regular file.
52658         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52659         (READ_UTMP_CHECK_PIDS): New constant.
52660         * lib/save-cwd.c: Include unistd-safer.h.
52661         (save_cwd): Use fd_safer.
52662         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52663         [!_LIBC] Include "stat-macros.h" instead.
52664         * lib/unistd-safer.h (fd_safer): New decl.
52665
52666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * modules/getloadavg (Depends-on): Add unistd-safer.
52669         * modules/getusershell (Depends-on): Add stdio-safer.
52670         * modules/lstat (Depends-on): Remove xalloc.
52671         * modules/mkstemp (Depends-on): Add stat-macros.
52672         * modules/modechange (Depends-on): Remove xstrtol.
52673         Add stat-macros, xalloc.
52674         * modules/save-cwd (Depends-on): Add unistd-safer.
52675         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52676         * modules/unistd-safer (Files): Add lib/fd-safer.c
52677         (Makefile.am): Remove lib_SOURCES.
52678
52679         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52680         Remove fcntl-safer; unistd-safer supersedes it.
52681
52682 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52683
52684         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52685         AC_HEADER_STAT.
52686         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52687         (gl_PREREQ_CHOWN): Remove.
52688         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52689         it.  Don't require AC_HEADER_STAT.
52690         (gl_PREREQ_LSTAT): Remove.
52691         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52692         Don't require AC_HEADER_STAT.
52693         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52694         (gl_PREREQ_RMDIR): Remove.
52695         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52696         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52697         the stat-macros module a prerequisite.
52698         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52699         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52700         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52701         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52702         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52703         variable names.
52704         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52705         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52706         variable prefixes.
52707         * m4/fcntl-safer.m4: Remove.
52708         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52709         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52710         Invoke gl_PREREQ_FD_SAFER.
52711         (gl_PREREQ_FD_SAFER): New macro.
52712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52713         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52714         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52715         Remove duplicate call to AC_LIBOBJ(readutmp).
52716         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52717
52718         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52719         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52720
52721 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52722
52723         * MODULES.html.sh (Misc): Add byteswap.
52724
52725 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52726
52727         * modules/getcwd (Depends-on): Add extensions.
52728         * modules/openat (Depends-on): Likewise.
52729
52730 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52731
52732         * modules/byteswap: New file.
52733
52734 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52735
52736         * m4/byteswap.m4: New file.
52737
52738 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52739
52740         * lib/byteswap_.h: New file.
52741
52742 2005-04-25  Karl Berry  <karl@gnu.org>
52743
52744         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52745
52746 2005-04-25  Albert Chin  <china@thewrittenword.com>
52747
52748         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52749         Toolkit C bug.
52750
52751 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52752
52753         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52754         (func_ln_if_changed) Remove forcibly for no error message
52755         in case file does not exist.
52756
52757 2005-04-19  Simon Josefsson  <jas@extundo.com>
52758
52759         * gnulib-tool (Options): Make --symlink mean --symbolic.
52760
52761 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52762
52763         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52764
52765 2005-04-16  Simon Josefsson  <jas@extundo.com>
52766
52767         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52768
52769 2005-04-15  Simon Josefsson  <jas@extundo.com>
52770
52771         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52772
52773 2005-04-15  Simon Josefsson  <jas@extundo.com>
52774
52775         * gnulib-tool: Rename --symlink to --symbolic.
52776
52777 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52778
52779         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52780         symbolic links to files instead of copying/moving.  Add --aux-dir,
52781         specifying directory relative --dir where auxiliary build tools
52782         are placed.
52783
52784 2005-04-14  Bruno Haible  <bruno@clisp.org>
52785
52786         * modules/allocsa (License): Change to LGPL.
52787         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52788
52789 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52790
52791         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52792         that "UTC +1 second" continues to work.  Problem reported
52793         by Dmitry V. Levin.
52794         (relunit_snumber): New rule.
52795         (relunit): Use it.
52796
52797 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         * lib/getdate.y (universal_time_zone_table): New constant.
52800         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52801         universal_time_zone_table.
52802         (lookup_zone): Prefer universal_time_zone_table to
52803         local_time_zone_table, so that "GMT" time stamps are allowed in
52804         London during the summer.  Problem reported by Ian Abbott.
52805
52806 2005-04-12  Jim Meyering  <jim@meyering.net>
52807
52808         * lib/human.c (humblock): Set *options even when returning due to
52809         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52810         warning from gcc-4.
52811
52812 2005-04-09  Jim Meyering  <jim@meyering.net>
52813
52814         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52815         -Wuninitialized: initialize tm0.tm_year.
52816
52817 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52820         count, since there's no maximum.  All uses changed.
52821         Add member dsts_seen.
52822         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52823         not being INT_MAX.
52824         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52825         Use pc_rels_seen to decide whther a date is absolute.
52826
52827         * lib/getdate.y (number): Don't overwrite year.
52828         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52829         check.
52830
52831 2005-04-02  Simon Josefsson  <jas@extundo.com>
52832
52833         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52834         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52835
52836 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52837
52838         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52839         where no absolute path name can be longer than PATH_MAX.
52840
52841 2005-03-27  Jim Meyering  <jim@meyering.net>
52842
52843         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52844
52845 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52846
52847         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52848         "one's complement" -> "ones' complement" in comment, as per Knuth.
52849         "value of type" -> "type or expression" in comment.
52850         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52851
52852 2005-03-26  Jim Meyering  <jim@meyering.net>
52853
52854         Comment nits.
52855         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52856         Correct typos: s/or/of/.
52857
52858 2005-03-26  Jim Meyering  <jim@meyering.net>
52859
52860         * modules/check-include-files: Move to ../ and rename to...
52861         * check-module: ...this.
52862
52863 2005-03-25  Jim Meyering  <jim@meyering.net>
52864
52865         * modules/xvasprintf (Files): Add xalloc.h.
52866
52867 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         * modules/gettext (Files): config/config.rpath ->
52870         build-aux/config.rpath
52871         * modules/iconv (Files): Likewise.
52872         Problem reported by Oskar Liljeblad.
52873
52874 2005-03-23  Jim Meyering  <jim@meyering.net>
52875
52876         * modules/check-include-files: New script to check for
52877         missing dependencies, multiple includes, etc.
52878
52879         * modules/c-strtold (Depends-on): Add xalloc.
52880         * modules/c-strtod (Depends-on): Add xalloc.
52881         * modules/hash (Depends-on): Add xalloc.
52882         (Files): Remove lib/xalloc.h.
52883
52884         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52885         * modules/userspec (Files): Add lib/inttostr.h.
52886
52887 2005-03-23  Jim Meyering  <jim@meyering.net>
52888
52889         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52890
52891 2005-03-22  Jim Meyering  <jim@meyering.net>
52892
52893         * modules/stat-macros: New module.
52894         * modules/canonicalize, modules/euidaccess, modules/file-type,
52895         * modules/filemode, modules/lchown, modules/makepath,
52896         * modules/rmdir, modules/stat: Depend on new stat-macros module
52897         rather than listing lib/stat-macros.h manually.
52898         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52899
52900 2005-03-22  Jim Meyering  <jim@meyering.net>
52901
52902         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52903
52904 2005-03-22  Bruno Haible  <bruno@clisp.org>
52905
52906         * config/srclist.txt: Replace target directory 'config' with
52907         'build-aux'.
52908         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52909         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52910         ../build-aux/.
52911
52912 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         * modules/chdir-long (Depends-on): Add mempcpy.
52915
52916         * modules/acl, modules/backupfile, modules/c-strtod,
52917         modules/c-strtold, modules/canon-host, modules/canonicalize,
52918         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52919         modules/exclude, modules/exitfail, modules/file-type,
52920         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52921         modules/getdate, modules/getline, modules/getpagesize,
52922         modules/getpass, modules/getugroups, modules/group-member,
52923         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52924         modules/inttostr, modules/long-options, modules/makepath,
52925         modules/md5, modules/memcasecmp, modules/memcoll,
52926         modules/modechange, modules/mountlist, modules/path-concat,
52927         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52928         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52929         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52930         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52931         modules/strftime, modules/strndup, modules/strverscmp,
52932         modules/timespec, modules/unlocked-io, modules/userspec,
52933         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52934         modules/yesno:
52935         Remove lib_SOURCES line from Makefile.am section, as this is now
52936         done automatically by the corresponding Autoconf macro.
52937
52938 2005-03-21  Jim Meyering  <jim@meyering.net>
52939
52940         Changes imported from coreutils.
52941
52942         * lib/cycle-check.c: Don't include xalloc.h.
52943
52944         * lib/path-concat.c: Don't include assert.h.
52945         (path_concat): Remove assertion that would have triggered
52946         for ABASE starting with more than one slash.
52947         Reported by Andreas Schwab.
52948
52949         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52950         properly when ABASE is an absolute file name.
52951         Correct the description of this function.
52952         Include <assert.h>.
52953         Add an assertion and a test driver.
52954         This fixes a bug introduced on 2004-07-02.
52955         Andreas Schwab reported the resulting failure of cp --parents:
52956         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52957
52958 2005-03-21  Jim Meyering  <jim@meyering.net>
52959
52960         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52962
52963 2005-03-21  Jim Meyering  <jim@meyering.net>
52964         and  Paul Eggert  <eggert@cs.ucla.edu>
52965
52966         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52967         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52968         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52969         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52970         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52971         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52972         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52973         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52974         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52975         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52976         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52977         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52978         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52979         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52980         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52981         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52982         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52983         for these modules.
52984
52985 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52986
52987         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52988         (which shouldn't happen), generate nothing instead of returning 0
52989         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52990
52991 2005-03-16  Bruno Haible  <bruno@clisp.org>
52992
52993         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52994         HAVE_LONGLONG_64BIT.
52995
52996 2005-03-16  Bruno Haible  <bruno@clisp.org>
52997
52998         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52999         HAVE_LONGLONG_64BIT.
53000
53001 2005-03-16  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53004         HAVE_LONGLONG_64BIT.
53005
53006 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53007
53008         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53009         reliably distinguish strftime failure from empty output on POSIX
53010         hosts.
53011
53012 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53013
53014         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53015         (iconv_string): Don't guess a size-zero buffer, as that might cause
53016         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53017         result would be 'too large', where 'too large' is (heuristically)
53018         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53019         overflow concerns.  This will prevent some unwanted malloc failures
53020         when the inputs are very large.
53021
53022 2005-03-15  Karl Berry  <karl@gnu.org>
53023
53024         * config/srclist.txt (config.rpath): from gettext.
53025         * config/config.rpath: update.
53026
53027 2005-03-15  Bruno Haible  <bruno@clisp.org>
53028
53029         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53030         to 'negate'.
53031
53032         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53033         variable.
53034
53035         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53036         results.
53037
53038 2005-03-14  Simon Josefsson  <jas@extundo.com>
53039
53040         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53041         <fx@gnu.org>.
53042
53043 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53044
53045         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53046         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53047         intprops.h.
53048         * lib/strtol.c: Likewise.
53049
53050 2005-03-14  Jim Meyering  <jim@meyering.net>
53051
53052         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53053         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53054         to be nonzero so that we (and caller) can detect the difference
53055         between a valid zero-length expansion and an error return, even
53056         when the underlying strftime fails before writing anything into
53057         that location.
53058
53059 2005-03-14  Bruno Haible  <bruno@clisp.org>
53060
53061         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53062         Update from GNU gettext 0.14.3.
53063
53064 2005-03-10  Jim Meyering  <jim@meyering.net>
53065
53066         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53067
53068 2005-03-10  Jim Meyering  <jim@meyering.net>
53069
53070         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53071         so that this module works on systems without fchdir.
53072
53073 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         Factor int-properties macros into a single file, except for
53076         glibc-related files.
53077         * lib/intprops.h: New file.
53078         * lib/getloadavg.c: Include it instead of limits.h.
53079         (INT_STRLEN_BOUND): Remove.
53080         * lib/human.c: Include intprops.h.
53081         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53082         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53083         302/1000.
53084         * lib/inttostr.h: Include intprops.h instead of limits.h.
53085         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53086         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53087         for consistency with intprops.h.
53088         (time_t_is_integer, twos_complement_arithmetic): Use them.
53089         * lib/sig2str.h: Include <signal.h>, intprops.h.
53090         (INT_STRLEN_BOUND): Remove.
53091         * lib/strftime.c (TYPE_SIGNED): Remove.
53092         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53093         * lib/strtol.c: Adjust comments to match intprops.h.
53094         * lib/userspec.c: Include intprops.h.
53095         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53096         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53097         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53098         instead of rolling our own expressions.
53099         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53100
53101         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53102         instead of int.
53103         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53104         the right thing even if adding 1900 would overflow.  Similarly
53105         for tm_mon + 1 and tm_yday + 1.
53106         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53107         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53108         (DO_SIGNED_NUMBER): New macro.
53109         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53110
53111 2005-03-07  Bruno Haible  <bruno@clisp.org>
53112
53113         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53114
53115 2005-03-07  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53118
53119 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53120
53121         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53122         (func_import): Only replace files via --import when they have actually
53123         changed.
53124
53125 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53126
53127         * m4/mmap-anon.m4: New file.
53128         * m4/pagealign_alloc.m4: New file.
53129
53130 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53131             Bruno Haible  <bruno@clisp.org>
53132
53133         * modules/pagealign_alloc: New file.
53134         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53135
53136 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53137             Bruno Haible  <bruno@clisp.org>
53138
53139         * lib/pagealign_alloc.h: New file.
53140         * lib/pagealign_alloc.c: New file.
53141
53142 2005-03-03  Bruno Haible  <bruno@clisp.org>
53143
53144         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53145         Use an all-permissive copyright notice, recommended by RMS.
53146
53147 2005-03-02  Bruno Haible  <bruno@clisp.org>
53148
53149         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53150         of AIX, the replacement has to be done only after <string.h> is
53151         included, therefore not in config.h. stpncpy.h does the replacement,
53152         and stpncpy.c uses it.
53153
53154 2005-03-02  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53157         stpncpy.c uses it.
53158
53159 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53160
53161         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53162         The workaround isn't strictly needed for POSIX conformance, and
53163         it's too much of a pain to configure and maintain.  We'll ask
53164         people to fix their kernels instead.
53165         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53166         (NANOSLEEP_BUG_WORKAROUND): Remove.
53167         (xnanosleep): Remove the workaround.
53168
53169 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53170
53171         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53172         Reported by Derek Price.
53173         (Include): Add "timespec.h".
53174
53175         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53176
53177 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53178
53179         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53180         to detect nanosleep bug.
53181
53182 2005-03-01  Bruno Haible  <bruno@clisp.org>
53183
53184         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53185
53186 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         * modules/gethrxtime: New file.
53189         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53190         (Depends-on): Add gethrxtime.
53191         (configure.ac): Add gl_XNANOSLEEP.
53192         (Makefile.am): Remove lib_SOURCES line.
53193
53194 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53195
53196         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53197         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53198
53199 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53202         * lib/timespec.h (gettime): Return void, since it always
53203         succeeds now.  All uses changed.
53204         * lib/gettime.c (gettime) Likewise.
53205         [HAVE_NANOTIME]: Prefer nanotime.
53206         Assume gettimeofday succeeds, as POSIX requires.
53207         Assime time () succeeds, since other code already does.
53208         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53209         (timespec_subtract): Remove.
53210         (NANOSLEEP_BUG_WORKAROUND): New constant.
53211         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53212         things considerably.  Use it only on GNU/Linux hosts, since the
53213         workaround shouldn't be needed elsewhere.
53214
53215 2005-02-24  Bruno Haible  <bruno@clisp.org>
53216
53217         * modules/gettext (Files): Add m4/glibc2.m4.
53218
53219 2005-02-24  Bruno Haible  <bruno@clisp.org>
53220
53221         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53222         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53223         * m4/progtest.m4:
53224         Update from GNU gettext 0.14.2.
53225         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53226
53227 2005-02-24  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53230         * lib/config.charset: Update from GNU gettext 0.14.2.
53231
53232 2005-02-24  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/gettext.h: Update from GNU gettext 0.14.2.
53235
53236 2005-02-23  Simon Josefsson  <jas@extundo.com>
53237
53238         * m4/iconvme.m4: New file.
53239
53240 2005-02-23  Jim Meyering  <jim@meyering.net>
53241
53242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53243         change.
53244         Thanks to Bruno Haible for catching it.
53245
53246 2005-02-22  Simon Josefsson  <jas@extundo.com>
53247
53248         * modules/iconvme: New file.
53249
53250         * MODULES.html.sh: Add iconvme.
53251
53252 2005-02-22  Simon Josefsson  <jas@extundo.com>
53253
53254         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53255
53256 2005-02-22  Simon Josefsson  <jas@extundo.com>
53257
53258         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53259
53260 2005-02-22  Jim Meyering  <jim@meyering.net>
53261
53262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53263         s/ifndef/ifdef/.
53264
53265 2005-02-20  Neil Conway  <neilc@samurai.com>
53266
53267         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53268         returned by OSX/Darwin if the specified buffer is not large
53269         enough for the hostname.
53270
53271 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53272
53273         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53274         pass it to _help, otherwise the latter coredumps trying to
53275         dereference state.root_argp.
53276
53277 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * modules/chdir-long (Depends-on): Add memrchr.
53280         * modules/memrchr (Files): Add lib/memrchr.h.
53281         (Include): "memrchr.h".
53282
53283 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53286
53287 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         * lib/memrchr.h: New file.
53290         * lib/chdir-long.c: Include it.
53291         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53292         Don't bother including stddef.h.
53293
53294 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53297         inclusion.
53298         Include <sys/types.h>, for dev_t.
53299         (ME_DUMMY, ME_REMOTE): Move from here....
53300         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53301         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53302         Dmitry V. Levin.
53303         Include mountlist.h first, to test the interface.
53304
53305 2005-01-29  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/progname.c (program_name): Initialize.
53308         Needed when linking statically on MacOS X.
53309
53310 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53311
53312         Sync from coreutils.
53313         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53314         (Depends-on): Add c-strtod.
53315         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53316
53317 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53318
53319         Sync from coreutils.
53320         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53321
53322         Remove files that are specific to coreutils.
53323         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53324
53325 2005-01-28  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/javacomp: New file.
53328         * MODULES.html.sh (Java): Add javacomp.
53329
53330 2005-01-28  Bruno Haible  <bruno@clisp.org>
53331
53332         * m4/javacomp.m4: New file, from GNU gettext.
53333
53334 2005-01-28  Bruno Haible  <bruno@clisp.org>
53335
53336         * lib/javacomp.sh.in: New file, from GNU gettext.
53337         * lib/javacomp.h: New file, from GNU gettext.
53338         * lib/javacomp.c: New file, from GNU gettext.
53339
53340 2005-01-26  Simon Josefsson  <jas@extundo.com>
53341
53342         * lib/gai_strerror.c: Use GPL in header.
53343
53344 2005-01-26  Bruno Haible  <bruno@clisp.org>
53345
53346         * modules/javaexec: New file.
53347         * MODULES.html.sh (Java): Add javaexec.
53348
53349 2005-01-26  Bruno Haible  <bruno@clisp.org>
53350
53351         * m4/javaexec.m4: New file, from GNU gettext.
53352
53353 2005-01-26  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/javaexec.sh.in: New file, from GNU gettext.
53356         * lib/javaexec.h: New file, from GNU gettext.
53357         * lib/javaexec.c: New file, from GNU gettext.
53358
53359 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53360
53361         * modules/lchown (Depends-on): Remove lchown.h
53362
53363 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53364
53365         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53366         must be defined if the header file was not found, in order
53367         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53368
53369 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53370
53371         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53372         initializers for struct pentry_state.
53373         (__argp_error): Check return value of __asprintf
53374         (__argp_failure): Translate error message
53375
53376         * lib/argp-parse.c: Removed braces around the expansion of N_()
53377
53378 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53379
53380         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53381         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53382         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53383         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53384         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53385         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53386         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53387         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53388         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53389         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53390         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53391         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53392         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53393         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53394         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53395         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53396         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53397         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53398         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53399         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53400         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53401         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53402         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53403         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53404         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53405         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53406         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53407         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53408         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53409         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53410         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53411         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53412         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53413         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53414         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53415         Use an all-permissive copyright notice, recommended by RMS.
53416
53417 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53418
53419         * modules/chdir-long (Depends-on): Remove mempcpy.
53420
53421 2005-01-21  Jim Meyering  <jim@meyering.net>
53422
53423         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53424         same value as for Solaris 9.
53425
53426         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53427         component length.  This included changing the parameter to be
53428         of type `char *' rather than `char const *'.
53429         * lib/chdir-long.h (chdir_long): Update prototype.
53430
53431         * lib/openat.c (fdopendir, fstatat): New functions.
53432         * lib/openat.h: Include headers required for use of DIR and struct
53433         stat.
53434         [AT_SYMLINK_NOFOLLOW]: Define.
53435         (fdopendir, fstatat): Add prototypes.
53436
53437 2005-01-21  Bruno Haible  <bruno@clisp.org>
53438
53439         * modules/classpath: New file.
53440         * MODULES.html.sh (Java): Add classpath.
53441
53442 2005-01-21  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/classpath.h: New file, from GNU gettext.
53445         * lib/classpath.c: New file, from GNU gettext.
53446
53447 2005-01-20  Simon Josefsson  <jas@extundo.com>
53448
53449         * modules/version-etc-fsf: New file.
53450
53451 2005-01-20  Simon Josefsson  <jas@extundo.com>
53452
53453         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53454         * lib/version-etc.c: Remove version_etc_copyright.
53455         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53456         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53457
53458 2005-01-20  Simon Josefsson  <jas@extundo.com>
53459
53460         * lib/base64.h (isbase64): Add.
53461
53462         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53463         using a unsigned prototype, don't inline.
53464         (base64_decode): Use it.
53465
53466 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53467
53468         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53469         it.
53470
53471 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53472
53473         * lib/save-cwd.c (save_cwd): Remove code to support the case
53474         where fchdir is missing or flaky.
53475
53476 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53479
53480 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53483         AC_LIBSOURCES now does this.
53484         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53485         with new ullong_max module.
53486
53487 2005-01-19  Bruno Haible  <bruno@clisp.org>
53488
53489         * modules/sh-quote: New file.
53490         * MODULES.html.sh (Executing programs): Add sh-quote.
53491
53492 2005-01-19  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/sh-quote.h: New file, from GNU gettext.
53495         * lib/sh-quote.c: New file, from GNU gettext.
53496
53497 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53498
53499         Merge from coreutils.
53500         * m4/ullong_max.m4: New file.
53501         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53502         (gl_MACROS): Assume localeconv exists.
53503
53504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         Merge changes from coreutils, as described below in several
53507         changelogs dated today.
53508
53509         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53510         (O_DIRECTORY): Remove; not needed here, since "." must be
53511         a directory.  All uses removed.
53512         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53513         universal on Suns, and we also need to test for IRIX.
53514         Revamp code to use 'if' rather than '#if'.
53515         Avoid unnecessary comparison of cwd->desc to 0.
53516
53517         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53518         for known valid error numbers rather than observed invalid ones.
53519
53520 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53521
53522         * modules/ullong_max: New file.
53523
53524         * modules/chdir-long, modules/openat: New files.
53525         * modules/save-cwd (Depends-on): Depend on chdir-long.
53526         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53527
53528 2005-01-18  Jim Meyering  <jim@meyering.net>
53529
53530         Merge from coreutils.
53531         * m4/chdir-long.m4, m4/openat.m4: New files.
53532         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53533         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53534         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53535         is sane and DOES follow symlinks.  Besides, testing 20 different
53536         systems found no broken chown implementations.
53537         Prompted by a change in rsync's copy of this macro.
53538         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53539
53540         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53541
53542         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53543         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53544         NULL-means-set-to-current-time semantics.
53545         Remove temporary file immediately, rather than waiting
53546         for configure's at-exit trap code to do it.
53547
53548 2005-01-18  Jim Meyering  <jim@meyering.net>
53549
53550         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53551
53552         * lib/utimens.c (futimens): Account for the fact that futimes
53553         can also fail with errno == ENOSYS or errno == ENOENT.
53554         Patch from Dmitry V. Levin.
53555
53556         Change the name of the robust chdir function from chdir to chdir_long.
53557         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53558         (restore_cwd): Use chdir_long, not chdir.
53559         * lib/chdir-long.c: Renamed from chdir.c.
53560         * lib/chdir-long.h: Renamed from chdir.h.
53561         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53562         Hurd.
53563
53564 2005-01-18  Bruno Haible  <bruno@clisp.org>
53565
53566         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53567         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53568         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53569         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53570         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53571         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53572         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53573         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53574         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53575         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53576         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53577         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53578         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53579         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53580         Use an all-permissive copyright notice, recommended by RMS.
53581
53582 2005-01-18  Bob Proulx  <bob@proulx.com>
53583
53584         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53585         simplify offsetof() macro construct to avoid compile failure with
53586         native HP-UX 11.0 ANSI C compiler.
53587
53588 2005-01-17  Bruno Haible  <bruno@clisp.org>
53589
53590         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53591         redundant because stpncpy.m4 takes care of it.
53592
53593 2005-01-17  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53596
53597 2005-01-17  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53600         used.
53601
53602 2005-01-17  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/fwriteerror.h (fwriteerror): Change specification to include
53605         fclose.
53606         * lib/fwriteerror.c: Include <stdbool.h>.
53607         (fwriteerror): At the end, close the file stream. Record whether
53608         stdout was already closed.
53609
53610 2005-01-17  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/execute.c (environ): Declare if needed.
53613         * lib/pipe.c (environ): Likewise.
53614         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53615
53616 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53617
53618         * modules/argp: Depend on vsnprintf
53619
53620 2005-01-10  Jim Meyering  <jim@meyering.net>
53621
53622         * modules/closeout (Depends-on): Add atexit.
53623
53624 2005-01-06  Bruno Haible  <bruno@clisp.org>
53625
53626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53627
53628 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53629
53630         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53631         definitions to be after all include files, to avoid collisions.
53632         Problem reported by Bob Proulx.
53633
53634 2005-01-04  Jim Meyering  <jim@meyering.net>
53635
53636         Changes imported from coreutils.
53637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53638         as the mkstemp template, use a temporary directory and an
53639         8.3-friendly template to avoid trouble on systems like DJGPP.
53640         Reported by Juan M. Guerrero via Stepan Kasal.
53641         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53642         close. Remove the temporary directory right away, rather than waiting
53643         for configure's at-exit trap code to do it.
53644         Suggestion from Stepan Kasal.
53645
53646 2005-01-01  Simon Josefsson  <jas@extundo.com>
53647
53648         * gnulib-tool: Print #include directives when --import'ing.
53649
53650 2004-12-28  Simon Josefsson  <jas@extundo.com>
53651
53652         * tests/test-base64.c: Include required header files.  Remove
53653         unused variables.
53654
53655 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53656
53657         * modules/error (Depends-on): Remove gettext.
53658
53659 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53662         not needed.  This removes a dependency on the gettext module.
53663         [defined _LIBC]: Do not include <libintl.h>; not needed.
53664
53665 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53666
53667         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53668         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53669
53670 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53673         HAVE_DECL_STRTOLD.
53674
53675 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * modules/getdate (Depends-on): Remove alloca-opt.
53678
53679 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53682
53683 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * lib/argp-parse.c: Include <stddef.h>.
53686         (alignof, alignto): New macros.
53687         (parser_init): Don't assume that void * is aligned sufficiently
53688         for struct option.
53689
53690         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53691         need to extend the stack.
53692         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53693         large.
53694
53695 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53696
53697         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53698
53699 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53702         (2004-10-24) change.  Apparently this was a false alarm.
53703
53704         * modules/getdate: Depend on alloca-opt, not alloca.
53705
53706 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53709         Remove now-obsolete comment about AIX.
53710         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53711         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53712         (YYMAXDEPTH): New macro.
53713
53714 2004-12-18  Simon Josefsson  <jas@extundo.com>
53715
53716         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53717
53718 2004-12-18  Bruno Haible  <bruno@clisp.org>
53719
53720         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53721
53722 2004-12-18  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/fatal-signal.c (fatal_signals): Make non-const.
53725         (init_fatal_signals): New function.
53726         (uninstall_handlers, install_handlers): Ignore signals that were set to
53727         SIG_IGN.
53728         (at_fatal_signal): Call init_fatal_signals.
53729         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53730         SIG_IGN.
53731         Reported by Paul Eggert.
53732
53733 2004-12-18  Bruno Haible  <bruno@clisp.org>
53734
53735         * doc/alloca.texi: New file.
53736         * doc/alloca-opt.texi: New file.
53737
53738 2004-12-17  Jim Meyering  <jim@meyering.net>
53739
53740         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53741         Otherwise, install-sh could exit with improper exit status when
53742         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53743
53744 2004-12-16  Simon Josefsson  <jas@extundo.com>
53745
53746         * tests/test-base64.c: Add license.
53747
53748 2004-12-15  Stepan Kasal  <address@hidden>
53749
53750         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53751
53752 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * modules/getcwd (Files): Add m4/d-ino.m4.
53755         Suggested by Mark D. Baushke.
53756
53757 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53758
53759         * lib/getdate.y (textint): New member "negative".
53760         (time_zone_hhmm): New function.
53761         Expect 14 shift-reduce conflicts, not 13.
53762         (o_colon_minutes): New rule.
53763         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53764         (yylex): Set the "negative" member of signed numbers.
53765
53766 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         * doc/getdate.texi (Time of day items, Time zone items):
53769         Describe new formats +00:00, UTC+00:00.
53770
53771 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53774         spurious "-l"s.  Problem reported by Stepan Kasal.
53775
53776 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53777
53778         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53779         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53780
53781 2004-12-04  Simon Josefsson  <jas@extundo.com>
53782
53783         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53784         Vandoorselaere <yoann@prelude-ids.org>.
53785
53786 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53787
53788         Changes imported from coreutils.
53789         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53790         exist.
53791         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53792
53793 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53794
53795         Changes imported from coreutils.
53796         * lib/hard-locale.c: Assume <locale.h> exists.
53797         Include "strdup.h".
53798         (GLIBC_VERSION): New macro.
53799         (hard_locale): Assume setlocale exists.
53800         Rewrite to avoid #ifdef.
53801         Use strdup rather than malloc + strcpy.
53802         * lib/human.c: Assume <locale.h> exists.
53803         (human_readable): Assume localeconv exists.
53804
53805 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53806
53807         * modules/hard-locale (Depends-on): Add strdup.
53808
53809 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53810
53811         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53812         convert T2, not T.  (Imported from libc.)
53813
53814 2004-11-30  Simon Josefsson  <jas@extundo.com>
53815
53816         * modules/restrict (License): Change to LGPL.
53817
53818 2004-11-30  Simon Josefsson  <jas@extundo.com>
53819
53820         * m4/restrict.m4: Add copyright and copying conditions.
53821
53822 2004-11-30  Simon Josefsson  <jas@extundo.com>
53823
53824         * m4/base64.m4: New file.
53825
53826 2004-11-30  Simon Josefsson  <jas@extundo.com>
53827
53828         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53829         base64.
53830
53831         * tests/test-base64.c: New file.
53832
53833         * modules/base64: New file.
53834
53835 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53836
53837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53838         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53839
53840         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53841
53842 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53843
53844         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53845         (__getcwd.c): Don't restore errno; glibc doesn't.
53846         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53847         first, falling back to our code only if its results look suspicious.
53848         Ensure that the resulting buffer is only as large as necessary.
53849
53850         * lib/readutmp.c: Include readutmp.h first.
53851         Include <errno.h>, since readutmp.h no longer does that.
53852         * lib/readutmp.h: Don't include <errno.h>,
53853         <sys/param.h>, <time.h>; not needed to establish interface.
53854         (errno): Remove decl.
53855         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53856         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53857         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53858
53859 2004-11-28  Simon Josefsson  <jas@extundo.com>
53860
53861         * lib/base64.h, base64.c: New file.
53862
53863 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53864
53865         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53866
53867 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53870         (Depends-on): Remove pathmax, same.  Add mempcpy.
53871         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53872         (Makefile.am): Append getcwd.h to lib_SOURCES.
53873         (Include): Add getcwd.h.
53874         (Maintainer): Change from Jim Meyering to "all, glibc",
53875         since getdate now uses intended-for-glibc code.
53876         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53877         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53878
53879 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53882         HP's ANSI C compiler.
53883         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53884         Declaring int functions causes warnings on some modern systems and
53885         shouldn't be needed to compile on ancient ones.
53886         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53887         defined.
53888
53889         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53890         with the following changes.
53891         (__set_errno): Parenthesize properly.
53892         Include <stdbool.h>.
53893         (MIN, MAX, MATCHING_INO): New macros.
53894         (__getcwd): Define with prototype, not K&R form.
53895         Use heuristics to allocate default buffer on stack if possible.
53896         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53897         behavior, and to avoid the PATH_MAX limit when computing
53898         ../../../../...
53899         Use MATCHING_INO to compare inode number to file.
53900         Check for arithmetic overflow in size calculations.
53901         Fix bug in reallocation of dot array that caused getcwd to fail
53902         on directories nested deeper than 75.
53903         Be more careful about saving errno on error.
53904         Do not use realloc; use only free+malloc, as this is a bit
53905         more flexible and avoids a needless copy operation.
53906         Do not inspect st_dev and st_ino for symbolic links; POSIX
53907         doesn't specify the latter.
53908         Check for closedir errors.
53909         Avoid needless casts.
53910         Use "#ifdef weak_alias" around weak_alias, to be like other
53911         glibc code.
53912         The following changes to getcwd.c have effect only when used in
53913         gnulib; they have no effect inside glibc proper.
53914         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53915         as alloca isn't used.
53916         (alloca, __alloca): Likewise.
53917         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53918         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53919         unconditionally, as gnulib assumes C89 or better.
53920         Do not include <sys/param.h>.
53921         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53922         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53923         better.
53924         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53925         Include <dirent.h> in a way that is compatible with modern Autoconf.
53926         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53927         New macros, if not already defined.
53928         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53929         Use "_LIBC", not "defined _LIBC", for consistency.
53930         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53931         a mempcpy module.
53932         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53933         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53934         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53935         credit only to Jim Meyering and adjust the copyright dates.
53936         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53937         <stdlib.h>, <unistd.h>, "pathmax.h".
53938         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53939         (INITIAL_BUFFER_SIZE): Remove.
53940         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53941
53942 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53945         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53946         Use the _ONCE methods, for efficiency.
53947         Check for fcntl.h.  In test program, include <errno.h>
53948         and <fcntl.h> if available.  Remove old K&R cruft from
53949         test program.  Check for common errors in GNU/Linux,
53950         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53951         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53952         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53953         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53954         name accordingly.
53955         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53956         accommodate new getcwd.c.
53957         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53958         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53959         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53960         that's all we need now.
53961
53962 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53963
53964         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53965         argp-parse.c depends on getopt internals, that means we should
53966         always use our getopt, to be on the safe side.
53967         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53968         order not to spoil the result of an eventual previous invocation
53969         of gl_GETOPT_SUBSTITUTE.
53970
53971 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53972
53973         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53974         redefinition warnings. To avoid them, include the defines
53975         in `#if !defined __need_getopt ... #endif'. The only place
53976         where __getopt_argv_const is used is in definitions
53977         of getopt_long and getopt_long_only below, which are as well
53978         protected by `#ifndef __need_getopt'.
53979         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53980         __need_getopt after including <stdio.h> and <unistd.h> These
53981         headers might have defined it.
53982
53983 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53986
53987 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53988
53989         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53990         (futimens): New function, which uses futimes if available.
53991         (futimens, utimens): Support timespec==NULL, with same semantics
53992         as utime and utimens.
53993         * lib/utimens.h (futimens): New decl.
53994
53995 2004-11-23  Jim Meyering  <jim@meyering.net>
53996
53997         * lib/getopt_.h: Remove trailing blanks.
53998
53999 2004-11-23  Jim Meyering  <jim@meyering.net>
54000
54001         * lib/__fpending.c: Add comment.
54002
54003 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54004
54005         * modules/canonicalize (Depends-on): Add xreadlink.
54006         Problem reported by James Youngman.
54007
54008 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54009
54010         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54011         New macros.
54012         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54013         optopt): Use them instead of invoking ## directly; otherwise, the
54014         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54015
54016 2004-11-19  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/strtok_r.c: Move comments from here...
54019         * lib/strtok_r.h: ... to here.
54020
54021 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54024         implementations that mishandle size_t overflow.
54025
54026 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54027
54028         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54029         might fail.  Problem reported by Yoann Vandoorselaere.
54030         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54031         implementations that mishandle size_t overflow.
54032
54033 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * modules/canon-host (Depends-on): Add strdup.
54036
54037 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54038
54039         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54040
54041 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54042
54043         * lib/canon-host.c: Include "strdup.h".
54044         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54045         Use strdup instead of malloc/strcpy to duplicate strings.
54046
54047         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54048         (human_space_before_unit): New constant.
54049         * lib/human.c (human_readable): Support it.
54050
54051         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54052         (xgetcwd): Set errno correctly when failing.
54053         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54054         the failure is actually due to a PATH_MAX problem.
54055
54056         Further getopt changes to make it more likely that glibc will
54057         buy the changes back.
54058         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54059         (getopt): Use it, so to preserve glibc semantic
54060         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54061         when compiling for libc.
54062         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54063         (getopt_long, getopt_long_only): Use it.
54064
54065         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54066         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54067         (getopt): Argv is now char * const *, as per standard.
54068         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54069         not char *__getopt_argv_const *.
54070         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54071         _getopt_long_only_r): Likewise.
54072         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54073         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54074         _getopt_long_r, _getopt_long_only_r): Likewise.
54075         * lib/getopt_.h (__getopt_argv_const): Remove.
54076         (getopt): Argv is now char * const *, as per standard.
54077
54078         * lib/getdate.y (tORDINAL): New token.
54079         (day, relunit): Allow it for relative times.
54080         (relative_time_table): Use tORDINAL for ordinals.
54081
54082 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54085         Document that "second" isn't allowed as an ordinal number.
54086
54087 2004-11-16  Jim Meyering  <jim@meyering.net>
54088
54089         * modules/closeout (Depends-on): Add fpending.
54090
54091 2004-11-15  Jim Meyering  <jim@meyering.net>
54092
54093         * lib/closeout.c: Include "__fpending.h" once again.
54094         Include <stdbool.h>.
54095         (close_stdout): Don't fail just because stdout was closed initially,
54096         since some programs don't write to stdout in the normal course of
54097         operation (other than --version and --help), and we don't want this
54098         function to make e.g. `touch file >&-' fail.
54099         But do fail if it was closed and someone has tried to write to it.
54100         E.g., `printf foo >&-' must fail.
54101
54102 2004-11-13  Jim Meyering  <jim@meyering.net>
54103
54104         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54105
54106 2004-11-12  Simon Josefsson  <jas@extundo.com>
54107
54108         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54109         small doc fix is still pending.
54110
54111 2004-11-11  Simon Josefsson  <jas@extundo.com>
54112
54113         * modules/strtok_r: New file.
54114
54115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54116         strtok_r.
54117
54118 2004-11-11  Simon Josefsson  <jas@extundo.com>
54119
54120         * m4/strtok_r.m4: New file.
54121
54122         * m4/getopt.m4: Replace opterr.
54123
54124 2004-11-11  Simon Josefsson  <jas@extundo.com>
54125
54126         * lib/strtok_r.h, strtok_r.c: New file.
54127
54128 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54129
54130         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54131         of replacing opterr, getopt, etc.  This should handle the
54132         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54133
54134 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54135
54136         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54137         we can stop lying to compilers about the constness of argv when we
54138         are compiled outside glibc.
54139         (getopt, getopt_long, getopt_long_only): Use it.
54140         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54141         _getopt_internal, getopt): Likewise.
54142         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54143         _getopt_long_only_r): Likewise.
54144         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54145         _getopt_long_r, _getopt_long_only_r): Likewise.
54146
54147         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54148         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54149         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54150         the other external symbols.
54151         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54152         declaration, since the above renaming now works around collisions.
54153
54154 2004-11-11  Jim Meyering  <jim@meyering.net>
54155
54156         * lib/linebreak.c: Remove trailing blanks.
54157         * lib/alloca_.h: Likewise.
54158         * lib/acosl.c: Likewise.
54159         * lib/euidaccess.c: Likewise.
54160         * lib/allocsa.h: Likewise.
54161
54162 2004-11-10  Simon Josefsson  <jas@extundo.com>
54163
54164         * m4/getaddrinfo.m4: New file.
54165
54166 2004-11-10  Simon Josefsson  <jas@extundo.com>
54167
54168         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54169
54170 2004-11-10  Simon Josefsson  <jas@extundo.com>
54171
54172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54173         getaddrinfo.
54174
54175         * modules/getaddrinfo: New file.
54176
54177 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54178
54179         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54180
54181 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54182
54183         * lib/mktime.c (SHR): New macro, which is a portable
54184         substitute for >> that should work even on Crays.
54185         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54186         Problem reported by Mark D. Baushke in
54187         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54188         * lib/getdate.y (SHR): Likewise.
54189         (tm_diff): Use it.
54190         * lib/strftime.c (SHR): Likewise.
54191         (tm_diff): Use it.
54192         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54193         quote_these_too, so that right shifts are well defined.  All uses
54194         changed.
54195
54196 2004-11-10  Jim Meyering  <jim@meyering.net>
54197
54198         Ensure that no close failure goes unreported.
54199         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54200         return early when it seems there's nothing to flush.
54201         Don't include __fpending.h.
54202
54203 2004-11-10  Jim Meyering  <jim@meyering.net>
54204
54205         * modules/closeout (Depends-on): Remove fpending.
54206
54207 2004-11-10  Jim Meyering  <jim@meyering.net>
54208
54209         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54210
54211 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54212
54213         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54214         gl_FUNC_STRFTIME.
54215         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54216         and AC_REQUIRE when possible, to avoid duplicate checks.
54217         Check for <wchar.h>.
54218
54219 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54220
54221         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54222
54223 2004-11-09  Bruno Haible  <bruno@clisp.org>
54224
54225         * m4/sockpfaf.m4: New file.
54226
54227 2004-11-05  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54230         Reported by Mark D. Baushke <mdb@cvshome.org>.
54231
54232 2004-11-04  Bruno Haible  <bruno@clisp.org>
54233
54234         2004-09-11  Bruno Haible  <bruno@clisp.org>
54235                 * allocsa.valgrind: New file.
54236         2004-02-06  Bruno Haible  <bruno@clisp.org>
54237                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54238                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54239                 Reported by Christopher Seip <chris.seip@hp.com>.
54240
54241 2004-11-04  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54244         (Makefile.am): Distribute it.
54245
54246 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54249         with errno == ERANGE if the buffer is too small.
54250         Problem reported by Mark D. Baushke.
54251
54252 2004-11-03  Albert Chin  <china@thewrittenword.com>
54253             Paul Eggert  <eggert@cs.ucla.edu>
54254
54255         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54256         equivalent, substitute $ac_type for equivalent type rather than
54257         blindly using uint32_t *always* which won't work if uint32_t is not
54258         available.  Define _UINT32_T to work around typedef of uint32_t if
54259         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54260         2.5.1.
54261
54262 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         * m4/jm-macros.m4: Sync from coreutils.
54265         (gl_MACROS): Check for mbrlen, for pathchk.
54266         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54267
54268 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * lib/xreadlink.c (MAXSIZE): New macro.
54271         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54272         size does not exceed MAXSIZE.  Avoid cast.
54273         As suggested by Mark D. Baushke in
54274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54275         if readlink fails with buffer size just under MAXSIZE, try again
54276         with MAXSIZE.
54277
54278 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54279
54280         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54281
54282 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54283         and  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54286         (get_date): Overparenthesize to avoid GCC warning.
54287
54288 2004-11-02  Bruno Haible  <bruno@clisp.org>
54289
54290         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54291         returns void.
54292
54293 2004-11-02  Bruno Haible  <bruno@clisp.org>
54294
54295         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54296         function returns void.
54297
54298 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54301         fflush_unlocked, flockfile, funlockfile, funlockfile,
54302         fputs_unlocked, putc_unlocked.
54303
54304 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54305
54306         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54307         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54308         already declared.
54309
54310 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         * modules/getdate (Files): Add doc/getdate.texi.
54313         (Depends-on): Add setenv, xalloc.
54314
54315 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * lib/getdate.y: Add support for TZ="foo" within a date string.
54318         Fix some bugs near time_t boundaries.  Reject dates with
54319         out-of-range components, e.g., "Sept 31".
54320         Include <stdlib.h>, "setenv.h", "xalloc.h".
54321         (ISDIGIT_LOCALE): Remove; unused.
54322         Note that the TZ and time functions used here are not reentrant.
54323         (mktime_ok, get_tz): New functions.
54324         (TZBUFSIZE): New constant.
54325         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54326         This requires that we sometimes generate our own TZ="XXX..." setting.
54327
54328 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * doc/getdate.texi: New file, from coreutils with modifications for
54331         the new TZ parsing.
54332
54333 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54334
54335         * lib/mktime.c (not_equal_tm): Remove redundant check.
54336
54337 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54338
54339         * modules/regex (lib_SOURCES): Add regex.c.
54340         Reported by James Youngman in
54341         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54342
54343 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         * lib/getdate.y: Use Bison 1.875 features, and some minor
54346         code cleanups.  This change does not affect semantics.
54347         Don't include <stdlib.h>; no longer needed.
54348         Don't include unlocked-io.h; only the "#if TEST" code uses
54349         stdio, and performance isn't crucial there.
54350         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54351         Bison 1.875 features as described below.
54352         All uses of "PC." replaced by "pc->".
54353         (YYSTYPE): Add a forward declaration.
54354         (yylex, yyerror): Use full prototypes in forward decls.
54355         Use "%pure-parser" rather than obsolescent "%pure_parser".
54356         Use %parse-param and %lex-param instead of obsolescent
54357         YYPARSE_PARAM and YYLEX_PARAM.
54358         (meridian_table, month_and_day_table, time_units_table,
54359         relative_time_table, time_zone_table, military_table,
54360         lookup_zone, lookup_word, get_date):
54361         Use NULL instead of 0 where appropriate.
54362         (to_hour): Avoid abort (), to avoid a dependency on
54363         stdlib.h.
54364         (yyerror, yylex): Now accepts parser_control * arg.
54365         (main) [TEST]: Use '\0' rather than 0 for char.
54366
54367 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54368
54369         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54370
54371 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54372
54373         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54374         It's now the caller's responsibility to handle the case where
54375         !HAVE_GETPAGESIZE && !defined getpagesize.
54376
54377         * lib/mktime.c (leapyear): Arg is long int, not int.
54378
54379 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54380
54381         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54382
54383 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54384
54385         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54386         missing.  Problem reported by James Youngman.
54387
54388 2004-10-16  Simon Josefsson  <jas@extundo.com>
54389
54390         * gnulib-tool: Fix comments.  Fix parse problem.
54391         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54392
54393 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54396         implementation of getopt_long.  Problem reported by Alexander Taler in:
54397         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54398
54399 2004-10-15  Bruno Haible  <bruno@clisp.org>
54400
54401         * gnulib-tool: Untabify. Initialize supplied_libname.
54402         (func_usage): More homogenous output.
54403         (func_modules_transitive_closure, func_modules_to_filelist,
54404         func_emit_lib_Makefile_am): New functions.
54405         (func_import): New function, extracted from big case statement. Use
54406         func_get_license, func_modules_transitive_closure,
54407         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54408         opt_lgpl. Don't use test -a, as it's not portable.
54409         (func_create_testdir): Use func_modules_transitive_closure,
54410         func_modules_to_filelist, func_emit_lib_Makefile_am.
54411
54412 2004-10-15  Bruno Haible  <bruno@clisp.org>
54413
54414         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54415
54416 2004-10-15  Bruno Haible  <bruno@clisp.org>
54417
54418         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54419         the portions belonging to each module.
54420         Suggested by Derek Robert Price <derek@ximbiot.com>.
54421
54422 2004-10-12  Simon Josefsson  <jas@extundo.com>
54423
54424         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54425         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54426         to real functions.
54427
54428 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54429
54430         * modules/vsnprintf: New file.
54431
54432 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54433
54434         * m4/vsnprintf.m4: New file.
54435
54436 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54437
54438         * lib/vsnprintf.h: New file.
54439         * lib/vsnprintf.c: New file.
54440
54441 2004-10-11  Bruno Haible  <bruno@clisp.org>
54442
54443         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54444         vsnprintf.
54445
54446 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54447
54448         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54449
54450 2004-10-07  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54453         fits into the provided buffer.
54454
54455 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54456
54457         * lib/diacrit.c, diacrit.h: Add GPL notice.
54458
54459         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54460         notice.
54461         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54462         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54463         This avoids a potential constant-folding bug.
54464
54465 2004-10-05  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54468         for the declaration of strsep.
54469
54470 2004-10-05  Bruno Haible  <bruno@clisp.org>
54471
54472         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54473
54474 2004-10-04  Simon Josefsson  <jas@extundo.com>
54475
54476         * modules/memmem: New file.
54477         * tests/test-memmem.c: New file.
54478         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54479
54480 2004-10-04  Simon Josefsson  <jas@extundo.com>
54481
54482         * m4/memmem.m4: New file.
54483
54484 2004-10-04  Simon Josefsson  <jas@extundo.com>
54485
54486         * lib/memmem.h: New file.
54487         * lib/memmem.c: New file, taken from glibc.
54488
54489 2004-10-04  Simon Josefsson  <jas@extundo.com>
54490
54491         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54492         '#ifdef USE_UNLOCKED_IO'.
54493
54494 2004-10-04  Simon Josefsson  <jas@extundo.com>
54495
54496         * config/srclist.txt: Add memmem from glibc.
54497
54498 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54501
54502         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54503         modules/exclude, modules/getdate, modules/getline,
54504         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54505         modules/getusershell, modules/linebuffer, modules/md5,
54506         modules/mountlist, modules/posixtm, modules/readtokens,
54507         modules/readutmp, modules/regex, modules/sha1,
54508         modules/version-etc, modules/yesno:
54509         Remove dependency on unlocked-io.
54510
54511 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54514
54515         * m4/unlocked-io.m4: Add copyright notice.
54516         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54517
54518 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54519
54520         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54521         * lib/xmalloc.c (xmemdup): Likewise.
54522         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54523         XFREE): Remove these long-obsolescent macros.
54524         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54525         * lib/xstrdup.c: Remove.
54526
54527         * lib/regex.c (re_comp): Cast gettext return value to char *,
54528         Problem reported by Martin Neitzel via Mark D. Baushke.
54529
54530 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54531
54532         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54533         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54534         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54535         regex.c, sha1.c, version-etc.c, yesno.c:
54536         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54537         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54538         the includer's responsibility.
54539
54540         Sync from coreutils.
54541
54542         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54543         points to the start of a string, as the C Standard says the
54544         resulting behavior is undefined.
54545
54546         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54547         simple -> simple_backups, numbered_existing ->
54548         numbered_existing_backups, numbered -> numbered_backups
54549         to avoid shadowing problems.  All uses changed.
54550         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54551         * lib/backupfile.c (check_extension, numbered_backup):
54552         Rename locals to avoid shadowing 'basename'.
54553         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54554         once.
54555
54556         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54557         * lib/.cvsignore: Add getopt.h.
54558
54559 2004-10-04  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/README: New file.
54562         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54563         not a module.
54564
54565 2004-10-02  Jim Meyering  <jim@meyering.net>
54566
54567         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54568
54569 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54570
54571         * modules/strsep: New file.
54572
54573 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54574
54575         * m4/strsep.m4: New file.
54576
54577 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54578
54579         * lib/strsep.h: New file.
54580         * lib/strsep.c: New file.
54581
54582 2004-10-01  Simon Josefsson  <jas@extundo.com>
54583
54584         * lib/snprintf.c (snprintf): Handle size==0.
54585
54586 2004-10-01  Simon Josefsson  <jas@extundo.com>
54587             Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54590         (snprintf): Declare 'args'.
54591
54592 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         * lib/snprintf.c: Remove comments as to why each header is needed.
54595
54596 2004-10-01  Bruno Haible  <bruno@clisp.org>
54597
54598         * MODULES.html.sh: Add strsep.
54599
54600 2004-09-30  Simon Josefsson  <jas@extundo.com>
54601
54602         * modules/snprintf: New file.
54603
54604 2004-09-30  Simon Josefsson  <jas@extundo.com>
54605
54606         * m4/snprintf.m4: New file.
54607
54608 2004-09-30  Simon Josefsson  <jas@extundo.com>
54609
54610         * lib/snprintf.h, lib/snprintf.c: New files.
54611
54612 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54613
54614         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54615         (hol_entry_help): Never translate an empty string.
54616         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54617         * lib/argp.h (OPTION_NO_TRANS): New option.
54618
54619 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         * modules/argp (Maintainer): Replace Simon Josefsson
54622         by Sergey Poznyakoff.
54623
54624 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54627         changes merged back into glibc.
54628
54629 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54632
54633 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54634
54635         * lib/xvasprintf.c: Include xalloc.h.
54636         (xvasprintf): Use xalloc_die, not xmalloc_die.
54637
54638 2004-09-29  Bruno Haible  <bruno@clisp.org>
54639
54640         * modules/alloca-opt: New file, derived from modules/alloca.
54641         * modules/allocsa: Depend on alloca-opt instead of alloca.
54642         * modules/setenv: Likewise.
54643         * modules/vasnprintf: Likewise.
54644         * MODULES.html.sh: Add alloca-opt.
54645
54646 2004-09-28  Simon Josefsson  <jas@extundo.com>
54647
54648         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54649         LGPL, and to replace license template from GPL to LGPL.
54650
54651 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54652
54653         * modules/dummy: Change license to LGPL.
54654
54655 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54656
54657         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54658
54659 2004-09-24  Simon Josefsson  <jas@extundo.com>
54660
54661         * modules/minmax (License): Change from GPL to LGPL.
54662
54663 2004-09-23  Simon Josefsson  <jas@extundo.com>
54664
54665         * gnulib-tool (--import): Typo.
54666
54667 2004-09-23  Simon Josefsson  <jas@extundo.com>
54668
54669         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54670
54671 2004-09-22  Bruno Haible  <bruno@clisp.org>
54672
54673         * modules/*: Add 'License' field.
54674         * gnulib-tool: Accept --extract-license option.
54675         (func_get_license): New function.
54676
54677 2004-09-21  Bruno Haible  <bruno@clisp.org>
54678
54679         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54680         Reported by Simon Josefsson.
54681
54682 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54685         gl_AC_TYPE_LONG_LONG.
54686
54687 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54690
54691 2004-09-18  Simon Josefsson  <jas@extundo.com>
54692         and  Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54695         calls with autoreconf.  Define GL_LIB.
54696
54697 2004-09-14  Karl Berry  <karl@gnu.org>
54698
54699         * config/srclist.txt: unsync setenv.c, sigh.
54700
54701 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54704         Problem reported by Bruno Haible in:
54705         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54706
54707 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54708
54709         * config/srclist.txt: Comment out argp-pvh.c.
54710
54711 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54714         in case some system header has #define'd it.  Problem reported by
54715         Soeren D. Schulze in
54716         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54717
54718 2004-09-09  Karl Berry  <karl@gnu.org>
54719
54720         * regex.[ch]: delete from the root.  These were supposed to be
54721                 synced with emacs cvs, but this has not happened for about
54722                 a year, and anyway nothing else uses emacs regex.[ch].
54723                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54724                 lib/regex[.ch] is untouched.
54725
54726 2004-09-09  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54729
54730 2004-09-09  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54733         modifications.
54734         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54735
54736 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54737
54738         * modules/xvasprintf: New file.
54739         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54740
54741 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54742
54743         * lib/xvasprintf.h: New file.
54744         * lib/xvasprintf.c: New file.
54745         * lib/xasprintf.c: New file.
54746
54747 2004-09-08  Bruno Haible  <bruno@clisp.org>
54748
54749         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54750
54751 2004-09-08  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54754         length is > INT_MAX.
54755         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54756         more.
54757
54758 2004-09-08  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/stdint_.h: New file, taken from GNU clisp.
54761
54762 2004-09-08  Bruno Haible  <bruno@clisp.org>
54763             Oskar Liljeblad  <oskar@osk.mine.nu>
54764
54765         * modules/stdint: New file.
54766         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54767
54768 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         Import from coreutils.
54771         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54772         strings on unbounded length.  alloca's performance benefits aren't
54773         that important here.
54774         (V_STRDUP): Remove.
54775         (parse_with_separator): New function, with most of the internals
54776         of the old parse_user_spec.  Allow user to omit both user and group,
54777         for compatibility with FreeBSD.
54778         Clone only the user name, not the entire spec.
54779         Do not set *uid, *gid unless entirely successful.
54780         Avoid memory leak in some failing cases.
54781         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54782         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54783         (parse_user_spec): Rewrite to use parse_with_separator.
54784
54785 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54786
54787         * modules/userspec: Don't depend on alloca.
54788
54789 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54792
54793 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54794
54795         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54796         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54797         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54798
54799 2004-08-16  Simon Josefsson  <jas@extundo.com>
54800
54801         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54802         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54803         Add --dry-run for --import.
54804         Let user provided command line parameters override configure.ac
54805         settings.
54806
54807 2004-08-12  Simon Josefsson  <jas@extundo.com>
54808
54809         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54810         as discussed with Paul Eggert in threads rooted at
54811         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54812         and
54813         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54814         Before, the test was empty, and relied on ELIDE_CODE in source
54815         code.)
54816         (gl_PREREQ_GETOPT): New macro.
54817         (gl_GETOPT): Use them.
54818
54819 2004-08-12  Simon Josefsson  <jas@extundo.com>
54820
54821         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54822         * lib/getopt_.h: Renamed from getopt.h.
54823
54824 2004-08-12  Simon Josefsson  <jas@extundo.com>
54825
54826         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54827         Change default library name from libfoo to libgnu.
54828         Now, if you have a configure.ac that says:
54829                 gl_SOURCE_BASE(gl)
54830                 gl_M4_BASE(gl/m4)
54831                 gl_MODULES(error getopt etcetera)
54832                 gl_INIT
54833         you can import all you need by running:
54834                 ../gnulib/gnulib-tool --import
54835
54836         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54837         (Makefile.am): Rewrite, use logic from argz.
54838         (Include): Use <getopt.h> instead of "getopt.h".
54839
54840 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54841
54842         * modules/argp (Files): Add m4/unlocked-io.m4.
54843         (Depends-on): Add extensions.
54844
54845 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54846
54847         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54848         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54849         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54850         Check for program_invocation_name, program_invocation_short_name,
54851         flockfile, funlockfile, features.h, _getopt_long_only_r.
54852
54853 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54854
54855         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54856         its complicated substitute.
54857         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54858         and program_invocation_name.
54859         (__argp_basename) [!_LIBC]: Remove; the only use was
54860         replaced by its body.
54861         (__argp_short_program_name): Change condition from
54862         !defined __argp_short_program_name to
54863         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54864         to match argp-namefrob.h.
54865         (__argp_failure): Don't assume strerror_r returns char *.
54866         * lib/argp-parse.c (N_): Define unconditionally.
54867         (argp_default_options): Fill out initializers with 0 to avoid
54868         gcc warnings.
54869
54870 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54871
54872         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54873         getopt1.c.
54874
54875 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54876
54877         Merge from coreutils.
54878
54879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54880
54881         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54882         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54883
54884 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         Merge from coreutils.
54887
54888         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54889         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54890         for Reliant Unix 5.43.
54891
54892         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54893         (union fooround): Use uintmax_t, not long int.
54894         The rest is a merge from libc:
54895         [defined _LIBC]: Include <shlib-compat.h>.
54896         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54897
54898         * lib/settime.c (settime): Recode to avoid warning with
54899         Sun Forte C 6U2.
54900
54901         * lib/strverscmp.c: Convert to UTF-8.
54902
54903 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54906         m4/uintmax_t.m4.
54907
54908 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54909
54910         * modules/xalloc-die: New file.
54911         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54912
54913         * modules/md5 (Files): Add m4/uint32_t.m4.
54914         * modules/sha1: Renamed from modules/sha.
54915         (Files):
54916         Rename lib/sha.h to lib/sha1.h.
54917         Rename lib/sha.c to lib/sha1.c.
54918         Rename m4/sha.m4 to m4/sha1.m4.
54919         (lib_SOURCES): Likewise.
54920         (configure.ac): Rename gl_SHA to gl_SHA1.
54921         (Include): sha.h -> sha1.h.
54922
54923 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54924
54925         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54926         * m4/sha1.m4: Renamed from sha.m4.
54927         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54928
54929 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54930
54931         * lib/obstack.h (obstack_empty_p):
54932         Don't assume that chunk->contents is suitably aligned.
54933         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54934         Likewise. Problem reported by Benno in
54935         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54936
54937         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54938         readable.  This could be improved further but it'd take some work.
54939
54940 2004-08-08  Simon Josefsson  <jas@extundo.com>
54941
54942         * modules/xgethostname (Depends-on): Remove exit and error (not
54943         used).
54944
54945         * modules/getpass-gnu: Add getpass.h.
54946         (Depends-on): Add stdbool.
54947         * modules/getpass: Add getpass.h.
54948
54949 2004-08-08  Simon Josefsson  <jas@extundo.com>
54950
54951         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54952         Check getpass declaration.
54953
54954 2004-08-08  Simon Josefsson  <jas@extundo.com>
54955
54956         * lib/xgethostname.c: Don't include error.h (not used).
54957
54958         * lib/getpass.h: Add.
54959         * lib/getpass.c: Include getpass.h first.
54960
54961 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         * lib/xalloc-die.c: New file.
54964         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54965         All uses removed.
54966         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54967         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54968         xalloc-die.c.
54969         (_, N_, xalloc_die): Move to xalloc-die.c.
54970         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54971         so that we needn't mess with xalloc_msg_memory_exhausted.
54972
54973         * lib/sha1.h: Renamed from sha.h.
54974         (SHA1_H): Renamed from _SHA_H.
54975         (sha1_ctx): Renamed from sha_ctx.
54976         (sha1_init_ctx): Renamed from sha_init_ctx.
54977         (sha1_process_block): Renamed from sha_process_block.
54978         (sha1_process_bytes): Renamed from sha_process_bytes.
54979         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54980         (sha1_read_ctx): Renamed from sha_read_ctx.
54981         (sha1_stream): Renamed from sha_stream.
54982         (sha1_buffer): Renamed from sha_buffer.
54983         * lib/sha1.c: Likewise; renamed from sha.c.
54984         Do not include <sys/types.h>.
54985         Include <stddef.h> rather than <stdlib.h>.
54986
54987 2004-08-08  Bruno Haible  <bruno@clisp.org>
54988
54989         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54990         FILESYSTEM_PREFIX_LEN.
54991         * lib/progreloc.c: Likewise.
54992         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54993
54994 2004-08-06  Simon Josefsson  <jas@extundo.com>
54995
54996         * modules/progname (Depends-on): Don't depend on stdbool.
54997
54998 2004-08-06  Simon Josefsson  <jas@extundo.com>
54999
55000         * modules/getsubopt: New file.
55001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55002         getsubopt.
55003
55004 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         More merge from coreutils.
55007
55008         * m4/utimens.m4, m4/utimecmp.m4: New files.
55009         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55010         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55011         prereq.m4, sha.m4: Import changes from coreutils.
55012
55013 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         More merge from coreutils.
55016         * modules/raise, modules/readtokens0, modules/utimens:
55017         * modules/utimecmp, module/xnanosleep: New files.
55018         * modules/strftime: Add lib/strftime.h.
55019         Change include from <time.h> to "strftime.h".
55020         * modules/yesno: Add lib/yesno.h.
55021         * modules/backupfile: Remove lib/addext.c.
55022         * modules/euidaccess: Add stat-macros.h.
55023         * modules/canonicalize, modules/euidaccess,
55024         modules/filemode, modules/lchown, modules/makepath,
55025         modules/rmdir, modules/stat: Likewise.
55026
55027 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         Merge from tar.
55030         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55031         SIZE_MAX is a valid preprocessor constant.
55032         (__argp_basename): Change from "#ifndef _LIBC"
55033         to "#ifndef __argp_short_program_name", so that
55034         we don't compile these functions for tar.
55035
55036         More merges from coreutils.
55037         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55038         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55039         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55040         * lib/addext.c: Remove; no longer needed.
55041         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55042         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55043         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55044         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55045         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55046         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55047         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55048         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55049         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55050         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55051         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55052         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55053         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55054         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55055         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55056         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55057         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55058         Import changes from coreutils.
55059
55060 2004-08-05  Simon Josefsson  <jas@extundo.com>
55061
55062         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55063
55064 2004-08-05  Simon Josefsson  <jas@extundo.com>
55065
55066         * m4/getsubopt.m4: New file.
55067
55068 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         Merge from coreutils.
55071
55072         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55073         * m4/getcwd-path-max.m4: New files.
55074
55075         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55076         FILESYSTEM_PREFIX_LEN ->
55077         FILE_SYSTEM_PREFIX_LEN.
55078         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55079         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55080         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55081         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55082
55083         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55084         prerequisite modules now handle the DOS stuff.
55085         Don't check for unistd.h.
55086
55087 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55088
55089         Merge from coreutils.
55090
55091         * lib/.gdb-history: Remove; this doesn't belong here.
55092
55093         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55094         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55095         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55096         * lib/getcwd.c: New files.
55097
55098         * lib/dirname.h: Include <stdbool.h>.
55099         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55100         for consistency with POSIX terminology.  All uses changed.
55101         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55102         (strip_trailing_slashes): Use bool for booleans.
55103         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55104
55105         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55106         sometimes returns a positive errno value even when it succeeds.
55107         (print_errno_message) [!LIBC]: Fall back on strerror if
55108         __strerror_r fails.
55109
55110         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55111         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55112         (longest_relative_suffix): New function.
55113         (path_concat): Use it.  Assume first argument is not NULL.
55114         Port to DOS.  Omit redundant separators.
55115         Report an error instead of returning NULL.
55116         Use mempcpy instead of memcpy.
55117         (xpath_concat): Remove: not declared or used.
55118
55119         * lib/same.h: Include <stdbool.h>
55120         (same_name): Return bool, not int.
55121         * lib/same.c (same_name): Likewise.
55122         (errno): Don't declare; we assume C89 or better now.
55123
55124         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55125         if not already defined.
55126
55127         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55128         * lib/dup-safer.c (errno): Likewise.
55129
55130 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         Merge from coreutils.
55133         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55134         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55135         * modules/path-concat: Don't depend on strdup.
55136
55137 2004-08-03  Simon Josefsson  <jas@extundo.com>
55138
55139         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55140         * lib/progname.h: Don't include stdbool.h.
55141
55142 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55145         * MODULES.html.sh (func_all_modules): Remove fatal.
55146
55147 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55150
55151 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55154         working.
55155
55156 2004-08-02  Simon Josefsson  <jas@extundo.com>
55157
55158         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55159         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55160         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55161
55162 2004-08-01  Simon Josefsson  <jas@extundo.com>
55163
55164         * lib/xgetdomainname.c: Include stdlib.h, for free().
55165
55166 2004-07-19  Bruno Haible  <bruno@clisp.org>
55167
55168         * MODULES.html.sh (func_all_modules): Add dummy.
55169
55170 2004-07-16  Simon Josefsson  <jas@extundo.com>
55171
55172         * modules/dummy: New file.
55173
55174 2004-07-16  Simon Josefsson  <jas@extundo.com>
55175
55176         * lib/dummy.c: New file.
55177
55178 2004-07-16  Bruno Haible  <bruno@clisp.org>
55179
55180         * lib/backupfile.h: Add extern "C" for C++.
55181         * lib/closeout.h: Likewise.
55182         * lib/copy-file.h: Likewise.
55183         * lib/findprog.h: Likewise.
55184         * lib/full-write.h: Likewise.
55185         * lib/pathname.h: Likewise.
55186         * lib/progname.h: Likewise.
55187         * lib/stpcpy.h: Likewise.
55188         * lib/stpncpy.h: Likewise.
55189         * lib/strcase.h: Likewise.
55190         * lib/strstr.h: Likewise.
55191         * lib/xalloc.h: Likewise.
55192
55193         * lib/mbswidth.h: Add extern "C" for C++.
55194         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55195
55196 2004-07-13  Robert Millan  <robertmh@gnu.org>
55197
55198         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55199
55200 2004-07-09  Simon Josefsson  <jas@extundo.com>
55201
55202         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55203         failed without this.)
55204
55205 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         * modules/chown (Files): Add lib/fchown-stub.c, since
55208         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55209
55210 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         * lib/fchown-stub.c: New file.
55213
55214 2004-06-24  Jim Meyering  <jim@meyering.net>
55215
55216         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55217
55218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55219
55220         * modules/argz: Omit "#include".
55221
55222         * MODULES.html.sh (func_all_modules): Add calloc, to match
55223         2004-06-01 addition of calloc module.
55224
55225 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * m4/argz.m4: New file, which is autoupdated from libtool.
55228
55229 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55232         libtool.
55233
55234 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55235
55236         * config/srclist-update: Don't insist on "USA." before the
55237         close-comment, as libtool omits the period and puts the */ on a
55238         separate line.
55239         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55240         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55241
55242 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55243
55244         * modules/argz: New file.
55245         * MODULES.html.sh (func_all_modules): Add argz.
55246
55247 2004-06-12  Jim Meyering  <jim@meyering.net>
55248         and  Paul Eggert  <eggert@cs.ucla.edu>
55249
55250         * modules/hash (Files): Add lib/xalloc.h.
55251         * modules/pipe (Depends-on): Add wait-process.
55252         * modules/stat (Depends-on): Add xalloc.
55253         * modules/userspec (Files): Add lib/userspec.h.
55254         * modules/xstrto
55255
55256         Upgrade from gettext-0.13.
55257         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55258         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55259         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55260
55261 2004-06-10  Jim Meyering  <jim@meyering.net>
55262
55263         * lib/calloc.c: New file.
55264
55265 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * lib/getdate.y (yylex): Allow space between sign and number.
55268         Problem reported by Dan Jacobson.
55269
55270 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55271
55272         Merge from coreutils CVS.
55273
55274         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55275         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55276         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55277         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55278         xstrtol.m4: Fix copyright date and/or serial number.
55279
55280         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55281         See if we need an fchown replacement.
55282         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55283         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55284         and use the replacement function if we detect either defect.
55285
55286         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55287         gl_UTIMECMP.
55288
55289 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55290         and  Jim Meyering  <jim@meyering.net>
55291
55292         Merge from coreutils CVS.
55293
55294         * lib/stat-macros.h: New file, with contents from file-type.h
55295         and coreutils' system.h.
55296         * lib/file-type.c: Include "stat-macros.h".
55297         * lib/file-type.h (file_type): Move all macro definitions to new file,
55298         stat-macros.h.
55299
55300         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55301         Wrap old code with this conditional.
55302         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55303         function that does not dereference symlinks.
55304         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55305
55306         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55307         dependency problems.
55308         (xreadlink): Accept new arg SIZE, for efficiency.
55309         All decls and uses changed.
55310         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55311
55312         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55313         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55314
55315         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55316         sysexits.h.
55317
55318 2004-06-01  Jim Meyering  <jim@meyering.net>
55319
55320         * m4/calloc.m4: New file.
55321
55322 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55323
55324         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55325         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55326         Also, fix a typo in a diagnostic.
55327
55328 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55329
55330         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55331         or AC_FUNC_REALLOC.
55332
55333 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55334
55335         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55336         macros to be defined.
55337         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55338         the allocator returns NULL because the requested size is zero.
55339
55340 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55343         var.  Add comment explaining why libc still defines it.  This
55344         merges the following patch from glibc:
55345         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55346
55347 2004-05-20  Andreas Schwab  <schwab@suse.de>
55348
55349         * m4/free.m4: Replace free if it not known to work, not the other
55350         way round.
55351
55352 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55353
55354         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55355         present in glibc since revision 1.1 of this file.
55356         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55357         obstack_alignment_mask, obstack_alloc, obstack_base,
55358         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55359         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55360         obstack_grow0, obstack_init, obstack_int_grow,
55361         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55362         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55363         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55364         nonexistent functions.
55365
55366 2004-05-18  Karl Berry  <karl@gnu.org>
55367
55368         * config/srclist.txt: break link for vasnprintf.c.
55369
55370 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55371
55372         Port obstack to the AS/400, where pointers are 16 bytes wide and
55373         you cannot cast an integer to a valid pointer.  This patch is
55374         currently waiting to be integrated into glibc; see
55375         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55376
55377         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55378         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55379         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55380         (struct obstack): temp member is now a union of a pointer and
55381         an integer, instead of an integer.  All integer uses changed.
55382         This does not affect the physical layout of struct obstack,
55383         except on hosts (like the AS/400) where the size or alignment of
55384         void * is greater than that of ptrdiff_t.
55385         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55386         __STDC__)]: Store temporary in pointer member of union, not
55387         integer member.
55388         * lib/obstack.c: Include <stddef.h>, for offsetof.
55389         (struct fooalign): Remove; it doesn't need a name.
55390         (union fooround): Change double to long double, and add void *.
55391         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55392         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55393         not a macro.  Hence the values are always int; so remove all
55394         casts-to-int in uses.
55395
55396 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55399         we can get this patch merged into glibc.
55400
55401 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55402             Paul Eggert  <eggert@cs.ucla.edu>
55403
55404         * m4/argp: Depend on alloca.
55405
55406 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55407             Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55410         freecoding.
55411
55412 2004-05-17  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55415         precision that consists of a '.' followed by an empty digit string.
55416         Patch by Tor Lillqvist <tml@iki.fi>.
55417
55418 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55419
55420         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55421         for backward compatibility with older code.  We need our own
55422         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55423         it under some other name, and our alloca.h will define it.
55424
55425 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55426             Derek Price  <derek@ximbiot.com>
55427
55428         * lib/alloca.c: Include <alloca.h>, to get our interface.
55429         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55430         include <alloca.h> first.  Use C89 prototype for alloca; this
55431         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55432         Use #elif for simplicity, since we can assume C89 now.
55433         Don't try to source the system alloca.h since it will not be found
55434         and to prevent recursively including its replacement.
55435         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55436         * lib/regex.c: Likewise.
55437
55438 2004-05-16  Derek Price  <derek@ximbiot.com>
55439             Paul Eggert  <eggert@cs.ucla.edu>
55440
55441         getline cleanup.  This changes the getndelim2 API: both order of
55442         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55443         no delimiter).
55444
55445         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55446         interface does that.
55447         (getline): Always use getdelim, so that we don't have two
55448         copies of this code.
55449         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55450         if available.
55451         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55452         (GETNDELIM2_MAXIMUM): New macro.
55453         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55454         instead of the old practice of delim2==0.  All callers changed.
55455         Return -1 on overflow, instead of returning junk.
55456         Do not set *linesize unless allocation succeeds.
55457         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55458         that we include sys/types.h.
55459         * lib/getnline.h: Likewise.
55460         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55461         (getndelim2): Reorder arguments.
55462         * lib/getnline.c (getnline, getndelim):
55463         Don't discard the NMAX argument.
55464         (getnline): Invoke getndelim, to avoid code duplication.
55465         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55466         of (size_t) -1 by callers of the getnline family.
55467
55468 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55469
55470         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55471         Check for gettimeofday.
55472         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55473         Check for settimeofday, stime.
55474
55475 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55476
55477         * lib/nanosleep.c (suspended): Change its type from int to
55478         sig_atomic_t volatile.
55479         (first_call): Make it private to rpl_nanosleep, and have it
55480         be zero initially as that's a bit faster.
55481         (my_usleep): Round up fractional times instead of truncating them,
55482         as this is the usual meaning for 'sleep'.
55483
55484         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55485         doesn't work.
55486         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55487         (ENOSYS): Define if not defined.
55488         (settime): Fall back on stime if it exists and settimeofday fails.
55489         But don't bother with fallbacks if a method fails with errno == EPERM.
55490
55491 2004-05-11  Jim Meyering  <jim@meyering.net>
55492
55493         Prior to this change, the save_cwd caller required read access to the
55494         current directory on most systems (ones with the fchdir function).
55495
55496         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55497         fails, try write-only, and finally, resort to using xgetcwd.
55498
55499 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55500
55501         * lib/obstack.c, obstack.h: Import changes from libc.
55502
55503 2004-04-28  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55506         also implicitly appends .exe to executables.
55507         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55508         accepts Windows pathnames.
55509         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55510         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55511         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55512         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55513         Reported by Derek Robert Price <derek@ximbiot.com>.
55514
55515 2004-04-21  Karl Berry  <karl@gnu.org>
55516
55517         * config/srclist.txt (localcharset.c): break sync.
55518
55519 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55520
55521         * m4/host-os.m4: Add a copyright notice.
55522
55523 2004-04-20  Jim Meyering  <jim@meyering.net>
55524
55525         Change UTILS_ to gl_ in AC_DEFINE'd names.
55526         Change utils_- and jm_-prefixed variables, too.
55527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55528         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55530
55531         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55532         Don't emit trailing blanks.
55533         Also rename jm_-prefixed variables to have gl_ prefix.
55534
55535         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55536         Also rename jm_-prefixed variables to have gl_ prefix.
55537
55538         * m4/jm-macros.m4: Reflect the renamings.
55539         * m4/prereq.m4: Likewise.
55540
55541 2004-04-20  Jim Meyering  <jim@meyering.net>
55542
55543         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55544         memory.
55545
55546 2004-04-20  Jim Meyering  <jim@meyering.net>
55547             Bruno Haible  <bruno@clisp.org>
55548
55549         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55550         memory when realloc fails.
55551
55552 2004-04-19  Jim Meyering  <jim@meyering.net>
55553
55554         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55555         now that readutmp.c may call `free (0)'.
55556
55557 2004-04-19  Bruno Haible  <bruno@clisp.org>
55558
55559         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55560         * m4/inttypes_h.m4: Likewise.
55561         * m4/stdint_h.m4: Likewise.
55562         * m4/intmax_t.m4: Likewise.
55563         * m4/uintmax_t.m4: Likewise.
55564
55565 2004-04-18  Jim Meyering  <jim@meyering.net>
55566
55567         * m4/prereq.m4: Don't forbid jm_ prefix.
55568
55569         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55570         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55571         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55572         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55573         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55574         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55575         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55576         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55577         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55578         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55579         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55580         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55581         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55582         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55583         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55584         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55585         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55586         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55587         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55588
55589 2004-04-18  Jim Meyering  <jim@meyering.net>
55590
55591         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55592         failure, don't leak memory and do call END_UTMP_ENT.
55593
55594 2004-04-16  Jim Meyering  <jim@meyering.net>
55595
55596         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55597         coreutils' stat program.
55598         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55599
55600 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55601
55602         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55603         C89.
55604         (CHAR_BIT): Remove, since we assume C89.
55605         Include <stdint.h> if available, as per current Autoconf CVS advice.
55606
55607 2004-03-31  Jim Meyering  <jim@meyering.net>
55608
55609         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55610         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55611         * m4/xalloc.m4: Likewise.
55612
55613 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55614
55615         Merge from coreutils.
55616
55617         * m4/inttostr.m4: New file.
55618         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55619         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55620         Require gl_CLOCK_TIME.
55621         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55622
55623 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55624
55625         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55626         not bool, to be more consistent with Unix conventions.
55627         Suggested by Bruno Haible.
55628
55629         Merge from coreutils.
55630
55631         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55632         * lib/umaxtostr.c: New files.
55633
55634         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55635         the usual <time.h> dance.
55636         (get_date): Change signature to support fractional time stamps.
55637         All callers changed.
55638         * lib/getdate.y: Include "getdate.h" first, as we can now
55639         assume C89 and don't need to worry about 'const'.
55640         Similarly, include "unlocked-io.h" near start, not in middle.
55641         Include <limits.h>.
55642         (textint.value): Use long int rather than int.
55643         (textint.digits): Use size_t rather than int.
55644         (BILLION, LOG10_BILLION): New constants.
55645         (parser_control): New member rel_ns.  Members day_ordinal,
55646         time_zone, month, day, hour, minutes, rel_year, rel_month,
55647         rel_day, rel_hour, rel_minutes, rel_seconds
55648         are now long int, not int.  Member seconds is now struct timespec,
55649         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55650         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55651         not int.
55652         (%union.intval): Now long int, not int.
55653         New member timespec.
55654         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55655         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55656         (spec): Now is a timespec or an item list.
55657         (timespec, items): New nonterminals.
55658         (time, rel, relunit, number, get_date):
55659         Add support for fractional seconds.
55660         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55661         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55662         (to_hour): First arg is now long int, not int.
55663         (to_year): Returns long int, not int.
55664         Don't treat year -70 like 70.
55665         (tm_diff): Returns long int, not int.
55666         (lookup_word): Use bool instead of int when appropriate.
55667         (yylex): Use size_t for count, not int.
55668         Detect overflow when parsing large integer constants.
55669         Add support for fractions.
55670         (get_date): Make pointers 'const' if possible.
55671         Use more-portable code to detect integer overflow.
55672         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55673         Don't use ctime; it's not reliable if the year has >4 digits.
55674
55675         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55676         This is for compatibility with BSD.
55677
55678         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55679         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55680         From coreutils' system.h.
55681
55682         * lib/userspec.c: Don't include "posixver.h".
55683         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55684         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55685         compatible extension.  Simplify code by removing a boolean int
55686         that was always nonzero if a string was nonnull.
55687
55688 2004-03-30  Jim Meyering  <jim@meyering.net>
55689
55690         Merge from coreutils.
55691
55692         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55693         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55694         on some systems one must include <grp.h> before it.
55695         Reported by Christian Krackowizer.
55696
55697 2004-03-30  Jim Meyering  <jim@meyering.net>
55698
55699         Merge from coreutils.
55700
55701         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55702
55703         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55704         an empty input stream.
55705
55706         * lib/readtokens.c: Include <stdbool.h>.
55707         (readtoken): Use `size_t' rather than int/long.
55708         All callers adjusted.
55709         Use `bool' rather than `int' where appropriate.
55710         Use memset rather than an explicit loop.
55711         Use x2nrealloc rather than xrealloc.
55712         Allow the use of `\0' as a delimiter.
55713         (readtokens): Likewise.
55714         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55715
55716 2004-03-30  Jim Meyering  <jim@meyering.net>
55717
55718         * m4/realloc.m4: Remove file, since now it does no more than
55719         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55720         the `configure.ac' section of module/realloc.
55721         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55722
55723 2004-03-30  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55726         nonnull.
55727
55728 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55729
55730         Merge changes to getloadavg.c from coreutils and Emacs.
55731
55732         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55733         Define to an expression, not to the empty string.
55734         Include cloexec.h and xalloc.h.
55735         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55736         Use set_cloexec_flag rather than rolling our own.
55737         * lib/cloexec.c, lib/cloexec.h: New files.
55738
55739 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55740
55741         * m4/cloexec.m4: New file.
55742
55743 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55744
55745         * lib/getopt.h: Sync with libc CVS.
55746
55747 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55748             Bruno Haible  <bruno@clisp.org>
55749
55750         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55751         mbswidth.
55752
55753 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55754             Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/mbswidth.h: Include <wchar.h> only if
55757         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55758         <wchar.h>.
55759         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55760
55761 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55762
55763         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55764         Sync with libc CVS.
55765         * lib/getopt_int.h: New file, also synced from libc.
55766
55767 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55768
55769         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55770         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55771         Bring back getopt.c, getopt.h, getopt1.c.
55772
55773 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55774
55775         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55776         All uses changed.  Check for sa_sigaction member; this fixes
55777         a bug first reported by Jason Andrade in
55778         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55779
55780 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55781
55782         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55783         '#if' expressions.  Unlike the code it replaces, it does not
55784         depend on (defined _SC_PAGESIZE).  However, it does depend on
55785         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55786         first reported by Jason Andrade in
55787         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55788
55789 2004-02-25  Simon Josefsson  <jas@extundo.com>
55790
55791         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55792
55793 2004-02-25  Simon Josefsson  <jas@extundo.com>
55794
55795         * lib/strdup.h: New file.
55796         * lib/strdup.c: Include it.
55797         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55798         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55799
55800 2004-02-23  Karl Berry  <karl@gnu.org>
55801
55802         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55803         (from fencepost.gnu.org:/gd/gnuorg).
55804
55805 2004-02-23  Karl Berry  <karl@gnu.org>
55806
55807         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55808         * config/srclist.txt: add maintain/standards documents.
55809
55810 2004-02-18  Bruno Haible  <bruno@clisp.org>
55811
55812         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55813         Reported by Derek Robert Price <derek@ximbiot.com>.
55814
55815 2004-02-16  Karl Berry  <karl@gnu.org>
55816
55817         * config/mkinstalldirs, install-sh: update from automake.
55818
55819 2004-02-06  Karl Berry  <karl@gnu.org>
55820
55821         * m4/po.m4: update from gettext 0.14.1.
55822
55823 2004-02-06  Karl Berry  <karl@gnu.org>
55824
55825         * lib/config.charset: update from gettext 0.14.1.
55826
55827 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55828
55829         Add comments and code, prompted by suggestions from Bruno Haible
55830         for sh-quote.
55831         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55832         describing the enum quoting_style values.
55833         * lib/quotearg.c (quotearg_alloc): New function.
55834         (quotearg_buffer_restyled): Treat lone { and } as special.
55835         Treat = as special.  Work around bug with older shells
55836         that "see" a '\' that is really the 2nd byte of a multibyte char.
55837         Quote empty string with shell_quoting_style.
55838
55839 2004-02-03  Bruno Haible  <bruno@clisp.org>
55840
55841         * m4/pipe.m4: New file, from GNU gettext.
55842
55843 2004-02-03  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/pipe.h: New file, from GNU gettext.
55846         * lib/pipe.c: New file, from GNU gettext.
55847
55848 2004-01-27  Bruno Haible  <bruno@clisp.org>
55849
55850         * m4/execute.m4: New file, from GNU gettext.
55851
55852 2004-01-27  Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/execute.h: New file, from GNU gettext.
55855         * lib/execute.c: New file, from GNU gettext.
55856         * lib/w32spawn.h: New file, from GNU gettext.
55857
55858 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55859
55860         Merge from diffutils.
55861
55862         * lib/file-type.c (file_type): Add typed memory objects.
55863         * lib/file-type.h (S_TYPEISTMO): New macro.
55864
55865         * lib/c-stack.h (c_stack_action): Remove argv argument.
55866         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55867         (die): Don't calculate message unless segv_action returns.
55868         (get_stack_location, min_address_from_argv, max_address_from_argv,
55869         volatile stack_base, volatile_stack_size): Remove.
55870         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55871         that every segmentation violation is a stack overflow.  (Ouch!)
55872         See Debian bug 136249 (still outstanding) for more info about why
55873         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55874
55875 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55876
55877         Exit-status fix from coreutils.
55878
55879         Use exit_failure consistently in place of EXIT_FAILURE,
55880         so that program exit statuses are consistent on failure.
55881
55882         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55883         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55884         * lib/argmatch.h: Comment fix to match the above.
55885         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55886         Now a macro referring to exit_failure, instead of a separate
55887         variable.  Include "exitfail.h" to get it.
55888         * lib/xstrtol.h: Include "exitfail.h".
55889         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55890
55891         * lib/long-options.c (parse_long_options): Use prototype
55892         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55893         for clarity.
55894
55895 2004-01-21  Jim Meyering  <jim@meyering.net>
55896
55897         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55898         so as not to conflict with a different-sized __mktime_internal
55899         function in GNU libc.
55900         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55901         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55902
55903 2004-01-20  Karl Berry  <karl@gnu.org>
55904
55905         * config/config.guess: update from config.
55906
55907         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55908
55909 2004-01-20  Bruno Haible  <bruno@clisp.org>
55910
55911         Safer stack allocation.
55912         * lib/setenv.c: Include allocsa.h.
55913         (alloca): Remove fallback definition.
55914         (freea): Remove macro.
55915         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55916         instead of freea.
55917
55918 2004-01-20  Bruno Haible  <bruno@clisp.org>
55919
55920         * m4/eealloc.m4: New file, from GNU gettext.
55921
55922 2004-01-20  Bruno Haible  <bruno@clisp.org>
55923
55924         * m4/allocsa.m4: New file, from GNU gettext.
55925
55926 2004-01-20  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/xallocsa.h: New file, from GNU gettext.
55929         * lib/xallocsa.c: New file, from GNU gettext.
55930
55931 2004-01-20  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55934
55935 2004-01-20  Bruno Haible  <bruno@clisp.org>
55936
55937         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55938         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55939         specially.
55940
55941 2004-01-20  Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55944         patch.
55945
55946 2004-01-20  Bruno Haible  <bruno@clisp.org>
55947
55948         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55949
55950 2004-01-20  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/eealloc.h: New file.
55953
55954 2004-01-20  Bruno Haible  <bruno@clisp.org>
55955
55956         * lib/binary-io.h: Avoid warnings on Cygwin.
55957
55958 2004-01-20  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/allocsa.h: New file, from GNU gettext.
55961         * lib/allocsa.c: New file, from GNU gettext.
55962
55963 2004-01-18  Karl Berry  <karl@gnu.org>
55964
55965         * doc/gpl.texi, doc/lgpl.texi: new files.
55966
55967 2004-01-18  Karl Berry  <karl@gnu.org>
55968
55969         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55970         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55971
55972 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55973
55974         Merge from coreutils.
55975
55976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55977         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55978         (gl_DEFAULT_POSIX2_VERSION): Move
55979         the documentation from 'configure' into 'config.hin',
55980         so that 'configure --help' isn't burdened by it and
55981         we don't have to worry about its formatting there.
55982         Reword the documentation so that it's more succinct
55983         and can be run together into a single paragraph.
55984         * m4/same.m4 (gl_SAME): Check for pathconf.
55985
55986 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55987
55988         Merge from coreutils.
55989
55990         * lib/posixver.c: Include posixver.h.
55991
55992         * lib/same.c: Include <stdbool.h>, <limits.h>.
55993         (_POSIX_NAME_MAX): Define if not defined.
55994         (MIN): New macro.
55995         (same_name): If file names are silently truncated, report
55996         that the file names are the same if they are the same after
55997         the silent truncation.
55998
55999         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56000         conversion function.
56001         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56002         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56003         longer needed.
56004
56005 2004-01-15  Jim Meyering  <jim@meyering.net>
56006
56007         Merge from coreutils.
56008
56009         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56010         if no library is required.
56011         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56012         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56013         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56014         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56015         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56016         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56017         value, $ac_cv_search_crypt, if it's "none required".
56018         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56019         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56020         not gl_FUNC_GETLOADAVG.
56021         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56022         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56023
56024 2004-01-15  Jim Meyering  <jim@meyering.net>
56025
56026         Merge from coreutils.
56027
56028         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56029         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56030         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56031
56032         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56033         optional configure-time default.
56034
56035         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56036
56037         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56038
56039 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56040
56041         Merge from coreutils.
56042
56043         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56044         value, $ac_cv_search_nanosleep, if it's "none required".
56045
56046 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56047
56048         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56049         with like-named macro in fnmatch.c.
56050         (EXT): Use an internal constant instead.
56051
56052         Merge fnmatch patches from glibc.
56053         * lib/fnmatch.c (mbsinit): Remove define.
56054         Add libc_hidden_ver (__fnmatch, fnmatch).
56055         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56056         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56057
56058 2004-01-14  Karl Berry  <karl@gnu.org>
56059
56060         * config/install-sh: update from automake.
56061
56062 2004-01-13  Karl Berry  <karl@gnu.org>
56063
56064         * config/install-sh: update from automake.
56065
56066 2004-01-09  Karl Berry  <karl@gnu.org>
56067
56068         * config/install-sh: update from automake.
56069
56070 2004-01-05  Karl Berry  <karl@gnu.org>
56071
56072         * config/config.{sub,guess}: update from config.
56073
56074 2003-12-31  Karl Berry  <karl@gnu.org>
56075
56076         * config/depcomp: update from automake.
56077
56078 2003-12-14  Karl Berry  <karl@gnu.org>
56079
56080         * lib/config.charset: update from gettext-runtime.
56081
56082 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56083
56084         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56085         Bug reported by Alfred M. Szmidt.
56086
56087 2003-12-03  Bruno Haible  <bruno@clisp.org>
56088
56089         * m4/gettext.m4: Upgrade from gettext-0.13.
56090         * m4/po.m4: Upgrade from gettext-0.13.
56091         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56092         * m4/intmax.m4: New file, from gettext-0.13.
56093         * m4/printf-posix.m4: New file, from gettext-0.13.
56094
56095 2003-11-29  Karl Berry  <karl@gnu.org>
56096
56097         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56098
56099 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56100             Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/printf-parse.h: Don't include sys/types.h.
56103         (ARG_NONE): New macro.
56104         (char_directive): Change type of *arg_index fields to size_t.
56105         * lib/printf-parse.c: Don't include sys/types.h.
56106         (SSIZE_MAX): Remove macro.
56107         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56108         Remove unnecessary overflow check.
56109         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56110         fields.
56111
56112 2003-11-25  Bruno Haible  <bruno@clisp.org>
56113
56114         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56115
56116 2003-11-25  Bruno Haible  <bruno@clisp.org>
56117
56118         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56119         gt_TYPE_SSIZE_T.
56120
56121 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56122
56123         * modules/alloca: Remove dependency on xalloc.
56124
56125 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56126
56127         * lib/alloca.c: Remove dependency on xalloc module.
56128         (xalloc_die): Remove.
56129         (memory_full) [!defined emacs]: New macro.
56130         [!defined emacs]: Don't include xalloc.h.
56131         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56132         address arithmetic overflows.  Change datatypes a bit to avoid
56133         unnecessary casts.
56134
56135 2003-11-22  Jim Meyering  <jim@meyering.net>
56136
56137         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56138         s/size/size_t/.
56139
56140 2003-11-21  Karl Berry  <karl@gnu.org>
56141
56142         * config/config.{sub,guess}: update from config.
56143
56144 2003-11-18  Karl Berry  <karl@gnu.org>
56145
56146         * config/config.{sub,guess}: update from config.
56147
56148         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56149
56150 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56151
56152         * README: Mention that S+T cannot overflow if S is the size of
56153         an existing object and T is sufficiently small.
56154
56155 2003-11-17  Jim Meyering  <jim@meyering.net>
56156
56157         On systems without utime and without a utimes function capable of
56158         dealing with a NULL struct utimbuf* argument, this utime replacement
56159         could -- in unusual circumstances -- leak a file descriptor.
56160         * lib/utime.c: Include <unistd.h> and <errno.h>.
56161         (utime_null): Be sure to close `fd' and to preserve errno.
56162         Reported by Geoff Collyer via Arnold Robbins.
56163
56164 2003-11-17  Bruno Haible  <bruno@clisp.org>
56165
56166         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56167         (Depends-on): Add xsize.
56168
56169 2003-11-17  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56172
56173 2003-11-17  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/vasnprintf.c (alloca): Remove fallback definition.
56176         (freea): Remove definition.
56177         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56178         Reported by Paul Eggert.
56179
56180 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56181             Bruno Haible  <bruno@clisp.org>
56182
56183         Protect against address arithmetic overflow.
56184         * lib/printf-args.h: Include stddef.h.
56185         (arguments): Change type of field 'count' to size_t.
56186         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56187         'unsigned int' where appropriate.
56188         * lib/printf-parse.h: Include sys/types.h.
56189         (char_directive): Change type of *arg_index fields to ssize_t.
56190         (char_directives): Change type of fields 'count', max_*_length to
56191         size_t.
56192         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56193         (SSIZE_MAX): Define fallback value.
56194         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56195         instead of 'int' where appropriate. Check a_allocated, d_allocated
56196         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56197         * lib/vasnprintf.c: Include xsize.h.
56198         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56199         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56200         overflow. Avoid wraparound when converting a width or precision from
56201         decimal to binary.
56202
56203 2003-11-16  Bruno Haible  <bruno@clisp.org>
56204
56205         Update from GNU gettext.
56206         * lib/printf-parse.c: Generalize to it can be compiled for wide
56207         strings.
56208         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56209         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56210         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56211         SNPRINTF): New macros.
56212         Don't include <alloca.h> if the file is used inside libintl.
56213         (local_wcslen): New function, for Solaris 2.5.1.
56214         (VASNPRINTF): Use it instead of wcslen.
56215
56216 2003-11-16  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/xsize.h (xmax): New function.
56219         (xsum, xsum3, xsum4): Declare as "pure" functions.
56220
56221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56222
56223         * modules/xalloc (Files): Undo latest change, since xalloc.h
56224         no longer needs SIZE_MAX or PTRDIFF_MAX.
56225
56226 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56227
56228         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56229         gl_PTRDIFF_MAX.
56230
56231 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56232
56233         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56234         "return", to pacify some unknown compiler.  Problem reported
56235         by Joerg Schilling.
56236
56237 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56238
56239         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56240         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56241         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56242         heuristic is just as accurate as far as we know, and it removes a
56243         dependency on size_max.m4 and ptrdiff_max.m4.
56244
56245 2003-11-11  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/xsize (Files): Add m4/size_max.m4.
56248         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56249
56250 2003-11-11  Bruno Haible  <bruno@clisp.org>
56251
56252         * m4/size_max.m4: New file.
56253         * m4/ptrdiff_max.m4: New file.
56254         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56255         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56256         (gl_XALLOC): Invoke it.
56257
56258 2003-11-11  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56261         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56262         defined.
56263
56264 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56265
56266         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56267         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56268         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56269         From Bruno Haible.
56270         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56271         not (size_t) -1, since it's defined here.
56272
56273 2003-11-09  Karl Berry  <karl@gnu.org>
56274
56275         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56276
56277 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56278
56279         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56280         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56281         Reject sizes of exactly SIZE_MAX bytes.
56282         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56283         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56284
56285 2003-11-05  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56288         SIZE_MAX defined in <limits.h> on Solaris.
56289
56290 2003-11-04  Jim Meyering  <jim@meyering.net>
56291
56292         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56293         variable names, rather than @VAR@.
56294         * modules/poll: Likewise.
56295
56296 2003-11-04  Bruno Haible  <bruno@clisp.org>
56297
56298         * modules/xsize: New file.
56299         * modules/linebreak: Depend on xsize.
56300         * MODULES.html.sh (func_all_modules): Add xsize.
56301
56302 2003-11-04  Bruno Haible  <bruno@clisp.org>
56303
56304         * m4/xsize.m4: New file.
56305
56306 2003-11-04  Bruno Haible  <bruno@clisp.org>
56307
56308         * lib/xsize.h: New file.
56309         * lib/linebreak.c: Include xsize.h.
56310         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56311         argument for overflow.
56312         Suggested by Paul Eggert.
56313
56314 2003-11-03  Karl Berry  <karl@gnu.org>
56315
56316         * config/config.{guess,sub}: update from config.
56317
56318 2003-11-03  Jim Meyering  <jim@meyering.net>
56319
56320         * modules/userspec (lib_SOURCES): Add userspec.h.
56321         (Include): Add "userspec.h".
56322         Improve description.
56323
56324 2003-11-03  Jim Meyering  <jim@meyering.net>
56325
56326         * lib/userspec.c: Include "userspec.h".
56327         * lib/userspec.h: New file.
56328
56329 2003-11-03  Bruno Haible  <bruno@clisp.org>
56330
56331         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56332
56333 2003-11-03  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56336         available, to avoid (extremely rare) race condition.
56337         Suggested by Paul Eggert.
56338
56339 2003-11-02  Karl Berry  <karl@gnu.org>
56340
56341         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56342
56343 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56344
56345         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56346         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56347         (read_filesystem_list): Set and use me_type_malloced.
56348         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56349         whatever the type happens to be), for brevity and consistency.
56350         Check for size calculation overflow on Alphas running OSF/1.
56351
56352 2003-10-31  Jim Meyering  <jim@meyering.net>
56353
56354         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56355
56356         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56357
56358 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56359             Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56362         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56363
56364 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56365
56366         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56367         netbsd*-gnu*.  Suggested by Robert Millan.
56368
56369 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56370
56371         * modules/group-member: Depend on stdbool.
56372
56373 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56374
56375         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56376
56377 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56378
56379         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56380         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56381         after the 'gnu' in these cases.  This fixes some bugs in the
56382         previous change, and is based on suggestions by Robert Millan.
56383
56384 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56385
56386         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56387         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56388         no longer needed.
56389         * lib/quotearg.c (quotearg_n_options): Use it.
56390         * lib/group-member.c: Include <stdbool.h>.
56391         (free_group_info): Arg is now const *; don't free arg.
56392         (get_group_info): Now returns bool and accepts struct group_info *,
56393         rather than returning a malloc'ed struct group_info *.
56394         All uses changed.  Check for overflow in internal size calculation.
56395
56396         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56397         rather than xmalloc/xrealloc.
56398         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56399         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56400         conformance bug: the old code used a pointer after freeing the
56401         storage that it addressed.
56402         * lib/hash.c (hash_initialize): Simplify the code by using
56403         xalloc_oversized rather than doing it by hand.
56404         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56405         the buffer preserved.  Use free and xmalloc instead.
56406         * lib/quotearg.c (quotearg_n_options): Likewise.
56407         Use a simpler test for size overflow.  Don't use xalloc_oversized
56408         because unsigned int might be wider than size_t (!); this suggests
56409         that we should switch from unsigned int to size_t for slot numbers.
56410
56411 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56412
56413         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56414         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56415         NetBSD kernels.  Requested by Richard Stallman.
56416
56417 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56418
56419         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56420         to allocate the returned structure.  Do not allocate a subarray,
56421         as x2nrealloc will do that.
56422         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56423         instead of xnrealloc.
56424         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56425
56426 2003-10-27  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/stdbool_.h: Better support for BeOS.
56429
56430 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56431
56432         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56433         now uses inline.
56434
56435 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56436
56437         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56438         callers that want to do their own size-overflow checking.  Include
56439         <stdbool.h>, since xalloc_oversized returns bool.
56440         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56441         to use xalloc_oversized.
56442
56443         Add two functions x2realloc, x2nrealloc, for programs that grow
56444         arrays dynamically by doubling their sizes.
56445         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56446         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56447         New functions.
56448
56449         Port to C99 semantics for 'inline' of external functions.
56450         Bug reported by Bruno Haible.
56451         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56452         with the old contents of xnmalloc.
56453         (xnmalloc, xmalloc): Use it.
56454         (xnrealloc_inline): New static inline function,
56455         with the old contents of xnrealloc.
56456         (xnrealloc, xrealloc): Use it.
56457
56458         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56459         that.
56460
56461 2003-10-26  Karl Berry  <karl@gnu.org>
56462
56463         * config/srclist.txt (COPYING.DOC): no longer available from
56464         /gd/gnuorg; don't know where the ultimate source is.
56465
56466 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56467
56468         Fix several address-calculation bugs in the hash modules,
56469         plus some minor code cleanup.
56470
56471         * lib/hash.h: Include <stdbool.h>, for bool.
56472         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56473         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56474         hash_get_n_entries, hash_get_max_bucket_length,
56475         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56476         hash_rehash): Use size_t rather than unsigned.
56477         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56478         hash_get_n_buckets_used, hash_get_n_entries,
56479         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56480         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56481         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56482         Likewise.
56483         (SIZE_MAX): Define if not defined.
56484         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56485         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56486         hash_print):
56487         Use const * when possible.
56488         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56489         (check_tuning): Fix bug: if tuning parameters were very close to
56490         0 or 1, rounding errors could have caused subscript violations.
56491         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56492         (hash_initialize): Add 'fail:' label
56493         to free table and return NULL, and use it to simplify code.
56494         Use calloc rather than clearing the storage ourself.
56495         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56496         buffer size calculations.
56497         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56498         Include <stddef.h>, for size_t.
56499         * lib/hash-pjw.c (hash_pjw): Likewise.
56500         Switch to method described by Bruno Haible.
56501         Include <limits.h>, for CHAR_BIT.
56502         (SIZE_BITS): New macro.
56503
56504 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56505
56506         * m4/getline.m4 (AM_FUNC_GETLINE):
56507         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56508         hosts.  Problem reported by Derek Robert Price in
56509         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56510         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56511         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56512
56513 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56514
56515         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56516         ceiling the allocation at NMAX bytes rather than silently
56517         discarding input bytes before NMAX is reached.  This makes
56518         a difference only if NMAX exceeds SIZE_MAX / 2.
56519
56520         * lib/obstack.c: Merge from glibc.
56521         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56522         Add libc_hidden_def (_obstack_newchunk).
56523         (_obstack_free) [! defined _LIBC]: Remove.
56524         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56525         a clone of the function body.
56526         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56527         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56528
56529         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56530         glibc.
56531         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56532         arg to memcpy.
56533
56534         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56535         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56536         Don't use lvalue casts, as GCC plans to remove support for them
56537         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56538         was also present in the non-GCC version, indicating that this
56539         code had always been buggy and had never been widely used.
56540         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56541         Use the fast variant of each macro, rather than copying the
56542         definiens of the fast variant; that way, we'll be more likely to
56543         catch future bugs in the fast variants.
56544
56545 2003-10-20  Bruno Haible  <bruno@clisp.org>
56546
56547         * modules/wait-process: New file.
56548         * MODULES.html.sh (func_all_modules): Add wait-process.
56549
56550 2003-10-20  Bruno Haible  <bruno@clisp.org>
56551
56552         * m4/wait-process.m4: New file.
56553
56554 2003-10-20  Bruno Haible  <bruno@clisp.org>
56555
56556         * lib/wait-process.h: New file, from GNU gettext.
56557         * lib/wait-process.c: New file, from GNU gettext.
56558
56559 2003-10-19  Jim Meyering  <jim@meyering.net>
56560
56561         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56562         HPUX 10.20.
56563
56564 2003-10-18  Karl Berry  <karl@gnu.org>
56565
56566         * config/config.guess: update from config.
56567
56568 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56569
56570         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56571         (getgroups): First arg is int, not size_t.
56572         Don't let 'free' mangle errno.
56573
56574 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56575
56576         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56577
56578 2003-10-16  Karl Berry  <karl@gnu.org>
56579
56580         * config/config.{guess,sub}: update from config.
56581
56582 2003-10-16  Jim Meyering  <jim@meyering.net>
56583
56584         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56585         memcpy.
56586
56587 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56588
56589         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56590         (SIZE_MAX): Remove.
56591         (new_exclude, add_exclude_file): Initial size no longer needs to
56592         be a power of 2.
56593         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56594         our own address arithmetic overflow checking.
56595
56596         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56597         (fnmatch): Do not alloca more than 2000 wide characters;
56598         instead, use malloc for large buffers.
56599         Check for address arithmetic overflow, and return -1
56600         with errno set to ENOMEM in that case.
56601         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56602         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56603         instead, return -1.  Check for address arithmetic overflow.
56604
56605 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56606
56607         Handle invalid suffixes and overflow independently, so that
56608         callers can treat them independently as needed.  Fix some bugs in
56609         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56610         suffix for a human-readable blocksize.  The major caller-visible
56611         change is the addition of a new
56612         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56613         that both overflow and suffix chars were found.
56614
56615         * lib/human.c (humblock): Don't check separately for invalid suffix
56616         char; that is xstrtoumax's job (now that its bug is fixed).
56617         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56618         INTMAX_MAX]: New macros.
56619         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56620         TYPE_MAXIMUM): New macros.
56621         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56622         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56623         if overflow occurs, as it's what __strtol does and it's more useful
56624         in practice.
56625         (__xstrtol): If __strtol reports some error other than ERANGE,
56626         reflect it to the caller as LONGINT_INVALID.  If it reports
56627         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56628         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56629         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56630         value.
56631         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56632         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56633         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56634         [defined UINTMAX_MAX]: New macros.
56635
56636 2003-10-14  Bruno Haible  <bruno@clisp.org>
56637
56638         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56639
56640 2003-10-14  Bruno Haible  <bruno@clisp.org>
56641
56642         * m4/sig_atomic_t: New file, from GNU gettext.
56643         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56644
56645 2003-10-14  Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56648         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56649         Also use volatile where needed.
56650
56651 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56652
56653         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56654         Change maintainer from Bruno Haible to 'all'.
56655
56656 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56657
56658         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56659
56660 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56661
56662         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56663         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56664         and define in terms of the other primitives.
56665         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56666         (SIZE_MAX): Define if not already defined.
56667         (array_size_overflow): New function.
56668         (xalloc_die): Abort instead of exiting if 'error' returns.
56669         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56670         (xmalloc, xrealloc): Use them.
56671         (xcalloc): Check for address arithmetic overflow.
56672         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56673         a bit faster than strcpy.
56674
56675 2003-10-10  Simon Josefsson  <jas@extundo.com>
56676
56677         * modules/argp (Depends-on): Add restrict and strcase.
56678
56679 2003-10-10  Simon Josefsson  <jas@extundo.com>
56680
56681         * m4/argp.m4: Add AC_C_INLINE.
56682
56683 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56684
56685         Merge getpass from libc, plus a few fixes.
56686
56687         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56688         Include <stdbool.h>.
56689         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56690         __fsetlocking to empty.
56691         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56692         do include <bits/libc-lock.h>.
56693         Do not include <fcntl.h>; not needed.
56694         [_LIBC]: Include <wchar.h>.
56695         (NOTCANCEL_MODE): New macro.
56696         (flockfile, funlockfile) [_LIBC]: New macros.
56697         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56698         [!_LIBC]: New macros.
56699         (call_fclose): New function.
56700         (getpass): Use it.  Save tty stream separately; this simplifies the
56701         code and makes it more reliable if stdin happens to equal stdout.
56702         Invoke __fsetlocking on tty.
56703         Handle thread cancellation if needed.
56704         Namespace cleanup (use __tcgetattr, __getline).
56705         Use bool for Booleans.
56706         [USE_IN_LIBIO]: Handle wide streams.
56707         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56708         stream might go where.
56709
56710         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56711         doesn't have to include <stdio.h> before us.
56712         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56713         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56714         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56715         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56716         if not declared, so that we can use getpass.c code from libc without
56717         rewriting it.
56718         (flockfile, ftrylockfile, funlockfile): New macros.
56719
56720 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56721
56722         * modules/getpass: Depend on stdbool.
56723
56724 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56725
56726         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56727
56728 2003-10-07  Karl Berry  <karl@gnu.org>
56729
56730         * config/config.{guess,sub}: update from config.
56731
56732 2003-10-06  Jim Meyering  <jim@meyering.net>
56733             Bruno Haible  <bruno@clisp.org>
56734
56735         This lets translators provide better translations for the
56736         "Written by ..." part of --version output.
56737         * lib/version-etc.h: Include stdarg.h.
56738         (version_etc_copyright): Declare as readonly.
56739         (version_etc): Make this function variadic with a NULL-terminated list
56740         of author name strings.
56741         (version_etc_va): New declaration.
56742         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56743         (version_etc_copyright): Declare as readonly.
56744         (version_etc_va): New function. Provide a different translatable string
56745         for each possible number of authors < 10. Abbreviate when there are 10
56746         authors or more.
56747         (version_etc): Make this function variadic. Call version_etc_va.
56748         Suggestion from Gary V. Vaughan.
56749
56750         * lib/long-options.h (parse_long_options): Change prototype: the
56751         authors string is moved to the end and becomes variadic.
56752         * lib/long-options.c: Include stdarg.h.
56753         (parse_long_options): Make this function variadic, too.
56754         Call version_etc_va, not version_etc.
56755
56756 2003-10-06  Bruno Haible  <bruno@clisp.org>
56757
56758         * modules/version-etc-2: Remove file.
56759         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56760
56761 2003-10-06  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/fatal-signal: New file.
56764         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56765
56766 2003-10-06  Bruno Haible  <bruno@clisp.org>
56767
56768         * m4/fatal-signal.m4: New file.
56769         * m4/signalblocking.m4: New file, from GNU gettext.
56770
56771 2003-10-06  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/version-etc-2.h: Remove file.
56774         * lib/version-etc-2.c: Remove file.
56775
56776 2003-10-06  Bruno Haible  <bruno@clisp.org>
56777
56778         * lib/fatal-signal.h: New file, from GNU gettext.
56779         * lib/fatal-signal.c: New file, from GNU gettext.
56780
56781 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56782
56783         * README: Rework advice for preventing empty .o files.
56784         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56785         not <sys/types.h>.
56786
56787 2003-10-04  Karl Berry  <karl@gnu.org>
56788
56789         * lib/argp*: update from libc.
56790
56791 2003-10-04  Karl Berry  <karl@gnu.org>
56792
56793         * config/config.{guess,sub}: update from config.
56794
56795 2003-10-02  Bruno Haible  <bruno@clisp.org>
56796
56797         * modules/lchown (Include): Add lchown.h.
56798         * modules/time_r (Include): Use "..." syntax.
56799         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56800
56801 2003-10-01  Simon Josefsson  <jas@extundo.com>
56802
56803         * MODULES.html.sh (func_all_modules): Move gethostname from section
56804         'based on' to section 'lacking' POSIX:2001.
56805
56806 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56807
56808         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56809         to output mode on the same stream.
56810
56811 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56812
56813         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56814         Fix arg typo in previous patch.
56815
56816 2003-09-28  Jim Meyering  <jim@meyering.net>
56817
56818         * lib/error.c: Correct cpp indentation.
56819
56820 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56821
56822         * modules/free: New file.
56823
56824 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56825
56826         * m4/free.m4: New file.
56827
56828 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56829
56830         * lib/minmax.h (MIN, MAX)
56831         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56832         Omit the special code that used __typeof__, since we worry that
56833         it could be more trouble than it's worth.  See:
56834         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56835         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56836
56837         * lib/free.c: New file.
56838
56839 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56840
56841         Trivial fixes to Makefile.am parts of module listings.
56842         * modules/strstr: Append strstr.h to lib_SOURCES.
56843         * modules/strcase: Likewise, for strcase.h.
56844
56845 2003-09-27  Karl Berry  <karl@gnu.org>
56846
56847         * config/mkinstalldirs: update from automake.
56848
56849 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56850
56851         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56852         (error_tail): Do not loop, reallocating temporary buffer, since
56853         the output cannot contain more wide characters than the input
56854         contains bytes, the size must be big enough already.  This avoids
56855         one potential size overflow calculation.  Check for size overflow
56856         when calculating temporary buffer size.  Free temporary buffer
56857         when done, if it was allocated with malloc; this plugs a memory
56858         leak.  Remove casts from void * to pointers, that are no longer
56859         needed now that we're assuming C89 or better.
56860
56861         Merge error changes from glibc.
56862
56863         * lib/error.c, error.h: Update copyright notice header to match glibc.
56864         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56865         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56866         Disable cancellation while printing error.
56867         * lib/error.h: Prepend __ to parameter names.
56868
56869 2003-09-26  Jim Meyering  <jim@meyering.net>
56870
56871         * lib/error.c (error_tail): Move some declarations
56872         into inner scope where the local variables are used.
56873
56874 2003-09-26  Bruno Haible  <bruno@clisp.org>
56875
56876         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56877         stpncpy().
56878         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56879
56880 2003-09-26  Bruno Haible  <bruno@clisp.org>
56881
56882         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56883         (stpncpy): Define as alias for gnu_stpncpy.
56884         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56885
56886 2003-09-25  Simon Josefsson  <jas@extundo.com>
56887
56888         * lib/xgetdomainname.h: New file.
56889         * lib/xgetdomainname.c: New file.
56890
56891 2003-09-25  Simon Josefsson  <jas@extundo.com>
56892             Bruno Haible  <bruno@clisp.org>
56893
56894         * modules/getdomainname: New file.
56895         * modules/xgetdomainname: New file.
56896         * MODULES.html.sh (func_all_modules): Add getdomainname,
56897         xgetdomainname.
56898
56899 2003-09-25  Simon Josefsson  <jas@extundo.com>
56900             Bruno Haible  <bruno@clisp.org>
56901
56902         * m4/getdomainname.m4: New file.
56903
56904 2003-09-25  Simon Josefsson  <jas@extundo.com>
56905             Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/getdomainname.h: New file.
56908         * lib/getdomainname.c: New file.
56909
56910 2003-09-25  Karl Berry  <karl@gnu.org>
56911
56912         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56913
56914 2003-09-25  Karl Berry  <karl@gnu.org>
56915
56916         * config/install-sh: update from automake.
56917
56918 2003-09-25  Bruno Haible  <bruno@clisp.org>
56919
56920         * modules/version-etc-2: New file, from modules/version-etc with
56921         modifications.
56922         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56923
56924 2003-09-25  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56927         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56928
56929 2003-09-24  Simon Josefsson  <jas@extundo.com>
56930
56931         * modules/xgethostname: Add xgethostname.h.
56932
56933 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56934
56935         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56936         the buffer associated with the argument.  Bug reported by
56937         Simon Josefsson.
56938
56939 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56940
56941         * README: Document assumptions that 'int' is at least 32 bits
56942         wide, that integer arithmetic is 2's complement without overflow,
56943         that there are no holes in integer values, that adding sizes of
56944         two nonoverlapping objects can't overflow, and that all-bits-zero
56945         yields scalar zero.  Fix spelling and capitalization typos.
56946
56947 2003-09-19  Karl Berry  <karl@gnu.org>
56948
56949         * lib/argp.h: update from libc.
56950
56951 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56952
56953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56954         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56955         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56956
56957 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56958
56959         * gnulib-tool: Use "test -h", not "test -L", for portability
56960         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56961         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56962         (sed_extract_prog): Issue s commands one-by-one, rather than
56963         using \| in one s command.
56964
56965 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56966
56967         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56968         input error, instead of returning NULL the next time we are called
56969         (and therefore losing track of errno).
56970
56971 2003-09-16  Bruno Haible  <bruno@clisp.org>
56972
56973         * gnulib-tool (func_create_testdir): Warn about duplicated
56974         dependencies.
56975
56976 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56977
56978         * modules/argmatch, modules/fatal, modules/obstack,
56979         modules/xalloc, modules/xgethostname: Sort dependencies by
56980         importance, not alphabetically.
56981
56982 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56983
56984         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56985         fails, so that the caller gets the proper errno.
56986
56987         * lib/readutmp.c (read_utmp): Likewise.
56988         Check for fstat error.  Close stream and free storage
56989         when failing.
56990
56991 2003-09-14  Karl Berry  <karl@gnu.org>
56992
56993         * config/srclist.txt (strdup.c): disable for c89 changes.
56994
56995 2003-09-14  Jim Meyering  <jim@meyering.net>
56996
56997         * lib/getloadavg.c: Correct cpp indentation.
56998         * lib/strdup.c: Likewise.
56999         * lib/vasnprintf.c: Likewise.
57000
57001 2003-09-14  Bruno Haible  <bruno@clisp.org>
57002
57003         * modules/fwriteerror: New file.
57004         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57005
57006 2003-09-14  Bruno Haible  <bruno@clisp.org>
57007
57008         * lib/fwriteerror.h: New file.
57009         * lib/fwriteerror.c: New file.
57010
57011 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57012
57013         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57014         modules/xgethostname, modules/xalloc: Depend on exit.
57015
57016 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57017
57018         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57019
57020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57021         and AC_MINIX, too, so that their extensions are available.
57022
57023         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57024         This macro has been superseded by gl_BACKUPFILE.
57025
57026         More patches to assume C89 or better.
57027
57028         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57029
57030         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57031         unconditionally.
57032         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57033         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57034         Include <string.h>, <stdlib.h> unconditionally.
57035         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57036         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57037         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57038         headers or for string.h.
57039         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57040         or strtoul.
57041
57042         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57043         headers.
57044         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57045         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57046         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57047         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57048         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57049         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57050         memcpy, memset.
57051         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57052         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57053         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57054         strtol.
57055         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57056         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57057         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57058         strtoul.
57059
57060 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57061
57062         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57063         * lib/obstack.c [!defined _LIBC]: Likewise.
57064         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57065         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57066         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57067
57068         More changes to assume C89 or better.
57069
57070         * lib/error.c (error_tail): Assume vprintf.
57071
57072         * lib/argmatch.c (getenv): Remove decl.
57073         * lib/progreloc.c (get_full_program_name): Define via prototype.
57074         * lib/setenv.c (clearenv): Likewise.
57075         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57076         needed.
57077         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57078         (malloc, memcpy): Remove decls.
57079         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57080         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57081         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57082         (memcpy): Remove macro.
57083         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57084         (__P): Remove.  All uses removed.
57085         (PTR): Remove.  All uses changed to void *.
57086         (CHAR_BIT, NULL): Remove.
57087         (spaces, zeros, memset_space, memset_zero)
57088         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57089         Remove.
57090         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57091         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57092         Define with prototype.
57093         Remove now-unnecessary prototype decl.
57094         (extra_args_spec): Assume ANSI C.  All uses changed.
57095         (extra_args_spec_iso): Remove.
57096         (my_strftime, emacs_strftimeu): Define via prototype.
57097         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57098         unconditionally.
57099         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57100         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57101         (strtoul, strtol): Remove decls.
57102         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57103         LONG_MAX): Remove.
57104         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57105         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57106         (LOCALE_PARAM_PROTO): New macro.
57107         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57108         (INTERNAL (strtol), strtol): Define with a prototype.
57109         (PARAMS): Remove.  All uses removed.
57110         * lib/tempname.c: Include <string.h> unconditionally.
57111         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57112         * lib/xgethostname.c (main): Define with a prototype.
57113         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57114         Include <stdlib.h> unconditionally.
57115         (calloc, malloc, realloc, free): Remove decls.
57116         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57117         Include <stdlib.h> unconditionally.  Sort include file names.
57118         (strtod): Remove.
57119         (xstrtod): Define with a prototype.
57120         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57121         (strtol, strtoul): Remove decls.
57122
57123 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57124
57125         More patches to assume C89 or better.
57126         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57127         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57128         string.h, memchr, STDC_HEADERS.
57129
57130 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57131
57132         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57133         Include <stdlib.h>, <string.h> unconditionally.
57134         Remove now-unnecessary cast to char *.
57135         * lib/strnlen.c: Include <string.h> unconditionally.
57136         * lib/yesno.c (yesno): Define with a prototype.
57137
57138 2003-09-11  Bruno Haible  <bruno@clisp.org>
57139
57140         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57141
57142 2003-09-10  Jim Meyering  <jim@meyering.net>
57143
57144         * lib/error.c: Correct indentation of cpp directives.
57145
57146 2003-09-10  Bruno Haible  <bruno@clisp.org>
57147
57148         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57149         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57150         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57151         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57152         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57153         <stdlib.h> and <string.h> checks.
57154         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57155         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57156
57157 2003-09-10  Bruno Haible  <bruno@clisp.org>
57158
57159         * lib/strcspn.c: Include <string.h> unconditionally.
57160         * lib/strpbrk.c: Include <string.h> unconditionally.
57161         * lib/strstr.c: Include <string.h> unconditionally.
57162         * lib/unicodeio.c: Include <string.h> unconditionally.
57163         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57164         * lib/unsetenv.c: Likewise.
57165         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57166         * lib/yesno.c: Include <stdlib.h> unconditionally.
57167         (rpmatch): Add prototype.
57168
57169 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57170
57171         More patches to assume C89 or better.
57172         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57173         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57174         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57175         or for string.h.
57176         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57177         stdlib.h.
57178         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57179         C headers.
57180         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57181         string.h.
57182         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57183         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57184         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57185         or for string.h.
57186         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57187         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57188         C headers.
57189         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57190         memcpy.
57191         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57192         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57193         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57194         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57195         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57196         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57197         string.h, free.
57198         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57199         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57200         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57201         C headers, or for string.h.
57202         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57203         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57204         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57205         headers, memory.h, stdlib.h, string.h, strings.h.
57206         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57207         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57208         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57209         strchr.
57210         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57211         headers, memory.h, string.h.
57212         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57213         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57214         free.
57215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57216         headers.
57217         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57218         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57219         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57220         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57221         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57222
57223 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57224
57225         More K&R removal.
57226
57227         * lib/acosl.c (main): Use a prototype.
57228         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57229         tanl.c: Likewise.
57230
57231         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57232
57233         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57234         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57235         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57236         with a prototype.
57237         * lib/getopt.c (const): Remove macro.
57238         Include <string.h> unconditionally.
57239         (my_index): Remove; all uses changed to strchr.
57240         (strlen): Remove decl.
57241         (exchange): Remove forward decl; no longer needed.
57242         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57243         Define with prototype.
57244         * lib/getopt1.c (const): Remove macro.
57245         (getopt_long, getopt_long_only, main): Define with prototype.
57246
57247         * lib/getugroups.c: Include <string.h> unconditionally.
57248
57249         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57250         (getusershell, setusershell, endusershell, readname, main):
57251         Define with prototypes.
57252
57253         * lib/group-member.c: Include group-member.h first.
57254         Include <stdlib.h> unconditionally.
57255
57256         * lib/hard-locale.c: Include hard-locale.h first.
57257         Include <stdlib.h>, <string.h> unconditionally.
57258
57259         * lib/hash.c (free, malloc): Remove decls.
57260         Include <stdlib.h> unconditionally.
57261
57262         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57263         (getenv): Do not declare.
57264
57265         * lib/idcache.c: Include <string.h> unconditionally.
57266
57267         * lib/long-options.c: Include long-options.h first, to test interface.
57268         Include <stdlib.h> unconditionally.
57269
57270         * lib/makepath.c: Include makepath.h first, to test interface.
57271         Include <stdlib.h> and <string.h> unconditionally.
57272
57273         * lib/linebuffer.c: Include <stdlib.h>.
57274         (free): Remove decl.
57275
57276         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57277         stddef.h. rpl_malloc returns void *, not char *.
57278         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57279         prototype.
57280
57281         * lib/md5.h: Include <limits.h> unconditionally.
57282         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57283         (__P): Remove; all uses removed.
57284         * lib/md5.c: Include "md5.h" first.
57285         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57286         md5_buffer, md5_process_bytes, md5_process_block):
57287         Define with prototypes.
57288         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57289         * lib/sha.c: Include "sha.h" first.
57290         Include <stdlib.h>, <string.h> unconditionally.
57291
57292         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57293         * lib/memcmp.c (__ptr_t): Likewise.
57294         * lib/memrchr.c (__ptr_t): Likewise.
57295         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57296         Include <string.h> unconditionally.
57297         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57298         * lib/memchr.c: Include <stdlib.h> unconditionally.
57299         * lib/memchr.c (LONG_MAX): Remove.
57300         * lib/memrchr.c (LONG_MAX): Likewise.
57301         * lib/memchr.c (__memchr): Define via a prototype.
57302         * lib/memrchr.c (__memrchr): Likewise.
57303         * lib/memcmp.c (__P): Remove, and remove all uses.
57304         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57305         Remove forward decls; no longer needed.
57306         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57307         Use types required by C89 in prototype.
57308
57309         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57310         * lib/savedir.c: Likewise.
57311         * lib/mkdir.c (free): Remove decl.
57312         * lib/rmdir.c (rmdir): Define with a prototype.
57313         * lib/savedir.c: Include savedir.h first, to test interface.
57314
57315         * lib/mktime.c (STDC_HEADERS): Remove.
57316         Include <stdlib.h>, <string.h> unconditionally.
57317
57318         * lib/modechange.c: Include <stdlib.h> unconditionally.
57319         (malloc): Remove decl.
57320
57321         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57322         (free): Remove decl.
57323
57324         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57325         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57326         (This type really should be intptr_t, but that's a C99ism.)
57327         (_obstack_memcpy): Remove: all uses changed to memcpy.
57328         Include <string.h> unconditionally.
57329         (struct obstack): Assume __STDC__ for types of members
57330         chunkfun, freefun, extra_arg.
57331         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57332         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57333         obstack_begin, obstack_specify_allocation,
57334         obstack_specify_allocation_with_arg, obstack_chunkfun,
57335         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57336         Remove unprototyped decls and the macros that use them.
57337         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57338         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57339         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57340         (defined __STDC__ && __STDC__)]:
57341         Remove nonprototyped code.
57342         Include <stdlib.h> unconditionally.
57343         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57344         _obstack_allocated_p, _obstack_free, obstack_free,
57345         _obstack_memory_used, print_and_abort):
57346         Define using prototypes.
57347         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57348         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57349         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57350         obstack_next_free, obstack_object_size, obstack_room) [0]:
57351         Remove unused, unprototyped code.
57352
57353         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57354
57355         * lib/physmem.c (physmem_total, physmem_available, main): Define
57356         with prototypes.
57357
57358         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57359         (main): Define with a prototype.
57360
57361         * lib/posixver.c (getenv): Remove decl.
57362
57363         * lib/putenv.c (malloc): Returns void *, not char *.
57364         Include <string.h> unconditionally.
57365         (strchr, memcpy, NULL): Do not define.
57366
57367         * lib/readtokens.c: Include readtokens.h first, to test interface.
57368         Include <stdlib.h>, <string.h> unconditionally.
57369         (init_tokenbuffer): Define with a prototype.
57370
57371         * lib/regex.c (PARAMS): Remove.  All uses removed.
57372         All uses of _RE_ARGS removed, too.
57373         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57374         unconditionally.
57375         (bzero): Assume memset exists.
57376         (memcmp, memcpy, NULL): Remove.
57377         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57378         char, or assignments to local vars of type signed char.
57379         (init_syntax_once, PREFIX(extract_number_and_incr),
57380         PREFIX(print_partial_compiled_pattern),
57381         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57382         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57383         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57384         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57385         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57386         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57387         wcs_compile_range, byte_compile_range, truncate_wchar,
57388         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57389         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57390         count_mbs_length, wcs_re_match_2_internal,
57391         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57392         PREFIX(alt_match_null_string_p),
57393         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57394         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57395         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57396         now-unnecessary declaration, if any.
57397         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57398         regcomp, regexec):
57399         Remove now-unnecessary casts among pointer types.
57400         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57401
57402         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57403         (free): Remove decl.
57404
57405         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57406
57407         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57408         (free): Remove decl.
57409
57410         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57411         * lib/xgetcwd.c: Likewise.
57412
57413         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57414         (free): Remove decl.
57415
57416         * lib/strchrnul.c (strchrnul): Define with a prototype.
57417         Fix bug: c_in was not converted to char before searching.
57418
57419         The following changes are not K&R related:
57420
57421         * lib/group-member.h: Include <sys/types.h>, so that this file is
57422         self-contained.
57423         * lib/makepath.h: Likewise.
57424
57425         * lib/getusershell.c (readname, default_index, line_size, readname):
57426         Use size_t, not int, for sizes.
57427         (readname): If the size overflows, report an error instead of
57428         looping forever.
57429
57430 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57431
57432         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57433         libc.
57434
57435 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57436
57437         * README: New section: portability guidelines.
57438
57439 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57440
57441         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57442         C89 spec.
57443
57444 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57445
57446         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57447
57448 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57449
57450         Assume C89 or better; remove K&R cruft.
57451         A few of these changes were first proposed by Derek Robert Price
57452         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57453
57454         * lib/addext.c: Include <string.h> unconditionally.
57455         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57456         Don't declare getenv or malloc.
57457
57458         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57459         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57460         (NULL): Remove.
57461         (find_stack_direction, alloca): Use prototypes.
57462
57463         * lib/atexit.c (atexit): Define using a prototype.
57464
57465         * lib/basename.c, dirname.c, stripslash.c:
57466         Include <string.h> unconditionally.
57467
57468         * lib/bcopy.c: Include <stddef.h>.
57469         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57470
57471         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57472
57473         * lib/error.h (error, error_at_line, error_print_progname)
57474         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57475         * lib/error.c: Include error.h first, to check interface.
57476         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57477         (VA_START): Remove; all uses changeed to va_start.
57478         (exit, strerror): Remove decls.
57479         (error_print_progname): Prototype uncondionally.
57480         Don't include <errno.h>; no longer needed.
57481         (private_strerror): Remove.
57482         (error_tail): Always define.
57483         (error, error_at_line): Assume C89 or better; always use prototypes.
57484         * lib/fatal.c: Include "fatal.h" first, to test interface.
57485         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57486         (VA_START): Remove; all uses changed to va_start.
57487         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57488         this case.
57489         (exit): Remove decl.
57490         (fatal): Prototype unconditionally.  Assume va_start works.
57491         Abort at end, to pacify gcc.
57492
57493         * lib/euidaccess.c (main): Define with a prototype.
57494
57495         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57496
57497         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57498
57499         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57500         prototypes.
57501         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57502         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57503         (getenv): Remove decl.
57504         (fnmatch): Define using a prototype.
57505         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57506         (FCT): Define using a prototype.
57507
57508         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57509
57510         * lib/gethostname.c: Include <stddef.h>.
57511         (gethostname): Define with prototype.  Length is size_t, not int.
57512
57513 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57514
57515         Assume C89 or better; remove K&R cruft.
57516         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57517         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57518         string.h, getenv, malloc.
57519         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57520         headers.
57521         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57522         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57523         do not check for strerror.
57524         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57525         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57526         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57527         do not check for doprnt or vprintf.
57528         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57529         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57530
57531 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57532
57533         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57534         getversion.c should have been removed then, but was accidentally
57535         preserved.
57536
57537         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57538         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57539
57540 2003-09-08  Karl Berry  <karl@gnu.org>
57541
57542         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57543                 config, forget about prep.
57544
57545         * config/depcomp, missing: update from automake.
57546
57547 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57548
57549         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57550         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57551
57552 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57553
57554         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57555         copy_tm_result.  Bug reported by Simon Josefsson in
57556         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57557
57558 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57559
57560         * m4/time_r.m4: New file.
57561         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57562         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57563         is. Check for timegm declaration.
57564         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57565         Do not check for gmtime_r.
57566         Replace mktime if __mktime_internal does not exist and if mktime
57567         hasn't been replaced already.
57568
57569 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57570
57571         * lib/time_r.c, lib/time_r.h: New files.
57572
57573         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57574         __localtime_r.
57575         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57576         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57577
57578         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57579         __gmtime_r.
57580         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57581         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57582         Include <time_r.h>.
57583
57584         * lib/timegm.c: Switch to glibc implementation, with the following
57585         changes:
57586         [defined HAVE_CONFIG_H]: Include <config.h>.
57587         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57588         (__mktime_internal) [!defined _LIBC]: New decl.
57589         (__gmtime_r) [!defined _LIBC]: New macro and function.
57590         (timegm): Use a prototype, since gnulib assumes C89.
57591         Do not bother declaring tmp to be const, as it's not really usefu.
57592         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57593         (timegm): Declare only if HAVE_DECL_TIMEGM.
57594
57595 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57596
57597         * MODULES.html.sh (func_all_modules): Add time_r.
57598         * modules/time_r: New file.
57599         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57600         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57601
57602 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57603
57604         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57605         Bug reported by Lute Kamstra in
57606         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57607
57608         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57609         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57610         course with correspondingly smaller numbers for tomorrow and
57611         yesterday.  From Tadayoshi Funaba.  Originally installed into
57612         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57613         coreutils merge?).
57614
57615 2003-08-31  Simon Josefsson  <jas@extundo.com>
57616
57617         * modules/timegm: New file.
57618         * MODULES.html.sh (func_all_modules): Add timegm.
57619
57620 2003-08-31  Simon Josefsson  <jas@extundo.com>
57621
57622         * m4/timegm.m4: New file.
57623
57624 2003-08-31  Simon Josefsson  <jas@extundo.com>
57625
57626         * lib/timegm.h: New file.
57627         * lib/timegm.c: New file.  Based on
57628         wget-1.8.2/src/http.c:mktime_from_utc.
57629
57630 2003-08-31  Karl Berry  <karl@gnu.org>
57631
57632         * lib/argp.h: update from libc.
57633
57634 2003-08-28  Bruno Haible  <bruno@clisp.org>
57635
57636         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57637         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57638         followed by '#define fnmatch fnmatch_posix' gives an error.
57639
57640 2003-08-28  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57643         warning on QNX, which defines O_BINARY to 000000.
57644
57645 2003-08-27  Jim Meyering  <jim@meyering.net>
57646
57647         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57648         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57649         would fail after 32.  Reported by Danny Levinson.  Details here:
57650         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57651
57652 2003-08-24  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57655         MSVC7 <stdio.h> is included later.
57656
57657 2003-08-22  Simon Josefsson  <jas@extundo.com>
57658
57659         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57660
57661 2003-08-20  Karl Berry  <karl@gnu.org>
57662
57663         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57664
57665 2003-08-20  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/progname: New file.
57668         * MODULES.html.sh (func_all_modules): Add progname.
57669
57670 2003-08-20  Bruno Haible  <bruno@clisp.org>
57671
57672         * lib/progname.h: New file, from GNU gettext.
57673         * lib/progname.c: New file, from GNU gettext.
57674         * lib/progreloc.c: New file, from GNU gettext.
57675
57676 2003-08-19  Jim Meyering  <jim@meyering.net>
57677
57678         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57679         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57680
57681 2003-08-19  Bruno Haible  <bruno@clisp.org>
57682
57683         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57684         more.
57685
57686 2003-08-19  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/xstrdup.c: Assume <string.h> exists.
57689
57690 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57691
57692         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57693         in makefile rules.
57694
57695 2003-08-18  Jim Meyering  <jim@meyering.net>
57696
57697         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57698         * m4/lib-ld.m4: Likewise.
57699
57700 2003-08-18  Jim Meyering  <jim@meyering.net>
57701
57702         * lib/setenv.h: Indent nested cpp directive.
57703         * lib/vasnprintf.c: Remove trailing blanks.
57704
57705 2003-08-17  Simon Josefsson  <jas@extundo.com>
57706
57707         * modules/xstrndup: New file.
57708         * MODULES.html.sh (func_all_modules): Add xstrndup.
57709
57710 2003-08-17  Simon Josefsson  <jas@extundo.com>
57711
57712         * modules/argp: Fix autoconf macro name. Add more dependencies.
57713
57714 2003-08-17  Simon Josefsson  <jas@extundo.com>
57715
57716         * m4/xstrndup.m4: New file.
57717
57718 2003-08-17  Simon Josefsson  <jas@extundo.com>
57719
57720         * m4/argp.m4: New file.
57721
57722 2003-08-17  Simon Josefsson  <jas@extundo.com>
57723             Bruno Haible  <bruno@clisp.org>
57724
57725         * lib/xstrndup.h: New file.
57726         * lib/xstrndup.c: New file.
57727
57728 2003-08-17  Bruno Haible  <bruno@clisp.org>
57729
57730         * modules/strndup (Files, Include): Add lib/strndup.h.
57731
57732 2003-08-17  Bruno Haible  <bruno@clisp.org>
57733
57734         * modules/euidaccess (Files): Add lib/euidaccess.h.
57735
57736 2003-08-17  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/strndup.h: New file.
57739
57740 2003-08-17  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57743         like AC_GNU_SOURCE.
57744         * modules/extensions (configure.ac): Comment out the invocation of
57745         gl_USE_SYSTEM_EXTENSIONS.
57746
57747 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57748
57749         Merges from coreutils, etc.
57750         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57751         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57752         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57753         fixing a typo.
57754         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57755         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57756
57757 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57758
57759         Document merge from coreutils.
57760         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57761         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57762         * modules/utime: Add m4/utimes-null.m4.
57763
57764 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57765
57766         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57767         space, undoing this 2003-08-12 change:
57768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57769
57770 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57771
57772         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57773         strtoul.c from libc, undoing this 2003-08-12 change:
57774         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57775
57776 2003-08-16  Jim Meyering  <jim@meyering.net>
57777
57778         Merges from coreutils.
57779         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57780         prefix.  Adjust cache variables similarly.  Create 500 rather than
57781         just 300 files, to exercise bug on Darwin6.5, too.
57782         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57783         $missing_dir.
57784         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57785         AM_SYS_POSIX_TERMIOS.
57786         Reported by mkc@mathdogs.com.
57787         Also change use of $am_cv_sys_posix_termios
57788         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57789         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57790         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57791         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57792         in /proc/mounts until it finds one with matching device number.  This
57793         is unnecessary when the FILE argument *is* a mount point.  No stat call
57794         is necessary in that case.  So, disable the statvfs-testing code on
57795         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57796         as RedHat bug# 84846.
57797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57798         to 1MB, so as not to render systems with no stack size limit (e.g.,
57799         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57800         Include <unistd.h>.  On some systems,
57801         it is required for the definition of _SC_PAGESIZE.
57802
57803 2003-08-16  Jim Meyering  <jim@meyering.net>
57804
57805         Merge from coreutils.
57806         * lib/xstrtoimax.c: #else #if -> #elif.
57807         * lib/xstrtoumax.c: Likewise.
57808
57809 2003-08-16  Jim Meyering  <jim@meyering.net>
57810
57811         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57812         * m4/utimes.m4: Removed.
57813         * m4/utimes-null.m4: Renamed from utimes.m4.
57814
57815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57816         to 1MB, so as not to render systems with no stack size limit (e.g.,
57817         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57818         Include <unistd.h>.  On some systems,
57819         it is required for the definition of _SC_PAGESIZE.
57820
57821 2003-08-16  Jim Meyering  <jim@meyering.net>
57822         and Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         Merges from coreutils, etc.
57825
57826         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57827         using the latest version from cvs.  This avoids problems with #line
57828         directives using a vendor (Sun) compiler.
57829         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57830         Don't set GETGROUPS_LIB here; now it's
57831         done via getgroups.m4's wrapper function.
57832         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57833         rather than just in sh-util/configure.in, so that the
57834         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57835         same.
57836         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57837         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57838         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57839         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57840         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57841         Remove code that is now done by the newly-required macros.
57842         Append $(EXEEXT) to DF_PROG.
57843         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57844         Do not invoke or require the following here,
57845         since prereq.m4 or some gnulib .m4 now does this for us:
57846         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57847         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57848         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57849         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57850         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57851         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57852         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57853         AC_FUNC_OBSTACK.
57854         Do not replace the following functions, as this is now the job
57855         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57856         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57857         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57858         atexit getpass, strdup, getpagesize.
57859         Replace 'raise'.
57860         Do not check for the following functions, as this is now the job
57861         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57862         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57863         setregid.
57864         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57865         Check for sys/sysctl.h.
57866         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57867         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57868         of checking for ssize_t ourselves.
57869
57870         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57871         Require every macro that gnulib/modules/* suggests for us.
57872         (jm_PREREQ_ADDEXT): New macro.
57873         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57874         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57875
57876         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57877         (gl_PHYSMEM): Use it.
57878         Also check for `table' function.
57879         Check for new headers and functions.
57880         Add check for sys/sysmp.h.
57881         With suggestions from Kaveh Ghazi.
57882         Ignore headers that are present but cannot be compiled.  This
57883         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57884         C 5.4.
57885
57886 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57887
57888         Document merge from coreutils.
57889         * modules/userspec: Depend on posixver.
57890         * modules/strftime: Depend on tzset.
57891
57892 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57893
57894         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57895         rather than tab, after '#' in shell-script copyright notices.
57896         Suggested by Bruno Haible.
57897
57898 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57899
57900         * config/srclist-update: Use three spaces, rather than tab, after '#'
57901         in shell-script copyright notices.  Suggested by Bruno Haible.
57902         Remove unnecessary parenthesization in regular expression.
57903
57904 2003-08-15  Jim Meyering  <jim@meyering.net>
57905
57906         Merge from coreutils.
57907         * lib/xgethostname.c: Include <stdlib.h>.
57908         (xghostname): Don't exit for anything other than memory-related
57909         failure; just return NULL.
57910         * lib/userspec.c: Include "posixver.h".
57911         (parse_user_spec): Accept `.' as a separator only
57912         in pre-POSIX-200112 mode.
57913         * lib/strtoimax.c: Use #elif rather than #else #if.
57914         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57915         Remove function, now that we can rely on a working tzset function.
57916         [!_LIBC]: Ensure that the required autoconf test has been run.
57917         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57918         Use underlying_strftime for %r.
57919         * lib/sha.c: Merge in some clean-up and optimization changes from
57920         glibc.
57921         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57922         Ensure that it is a multiple of 64.
57923         Rearrange loop exit tests so as to avoid performing an
57924         additional fread after encountering an error or EOF.
57925         * lib/realloc.c: Update copyright date.
57926
57927 2003-08-15  Jim Meyering  <jim@meyering.net>
57928         and Paul Eggert  <eggert@twinsun.com>
57929
57930         Merge from coreutils.
57931         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57932         member but strut utmpx does not.  Needed for AIX 4.3.3.
57933         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57934
57935 2003-08-15  Jim Meyering  <jim@meyering.net>
57936         and Paul Eggert  <eggert@cs.ucla.edu>
57937
57938         Merges from coreutils, etc.
57939         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57940         Require gl_FUNC_TZSET_CLOBBER.
57941         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57942         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57943         members.
57944
57945 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57946
57947         Help the merge from coreutils.
57948         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57949         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57950         * m4/tzset.m4: Use it too.
57951
57952 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57953
57954         * modules/tzset: New file.
57955
57956 2003-08-14  Jim Meyering  <jim@meyering.net>
57957
57958         Merges from coreutils.
57959         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57960         variable names, rather than @FNMATCH_H@.
57961         * modules/alloca: Likewise for $(ALLOCA_H).
57962
57963         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57964         the three copies of the literal target, `fnmatch.h'.
57965         * modules/alloca (alloca.h): Likewise.
57966
57967 2003-08-14  Jim Meyering  <jim@meyering.net>
57968
57969         Merge from coreutils.
57970         * m4/tzset.m4: New file.
57971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57972         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57973         otherwise, AIX 5.1 systems would end up using the latter.
57974         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57975         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57976         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57977         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57978
57979 2003-08-14  Jim Meyering  <jim@meyering.net>
57980
57981         Merge from coreutils.
57982         * lib/obstack.h: Whitespace changes.
57983         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57984         and xcalloc return values.
57985         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57986         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57987         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57988         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57989         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57990         error from mntctl.
57991         Use mntctl's return value to drive the entry-processing loop, since
57992         we can't rely on the value of the vmt_length member in the last
57993         entry.  On some systems doing so could result in exhausting
57994         virtual memory.  Based in part on a patch from Mike Jetzer.
57995
57996 2003-08-14  Jim Meyering  <jim@meyering.net>
57997         and Paul Eggert  <eggert@twinsun.com>
57998
57999         Merges from coreutils, plus other fixes.
58000         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58001         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58002         for credits and details.  Thanks to Kaveh Ghazi for helping
58003         to keep these files in sync.
58004         (ARRAY_SIZE): Define it.
58005         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58006         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58007         (memcasecmp): Don't assume size_t fits in unsigned int.
58008         Remove casts and duplicate code.
58009         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58010         (memcpy): Remove definition.
58011         Merge in some clean-up and optimization changes from glibc.
58012         [BLOCKSIZE]: Move definition to top of file.
58013         Ensure that it is a multiple of 64.
58014         Rearrange loop exit tests so as to avoid performing an
58015         additional fread after encountering an error or EOF.
58016         * lib/md5.h (md5_uintptr): Define.
58017         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58018         return to the initial working directory.  Preserve errno
58019         for caller.
58020         * lib/idcache.c: Include "xalloc.h".
58021         (xmalloc, xrealloc): Remove decls.
58022         (getuser): Remove casts no longer required in C89.
58023         * lib/human.c: Include stdio.h, for sprintf.
58024         * lib/group-member.c: Include "xalloc.h".
58025         (xmalloc, xrealloc): Remove decls.
58026         (get_group_info): Remove casts no longer required in C89.
58027         * lib/getusershell.c (readname): Remove casts no longer required in
58028         C89.
58029         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58030         * lib/getline.c: Whitespace fix, from coreutils.
58031
58032 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58033
58034         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58035         Check for isascii.
58036
58037         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58038         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58039         Undo previous (whitespace-only) change.
58040
58041 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58042
58043         * lib/exclude.c: Include <ctype.h>
58044         (IN_CTYPE_DOMAIN): New macro.
58045         (is_space): New fn.
58046         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58047         and empty lines.
58048
58049         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58050         Undo previous (whitespace-only) change.
58051
58052 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58053
58054         * config/srclist-update: Change update back to the old behavior,
58055         leaving whitespace alone.  Use one 'sed' command rather than a
58056         pipeline.
58057         (fixlicense): Now a variable, not a function.
58058         (remove_trailing_blanks): Remove.
58059         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58060         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58061         Undo previous (whitespace-only) change.
58062
58063 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58064
58065         Merge from coreutils.
58066         * modules/euidaccess: Add lib_SOURCES, include for new
58067         file euidaccess.h
58068
58069 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58070
58071         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58072         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58073         Normalize leading white space and remove trailing white space.
58074
58075         Merge from coreutils
58076         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58077
58078         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58079         0.12.1.  These files are now being upgraded automatically by
58080         ../config/srclist-update.
58081
58082 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58083
58084         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58085         Normalize leading white space and remove trailing white space.
58086         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58087         notice, as per ../config/srclist-update.
58088
58089         Merge from coreutils.
58090         * lib/euidaccess.h: New file.
58091         * lib/euidaccess.c: Include it.
58092         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58093         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58094         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58095
58096 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58097
58098         * config/srclist-update: Add copyright notice.
58099         (remove_id_lines, remove_trailing_blanks): New constants.
58100         (fixfile): Use them to normalize spacing a bit in copied files.
58101         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58102         Normalize leading white space and remove trailing white space.
58103
58104         * config/texinfo.tex: Sync with texinfo.
58105
58106         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58107         strtoul.c from libc, to merge coreutils whitespace changes.
58108
58109         * config/srclist.txt: Get the following m4 files from gettext:
58110         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58111         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58112         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58113         wint_t.m4.
58114
58115 2003-08-12  Karl Berry  <karl@gnu.org>
58116
58117         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58118         been made.
58119
58120 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58121
58122         * modules/gnu-source, m4/gnu-source.m4:
58123         Remove; we're assuming Autoconf 2.54 or later now.
58124         Suggested by Bruno Haible.
58125         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58126
58127 2003-08-11  Bruno Haible  <bruno@clisp.org>
58128
58129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58130
58131 2003-08-11  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58134         (vasnprintf): Use it instead of wcslen.
58135
58136 2003-08-11  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58139         value to ensure that _Bool promotes to int. Use #define for _Bool when
58140         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58141
58142 2003-08-10  Karl Berry  <karl@gnu.org>
58143
58144         * lib/regex.h: update from libc (whitespace fix).
58145
58146 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58147
58148         Merge some files from coreutils.  These changes were
58149         originally made by Jim Meyering.
58150         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58151         many older Unixes require this.
58152         * lib/alloca.c (alloca): Remove cast to argument of free;
58153         no longer needed in C89.
58154         * lib/alloca_.h, regex.h: Fix white space to match
58155         what GNU indent does.
58156
58157 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58158
58159         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58160         apparently Emacs's Unicode mode got confused before my 2003-08-05
58161         checkin.
58162
58163 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58164
58165         * m4/extensions.m4: New file.
58166         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58167         Require gl_USE_SYSTEM_EXTENSIONS.
58168         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58169         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58170
58171 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58172
58173         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58174         * modules/extensions, modules/gnu-source: New files.
58175         * modules/timespec, modules/unlocked-io: Depend on extensions.
58176
58177 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58178
58179         * modules/restrict: New file.
58180         * MODULES.html.sh (func_all_modules): Add restrict.
58181         * modules/regex: Depend on restrict.
58182
58183 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58184
58185         * m4/restrict.m4: New file.
58186         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58187
58188 2003-08-07  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58191         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58192
58193 2003-08-07  Bruno Haible  <bruno@clisp.org>
58194
58195         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58196         makes the module 'getndelim2' compatible with the module 'getline'.
58197
58198 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58199
58200         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58201         byte with "\201" to avoid glitches when editing that source file
58202         with multi-gnome-terminal.
58203
58204 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58205
58206         * lib/bumpalloc.h: Remove.
58207
58208 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58209
58210         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58211         * modules/bumpalloc: Remove.
58212
58213 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58214
58215         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58216         GNU coding style.
58217
58218         Merge from coreutils.
58219         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58220         1. From glibc.
58221         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58222         from Karl Berry, implemented by Jim Meyering.
58223         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58224         from Dmitry V. Levin.
58225         Remove anachronistic cast of xrealloc.
58226         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58227         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58228         type. Otherwise, it wouldn't compile with at least /bin/cc on
58229         ymp-cray-unicos9.0.2.X.
58230         Combine two mostly-identical uses of alloca into one.
58231         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58232
58233 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58234
58235         [From Emacs.]
58236
58237         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58238         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58239         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58240         obsolete NLIST_NAME_UNION.
58241         [__GNU__]: Undef BSD and FSCALE.
58242         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58243
58244 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58245
58246         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58247         an enum type, so that it's guaranteed to promote to int.  See:
58248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58249
58250 2003-08-03  Karl Berry  <karl@gnu.org>
58251
58252         * config/depcomp: update from automake.
58253
58254 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58255
58256         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58257         (strerror): Don't assume that a printable int fits in 14 bytes.
58258
58259 2003-07-31  Bruno Haible  <bruno@clisp.org>
58260
58261         * modules/getpass-gnu: New file.
58262         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58263
58264 2003-07-31  Bruno Haible  <bruno@clisp.org>
58265
58266         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58267
58268 2003-07-24  Karl Berry  <karl@gnu.org>
58269
58270         * config/missing: update from automake.
58271
58272 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58273             Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58276         * lib/getline.c (getline, getdelim): Likewise.
58277         Remove _GNU_SOURCE define; now it's defined in config.h through
58278         m4/getline.m4.
58279
58280 2003-07-23  Karl Berry  <karl@gnu.org>
58281
58282         * config/config.sub: update from prep.
58283
58284 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58285
58286         * modules/xalloc (Depends-on): Add exitfail.
58287         * modules/xmemcoll: Likewise.
58288
58289 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58290
58291         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58292         over-parenthesization in macros.
58293
58294         Sync with coreutils.
58295
58296         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58297         required by C99.
58298
58299         Use `exit_failure' for xalloc and xmemcoll instead of their own
58300         private exit-failure variables.
58301         * lib/xalloc.h (xalloc_exit_failure): Remove.
58302         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58303         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58304         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58305         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58306         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58307
58308 2003-07-20  Jim Meyering  <jim@meyering.net>
58309
58310         * modules/closeout (Depends-on): Add exitfail.
58311         Suggestion from Bruno Haible.
58312
58313 2003-07-19  Karl Berry  <karl@gnu.org>
58314
58315         * config/config.sub: update from prep.
58316
58317 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58318
58319         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58320         Remove.
58321         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58322         to test that it can stand by itself.  Include "exitfail.h".
58323         Clients should set exit_failure instead.
58324         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58325
58326 2003-07-18  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/getndelim2: New file.
58329         * modules/getline: Share files with module getndelim2.
58330         * modules/getnline: Depend on getndelim2 instead of sharing files with
58331         it. Add getnline.c to lib_SOURCES.
58332         * MODULES.html.sh (func_all_modules): Add getndelim2.
58333
58334 2003-07-18  Bruno Haible  <bruno@clisp.org>
58335
58336         * m4/getndelim2.m4: New file.
58337         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58338         invoke gl_PREREQ_GETNDELIM2.
58339         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58340         gl_PREREQ_GETNDELIM2.
58341         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58342         gl_GETNDELIM2.
58343
58344 2003-07-18  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/getndelim2.h: New file.
58347         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58348         getndelim2.h.
58349         (getndelim2): Make non-static. Change return type to ssize_t.
58350         * lib/getline.h: Change argument names.
58351         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58352         * lib/getnline.c: Include getndelim2.h.
58353
58354 2003-07-18  Andreas Schwab  <schwab@suse.de>
58355
58356         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58357
58358 2003-07-17  Karl Berry  <karl@gnu.org>
58359
58360         * config/config.sub: update from prep.
58361
58362 2003-07-17  Bruno Haible  <bruno@clisp.org>
58363
58364         * modules/getnline: New file.
58365         * modules/getline: Add lib/getndelim2.c to source file list.
58366         * MODULES.html.sh (func_all_modules): Add getnline.
58367
58368 2003-07-17  Bruno Haible  <bruno@clisp.org>
58369
58370         * m4/getnline.m4: New file.
58371
58372 2003-07-17  Bruno Haible  <bruno@clisp.org>
58373
58374         * m4/Makefile.am.in: Remove file.
58375         * m4/Makefile.am: Remove file.
58376         * m4/Makefile.in: Remove file.
58377
58378 2003-07-17  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/getnline.h: New file.
58381         * lib/getnline.c: New file.
58382         * lib/getndelim2.c: New file, extracted from getline.c.
58383         (getndelim2): Renamed from getdelim2, with added nmax argument.
58384         * lib/getline.c: Include getndelim2.c.
58385         (getdelim2): Moved out to getndelim2.c.
58386         (getline, getdelim): Update.
58387
58388 2003-07-17  Bruno Haible  <bruno@clisp.org>
58389
58390         * lib/Makefile.am: Remove file.
58391         * lib/Makefile.in: Remove file.
58392
58393 2003-07-17  Bruno Haible  <bruno@clisp.org>
58394
58395         * configure.in: Remove file.
58396         * Makefile.in: Remove file.
58397
58398 2003-07-17  Bruno Haible  <bruno@clisp.org>
58399
58400         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58401
58402 2003-07-16  Karl Berry  <karl@gnu.org>
58403
58404         * config/srclist-update: was running fixlicense twice, which caused
58405                 texinfo.tex to be nullified for some reason.  Simplify,
58406                 $gplsrc is no longer needed as far as I can see?
58407
58408 2003-07-16  Jim Meyering  <jim@meyering.net>
58409
58410         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58411
58412 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58413
58414         * config/srclist.txt: Get the following files from gettext-runtime/intl
58415         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58416         ref-del.sin.  From Bruno Haible.
58417         * config/srclist-update (fixfile): Change grep pattern again, since the
58418         previous fix didn't work (there was another trailing $).  Use
58419         '[$]' to escape the $s.
58420
58421 2003-07-15  Karl Berry  <karl@gnu.org>
58422
58423         * lib/vasnprintf.c: update from gettext.
58424
58425 2003-07-15  Karl Berry  <karl@gnu.org>
58426
58427         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58428         gets expanded when surrounded by '$'.
58429
58430 2003-07-15  Jim Meyering  <jim@meyering.net>
58431
58432         * modules/save-cwd: Don't depend on error.  From Derek Price.
58433
58434 2003-07-15  Jim Meyering  <jim@meyering.net>
58435
58436         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58437
58438 2003-07-14  Simon Josefsson  <jas@extundo.com>
58439
58440         * modules/mempcpy: New file.
58441         * MODULES.html.sh (func_all_modules): Add mempcpy.
58442
58443 2003-07-14  Simon Josefsson  <jas@extundo.com>
58444
58445         * m4/mempcpy.m4: New file.
58446
58447 2003-07-14  Simon Josefsson  <jas@extundo.com>
58448
58449         * lib/mempcpy.h: New file.
58450         * lib/mempcpy.c: New file.
58451
58452 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58453
58454         * modules/getdate, modules/posixtm: Depend on mktime.
58455
58456 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58457
58458         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58459         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58460         unicodeio.c, unicodeio.h, unlocked-io.h:
58461         Switch from LGPL to GPL.
58462
58463 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58464
58465         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58466         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58467         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58468         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58469         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58470         updated automatically by ../config/srclist-update.  This changes
58471         their license from LPGL to GPL.
58472
58473 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58474
58475         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58476         assumed to refer to the root of the most recent stable gettext version.
58477         * config/srclistvars.sh: Add defaults for eggert.
58478         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58479         Match "This program" as well as "The program".  This is needed
58480         for gettext.
58481
58482 2003-07-14  Jim Meyering  <jim@meyering.net>
58483
58484         Don't emit diagnostics.  Let callers do that.
58485         * lib/save-cwd.c: Don't include "error.h".
58486         (save_cwd): Don't call error.  Ensure that errno is valid
58487         when returning nonzero.
58488
58489         * lib/save-cwd.h (restore_cwd): Update prototype.
58490         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58491         Simplify.  Don't call error upon failure.  Let callers do that.
58492         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58493         when auditing is enabled.  But don't bother updating the #if.
58494
58495 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58496
58497         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58498         it breaks C++ compilation.
58499         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58500
58501 2003-07-10  Simon Josefsson  <jas@extundo.com>
58502
58503         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58504
58505 2003-07-10  Jim Meyering  <jim@meyering.net>
58506
58507         * m4/clock_time.m4: Remove trailing blank.
58508         * m4/intmax_t.m4: Likewise.
58509
58510 2003-07-10  Jim Meyering  <jim@meyering.net>
58511
58512         * lib/vasnprintf.c: Remove trailing blanks.
58513         Make cpp indentation consistent.
58514
58515 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58516
58517         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58518         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58519         Switch from LGPL to GPL.
58520
58521 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58522
58523         * config/srclist.txt: Sort sublists.  Add
58524         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58525         that differ from gnulib for one reason or another; we'd like this list
58526         to be smaller but for now let's document what we have.
58527
58528 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58529
58530         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58531         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58532         and sweeter "eval x=$x".
58533         * config/srclist.txt: Get lib/argp* from glibc.
58534
58535 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58536
58537         * lib/mktime.c: Fix some boundary cases and remove need for floating
58538         point.
58539
58540         Issue a compile-time diagnostic if time_t is floating point, or if
58541         two's complement arithmetic is not in effect, or if arithmetic
58542         right shift does not propagate the sign.  These assumptions were
58543         all in the original code but they weren't checked.
58544
58545         (TIME_T_MIDPOINT, verify): New macros.
58546         (__isleap): Remove; it has integer overflow problems.
58547         (leapyear): New function, without those problems.
58548         (ydhms_tm_diff): Remove; splitting into two parts.
58549         (ydhms_diff): New function, containing the arithmetic part of
58550         the old ydhms_tm_diff function.  Issue a compile-time
58551         diagnostic if we are not using C99 integer division.
58552         Avoid casts when possible.
58553         (guess_time_tm): New function, containing the checking part of
58554         the old ydhms_tm_diff function.  Return the new value, rather than
58555         the difference between it and the old.  Accept a new argument T
58556         so that *T specifies the old value.  Check for overflow in the result.
58557
58558         (__mktime_internal): Use a time_t offset, not a long int offset.
58559         This undoes the 2003-06-04 change, which is no longer needed now
58560         that we have better overflow checking.
58561         (localtime_offset): Likewise.
58562
58563         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58564         and long are 64-bit but int is only 32-bit.
58565         (ydhms_diff): Use long int to store year1 and yday1.
58566         Issue a compile-time diagnostic if long int is not wide enough.
58567
58568         (__mktime_internal): Use long int to store adjusted year and yday.
58569         Use plain C rather than preprocessor commands, if that doesn't
58570         affect efficiency.
58571         Check for overflow (and try to repair) after each probe
58572         rather than checking only at the very end.  This avoids some bugs
58573         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58574         does not equal GMT offset at maximum time).
58575         Use integer to check for overflow rather than floating point; this
58576         is more portable to non-IEEE hosts, and is a tad faster.
58577         When we detect that we are oscillating between two values,
58578         don't check whether tm_isdst has the requested value, since
58579         we already know the answer.  When tm_isdst has the wrong value,
58580         use a different heuristic to find the right one, based on the
58581         extreme values actually observed in practice in tz2003a,
58582         rather than the (overly optimistic) "previous 3 calendar quarters".
58583
58584         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58585         "T const" to accommodate glibc style.
58586         (check_result): Use less-confusing report format.  "long" -> "long int.
58587         (main): Likewise.
58588         Don't loop if the iteration overflows time_t.
58589         Allow a negative step in the iteration.
58590
58591 2003-07-06  Karl Berry  <karl@gnu.org>
58592
58593         * config/depcomp: update from automake.
58594         * config/config.sub: update from prep.
58595
58596 2003-07-03  Karl Berry  <karl@gnu.org>
58597
58598         * config/config.guess: update from prep.
58599
58600 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58601
58602         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58603         xreadlink.c now includes it unconditionally.
58604
58605 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58606
58607         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58608         having it depend on HAVE_SYS_TYPES_H.
58609
58610 2003-07-01  Bruno Haible  <bruno@clisp.org>
58611
58612         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58613         <sys/types.h> should be sufficient.
58614         Reported by Paul Eggert.
58615
58616 2003-06-26  Karl Berry  <karl@gnu.org>
58617
58618         * config/depcomp: update from automake.
58619
58620 2003-06-26  Bruno Haible  <bruno@clisp.org>
58621
58622         * modules/human: Depend on module stdbool.
58623
58624 2003-06-25  Bruno Haible  <bruno@clisp.org>
58625
58626         * modules/readlink: New file.
58627         * modules/xreadlink: Depend on it.
58628         * MODULES.html.sh (func_all_modules): Add readlink.
58629
58630 2003-06-25  Bruno Haible  <bruno@clisp.org>
58631
58632         * m4/readlink.m4: New file.
58633
58634 2003-06-25  Bruno Haible  <bruno@clisp.org>
58635
58636         * lib/readlink.c: New file.
58637
58638 2003-06-22  Karl Berry  <karl@gnu.org>
58639
58640         * config/srclist.txt: update mkinstalldirs from automake.
58641         * config/mkinstalldirs: update.
58642
58643 2003-06-22  Bruno Haible  <bruno@clisp.org>
58644
58645         Portability to mingw32.
58646         * m4/ssize_t.m4: New file, from GNU gettext.
58647         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58648         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58649
58650 2003-06-22  Bruno Haible  <bruno@clisp.org>
58651
58652         * modules/safe-read: Add m4/ssize_t.m4.
58653         * modules/xreadlink: Add m4/ssize_t.m4.
58654
58655 2003-06-20  Bruno Haible  <bruno@clisp.org>
58656
58657         Assume C89, so PARAMS isn't needed.
58658         * lib/unicodeio.h (PARAMS): Remove.
58659         * lib/unicodeio.c: Don't use PARAMS.
58660
58661 2003-06-18  Karl Berry  <karl@gnu.org>
58662
58663         * config/config.{guess,sub}: update from prep.
58664
58665 2003-06-18  Jim Meyering  <jim@meyering.net>
58666
58667         Merge changes from coreutils.
58668         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58669         Remove explicit declarations of xmalloc and realloc.
58670         Include xalloc.h.
58671         (read_utmp): Remove anachronistic cast of xmalloc.
58672
58673 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58674
58675         Assume C89, so PARAMS isn't needed.
58676         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58677         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58678         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58679         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58680         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58681         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58682         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58683         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58684         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58685         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58686         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58687         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58688         no longer needed. Anyway, config.h should always be included before any
58689         other file.
58690
58691 2003-06-11  Simon Josefsson  <jas@extundo.com>
58692
58693         * modules/sysexits: New file.
58694         * MODULES.html.sh (func_all_modules): Add sysexits.
58695
58696 2003-06-11  Simon Josefsson  <jas@extundo.com>
58697
58698         * lib/sysexit_.h: New file.
58699
58700 2003-06-11  Derek Price  <derek@ximbiot.com>
58701
58702         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58703         necessary.
58704
58705 2003-06-11  Bruno Haible  <bruno@clisp.org>
58706
58707         * m4/sysexits.m4: New file.
58708
58709 2003-06-10  Simon Josefsson  <jas@extundo.com>
58710
58711         * lib/argp.h: New file, from glibc.
58712         * lib/argp-ba.c: New file, from glibc.
58713         * lib/argp-eexst.c: New file, from glibc.
58714         * lib/argp-fmtstream.c: New file, from glibc.
58715         * lib/argp-fmtstream.h: New file, from glibc.
58716         * lib/argp-fs-xinl.c: New file, from glibc.
58717         * lib/argp-help.c: New file, from glibc.
58718         * lib/argp-namefrob.h: New file, from glibc.
58719         * lib/argp-parse.c: New file, from glibc.
58720         * lib/argp-pv.c: New file, from glibc.
58721         * lib/argp-pvh.c: New file, from glibc.
58722         * lib/argp-xinl.c: New file, from glibc.
58723
58724 2003-06-10  Simon Josefsson  <jas@extundo.com>
58725
58726         * modules/strchrnul: New file.
58727
58728 2003-06-10  Simon Josefsson  <jas@extundo.com>
58729
58730         * modules/argp: New file.
58731
58732 2003-06-10  Simon Josefsson  <jas@extundo.com>
58733
58734         * m4/strchrnul.m4: New file.
58735
58736 2003-06-10  Simon Josefsson  <jas@extundo.com>
58737
58738         * lib/strchrnul.h: New file.
58739         * lib/strchrnul.c: New file.
58740
58741 2003-06-10  Bruno Haible  <bruno@clisp.org>
58742
58743         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58744
58745 2003-06-07  Karl Berry  <karl@gnu.org>
58746
58747         * config/config.{guess,sub}: update from prep.
58748
58749 2003-06-07  Jim Meyering  <jim@meyering.net>
58750
58751         * modules/strtod: Use $(...) notation, not @...@ for
58752         AC_REPLACE'd variables.
58753         * modules/localcharset: Likewise.
58754
58755 2003-06-07  Jim Meyering  <jim@meyering.net>
58756
58757         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58758         in place of my name in the copyright comment.
58759         Remove definition and uses of __P.
58760
58761         From coreutils.
58762         * lib/stat.c: Don't declare xmalloc explicitly.
58763         Instead, include "xalloc.h".
58764         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58765         xrealloc, and xcalloc return values.
58766         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58767         Improve comment.
58768         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58769
58770 2003-06-07  Bruno Haible  <bruno@clisp.org>
58771
58772         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58773         avoid AC_CONFIG_LINKS.
58774         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58775         fnmatch.h, to avoid AC_CONFIG_LINKS.
58776         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58777
58778 2003-06-07  Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58781         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58782         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58783         directory.
58784         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58785         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58786         directory.
58787
58788 2003-06-06  Jim Meyering  <jim@meyering.net>
58789
58790         Merge from coreutils.
58791         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58792         Consolidate declarations and initializations of *_base* locals.
58793
58794         Merge from coreutils.
58795         This avoids a core dump on systems without GNU putenv,
58796         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58797         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58798         (unsetenv): New static function, from GNU libc.
58799         (rpl_putenv): Use it.
58800
58801         * lib/modechange.c: Remove trailing blanks.
58802
58803         Merge from coreutils.
58804         * lib/fsusage.c: Remove declaration of statfs.
58805         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58806
58807         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58808
58809 2003-06-06  Jim Meyering  <jim@meyering.net>
58810
58811         * lib/stdbool_.h: Renamed from stdbool.h.in.
58812
58813 2003-06-06  Jim Meyering  <jim@meyering.net>
58814             Bruno Haible  <bruno@clisp.org>
58815
58816         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58817         Adjust Makefile.am snippet not to redirect directly to target.
58818         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58819
58820 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58821
58822         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58823         mismatch, look in future quarters as well as past.  This fixes a
58824         bug when processing fall-backwards gaps immediately after a long
58825         period of daylight-saving time.
58826
58827         * lib/mktime.c: Assume freestanding C89 or better.
58828         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58829         (__P): Remove; not used.
58830         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58831         (mktime, not_equal_tm, print_tm, check_result,
58832         main): Use prototypes.  Use const * where appropriate.
58833         (main): Fix typo in testing code that uncovered by above changes.
58834         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58835
58836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58837
58838         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58839         locale.h, localeconv.  This merges changes from coreutils.
58840
58841         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58842         It can be removed after the next Autoconf is released.
58843         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58844         needed.
58845
58846 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58847
58848         * lib/mktime.c: Fix Debian bug 177940
58849         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58850         (localtime_offset): Now long int, not time_t, because we want it
58851         to be guaranteed to be signed.  All uses changed.
58852         (__mktime_internal): If overflow would occur when adding offset,
58853         don't add it.
58854
58855         Merge 'human' changes from coreutils.  Rewrite to support
58856         locale-specific notations like thousands separators.
58857         * lib/human.c: Simplify authorship notice.
58858         Include human.h immediately after config.h.
58859         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58860         <limits.h>: Do not include, since human.h does.
58861         (SIZE_MAX, UINTMAX_MAX): New macros.
58862         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58863         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58864         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58865         (power_letter): Renamed from suffixes.
58866         (generate_suffix_backwards): Remove.
58867         (adjust_value): Now takes int style (because of human.h changes)
58868         and long double value (for greater precision on some platforms).
58869         (group_number): New function.
58870         (human_readable): Use it.  Use integer options, not enum.
58871         Put the options before the sizes in the arg list.
58872         Support all the new options.
58873         The old human_readable function has been removed;
58874         use inttostr.h instead.
58875         (human_readable, default_block_size, humblock):
58876         Use uintmax_t, not int, for block sizes.
58877         (human_readable_inexact, block_size_types): Remove.
58878         (block_size_opts): New constant.
58879         (human_options): Renamed from human_block_size, with new signature
58880         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58881         * lib/human.h: Add copyright and authorship notice.
58882         Include <limits.h> and <stdbool.h> unconditionally.
58883         (PARAMS): Remove.  All uses removed.
58884         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58885         (enum human_inexact_style): Remove tag; now a nameless enum.
58886         (human_floor, human_ceiling, human_round_to_even): Now have
58887         values 2, 0, 1 rather than -1, 1, 0.
58888         (human_group_digits, human_suppress_point_zero, human_autoscale,
58889         human_base_1024, human_SI, human_B): New constants.
58890         (human_readable_inexact, human_block_size): Remove.
58891         (human_readable): Size args are now uintmax_t, not int.
58892         (human_options): New decl.
58893
58894         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58895         unnecessary now that we assume C89 or better.  This change
58896         imported from coreutils.
58897
58898         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58899         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58900         in the 2003-05-30 sync from glibc.
58901
58902         .h files should stand alone, but we shouldn't include <sys/types.h>
58903         if we can get away with just <stddef.h>.
58904
58905         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58906         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58907         rather than <sys/types.h>, as we merely need size_t.
58908         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58909         to get size_t.
58910         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58911         Include <stdio.h>, to get FILE.
58912         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58913         memcasecmp.h has included <stddef.h> and all we need is size_t.
58914         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58915         our interface, instead of including <sys/types.h>
58916
58917 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58918
58919         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58920         now, as glibc mktime is buggy on non-glibc systems.
58921
58922 2003-06-03  Karl Berry  <karl@gnu.org>
58923
58924         * config/config.sub: update from prep.
58925
58926 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58927
58928         [from coreutils]
58929         Fix some minor time-related bugs with POSIX time arguments.
58930         Some valid time stamps were being rejected (notably -1, and
58931         time stamps before 1900 on 64-bit hosts).  And some invalid
58932         time stamps were being accepted, e.g. September 31.
58933
58934         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58935         that we can return (time_t) -1 successfully.
58936         * lib/posixtm.c: Likewise.
58937         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58938         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58939         (t): Remove static var.
58940         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58941         of static var.  All uses changed.
58942         (year): Do not reject years before 1900; they can occur with
58943         64-bit time_t.
58944         (posix_time_parse): Do not check for out-of-range components;
58945         that is now the caller's responsibility, since our checks were
58946         only approximations.
58947         (posixtime): Use mktime to check for out-of-range components,
58948         since it knows them exactly.
58949         If mktime returns (time_t) -1, check whether an error actually occurred
58950         by invoking localtime on -1.
58951         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58952         posixtime failures better.
58953         Improve the test data (in comments only).
58954
58955 2003-06-02  Karl Berry  <karl@gnu.org>
58956
58957         * config/mkinstalldirs (version): new variable.
58958         (--version): new option.
58959         (usage): improve message.
58960
58961 2003-05-30  Karl Berry  <karl@gnu.org>
58962
58963         * lib/mktime.c: update from libc.
58964
58965 2003-05-30  Bruno Haible  <bruno@clisp.org>
58966
58967         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58968         * config/config.rpath: Upgrade to gettext-0.12.1.
58969
58970 2003-05-30  Bruno Haible  <bruno@clisp.org>
58971
58972         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58973         * m4/nls.m4: New file, from gettext-0.12.1.
58974         * m4/po.m4: New file, from gettext-0.12.1.
58975         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58976
58977 2003-05-30  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58980         * lib/localcharset.h: Likewise.
58981         * lib/localcharset.c: Likewise.
58982
58983 2003-05-29  Karl Berry  <karl@gnu.org>
58984
58985         * config/config.rpath: update from gettext.
58986
58987 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58988
58989         Assume the headers required for C89 freestanding compilers.
58990         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58991         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58992         * m4/human.m4 (gl_HUMAN): Likewise.
58993         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58994         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58995         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58996         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58997         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58998         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58999
59000 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59001
59002         Assume the headers required for C89 freestanding compilers.
59003         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59004         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59005         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59006         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59007         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59008         define, since <limits.h> is guaranteed to do that.
59009         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59010         * lib/exclude.c: Include <stdbool.h> unconditionally.
59011         * lib/tempname.c: Include <stddef.h> unconditionally.
59012         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59013         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59014         <stddef.h> does that.
59015         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59016         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59017         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59018         needed.
59019         * lib/xstrtol.c: Likewise.
59020         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59021         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59022
59023         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59024         warnings on some platforms.
59025
59026         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59027         arbitrarily.
59028
59029 2003-05-26  Jim Meyering  <jim@meyering.net>
59030
59031         Merge in a change from coreutils:
59032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59033         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59034         that condition, rather than `-1' which is slightly misleading.
59035         Change the name of the cache variable to have the gl_ prefix.
59036         Prompted by a patch from Richard Dawe for DJGPP.
59037
59038 2003-05-24  Karl Berry  <karl@gnu.org>
59039
59040         * config/config.guess: update from prep.
59041
59042 2003-05-22  Karl Berry  <karl@gnu.org>
59043
59044         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59045
59046 2003-05-20  Karl Berry  <karl@gnu.org>
59047
59048         * config/config.guess: update from prep.
59049
59050 2003-05-18  Karl Berry  <karl@gnu.org>
59051
59052         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59053         might actually be set by the user.
59054
59055         * config/depcomp, install-sh, mdate-sh: update from automake.
59056
59057 2003-05-17  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59060         invalid expansion for AC_EGREP_CPP.
59061         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59062         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59063         Suggested by Akim Demaille <akim@epita.fr> in
59064         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59065
59066 2003-05-12  Jim Meyering  <jim@meyering.net>
59067
59068         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59069         the space-padded-by-default conversion specifiers, %e, %k, %l.
59070
59071 2003-05-12  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59074         the string is longer than 4 KB.
59075
59076 2003-05-11  Karl Berry  <karl@gnu.org>
59077
59078         * config/config.{guess,sub}: update from prep.
59079
59080 2003-05-09  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/error: Add m4/strerror_r.m4 to file list.
59083
59084 2003-05-03  Bruno Haible  <bruno@clisp.org>
59085
59086         Upgrade to Unicode-4.0.
59087         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59088         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59089         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59090         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59091         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59092         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59093         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59094         Change width of U+E0100..U+E01EF from 1 to 0.
59095
59096 2003-04-25  Jim Meyering  <jim@meyering.net>
59097
59098         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59099         of type size_t, not int.
59100
59101 2003-04-25  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/copy-file.c: Include <stddef.h>, for size_t.
59104
59105 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59106
59107         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59108         code which expansion is under static control.  Patch imported from
59109         Akim Demaille's patch to Bison; see
59110         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59111
59112 2003-04-14  Bruno Haible  <bruno@clisp.org>
59113
59114         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59115
59116 2003-04-11  Jim Meyering  <jim@meyering.net>
59117
59118         Merge changes from Coreutils.
59119
59120         2003-03-22  Jim Meyering  <jim@meyering.net>
59121
59122         * lib/strftime.c (widen): Cast alloca return value to proper type.
59123
59124         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59125
59126         From GNU libc.
59127         * lib/strftime.c (my_strftime): Handle very large width
59128         specifications for numeric values correctly.  Improve checks for
59129         overflow.
59130
59131         2003-01-19  Jim Meyering  <jim@meyering.net>
59132
59133         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59134         definitions.
59135         (nl_get_alt_digit) [! defined my_strftime]: Define.
59136         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59137         _nl_get_alt_digit and _nl_get_walt_digit.
59138
59139         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59140         libc. These changes have no effect outside of _LIBC.
59141
59142 2003-04-10  Bruno Haible  <bruno@clisp.org>
59143
59144         * modules/findprog: New file.
59145         * MODULES.html.sh (func_all_modules): Add it.
59146
59147 2003-04-10  Bruno Haible  <bruno@clisp.org>
59148
59149         * m4/findprog.m4: New file.
59150         * m4/eaccess.m4: New file.
59151
59152 2003-04-10  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/findprog.h: New file, from GNU gettext.
59155         * lib/findprog.c: New file, from GNU gettext.
59156
59157 2003-04-05  Jim Meyering  <jim@meyering.net>
59158
59159         Merge changes from Coreutils.
59160
59161         * lib/exclude.h (PARAMS): Remove definition and uses.
59162         * lib/exclude.c: Remove uses of `PARAMS'.
59163
59164         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59165         Add test-cases for DOS filenames. Declare program_name.
59166         (main): Set up program_name.  Patch by Rich Dawe.
59167
59168         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59169         error from mntctl.
59170         Use mntctl's return value to drive the entry-processing loop, since
59171         we can't rely on the value of the vmt_length member in the last
59172         entry.  On some systems doing so could result in exhausting
59173         virtual memory.  Based in part on a patch from Mike Jetzer.
59174
59175 2003-04-04  Bruno Haible  <bruno@clisp.org>
59176
59177         * modules/linebreak: New file.
59178         * MODULES.html.sh (func_all_modules): Add it.
59179
59180 2003-04-04  Bruno Haible  <bruno@clisp.org>
59181
59182         * m4/linebreak.m4: New file.
59183
59184 2003-04-04  Bruno Haible  <bruno@clisp.org>
59185
59186         * lib/linebreak.h: New file, from GNU gettext.
59187         * lib/linebreak.c: New file, from GNU gettext with slight
59188         modifications.
59189         * lib/lbrkprop.h: New file, from GNU gettext.
59190
59191 2003-04-03  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/utf8-ucs4: New file.
59194         * modules/utf16-ucs4: New file.
59195         * modules/ucs4-utf8: New file.
59196         * modules/ucs4-utf16: New file.
59197         * MODULES.html.sh (func_all_modules): Add them.
59198
59199 2003-04-03  Bruno Haible  <bruno@clisp.org>
59200
59201         * m4/utf-ucs4.m4: New file.
59202         * m4/ucs4-utf.m4: New file.
59203
59204 2003-04-03  Bruno Haible  <bruno@clisp.org>
59205
59206         * lib/utf8-ucs4.h: New file, from GNU gettext.
59207         * lib/utf16-ucs4.h: New file, from GNU gettext.
59208         * lib/ucs4-utf8.h: New file, from GNU gettext.
59209         * lib/ucs4-utf16.h: New file, from GNU gettext.
59210
59211 2003-04-02  Bruno Haible  <bruno@clisp.org>
59212
59213         * modules/binary-io: New file.
59214         * MODULES.html.sh (func_all_modules): Add it.
59215
59216 2003-04-02  Bruno Haible  <bruno@clisp.org>
59217
59218         * lib/binary-io.h: New file, from GNU gettext.
59219
59220 2003-04-01  Bruno Haible  <bruno@clisp.org>
59221
59222         * modules/pathname: New file.
59223         * MODULES.html.sh (func_all_modules): Add it.
59224
59225 2003-04-01  Bruno Haible  <bruno@clisp.org>
59226
59227         * lib/pathname.h: New file, from GNU gettext.
59228         * lib/concatpath.c: New file, from GNU gettext.
59229
59230 2003-03-30  Bruno Haible  <bruno@clisp.org>
59231
59232         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59233
59234 2003-03-30  Bruno Haible  <bruno@clisp.org>
59235
59236         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59237         function chown() doesn't exist.
59238
59239 2003-03-28  Bruno Haible  <bruno@clisp.org>
59240
59241         * modules/copy-file: New file.
59242         * MODULES.html.sh (func_all_modules): Add it.
59243
59244 2003-03-28  Bruno Haible  <bruno@clisp.org>
59245
59246         * m4/copy-file.m4: New file.
59247
59248 2003-03-28  Bruno Haible  <bruno@clisp.org>
59249
59250         * lib/copy-file.h: New file, from GNU gettext.
59251         * lib/copy-file.c: New file, from GNU gettext.
59252
59253 2003-03-18  Jim Meyering  <jim@meyering.net>
59254
59255         * lib/quote.c (quote_n): Fix typo in comment.
59256
59257 2003-03-18  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59260         checking.
59261         * m4/onceonly_2_57.m4: Likewise.
59262
59263 2003-03-17  Bruno Haible  <bruno@clisp.org>
59264
59265         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59266         (m4_quote): Remove macro.
59267         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59268
59269 2003-03-14  Jim Meyering  <jim@meyering.net>
59270
59271         Merge changes from Coreutils.
59272         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59273         to be const, in order to avoid warnings.
59274         (obstack_room): Likewise.
59275         (obstack_empty_p): Likewise.
59276
59277 2003-03-14  Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59280         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59281
59282 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59283
59284         Merge changes from Bison.
59285         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59286         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59287         when compiling Bison 1.875's `bitset bset = obstack_alloc
59288         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59289         * lib/hash.c: Include <stdbool.h> unconditionally.
59290
59291 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59292
59293         * m4/onceonly.m4 (m4_quote): New macro.
59294         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59295         Quote AC_FOREACH variable-expansions properly.
59296
59297 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59298
59299         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59300
59301 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59302
59303         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59304         Reported by Bruce Becker; see:
59305         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59306
59307 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59308             Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59311         Reported by John Hughes, see
59312         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59313
59314 2003-02-20  Bruno Haible  <bruno@clisp.org>
59315
59316         * MODULES.html.sh (func_all_modules): Add poll.
59317
59318 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59319
59320         * modules/poll: New file.
59321
59322 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59323
59324         * lib/poll_.h: New file.
59325         * lib/poll.c: New file.
59326
59327 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59328
59329         * m4/poll.m4: New file.
59330
59331 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59332
59333         * modules/mathl: New file.
59334
59335 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59336
59337         * lib/mathl.h: New file.
59338         * lib/acosl.c: New file.
59339         * lib/asinl.c: New file.
59340         * lib/atanl.c: New file.
59341         * lib/ceill.c: New file.
59342         * lib/cosl.c: New file.
59343         * lib/expl.c: New file.
59344         * lib/floorl.c: New file.
59345         * lib/frexpl.c: New file.
59346         * lib/ldexpl.c: New file.
59347         * lib/logl.c: New file.
59348         * lib/sincosl.c: New file.
59349         * lib/sinl.c: New file.
59350         * lib/sqrtl.c: New file.
59351         * lib/tanl.c: New file.
59352         * lib/trigl.c: New file.
59353         * lib/trigl.h: New file.
59354
59355 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59356
59357         * m4/mathl.m4: New file.
59358
59359 2003-02-18  Bruno Haible  <bruno@clisp.org>
59360
59361         * MODULES.html.sh (func_all_modules): Add mathl.
59362
59363 2003-02-17  Bruno Haible  <bruno@clisp.org>
59364
59365         * modules/mkdtemp: New module.
59366         * MODULES.html.sh (func_all_modules): Add it.
59367
59368 2003-02-17  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59371
59372 2003-02-17  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/mkdtemp.h: New file, from GNU gettext.
59375         * lib/mkdtemp.c: New file, from GNU gettext.
59376
59377 2003-02-02  Jim Meyering  <jim@meyering.net>
59378
59379         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59380         e.g. glibc-2.2.93.
59381
59382 2003-01-31  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59385         'rpl_rename'.
59386         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59387         'rpl_strnlen'.
59388         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59389         'rpl_strtod'.
59390         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59391         'rpl_utime'.
59392
59393 2003-01-31  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/rename.c: #undef rename before defining rpl_rename.
59396         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59397
59398 2003-01-30  Bruno Haible  <bruno@clisp.org>
59399
59400         * modules/vasnprintf, modules/vasprintf: New modules.
59401         * MODULES.html.sh (func_all_modules): Add them.
59402
59403 2003-01-30  Bruno Haible  <bruno@clisp.org>
59404
59405         * m4/signed.m4: New file, from GNU gettext.
59406         * m4/longdouble.m4: New file, from GNU gettext.
59407         * m4/wchar_t.m4: New file, from GNU gettext.
59408         * m4/wint_t.m4: New file, from GNU gettext.
59409         * m4/vasnprintf.m4: New file.
59410         * m4/vasprintf.m4: New file.
59411
59412 2003-01-30  Bruno Haible  <bruno@clisp.org>
59413
59414         * lib/printf-args.h: New file, from GNU gettext.
59415         * lib/printf-args.c: New file, from GNU gettext.
59416         * lib/printf-parse.h: New file, from GNU gettext.
59417         * lib/printf-parse.c: New file, from GNU gettext.
59418         * lib/vasnprintf.h: New file, from GNU gettext.
59419         * lib/vasnprintf.c: New file, from GNU gettext.
59420         * lib/asnprintf.c: New file, from GNU gettext.
59421         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59422         * lib/vasprintf.c: New file, from GNU gettext.
59423         * lib/asprintf.c: New file, from GNU gettext.
59424
59425 2003-01-29  Bruno Haible  <bruno@clisp.org>
59426
59427         * modules/stpncpy: New module.
59428         * MODULES.html.sh (func_all_modules): Add it.
59429
59430 2003-01-29  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/stpncpy.m4: New file.
59433
59434 2003-01-29  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59437         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59438
59439 2003-01-28  Bruno Haible  <bruno@clisp.org>
59440
59441         * modules/c-ctype: New module.
59442         * MODULES.html.sh (func_all_modules): Add it.
59443
59444 2003-01-28  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59447         Paul Eggert.
59448         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59449         Paul Eggert.
59450
59451 2003-01-27  Bruno Haible  <bruno@clisp.org>
59452
59453         * modules/xsetenv: New module.
59454         * MODULES.html.sh (func_all_modules): Add it.
59455
59456 2003-01-27  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/xsetenv.h: New file, from GNU gettext.
59459         * lib/xsetenv.c: New file, from GNU gettext.
59460
59461 2003-01-23  Jim Meyering  <jim@meyering.net>
59462
59463         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59464         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59465
59466 2003-01-23  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/minmax: New module.
59469         * MODULES.html.sh (func_all_modules): Add it.
59470
59471 2003-01-23  Bruno Haible  <bruno@clisp.org>
59472
59473         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59474         Eggert.
59475
59476 2003-01-22  Bruno Haible  <bruno@clisp.org>
59477
59478         * modules/exit: New module.
59479         * MODULES.html.sh (func_all_modules): Add it.
59480
59481 2003-01-22  Bruno Haible  <bruno@clisp.org>
59482
59483         * lib/exit.h: New file, from GNU gettext.
59484
59485 2003-01-19  Bruno Haible  <bruno@clisp.org>
59486
59487         * gnulib-tool: Recognize option --extract-maintainer.
59488         (func_get_maintainer): New function.
59489         * modules/*: Add Maintainer entry.
59490
59491 2003-01-16  Jim Meyering  <jim@meyering.net>
59492
59493         * m4/regex.m4: The `regex' struct is both input and output.
59494         Initialize it before each use.  Patch by Tim Waugh.
59495
59496 2003-01-16  Bruno Haible  <bruno@clisp.org>
59497
59498         * MODULES.html.sh: Add a table of contents. Add the module name as
59499         leftmost column. Add hyperlinks.
59500
59501 2003-01-15  Bruno Haible  <bruno@clisp.org>
59502
59503         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59504
59505 2003-01-15  Bruno Haible  <bruno@clisp.org>
59506
59507         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59508         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59509         suffix.
59510
59511 2003-01-15  Bruno Haible  <bruno@clisp.org>
59512
59513         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59514
59515 2003-01-15  Bruno Haible  <bruno@clisp.org>
59516
59517         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59518         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59519
59520 2003-01-14  Jim Meyering  <jim@meyering.net>
59521
59522         * lib/same.c (same_name): Tweak a comment.
59523
59524 2003-01-14  Bruno Haible  <bruno@clisp.org>
59525
59526         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59527         when a string comparison is sufficient.
59528
59529 2003-01-14  Bruno Haible  <bruno@clisp.org>
59530
59531         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59532         'unsigned int'.
59533
59534 2003-01-14  Bruno Haible  <bruno@clisp.org>
59535
59536         * lib/hash-pjw.c: Add comment about low quality of this function.
59537
59538 2003-01-13  Bruno Haible  <bruno@clisp.org>
59539
59540         * modules/stpcpy: Distribute lib/stpcpy.h.
59541         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59542
59543 2003-01-13  Bruno Haible  <bruno@clisp.org>
59544
59545         * modules/*: Add a description.
59546         * modules/strpbrk: Fix Makefile.am snippet.
59547         * modules/strtoimax: Fix dependencies.
59548         * modules/strtoumax: Likewise.
59549
59550 2003-01-13  Bruno Haible  <bruno@clisp.org>
59551
59552         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59553         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59554         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59555
59556 2003-01-13  Bruno Haible  <bruno@clisp.org>
59557
59558         * gnulib-tool (func_create_testdir): Store config/* files in the main
59559         directory.
59560         * config.rpath: Move to ...
59561         * config/config.rpath: ... here.
59562         * modules/gettext: Contains config/config.rpath, not config.rpath.
59563         * modules/iconv: Likewise.
59564
59565 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59566
59567         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59568         to avoid collisions with libcurses and libreadline.
59569
59570         * m4/getstr.m4: Remove.
59571         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59572
59573 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59574
59575         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59576         to avoid collisions with libcurses and libreadline.
59577
59578         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59579         * lib/getstr.h, getstr.c: Remove.
59580         * lib/getline.c: Include "getline.h", to check interface.
59581         Move body of old getstr.c here: this defines MIN_CHUNK and
59582         declares getdelim2, which is renamed from getstr.
59583         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59584
59585         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59586         All uses changed.
59587         * lib/linebuffer.h: Likewise.
59588         (readline): Remove backward-compatibility macro.
59589
59590 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59591
59592         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59593         to avoid collisions with libcurses and libreadline.
59594         * getstr: Remove.
59595         * MODULES.html.sh: Remove getstr.
59596         * modules/getline: Depend on unlocked-io, not getstr.
59597
59598 2003-01-12  Jim Meyering  <jim@meyering.net>
59599
59600         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59601
59602 2003-01-10  Bruno Haible  <bruno@clisp.org>
59603
59604         * modules/alloca: Change Makefile.am requirements. Simplify Include
59605         requirements. Add lib/alloca_.h to file list.
59606
59607 2003-01-10  Bruno Haible  <bruno@clisp.org>
59608
59609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59610
59611 2003-01-10  Bruno Haible  <bruno@clisp.org>
59612
59613         * lib/alloca_.h: New file.
59614         * lib/getdate.y: Unconditionally include alloca.h.
59615         * lib/makepath.c: Likewise.
59616         * lib/setenv.c: Likewise.
59617         * lib/userspec.c: Likewise.
59618
59619 2003-01-09  Karl Berry  <karl@gnu.org>
59620
59621         * MODULES.html.sh: include `dirname $0` in PATH, to find
59622         gnulib-tool.
59623
59624 2003-01-09  Bruno Haible  <bruno@clisp.org>
59625
59626         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59627         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59628
59629 2003-01-09  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59632
59633 2003-01-09  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/stdbool.h.in: New file.
59636
59637 2003-01-09  Bruno Haible  <bruno@clisp.org>
59638
59639         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59640         * MODULES.html.sh: Likewise.
59641
59642 2003-01-08  Jim Meyering  <jim@meyering.net>
59643
59644         * lib/full-write.c: Undefine and define-away `const' after inclusion
59645         of errno.h, not before.  Suggestion from Bruno Haible.
59646
59647 2003-01-08  Bruno Haible  <bruno@clisp.org>
59648
59649         * modules/full-read: Depend on full-write.
59650
59651 2003-01-08  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/safe-read.c: Include specification header first, to ensure its
59654         selfcontainedness.
59655         * lib/full-write.c: Likewise.
59656
59657 2003-01-07  Jim Meyering  <jim@meyering.net>
59658
59659         * lib/full-write.c: Rework so that it may serve to define full_read,
59660         too.
59661         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59662
59663 2003-01-07  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59666         <inttypes.h>.
59667         * lib/xstrtol.h: Likewise.
59668         * lib/xstrtoimax.c: Likewise.
59669         * lib/xstrtoumax.c: Likewise.
59670         * lib/human.h: Likewise.
59671
59672         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59673         on systems that have <inttypes.h> but not <stdint.h>.
59674
59675 2003-01-07  Bruno Haible  <bruno@clisp.org>
59676
59677         * MODULES.html.sh: Add copyright notice.
59678         (missed_files): Omit CVS directory entries.
59679         (func_module): Make it work with sed-3.02.
59680         * MODULES.txt: Remove file.
59681
59682 2003-01-06  Jim Meyering  <jim@meyering.net>
59683
59684         * lib/version-etc.c: Update year in translatable copyright string.
59685
59686 2003-01-03  Karl Berry  <karl@gnu.org>
59687
59688         * config/config.{guess,sub}: update from prep.
59689
59690 2003-01-02  Karl Berry  <karl@gnu.org>
59691
59692         * doc/COPYING.DOC: belatedly updated to 1.2.
59693
59694 2003-01-01  Karl Berry  <karl@gnu.org>
59695
59696         * gnulib-tool (func_verify_module): report module name $module in
59697         error message, not $1.
59698         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59699         be created, only if it doesn't exist.
59700         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59701
59702 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59703
59704         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59705
59706 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59707
59708         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59709         memcmp if strcoll doesn't work.
59710
59711 2002-12-31  Bruno Haible  <bruno@clisp.org>
59712
59713         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59714         nonempty.
59715
59716 2002-12-31  Bruno Haible  <bruno@clisp.org>
59717
59718         * lib/memcoll.c (STRCOLL): New macro.
59719         (memcoll): Use it.
59720
59721 2002-12-31  Bruno Haible  <bruno@clisp.org>
59722
59723         * lib/localcharset.h: New file.
59724         * lib/localcharset.c: Include it.
59725         * lib/unicodeio.c: Likewise.
59726
59727 2002-12-31  Bruno Haible  <bruno@clisp.org>
59728
59729         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59730         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59731
59732 2002-12-31  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/getline.h: Include <stddef.h>, for size_t.
59735
59736         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59737         * lib/unicodeio.c: Don't include <stddef.h>.
59738
59739 2002-12-31  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59742         HAVE_TM_ZONE.
59743
59744 2002-12-24  Karl Berry  <karl@gnu.org>
59745
59746         * config/config.guess: update from prep.
59747
59748 2002-12-24  Bruno Haible  <bruno@clisp.org>
59749
59750         General infrasructure.
59751         * m4/README: Rewritten.
59752         * m4/onceonly.m4: New file.
59753         * m4/onceonly_2_57.m4: New file.
59754
59755         Module atexit.
59756         * m4/atexit.m4: New file.
59757
59758         Module strtod.
59759         * m4/strtod.m4: New file.
59760
59761         Module strtol.
59762         * m4/strtol.m4: New file.
59763
59764         Module strtoul.
59765         * m4/strtoul.m4: New file.
59766
59767         Module memchr.
59768         * m4/memchr.m4: New file.
59769
59770         Module memcmp.
59771         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59772         (jm_FUNC_MEMCMP): Invoke it.
59773
59774         Module memcpy.
59775         * m4/memcpy.m4: New file.
59776
59777         Module memmove.
59778         * m4/memmove.m4: New file.
59779
59780         Module memset.
59781         * m4/memset.m4: New file.
59782
59783         Module strcspn.
59784         * m4/strcspn.m4: New file.
59785
59786         Module strpbrk.
59787         * m4/strpbrk.m4: New file.
59788
59789         Module strstr.
59790         * m4/strstr.m4: New file.
59791
59792         Module strerror.
59793         * m4/strerror.m4: New file.
59794
59795         Module mktime.
59796         * m4/mktime.m4: Renamed from jm-mktime.m4.
59797         (gl_PREREQ_MKTIME): New macro.
59798         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59799
59800         Module malloc.
59801         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59802         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59803         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59804
59805         Module realloc.
59806         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59807         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59808         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59809
59810         Module strftime.
59811         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59812         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59813         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59814         gl_TM_GMTOFF.
59815         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59816
59817         Module xalloc.
59818         * m4/xalloc.m4: New file.
59819
59820         Module alloca.
59821         * m4/alloca.m4: New file.
59822
59823         Module putenv.
59824         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59825         (jm_FUNC_PUTENV): Invoke it.
59826
59827         Module setenv.
59828         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59829         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59830         when invoked twice.
59831         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59832         gt_FUNC_SETENV.
59833
59834         Module memrchr.
59835         * m4/memrchr.m4: New file.
59836
59837         Module stpcpy.
59838         * m4/stpcpy.m4: New file.
59839
59840         Module strcase.
59841         * m4/strcase.m4: New file.
59842
59843         Module strdup.
59844         * m4/strdup.m4: New file.
59845
59846         Module strnlen.
59847         * m4/strnlen.m4: New file.
59848
59849         Module strndup.
59850         * m4/strndup.m4: New file.
59851
59852         Module xstrtod.
59853         * m4/xstrtod.m4: New file.
59854
59855         Module xstrtol.
59856         * m4/xstrtol.m4: New file.
59857
59858         Module getdate.
59859         * m4/getdate.m4: New file.
59860
59861         Module unlocked-io.
59862         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59863         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59864         * m4/jm-glibc-io.m4n: Remove file.
59865
59866         Module long-options.
59867         * m4/long-options.m4: New file.
59868
59869         Module md5.
59870         * m4/md5.m4: New file.
59871
59872         Module sha.
59873         * m4/sha.m4: New file.
59874
59875         Module getstr.
59876         * m4/getstr.m4: New file.
59877
59878         Module getline.
59879         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59880         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59881         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59882         simply getline. Infoke gl_PREREQ_GETLINE.
59883
59884         Module obstack.
59885         * m4/obstack.m4: New file.
59886
59887         Module hash.
59888         * m4/hash.m4: New file.
59889
59890         Module readtokens.
59891         * m4/readtokens.m4: New file.
59892
59893         Module strverscmp.
59894         * m4/strverscmp.m4: New file.
59895
59896         Module stdbool.
59897         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59898         OSF/1.
59899
59900         Module strtoll.
59901         * m4/strtoll.m4: New file.
59902
59903         Module strtoull.
59904         * m4/strtoull.m4: New file.
59905
59906         Module strtoimax.
59907         * m4/strtoimax.m4: New file.
59908
59909         Module strtoumax.
59910         * m4/strtoumax.m4: New file.
59911
59912         Module xstrtoimax.
59913         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59914         jm_AC_PREREQ_XSTRTOIMAX.
59915         Moved the strtol prerequisites to strtol.m4.
59916         Moved the strtoll prerequisites to strtoll.m4.
59917         Moved the strtoimax prerequisites to strtoimax.m4.
59918
59919         Module xstrtoumax.
59920         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59921         jm_AC_PREREQ_XSTRTOUMAX.
59922         Moved the strtoul prerequisites to strtoul.m4.
59923         Moved the strtoull prerequisites to strtoull.m4.
59924         Moved the strtoumax prerequisites to strtoumax.m4.
59925
59926         Module chown.
59927         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59928         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59929
59930         Module dup2.
59931         * m4/dup2.m4: New file.
59932
59933         Module ftruncate.
59934         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59935         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59936
59937         Module getgroups.
59938         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59939         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59940
59941         Module gettimeofday.
59942         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59943         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59944         gl_PREREQ_GETTIMEOFDAY.
59945
59946         Module mkdir.
59947         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59948         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59949
59950         Module mkstemp.
59951         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59952         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59953         jm_AC_TYPE_UINTMAX_T.
59954         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59955
59956         Module stat.
59957         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59958         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59959
59960         Module lstat.
59961         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59962         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59963
59964         Module timespec.
59965         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59966         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59967         * m4/st_mtim.m4: Indentation.
59968
59969         Module nanosleep.
59970         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59971         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59972         gl_PREREQ_NANOSLEEP.
59973
59974         Module regex.
59975         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59976         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59977         (gl_REGEX): New macro.
59978
59979         Module rename.
59980         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59981         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59982
59983         Module rmdir.
59984         * m4/rmdir.m4: New file.
59985
59986         Module utime.
59987         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59988         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59989         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59990
59991         Module dirname.
59992         * m4/dirname.m4: New file.
59993
59994         Module getopt.
59995         * m4/getopt.m4: New file.
59996
59997         Module unistd-safer.
59998         * m4/unistd-safer.m4: New file.
59999
60000         Module fnmatch.
60001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60002         declaration.
60003         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60004         (gl_FUNC_FNMATCH_POSIX): New macro.
60005         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60006         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60007         simply fnmatch.
60008
60009         Module exclude.
60010         * m4/exclude.m4: New file.
60011
60012         Module human.
60013         * m4/human.m4: New file.
60014
60015         Module acl.
60016         * m4/acl.m4: Nop.
60017
60018         Module backupfile.
60019         * m4/backupfile.m4: New file.
60020         * m4/d-ino.m4: Indentation.
60021
60022         Module fsusage.
60023         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60024         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60025         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60026
60027         Module dirfd.
60028         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60029         requirements.
60030
60031         Module euidaccess.
60032         * m4/euidaccess.m4: New file.
60033
60034         Module file-type.
60035         * m4/file-type.m4: New file.
60036
60037         Module fileblocks.
60038         * m4/fileblocks.m4: New file.
60039
60040         Module filemode.
60041         * m4/filemode.m4: New file.
60042
60043         Module isdir.
60044         * m4/isdir.m4: New file.
60045
60046         Module lchown.
60047         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60048         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60049
60050         Module makepath.
60051         * m4/makepath.m4: New file.
60052
60053         Module modechange.
60054         * m4/modechange.m4: New file.
60055
60056         Module mountlist.
60057         * m4/mountlist.m4: New file.
60058         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60059         Indentation.
60060
60061         Module path-concat.
60062         * m4/path-concat.m4: New file.
60063
60064         Module pathmax.
60065         * m4/pathmax.m4: New file.
60066
60067         Module same.
60068         * m4/same.m4: New file.
60069
60070         Module save-cwd.
60071         * m4/save-cwd.m4: New file.
60072
60073         Module savedir.
60074         * m4/savedir.m4: New file.
60075
60076         Module xgetcwd.
60077         * m4/xgetcwd.m4: New file.
60078         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60079
60080         Module xreadlink.
60081         * m4/xreadlink.m4: New file.
60082
60083         Module safe-read.
60084         * m4/safe-read.m4: New file.
60085
60086         Module safe-write.
60087         * m4/safe-write.m4: New file.
60088
60089         Module closeout.
60090         * m4/closeout.m4: New file.
60091
60092         Module stdio-safer.
60093         * m4/stdio-safer.m4: New file.
60094
60095         Module getpass.
60096         * m4/getpass.m4: New file.
60097
60098         Module getugroups.
60099         * m4/getugroups.m4: New file.
60100
60101         Module group-member.
60102         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60103         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60104
60105         Module idcache.
60106         * m4/idcache.m4: New file.
60107
60108         Module userspec.
60109         * m4/userspec.m4: New file.
60110
60111         Module gettime.
60112         * m4/clock_time.m4: New file.
60113         * m4/gettime.m4: New file.
60114
60115         Module settime.
60116         * m4/settime.m4: New file.
60117
60118         Module posixtm.
60119         * m4/posixtm.m4: New file.
60120
60121         Module gethostname.
60122         * m4/gethostname.m4: New file.
60123
60124         Module canon-host.
60125         * m4/canon-host.m4: New file.
60126
60127         Module gettext.
60128         * m4/codeset.m4: New file, from gettext-0.11.5.
60129         * m4/gettext.m4: New file, from gettext-0.11.5.
60130         * m4/glibc21.m4: New file, from gettext-0.11.5.
60131         * m4/iconv.m4: New file, from gettext-0.11.5.
60132         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60133         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60134         * m4/inttypes.m4: New file, from gettext-0.11.5.
60135         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60136         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60137         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60138         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60139         * m4/lib-link.m4: New file, from gettext-0.11.5.
60140         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60141         * m4/progtest.m4: New file, from gettext-0.11.5.
60142         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60143         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60144         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60145
60146         Module localcharset.
60147         * m4/localcharset.m4: New file.
60148
60149         Module hard-locale.
60150         * m4/hard-locale.m4: New file.
60151
60152         Module mbswidth.
60153         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60154         onceonly macros.
60155         * m4/mbrtowc.m4: Add comment.
60156
60157         Module memcasecmp.
60158         * m4/memcasecmp.m4: New file.
60159
60160         Module memcoll.
60161         * m4/memcoll.m4: New file.
60162
60163         Module unicodeio.
60164         * m4/unicodeio.m4: New file.
60165
60166         Module rpmatch.
60167         * m4/rpmatch.m4: New file.
60168
60169         Module yesno.
60170         * m4/yesno.m4: New file.
60171
60172         Module exitfail.
60173         * m4/exitfail.m4: New file.
60174
60175         Module c-stack.
60176         * m4/c-stack.m4 (gl_C_STACK): New macro.
60177         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60178
60179         Module error.
60180         * m4/error.m4 (gl_ERROR): New macro.
60181         (jm_PREREQ_ERROR): Use onceonly macros.
60182
60183         Module fatal.
60184         * m4/fatal.m4: New file.
60185
60186         Module getloadavg.
60187         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60188         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60189
60190         Module getpagesize.
60191         * m4/getpagesize.m4: New file.
60192
60193         Module getusershell.
60194         * m4/getusershell.m4: New file.
60195
60196         Module physmem.
60197         * m4/physmem.m4: New file.
60198
60199         Module posixver.
60200         * m4/posixver.m4: New file.
60201
60202         Module quotearg.
60203         * m4/quotearg.m4: New file.
60204
60205         Module quote.
60206         * m4/quote.m4: New file.
60207
60208         Module readutmp.
60209         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60210
60211         Module sig2str.
60212         * m4/sig2str.m4: New file.
60213
60214         Other.
60215         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60216         ulonglong.m4.
60217         * m4/intmax_t.m4: New file.
60218         * m4/d-type.m4: Indentation.
60219         * m4/jm-macros.m4: Update.
60220         * m4/prereq.m4 (jm_PREREQ): Update.
60221         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60222         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60223         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60224         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60225         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60226         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60227         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60228         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60229         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60230         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60231         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60232         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60233         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60234         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60235         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60236         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60237         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60238         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60239         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60240
60241 2002-12-24  Bruno Haible  <bruno@clisp.org>
60242
60243         * MODULES.txt: Update according to m4/ changes.
60244
60245         Module gettext.
60246         * config.rpath: New file, from gettext-0.11.5.
60247
60248         * modules/*: New module descriptions.
60249         * gnulib-tool: New file.
60250         * MODULES.html.sh: New file.
60251
60252 2002-12-21  Karl Berry  <karl@gnu.org>
60253
60254         * doc/fdl.texi: update to version 1.2.
60255
60256 2002-12-19  Karl Berry  <karl@gnu.org>
60257
60258         * config/config.guess: update from prep.
60259
60260 2002-12-18  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60263         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60264
60265 2002-12-17  Bruno Haible  <bruno@clisp.org>
60266
60267         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60268         stdlib.h, string.h.
60269
60270 2002-12-17  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/canon-host.c (strdup): Remove unused declaration.
60273
60274         * lib/fsusage.c: Include full_read.h.
60275         (get_fs_usage): Use full_read instead of safe_read.
60276
60277         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60278
60279 2002-12-12  Karl Berry  <karl@gnu.org>
60280
60281         * config/config.guess: update from prep.
60282
60283 2002-12-11  Bruno Haible  <bruno@clisp.org>
60284
60285         * m4/setenv.m4: New file, from gettext-0.11.5.
60286
60287 2002-12-11  Bruno Haible  <bruno@clisp.org>
60288
60289         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60290         not unsetenv().
60291         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60292         modifications:
60293
60294         2002-12-11  Bruno Haible  <bruno@clisp.org>
60295
60296                 * setenv.c (alloca): Fall back to malloc.
60297                 (freea): New macro.
60298                 (setenv): Use freea() to free memory allocated with alloca().
60299
60300         2002-11-13  Bruno Haible  <bruno@clisp.org>
60301
60302                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60303                 function declarations.
60304                 * unsetenv.c (unsetenv): Likewise.
60305
60306         2002-03-04  Bruno Haible  <bruno@clisp.org>
60307
60308                 Portability to AIX 4.3.3.
60309                 * unsetenv.c: New file, extracted from setenv.c.
60310                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60311
60312         2001-12-20  Bruno Haible  <bruno@clisp.org>
60313
60314                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60315                 use malloc instead. For SunOS 4.
60316
60317         2001-12-11  Bruno Haible  <bruno@clisp.org>
60318
60319                 * setenv.c: Declare alloca.
60320                 (compar_fn_t): New typedef.
60321                 (KNOWN_VALUE, STORE_VALUE): Use it.
60322
60323         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60324         setenv.h.
60325
60326 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60327
60328         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60329         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60330         Choose values that are less likely to collide with system fnmatch
60331         options.
60332         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60333         defined (e.g., a pure POSIX system).
60334         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60335         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60336
60337 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60338
60339         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60340         a pain in practice to deal with generated m4 files.  This change
60341         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60342
60343         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60344         and jm-glibc-io.m4, as they are no longer a special case.
60345         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60346         kludge and the auto-generation stuff.  Check only whether the
60347         functions are declared, not whether they exist, since older hosts
60348         that don't declare the functions can't use the optimization anyway.
60349
60350 2002-12-06  Jim Meyering  <jim@meyering.net>
60351
60352         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60353
60354         Merge in changes from libc's misc/error.c, in preparation
60355         for the merge of gnulib's changes back into libc.
60356
60357         * lib/error.c (_): Define only if not already defined.
60358         Move definition to follow all #include directives.
60359         Include unlocked-io.h only if !_LIBC.
60360         [_LIBC]: Include <libio/libioP.h>.
60361         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60362         (fflush): Tweak definition to use INTUSE.
60363         (putc): Define.
60364
60365 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60366
60367         * lib/alloca.c [defined emacs]: Include "lisp.h".
60368         (xalloc_die) [defined emacs]: New macro.
60369         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60370         [! defined emacs]: Include <xalloc.h>.
60371         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60372         (pointer): Typedef to POINTER_TYPE *.
60373         (malloc): Remove decl; we now always use xmalloc.
60374         (alloca): Use old-style definition, since Emacs needs this.
60375         Check for arithmetic overflow when computing combined size.
60376
60377 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60378
60379         Do not generate unlocked-io.h automatically, since it's easier to
60380         maintain it by hand.
60381
60382         * lib/unlocked-io.h: New file, from GNU diffutils,
60383         but with proper copyright notice and attribution.
60384         * lib/gen-uio: Remove.
60385         * lib/Makefile.am: Add copyright notice.
60386         (libfetish_a_SOURCES): Add unlocked-io.h.
60387         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60388         (DISTCLEANFILES, io_functions): Remove macros.
60389         (EXTRA_DIST): Remove gen_uio.
60390         (unlocked-io.h): Remove rule.
60391
60392 2002-12-04  Jim Meyering  <jim@meyering.net>
60393
60394         Reflect the fact that stat.c and lstat.c are no longer generated.
60395         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60396         (DISTCLEANFILES): Likewise.
60397         (EXTRA_DIST): Likewise.
60398         (all_local): Don't depend on stat.c or lstat.c.
60399         (stat.c, lstat.c): Remove rules.
60400         (EXTRA_DIST): Remove xstat.in.
60401
60402         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60403         * lib/stat.c: New file.  Contents mostly from xstat.in.
60404         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60405         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60406
60407         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60408         too.
60409         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60410
60411 2002-12-03  Jim Meyering  <jim@meyering.net>
60412
60413         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60414         but not semantics, to minimize the differences between these two files.
60415         (safe_read): Change comment to mention SAFE_READ_ERROR.
60416
60417         * lib/safe-read.c (IS_EINTR): Define.
60418         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60419
60420 2002-12-02  Jim Meyering  <jim@meyering.net>
60421
60422         * lib/safe-read.c (EINTR): Define.
60423         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60424         (INT_MAX): Provide fallback.
60425         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60426
60427         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60428
60429 2002-12-02  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60432         Define, taken from safe-read.c.
60433         (INT_MAX): Provide fallback.
60434         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60435         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60436
60437         * lib/safe-read.c (EINTR): Remove definition.
60438         (safe_read): Don't use EINTR if it is absent.
60439
60440 2002-12-01  Jim Meyering  <jim@meyering.net>
60441
60442         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60443         zero.
60444         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60445
60446 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60447
60448         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60449         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60450         with `if (! (value < limit)) abort ();', for readability.
60451
60452 2002-11-26  Karl Berry  <karl@gnu.org>
60453
60454         * lib/strdup.c: copy from libc again, with jim's ok.
60455         * lib/.cppi-disable: re-add strdup.c
60456
60457 2002-11-25  Karl Berry  <karl@gnu.org>
60458
60459         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60460         instead of "strtol.c".
60461
60462 2002-11-25  Karl Berry  <karl@gnu.org>
60463
60464         * config/install-sh: update from automake for variable quoting, $0 in
60465         error msgs, etc.
60466
60467         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60468         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60469         entry.
60470
60471 2002-11-25  Jim Meyering  <jim@meyering.net>
60472
60473         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60474
60475 2002-11-24  Karl Berry  <karl@gnu.org>
60476
60477         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60478         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60479
60480 2002-11-24  Jim Meyering  <jim@meyering.net>
60481
60482         Update from coreutils:
60483
60484         * lib/mktime.c: Merge in changes from libc.
60485
60486         Avoid a link-time failure on some Linux systems.
60487         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60488         (otherwise).
60489         (__mon_yday): Declare with the STATIC attribute.
60490         (__mktime_internal): Likewise.
60491         Based on a report from Greg Schafer.
60492
60493 2002-11-23  Jim Meyering  <jim@meyering.net>
60494
60495         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60496         Use `unsigned', not `int', as type of index.
60497
60498         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60499
60500         * lib/fsusage.c: Remove unneeded parentheses around operands of
60501         `defined'.
60502
60503 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60504
60505         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60506         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60507         so that we can be included first.
60508         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60509         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60510         No need to include stddef.h or sys/types.h any more.
60511         Surround local include files with "", not "<>".
60512         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60513         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60514         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60515         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60516         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60517         (ISPRINT): Remove; no longer needed now that we assume C89.
60518
60519         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60520         Preserve errno.
60521
60522         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60523         quotearg_char): Use SIZE_MAX rather than
60524         (size_t) -1 when we are talking about "infinity".
60525
60526         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60527
60528 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60529
60530         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60531         hint that one should use `if (! x) abort ();' rather than `assert
60532         (x);', and anyway it's one less thing to worry about configuring.
60533         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60534         hash_rehash, hash_insert): Use abort rather than assert.
60535
60536 2002-11-22  Bruno Haible  <bruno@clisp.org>
60537
60538         * lib/safe-read.h: Assume C89. Add comments.
60539         (safe_read): Change return type to size_t.
60540         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60541         byte counts > SSIZE_MAX correctly.
60542         * lib/safe-write.h: New file.
60543         * lib/safe-write.c: New file.
60544         * lib/full-read.h: New file.
60545         * lib/full-read.c: New file.
60546         * lib/full-write.h: Assume C89. Add comments.
60547         * lib/full-write.c: Include safe-write.h.
60548         (full_write): Rewritten to use safe_write.
60549         Suggested by Jim Meyering and Paul Eggert.
60550
60551 2002-11-21  Jim Meyering  <jim@meyering.net>
60552
60553         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60554
60555         Merge in changes from the coreutils.
60556
60557         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60558         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60559         <stdint.h>.
60560         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60561         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60562         int.  Work more efficiently if X is the same width as uintmax_t.
60563         Do not compare X to -1, to avoid bogus compiler warning.
60564         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60565         Don't assume that f_frsize and f_bsize are the same type.
60566
60567         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60568         warning on FreeBSD.
60569
60570         * lib/makepath.c (make_path): Restore umask *before* creating the final
60571         component.
60572         (make_path): Minor reformatting.
60573
60574         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60575         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60576         HAVE_MALLOC/HAVE_REALLOC.
60577
60578         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60579         dummy ones.  At least on GNU/Linux systems, `auto' means something
60580         else.
60581         From Michael Stone.
60582
60583 2002-11-21  Bruno Haible  <bruno@clisp.org>
60584
60585         Remove case insensitive option matching.
60586         * lib/argmatch.h (argcasematch): Remove declaration.
60587         (ARGCASEMATCH): Remove macro.
60588         (__xargmatch_internal): Remove case_sensitive argument.
60589         (XARGMATCH): Update.
60590         (XARGCASEMATCH): Remove macro.
60591         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60592         case_sensitive argument.
60593         (argcasematch): Remove function.
60594         (__xargmatch_internal): Remove case_sensitive argument.
60595         (main): Use XARGMATCH instead of XARGCASEMATCH.
60596
60597         * lib/xmalloc.c: Change compile-time error message. Add comment about
60598         required autoconf version.
60599
60600 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60601
60602         Merge argmatch cleanups from Bison.  Assume C89.
60603
60604         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60605         Include stdlib.h, for EXIT_FAILURE.
60606         Always include <string.h>, since we assume C89.
60607         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60608         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60609         Include <stddef.h> instead, since it's all we need for size_t.
60610         (PARAMS): Remove.  All uses removed.
60611         (ARRAY_CARDINALITY): Do not bother to #undef.
60612         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60613         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60614         Remove unnecessary parentheses.
60615         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60616         Insert necessary parentheses.
60617         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60618         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60619
60620 2002-11-19  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60623         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60624
60625         * lib/mbswidth.h (PARAMS): Remove macro.
60626         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60627         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60628
60629         * lib/gcd.h (PARAMS): Remove macro.
60630         (gcd): Use ANSI C function declarations.
60631         * lib/gcd.c (gcd): Likewise.
60632
60633 2002-11-15  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/strcspn.c: Include <stddef.h>.
60636         (strcspn): Use ANSI C function declaration. Change return type to
60637         size_t. Use NULL.
60638         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60639         (strpbrk): Use NULL.
60640         * lib/strpbrk.h (PARAMS): Remove macro.
60641         (strpbrk): Use ANSI C function declaration.
60642         * lib/strstr.c: Don't include <sys/types.h>.
60643         * lib/strstr.h (PARAMS): Remove macro.
60644         (strstr): Use ANSI C function declarations.
60645
60646 2002-11-14  Karl Berry  <karl@gnu.org>
60647
60648         * config/mkinstalldirs: `do' on separate line, instead of
60649         `for var; do'.
60650
60651 2002-11-06  Bruno Haible  <bruno@clisp.org>
60652
60653         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60654         * lib/gcd.c (gcd): Likewise.
60655
60656 2002-11-05  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/gcd.h: New file, from gettext-0.11.5.
60659         * lib/gcd.c: New file, from gettext-0.11.5.
60660
60661 2002-11-05  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60664         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60665         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60666         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60667
60668         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60669         <libintl.h>.
60670         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60671         <libintl.h>.
60672
60673         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60674         * lib/human.c: Include gettext.h instead of <libintl.h>.
60675         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60676         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60677         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60678         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60679         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60680         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60681         (textdomain): Remove definition.
60682         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60683
60684         * lib/long-options.c: Remove include of <libintl.h> and definition of
60685         _.
60686         * lib/same.c: Remove include of <libintl.h> and definition of _.
60687
60688 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60689
60690         * lib/config.charset: A few additions for Solaris.
60691
60692 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60693
60694         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60695         * lib/localcharset.c (locale_charset): Declare as extern "C".
60696
60697 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60698
60699         * lib/config.charset: msdos in uk_UA uses CP1125.
60700
60701 2002-11-04  Bruno Haible  <bruno@clisp.org>
60702
60703         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60704         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60705         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60706         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60707         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60708
60709 2002-11-04  Bruno Haible  <bruno@clisp.org>
60710
60711         * lib/localcharset.c (locale_charset): Don't return an empty string.
60712
60713 2002-11-04  Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60716         aliases.
60717
60718 2002-11-04  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/config.charset: Update for newest glibc. Add canonical names
60721         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60722
60723 2002-11-04  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/config.charset: Add support for NetBSD.
60726
60727 2002-11-04  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60730
60731 2002-11-01  Bruno Haible  <bruno@clisp.org>
60732
60733         * configure.in: Add AC_CONFIG_AUX_DIR call.
60734         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60735         test/Makefile.
60736         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60737
60738 2002-09-28  Karl Berry  <karl@gnu.org>
60739
60740         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60741         installed automake until the next release, since changes have been
60742         made.
60743
60744 2002-09-25  Karl Berry  <karl@gnu.org>
60745
60746         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60747         * lib/getopt*: copy from libc/posix.
60748         * lib/gettext.h: copy from gettext.
60749         * lib/.cppi-disable: add strdup.c, gettext.h.
60750
60751 2002-09-25  Karl Berry  <karl@gnu.org>
60752
60753         * config/srclist.txt: enable gettext.h check.
60754         * config/config.{guess,sub}: update from prep.
60755         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60756                 from automake 1.6.3.
60757         See srclist*.
60758
60759 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60760
60761         * regex.c (PATFETCH): Remove the translating fetch.
60762         (PATFETCH_RAW): Rename to PATFETCH.
60763         (set_image_of_range): New fun.
60764         (SET_RANGE_TABLE_WORK_AREA): Use it.
60765         (regex_compile): Don't translate the pattern chars so eagerly.
60766         Only do it when inserting an `exactn' bytecode or when handling
60767         a char-range.
60768         (mutually_exclusive_p): Avoid empty statement.
60769
60770 2002-07-06  Jim Meyering  <meyering@lucent.com>
60771
60772         * m4/README: Don't mention Makefile.am.in.
60773         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60774
60775 2002-07-01  Jim Meyering  <meyering@lucent.com>
60776
60777         * lib/c-stack.c: Include sys/time.h.
60778         From Volker Borchert.
60779
60780 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60781
60782         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60783
60784 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60785
60786         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60787         New macro.  Use it uniformly instead of
60788         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60789         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60790         reported by Vin Shelton.
60791
60792 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60793
60794         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60795         Do not assume SA_SIGINFO behavior.
60796         Bug reported by Jim Meyering on NetBSD 1.5.2.
60797
60798 2002-06-22  Jim Meyering  <meyering@lucent.com>
60799
60800         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60801         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60802
60803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60804         now that configure.ac uses AC_GNU_SOURCE.
60805         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60806         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60807
60808         Update to latest tools.  Suggestions from Paul Eggert.
60809         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60810         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60811         * m4/fnmatch.m4: Likewise.
60812         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60813         to AC_HEADER_STDBOOL
60814
60815 2002-06-22  Jim Meyering  <meyering@lucent.com>
60816
60817         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60818         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60819
60820 2002-06-22  Jim Meyering  <meyering@lucent.com>
60821
60822         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60823
60824         * lib/exitfail.c, exitfail.h: Likewise.
60825         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60826
60827         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60828         of fnmatch.h.
60829         (EXTRA_DIST): Add fnmatch_loop.c.
60830         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60831
60832         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60833         * lib/fnmatch.c: Update from diffutils-2.8.2.
60834         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60835         * lib/fnmatch.h: Remove file.
60836
60837 2002-06-21  Jim Meyering  <meyering@lucent.com>
60838
60839         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60840         * m4/mbrtowc.m4: Likewise.
60841
60842         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60843         * m4/mbswidth.m4: Reflect name change:
60844         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60845         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60846
60847         * m4/lib-link.m4: Update from gettext-0.11.2.
60848         * m4/gettext.m4: Likewise.
60849
60850         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60851         From Alfred M. Szmidt.
60852
60853 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60854
60855         * lib/file-type.h: Report an error if neither S_ISREG nor
60856         S_IFREG is defined, instead of using a test specific to glibc
60857         2.2.  This should be safe, since POSIX requires S_ISREG and
60858         Unix Version 7 had S_IFREG.  We don't need to check for
60859         <sys/types.h> since we don't use any symbols that it defines.
60860
60861 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60862
60863         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60864         $@-t, so that each temporary file name is unique and valid in the first
60865         8 characters, for operation under DOS.
60866
60867 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60868
60869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60870
60871 2002-06-15  Jim Meyering  <meyering@lucent.com>
60872
60873         Work even with DJGPP 2.03, which lacks support for symlinks.
60874         From Richard Dawe.
60875         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60876         is defined.
60877         * lib/lchown.c (S_ISLNK): Likewise.
60878
60879 2002-06-15  Jim Meyering  <meyering@lucent.com>
60880
60881         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60882         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60883         have been included before this file.
60884
60885 2002-06-14  Jim Meyering  <meyering@lucent.com>
60886
60887         * lib/file-type.h: Use the version from diffutils-2.8.2.
60888         * lib/file-type.c: Likewise.
60889
60890 2002-06-07  Jim Meyering  <meyering@lucent.com>
60891
60892         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60893         They're needed at least for NetBSD 1.5.2.
60894         ($statxfs_includes): Include those same headers.
60895         ($statxfs_includes): Include sys/vfs.h if available.
60896         ($statxfs_includes): Likewise for sys/statvfs.h.
60897         Check for the following members in both structs statfs and statvfs:
60898         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60899
60900 2002-06-01  Jim Meyering  <meyering@lucent.com>
60901
60902         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60903         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60904
60905 2002-05-28  Jim Meyering  <meyering@lucent.com>
60906
60907         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60908         Reported by Volker Borchert.
60909
60910 2002-05-27  Jim Meyering  <meyering@lucent.com>
60911
60912         Fix a problem seen only on nonconforming systems whereby ls.c's
60913         use of localtime, and then of gettimeofday would cause trouble:
60914         the localtime call used to initialize rpl_gettimeofday's save
60915         mechanism would clobber ls's current local time information so
60916         that in any long listing the first file would always be listed
60917         with date 1970-01-01.  Analysis by Volker Borchert.
60918
60919         * lib/gettimeofday.c (localtime): Undefine.
60920         (rpl_localtime): New function.
60921
60922 2002-05-27  Jim Meyering  <meyering@lucent.com>
60923
60924         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60925         localtime.
60926
60927         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60928         use the replacement function; it wouldn't resolve at link time.
60929         Reported by Volker Borchert.
60930
60931 2002-05-22  Jim Meyering  <meyering@lucent.com>
60932
60933         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60934         file-type.h.
60935         * lib/file-type.h: New file.
60936         * lib/file-type.c (file_type): New file/function.  Extracted from
60937         diffutils.
60938
60939 2002-04-30  Jim Meyering  <meyering@lucent.com>
60940
60941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60942
60943 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60944
60945         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60946
60947 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60948
60949         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60950         Do not check for alloca.h (no longer used) or stdbool.h (was never
60951         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60952
60953 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60954
60955         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60956
60957 2002-04-29  Jim Meyering  <meyering@lucent.com>
60958
60959         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60960         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60961         Use AC_FUNC_STRNLEN here instead.
60962
60963         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60964         With autoconf-2.53a, it's part of AC_PROG_CC.
60965
60966 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60967
60968         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60970
60971 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60972
60973         * lib/sig2str.h, lib/sig2str.c: New files.
60974         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60975
60976 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60977
60978         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60979         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60980         of 127, since 64 is the largest conceivable number for ancient
60981         nonstandard hosts.
60982         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60983
60984 2002-04-28  Jim Meyering  <meyering@lucent.com>
60985
60986         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60987
60988 2002-04-24  Jim Meyering  <meyering@lucent.com>
60989
60990         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60991         (jm_PREREQ): Use it.
60992
60993         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60994         mach/mach.h fcntl.h.
60995         Check for this function: setlocale.
60996
60997 2002-04-24  Jim Meyering  <meyering@lucent.com>
60998
60999         * lib/gettext.h: New file, from Gettext.
61000         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61001         (libfetish_a_SOURCES): Add gettext.h.
61002
61003 2002-04-16  Jim Meyering  <meyering@lucent.com>
61004
61005         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61006         ut_pid, ut_id, ut_exit.
61007
61008 2002-04-16  Jim Meyering  <meyering@lucent.com>
61009
61010         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61011         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61012         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61013
61014 2002-04-12  Jim Meyering  <meyering@lucent.com>
61015
61016         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61017         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61018         existence of the getmntinfo function.  Needed for Darwin 5.3.
61019
61020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61021         This is necessary at least on Darwin 5.3.
61022
61023         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61024         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61025         strnlen.o in the library, and that makes some versions of ranlib
61026         object.
61027
61028 2002-04-12  Jim Meyering  <meyering@lucent.com>
61029
61030         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61031
61032 2002-04-09  Jim Meyering  <meyering@lucent.com>
61033
61034         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61035         to be more precise.  Rather than saying we're checking whether the
61036         function `works', say what we're testing.
61037         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61038         Reported by Bruno Haible.
61039
61040 2002-03-10  Jim Meyering  <meyering@lucent.com>
61041
61042         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61043         Suggestion from Santiago Vila.
61044
61045 2002-03-08  Jim Meyering  <meyering@lucent.com>
61046
61047         * lib/rename.c: Mention that this wrapper is needed also on
61048         mips-dec-ultrix4.4 systems.
61049
61050 2002-03-02  Jim Meyering  <meyering@lucent.com>
61051
61052         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61053         not HAVE_CLOCK_SETTIME.
61054
61055 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61056
61057         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61058         Check for clock_settime.
61059
61060 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61061
61062         * lib/nanosleep.h: Rename to....
61063         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61064
61065         * lib/gettime.c: New file.
61066         * lib/settime.c: New file.
61067         * lib/stime.c: Remove.
61068
61069         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61070         timespec.h.  Remove nanosleep.h.
61071
61072 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61073
61074         * m4/acl.m4: New file.
61075         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61076         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61077
61078 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61079
61080         * lib/acl.c, lib/acl.h: New files.
61081         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61082
61083 2002-02-24  Jim Meyering  <meyering@lucent.com>
61084
61085         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61086         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61087         cause trouble.  Reported by Nelson Beebe.
61088
61089 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61090
61091         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61092         compilers that don't know that xalloc_die never returns.
61093
61094 2002-02-20  Jim Meyering  <meyering@lucent.com>
61095
61096         * lib/getdate.c: Regenerate using bison-1.33.
61097
61098 2002-02-17  Jim Meyering  <meyering@lucent.com>
61099
61100         * config/config.guess (main): Don't use `head -1'; it's no longer
61101         portable. Use `sed 1q' instead.
61102
61103 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61104
61105         * m4/codeset.m4: Upgrade to gettext-0.11.
61106         * m4/gettext.m4: Upgrade to gettext-0.11.
61107         * m4/glibc21.m4: Upgrade to gettext-0.11.
61108         * m4/iconv.m4: Upgrade to gettext-0.11.
61109         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61110         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61111         * m4/lib-ld.m4: New file, from gettext-0.11.
61112         * m4/lib-link.m4: New file, from gettext-0.11.
61113         * m4/lib-prefix.m4: New file, from gettext-0.11.
61114         * m4/progtest.m4: Upgrade to gettext-0.11.
61115
61116 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61117
61118         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61119         (jm_PREREQ): Use it.
61120
61121 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61122
61123         * lib/posixver.c, lib/posixver.h: New files.
61124         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61125
61126 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61127             Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61130         (fwrite_success_callback): New declaration.
61131         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61132         print_unicode_char. Call failure callback instead of error.
61133         (fwrite_success_callback): New function.
61134         (exit_failure_callback): New function.
61135         (fallback_failure_callback): New function.
61136         (print_unicode_char): Call unicode_to_mb.
61137
61138 2002-01-26  Jim Meyering  <meyering@lucent.com>
61139
61140         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61141         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61142
61143 2002-01-26  Jim Meyering  <meyering@lucent.com>
61144
61145         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61146
61147 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61148
61149         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61150
61151 2002-01-22  Jim Meyering  <meyering@lucent.com>
61152
61153         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61154         Otherwise, some versions of automake would omit the rule that makes
61155         Makefile from Makefile.in.
61156
61157 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61158
61159         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61160         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61161         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61162         (memcoll): Set errno to zero if there is no error.
61163
61164         * lib/quotearg.c (quotearg_buffer_restyled):
61165         Fix bug with quoting buffers containing NUL when backslashing escapes.
61166         This bug was exposed by the other changes in this patch.
61167         (quotearg_n_options): New arg ARGSIZE.
61168         All callers changed.
61169         (quoting_options_from_style): New function.
61170         (quotearg_n_style): Use it.
61171         (quotearg_n_style_mem): New function.
61172
61173         * lib/quotearg.h (quotearg_n_style_mem): New function.
61174
61175 2002-01-19  Jim Meyering  <meyering@lucent.com>
61176
61177         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61178         Remove useless quotes: DF_PROG="df".
61179         * m4/strnlen.m4: New file.
61180
61181 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61182
61183         * lib/backupfile.c (ISDIGIT): Comment fix.
61184         * lib/getdate.y (ISDIGIT): Likewise.
61185         * lib/posixtm.c (ISDIGIT, year): Likewise.
61186         * lib/strverscmp.c (ISDIGIT): Likewise.
61187         * lib/userspec.c (ISDIGIT): Likewise.
61188
61189 2002-01-16  Jim Meyering  <meyering@lucent.com>
61190
61191         * lib/getdate.y: Add three semicolons, each just before a closing
61192         brace. Bison (as of version 1.31) no longer papers over that mistake.
61193
61194 2002-01-05  Jim Meyering  <meyering@lucent.com>
61195
61196         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61197
61198 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61199
61200         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61201         not silently exit merely because the output buffer happens to
61202         have nothing pending.
61203
61204 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61205
61206         See the big note in ../ChangeLog.
61207         * lib/human.c (suffixes): Prefer K to k for 1024.
61208         (generate_suffix_backwards): New function.
61209         (human_readable_inexact): Use it.
61210         * lib/xstrtol.c (__xstrtol): If there is no number but there
61211         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61212         Accept 'K' as well as 'k'.
61213
61214 2001-12-15  Jim Meyering  <meyering@lucent.com>
61215
61216         * lib/regex.h (__restrict_arr): Update from libc.
61217
61218         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61219         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61220         (STREQ): Define.
61221
61222 2001-12-14  Jim Meyering  <meyering@lucent.com>
61223
61224         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61225         Suggestion from Bruno Haible.
61226
61227 2001-12-10  Jim Meyering  <meyering@lucent.com>
61228
61229         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61230         xrealloc, Instead, include "xalloc.h".
61231         (initbuffer): Don't cast xmalloc return value to char*.
61232         (readline): Reword comment.
61233         Don't cast xrealloc return value to char*
61234         Return NULL, not 0.
61235
61236 2001-12-09  Jim Meyering  <meyering@lucent.com>
61237
61238         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61239         about `signed and unsigned type in conditional expression'.
61240         * lib/posixtm.c (posix_time_parse): Likewise.
61241
61242         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61243
61244         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61245         to avoid a pedantic warning.
61246
61247         * lib/getstr.c: Don't include assert.h.
61248         (getstr): Remove warning-evoking assertions.
61249         Return -1 if offset parameter is out of bounds.
61250         Change the type of a local from int to size_t.
61251
61252         * lib/strftime.c (my_strftime_localtime_r): Include this function
61253         definition in the `#if ! HAVE_TM_GMTOFF' block.
61254
61255         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61256         Include xalloc.h instead.
61257
61258 2001-12-02  Jim Meyering  <meyering@lucent.com>
61259
61260         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61261         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61262         included.
61263
61264         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61265         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61266
61267 2001-11-30  Akim Demaille  <akim@epita.fr>
61268
61269         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61270         before being defined.
61271
61272 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61273
61274         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61275         First arg is int, not unsigned.
61276         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61277         (SIZE_MAX, UINT_MAX): New macros.
61278         (quotearg_n_options): Abort if N is negative.
61279         Avoid overflow check on hosts where size_t is 64 bits and int
61280         is 32 bits, as overflow is impossible there.
61281         Fix off-by-one typo that caused unnecessary reallocation.
61282
61283 2001-11-27  Jim Meyering  <meyering@lucent.com>
61284
61285         * lib/tempname.c: Merge with version from libc.
61286         * lib/regex.c: Likewise.
61287
61288         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61289         systems for which STDC_HEADERS is 0, it was not included, resulting in
61290         a warning about an integer-to-pointer conversion problem with getenv.
61291         Reported by Volker Borchert.
61292
61293 2001-11-26  Jim Meyering  <meyering@lucent.com>
61294
61295         * lib/gtod.h: Remove file.
61296         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61297         * lib/gettimeofday.c: Don't include gtod.h.
61298         (GTOD_init): Remove function.
61299         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61300         Suggestion from Volker Borchert.
61301
61302 2001-11-23  Jim Meyering  <meyering@lucent.com>
61303
61304         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61305         it.
61306         * lib/hash.c (struct hash_table): Define it here instead.
61307
61308 2001-11-22  Jim Meyering  <meyering@lucent.com>
61309
61310         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61311
61312 2001-11-20  Jim Meyering  <meyering@lucent.com>
61313
61314         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61315         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61316
61317 2001-11-19  Jim Meyering  <meyering@lucent.com>
61318
61319         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61320         directory.  Use "conftestXXXXXX" as the template.
61321         Suggestion from Paul Eggert.
61322
61323         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61324         immediately, so the test doesn't mistakenly hit the max-open-files
61325         limit.
61326
61327 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61328
61329         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61330         (TEMPORARIES): New macro.
61331         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61332         removes an artificial limitation (e.g. HP-UX 10.20, where
61333         TMP_MAX is 17576).
61334
61335 2001-11-18  Jim Meyering  <meyering@lucent.com>
61336
61337         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61338
61339 2001-11-18  Jim Meyering  <meyering@lucent.com>
61340
61341         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61342         on SunOS 4.
61343
61344         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61345         files will be created before anything else.
61346
61347 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61348
61349         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61350         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61351
61352 2001-11-17  Jim Meyering  <meyering@lucent.com>
61353
61354         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61355         Prompted by a report from Bob Proulx.
61356
61357         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61358         Instead, require UTILS_FUNC_MKSTEMP.
61359
61360 2001-11-17  Jim Meyering  <meyering@lucent.com>
61361
61362         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61363         Now, that's done as part of AC_FUNC_STRTOD.
61364
61365 2001-11-17  Jim Meyering  <meyering@lucent.com>
61366
61367         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61368         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61369         rather than group writable.  Patch by Juan F. Codagnone.
61370
61371         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61372         xrealloc, Instead, include "xalloc.h".
61373
61374         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61375         Remove explicit declarations of xmalloc, xrealloc,
61376         and xstrdup.  Instead, include "xalloc.h".
61377
61378         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61379         unlocked-io.h.
61380         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61381         Likewise.
61382         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61383
61384         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61385         Reported by Padraig Brady.
61386
61387         * lib/mkstemp.c: #undef mkstemp.
61388         Include config.h.
61389         (rpl_mkstemp): Rename from mkstemp.
61390         Protoize.
61391
61392 2001-11-16  Jim Meyering  <meyering@lucent.com>
61393
61394         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61395         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61396         determine the amount of total physical memory, use pstat_getstatic.
61397         HPUX-11 doesn't define _SC_PHYS_PAGES.
61398         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61399         If sysconf couldn't be used to determine the amount of available
61400         physical memory, use both pstat_getstatic and pstat_getdynamic.
61401         Based on a patch from Bob Proulx.
61402
61403 2001-11-10  Jim Meyering  <meyering@lucent.com>
61404
61405         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61406         (jm_PREREQ): Use it.
61407
61408 2001-11-09  Jim Meyering  <meyering@lucent.com>
61409
61410         * m4/jm-macros.m4: Require autoconf-2.52f.
61411         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61412         Use these AC_-prefixed names, not the AM_-prefixed ones.
61413
61414         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61415
61416 2001-11-05  Jim Meyering  <meyering@lucent.com>
61417
61418         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61419
61420 2001-11-04  Jim Meyering  <meyering@lucent.com>
61421
61422         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61423         $DEFS.
61424
61425 2001-11-03  Jim Meyering  <meyering@lucent.com>
61426
61427         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61428         of AC_DEFUN.
61429
61430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61431         know the name of the variable in the macro definition.
61432
61433 2001-11-03  Jim Meyering  <meyering@lucent.com>
61434
61435         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61436         in argmatch_to_argument call.
61437
61438         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61439         argument.
61440
61441         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61442         e.g., a fault due to an attempt to free a NULL pointer.
61443
61444 2001-11-01  Jim Meyering  <meyering@lucent.com>
61445
61446         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61447         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61448
61449 2001-11-01  Jim Meyering  <meyering@lucent.com>
61450
61451         * lib/dirfd.c, lib/dirfd.h: New files.
61452         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61453
61454         * lib/hash.c (hash_print) [TESTING]: Clean up.
61455
61456 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61457
61458         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61459         to avoid a warning if -Wall.
61460
61461 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61462
61463         * README: New file
61464         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61465         (per RMS's instructions, this is now the canonical source)
61466         * lgpl/, gpl/: New directories.
61467
61468 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61469
61470         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61471
61472 2001-10-21  Jim Meyering  <meyering@lucent.com>
61473
61474         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61475         this code would end up calling gettext even in packages built
61476         with --disable-nls.
61477         * lib/getopt.c (_): Likewise.
61478         * lib/regex.c (_): Likewise.
61479
61480 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61481
61482         * m4/error.m4 (jm_PREREQ_ERROR):
61483         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61484         AC_FUNC_STRERROR_R does that.
61485         Check for strerror declaration.
61486
61487         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61488         are supposed to have them these days.
61489         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61490         Merge changes from latest Autoconf CVS.
61491         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61492         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61493         POSIX decided to standardize on the int flavor of strerror_r.
61494
61495 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61496
61497         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61498         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61499         Use strerror_r that is only a macro, even if it is not a function.
61500         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61501         (private_strerror): Use prototypes, not old-style function definition.
61502         (print_errno_message): New function.
61503         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61504         char*-flavored one.
61505         (error_tail, error, error_at_line): Use it.
61506
61507 2001-10-11  Jim Meyering  <meyering@lucent.com>
61508
61509         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61510         and quote_n (1, ... to avoid clobbering a buffer.
61511
61512 2001-10-05  Jim Meyering  <meyering@lucent.com>
61513
61514         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61515         hash-pjw.h.
61516         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61517         * lib/hash-pjw.h: New file.
61518
61519 2001-09-30  Jim Meyering  <meyering@lucent.com>
61520
61521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61522         `struct fsstat' has the `f_fstypename' member.
61523         Use that to define FS_TYPE, which is now used to make
61524         the getfsstat link test tighter.
61525
61526 2001-09-30  Jim Meyering  <meyering@lucent.com>
61527
61528         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61529         Include <sys/ucred.h>, for Apple Darwin.
61530         Include sys/mount.h and sys/fs_types.h only if available.
61531         (FS_TYPE): Define.
61532         (read_filesystem_list): Use FS_TYPE.
61533
61534 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61535
61536         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61537         a boolean context.
61538
61539 2001-09-29  Jim Meyering  <meyering@lucent.com>
61540
61541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61542         [one-argument getmntent function]): Include stdio.h before mntent.h.
61543         SunOS 4.1.x needs it for the declaration of `FILE'.
61544         Patch by Volker Borchert.
61545
61546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61547         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61548         sys/fs_types.h, and make the link-test for getfsstat guard #include
61549         directives with appropriate #if HAVE_*_H tests so that we can
61550         detect getfsstat on Apple Darwin1.3.7 systems.
61551         Reported by Nelson Beebe.
61552         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61553
61554 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61555
61556         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61557         #defines strtoimax.  Also treat the other strto* functions
61558         like strtoimax.
61559
61560         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61561         Check for strtoul and strtoumax,
61562         as those declarations are made even in the signed case.
61563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61564         Likewise, for strtol and strtoimax.
61565
61566 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61567
61568         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61569         #defines strtoimax.  Also treat the other strto* functions
61570         like strtoimax.
61571
61572         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61573         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61574         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61575
61576 2001-09-26  Jim Meyering  <meyering@lucent.com>
61577
61578         Most macros in unlocked-io.h had the wrong number of arguments.
61579         * lib/gen-uio: New script.
61580         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61581         * lib/unlocked-io.hin: Remove file.
61582         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61583         rather than trying to embed it here.
61584         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61585         Reported by Padraig Brady.
61586
61587 2001-09-25  Volker Borchert  <bt@teknon.de>
61588
61589         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61590         `result'.
61591
61592 2001-09-24  Jim Meyering  <meyering@lucent.com>
61593
61594         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61595
61596 2001-09-23  Jim Meyering  <meyering@lucent.com>
61597
61598         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61599         instead of the mere test for existence of mntent.h.  The latter
61600         would get a false-positive on AIX 3.4 systems.
61601         In the outer getmntent if-block, don't die if neither of the getmntent
61602         tests succeeds.  Instead, just fall through and continue with the
61603         remaining tests.
61604
61605 2001-09-23  Jim Meyering  <meyering@lucent.com>
61606
61607         * lib/mountlist.c: Remove useless parentheses in #if directives.
61608         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61609         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61610
61611 2001-09-22  Jim Meyering  <meyering@lucent.com>
61612
61613         * m4/gettext.m4: New file.  From gettext.
61614         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61615         * m4/progtest.m4: Likewise
61616         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61617         * m4/glibc21.m4: Likewise.
61618
61619         * m4/libintl.m4: Remove.  No longer used.
61620
61621 2001-09-22  Jim Meyering  <meyering@lucent.com>
61622
61623         * lib/localcharset.c: Update from latest gettext.
61624         * lib/config.charset: Likewise.
61625
61626 2001-09-20  Jim Meyering  <meyering@lucent.com>
61627
61628         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61629         strtoimax.
61630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61631         strtoumax.
61632
61633 2001-09-20  Jim Meyering  <meyering@lucent.com>
61634
61635         * lib/xstrtol.c (strtoimax): Guard declaration with
61636         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61637         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61638         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61639         (strtoumax): Likewise, for completeness (it wasn't necessary).
61640
61641 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61642
61643         * lib/strtoimax.c (HAVE_LONG_LONG):
61644         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61645         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61646         to work around bug in IBM C compiler.
61647
61648 2001-09-17  Jim Meyering  <meyering@lucent.com>
61649
61650         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61651         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61652         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61653         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61654         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61655         whenever the right hand side need not be expanded by the shell.
61656
61657 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61658
61659         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61660         library.  It's not correct, as some older glibcs are buggy.
61661         fnmatch wasn't fixed until glibc 2.2.
61662
61663         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61664         special shell magic here.
61665
61666 2001-09-16  Jim Meyering  <meyering@lucent.com>
61667
61668         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61669         * m4/jm-macros.m4: Require it.
61670
61671 2001-09-16  Jim Meyering  <meyering@lucent.com>
61672
61673         * lib/mkdir.c: New file.
61674
61675 2001-09-15  Jim Meyering  <meyering@lucent.com>
61676
61677         * m4/jm-macros.m4: Check for help2man.
61678
61679 2001-09-11  Jim Meyering  <meyering@lucent.com>
61680
61681         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61682         The body, by Paul Eggert, was moved here from configure.in.
61683         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61684
61685 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61686
61687         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61688         (jm_PREREQ): Use it.
61689
61690 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61691
61692         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61693         Use ssize_t, not int, to store result of readlink.
61694         Check for ssize_t overflow as well as size_t overflow,
61695         as POSIX says the result of readlink is implementation-defined
61696         when ssize_t overflows.
61697         Remove unnecessary cast to char*.
61698         Use free+malloc instead of realloc, as the storage doesn't need
61699         to be preserved and it's clearer and can be more efficient that way.
61700         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61701         * lib/xreadlink.h (xreadlink): Update prototype.
61702
61703 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61704
61705         * lib/xgetcwd.c: Revert some of the previous change; intead,
61706         fix the HAVE_GETCWD_NULL code to behave more like the
61707         !HAVE_GETCWD_NULL code used to.
61708
61709         Include "xalloc.h".
61710         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61711         invoke xalloc_die.
61712
61713 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61714
61715         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61716         sys/param.h, as pathmax.h includes them.
61717
61718 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61719
61720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61721         (jm_PREREQ_XGETCWD): New macro.
61722
61723         * m4/getcwd.m4: New file.
61724
61725 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61726
61727         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61728         like the HAVE_GETCWD_NULL code.
61729         Include pathmax.h if not HAVE_GETCWD.
61730         Do not include xalloc.h.
61731         (INITIAL_BUFFER_SIZE): New symbol.
61732         Do not use xmalloc / xrealloc, since the caller is responsible for
61733         handling errors.  Preserve errno around `free' during failure.
61734         Do not overrun buffer when using getwd.
61735
61736 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61737
61738         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61739         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61740         getcwd (NULL, 0).
61741
61742 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61743
61744         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61745         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61746         spotted by Jim Meyering.
61747
61748 2001-09-03  Jim Meyering  <meyering@lucent.com>
61749
61750         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61751         failure.
61752
61753 2001-09-02  Jim Meyering  <meyering@lucent.com>
61754
61755         * lib/error.c: Update from GNU libc.
61756
61757 2001-09-01  Jim Meyering  <meyering@lucent.com>
61758
61759         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61760         Used by df.
61761
61762 2001-09-01  Jim Meyering  <meyering@lucent.com>
61763
61764         * lib/xreadlink.c: New file.
61765         * lib/xreadlink.h: New file.
61766         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61767         xreadlink.h.
61768
61769         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61770         doesn't conflict with sparc Solaris 7's definition in
61771         /usr/include/sys/int_types.h.
61772
61773         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61774         files.
61775         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61776         and strncasecmp as r-values.  Unixware didn't have declarations.
61777
61778 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61779
61780         * lib/xstrtol.h: Add copyright notice.
61781         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61782         LONGINT_INVALID_SUFFIX_CHAR.
61783
61784 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61785
61786         * lib/xstrtol.c (strtoimax): New decl.
61787
61788 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61789
61790         * lib/xgetcwd.c: Don't include pathmax.h.
61791         Include stdlib.h and unistd.h if available.
61792         Include xalloc.h.
61793         (xmalloc, xstrdup, free): Remove decls.
61794         (xgetcwd): Don't assume sizes fit in unsigned.
61795         Check for overflow when computing sizes.
61796         Simplify reallocation code.
61797
61798 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61799
61800         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61801         a directory's st_size can have an arbitrary value, so the old
61802         usage could waste an arbitrary amount of memory.  All uses
61803         changed.
61804         * lib/savedir.h: Update prototype.
61805
61806 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61807
61808         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61809
61810         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61811         old strtoimax.c.
61812
61813         Also, make the following further changes to make this file's
61814         configuration more similar to that of strtol.c:
61815         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61816         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61817         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61818         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61819         changed to signed values.
61820
61821         And make the following changes as well:
61822         Fix copyright notice, as 1999 was missing.
61823         (verify): New macro.
61824         (strtoimax): Check sizes at compile-time, not run-time.
61825         Prefer strtol to strtoll if both work.
61826         (main): Remove; it was not that useful and was a pain to maintain.
61827
61828         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61829
61830 2001-08-31  Jim Meyering  <meyering@lucent.com>
61831
61832         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61833         Use an initial, malloc'd, buffer of length 128 rather than
61834         a statically allocated one of length 1024.
61835
61836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61837
61838         Simplify code, partly by assuming autoconf 2.52 semantics.
61839
61840         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61841
61842         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61843         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61844         All uses removed.
61845         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61846         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61847         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61848         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61849         jm_AC_HEADER_INTTYPES_H.
61850         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61851
61852         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61853
61854         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61855         Quote first arg of AC_DEFUN.
61856         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61857         since they are needed to parse the include file even if we need
61858         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61859         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61860         but with opposite signedness.
61861
61862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61863
61864         Merge 'exclude' changes from tar 1.13.22.
61865         This fixes one or two unlikely storage allocation overflow bugs,
61866         but doesn't change user-visible behavior otherwise.
61867
61868 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61869
61870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61871         (jm_PREREQ_EXCLUDE): New macro.
61872
61873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61874
61875         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61876         tm to be declared.
61877
61878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61879
61880         * lib/hash.c: Remove '2001' from copyright notice.
61881
61882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61883
61884         * lib/full-write.h: New file.
61885         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61886         * lib/full-write.c: Correct credits, as cccp.c no longer
61887         exists and anyway it was so heavily changed from the old cccp
61888         code as to be unrecognizable.  Include full-write.h.
61889         (full_write) Return size_t, with short writes meaning failure.
61890         All callers changed.  This fixes a bug with large buffers
61891         on 64-bit hosts.
61892         * lib/utime.c: Include full-write.h.
61893
61894 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61895
61896         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61897         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61898         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61899         Include if available.
61900         (<xalloc.h>): Include
61901         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61902         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61903         collide with FNM macros.
61904         (struct patopts): New struct.
61905         (struct exclude): Use it, as exclude patterns now come with options.
61906         (new_exclude): Support above changes.
61907         (new_exclude, add_exclude_file):
61908         Initial size must now be a power of two to simplify overflow checking.
61909         (free_exclude, fnmatch_no_wildcards): New function.
61910         (excluded_filename): No longer requires options arg, as the options
61911         are determined by add_exclude.  Now returns bool, not int.
61912         (excluded_filename, add_exclude):
61913         Add support for the fancy new exclusion options.
61914         (add_exclude, add_exclude_file): Now takes int options arg.
61915         Check for arithmetic overflow when computing sizes.
61916         (add_exclude_file): xrealloc might modify errno, so don't
61917         realloc until after errno might be used.
61918
61919         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61920         New macros.
61921         (free_exclude): New decl.
61922         (add_exclude, add_exclude_file): Now takes int options arg.
61923         (excluded_filename): No longer requires options arg, as the options
61924         are determined by add_exclude.  Now returns bool, not int.
61925
61926 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61927
61928         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61929
61930 2001-08-27  Jim Meyering  <meyering@lucent.com>
61931
61932         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61933
61934         * lib/version-etc.c (N_): Remove definition.
61935         Revert most of last change.
61936         Instead, simply don't mark the `Copyright...' string for translation.
61937         Based on advice from Paul Eggert.
61938
61939         * lib/strtoxmax.c: Tweak comment.
61940
61941 2001-08-26  Jim Meyering  <meyering@lucent.com>
61942
61943         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61944
61945         * m4/xstrtoimax.m4: New file.
61946         * m4/xstrtoumax.m4: Add comments explaining why we
61947         AC_REPLACE_FUNCS(strtol).
61948
61949 2001-08-26  Jim Meyering  <meyering@lucent.com>
61950
61951         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61952         of copyright with `%s' so translators don't get an untranslated
61953         message in 2002.
61954         (COPYRIGHT_YEAR): Define.
61955         (version_etc): Use fprintf rather than fputs.
61956         Suggestion from Ulrich Drepper.
61957
61958         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61959
61960         * lib/strtoll.c: New file, from GNU libc.
61961         * lib/xstrtoimax.c: New file.
61962
61963         * lib/xstrtol.h: Add xstrtoimax.
61964         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61965         * lib/strtoimax.c: New file.  Likewise, but first define
61966         STRTOUXMAX_SIGNED.
61967
61968         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61969         ...
61970         * lib/strtoxmax.c: ... then renamed to this.
61971
61972 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61973
61974         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61975         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61976         (jm_AC_TYPE_INTMAX_T): New macro.
61977         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61978
61979         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61980
61981         * m4/longlong.m4: Renamed from ulonglong.m4.
61982         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61983         * m4/uintmax_t.m4: Removed.
61984
61985 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61986
61987         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61988         Port to Solaris 8, where 'sed' requires a space after the 'r'
61989         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61990         Redirect output to $tmp just once.
61991
61992 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61993
61994         * lib/addext.c (<errno.h>): Include.
61995         (errno): Declare if not defined.
61996         (addext): Work correctly when pathconf returns -1 and leaves
61997         errno alone because there is no limit.  Also, work even if
61998         pathconf returns a value greater than SIZE_MAX.
61999
62000 2001-08-12  Jim Meyering  <meyering@lucent.com>
62001
62002         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62003         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62004         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62005         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62006         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62007         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62008         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62009         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62010         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62011         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62012         utime.m4, utimes.m4, xstrtoumax.m4:
62013         Quote the first argument in each use of AC_DEFUN.
62014
62015 2001-08-12  Jim Meyering  <meyering@lucent.com>
62016
62017         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62018         Simply `return getcwd (NULL, 0);'.
62019         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62020         Use 1300 as initial value for length, not PATH_MAX.
62021
62022         * lib/pathmax.h: Clean up cpp syntax.
62023
62024 2001-08-12  Jim Meyering  <meyering@lucent.com>
62025
62026         * lib/gettimeofday.c: New file.
62027         * lib/gtod.h: New file.
62028         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62029
62030 2001-08-05  Jim Meyering  <meyering@lucent.com>
62031
62032         * m4/jm-macros.m4: Require autoconf-2.52.
62033
62034 2001-08-04  Jim Meyering  <meyering@lucent.com>
62035
62036         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62037         stmt, to get in sync with glibc.
62038
62039 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62040
62041         The following changes are from gettext 0.10.39 as maintained by
62042         Bruno Haible.
62043
62044         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62045         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62046         with inverted sense.  All uses changed.
62047
62048         * lib/mbswidth.c: Don't include <limits.h>.
62049         Include <stdlib.h> and <string.h> unconditionally.
62050         (iswcntrl, mbsinit, ISCNTRL): New macros.
62051         (mbsnwidth): Use K&R style function declarations.
62052         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62053         can optimize it when MB_CUR_MAX == 1.
62054         The width of control characters is zero, not 1.
62055
62056 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62057
62058         The following changes are from gettext 0.10.39 as maintained by
62059         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62060
62061         * m4/codeset.m4: Upgrade to serial AM1.
62062         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62063         all uses changed.  Quote first arg of AC_DEFUN.
62064         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62065
62066         * m4/iconv.m4: Upgrade to serial AM2.
62067         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62068         Add --with-libconv-prefix.
62069         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62070         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62071         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62072         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62073         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62074
62075         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62076         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62077         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62078         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62079         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62080         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62081         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62082         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62083         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62084
62085         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62086         string.h any more.
62087
62088         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62089         not the default value.
62090
62091         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62092         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62093         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62094         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62095         Also check for iswcntrl, used for wcwidth fallback.
62096         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62097         to Autoconf 2.13.
62098
62099 2001-08-03  Jim Meyering  <meyering@lucent.com>
62100
62101         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62102         as it was in the original.  Reported by Paul Eggert.
62103
62104 2001-07-16  Jim Meyering  <meyering@lucent.com>
62105
62106         * m4/gettimeofday.m4: New file.
62107         Prompted by a report from Bernhard Baehr.
62108
62109 2001-07-15  Jim Meyering  <meyering@lucent.com>
62110
62111         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62112         stuff. Now it's in ../Makefile.cfg.
62113
62114 2001-07-15  Jim Meyering  <meyering@lucent.com>
62115
62116         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62117         (BUILT_SOURCES): Add unlocked-io.h.
62118         (io_functions): Define.
62119         (unlocked-io.h): New rule.
62120         (DISTCLEANFILES): Add unlocked-io.h.
62121         (all-local): Depend on unlocked-io.h, to ensure it is created.
62122
62123         * lib/unlocked-io.hin: New file
62124
62125         * lib/regex.c: Update from glibc.
62126
62127 2001-07-05  Jim Meyering  <meyering@lucent.com>
62128
62129         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62130         recommendation.
62131         (libfetish_a_SOURCES): Put all .h files here instead.
62132         Remove a thus-exposed (better checks in automake) duplicate and
62133         two unnecessary .h files.
62134
62135 2001-07-04  Jim Meyering  <meyering@lucent.com>
62136
62137         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62138         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62139         distcheck failure.
62140
62141 2001-07-02  Jim Meyering  <meyering@lucent.com>
62142
62143         The following changes were prompted by suggestions from Bruno Haible.
62144
62145         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62146         is now generated.
62147         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62148         definition of EXTRA_DIST.
62149         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62150         ensure that the generated file is created/updated whenever the list
62151         of $(unlocked_functions) is changed.
62152         (jm-glibc-io.m4): New rule.
62153         (unlocked-io.h): New rule -- currently unused.
62154
62155 2001-06-24  Jim Meyering  <meyering@lucent.com>
62156
62157         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62158         unmatched right bracket, rather than kludging it with an extra,
62159         falsely-matching quote in a comment.  Patch by Akim Demaille.
62160
62161 2001-06-11  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/regex.c: Update from GNU libc.
62164
62165 2001-05-27  Jim Meyering  <meyering@lucent.com>
62166
62167         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62168         Check for ut_type in struct utmp.
62169
62170 2001-05-27  Jim Meyering  <meyering@lucent.com>
62171
62172         * lib/readutmp.h (UT_TYPE): Define.
62173
62174 2001-05-24  Jim Meyering  <meyering@lucent.com>
62175
62176         * lib/argmatch.c: Include "quote.h".
62177         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62178         quote function.  Reported by Göran Uddeborg.
62179
62180 2001-05-22  Jim Meyering  <meyering@lucent.com>
62181
62182         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62183         now that we use the package-supplied version unconditionally.
62184         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62185
62186 2001-05-21  Jim Meyering  <meyering@lucent.com>
62187
62188         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62189         shell syntax errors.
62190
62191 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62192
62193         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62194
62195 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62196
62197         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62198         Don't bother to check library strftime, since
62199         we'll be using our own my_strftime function anyway.
62200         Define my_strftime instead of strftime.
62201
62202 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62203
62204         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62205         which is not yet declared.
62206
62207 2001-05-15  Jim Meyering  <meyering@lucent.com>
62208
62209         * m4/regex.m4: Use proper quoting so brackets appear in the test
62210         program.
62211         Reported by, and with help from, Bruno Haible.
62212
62213 2001-05-13  Jim Meyering  <meyering@lucent.com>
62214
62215         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62216         undefined.
62217
62218 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62219
62220         dirname code cleanup.  base_name now behaves more compatibly
62221         with POSIX basename when given file names that have trailing
62222         slashes, and similarly for dir_name.  Add new primitives
62223         base_len and dir_len.  Put the directory-name-related decls
62224         into dirname.h.
62225
62226         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62227         * lib/backupfile.c (base_name): Likewise.
62228         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62229         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62230         * lib/makepath.c (strip_trailing_slashes): Likewise.
62231         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62232         ISSLASH): Likewise.
62233         * lib/rename.c (strip_trailing_slashes): Likewise.
62234         * lib/same.c (base_name): Likewise.
62235         * lib/stripslash.c (ISSLASH): Likewise.
62236
62237         * lib/addext.c: Include <dirname.h> after size_t is defined.
62238         * lib/backupfile.c: Likewise.
62239
62240         * lib/addext.c (addext): Use base_len to trim redundant
62241         trailing slashes instead of doing it ourselves.
62242         But do not trim the last slash if it is not redundant.
62243
62244         * lib/backupfile.c (find_backup_file_name,
62245         max_backup_version): Use base_len instead of rolling it ourselves.
62246         Handle the case of "" and (on DOS) "C:" correctly.
62247
62248         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62249         needed. Include <string.h>, <dirname.h>.
62250         (base_name): Allow file names ending in slashes, other than names
62251         that are all slashes.  In this case, return the basename followed
62252         by the slashes.  This is more general, and can be used in places
62253         where the original base_name purposely had an assertion failure.
62254         (base_len): New function.
62255
62256         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62257         Do not include <assert.h>; no longer needed.
62258         Include xalloc.h.
62259         (memrchr): Remove decl.
62260         (dir_name_r): Remove.
62261         (dir_len): Renamed from dirlen.  All callers changed.
62262         Rewrite in terms of base_name, for simplicity and consistency.
62263         (dir_name): Never return NULL.  All callers changed.
62264         Do not include <stdlib.h> in test program; no longer needed.
62265         return 0; is fine for test program.
62266
62267         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62268         New macros.
62269         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62270
62271         * lib/path-concat.c (path_concat): Use base_len to compute
62272         base length, not strlen; this means we cannot rely on memcpy
62273         to null-terminate.
62274
62275         * lib/same.c (STREQ): Remove.
62276         (same_name): Handle the case where the basename ends in trailing '/'.
62277
62278         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62279         a slash was stripped.  Do not strip the last slash after a
62280         file system prefix.
62281
62282 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62283
62284         * lib/Makefile.am (libfetish_a_SOURCES):
62285         Add strftime.c, since we now compile it on all hosts.
62286
62287         * lib/strftime.c (my_strftime):
62288         Define to nstrftime if emacs, but only if my_strftime is not defined.
62289         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62290         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62291         Add one more extra argument: a nanoseconds value.
62292         All uses changed.
62293         (ns): New macro.
62294         (my_strftime function): Add %N format.
62295         (emacs_strftimeu): Renamed from emacs_strftime,
62296         with extra ut argument.
62297
62298 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62299
62300         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62301
62302 2001-04-21  Jim Meyering  <meyering@lucent.com>
62303
62304         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62305         doesn't interfere.
62306
62307 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62308
62309         * m4/ftruncate.m4: Check for chsize.
62310         Link with ftruncate.o unconditionally if ftruncate is missing.
62311         This was required when cross-compiling to i586-mingw32msvc.
62312
62313 2001-04-08  Jim Meyering  <meyering@lucent.com>
62314
62315         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62316         recomputed; that's necessary when the offset spans a DST transition.
62317         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62318
62319 2001-04-02  Jim Meyering  <meyering@lucent.com>
62320
62321         * lib/regex.h, regex.c: Update from GNU libc.
62322
62323 2001-03-24  Jim Meyering  <meyering@lucent.com>
62324
62325         * m4/jm-macros.m4: Require autoconf-2.49d.
62326
62327 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62328
62329         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62330
62331 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62332
62333         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62334
62335 2001-03-17  Jim Meyering  <meyering@lucent.com>
62336
62337         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62338         now that the version in autoconf is equivalent.
62339         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62340
62341         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62342         Suggestion from Akim Demaille.
62343
62344         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62345         (jm_PREREQ_TEMPNAME): New function.
62346
62347 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62348
62349         * lib/tempname.c (uint64_t): Define to uintmax_t if
62350         not defined, and if UINT64_MAX is not defined.
62351         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62352         Reported by John David Anglin.
62353
62354 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62355
62356         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62357         resolve alias if codeset is empty.
62358         * lib/config.charset (BeOS): Use wildcard syntax.
62359
62360 2001-03-13  Jim Meyering  <meyering@lucent.com>
62361
62362         * lib/path-concat.c (path_concat)
62363         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62364         concatenating e.g., `C:' and `foo'.
62365         From Bruno Haible.
62366
62367 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62368
62369         * lib/localcharset.c (locale_charset): Don't use
62370         setlocale(LC_CTYPE,NULL). Don't return NULL.
62371         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62372
62373 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62374
62375         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62376         support for DOS/DJGPP.
62377
62378 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62379
62380         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62381         lacks mkstemp.  Compile our own tempname.c if we compile our own
62382         mkstemp.c, as mkstemp relies on tempname.
62383
62384 2001-03-01  Jim Meyering  <meyering@lucent.com>
62385
62386         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62387         AH_VERBATIM really does output its argument verbatim.
62388
62389 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62390
62391         * lib/Makefile.am (libfetish_a_SOURCES):
62392         Add dup-safer.c, fopen-safer.c.
62393         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62394
62395         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62396         * lib/unistd-safer.h: New files.
62397
62398 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62399
62400         The mkstemp replacement is taken from glibc 2.2.2, with some
62401         portability fixes for use outside glibc, as follows:
62402
62403         * lib/tempname.c (struct_stat64): New macro.
62404         (direxists, __gen_tempname): Use it.
62405         This avoids a portability problem with Solaris 8.
62406
62407         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62408         (<stddef.h>, <stdint.h>, <string.h>):
62409         Include only if STDC_HEADERS || _LIBC.
62410         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62411         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62412         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62413         (__set_errno): Define this macro if <errno.h> doesn't.
62414         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62415         Define these macros if <stdio.h> doesn't.
62416         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62417         Define these macros if <sys/stat.h>
62418         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62419         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62420         __xstat64): Define if not _LIBC.
62421         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62422         (__gen_tempname): Invoke gettimeofday only if
62423         HAVE_GETTIMEOFDAY || _LIBC;
62424         otherwise, fall back on plain "time".
62425         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62426
62427         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62428
62429         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62430
62431 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62432
62433         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62434
62435 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62436
62437         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62438         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62439         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62441
62442 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62443
62444         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62445         Remove workaround macros for hosts that have mbrtowc but not
62446         mbstate_t, as we now insist on proper declarations for both
62447         before using mbrtowc.
62448
62449 2001-02-17  Jim Meyering  <meyering@lucent.com>
62450
62451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62452         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62453         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62454         UnixWare 7.1.1.
62455
62456         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62457         rather than AC_CACHE_VAL.
62458
62459 2001-02-17  Jim Meyering  <meyering@lucent.com>
62460
62461         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62462         around included file name.
62463
62464         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62465
62466         * lib/strftime.c: Update from GNU libc (the only changes were to
62467         comments).
62468
62469 2001-02-17  Jim Meyering  <meyering@lucent.com>
62470
62471         * lib/regex.c: Update from libc.
62472
62473 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62474
62475         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62476         clash.
62477
62478 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62479
62480         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62481         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62482         Reported by Mark Hounschell via Paul Eggert.
62483
62484 2001-02-07  Jim Meyering  <meyering@lucent.com>
62485
62486         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62487
62488 2001-02-05  Jim Meyering  <meyering@lucent.com>
62489
62490         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62491         it includes the patch required for `large file' support with at least
62492         HP-UX's 10.20 /bin/cc.
62493
62494 2001-02-03  Jim Meyering  <meyering@lucent.com>
62495
62496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62497         AS_IF, now that it works once again (mysteriously).
62498         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62499
62500 2001-01-30  Jim Meyering  <meyering@lucent.com>
62501
62502         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62503         * m4/chown.m4: Rename conftestchown to conftest.chown.
62504         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62505         s/conftestdir2/conftest.d2/.
62506         * m4/utimes.m4: s/conftestdata/conftest.data/
62507         Inspired by Pavel Roskin's change in autoconf.
62508
62509 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62510
62511         * lib/config.charset: Update for FreeBSD 4.2.
62512
62513 2001-01-27  Jim Meyering  <meyering@lucent.com>
62514
62515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62516         a use of AS_IF.
62517         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62518
62519 2001-01-26  Jim Meyering  <meyering@lucent.com>
62520
62521         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62522         quotearg.c includes it.
62523
62524 2001-01-26  Jim Meyering  <meyering@lucent.com>
62525
62526         * lib/quotearg.c: Include stddef.h.
62527         * lib/quote.c: Include stddef.h.
62528         Reported by Axel Kittenberger.
62529
62530         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62531         line in double quotes so that it evokes a better diagnostic.
62532         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62533         Reported by Axel Kittenberger.
62534
62535 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62536
62537         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62538         as if it was a `charset'.
62539
62540 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62541
62542         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62543         has const.
62544
62545 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62546
62547         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62548         to avoid a warning.  Add back 'const' to inptr.
62549
62550 2001-01-20  Jim Meyering  <meyering@lucent.com>
62551
62552         Be sure that headers are checked before used in code compiled
62553         for the type checks.
62554         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62555         In place of that, invoke jm_CHECK_ALL_TYPES.
62556         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62557         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62558         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62559         The check for ssize_t was mistakenly run before the test for unistd.h.
62560
62561         The configure-time check for stdbool.h was missing.
62562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62563         (jm_PREREQ_HASH): New function.
62564
62565 2001-01-17  Jim Meyering  <meyering@lucent.com>
62566
62567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62568         for autoconf-2.49c.
62569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62570
62571 2001-01-16  Jim Meyering  <meyering@lucent.com>
62572
62573         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62574         From Bruno Haible.
62575
62576 2001-01-14  Jim Meyering  <meyering@lucent.com>
62577
62578         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62579         foo and bar.  Create conftestdir/ in the script, not in the C code.
62580         Remove directories in the script, not in the C code.
62581         Remove conftestdir{,2} before trying to create the directory.
62582         Make the entire configure script fail if the mkdir fails.
62583
62584 2001-01-14  Jim Meyering  <meyering@lucent.com>
62585
62586         * lib/rename.c: New file.  From Volker Borchert.
62587         Include stdlib.h, string.h or strings.h, and xalloc.h.
62588         Use strip_trailing_slashes rather than open-coding it.
62589
62590 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62591
62592         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62593
62594 2001-01-03  Jim Meyering  <meyering@lucent.com>
62595
62596         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62597         of local `inptr' to avoid warning with some system declarations of
62598         iconv.
62599
62600 2001-01-02  Volker Borchert  <bt@teknon.de>
62601
62602         * m4/rename.m4: New file.
62603         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62604
62605 2001-01-01  Jim Meyering  <meyering@lucent.com>
62606
62607         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62608         even on systems with utmpx.h.  It's necessary for the declaration of
62609         utmp's ut_user member.  Reported by Andreas Jaeger.
62610
62611         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62612         available. They are required for the declarations of getgrgid and
62613         getpwuid resp.
62614         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62615         Reported by Andreas Jaeger.
62616
62617 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62618
62619         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62620         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62621         so `make install' also works in VPATH builds.
62622
62623 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62624
62625         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62626         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62627         can be used in subdirectories.
62628
62629 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62630
62631         * lib/modechange.c: Do not assume that mode_t uses the
62632         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62633         the other-execute bit of FOO even if S_IXOTH != 1.
62634
62635         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62636         WOTH, XOTH, ALLM): New macros.
62637         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62638          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62639         Use them.
62640         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62641         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62642         (mode_compile):
62643         No need to use uintmax_t; unsigned long is long enough.
62644         Don't bother to get suffix since we don't use it.
62645
62646 2000-12-26  Jim Meyering  <meyering@lucent.com>
62647
62648         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62649         better with autoheader.
62650
62651 2000-12-24  Jim Meyering  <meyering@lucent.com>
62652
62653         * lib/hash.c (is_prime): Return explicit boolean values.
62654         (hash_get_first): Return NULL to appease Irix5.6's 89.
62655         Reported by Nelson Beebe.
62656
62657 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62658
62659         * lib/localcharset.c (locale_charset): Add support for Win32.
62660
62661 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62662
62663         * lib/physmem.h, lib/physmem.c: New files.
62664
62665         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62666         (noinst_HEADERS): Add physmem.h.
62667
62668         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62669         't' for compatibility with Solaris 8 sort.
62670
62671 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62672
62673         * lib/config.charset: Add support for BeOS.
62674
62675 2000-12-17  Jim Meyering  <meyering@lucent.com>
62676
62677         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62678         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62679
62680 2000-12-16  Jim Meyering  <meyering@lucent.com>
62681
62682         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62683         N and M) would have treated it like `chown N:N FILE'.
62684
62685         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62686
62687 2000-12-16  Jim Meyering  <meyering@lucent.com>
62688
62689         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62690         SHELLS_FILE to a file name that's useful on djgpp systems.
62691         Include stdlib.h.
62692         (ADDITIONAL_DEFAULT_SHELLS): Define.
62693         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62694         Based mostly on a patch from Prashant TR.
62695
62696 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62697
62698         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62699         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62700         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62701
62702 2000-12-08  Andreas Schwab  <schwab@suse.de>
62703
62704         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62705         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62706
62707 2000-12-07  Jim Meyering  <meyering@lucent.com>
62708
62709         * lib/stripslash.c (ISSLASH): Define.
62710         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62711         `/'.
62712         From Prashant TR.
62713
62714         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62715         (dir_name_r): Declare this function as static.
62716         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62717         manifest itself on a name containing a mix of slashes and
62718         backslashes.
62719         Make this function work with names starting with a DOS-style
62720         drive letter and colon prefix.
62721         (dir_name): Append `.' if necessary.
62722         Based mostly on patches from Prashant TR and Eli Zaretskii.
62723
62724         * lib/dirname.h (dir_name_r): Remove prototype.
62725
62726 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62727
62728         * m4/off_t-format.m4: Remove this file.
62729         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62730
62731 2000-12-06  Jim Meyering  <meyering@lucent.com>
62732
62733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62734         replacement strtoull, we may well need the replacement strtoul, too.
62735         Check for declarations of strtoul and strtoull.
62736         Check for strtol.  Mainly as a cue to cause automake to include
62737         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62738         Check for limits.h -- strtol.c needs it.
62739
62740 2000-12-05  Jim Meyering  <meyering@lucent.com>
62741
62742         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62743
62744 2000-12-04  Jim Meyering  <meyering@lucent.com>
62745
62746         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62747         Also include memory.h, stdlib.h, unistd.h if appropriate.
62748         Reported by Andreas Jaeger (conflicting declaration of malloc).
62749
62750 2000-12-02  Jim Meyering  <meyering@lucent.com>
62751
62752         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62753         * m4/jm-macros.m4 (jm_MACROS): require it.
62754
62755 2000-12-02  Jim Meyering  <meyering@lucent.com>
62756
62757         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62758
62759 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62760
62761         * lib/memrchr.c: Include <config.h> before any system include file.
62762
62763 2000-11-30  Jim Meyering  <meyering@lucent.com>
62764
62765         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62766
62767 2000-11-30  Jim Meyering  <meyering@lucent.com>
62768
62769         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62770
62771 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62772
62773         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62774
62775 2000-11-26  Jim Meyering  <meyering@lucent.com>
62776
62777         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62778
62779 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62780
62781         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62782         size of (size_t) -1; it's not portable.
62783
62784 2000-11-17  Jim Meyering  <meyering@lucent.com>
62785
62786         * lib/strstr.c: Update from GNU libc.
62787
62788 2000-11-17  Akim Demaille  <akim@epita.fr>
62789
62790         * lib/obstack.h: Formatting changes.
62791         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62792         prevent type checking.
62793         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62794         cast the value to (void *): assigning a `foo *' to a `void *'
62795         variable is valid.
62796         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62797
62798 2000-11-16  Jim Meyering  <meyering@lucent.com>
62799
62800         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62801
62802 2000-11-11  Jim Meyering  <meyering@lucent.com>
62803
62804         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62805
62806 2000-11-10  Jim Meyering  <meyering@lucent.com>
62807
62808         * lib/obstack.h: Update from GNU libc.
62809         * lib/obstack.c: Likewise.
62810
62811 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62812
62813         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62814
62815 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62816
62817         * lib/getusershell.c (setusershell): Use rewind rather than
62818         fseek/fseeko, to avoid configuration hassles with fseeko.
62819         Don't bother opening SHELLS_FILE if shellstream is NULL;
62820         it's not necessary.
62821
62822 2000-11-05  Jim Meyering  <meyering@lucent.com>
62823
62824         * lib/makepath.h (make_dir): Declare.
62825         * lib/makepath.c (make_dir): Remove `static' attribute.
62826         Tweak a comment.
62827
62828 2000-11-04  Jim Meyering  <meyering@lucent.com>
62829
62830         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62831
62832 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62833
62834         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62835         last one in a bucket, advance to the next bucket.
62836
62837 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62838
62839         * lib/fnmatch.c: Do not comment out all the code if we are using
62840         the GNU C library, because in some cases we are replacing buggy
62841         code in the GNU C library itself.
62842
62843 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62844
62845         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62846         (regex_compile): Catch bogus \(\1\).
62847
62848 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62849
62850         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62851         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62852         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62853
62854 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62855
62856         * lib/error.h, getline.h, modechange.h:
62857         Remove "2000" from Copyright line, as the file hasn't been
62858         changed this year other than in the copyright notice.
62859
62860         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62861         was changed this year.
62862
62863 2000-10-29  Jim Meyering  <meyering@lucent.com>
62864
62865         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62866         renaming.
62867         * m4/ls-mntd-fs.m4: Likewise
62868
62869 2000-10-29  Jim Meyering  <meyering@lucent.com>
62870
62871         * lib/xstat.in: Fix grammar in comment.
62872
62873 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62874
62875         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62876         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62877         doesn't define __restrict_arr.
62878
62879 2000-10-28  Jim Meyering  <meyering@lucent.com>
62880
62881         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62882         (jm_PREREQ_MEMCHR): New function.
62883
62884 2000-10-28  Jim Meyering  <meyering@lucent.com>
62885
62886         * lib/memchr.c: Update from libc.
62887         Adjust for portability:
62888         [HAVE_STDLIB_H]: Include stdlib.h.
62889         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62890         Undef __memchr, too.
62891         [!weak_alias]: Define __memchr to memchr.
62892
62893         * lib/regex.c: Update from libc.
62894         * lib/regex.h: Likewise.
62895         * lib/getopt1.c: Likewise.
62896         * lib/memcmp.c: Likewise.
62897
62898         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62899         Avoid using fseek, when possible -- it's broken by design.
62900         Patch by Ulrich Drepper.
62901
62902 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62903
62904         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62905         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62906         Giving in to popular pressure to shut up the compiler with casts.
62907
62908 2000-10-26  Jim Meyering  <meyering@lucent.com>
62909
62910         * lib/strftime.c: Update from libc.
62911
62912 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62913
62914         * regex.c: More `unsigned char' -> `re_char' changes.
62915         Also change several `int' into `re_wchar_t'.
62916         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62917         (PUSH_FAILURE_POINTER): Don't cast any more.
62918         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62919         We want GCC to complain, since this piece of code makes
62920         re_match non-reentrant, which *should* be fixed.
62921         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62922         (EXTEND_BUFFER): Use RETALLOC.
62923         (SET_LIST_BIT): Don't cast.
62924         (re_wchar_t): New type.
62925         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62926         that those two functions will always properly return.
62927         (IMMEDIATE_QUIT_CHECK): Cast to void.
62928         (analyse_first): Use recursion rather than an explicit stack.
62929         (re_compile_fastmap): Can't fail anymore.
62930         (re_search_2): Don't check re_compile_fastmap for failure.
62931         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62932         Now also sets the new value (passed in a new argument).
62933         (re_match_2_internal): Use it.
62934         Also, use a new var `reg' of type size_t when looping through regs
62935         rather than reuse the inappropriate `mcnt'.
62936
62937 2000-10-25  Jim Meyering  <meyering@lucent.com>
62938
62939         * lib/obstack.c: Update from libc.
62940
62941 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62942
62943         * regex.c (regex_compile): Change the way of handling a range from
62944         a char less than 256 to a char not less than 256.
62945
62946 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62947
62948         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62949         NT-Emacs only.
62950         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62951         so that re_search functions only quit when callers expect them to.
62952
62953 2000-10-23  Jim Meyering  <meyering@lucent.com>
62954
62955         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62956         wrong.  That set_locale call must not have any side effects.
62957         From Paul Eggert.
62958
62959 2000-10-22  Jim Meyering  <meyering@lucent.com>
62960
62961         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62962         [CYCLIC]: Remove now-unused definition.
62963
62964         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62965         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62966         Suggestion from Ulrich Drepper.
62967
62968 2000-10-21  Jim Meyering  <meyering@lucent.com>
62969
62970         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62971         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62973
62974 2000-10-21  Jim Meyering  <meyering@lucent.com>
62975
62976         * lib/dirname.c (memrchr): Declare if necessary.
62977         (dir_name): Remove the restriction that there be no
62978         trailing slashes.  Now, this code skips past them, effectively
62979         ignoring them.
62980         [TEST_DIRNAME] (main): New unit tests.
62981
62982         * lib/memrchr.c: New file from GNU libc.
62983         Undef __memrchr, too.
62984         [!weak_alias]: Define __memrchr to memrchr.
62985         Guard weak_alias use with `#ifdef weak_alias'.
62986
62987 2000-10-21  Jim Meyering  <meyering@lucent.com>
62988
62989         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62990         (dir_name): Use dir_name_r.
62991         * lib/dirname.h (dir_name_r): Declare it.
62992
62993 2000-10-17  Jim Meyering  <meyering@lucent.com>
62994
62995         * lib/quote.h (PARAMS): Define and use.
62996         Reported by Akim Demaille.
62997
62998         * lib/getopt.c: Update from libc.
62999
63000 2000-10-16  Jim Meyering  <meyering@lucent.com>
63001
63002         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63003         setlocale.
63004         From Jan Fedak.
63005
63006 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63007
63008         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63009
63010 2000-09-25  Jim Meyering  <meyering@lucent.com>
63011
63012         * lib/md5.h (rol): Define (from GnuPG).
63013
63014         * lib/sha.c: Give credit (GnuPG) where due.
63015         (M): Use rol rather than open-coding it.
63016         Add a FIXME comment.
63017
63018 2000-09-21  Jim Meyering  <meyering@lucent.com>
63019
63020         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63021         Reported by Michael Stone.
63022
63023 2000-09-20  Jim Meyering  <meyering@lucent.com>
63024
63025         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63026         (noinst_HEADERS): Add sha.h.
63027         Based on code from Scott G. Miller and from GnuPG.
63028
63029 2000-09-18  Jim Meyering  <meyering@lucent.com>
63030
63031         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63032         LIBS. Otherwise, everyone ends up linking with -lelf for some
63033         configurations.
63034         Reported by Mike Stone.
63035
63036 2000-09-15  Jim Meyering  <meyering@lucent.com>
63037
63038         * lib/regex.c: Update from libc.
63039
63040 2000-09-10  Jim Meyering  <meyering@lucent.com>
63041
63042         * lib/getopt.c (_getopt_internal): Update from glibc.
63043
63044 2000-09-09  Jim Meyering  <meyering@lucent.com>
63045
63046         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63047         think it should be used as a general replacement for isascii.
63048         * lib/fnmatch.c: Likewise.
63049         * lib/mbswidth.c: Likewise
63050         * lib/regex.c: Likewise.
63051
63052         Don't use atoi.
63053         * lib/userspec.c: Include sys/param.h and limits.h.
63054         Include xstrtol.h.
63055         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63056         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63057         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63058         UID, GID.  Check range.
63059
63060 2000-09-06  Jim Meyering  <meyering@lucent.com>
63061
63062         * lib/getopt.c (_getopt_internal): Update from glibc.
63063
63064 2000-08-30  Jim Meyering  <meyering@lucent.com>
63065
63066         * lib/strftime.c: Merge in changes from GNU libc.
63067
63068 2000-08-26  Jim Meyering  <meyering@lucent.com>
63069
63070         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63071         * m4/fpending.m4: New file.
63072
63073 2000-08-26  Jim Meyering  <meyering@lucent.com>
63074
63075         * lib/closeout.c: Include "__fpending.h".
63076         (close_stdout_status): Return right away if there's nothing to flush.
63077
63078         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63079         * lib/__fpending.c: New file.
63080         * lib/__fpending.h: New file.
63081
63082 2000-08-20  Jim Meyering  <meyering@lucent.com>
63083
63084         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63085         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63086         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63087
63088 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63089
63090         Improve fileutils installation on systems where running
63091         programs (like install) can't be unlinked.
63092         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63093         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63094
63095 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63096
63097         Standardize on "memory exhausted" instead of "Memory exhausted"
63098         or "virtual memory exhausted".
63099         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63100         "virtual memory exhausted".
63101         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63102         our own message.
63103         * lib/userspec.c (parse_user_spec): Likewise.
63104         * lib/bumpalloc.h: comment fix
63105         * lib/same.c, userspec.c: Include xalloc.h.
63106
63107         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63108         not char *const and pointing to a constant array.
63109         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63110         (xrealloc): Comment fix.
63111
63112         * lib/userspec.c (parse_user_spec):
63113         Don't translate a message until just before returning,
63114         to avoid unnecessary translation.
63115
63116 2000-08-07  Jim Meyering  <meyering@lucent.com>
63117
63118         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63119         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63120         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63121         getgroups.c, gethostname.c, getopt.h, group-member.c,
63122         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63123         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63124         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63125         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63126         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63127         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63128         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63129         yesno.c: Back out Copyright date changes for each file with no change
63130         this year.  This eases coordination with other programs using the same
63131         source code modules.  From Paul Eggert.
63132
63133 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63134
63135         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63136         not char, for compatibility with glibc 2.1.3 strftime.c.
63137
63138 2000-08-03  Greg McGary  <greg@mcgary.org>
63139
63140         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63141         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63142         (EXTEND_BUFFER): Use them.
63143
63144 2000-08-01  Jim Meyering  <meyering@lucent.com>
63145
63146         * lib/dirname.c (ISSLASH): Define.
63147         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63148         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63149         both `\' and `/' may be use as path separators.
63150         Based on a patch from Prashant TR.
63151
63152 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63153
63154         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63155         slot vector a constant, since it might get modified.
63156
63157 2000-07-31  Jim Meyering  <meyering@lucent.com>
63158
63159         * lib/xmalloc.c: Use `virtual memory exhausted', not
63160         `Memory exhausted'.
63161         * lib/obstack.c (print_and_abort): Likewise.
63162
63163 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63164
63165         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63166         buffer, so that the caller can always quote one small
63167         component of a "memory exhausted" message in slot 0.
63168         From a suggestion by Jim Meyering.
63169
63170 2000-07-30  Jim Meyering  <meyering@lucent.com>
63171
63172         * lib/makepath.c (make_path): Quote the other instance, too.
63173
63174         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63175         (STATIC_BUF_SIZE): Define.
63176         (quotearg_n_options): Use only statically allocated storage when
63177         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63178         than STATIC_BUF_SIZE.
63179
63180 2000-07-29  Jim Meyering  <meyering@lucent.com>
63181
63182         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63183         * lib/dirname.c (dir_name): Likewise.
63184
63185         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63186         `/'.
63187
63188         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63189         (dir_name): Assert that there are no trailing slashes.
63190
63191 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63192
63193         * lib/mbswidth.h (mbswidth): Add a flags argument.
63194         (mbswidth): New declaration.
63195         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63196         * lib/mbswidth.c (mbswidth): Add a flags argument.
63197         (mbsnwidth): New function.
63198
63199 2000-07-24  Jim Meyering  <meyering@lucent.com>
63200
63201         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63202
63203 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63204
63205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63206
63207 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63208
63209         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63210         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63211         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63212         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63213         invoke multibyte primitives.
63214
63215 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63216
63217         * lib/quotearg.c:
63218         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63219         so that mbstate_t is always defined.
63220
63221         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63222         be 1 in at least one GCC installation, and this configuration
63223         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63224         performance on hosts that have mbrtowc but have only unibyte
63225         locales, but I assume these hosts are rare.
63226
63227 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63228
63229         * lib/mbswidth.c (_XOPEN_SOURCE):
63230         Don't define; this causes problems on Solaris 7.
63231         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63232
63233 2000-07-23  Jim Meyering  <meyering@lucent.com>
63234
63235         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63236         too: getgrgid, getpwuid, getuid.
63237
63238 2000-07-23  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/basename.c (base_name): Add an assertion.
63241
63242 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63243
63244         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63245         shadow its mbsinit function.
63246
63247 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63248
63249         * lib/mbswidth.h: New file.
63250         * lib/mbswidth.c: New file.
63251         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63252         (noinst_HEADERS): Add mbswidth.h.
63253
63254 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63255
63256         * lib/config.charset: Add support for FreeBSD. Improve support for
63257         HP-UX and IRIX 6.
63258
63259 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63260
63261         * m4/mbswidth.m4: New file.
63262         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63263
63264 2000-07-15  Jim Meyering  <meyering@lucent.com>
63265
63266         * lib/makepath.c: Include quote.h.
63267         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63268         corresponding argument in a `quote (...)' call.
63269         Give better diagnostics.
63270
63271         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63272         (noinst_HEADERS): Add quote.h.
63273
63274         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63275         from tar's src/misc.c.
63276         * lib/quote.h: New file.  Prototypes for same.
63277
63278 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63279
63280         From a suggestion by Bruno Haible.
63281         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63282         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63283         to decide whether to define the BeOS workaround macro;
63284         this adjusts to the change to AC_MBSTATE_T.
63285
63286 2000-07-14  Jim Meyering  <meyering@lucent.com>
63287
63288         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63289         jm_AC_TYPE_UINTMAX_T.
63290
63291 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63292
63293         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63294
63295         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63296         quotearg_buffer_restyled): Add support for
63297         clocale_quoting_style.  Undo previous change to
63298         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63299         and "{RIGHT QUOTATION MARK}" msgids.
63300
63301 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63302
63303         From a suggestion by Bruno Haible.
63304         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63305         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63306         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63307         and mbstate_t, to a single-part test that simply defines mbstate_t.
63308         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63309         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63310
63311 2000-07-10  Jim Meyering  <meyering@lucent.com>
63312
63313         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63314
63315         * m4/gnu-source.m4: Output to confdefs.h directly.
63316         Suggestion from Akim Demaille.
63317
63318 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63319
63320         The old behavior of quoting `like this' doesn't look good with
63321         newer, ISO-style fonts.  See:
63322         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63323
63324         Instead, quote "like this" by default.  Let the translator
63325         tailor the locale-specific quoting behavior by providing
63326         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63327
63328         * lib/quotearg.c (N_): New macro.
63329         (gettext_default): New function.
63330         (quotearg_buffer_restyled): Use
63331         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63332         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63333
63334 2000-07-09  Jim Meyering  <meyering@lucent.com>
63335
63336         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63337         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63338
63339         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63341
63342 2000-07-09  Jim Meyering  <meyering@lucent.com>
63343
63344         * lib/Most files: Update copyright dates to include 2000.
63345
63346 2000-07-08  Jim Meyering  <meyering@lucent.com>
63347
63348         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63349         if not defined.
63350         (xgethostname): Remove now-unnecessary #ifdef.
63351         Move declaration of `err' into loop where it's used.
63352
63353 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63354         and Bruno Haible  <haible@clisp.cons.org>
63355
63356         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63357         only if the test for an object-type mbstate_t fails.  This
63358         prevents us from mistakenly reporting that mbstate_t is a
63359         system object type after we "#define mbstate_t int" to work
63360         around its lack.
63361
63362 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63363         and Bruno Haible  <haible@clisp.cons.org>
63364
63365         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63366
63367 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63368
63369         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63370         to strerror_r.
63371         Include <ctype.h> for use of isalpha.
63372
63373 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63374
63375         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63376         by allocating a larger buffer. Test the gethostname return value for
63377         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63378         returns an error and ENAMETOOLONG isn't defined.
63379
63380 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63381
63382         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63383         dimension.
63384
63385 2000-07-04  Jim Meyering  <meyering@lucent.com>
63386
63387         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63388         of the deprecated AC_CHECKING.
63389
63390 2000-07-04  Jim Meyering  <meyering@lucent.com>
63391
63392         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63393         Reported by Bruno Haible.
63394
63395 2000-07-04  Jim Meyering  <meyering@lucent.com>
63396
63397         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63398         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63399         lacks mbrtowc.
63400
63401 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63402
63403         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63404         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63405
63406 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63407         and Bruno Haible  <haible@clisp.cons.org>
63408
63409         * lib/quotearg.c (mbrtowc):
63410         Assign to *pwc, and return 1 only if result is nonzero.
63411         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63412
63413 2000-07-03  Jim Meyering  <meyering@lucent.com>
63414
63415         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63416
63417 2000-07-03  Jim Meyering  <meyering@lucent.com>
63418
63419         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63420         This is necessary to get a definition of e.g., UTMP_FILE on
63421         HP-UX 10.20.
63422         From Bob Proulx.
63423
63424 2000-07-02  Jim Meyering  <meyering@lucent.com>
63425
63426         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63427
63428         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63429         AC_LIBOBJ(function_name).
63430         * m4/chown.m4: Likewise.
63431         * m4/fnmatch.m4: Likewise.
63432         * m4/ftruncate.m4: Likewise.
63433         * m4/getgroups.m4: Likewise.
63434         * m4/getline.m4: Likewise.
63435         * m4/group-member.m4: Likewise.
63436         * m4/jm-macros.m4: Likewise.
63437         * m4/lstat.m4: Likewise.
63438         * m4/malloc.m4: Likewise.
63439         * m4/memcmp.m4: Likewise.
63440         * m4/nanosleep.m4: Likewise.
63441         * m4/putenv.m4: Likewise.
63442         * m4/realloc.m4: Likewise.
63443         * m4/regex.m4: Likewise.
63444         * m4/stat.m4: Likewise.
63445         * m4/strftime.m4: Likewise.
63446
63447 2000-07-02  Jim Meyering  <meyering@lucent.com>
63448
63449         * lib/quotearg.c (mbstate_t): Don't define here.
63450
63451 2000-07-02  Jim Meyering  <meyering@lucent.com>
63452
63453         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63454
63455 2000-07-01  Jim Meyering  <meyering@lucent.com>
63456
63457         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63458
63459 2000-07-01  Jim Meyering  <meyering@lucent.com>
63460
63461         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63462         problem.
63463
63464 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63465
63466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63467         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63468
63469 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63470
63471         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63472         per change in ../m4/ls-mntd-fs.m4.
63473         (read_filesystem_list): Ignore symbolic links.
63474
63475 2000-06-29  Jim Meyering  <meyering@lucent.com>
63476
63477         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63478         for declaration of strcmp.
63479
63480         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63481
63482         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63483         Avoid warning by casting result to `char *' to remove `const'.
63484
63485 2000-06-28  Jim Meyering  <meyering@lucent.com>
63486
63487         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63488         included by quotearg.c, for which we perform this test.  From
63489         Bruno Haible.
63490
63491 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63492
63493         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63494         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63495         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63496
63497 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63498
63499         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63500
63501 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63502
63503         savedir now sets errno on failure and invokes xmalloc to get memory.
63504         Fix a couple of other minor bugs while we're at it.
63505
63506         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63507         (NAMLEN): Remove macro.
63508         (malloc, realloc): Remove decls.
63509         (stpcpy): Likewise.
63510         ("xalloc.h"): Include.
63511         (NAME_SIZE_DEFAULT): New macro.
63512         (savedir): Use xmalloc / xrealloc to allocate memory.
63513         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63514         Skip "" directory entries.
63515         Use strlen to calculate directory entry length, since the old method
63516         is rarely used these days and isn't worth supporting.
63517         Don't use a pointer after freeing it.
63518         Check for integer overflow when calculating allocation size.
63519         Use memcpy to copy entries, instead of stpcpy.
63520         Set errno properly when returning NULL.
63521         Check for readdir error.
63522
63523 2000-06-26  Jim Meyering  <meyering@lucent.com>
63524
63525         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63526
63527 2000-06-25  Jim Meyering  <meyering@lucent.com>
63528
63529         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63530         Linux header bug when _XOPEN_SOURCE is defined to 500.
63531
63532 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63533
63534         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63535         deficiency.
63536
63537 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63538
63539         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63540         Include xalloc.h.
63541         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63542
63543 2000-06-24  Jim Meyering  <meyering@lucent.com>
63544
63545         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63546         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63547         for which strerror does return char*, but which lacks a conveniently
63548         accessible declaration of the function.  If the compile-test says
63549         strerror_r doesn't work, then resort to a `run'-test that works on
63550         BeOS and segfaults on DEC Unix.
63551
63552 2000-06-24  Jim Meyering  <meyering@lucent.com>
63553
63554         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63555
63556 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63557
63558         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63559         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63560
63561 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63562
63563         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63564         (mbrtowc, mbstate_t): Define substitutes if
63565         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63566         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63567         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63568
63569 2000-06-23  Jim Meyering  <meyering@lucent.com>
63570
63571         * m4/afs.m4: Add missing AC_MSG_RESULT.
63572         Reported by Bruno Haible.
63573
63574         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63575         Suggestion from Bruno Haible.
63576
63577 2000-06-23  Jim Meyering  <meyering@lucent.com>
63578
63579         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63580
63581 2000-06-21  Jim Meyering  <meyering@lucent.com>
63582
63583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63584
63585 2000-06-21  Jim Meyering  <meyering@lucent.com>
63586
63587         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63588         (noinst_HEADERS): Add getstr.h.
63589
63590         * lib/getline.c (getstr): Move into a separate file.
63591         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63592         the following changes: new parameter, delim2; both delim[12]
63593         parameters have type `int', not `char'.  The latter would lose
63594         with 8-bit delimiters.
63595         * lib/getstr.h: New file.
63596
63597 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63598
63599         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63600         than 1024, return a memory chunk of least possible size, instead
63601         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63602         Use free/xmalloc instead of xrealloc to avoid copying for very long
63603         paths.
63604
63605 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63606
63607         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63608         the empty string.
63609
63610 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63611
63612         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63613         address, not strdup.  Include <stdlib.h> and don't declare free().
63614
63615 2000-06-19  Jim Meyering  <meyering@lucent.com>
63616
63617         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63618
63619 2000-06-18  Jim Meyering  <meyering@lucent.com>
63620
63621         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63622
63623         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63624         `checking whether...' message to be consistent with that of the
63625         lstat test.
63626
63627 2000-06-18  Jim Meyering  <meyering@lucent.com>
63628
63629         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63630         Besides, these days every porting target provides a mkdir function.
63631
63632         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63633         needed. (this snippet comes from src/system.h).
63634
63635 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63636
63637         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63638
63639 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63640
63641         * lib/human.c (adjust_value): New function.
63642         (human_readable_inexact): Apply rounding style even when
63643         printing approximate values.
63644
63645 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63646
63647         * lib/human.c (human_readable_inexact): Allow an input block
63648         size that is not a multiple of the output block size, and vice versa.
63649         Reported by Piergiorgio Sartor.
63650
63651 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63652
63653         * lib/getdate.y (get_date): Apply relative times after time
63654         zone indicator, not before.  Reported by Todd A. Jacobs.
63655
63656 2000-06-13  Jim Meyering  <meyering@lucent.com>
63657
63658         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63659
63660         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63661
63662 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63663
63664         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63665
63666 2000-06-12  Jim Meyering  <meyering@lucent.com>
63667
63668         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63669         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63670         optional argument.
63671         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63672         the optional argument, `lib'.
63673
63674 2000-06-08  Jim Meyering  <meyering@lucent.com>
63675
63676         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63677
63678 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63679
63680         Rewrite largefile configuration so that we don't need to run
63681         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63682         AC_CANONICAL_HOST in configure.in -- jmm]
63683
63684         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63685         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63686         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63687         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63688         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63689         All uses changed.
63690         Instead of inspecting the output of getconf, try to compile the
63691         test program without and with the macro definition.
63692         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63693         for getconf.  Instead, check for the needed flags by compiling
63694         test programs.
63695
63696 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63697
63698         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63699
63700 2000-06-04  Jim Meyering  <meyering@lucent.com>
63701
63702         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63703         SunOS 4.1.4 for which gid_t is an unsigned type.
63704
63705 2000-06-03  Jim Meyering  <meyering@lucent.com>
63706
63707         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63708         now that autoconf requires that.
63709
63710         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63711         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63712         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63713
63714 2000-06-03  Jim Meyering  <meyering@lucent.com>
63715
63716         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63717
63718 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63719
63720         * m4/glibc21.m4: New file.
63721         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63722
63723 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63724
63725         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63726         newer, don't install charset.alias.
63727         * lib/config.charset: Change the Linux/glibc rules so they become empty
63728         on glibc-2.1 or newer.
63729
63730 2000-06-02  Jim Meyering  <meyering@lucent.com>
63731
63732         * lib/mountlist.c: Back out last change.  Instead, do this...
63733         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63734         me_dummy member using the same `ignore'-testing code.
63735         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63736         fs_type strings.
63737         From Mark D. Roth.
63738
63739 2000-05-29  Jim Meyering  <meyering@lucent.com>
63740
63741         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63742         mounts with the `ignore' attribute.  Based on a patch from
63743         Mark D. Roth.
63744
63745 2000-05-28  Jim Meyering  <meyering@lucent.com>
63746
63747         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63748         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63749         * m4/stat.m4: Likewise.
63750         * m4/lstat.m4: Likewise.
63751         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63752
63753         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63754         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63755
63756 2000-05-26  Jim Meyering  <meyering@lucent.com>
63757
63758         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63759
63760 2000-05-24  Jim Meyering  <meyering@lucent.com>
63761
63762         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63763         autoconf requires that.
63764         * m4/lib-check.m4: Likewise.
63765         * m4/jm-macros.m4: Likewise.
63766         * m4/strftime.m4: Likewise.
63767
63768         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63769         AC_CHECK_DECLS, now that autoconf requires that.
63770
63771 2000-05-22  Jim Meyering  <meyering@lucent.com>
63772
63773         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63774         * m4/lstat.m4: Likewise.
63775
63776 2000-05-22  Jim Meyering  <meyering@lucent.com>
63777
63778         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63779
63780 2000-05-20  Jim Meyering  <meyering@lucent.com>
63781
63782         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63783         (jm_PREREQ): Use it.
63784
63785 2000-05-18  Jim Meyering  <meyering@lucent.com>
63786
63787         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63788         back, too, since it may have been modified by allocate_entry.
63789         (hash_delete): Rewrite to use neither the assignment operator
63790         nor the comma operator in an if-expression.
63791
63792 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63793
63794         * lib/closeout.c:
63795         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63796         Remove; no longer needed.
63797         "quotearg.h": Add include.
63798         (file_name): Do not bother to explicitly initialize to NULL; it's less
63799         efficient on some hosts.
63800         (close_stdout_status): Remove test as to whether stdout was already
63801         closed; it breaks for the case "echo x | sort >&-".
63802         Quote file name colons.
63803         Do not assume that _("write error") lacks format strings.
63804
63805 2000-05-15  Jim Meyering  <meyering@lucent.com>
63806
63807         * lib/version-etc.c (version_etc_copyright): Update the copyright
63808         string used in all --version output.
63809
63810 2000-05-14  Jim Meyering  <meyering@lucent.com>
63811
63812         * lib/closeout.c (close_stdout_set_file_name): New function.
63813         (close_stdout_status): Use new file-scoped global.
63814         Return right away if fstat says the stdout file descriptor is invalid.
63815         * lib/closeout.h (close_stdout_set_file_name): Declare.
63816
63817 2000-05-10  Jim Meyering  <meyering@lucent.com>
63818
63819         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63820         (close_stdout_set_status): New function.
63821         * lib/closeout.h (close_stdout_set_status): Declare.
63822
63823 2000-05-09  Jim Meyering  <meyering@lucent.com>
63824
63825         * m4/gettext.m4: Rename this...
63826         * m4/libintl.m4: ...to this.
63827
63828 2000-05-08  Jim Meyering  <meyering@lucent.com>
63829
63830         * lib/long-options.c: Don't include closeout.h.
63831         (parse_long_options): Don't call close_stdout for --version.
63832
63833 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63834
63835         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63836         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63837         2.1.3 bug.  This avoids a clash when files like regex.c define
63838         _GNU_SOURCE.
63839
63840 2000-05-06  Jim Meyering  <meyering@lucent.com>
63841
63842         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63843         (AC_REPLACE_FUNCS): Add strnlen.
63844
63845         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63846         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63847
63848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63849         AC_SEARCH_LIBS call for nanosleep.
63850         (LIB_NANOSLEEP): Set and AC_SUBST.
63851
63852 2000-05-06  Jim Meyering  <meyering@lucent.com>
63853
63854         * lib/strnlen.c: Undefine __strnlen and strnlen.
63855         [!weak_alias]: Define __strnlen to strnlen.
63856
63857         * lib/atexit.c: New file, from libiberty.
63858
63859 2000-05-06  Jim Meyering  <meyering@lucent.com>
63860
63861         * lib/closeout.c (close_stdout_status): Also check for errors on the
63862         stderr stream.
63863
63864 2000-05-05  Jim Meyering  <meyering@lucent.com>
63865
63866         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63867         AC_SEARCH_LIBS call for clock_gettime.
63868         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63869
63870         * m4/search-libs.m4: Update from autoconf.
63871
63872         su doesn't work on Solaris 2.6.
63873         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63874         <shadow.h>.  Reported by Dragos Harabor.
63875
63876 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63877
63878         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63879         memcpy instead of xmalloc, xrealloc, path_concat.
63880         (locale_charset): Treat empty environment variables as absent.
63881         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63882
63883 2000-05-04  Jim Meyering  <meyering@lucent.com>
63884
63885         * lib/getopt.c: Update from glibc.
63886         * lib/obstack.c: Likewise.
63887         * lib/obstack.h: Likewise.
63888         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63889         file
63890
63891         * lib/regex.h: Likewise.
63892         * lib/strndup.c: Likewise.
63893         * lib/strnlen.c: New file, from glibc.
63894
63895 2000-05-03  Jim Meyering  <meyering@lucent.com>
63896
63897         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63898
63899 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63900
63901         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63902         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63903         compile-time test, rather than inspecting host and OS, to
63904         decide whether to define _LARGEFILE_SOURCE.
63905
63906 2000-05-01  Jim Meyering  <meyering@lucent.com>
63907
63908         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63909
63910         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63911         Based on a patch from Bruno Haible.
63912
63913 2000-05-01  Jim Meyering  <meyering@lucent.com>
63914
63915         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63916
63917 2000-04-29  Jim Meyering  <meyering@lucent.com>
63918
63919         * lib/path-concat.c: Declare strdup only if it's not defined.
63920         * lib/canon-host.c: Likewise.
63921
63922 2000-04-28  Jim Meyering  <meyering@lucent.com>
63923
63924         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63925         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63926         is included first, then limits.h is included by locale.h by libintl.h.
63927         From John David Anglin.
63928
63929 2000-04-25  Jim Meyering  <meyering@lucent.com>
63930
63931         * lib/makepath.c (S_IRWXUGO): Define.
63932         (make_path): Always perform explicit chmod if MODE specifies any
63933         of the `special' permission bits.  Prompted by a bug report against
63934         install from Mate Wierdl and Joost van Baal.
63935
63936 2000-04-18  Jim Meyering  <meyering@lucent.com>
63937
63938         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63939         (jm_PREREQ): Use it.
63940
63941 2000-04-18  Jim Meyering  <meyering@lucent.com>
63942
63943         * lib/README: New file.
63944
63945         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63946         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63947
63948 2000-04-17  Jim Meyering  <meyering@lucent.com>
63949
63950         Get it right :-)
63951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63952         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63953         Suggestion from Akim Demaille.
63954
63955 2000-04-17  Jim Meyering  <meyering@lucent.com>
63956
63957         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63958         the definition of it to rpl_strftime also defined-away the system's
63959         declaration.
63960
63961 2000-04-15  Jim Meyering  <meyering@lucent.com>
63962
63963         Use `C' to denote so-called `contiguous' files, the same way
63964         that tar does.
63965         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63966         (ftypelet): Use S_ISCTG.
63967         From Michael Deutschmann.
63968
63969 2000-04-14  Jim Meyering  <meyering@lucent.com>
63970
63971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63972         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63973         clobbered.
63974
63975 2000-04-14  Jim Meyering  <meyering@lucent.com>
63976
63977         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63978
63979 2000-04-13  Jim Meyering  <meyering@lucent.com>
63980
63981         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63982         AH_VERBATIM to insert required #ifndef into config.h.in.
63983         Suggestion from Akim Demaille.
63984
63985 2000-04-12  Jim Meyering  <meyering@lucent.com>
63986
63987         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63988         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63989         Christian Krackowizer.
63990
63991         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63992         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63993         (AC_SYS_LARGEFILE): Require.
63994         (AM_C_PROTOTYPES): Require.
63995
63996 2000-04-08  Jim Meyering  <meyering@lucent.com>
63997
63998         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63999         names don't conflict.  Reported by Eli Zaretskii.
64000
64001 2000-04-07  Jim Meyering  <meyering@lucent.com>
64002
64003         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64004         sys/types.h, to work around system header problems on AIX 3.2.5.
64005         From Bruno Haible.
64006
64007 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64008
64009         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64010         bug.  Deal with the different error behavior of Irix iconv.
64011
64012 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64013
64014         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64015         IRIX if the installer said otherwise.
64016
64017 2000-04-05  Jim Meyering  <meyering@lucent.com>
64018
64019         Portability tweaks required for ultrix4.3.
64020         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64021         (jm_CHECK_DECLS): Add getutent to the list of functions.
64022         (_jm_DECL_HEADERS): Add utmpx.h.
64023         From John David Anglin.
64024
64025         * m4/strftime.m4: Back out the 2000-04-02 change.
64026         Instead of that change, simply undefine putenv in the test program.
64027
64028 2000-04-05  Jim Meyering  <meyering@lucent.com>
64029
64030         Portability tweaks required for ultrix4.3.
64031         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64032         getutent.
64033         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64034         * lib/canon-host.c: Declare strdup.
64035         * lib/path-concat.c: Likewise.
64036         From John David Anglin.
64037
64038 2000-04-04  Jim Meyering  <meyering@lucent.com>
64039
64040         Be more DOS 8.3-friendly.
64041         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64042         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64043         * lib/Makefile.am: Reflect renaming.
64044         Reported by Eli Zaretskii.
64045
64046         Use a temporary file name that won't clash with `charset.alias'
64047         in the DOS 8.3 name space.
64048         * lib/Makefile.am (charset_tmp): Define.
64049         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64050         (uninstall-local): Likewise.
64051         Reported by Eli Zaretskii.
64052
64053 2000-04-03  Jim Meyering  <meyering@lucent.com>
64054
64055         * m4/gettext.m4: Fix typo in comment.
64056
64057         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64058         textutils/configure.in).  Suggestion from Paul Eggert.
64059         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64060
64061 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64062
64063         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64064         variable in the shell rather than using putenv, which isn't
64065         portable.  This avoids the configure-time inter-test dependency
64066         on the potentially-renamed putenv function.
64067
64068 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64069
64070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64071         before checking struct stat.st_blksize, so that
64072         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64073
64074 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64075
64076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64077         since strftime.c uses HAVE_STRFTIME to decide whether to use
64078         the underlying strftime.
64079
64080 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64081
64082         * lib/time/strftime.c (my_strftime): Make sure we call the system
64083         strftime, not ourselves, when invoking the underlying strftime.
64084
64085 2000-03-24  Jim Meyering  <meyering@lucent.com>
64086
64087         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64088         (charset_alias): Define.
64089         (install-exec-local): Factor out common code.
64090         (uninstall-local): Split lines longer than 80.
64091         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64092         (SUFFIXES): Define.
64093         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64094         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64095
64096 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64097
64098         * lib/config.charset: Output a line containing "Packages using this
64099         file".
64100         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64101         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64102         ref-del.sed): New rules.
64103
64104 2000-03-17  Jim Meyering  <meyering@lucent.com>
64105
64106         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64107         Otherwise, include <strings.h>
64108
64109 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64110
64111         * lib/unicodeio.c (utf8_wctomb): New function.
64112         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64113         format instead of in UCS-4 with platform dependent endianness.
64114
64115 2000-03-10  Jim Meyering  <meyering@lucent.com>
64116
64117         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64118         From Marco Franzen.
64119
64120 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64121
64122         * lib/savedir.c (savedir): Work even if directory size is
64123         negative; this can happen with some screwy NFS configurations.
64124
64125 2000-03-06  Jim Meyering  <meyering@lucent.com>
64126
64127         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64128         if it's NULL (because we ran out of memory).  From Bruno Haible.
64129
64130 2000-03-05  Jim Meyering  <meyering@lucent.com>
64131
64132         * lib/localcharset.c ("path-concat.h"): Include.
64133         (get_charset_aliases): Use path_concat instead of ANSI string
64134         concatenation.
64135
64136         * lib/unicodeio.h (PARAMS): Define.
64137         Use it to guard prototype.
64138
64139 2000-03-04  Jim Meyering  <meyering@lucent.com>
64140
64141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64142         for lib/localcharset.c.
64143
64144 2000-03-04  Jim Meyering  <meyering@lucent.com>
64145
64146         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64147         installing into it.
64148         (uninstall-local): Uncomment this rule so `make distcheck' works
64149         once again.
64150
64151         * lib/unicodeio.c (<errno.h>): Include it.
64152         (errno): Declare if not defined.
64153
64154         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64155
64156         * lib/config.charset: New version, incorporating remarks from a linux
64157         i18n mailing list.  From Bruno Haible.
64158
64159 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64160
64161         * m4/codeset.m4: New file.
64162         * m4/iconv.m4: New file.
64163         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64164
64165 2000-03-03  Jim Meyering  <meyering@lucent.com>
64166
64167         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64168
64169 2000-03-02  Jim Meyering  <meyering@lucent.com>
64170
64171         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64172         the messages come out on separate lines.
64173
64174         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64175         rather than jm_CHECK_DECLARATIONS.
64176         * m4/decl.m4: Remove now-unused file.
64177
64178         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64179         geteuid.
64180
64181 2000-03-02  Jim Meyering  <meyering@lucent.com>
64182
64183         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64184
64185 2000-03-01  Jim Meyering  <meyering@lucent.com>
64186
64187         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64188         * lib/unicodeio.c: Likewise.
64189
64190 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64191
64192         * lib/config.charset: New file.
64193         * lib/localcharset.c: New file.
64194         * lib/unicodeio.h, lib/unicodeio.c: New files.
64195         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64196         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64197         (noinst_HEADERS): Add unicodeio.h.
64198         (all-local, install-exec-local, charset.alias): New targets.
64199
64200 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64201
64202         * lib/quotearg.c (ALERT_CHAR): New macro.
64203         (quotearg_buffer_restyled): Use it.
64204
64205 2000-02-27  Jim Meyering  <meyering@lucent.com>
64206
64207         * m4/check-decl.m4: Add getenv to the list.
64208
64209 2000-02-27  Jim Meyering  <meyering@lucent.com>
64210
64211         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64212         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64213
64214         * lib/backupfile.c: Guard inclusion of stdlib.h with
64215         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64216         Declare malloc if needed.
64217
64218         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64219         `#ifndef HAVE_DECL..'
64220         now that autoconf always defines the HAVE_DECL_ symbols.
64221         * lib/human.c: Likewise.
64222         * lib/same.c: Likewise.
64223         * lib/strtoumax.c: Likewise.
64224
64225         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64226         declaration check was not run.
64227         * lib/hash.c: Likewise.
64228         * lib/human.c: Likewise.
64229         * lib/same.c: Likewise.
64230         * lib/strtoumax.c: Likewise.
64231
64232         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64233         `.', then first look up the entire `.'-containing string as a login
64234         name.
64235
64236 2000-02-23  Jim Meyering  <meyering@lucent.com>
64237
64238         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64239         in place of my hack.
64240
64241 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64242
64243         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64244         (textint): New typedef.
64245         (parser_control): Member year changed from int to textint.
64246         All uses changed.
64247         (YYSTYPE): Removed; replaced by %union with int and textint members.
64248         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64249         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64250         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64251         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64252         (date, number, to_year): Use width of number in digits, not its value,
64253         to determine whether it's a 2-digit year, or a 2-digit time.
64254         (yylex): Store number of digits of numeric tokens.
64255         Reported by John Kendall.
64256
64257         (parser_control): Changed from struct parser_control to typedef (for
64258         consistency).  All uses changed.
64259
64260         (tID): Removed; not used.
64261         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64262
64263 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64264
64265         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64266         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64267
64268 2000-02-12  Jim Meyering  <meyering@lucent.com>
64269
64270         * lib/userspec.c (ISDIGIT): Define it.
64271         (isdigit): Remove definition.
64272         (is_number): Use ISDIGIT, not isdigit.
64273         <libintl.h>: Include.
64274         (_ and N_): Define.
64275         (parse_user_spec): Mark translatable strings.
64276
64277 2000-02-10  Jim Meyering  <meyering@lucent.com>
64278
64279         With these changes, nanosleep.[ch] are finally enough like the other
64280         lib/* replacement files to compile on a few more losing systems.
64281
64282         * lib/nanosleep.h: Don't include config.h.
64283         Remove prototype from declaration of nanosleep.
64284         (PARAMS): Remove now-unneeded definition.
64285         * lib/nanosleep.c: #undef nanosleep.
64286         (rpl_nanosleep): Rename from nanosleep.
64287
64288 2000-02-10  Jim Meyering  <meyering@lucent.com>
64289
64290         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64291         gnu_nanosleep to rpl_nanosleep.
64292
64293 2000-02-09  Jim Meyering  <meyering@lucent.com>
64294
64295         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64296         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64297
64298 2000-02-08  Akim Demaille  <akim@epita.fr>
64299
64300         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64301         `[' and `]' and remove uses of `changequote'.
64302         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64303         (AC_SYS_LARGEFILE): Likewise.
64304         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64305         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64306         of changequote.
64307         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64308         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64309         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64311
64312 2000-02-05  Jim Meyering  <meyering@lucent.com>
64313
64314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64315         Remove explicit use of AC_HEADER_TIME.  It is required by
64316         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64317         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64318         in autoconf whereby the expansion of the latter ended up preceding
64319         the expansion of its prerequisite, AC_HEADER_TIME.
64320         Reported by Volker Borchert.
64321
64322 2000-02-03  Jim Meyering  <meyering@lucent.com>
64323
64324         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64325
64326 2000-02-03  Jim Meyering  <meyering@lucent.com>
64327
64328         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64329         rather than with `#if HAVE_UTMPNAME'.
64330
64331 2000-02-02  Jim Meyering  <meyering@lucent.com>
64332
64333         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64334         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64335         Reported by Eli Zaretskii.
64336
64337 2000-02-01  Jim Meyering  <meyering@lucent.com>
64338
64339         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64340
64341 2000-01-31  Jim Meyering  <meyering@lucent.com>
64342
64343         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64344         functions.  Add the time.h and sys/time.h headers along with the
64345         AC_REQUIRE'ment of AC_HEADER_TIME.
64346
64347 2000-01-31  Jim Meyering  <meyering@lucent.com>
64348
64349         * lib/nanosleep.h (nanosleep): Guard declaration with
64350         `#if ! HAVE_DECL_NANOSLEEP'.
64351         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64352         the declaration in that vendor's sys/timers.h.
64353         Reported by Christian Krackowizer.
64354
64355         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64356         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64357         (ISPRINT): Likewise.
64358         Reported by Tom Tromey.
64359
64360 2000-01-30  Jim Meyering  <meyering@lucent.com>
64361
64362         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64363
64364         * m4/prereq.m4 (utmp_includes): Define.
64365         Check for ut_user and ut_name members in both struct utmpx
64366         and struct utmp.
64367
64368 2000-01-30  Jim Meyering  <meyering@lucent.com>
64369
64370         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64371         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64372         header files where only utmpx.ut_user is declared.
64373
64374         * lib/readutmp.h (UT_USER): Define.
64375
64376 2000-01-29  Jim Meyering  <meyering@lucent.com>
64377
64378         * m4/lib-check.m4: New file containing library-related checks from
64379         fileutils and sh-utils (textutils had none).
64380
64381 2000-01-28  Jim Meyering  <meyering@lucent.com>
64382
64383         * m4/perl.m4: Change format of warning message to look more like that
64384         from the missing script.  Suggestion from François Pinard.
64385
64386 2000-01-25  Jim Meyering  <meyering@lucent.com>
64387
64388         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64389         well as time.h in the compile check.
64390         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64391         Fix typo in cross-compiling case: s/yes/no/.
64392
64393 2000-01-23  Jim Meyering  <meyering@lucent.com>
64394
64395         * m4/jm-macros.m4: Move df-related tests here from
64396         fileutils/configure.in
64397
64398         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64399         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64400
64401         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64402         s/space/ac_fsusage_space/.
64403         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64404
64405         * m4/ftruncate.m4: New file (derived from part of
64406         fileutils/configure.in).
64407         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64408         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64409
64410         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64411         AC_SUBST these here, rather than just in sh-util/configure.in, so
64412         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64413         all the same.
64414         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64415         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64416         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64417         (AC_SUBST(POW_LIBM)): Likewise.
64418         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64419
64420 2000-01-23  Jim Meyering  <meyering@lucent.com>
64421
64422         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64423         obstack.c.
64424
64425 2000-01-22  Jim Meyering  <meyering@lucent.com>
64426
64427         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64428
64429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64430
64431         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64432         configure.in
64433         (AC_CHECK_HEADERS): Likewise for sh-utils.
64434         (AC_CHECK_HEADERS): Likewise for textutils.
64435         Merge the three lists of headers.
64436
64437         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64438         from fileutils' configure.in.
64439
64440         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64441         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64442         check-decl.m4.
64443
64444         * m4/check-decl.m4: Use #if rather than #ifdef.
64445         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64446         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64447         (_jm_DECL_HEADERS): Define new function.
64448         (jm_CHECK_DECLARATIONS): Require it.
64449
64450 2000-01-22  Jim Meyering  <meyering@lucent.com>
64451
64452         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64453         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64454         Required for some AIX systems.  Reported by Christian Krackowizer.
64455         [TESTING] (main): New function.
64456
64457         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64458         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64459         letters.
64460
64461         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64462         iswprint.
64463
64464         * lib/strverscmp.c (ISDIGIT): Define.
64465         (strverscmp): Use ISDIGIT, not isdigit.
64466
64467 2000-01-19  Jim Meyering  <meyering@lucent.com>
64468
64469         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64470         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64471         defines `struct timespec' in <sys/time.h>
64472
64473         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64474         Thanks to Akim for explaining.
64475
64476 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64477
64478         * lib/nanosleep.c (nanosleep):
64479         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64480         POSIX.1 doesn't require SA_INTERRUPT and some systems
64481         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64482         it's been part of POSIX.1 since day 1 (in 1988).
64483
64484 2000-01-17  Jim Meyering  <meyering@lucent.com>
64485
64486         * lib/interlock: Remove unused file.  Reported by François Pinard.
64487
64488 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64489
64490         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64491         alert, backslash, formfeed, and vertical tab unnecessarily in
64492         shell quoting style.
64493
64494 2000-01-16  Jim Meyering  <meyering@lucent.com>
64495
64496         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64497         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64498         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64499         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64500
64501 2000-01-16  Jim Meyering  <meyering@lucent.com>
64502
64503         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64504         because the latter didn't work.
64505
64506 2000-01-15  Jim Meyering  <meyering@lucent.com>
64507
64508         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64509         (AC_REPLACE_FUNCS): Add memcpy and memset.
64510         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64511         Add strpbrk.
64512         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64513
64514 2000-01-12  Jim Meyering  <meyering@lucent.com>
64515
64516         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64517         (jm_PREREQ): Use it.
64518         (jm_PREREQ_READUTMP): New macro.
64519         (jm_PREREQ): Use it.
64520
64521 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64522
64523         Quote multibyte characters correctly.
64524         * m4/c-bs-a.m4: New file.
64525         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64526         (jm_PREREQ): Use it.
64527
64528 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64529
64530         * m4/uintmax_t.m4: Port to autoconf 2.13.
64531
64532 2000-01-08  Jim Meyering  <meyering@ascend.com>
64533
64534         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64535         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64536
64537 2000-01-04  Jim Meyering  <meyering@ascend.com>
64538
64539         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64540         jm_STRUCT_DIRENT_D_TYPE.
64541         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64542         jm_STRUCT_DIRENT_D_INO.
64543         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64544         jm_STRUCT_UTIMBUF.
64545         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64546         renamings.
64547         * m4/utime.m4: Likewise.
64548
64549         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64550         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64551
64552 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64553
64554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64555         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64556
64557 2000-01-02  Jim Meyering  <meyering@ascend.com>
64558
64559         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64560         remember if this is necessary.
64561
64562 1999-12-26  Jim Meyering  <meyering@ascend.com>
64563
64564         * m4/jm-macros.m4: Use it here.
64565         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64566
64567 1999-12-23  Jim Meyering  <meyering@ascend.com>
64568
64569         * m4/jm-macros.m4: Check for clock_gettime (moved from
64570         fileutils/configure.in)
64571         Check for gettimeofday.
64572
64573 1999-12-20  Jim Meyering  <meyering@ascend.com>
64574
64575         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64576         autoconf-2.14a-1999-12-20.
64577
64578 1999-12-19  Jim Meyering  <meyering@ascend.com>
64579
64580         * m4/lstat-slash.m4: New file.
64581         * m4/jm-macros.m4: Use the new macro:
64582         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64583
64584 1999-12-07  Jim Meyering  <meyering@ascend.com>
64585
64586         * m4/perl.m4: Require that File::Compare be available, too.
64587         Too many systems seem to lack it.
64588
64589         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64590         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64591
64592 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64593
64594         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64595         problem with the QNX 4.25 shell, which doesn't propagate exit
64596         status of failed commands inside shell assignments.
64597
64598 1999-11-17  Jim Meyering  <meyering@ascend.com>
64599
64600         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64601
64602 1999-11-07  Jim Meyering  <meyering@ascend.com>
64603
64604         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64605
64606 1999-11-06  Jim Meyering  <meyering@ascend.com>
64607
64608         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64609         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64610
64611 1999-11-05  Jim Meyering  <meyering@ascend.com>
64612
64613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64614         configure.in of textutils, fileutils, and sh-utils into this one
64615         (shared between those packages) file.
64616         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64617         AC_STRUCT_ST_BLKSIZE.
64618
64619 1999-11-03  Jim Meyering  <meyering@ascend.com>
64620
64621         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64622         of AC_CHECK_TYPE checks includes unistd.h.
64623         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64624         Suggestion from Akim Demaille.
64625
64626 1999-10-30  Jim Meyering  <meyering@ascend.com>
64627
64628         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64629         m4-quoted string.
64630         * m4/ls-mntd-fs.m4: Likewise.
64631         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64632         * m4/jm-winsz1.m4: Likewise.
64633
64634         * m4/const.m4: Remove file, since the fix made it into the experimental
64635         version of autoconf.
64636         * m4/mktime.m4: Likewise.
64637
64638         * m4/check-type.m4: Remove file, now that the latest version of
64639         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64640
64641         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64642         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64643         AC_CHECK_TYPE.
64644
64645 1999-10-04  Jim Meyering  <meyering@ascend.com>
64646
64647         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64648
64649 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64650
64651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64652         2.95.1 bug with HP-UX 10.20.
64653
64654 1999-09-17  Jim Meyering  <meyering@ascend.com>
64655
64656         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64657         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64658         due to missing strdup (against sh-utils-2.0).
64659
64660 1999-08-29  Jim Meyering  <meyering@ascend.com>
64661
64662         * m4/jm-macros.m4: Require jm_BISON.
64663         * m4/bison.m4: New file.
64664
64665 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64666
64667         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64668         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64669
64670 1999-08-05  Jim Meyering  <meyering@ascend.com>
64671
64672         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64673         to avoid conflicts with `conftest' on 8+3 filesystems.
64674         Suggestion from Eli Zaretskii.
64675
64676 1999-08-04  Jim Meyering  <meyering@ascend.com>
64677
64678         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64679         fileutils and sh-utils (textutils's getline test was inadequate).
64680         (AM_FUNC_GETLINE): Run this test.
64681         (AC_CHECK_FUNCS): Check for getdelim.
64682         Reported by Bob Proulx.
64683
64684 1999-08-02  Jim Meyering  <meyering@ascend.com>
64685
64686         * m4/jm-macros.m4: Add a comment.
64687
64688 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64689
64690         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64691         <inttypes.h> defines strtoumax as a macro (and not as a
64692         function).
64693
64694 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64695
64696         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64697         that we can shift, multiply and divide unsigned long long
64698         values; Ultrix cc can't do it.
64699
64700 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64701
64702         * m4/mktime.m4: New file, which is a preview of what should appear
64703         in the next public autoconf release.
64704
64705 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64706
64707         * m4/lfs.m4: Remove this file.
64708         * m4/largefile.m4: New file.  It contains the old contents of
64709         lfs.m4, except that all names with prefix AC_LFS have been
64710         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64711         compatible with future autoconf versions.  Also, some minor m4
64712         quoting problems have been fixed.
64713
64714 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64715
64716         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64717         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64718         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64719         and simplify the shell code.
64720
64721 1999-08-01  Jim Meyering  <meyering@ascend.com>
64722
64723         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64724         m4.
64725
64726 1999-07-20  Jim Meyering  <meyering@ascend.com>
64727
64728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64729
64730 1999-07-15  Jim Meyering  <meyering@ascend.com>
64731
64732         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64733
64734 1999-05-22  Jim Meyering  <meyering@ascend.com>
64735
64736         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64737
64738 1999-05-20  Jim Meyering  <meyering@ascend.com>
64739
64740         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64741         Add a colon after each `then' in case $4 is empty.
64742
64743 1999-05-16  Jim Meyering  <meyering@ascend.com>
64744
64745         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64746
64747 1999-05-10  Jim Meyering  <meyering@ascend.com>
64748
64749         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64750
64751         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64752         AC_FUNC_MKTIME.
64753
64754 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64755
64756         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64757
64758 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64759
64760         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64761         not CPPFLAGS, so that linking works correctly in IRIX.
64762
64763 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64764
64765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64766
64767 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64768
64769         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64770         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64771         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64772         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64773         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64774
64775         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64776
64777 1999-04-20  Jim Meyering  <meyering@ascend.com>
64778
64779         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64780         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64781         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64782
64783 1999-04-18  Jim Meyering  <meyering@ascend.com>
64784
64785         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64786         * m4/jm-macros.m4: Use it.
64787
64788 1999-04-06  Jim Meyering  <meyering@ascend.com>
64789
64790         * m4/strftime.m4: Remove test for %f.
64791
64792 1999-03-29  Jim Meyering  <meyering@ascend.com>
64793
64794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64795         superset of the AC_TYPE_* checks in the textutils, fileutils,
64796         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64797         AC_TYPE_PID_T.
64798
64799 1999-03-28  Jim Meyering  <meyering@ascend.com>
64800
64801         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64802         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64803         replaced e.g., in the *.sh files of the sh-utils.
64804
64805 1999-03-20  Jim Meyering  <meyering@ascend.com>
64806
64807         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64808         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64809         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64810
64811 1999-03-19  Jim Meyering  <meyering@ascend.com>
64812
64813         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64814
64815 1999-03-12  Jim Meyering  <meyering@ascend.com>
64816
64817         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64818
64819 1999-03-07  Jim Meyering  <meyering@ascend.com>
64820
64821         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64822         declared.
64823
64824 1999-02-17  Jim Meyering  <meyering@ascend.com>
64825
64826         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64827         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64828
64829 1999-02-07  Jim Meyering  <meyering@ascend.com>
64830
64831         * m4/group-member.m4: New file -- extracted from sh-utils'
64832         configure.in.
64833
64834         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64835         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64836
64837 1999-02-06  Jim Meyering  <meyering@ascend.com>
64838
64839         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64840         * m4/fnmatch.m4: Likewise.
64841         * m4/getgroups.m4: Likewise.
64842         * m4/lstat.m4: Likewise.
64843         * m4/malloc.m4: Likewise.
64844         * m4/putenv.m4: Likewise.
64845         * m4/realloc.m4: Likewise.
64846         * m4/regex.m4: Likewise.
64847         * m4/stat.m4: Likewise.
64848         * m4/strftime.m4: Likewise.
64849         Suggestion from Alain Magloire.
64850
64851         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64852         * m4/fnmatch.m4: Likewise.
64853         * m4/getgroups.m4: Likewise.
64854         * m4/getline.m4: Likewise.
64855         * m4/lstat.m4: Likewise.
64856         * m4/malloc.m4: Likewise.
64857         * m4/memcmp.m4: Likewise.
64858         * m4/putenv.m4: Likewise.
64859         * m4/realloc.m4: Likewise.
64860         * m4/regex.m4: Likewise.
64861         * m4/stat.m4: Likewise.
64862         * m4/strftime.m4: Likewise.
64863         Suggestion from Alain Magloire.
64864
64865         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64866         an argument.
64867
64868         * m4/regex.m4: Add a run-time Test for proper operation of
64869         re_compile_pattern.
64870
64871 1999-01-31  Jim Meyering  <meyering@ascend.com>
64872
64873         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64874
64875 1999-01-30  Jim Meyering  <meyering@ascend.com>
64876
64877         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64878
64879         * m4/jm-mktime.m4: Make this a wrapper around the official
64880         AM_FUNC_MKTIME rather than my private copy, now that the official one
64881         is up to date.
64882         * m4/mktime.m4: Remove file.
64883
64884         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64885         * m4/uptime.m4: Likewise.
64886         * m4/uintmax_t.m4: Likewise.
64887
64888 1999-01-28  Jim Meyering  <meyering@ascend.com>
64889
64890         * m4/jm-macros.m4: Use jm_AFS.
64891         * m4/afs.m4: New file (from fileutils' configure.in).
64892
64893         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64894         * m4/chown.m4: Likewise.
64895         * m4/d-ino.m4: Likewise.
64896         * m4/d-type.m4: Likewise.
64897         * m4/fnmatch.m4: Likewise.
64898         * m4/getgroups.m4: Likewise.
64899         * m4/gettext.m4: Likewise.
64900         * m4/jm-mktime.m4: Likewise.
64901         * m4/jm-winsz2.m4: Likewise.
64902         * m4/lcmessage.m4: Likewise.
64903         * m4/ls-mntd-fs.m4: Likewise.
64904         * m4/malloc.m4: Likewise.
64905         * m4/memcmp.m4: Likewise.
64906         * m4/putenv.m4: Likewise.
64907         * m4/realloc.m4: Likewise.
64908         * m4/st_mtim.m4: Likewise.
64909         * m4/strftime.m4: Likewise.
64910
64911 1999-01-16  Jim Meyering  <meyering@ascend.com>
64912
64913         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64914         (ARGMATCH_DIE_DECL): Define.
64915
64916 1999-01-12  Jim Meyering  <meyering@ascend.com>
64917
64918         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64919         Reported by Lars Hecking.
64920
64921 1999-01-10  Jim Meyering  <meyering@ascend.com>
64922
64923         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64924         gross kludge.
64925         * m4/inttypes_h.m4: Likewise.
64926         * m4/lstat.m4: Likewise.
64927         * m4/malloc.m4: Likewise.
64928         * m4/readdir.m4: Likewise.
64929         * m4/realloc.m4: Likewise.
64930         * m4/st_dm_mode.m4: Likewise.
64931         * m4/stat.m4: Likewise.
64932         * m4/utimbuf.m4: Likewise.
64933         * m4/utimes.m4: Likewise.
64934
64935         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64936         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64937         comments in config.h.in are meaningful.
64938
64939         * m4/jm-macros.m4: Require autoconf-2.13 here.
64940
64941         * m4/regex.m4: By default, don't use the included regex.c on systems
64942         with glibc 2.  Suggestion from Uli Drepper.
64943
64944 1999-01-02  Jim Meyering  <meyering@ascend.com>
64945
64946         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64947
64948 1998-12-18  Jim Meyering  <meyering@ascend.com>
64949
64950         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64951         Based on a suggestion from Lars Hecking.
64952
64953 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64954
64955         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64956
64957 1998-11-16  Jim Meyering  <meyering@ascend.com>
64958
64959         * m4/lfs.m4: Double-quote the `uname...` expression.
64960
64961 1998-11-14  Jim Meyering  <meyering@ascend.com>
64962
64963         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64964         * m4/stat.m4: Likewise.
64965
64966 1998-11-03  Jim Meyering  <meyering@ascend.com>
64967
64968         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64969         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64970
64971 1998-10-18  Jim Meyering  <meyering@ascend.com>
64972
64973         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64974
64975 1998-10-17  Jim Meyering  <meyering@ascend.com>
64976
64977         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64978         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64979         calls for those previously hard-coded headers.  Instead, take a new
64980         parameter.
64981         (jm_CHECK_DECLARATIONS): Reflect interface change.
64982         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64983         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64984
64985         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64986
64987 1998-10-14  Jim Meyering  <meyering@ascend.com>
64988
64989         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64990         instead of "TZ=America/Vancouver".  From Paul Eggert.
64991
64992 1998-10-11  Jim Meyering  <meyering@ascend.com>
64993
64994         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64995         This adds a test for a recently added compatibility fix for mktime.c.
64996         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64997
64998 1998-09-27  Jim Meyering  <meyering@ascend.com>
64999
65000         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65001
65002         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65003         ../configure.in, including a change from Gordon Matzigkeit to allow
65004         cross-compiling for the Hurd.
65005
65006         * m4/glibc.m4: New file/macro to test for the GNU C Library
65007         versions 1 and 2.  From Gordon Matzigkeit.
65008         Indent.
65009
65010 1998-09-21  Jim Meyering  <meyering@ascend.com>
65011
65012         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65013
65014 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65015
65016         Port nanosecond-resolution times to UnixWare 2.1.2 and
65017         pedantic Solaris 2.6.
65018
65019         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65020         AC_STRUCT_ST_MTIM.
65021         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65022         Generate name of ns member, instead of just 1 or undef.
65023         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65024
65025 1998-08-15  Jim Meyering  <meyering@ascend.com>
65026
65027         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65028         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65029         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65030         instead of jm_TYPE_SSIZE_T.
65031
65032 1998-08-12  Jim Meyering  <meyering@ascend.com>
65033
65034         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65035
65036 1998-08-02  Jim Meyering  <meyering@ascend.com>
65037
65038         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65039         in acconfig.h manually.
65040
65041 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65042
65043         * m4/st_mtim.m4: New file.
65044
65045 1998-07-28  Jim Meyering  <meyering@ascend.com>
65046
65047         * m4/utimes.m4: Undef stat.
65048
65049 1998-07-25  Jim Meyering  <meyering@ascend.com>
65050
65051         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65052         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65053
65054 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65055
65056         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65057         uid and gid actually remain unchanged.
65058
65059 1998-07-07  Jim Meyering  <meyering@ascend.com>
65060
65061         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65062
65063 1998-07-04  Jim Meyering  <meyering@ascend.com>
65064
65065         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65066         to prove that this macro can be used in packages without regex.c.
65067
65068 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65069
65070         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65071         is to be used.
65072
65073 1998-07-03  Jim Meyering  <meyering@ascend.com>
65074
65075         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65076
65077         * m4/gettext.m4: New file -- from gettext-0.10.35.
65078         * m4/lcmessage.m4: Likewise.
65079         * m4/progtest.m4: Likewise.
65080
65081         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65082         * m4/jm-macros.m4: Require the new macro.
65083
65084 1998-06-29  Jim Meyering  <meyering@ascend.com>
65085
65086         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65087         for the definition of NGROUPS (used in a system header included
65088         by sys/mount.h).
65089
65090 1998-06-28  Jim Meyering  <meyering@ascend.com>
65091
65092         * m4/ls-mntd-fs.m4: New file.
65093         * m4/fstypename.m4: New file.
65094
65095         * m4/jm-macros.m4: Require the new macro.
65096         * m4/jm-glibc-io.m4: New file.
65097
65098 1998-05-19  Jim Meyering  <meyering@ascend.com>
65099
65100         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65101         * m4/lchown.m4: New file.
65102
65103         * m4/Makefile.am.in: New file.
65104         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65105
65106 1998-05-14  Jim Meyering  <meyering@ascend.com>
65107
65108         * m4/Makefile.am (EXTRA_DIST): Add them.
65109         * m4/jm-macros.m4: New file.
65110         * m4/utimbuf.m4: New file.
65111
65112 1998-05-12  Jim Meyering  <meyering@ascend.com>
65113
65114         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65115
65116 1998-05-11  Jim Meyering  <meyering@ascend.com>
65117
65118         * m4/isc-posix.m4: New file.
65119
65120 1998-05-10  Jim Meyering  <meyering@ascend.com>
65121
65122         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65123
65124 1998-05-09  Jim Meyering  <meyering@ascend.com>
65125
65126         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65127         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65128         with automake.
65129
65130         * m4/ssize_t.m4: New file.
65131         * m4/mktime.m4: Remove file -- the new automake has this now.
65132
65133 1998-04-26  Jim Meyering  <meyering@ascend.com>
65134
65135         * m4/assert.m4: New file.
65136         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65137
65138 1998-04-05  Jim Meyering  <meyering@ascend.com>
65139
65140         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65141         (jm_PREREQ): Use it here.
65142
65143 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65144
65145         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65146         in acconfig.h.
65147
65148 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65149
65150         * m4/prereq.m4: New file.
65151         * m4/error.m4: New file.
65152         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65153
65154 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65155
65156         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65157         cache-check for the same variable -- that defeated the purpose of
65158         the test; the test program was never run.  This was a problem only
65159         on systems with losing getline functions -- HP-UX 10.20 is one.
65160         Reported by Bjorn Helgaas.
65161
65162 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65163
65164         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65165
65166 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65167
65168         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65169
65170         * m4/const.m4: New file.  Use an initializer in this declaration
65171         typedef int charset[2]; const charset x;
65172         Reported by Bob Glickstein.
65173
65174 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65175
65176         * m4/chown.m4: Fix reversed types on -1 args to chown.
65177         From Kaveh Ghazi.
65178
65179 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65180
65181         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65182         Add lseek and memchr.
65183
65184         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65185         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65186         have a 20-character limit on names.
65187
65188 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65189
65190         * m4/inttypes_h.m4: New file.
65191         * m4/uintmax_t.m4: New file.
65192         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65193
65194
65195         -----
65196
65197         Local Variables:
65198         coding: utf-8
65199         End:
65200
65201         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65202
65203         Copying and distribution of this file, with or without
65204         modification, are permitted provided the copyright notice
65205         and this notice are preserved.