stdlib: Avoid compilation failure of c-strtold on mingw.
[pspp] / ChangeLog
1 2010-04-03  Bruno Haible  <bruno@clisp.org>
2
3         stdlib: Avoid compilation failure of c-strtold on mingw.
4         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5
6 2010-04-03  Bruno Haible  <bruno@clisp.org>
7
8         locale: Make C++ tests work on Cygwin and mingw.
9         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
10         cannot provide the function.
11         Reported by Simon Josefsson.
12
13 2010-04-03  Bruno Haible  <bruno@clisp.org>
14
15         localename: Port to MacOS X 10.6.
16         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17         memory layout of the locales in MacOS X 10.6 as well.
18         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19
20 2010-04-02  Bruno Haible  <bruno@clisp.org>
21
22         gnulib-tool: Ensure that long-running tests are executed last.
23         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24         running tests after the one for the other tests.
25
26 2010-04-02  Bruno Haible  <bruno@clisp.org>
27
28         gnulib-tool: Ensure the tests in the main directory are executed first.
29         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30         start with the current directory.
31
32 2010-04-02  Bruno Haible  <bruno@clisp.org>
33
34         Tests for module 'havelib', moved here from GNU gettext.
35         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36         modifications.
37         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
38         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
39         with modifications.
40         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
41         modifications.
42         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
43         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
44         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
45         with modifications.
46         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
47         with modifications.
48         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
49         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
50         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
51         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
52         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
54         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
55         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
56         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
57         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
58         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
59         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
60         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
61         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
62         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
63         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
64         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65         with modifications.
66         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
67         with modifications.
68         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
71         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
72         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
73         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
74         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
75         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
76         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
77         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
78         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
79         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
80         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
81         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
82         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
83         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
84         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
85         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
86         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
87         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
88         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
89         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
90         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
91         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
92         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
93         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
94         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
95         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
96         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
97         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
98         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
99         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
100         * tests/havelib/rpathx/rpathx.c: New file, from
101         gettext/autoconf-lib-link.
102         * tests/havelib/rpathx/Makefile.am: New file, from
103         gettext/autoconf-lib-link.
104         * tests/havelib/rpathx/configure.ac: New file, from
105         gettext/autoconf-lib-link with modifications.
106         * tests/havelib/rpathy/rpathy.c: New file, from
107         gettext/autoconf-lib-link.
108         * tests/havelib/rpathy/Makefile.am: New file, from
109         gettext/autoconf-lib-link.
110         * tests/havelib/rpathy/configure.ac: New file, from
111         gettext/autoconf-lib-link with modifications.
112         * tests/havelib/rpathz/rpathz.c: New file, from
113         gettext/autoconf-lib-link.
114         * tests/havelib/rpathz/Makefile.am: New file, from
115         gettext/autoconf-lib-link.
116         * tests/havelib/rpathz/configure.ac: New file, from
117         gettext/autoconf-lib-link with modifications.
118         * tests/havelib/rpathlx/usex.c: New file, from
119         gettext/autoconf-lib-link.
120         * tests/havelib/rpathlx/Makefile.am: New file, from
121         gettext/autoconf-lib-link.
122         * tests/havelib/rpathlx/configure.ac: New file, from
123         gettext/autoconf-lib-link with modifications.
124         * tests/havelib/rpathly/usey.c: New file, from
125         gettext/autoconf-lib-link.
126         * tests/havelib/rpathly/Makefile.am: New file, from
127         gettext/autoconf-lib-link.
128         * tests/havelib/rpathly/configure.ac: New file, from
129         gettext/autoconf-lib-link with modifications.
130         * tests/havelib/rpathlz/usez.c: New file, from
131         gettext/autoconf-lib-link.
132         * tests/havelib/rpathlz/Makefile.am: New file, from
133         gettext/autoconf-lib-link.
134         * tests/havelib/rpathlz/configure.ac: New file, from
135         gettext/autoconf-lib-link with modifications.
136         * tests/havelib/rpathlyx/usey.c: New file, from
137         gettext/autoconf-lib-link.
138         * tests/havelib/rpathlyx/Makefile.am: New file, from
139         gettext/autoconf-lib-link.
140         * tests/havelib/rpathlyx/configure.ac: New file, from
141         gettext/autoconf-lib-link with modifications.
142         * tests/havelib/rpathlzyx/usez.c: New file, from
143         gettext/autoconf-lib-link.
144         * tests/havelib/rpathlzyx/Makefile.am: New file, from
145         gettext/autoconf-lib-link.
146         * tests/havelib/rpathlzyx/configure.ac: New file, from
147         gettext/autoconf-lib-link with modifications.
148         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
149         with modifications.
150
151 2010-04-02  Bruno Haible  <bruno@clisp.org>
152
153         gnulib-tool: Create distributed built sources also for the tests.
154         * gnulib-tool (func_create_testdir): Also generate distributed built
155         sources in the tests directory.
156
157 2010-04-02  Bruno Haible  <bruno@clisp.org>
158
159         gnulib-tool: Obey user's environment variables.
160         * gnulib-tool (func_create_testdir): When creating built sources,
161         respect the environment variables for autoconf, automake, etc. given by
162         the user.
163
164 2010-04-02  Bruno Haible  <bruno@clisp.org>
165
166         gnulib-tool: Provide the value of --m4-base to modules.
167         * gnulib-tool (func_import, func_create_testdir): Emit a definition
168         of gl_m4_base.
169
170 2010-04-02  Eric Blake  <eblake@redhat.com>
171
172         maint.mk: fix some fallout
173         * NEWS: Document the incompatible change, and its effect on cfg.mk.
174         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
175
176 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
177
178         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
179         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
180         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
181         (sc_cast_of_x_alloc_return_value): Likewise.
182         (sc_cast_of_alloca_return_value): Likewise.
183         (sc_space_tab): Likewise.
184         (sc_prohibit_atoi_atof): Likewise.
185         (sc_prohibit_magic_number_exit): Likewise.
186         (sc_error_exit_success): Likewise.
187         (sc_file_system): Likewise.
188         (sc_prohibit_have_config_h): Likewise.
189         (sc_require_config_h): Likewise.
190         (sc_prohibit_HAVE_MBRTOWC): Likewise.
191         (sc_obsolete_symbols): Likewise.
192         (sc_changelog): Likewise.
193         (sc_program_name): Likewise.
194         (sc_the_the): Likewise.
195         (sc_trailing_blank): Likewise.
196         (sc_two_space_separator_in_usage): Likewise.
197         (sc_useless_cpp_parens): Likewise.
198         (sc_GPL_version): Likewise.
199         (sc_GFDL_version): Likewise.
200         (sc_texinfo_acronym): Likewise.
201         (sc_prohibit_cvs_keyword): Likewise.
202         (sc_prohibit_stat_st_blocks): Likewise.
203         (sc_prohibit_S_IS_definition): Likewise.
204         (sc_redundant_const): Likewise.
205         (sc_makefile_TAB_only_indentation): Likewise.
206         (sc_m4_quote_check): Likewise.
207         (sc_makefile_path_separator_check): Likewise.
208         (sc_copyright_check): Likewise.
209         (sc_Wundef_boolean): Likewise.
210         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
211
212         maint.mk: match 0 or more whitespace-before-function-call '('
213         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
214         that have zero or two-and-more spaces between the function name
215         and the open parenthesis.
216         (sc_error_message_warn_fatal): Likewise.
217         (sc_error_message_uppercase): Likewise.
218         (sc_error_message_period): Likewise.
219
220 2010-03-31  Eric Blake  <eblake@redhat.com>
221
222         maint.mk: check for [ as well as test
223         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
224         Based on a libvirt report by Matthias Bolte.
225
226         gnumakefile: don't squelch _version output
227         * top/GNUmakefile (_version): Create one-shot dependency rather
228         than using $(shell) when version must be regenerated.
229         (_autoreconf): Run verbosely, by default.
230
231         sys_time: avoid compiler warnings
232         * lib/sys_time.in.h (includes): Ensure gcc pragma is
233         unconditional, fixing regression from 2010-03-29.
234         Reported by Simon Josefsson.
235
236 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
237
238         maint.mk: s/_header_without_use/_sc_header_without_use/
239         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
240         (sc_prohibit_assert_without_use): Use the new name.
241         (sc_prohibit_close_stream_without_use): Likewise.
242         (sc_prohibit_getopt_without_use): Likewise.
243         (sc_prohibit_quotearg_without_use): Likewise.
244         (sc_prohibit_quote_without_use): Likewise.
245         (sc_prohibit_long_options_without_use): Likewise.
246         (sc_prohibit_inttostr_without_use): Likewise.
247         (sc_prohibit_ignore_value_without_use): Likewise.
248         (sc_prohibit_error_without_use): Likewise.
249         (sc_prohibit_xalloc_without_use): Likewise.
250         (sc_prohibit_hash_without_use): Likewise.
251         (sc_prohibit_hash_pjw_without_use): Likewise.
252         (sc_prohibit_safe_read_without_use): Likewise.
253         (sc_prohibit_argmatch_without_use): Likewise.
254         (sc_prohibit_canonicalize_without_use): Likewise.
255         (sc_prohibit_root_dev_ino_without_use): Likewise.
256         (sc_prohibit_openat_without_use): Likewise.
257         (sc_prohibit_c_ctype_without_use): Likewise.
258         (sc_prohibit_signal_without_use): Likewise.
259         (sc_prohibit_intprops_without_use): Likewise.
260
261 2010-03-30  Eric Blake  <eblake@redhat.com>
262
263         maint: improve module indicators
264         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
265         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
266         columns, and avoid extra macro expansion.
267
268         fdopendir: work around FreeBSD bug
269         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
270         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
271         * modules/dirent (Makefile.am): Substitute it.
272         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
273         declaration.
274         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
275         fix.
276         Reported by Christian Weisgerber <naddy@mips.inka.de>.
277
278 2010-03-29  Bruno Haible  <bruno@clisp.org>
279
280         Emit #pragma system_header after the inclusion guard, not before.
281         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
282         guard that spans the entire file, not before. This enables an
283         optimization in GCC's preprocessor.
284         * lib/ctype.in.h: Likewise.
285         * lib/dirent.in.h: Likewise.
286         * lib/errno.in.h: Likewise.
287         * lib/float.in.h: Likewise.
288         * lib/getopt.in.h: Likewise.
289         * lib/iconv.in.h: Likewise.
290         * lib/langinfo.in.h: Likewise.
291         * lib/locale.in.h: Likewise.
292         * lib/math.in.h: Likewise.
293         * lib/netdb.in.h: Likewise.
294         * lib/netinet_in.in.h: Likewise.
295         * lib/pty.in.h: Likewise.
296         * lib/sched.in.h: Likewise.
297         * lib/se-selinux.in.h: Likewise.
298         * lib/search.in.h: Likewise.
299         * lib/spawn.in.h: Likewise.
300         * lib/stdarg.in.h: Likewise.
301         * lib/stdint.in.h: Likewise.
302         * lib/string.in.h: Likewise.
303         * lib/strings.in.h: Likewise.
304         * lib/sys_file.in.h: Likewise.
305         * lib/sys_ioctl.in.h: Likewise.
306         * lib/sys_time.in.h: Likewise.
307         * lib/sys_times.in.h: Likewise.
308         * lib/sys_utsname.in.h: Likewise.
309         * lib/sys_wait.in.h: Likewise.
310         * lib/sysexits.in.h: Likewise.
311         * lib/wctype.in.h: Likewise.
312
313 2010-03-28  James Youngman  <jay@gnu.org>
314
315         save-cwd: don't leak a file descriptor when the caller execs.
316         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
317         saved file descriptor.
318         * modules/save-cwd (Depends-on): Depend on cloexec.
319
320 2010-03-29  Bruno Haible  <bruno@clisp.org>
321
322         Remove vestiges of fts-lgpl module.
323         * lib/fts_.h: Assume GNULIB_FTS is 1.
324         * lib/fts.c: Likewise.
325         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
326
327 2010-03-28  Bruno Haible  <bruno@clisp.org>
328
329         Fix definition of tests witness macro.
330         * gnulib-tool (func_import): Fix definition of witness macro.
331
332 2010-03-28  Bruno Haible  <bruno@clisp.org>
333
334         Fix ioctl's protoype on glibc systems.
335         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
336         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
337         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
338         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
339         signature. If not, arrange to replace the ioctl function.
340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
341         REPLACE_IOCTL.
342         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
343         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
344         Reported by Ludovic Courtès <ludo@gnu.org>.
345
346 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
347
348         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
349         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
350         made it so grep -r --include=GLOB* ... did not work.
351
352 2010-03-26  Jim Meyering  <meyering@redhat.com>
353             Eric Blake  <eblake@redhat.com>
354
355         maint.mk: prohibit use of test's -o and -a operators
356         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
357
358 2010-03-28  Bruno Haible  <bruno@clisp.org>
359
360         Remove unused GNULIB_XYZ macro definitions.
361         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
362         invocation.
363
364 2010-03-28  Bruno Haible  <bruno@clisp.org>
365
366         Mark privileged tests modules.
367         * modules/idpriv-drop-tests (Status): New section.
368         * modules/idpriv-droptemp-tests (Status): New section.
369
370 2010-03-28  Bruno Haible  <bruno@clisp.org>
371
372         Split C++ tests into separate tests modules.
373         * modules/dirent-c++-tests: New file, extracted from
374         modules/dirent-tests.
375         * modules/dirent-tests: Depend on it.
376         * modules/fcntl-h-c++-tests: New file, extracted from
377         modules/fcntl-h-tests.
378         * modules/fcntl-h-tests: Depend on it.
379         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
380         * modules/glob-tests: Depend on it.
381         * modules/iconv-h-c++-tests: New file, extracted from
382         modules/iconv-h-tests.
383         * modules/iconv-h-tests: Depend on it.
384         * modules/langinfo-c++-tests: New file, extracted from
385         modules/langinfo-tests.
386         * modules/langinfo-tests: Depend on it.
387         * modules/locale-c++-tests: New file, extracted from
388         modules/locale-tests.
389         * modules/locale-tests: Depend on it.
390         * modules/math-c++-tests: New file, extracted from modules/math-tests.
391         * modules/math-tests: Depend on it.
392         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
393         * modules/pty-tests: Depend on it.
394         * modules/search-c++-tests: New file, extracted from
395         modules/search-tests.
396         * modules/search-tests: Depend on it.
397         * modules/signal-c++-tests: New file, extracted from
398         modules/signal-tests.
399         * modules/signal-tests: Depend on it.
400         * modules/spawn-c++-tests: New file, extracted from
401         modules/spawn-tests.
402         * modules/spawn-tests: Depend on it.
403         * modules/stdio-c++-tests: New file, extracted from
404         modules/stdio-tests.
405         * modules/stdio-tests: Depend on it.
406         * modules/stdlib-c++-tests: New file, extracted from
407         modules/stdlib-tests.
408         * modules/stdlib-tests: Depend on it.
409         * modules/string-c++-tests: New file, extracted from
410         modules/string-tests.
411         * modules/string-tests: Depend on it.
412         * modules/sys_ioctl-c++-tests: New file, extracted from
413         modules/sys_ioctl-tests.
414         * modules/sys_ioctl-tests: Depend on it.
415         * modules/sys_select-c++-tests: New file, extracted from
416         modules/sys_select-tests.
417         * modules/sys_select-tests: Depend on it.
418         * modules/sys_socket-c++-tests: New file, extracted from
419         modules/sys_socket-tests.
420         * modules/sys_socket-tests: Depend on it.
421         * modules/sys_stat-c++-tests: New file, extracted from
422         modules/sys_stat-tests.
423         * modules/sys_stat-tests: Depend on it.
424         * modules/sys_time-c++-tests: New file, extracted from
425         modules/sys_time-tests.
426         * modules/sys_time-tests: Depend on it.
427         * modules/time-c++-tests: New file, extracted from modules/time-tests.
428         * modules/time-tests: Depend on it.
429         * modules/unistd-c++-tests: New file, extracted from
430         modules/unistd-tests.
431         * modules/unistd-tests: Depend on it.
432         * modules/wchar-c++-tests: New file, extracted from
433         modules/wchar-tests.
434         * modules/wchar-tests: Depend on it.
435         * modules/wctype-c++-tests: New file, extracted from
436         modules/wctype-tests.
437         * modules/wctype-tests: Depend on it.
438         Reported by Simon Josefsson.
439
440 2010-03-28  Bruno Haible  <bruno@clisp.org>
441
442         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
443         * gnulib-tool (func_exists_module): New function, extracted from
444         func_verify_module.
445         (func_verify_module): Use it.
446         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
447         'foo' only if 'foo' exists.
448         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
449         module.
450
451 2010-03-28  Bruno Haible  <bruno@clisp.org>
452
453         gnulib-tool: Add support for special categories of tests.
454         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
455         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
456         (func_usage): Document them.
457         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
458         inc_unportable_tests, inc_all_tests): New variables.
459         (func_acceptable): Consider these variables.
460         (func_modules_transitive_closure): Make it work when the 'Status' field
461         consists of multiple words.
462         (func_import): Store and restore the values of inc_cxx_tests,
463         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
464         inc_all_tests in gnulib-comp.m4.
465         (func_create_testdir): Set inc_all_tests to true.
466         * doc/gnulib.texi (Extra tests modules): New section.
467         Suggested by Jim Meyering.
468
469 2010-03-28  Bruno Haible  <bruno@clisp.org>
470
471         ansi-c++-opt: Allow turning off the C++ build by default.
472         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
473         gl_CXX_CHOICE_DEFAULT_NO is defined.
474         Requested by Eric Blake.
475
476 2010-03-28  Bruno Haible  <bruno@clisp.org>
477
478         unistd: Avoid #define replacements in C++ mode.
479         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
480         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
481         setsockopt, shutdown, select): In C++, attach a warning to the function
482         if possible, rather than #defining the symbol to a dysfunctional alias.
483         Reported by John W. Eaton <jwe@gnu.org>.
484
485 2010-03-28  Bruno Haible  <bruno@clisp.org>
486
487         Fix link errors on mingw.
488         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
489         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
490         $(LIBSOCKET).
491         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
492         $(LIBSOCKET).
493
494 2010-03-28  Bruno Haible  <bruno@clisp.org>
495             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
496
497         lib-ignore: Determine different options for different compilers.
498         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
499         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
500         Add comments.
501         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
502         * NEWS: Mention the change.
503
504 2010-03-27  Bruno Haible  <bruno@clisp.org>
505
506         Remove unused GNULIB_XYZ macro definitions.
507         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
508         * modules/fseek (configure.ac): Likewise.
509         * modules/ioctl (configure.ac): Likewise.
510         * modules/open (configure.ac): Likewise.
511         * modules/stdlib-safer (configure.ac): Likewise.
512
513 2010-03-27  Bruno Haible  <bruno@clisp.org>
514
515         Add a remark about certain modules.
516         * modules/malloc (Comment): New section.
517         * modules/realloc (Comment): Likewise.
518         * modules/sigpipe (Comment): Likewise.
519
520 2010-03-27  Bruno Haible  <bruno@clisp.org>
521
522         Resolve conflict between the two kinds of module indicators.
523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
524         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
525         * modules/canonicalize (configure.ac): Invoke
526         gl_MODULE_INDICATOR_FOR_TESTS.
527         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
528         GNULIB_XYZ.
529         * tests/test-dirent-c++.cc: Likewise.
530         * tests/test-dirent-safer.c: Likewise.
531         * tests/test-dup2.c: Likewise.
532         * tests/test-fchdir.c: Likewise.
533         * tests/test-fcntl-h-c++.cc: Likewise.
534         * tests/test-getopt.c: Likewise.
535         * tests/test-getopt.h: Likewise.
536         * tests/test-langinfo-c++.cc: Likewise.
537         * tests/test-locale-c++.cc: Likewise.
538         * tests/test-math-c++.cc: Likewise.
539         * tests/test-pty-c++.cc: Likewise.
540         * tests/test-search-c++.cc: Likewise.
541         * tests/test-signal-c++.cc: Likewise.
542         * tests/test-spawn-c++.cc: Likewise.
543         * tests/test-stdio-c++.cc: Likewise.
544         * tests/test-stdlib-c++.cc: Likewise.
545         * tests/test-string-c++.cc: Likewise.
546         * tests/test-sys_ioctl-c++.cc: Likewise.
547         * tests/test-sys_select-c++.cc: Likewise.
548         * tests/test-sys_socket-c++.cc: Likewise.
549         * tests/test-sys_stat-c++.cc: Likewise.
550         * tests/test-sys_time-c++.cc: Likewise.
551         * tests/test-time-c++.cc: Likewise.
552         * tests/test-unistd-c++.cc: Likewise.
553         * tests/test-wchar-c++.cc: Likewise.
554         * tests/uninorm/test-u8-nfc.c: Likewise.
555         * tests/uninorm/test-u8-nfd.c: Likewise.
556         * tests/uninorm/test-u8-nfkc.c: Likewise.
557         * tests/uninorm/test-u8-nfkd.c: Likewise.
558         * tests/uninorm/test-u16-nfc.c: Likewise.
559         * tests/uninorm/test-u16-nfd.c: Likewise.
560         * tests/uninorm/test-u16-nfkc.c: Likewise.
561         * tests/uninorm/test-u16-nfkd.c: Likewise.
562         * tests/uninorm/test-u32-nfc.c: Likewise.
563         * tests/uninorm/test-u32-nfc-big.c: Likewise.
564         * tests/uninorm/test-u32-nfd.c: Likewise.
565         * tests/uninorm/test-u32-nfd-big.c: Likewise.
566         * tests/uninorm/test-u32-nfkc.c: Likewise.
567         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
568         * tests/uninorm/test-u32-nfkd.c: Likewise.
569         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
570         * tests/uninorm/test-u32-normalize-big.c: Likewise.
571
572 2010-03-27  Bruno Haible  <bruno@clisp.org>
573
574         Distinguish two kinds of module indicators.
575         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
576         gl_MODULE_INDICATOR.
577         (gl_MODULE_INDICATOR): New macro.
578         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
579         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
580         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
582         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
583         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
584         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
586         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
587         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
588         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
589         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
594         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
595         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
596         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
597         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
598         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
599         * modules/cloexec (configure.ac): Likewise.
600         * modules/getopt-gnu (configure.ac): Likewise.
601         * modules/uninorm/u8-normalize (configure.ac): Likewise.
602         * modules/uninorm/u16-normalize (configure.ac): Likewise.
603         * modules/uninorm/u32-normalize (configure.ac): Likewise.
604         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
605
606 2010-03-27  Bruno Haible  <bruno@clisp.org>
607
608         New module description field 'Comment'.
609         * gnulib-tool: New option --extract-comment.
610         (func_usage): Document it.
611         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
612         (func_get_comment): New function.
613         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
614
615 2010-03-27  Bruno Haible  <bruno@clisp.org>
616
617         Addendum to 2010-02-07 commit.
618         * gnulib-tool (func_usage): Document --extract-applicability option.
619
620 2010-03-27  Bruno Haible  <bruno@clisp.org>
621
622         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
623         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
624         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
625         rather than link errors.
626
627 2010-03-27  Bruno Haible  <bruno@clisp.org>
628
629         Avoid side effects from tests-related modules on the compilation of lib.
630         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
631         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
632         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
633         parameter. Emit into AM_CPPFLAGS a definition of the designated C
634         macro.
635         (func_import): Define a witness macro. Assign it a value that depends
636         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
637         tests-related modules.
638         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
639         Reported by Jim Meyering.
640
641 2010-03-27  Bruno Haible  <bruno@clisp.org>
642
643         Factorize common .m4 code.
644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
645         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
646         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
647         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
648         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
649         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
650         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
651         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
652         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
653         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
654         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
655         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
656         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
657         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
658         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
659         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
660         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
661         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
663         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
664         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
666         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
669         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
670         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
673         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
674         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
675         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
676
677 2010-03-27  Bruno Haible  <bruno@clisp.org>
678
679         Fix a compilation error on Cygwin with g++ >= 4.3.
680         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
681         if it is undefined or if we alias it to chmod.
682         (lstat): Don't warn about the use of this function if it is undefined
683         or if we alias it to stat.
684         Reported by Simon Josefsson.
685
686 2010-03-27  Bruno Haible  <bruno@clisp.org>
687
688         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
689         * modules/getlogin (configure.ac): Update.
690
691         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
692         * modules/getlogin_r (configure.ac): Update.
693
694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
696         * modules/inet_ntop (configure.ac): Update.
697
698         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
699         * modules/inet_pton (configure.ac): Update.
700
701         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
702         * modules/mbslen (configure.ac): Update.
703
704         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
705         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
706         * modules/forkpty (configure.ac): Update.
707         * modules/openpty (configure.ac): Update.
708
709 2010-03-26  Simon Josefsson  <simon@josefsson.org>
710
711         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
712         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
713
714 2010-03-25  Eric Blake  <eblake@redhat.com>
715
716         maint: use pragma consistently across replacement headers
717         * lib/ctype.in.h (system_header): Hoist for consistent placement.
718         * lib/dirent.in.h (system_header): Likewise.
719         * lib/errno.in.h (system_header): Likewise.
720         * lib/float.in.h (system_header): Likewise.
721         * lib/getopt.in.h (system_header): Likewise.
722         * lib/iconv.in.h (system_header): Likewise.
723         * lib/inttypes.in.h (system_header): Likewise.
724         * lib/langinfo.in.h (system_header): Likewise.
725         * lib/locale.in.h (system_header): Likewise.
726         * lib/math.in.h (system_header): Likewise.
727         * lib/netdb.in.h (system_header): Likewise.
728         * lib/netinet_in.in.h (system_header): Likewise.
729         * lib/pty.in.h (system_header): Likewise.
730         * lib/sched.in.h (system_header): Likewise.
731         * lib/se-selinux.in.h (system_header): Likewise.
732         * lib/search.in.h (system_header): Likewise.
733         * lib/spawn.in.h (system_header): Likewise.
734         * lib/stdarg.in.h (system_header): Likewise.
735         * lib/stdint.in.h (system_header): Likewise.
736         * lib/string.in.h (system_header): Likewise.
737         * lib/strings.in.h (system_header): Likewise.
738         * lib/sys_file.in.h (system_header): Likewise.
739         * lib/sys_ioctl.in.h (system_header): Likewise.
740         * lib/sys_socket.in.h (system_header): Likewise.
741         * lib/sys_times.in.h (system_header): Likewise.
742         * lib/sys_utsname.in.h (system_header): Likewise.
743         * lib/sys_wait.in.h (system_header): Likewise.
744         * lib/sysexits.in.h (system_header): Likewise.
745         * lib/unistd.in.h (system_header): Likewise.
746         * lib/wctype.in.h (system_header): Likewise.
747
748         arpa/inet: fix mingw compilation warning
749         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
750         Reported by Matthew Bolte.
751
752 2010-03-25  Bruno Haible  <bruno@clisp.org>
753
754         Avoid collision between gnulib wrapper and libintl wrapper.
755         * lib/printf.c (printf): Don't define if a printf wrapper is already
756         defined in intl/printf.c.
757         Reported by Michel Boaventura <michel@michelboaventura.com>.
758
759 2010-03-25  Bruno Haible  <bruno@clisp.org>
760
761         Use ANSI C.
762         * lib/readutmp.h (getutent): Provide ANSI C prototype.
763
764 2010-03-25  Bruno Haible  <bruno@clisp.org>
765
766         Minor formatting changes.
767         * lib/acosl.c: Insert space before function argument list.
768         * lib/argz.c: Likewise.
769         * lib/asinl.c: Likewise.
770         * lib/expl.c: Likewise.
771         * lib/gen-uni-tables.c: Likewise.
772         * lib/gettext.h: Likewise.
773         * lib/glthread/lock.h: Likewise.
774         * lib/tanl.c: Likewise.
775         * lib/uniname/uniname.c: Likewise.
776         * tests/test-idpriv-drop.c: Likewise.
777         * tests/test-idpriv-droptemp.c: Likewise.
778         * tests/test-lock.c: Likewise.
779         * tests/test-tls.c: Likewise.
780         * lib/argp-help.c: Insert space before function-like macro argument
781         list.
782         * lib/memcmp.c: Likewise.
783         * tests/test-base64.c: Likewise.
784         * lib/localename.c: Insert space before sizeof's argument list.
785         * lib/safe-alloc.h: Likewise.
786         * lib/file-set.h: Insert space before macro argument list.
787         * tests/test-argp.c: Likewise.
788         * lib/argp-namefrob.h: Insert space before function parameter list.
789         * lib/getaddrinfo.c: Likewise.
790         * lib/netdb.in.h: Likewise.
791         * lib/parse-duration.h: Likewise.
792         * lib/parse-duration.c: Likewise.
793         * lib/poll.c: Likewise.
794         * lib/select.c: Likewise.
795         * lib/trim.h: Likewise.
796         * tests/test-usleep.c: Likewise.
797         * lib/ldexpl.c: Insert space before function parameter list and before
798         function argument list.
799         * lib/logl.c: Likewise.
800         * lib/sqrtl.c: Likewise.
801         * lib/trim.c: Likewise.
802         * lib/cosl.c: Use GNU style indentation. Insert space before function
803         argument list.
804         * lib/sinl.c: Likewise.
805         * lib/tsearch.c: Insert space after 'for'.
806         Reported by Jim Meyering.
807
808 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
809
810         * maint.mk (sc_Wundef_boolean): Check for the presence of the
811         config header before grepping, as it's not present before
812         autoreconf/configure are run.  Reported by Simon Josefsson.
813
814 2010-03-23  Bruno Haible  <bruno@clisp.org>
815
816         pt_chown: Make it work with automake < 1.11.
817         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
818         Reported by Simon Josefsson.
819
820 2010-03-23  Bruno Haible  <bruno@clisp.org>
821
822         pt_chown: Don't depend on GPLed modules.
823         * lib/pt_chown.c: Don't include idpriv.h.
824         (main): Don't drop privileges.
825         * modules/pt_chown (Depends-on): Remove idpriv-drop.
826         Reported by Simon Josefsson.
827
828 2010-03-24  Simon Josefsson  <simon@josefsson.org>
829
830         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
831         suggestions from karl@freefriends.org (Karl Berry).
832
833 2010-03-22  Eric Blake  <eblake@redhat.com>
834
835         gethostname: further tweaks
836         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
837         are overriding gethostname.
838         Suggested by Bruno Haible.
839
840 2010-03-21  Bruno Haible  <bruno@clisp.org>
841
842         Fix comments.
843         * lib/forkpty.c (rpl_forkpty): Fix comment.
844         * lib/openpty.c (rpl_openpty): Likewise.
845         Reported by Eric Blake.
846
847 2010-03-22  Eric Blake  <eblake@redhat.com>
848
849         gethostname: fix build on mingw
850         * lib/unistd.in.h (includes): Work around fact that mingw
851         <winsock2.h> re-includes <unistd.h>, by avoiding any
852         redeclarations if we are being included by <winsock2.h>.
853         Reported by Matthias Bolte.
854
855 2010-03-21  Bruno Haible  <bruno@clisp.org>
856
857         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
858         * lib/forkpty.c (forkpty): New replacement function, from glibc with
859         modifications.
860         * lib/pty.in.h (forkpty): Update declaration. Add comments.
861         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
862         provide the replacement.
863         * modules/forkpty (Depends-on): Add openpty, login_tty.
864         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
865         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
866         * doc/glibc-functions/forkpty.texi: More supported platforms.
867         * config/srclist.txt: Add forkpty.c (commented).
868
869 2010-03-21  Bruno Haible  <bruno@clisp.org>
870
871         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
872         (Makefile.am): Verify that PTY_LIB is defined.
873
874         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
875
876 2010-03-21  Bruno Haible  <bruno@clisp.org>
877
878         Tests for module 'login_tty'.
879         * modules/login_tty-tests: New file.
880         * tests/test-login_tty.c: New file.
881
882         New module 'login_tty'.
883         * lib/login_tty.c: New file.
884         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
885         * modules/login_tty: New file.
886         * doc/glibc-functions/login_tty.texi: Mention the new module.
887
888 2010-03-21  Bruno Haible  <bruno@clisp.org>
889
890         login_tty: Documentation.
891         * doc/glibc-functions/login_tty.texi: New file.
892         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
893
894 2010-03-21  Bruno Haible  <bruno@clisp.org>
895
896         pty: Consistent macro naming.
897         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
898         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
899         * modules/pty (configure.ac): Update.
900
901 2010-03-21  Bruno Haible  <bruno@clisp.org>
902
903         Tests for openpty: Make stricter.
904         * tests/test-openpty.c (main): Add test of canonical processing and
905         erase.
906         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
907
908         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
909         * lib/openpty.c (openpty): New replacement function.
910         * lib/pty.in.h: Include <termios.h>.
911         (openpty): Update declaration. Add comments.
912         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
913         is not declared, arrange to provide the replacement. Check for _getpty
914         and posix_openpt.
915         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
916         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
917         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
918         * modules/pty-tests (test_pty_c___LDADD): New variable.
919         * doc/glibc-functions/openpty.texi: More supported platforms.
920
921 2010-03-21  Bruno Haible  <bruno@clisp.org>
922
923         setenv: Tweaks.
924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
925         the test program.
926         * doc/posix-functions/setenv.texi: Update platforms list.
927
928 2010-03-21  Bruno Haible  <bruno@clisp.org>
929
930         New module 'unlockpt'.
931         * lib/unlockpt.c: New file, from glibc with modifications.
932         * m4/unlockpt.m4: New file.
933         * modules/unlockpt: New file.
934         * lib/stdlib.in.h (unlockpt): New declaration.
935         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
936         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
937         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
938         HAVE_UNLOCKPT.
939         * doc/posix-functions/unlockpt.texi: Mention the new module.
940         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
941         * config/srclist.txt: Add unlockpt.c (commented).
942
943 2010-03-21  Jim Meyering  <meyering@redhat.com>
944
945         maint.mk: prohibit inclusion of "intprops.h" without use
946         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
947
948 2010-03-21  Bruno Haible  <bruno@clisp.org>
949
950         New module 'grantpt'.
951         * lib/grantpt.c: New file, from glibc with modifications.
952         * m4/grantpt.m4: New file.
953         * modules/grantpt: New file.
954         * lib/stdlib.in.h (grantpt): New declaration.
955         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
956         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
957         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
958         HAVE_GRANTPT.
959         * doc/posix-functions/grantpt.texi: Mention the new module.
960         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
961         * config/srclist.txt: Add grantpt.c (commented).
962
963 2010-03-21  Bruno Haible  <bruno@clisp.org>
964
965         New module 'pt_chown'.
966         * lib/pt_chown.c: New file, from glibc with modifications.
967         * lib/pty-private.h: New file, from glibc with modifications.
968         * modules/pt_chown: New file.
969         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
970
971 2010-03-21  Bruno Haible  <bruno@clisp.org>
972
973         Tests for module 'ptsname'.
974         * modules/ptsname-tests: New file.
975         * tests/test-ptsname.c: New file.
976
977         New module 'ptsname'.
978         * lib/ptsname.c: New file, from glibc with modifications.
979         * m4/ptsname.m4: New file.
980         * modules/ptsname: New file.
981         * lib/stdlib.in.h (ptsname): New declaration.
982         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
983         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
984         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
985         HAVE_PTSNAME.
986         * doc/posix-functions/ptsname.texi: Mention the new module.
987         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
988         * config/srclist.txt: Add ptsname.c (commented).
989
990 2010-03-21  Bruno Haible  <bruno@clisp.org>
991
992         Tests for module 'ttyname_r'.
993         * modules/ttyname_r-tests: New file.
994         * tests/test-ttyname_r.c: New file.
995
996         New module 'ttyname_r'.
997         * lib/ttyname_r.c: New file.
998         * m4/ttyname_r.m4: New file.
999         * modules/ttyname_r: New file.
1000         * lib/unistd.in.h (ttyname_r): New declaration.
1001         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1002         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1003         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1004         HAVE_TTYNAME_R.
1005         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1006         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1007
1008 2010-03-20  Bruno Haible  <bruno@clisp.org>
1009
1010         signal: Undefine macro definitions in C++ mode.
1011         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1012         sigfillset): Undefine macro definitions from the system header in C++
1013         mode.
1014         Reported by John W. Eaton <jwe@gnu.org>.
1015
1016 2010-03-20  Bruno Haible  <bruno@clisp.org>
1017
1018         Ensure no #include statements inside extern "C" { ... }.
1019         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1020         contain #include statements.
1021         * lib/time.in.h: Likewise.
1022
1023 2010-03-20  Bruno Haible  <bruno@clisp.org>
1024
1025         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1026         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1027         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1028         Reported by John W. Eaton <jwe@gnu.org>.
1029
1030 2010-03-20  Bruno Haible  <bruno@clisp.org>
1031
1032         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1033         Reported by Jim Meyering.
1034
1035 2010-03-20  Bruno Haible  <bruno@clisp.org>
1036
1037         pipe: Set errno upon failure.
1038         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1039         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1040         errno value in error message.
1041
1042 2010-03-20  Bruno Haible  <bruno@clisp.org>
1043             Jim Meyering  <meyering@redhat.com>
1044
1045         lchown: Avoid "unused variable" warning.
1046         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1047
1048 2010-03-20  Bruno Haible  <bruno@clisp.org>
1049
1050         Work around unlink() bug on MacOS X 10.5.6.
1051         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1052         attempting to unlink a parent directory.
1053         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1054         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1055         activate for the replacement function.
1056         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1057
1058 2010-03-20  Bruno Haible  <bruno@clisp.org>
1059
1060         Fix link errors on Solaris 8.
1061         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1062         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1063
1064 2010-03-19  Jim Meyering  <meyering@redhat.com>
1065
1066         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1067         The _LIBC implementation of build_range_exp correctly honors the
1068         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1069         However, the non-_LIBC implementation would ignore that syntax-bit
1070         flag and return REG_ERANGE unconditionally.
1071         This change makes it honor that flag.
1072         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1073         Make two pointer parameters "const".
1074         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1075         (parse_bracket_exp): Update caller.
1076
1077         regex.m4: correct the reversed range endpoint ([b-a]) test
1078         * m4/regex.m4: When requiring that [b-a] evoke failure,
1079         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1080         test pass once again for x86-based systems.
1081
1082 2010-03-19  Bruno Haible  <bruno@clisp.org>
1083
1084         scandir: Fix link error on Solaris 8.
1085         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1086         macros.
1087
1088 2010-03-19  Bruno Haible  <bruno@clisp.org>
1089
1090         getusershell: Fix documentation.
1091         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1092         module.
1093         * doc/glibc-functions/setusershell.texi: Likewise.
1094
1095         getusershell: Provide declaration, missing on Solaris 9.
1096         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1097         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1098         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1099         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1101         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1102         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1103         HAVE_GETUSERSHELL.
1104         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1105
1106 2010-03-19  Bruno Haible  <bruno@clisp.org>
1107
1108         wctype: Provide iswblank function.
1109         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1110         exists and is fine.
1111         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1112         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1113         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1114         * doc/posix-functions/iswblank.texi: Update.
1115
1116 2010-03-19  Bruno Haible  <bruno@clisp.org>
1117
1118         Tests of module 'pty' in C++ mode.
1119         * modules/pty-tests: New file.
1120         * tests/test-pty-c++.cc: New file.
1121         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1122
1123 2010-03-19  Eric Blake  <eblake@redhat.com>
1124
1125         logb: fix documentation
1126         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1127         1.5 declaration bug.
1128
1129         forkpty, openpty: prefer glibc's const-safe prototype
1130         * lib/forkpty.c (rpl_forkpty): New file.
1131         * lib/openpty.c (rpl_openpty): Likewise.
1132         * modules/forkpty (Files): Distribute it.
1133         * modules/openpty (Files): Likewise.
1134         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1135         check...
1136         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1137         replacement for for non-const BSD signature.
1138         * modules/pty (Makefile.am): Substitute witnesses.
1139         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1140         * tests/test-forkpty.c: Update signature check.
1141         * tests/test-openpty.c: Likewise.
1142         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1143         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1144
1145         forkpty, openpty: split functions into new modules
1146         * modules/pty (Makefile.am): Substitute new witnesses.
1147         (Libraries): Move library detection...
1148         * modules/forkpty: ...into new module.
1149         * modules/openpty: Another new module.
1150         * modules/pty-tests: Rename and split...
1151         * modules/forkpty-tests: ...to this...
1152         * modules/openpty-tests: ...and this.
1153         * tests/test-pty.c: Rename and split...
1154         * tests/test-forkpty.c: ...to this...
1155         * tests/test-openpty.c: ...and this.
1156         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1157         (gl_PTY): Split library searching...
1158         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1159         (gl_FORKPTY, gl_OPENPTY): New macros.
1160         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1161         * NEWS: Mention the split.
1162         * MODULES.html.sh (Misc): Document the modules.
1163         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1164         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1165
1166         pty: improve replacement header
1167         * lib/pty.in.h: New file.
1168         * modules/pty (Files): Ship it.
1169         (Makefile.am): Always build replacement.
1170         * m4/pty.m4: Rename...
1171         * m4/pty_h.m4: ...to this.
1172         (gl_PTY): Modernize setting of witness macros; update check of
1173         forkpty to take proper advantage of cache.
1174         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1175
1176         getopt: avoid compiler warning
1177         * lib/getopt.c (attribute_hidden): Remove unused macro.
1178
1179 2010-03-18  Bruno Haible  <bruno@clisp.org>
1180
1181         Fix link errors on Solaris 8.
1182         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1183         * modules/search-tests (test_search_c___LDADD): Likewise.
1184         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1185         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1186         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1187         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1188         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1189         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1190         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1191
1192 2010-03-18  Bruno Haible  <bruno@clisp.org>
1193
1194         Fix bug introduced on 2010-03-14.
1195         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1196         (gl_SPAWN_H): Require it.
1197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1198         Reported by Simon Josefsson.
1199
1200 2010-03-18  Bruno Haible  <bruno@clisp.org>
1201
1202         Fix typo introduced on 2009-12-31.
1203         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1204         posix_spawn_file_actions_adddup2.
1205
1206 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1207         and Eric Blake  <eblake@redhat.com>
1208
1209         test-vc-list-files-git: make more robust
1210         * tests/test-vc-list-files-git.sh: Unset problematic environment
1211         variables.  Chain commands together.
1212
1213 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1214
1215         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1216         `AC_CHECK_DECL' invocation.
1217
1218 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1219
1220         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1221         appears before executable statements. Suggested by Petr Sumbera
1222         <Petr.Sumbera@Sun.COM>.
1223
1224 2010-03-14  Bruno Haible  <bruno@clisp.org>
1225
1226         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1227         portability problems. Instead use a simpler test.
1228         (main): Check that invalid arguments are rejected only on Linux.
1229
1230 2010-03-14  Bruno Haible  <bruno@clisp.org>
1231
1232         Fix bug introduced on 2009-12-31.
1233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1234         gl_PREREQ_SYS_H_WINSOCK2 always.
1235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1236         SYS_SOCKET_H variable.
1237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1238         Update comments.
1239         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1240         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1241         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1243         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1244
1245 2010-03-14  Bruno Haible  <bruno@clisp.org>
1246
1247         Fix values returned by sinl, cosl.
1248         * lib/trigl.h: Add specification comments.
1249         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1250         that combines the values from the precomputed table with the values of
1251         the Chebyshev polynomials.
1252
1253 2010-03-14  Bruno Haible  <bruno@clisp.org>
1254
1255         Fix compilation error when modules 'posix_spawn[p]' are not used.
1256         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1258
1259 2010-03-14  Bruno Haible  <bruno@clisp.org>
1260
1261         Fix compilation error on mingw when module 'time_r' is not used.
1262         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1263         is 1.
1264         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1265         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1266         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1268
1269 2010-03-14  Bruno Haible  <bruno@clisp.org>
1270
1271         Fix compilation error with Sun C.
1272         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1273         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1274         instead of GCC specific ULONG_LONG_MAX.
1275         * lib/xstrtoll.c: Likewise.
1276         * lib/xstrtoull.c: Likewise.
1277
1278 2010-03-13  Bruno Haible  <bruno@clisp.org>
1279
1280         Allow the user to disable C++ code and tests.
1281         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1282         (gl_PROG_ANSI_CXX): Require it.
1283
1284 2010-03-13  Bruno Haible  <bruno@clisp.org>
1285
1286         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1287         cases.
1288
1289 2010-03-13  Bruno Haible  <bruno@clisp.org>
1290
1291         Test that gnulib does not break the standard C++ headers.
1292         * tests/test-locale-c++2.cc: New file.
1293         * modules/locale-tests (Files): Add it.
1294         (Makefile.am): Compile it for test-locale-c++.
1295         * tests/test-math-c++2.cc: New file.
1296         * modules/math-tests (Files): Add it.
1297         (Makefile.am): Compile it for test-math-c++.
1298         * tests/test-signal-c++2.cc: New file.
1299         * modules/signal-tests (Files): Add it.
1300         (Makefile.am): Compile it for test-signal-c++.
1301         * tests/test-stdio-c++2.cc: New file.
1302         * modules/stdio-tests (Files): Add it.
1303         (Makefile.am): Compile it for test-stdio-c++.
1304         * tests/test-stdlib-c++2.cc: New file.
1305         * modules/stdlib-tests (Files): Add it.
1306         (Makefile.am): Compile it for test-stdlib-c++.
1307         * tests/test-string-c++2.cc: New file.
1308         * modules/string-tests (Files): Add it.
1309         (Makefile.am): Compile it for test-string-c++.
1310         * tests/test-time-c++2.cc: New file.
1311         * modules/time-tests (Files): Add it.
1312         (Makefile.am): Compile it for test-time-c++.
1313         Reported by John W. Eaton <jwe@gnu.org>.
1314
1315 2010-03-13  Bruno Haible  <bruno@clisp.org>
1316
1317         * gnulib-tool (func_usage): Clarify which options are available for
1318         --create-testdir and --create-megatestdir.
1319
1320 2010-03-13  Bruno Haible  <bruno@clisp.org>
1321
1322         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1323         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1324         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1325         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1326         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1327         when appropriate.
1328         Reported by Jim Meyering.
1329
1330 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1331
1332         * gnulib-tool (func_import): Explain origin of code.
1333
1334 2010-03-12  Bruno Haible  <bruno@clisp.org>
1335
1336         Fix problem with automake's definition of CXXLINK.
1337         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1338         Reported by Simon Josefsson and Ludovic Courtès.
1339
1340 2010-03-12  Bruno Haible  <bruno@clisp.org>
1341
1342         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1343         stable releases.
1344
1345 2010-03-11  Bruno Haible  <bruno@clisp.org>
1346
1347         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1348         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1349         whether the system provides one variant or multiple variants of the
1350         function.
1351         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1352         C++ compilers.
1353         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1354         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1355         Reported by Jim Meyering.
1356
1357 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1358
1359         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1360
1361 2010-03-08  Bruno Haible  <bruno@clisp.org>
1362
1363         gnulib-tool: Add support for --libtool in --create-testdir.
1364         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1365         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1366
1367 2010-03-08  Eric Blake  <eblake@redhat.com>
1368
1369         gnulib-tool.texi: mention possibility of git submodule
1370         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1371         submodules.
1372         * doc/.gitignore: Ignore another generated file.
1373
1374 2010-03-08  Karl Berry  <karl@gnu.org>
1375
1376         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1377         of committing gnulib files while skipping others.
1378
1379 2010-03-07  Bruno Haible  <bruno@clisp.org>
1380
1381         Tests of module 'wctype' in C++ mode.
1382         * tests/test-wctype-c++.cc: New file.
1383         * modules/wctype-tests (Files): Add it and tests/signature.h.
1384         (Depends-on): Add ansi-c++-opt.
1385         (Makefile.am): Arrange to compile and run test-wctype-c++.
1386
1387         Tests of module 'wchar' in C++ mode.
1388         * tests/test-wchar-c++.cc: New file.
1389         * modules/wchar-tests (Files): Add it and tests/signature.h.
1390         (Depends-on): Add ansi-c++-opt.
1391         (Makefile.am): Arrange to compile and run test-wchar-c++.
1392         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1393         gl_MODULE_INDICATOR.
1394
1395         Tests of module 'unistd' in C++ mode.
1396         * tests/test-unistd-c++.cc: New file.
1397         * modules/unistd-tests (Files): Add it and tests/signature.h.
1398         (Depends-on): Add ansi-c++-opt.
1399         (Makefile.am): Arrange to compile and run test-unistd-c++.
1400         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1401         gl_MODULE_INDICATOR.
1402
1403         Tests of module 'time' in C++ mode.
1404         * tests/test-time-c++.cc: New file.
1405         * modules/time-tests (Files): Add it and tests/signature.h.
1406         (Depends-on): Add ansi-c++-opt.
1407         (Makefile.am): Arrange to compile and run test-time-c++.
1408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1409
1410         Tests of module 'sys_time' in C++ mode.
1411         * tests/test-sys_time-c++.cc: New file.
1412         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1413         (Depends-on): Add ansi-c++-opt.
1414         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1415         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1416         gl_MODULE_INDICATOR.
1417
1418         Tests of module 'sys_stat' in C++ mode.
1419         * tests/test-sys_stat-c++.cc: New file.
1420         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1421         (Depends-on): Add ansi-c++-opt.
1422         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1423         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1424         gl_MODULE_INDICATOR.
1425
1426         Tests of module 'sys_socket' in C++ mode.
1427         * tests/test-sys_socket-c++.cc: New file.
1428         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1429         (Depends-on): Add ansi-c++-opt.
1430         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1431         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1432         gl_MODULE_INDICATOR.
1433
1434         Tests of module 'sys_select' in C++ mode.
1435         * tests/test-sys_select-c++.cc: New file.
1436         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1437         (Depends-on): Add ansi-c++-opt.
1438         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1439         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1440         gl_MODULE_INDICATOR.
1441
1442         Tests of module 'sys_ioctl' in C++ mode.
1443         * tests/test-sys_ioctl-c++.cc: New file.
1444         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1445         (Depends-on): Add ansi-c++-opt.
1446         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1448         gl_MODULE_INDICATOR.
1449
1450         Tests of module 'string' in C++ mode.
1451         * tests/test-string-c++.cc: New file.
1452         * modules/string-tests (Files): Add it and tests/signature.h.
1453         (Depends-on): Add ansi-c++-opt.
1454         (Makefile.am): Arrange to compile and run test-string-c++.
1455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1456         gl_MODULE_INDICATOR.
1457
1458         Tests of module 'stdlib' in C++ mode.
1459         * tests/test-stdlib-c++.cc: New file.
1460         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1461         (Depends-on): Add ansi-c++-opt.
1462         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1463         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1464         gl_MODULE_INDICATOR.
1465
1466         Tests of module 'stdio' in C++ mode.
1467         * tests/test-stdio-c++.cc: New file.
1468         * modules/stdio-tests (Files): Add it and tests/signature.h.
1469         (Depends-on): Add ansi-c++-opt.
1470         (Makefile.am): Arrange to compile and run test-stdio-c++.
1471         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1472         gl_MODULE_INDICATOR.
1473
1474         Tests of module 'spawn' in C++ mode.
1475         * tests/test-spawn-c++.cc: New file.
1476         * modules/spawn-tests (Files): Add it and tests/signature.h.
1477         (Depends-on): Add ansi-c++-opt.
1478         (Makefile.am): Arrange to compile and run test-spawn-c++.
1479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1480         gl_MODULE_INDICATOR.
1481
1482         Tests of module 'signal' in C++ mode.
1483         * tests/test-signal-c++.cc: New file.
1484         * modules/signal-tests (Files): Add it and tests/signature.h.
1485         (Depends-on): Add ansi-c++-opt.
1486         (Makefile.am): Arrange to compile and run test-signal-c++.
1487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1488         gl_MODULE_INDICATOR.
1489
1490         Tests of module 'search' in C++ mode.
1491         * tests/test-search-c++.cc: New file.
1492         * modules/search-tests (Files): Add it and tests/signature.h.
1493         (Depends-on): Add ansi-c++-opt.
1494         (Makefile.am): Arrange to compile and run test-search-c++.
1495         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1496         gl_MODULE_INDICATOR.
1497
1498         Tests of module 'math' in C++ mode.
1499         * tests/test-math-c++.cc: New file.
1500         * modules/math-tests (Files): Add it and tests/signature.h.
1501         (Depends-on): Add ansi-c++-opt.
1502         (Makefile.am): Arrange to compile and run test-math-c++.
1503         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1504
1505         Tests of module 'locale' in C++ mode.
1506         * tests/test-locale-c++.cc: New file.
1507         * modules/locale-tests (Files): Add it and tests/signature.h.
1508         (Depends-on): Add ansi-c++-opt.
1509         (Makefile.am): Arrange to compile and run test-locale-c++.
1510         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1511         gl_MODULE_INDICATOR.
1512
1513         Tests of module 'langinfo' in C++ mode.
1514         * tests/test-langinfo-c++.cc: New file.
1515         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1516         (Depends-on): Add ansi-c++-opt.
1517         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1518         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1519         gl_MODULE_INDICATOR.
1520
1521         Tests of module 'iconv-h' in C++ mode.
1522         * tests/test-iconv-h-c++.cc: New file.
1523         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1524         (Depends-on): Add ansi-c++-opt.
1525         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1526
1527         Tests of module 'glob' in C++ mode.
1528         * tests/test-glob-c++.cc: New file.
1529         * modules/glob-tests (Files): Add it.
1530         (Depends-on): Add ansi-c++-opt.
1531         (Makefile.am): Arrange to compile and run test-glob-c++.
1532
1533         Tests of module 'fcntl-h' in C++ mode.
1534         * tests/test-fcntl-h-c++.cc: New file.
1535         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1536         (Depends-on): Add ansi-c++-opt.
1537         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1538         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1539         gl_MODULE_INDICATOR.
1540
1541         Tests of module 'dirent' in C++ mode.
1542         * tests/test-dirent-c++.cc: New file.
1543         * modules/dirent-tests (Files): Add it and tests/signature.h.
1544         (Depends-on): Add ansi-c++-opt.
1545         (Makefile.am): Arrange to compile and run test-dirent-c++.
1546         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1547         gl_MODULE_INDICATOR.
1548
1549         New module 'ansi-c++-opt'.
1550         * modules/ansi-c++-opt: New file.
1551         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1552
1553         Document C++ namespace mode.
1554         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1555
1556         wctype: Avoid #define replacements in C++ mode.
1557         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1558         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1559         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1560         In C++, define a namespaced alias symbol.
1561         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1562         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1563         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1564         rule.
1565
1566         wchar: Avoid #define replacements in C++ mode.
1567         * lib/wchar.in.h: Include c++defs.h.
1568         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1569         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1570         symbol.
1571         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1572         * modules/wchar (Depends-on): Add c++defs.
1573         (Makefile.am): Update wchar.h rule.
1574
1575         unistd: Avoid #define replacements in C++ mode.
1576         * lib/unistd.in.h: Include c++defs.h.
1577         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1578         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1579         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1580         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1581         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1582         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1583         symbol.
1584         (environ): Update.
1585         * modules/unistd (Depends-on): Add c++defs.
1586         (Makefile.am): Update unistd.h rule.
1587
1588         time: Avoid #define replacements in C++ mode.
1589         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1590         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1591         define a namespaced alias symbol.
1592         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1593         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1594         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1595         * modules/time (Depends-on): Add c++defs, warn-on-use.
1596         (Makefile.am): Update time.h rule.
1597         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1598         * modules/nanosleep (configure.ac): Likewise.
1599         * modules/strptime (configure.ac): Likewise.
1600         * modules/timegm (configure.ac): Likewise.
1601
1602         sys_time: Avoid #define replacements in C++ mode.
1603         * lib/sys_time.in.h: Include c++defs.h.
1604         (gettimeofday): In C++, define a namespaced alias symbol.
1605         * modules/sys_time (Depends-on): Add c++defs.
1606         (Makefile.am): Update sys/time.h rule.
1607
1608         sys_stat: Avoid #define replacements in C++ mode.
1609         * lib/sys_stat.in.h: Include c++defs.h.
1610         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1611         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1612         namespaced alias symbol.
1613         In C++, define a namespaced alias symbol.
1614         * modules/sys_stat (Depends-on): Add c++defs.
1615         (Makefile.am): Update sys/stat.h rule.
1616
1617         sys_socket: Avoid #define replacements in C++ mode.
1618         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1619         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1620         definitions also when the system has a <sys/socket.h>.
1621         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1622         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1623         In C++, define a namespaced alias symbol.
1624         * modules/sys_socket (Depends-on): Add c++defs.
1625         (Makefile.am): Update sys/socket.h rule.
1626
1627         sys_select: Avoid #define replacements in C++ mode.
1628         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1629         definitions also when the system has a <sys/select.h>.
1630         (select): In C++, define a namespaced alias symbol.
1631         * modules/sys_select (Depends-on): Add c++defs.
1632         (Makefile.am): Update sys/select.h rule.
1633
1634         sys_ioctl: Avoid #define replacements in C++ mode.
1635         * lib/sys_ioctl.in.h: Include c++defs.h.
1636         (ioctl): In C++, define a namespaced alias symbol.
1637         * modules/sys_ioctl (Depends-on): Add c++defs.
1638         (Makefile.am): Update sys/ioctl.h rule.
1639
1640         string: Avoid #define replacements in C++ mode.
1641         * lib/string.in.h: Include c++defs.h.
1642         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1643         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1644         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1645         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1646         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1647         * modules/string (Depends-on): Add c++defs.
1648         (Makefile.am): Update string.h rule.
1649
1650         stdlib: Avoid #define replacements in C++ mode.
1651         * lib/stdlib.in.h: Include c++defs.h.
1652         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1653         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1654         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1655         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1656         symbol.
1657         * modules/stdlib (Depends-on): Add c++defs.
1658         (Makefile.am): Update stdlib.h rule.
1659
1660         stdio: Avoid #define replacements in C++ mode.
1661         * lib/stdio.in.h: Include c++defs.h.
1662         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1663         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1664         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1665         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1666         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1667         namespaced alias symbol.
1668         * modules/stdio (Depends-on): Add c++defs.
1669         (Makefile.am): Update stdio.h rule.
1670
1671         spawn: Avoid #define replacements in C++ mode.
1672         * lib/spawn.in.h: Include c++defs.h.
1673         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1674         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1675         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1676         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1677         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1678         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1679         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1680         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1681         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1682         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1683         In C++, define a namespaced alias symbol.
1684         * modules/spawn (Depends-on): Add c++defs.
1685         (Makefile.am): Update spawn.h rule.
1686
1687         signal: Avoid #define replacements in C++ mode.
1688         * lib/signal.in.h: Include c++defs.h.
1689         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1690         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1691         namespaced alias symbol.
1692         * modules/signal (Depends-on): Add c++defs.
1693         (Makefile.am): Update signal.h rule.
1694
1695         search: Avoid #define replacements in C++ mode.
1696         * lib/search.in.h: Include c++defs.h.
1697         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1698         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1699         symbol.
1700         * modules/search (Depends-on): Add c++defs.
1701         (Makefile.am): Update search.h rule.
1702
1703         math: Avoid #define replacements in C++ mode.
1704         * lib/math.in.h: Include c++defs.h.
1705         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1706         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1707         trunc, truncl): In C++, define a namespaced alias symbol.
1708         * modules/math (Depends-on): Add c++defs.
1709         (Makefile.am): Update math.h rule.
1710
1711         locale: Avoid #define replacements in C++ mode.
1712         * lib/locale.in.h: Include c++defs.h.
1713         (duplocale): In C++, define a namespaced alias symbol.
1714         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1715         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1716         * modules/locale (Depends-on): Add c++defs.
1717         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1718
1719         langinfo: Avoid #define replacements in C++ mode.
1720         * lib/langinfo.in.h: Include c++defs.h.
1721         (nl_langinfo): In C++, define a namespaced alias symbol.
1722         * modules/langinfo (Depends-on): Add c++defs.
1723         (Makefile.am): Update langinfo.h rule.
1724
1725         iconv-h: Avoid #define replacements in C++ mode.
1726         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1727         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1728         symbol.
1729         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1730         whenever iconv is present.
1731         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1732         (Makefile.am): Update iconv.h rule.
1733
1734         glob: Avoid #define replacements in C++ mode.
1735         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1736         (_gl_glob_errfunc_fn): New type.
1737         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1738         symbol.
1739         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1740         (Makefile.am): Update glob.h rule.
1741
1742         fcntl-h: Avoid #define replacements in C++ mode.
1743         * lib/fcntl.in.h: Include c++defs.h.
1744         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1745         * modules/fcntl-h (Depends-on): Add c++defs.
1746         (Makefile.am): Update fcntl.h rule.
1747
1748         dirent: Avoid #define replacements in C++ mode.
1749         * lib/dirent.in.h: Include c++defs.h.
1750         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1751         namespaced alias symbol.
1752         (dirfd): Update declaration.
1753         * modules/dirent (Depends-on): Add c++defs.
1754         (Makefile.am): Update dirent.h rule.
1755
1756         ctype: Make it usable in C++ code.
1757         * lib/ctype.in.h: Include c++defs.h.
1758         (isblank): Declare as extern "C".
1759         * modules/ctype (Depends-on): Add c++defs.
1760         (Makefile.am): Update ctype.h rule.
1761
1762         New module 'c++defs'.
1763         * modules/c++defs: New file.
1764         * build-aux/c++defs.h: New file.
1765         Reported by John W. Eaton <jwe@gnu.org>.
1766
1767 2010-03-07  Bruno Haible  <bruno@clisp.org>
1768
1769         logb: Provide missing declaration for Cygwin.
1770         * lib/math.in.h (logb): New declaration.
1771         * m4/logb.m4: New file.
1772         * modules/logb (Files): Add m4/logb.m4.
1773         (Depends-on): Add math.
1774         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1775         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1777         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1778         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1779
1780 2010-03-07  Bruno Haible  <bruno@clisp.org>
1781
1782         Fix test-cond link error.
1783         * tests/test-cond.c: Include <stdio.h>.
1784
1785 2010-03-07  Bruno Haible  <bruno@clisp.org>
1786
1787         Fix test-dirent-safer link error.
1788         * modules/dirent-safer-tests (Makefile.am): Define
1789         test_dirent_safer_LDADD.
1790
1791 2010-03-07  Bruno Haible  <bruno@clisp.org>
1792
1793         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1794         among default module list.
1795
1796 2010-03-07  Bruno Haible  <bruno@clisp.org>
1797
1798         Fix link error on platforms with GNU libiconv.
1799         * modules/unistr/u8-strcoll-tests (Makefile): Define
1800         test_u8_strcoll_LDADD.
1801         * modules/unistr/u16-strcoll-tests (Makefile): Define
1802         test_u16_strcoll_LDADD.
1803         * modules/unistr/u32-strcoll-tests (Makefile): Define
1804         test_u32_strcoll_LDADD.
1805
1806 2010-03-07  Bruno Haible  <bruno@clisp.org>
1807
1808         Use POSIX declarations for socket functions.
1809         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1810         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1811         rpl_sendto): Change declaration to match POSIX.
1812         * lib/connect.c (rpl_connect): Likewise.
1813         * lib/accept.c (rpl_accept): Likewise.
1814         * lib/bind.c (rpl_bind): Likewise.
1815         * lib/getpeername.c (rpl_getpeername): Likewise.
1816         * lib/getsockname.c (rpl_getsockname): Likewise.
1817         * lib/recv.c (rpl_recv): Likewise.
1818         * lib/send.c (rpl_send): Likewise.
1819         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1820         * lib/sendto.c (rpl_sendto): Likewise.
1821
1822 2010-03-06  Bruno Haible  <bruno@clisp.org>
1823
1824         Clarify access, euidaccess, faccessat.
1825         * doc/posix-functions/faccessat.texi: Mention security problem under
1826         "Other problems", not "Portability problems".
1827         * doc/posix-functions/access.texi: Likewise. Mention a related security
1828         problem.
1829         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1830         * lib/euidaccess.c: Add comments about platforms.
1831         * lib/unistd.in.h (access, euidaccess): Add warnings.
1832
1833 2010-03-07  Bruno Haible  <bruno@clisp.org>
1834
1835         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1836         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1837         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1838         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1839         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1840         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1841         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1842         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1843         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1845         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1846         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1847         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1848         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1849         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1850         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1851         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1852         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1853         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1854         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1855         Likewise.
1856         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1857         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1858         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1859         Likewise.
1860         * tests/test-spawn.c (main): Make it work when
1861         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1862
1863 2010-03-07  Bruno Haible  <bruno@clisp.org>
1864
1865         Fix incorrect Makefile.am generation in German locale.
1866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1867         Execute sed command with character range in C locale.
1868
1869 2010-03-06  Bruno Haible  <bruno@clisp.org>
1870
1871         Tests for module 'iconv-h'.
1872         * modules/iconv-h-tests: New file.
1873         * tests/test-iconv-h.c: New file.
1874
1875         New module 'iconv-h'.
1876         * modules/iconv-h: New file.
1877         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1878         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1879         (configure.ac): Remove gl_ICONV_H.
1880         (Makefile.am): Remove rule for iconv.h.
1881
1882 2010-03-06  Bruno Haible  <bruno@clisp.org>
1883
1884         More consistent naming of *.m4 files.
1885         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1886         * modules/wctype (Files): Update.
1887
1888         More consistent naming of *.m4 files.
1889         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1890         * modules/wchar (Files): Update.
1891
1892 2010-03-06  Jim Meyering  <meyering@redhat.com>
1893
1894         euidaccess: relax license to LGPLv2+
1895         * modules/euidaccess (License): Relax to LGPLv2+.
1896
1897 2010-03-06  Bruno Haible  <bruno@clisp.org>
1898
1899         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1900         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1901         (Makefile.am): Augment lib_SOURCES instead.
1902
1903 2010-03-04  Jim Meyering  <meyering@redhat.com>
1904
1905         utime: remove obsolete module
1906         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1907         unnecessary for years, and has been marked as obsolete for 10 months.
1908         * modules/utime: Remove file.
1909         * lib/utime.c: Remove file.
1910         * m4/utime.m4: Remove file.
1911         * m4/utimes-null.m4: Remove file.
1912         * doc/posix-functions/utime.texi (utime): Remove reference to
1913         the module.  Move the sole "fixed by gnulib" item into the
1914         "problems not fixed by Gnulib" list.
1915         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1916
1917 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1918
1919         * modules/exit (License): Relax license to LGPLv2+.
1920         (Status): Mark as obsolete.
1921         * NEWS: Mention deprecated 'exit' module.
1922         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1923         of now obsolete 'exit'.
1924
1925 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1926
1927         fts-lgpl: remove unused module
1928         * modules/fts-lgpl: Remove.
1929         * MODULES.html.sh (func_all_modules): Adjust.
1930         * check-module (find_included_lib_files): Adjust.
1931         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1932
1933 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1934
1935         copy-acl: enhance Solaris ACL error handling
1936         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1937         * lib/set-mode-acl.c (qset_acl): Likewise.
1938
1939 2010-03-02  Bruno Haible  <bruno@clisp.org>
1940
1941         spawn: Don't override the system defined values on FreeBSD 8.
1942         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1943         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1944         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1945         if HAVE_POSIX_SPAWN is 1.
1946         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1947
1948 2010-03-01  Bruno Haible  <bruno@clisp.org>
1949
1950         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1951         regarding Automake.
1952
1953 2010-02-25  Bruno Haible  <bruno@clisp.org>
1954
1955         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1956         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1957         setting, not afterwards.
1958         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1959
1960 2010-02-24  Eric Blake  <eblake@redhat.com>
1961
1962         bootstrap, git-version-gen: use timestamp
1963         * build-aux/git-version-gen (scriptversion): Force UTC.
1964         * build-aux/bootstrap (scriptversion): New variable.
1965
1966         bootstrap: allow older git
1967         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1968         older than 1.6.4.  Requested by the libvirt project.
1969
1970 2010-02-23  Eric Blake  <eblake@redhat.com>
1971
1972         warn-on-use: work with old autoconf
1973         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1974         AS_VAR semantics of autoconf 2.60.
1975         Reported by Bruno Haible.
1976
1977         bootstrap: improve some comments
1978         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1979         clarification comments.
1980
1981         gettimeofday: provide correct function
1982         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1983         when replacement is declared, otherwise provide gettimeofday.
1984         Reported by Michael Goffioul.
1985
1986 2010-02-23  Jim Meyering  <meyering@redhat.com>
1987
1988         lib-ignore: relax license to "unlimited", not LGPLv2+
1989         * modules/lib-ignore (License): Relax to "unlimited".
1990
1991 2010-02-23  Jim Meyering  <meyering@redhat.com>
1992
1993         lib-ignore: relax license to LGPLv2+
1994         * modules/lib-ignore (License): Relax to LGPLv2+.
1995
1996 2010-02-22  Eric Blake  <eblake@redhat.com>
1997
1998         lseek: avoid bash 3.2 broken pipe bug
1999         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2000         warning from bash 3.2.
2001         Reported by Ben Pfaff, with analysis from Bruno Haible.
2002
2003         bootstrap: support non-FSF copyright holder
2004         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2005         bootstrap.conf override of COPYRIGHT_HOLDER.
2006         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2007
2008         bootstrap: interoperate with gettext 0.14.1
2009         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2010
2011         bootstrap: allow for alternate submodule location
2012         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2013         hardcoding submodule location.
2014         (gnulib_mk): Allow direct use of Makefile.am.
2015
2016         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2017         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2018         rather than reconfiguring where the submodule points.
2019
2020         gettimeofday: restore support for platforms that lack function
2021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2022         replacement if function is missing.
2023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2024         * modules/sys_time (Makefile.am): Substitute it.
2025         * lib/sys_time.in.h (gettimeofday): Check it.
2026         Reported by Michael Goffioul.
2027
2028 2010-02-21  Bruno Haible  <bruno@clisp.org>
2029
2030         * lib/stdio.in.h (obstack_printf): Fix typo.
2031
2032 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2033
2034         vc-list-files: use bzr ls's -R option
2035         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2036         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2037
2038 2010-02-21  Jim Meyering  <meyering@redhat.com>
2039
2040         init.sh: fix EXEEXT shims to work also for names like test-prog
2041         * tests/init.sh: Re-exec a better shell, when needed.
2042         If the current shell lacks support for posix $(...), an init.sh-using
2043         test will now try to find a shell that supports that.  If EXEEXT is
2044         nonempty, we also require support for hyphen-in-alias-name and shell
2045         substitutions like ${var#glob}.  Failure to find such a shell results
2046         in a skipped test.
2047
2048 2010-02-21  Bruno Haible  <bruno@clisp.org>
2049
2050         Really work around around "broken pipe" error message from bash 3.2.
2051         * gnulib-tool (func_reset_sigpipe): Remove function.
2052         (echo): In bash 3.2, define to a function that uses printf.
2053         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2054
2055 2010-02-20  Bruno Haible  <bruno@clisp.org>
2056
2057         Restore support for automake 1.9.6 with autoconf 2.61.
2058         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2059         Reported by James Youngman <jay@gnu.org>.
2060
2061 2010-02-20  Bruno Haible  <bruno@clisp.org>
2062
2063         Improve *printf warning condition.
2064         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2065         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2066         and the function is overridden due to SIGPIPE emulation.
2067
2068 2010-02-20  Bruno Haible  <bruno@clisp.org>
2069
2070         * lib/stdio.in.h: Tweak comments.
2071
2072 2010-02-19  Bruno Haible  <bruno@clisp.org>
2073
2074         Make it easier to find modules. New gnulib-tool option '--find'.
2075         * gnulib-tool: New option --find.
2076         (func_usage): Document it.
2077         (func_sanitize_modulelist): New function, extracted from
2078         func_all_modules.
2079         (func_all_modules): Invoke it.
2080         * doc/gnulib-tool.texi (Which modules?): New node.
2081
2082 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2083
2084         * lib/sys_select.in.h: Provide select replacement even if
2085         sys/select.h exists on a system, for Interix.
2086
2087 2010-02-18  Jim Meyering  <meyering@redhat.com>
2088
2089         init.sh: don't use $(...) just yet
2090         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2091         to accommodate e.g., Solaris' /bin/sh.
2092
2093 2010-02-17  Bruno Haible  <bruno@clisp.org>
2094
2095         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2096         Reported by Ludovic Courtès <ludo@gnu.org>.
2097
2098 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2099
2100         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2101         linking with -lintl.
2102
2103 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2104
2105         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2106         if not provided by the system's netdb.h.  Reported by
2107         ludo@gnu.org (Ludovic Courtès).
2108
2109 2010-02-15  Jim Meyering  <meyering@redhat.com>
2110
2111         init.sh: improve portability and efficiency
2112         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2113         "dummy" in a for loop.
2114         Use '!', not '^' to select the complement of a character set used
2115         in a "case" statement.
2116         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2117         Suggestions from Eric Blake.
2118
2119         init.sh: automatically accommodate programs with the .exe suffix
2120         Automatically arrange for an invocation of "prog" to execute the
2121         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2122         may use the simpler "prog", yet still work when built on a system
2123         that requires specifying the added suffix.
2124         Do this by constructing a function named "prog" that invokes
2125         "prog.exe" for each .exe file in selected directories.
2126         * tests/init.sh (find_exe_basenames_): New function.
2127         (create_exe_shim_functions_): New function.
2128         (path_prepend_): Use it.
2129
2130         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2131         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2132         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2133
2134 2010-02-14  Jim Meyering  <meyering@redhat.com>
2135
2136         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2137         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2138         (sc_prohibit_hash_pjw_without_use): New rule.
2139
2140         maint.mk: allow the default upload destination dir to be overridden
2141         * top/maint.mk (upload_dest_dir_): Define with a default that
2142         preserves the status quo.
2143         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2144         Reported by Peter Simons.
2145
2146         maint.mk: prohibit inclusion of "hash.h" without_use
2147         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2148
2149 2010-02-10  Jim Meyering  <meyering@redhat.com>
2150
2151         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2152         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2153
2154 2010-02-09  Eric Blake  <ebb9@byu.net>
2155         and Bruno Haible  <bruno@clisp.org>
2156
2157         obstack-printf-posix: ensure declaration
2158         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2159         extracted from gl_FUNC_OBSTACK_PRINTF.
2160         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2161         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2162         Likewise.
2163         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2164         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2165         0.
2166
2167 2010-02-08  Bruno Haible  <bruno@clisp.org>
2168
2169         gnulib-tool: Fix typo in 2010-02-07 commit.
2170         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2171         Reported by Eric Blake.
2172
2173 2010-02-07  Bruno Haible  <bruno@clisp.org>
2174
2175         gnulib-tool: Fix up caching patches.
2176         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2177         option --no-cache. Use associative arrays when supported by the shell.
2178         (sed_comments): New variable.
2179         (modcache): Renamed from do_cache.
2180         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2181         abbreviate unnecessarily.
2182         (have_associative): New variable.
2183         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2184         way also for ksh and zsh.
2185         (func_init_sed_convert_to_cache_statements): New function, extracted
2186         from func_cache_lookup_module. Add support for associative arrays.
2187         Don't set the c_MODULE_cached variable here. Ignore all lines before
2188         the first field header. Remove only the final newline, not all trailing
2189         newlines. Support empty fields correctly. Limit the use of 'eval' to
2190         assignments.
2191         (func_get_description, func_get_status, func_get_notice,
2192         func_get_applicability, func_get_filelist, func_get_dependencies,
2193         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2194         func_get_automake_snippet, func_get_include_directive,
2195         func_get_link_directive, func_get_license, func_get_maintainer):
2196         Update documentation. List the unoptimized code first. Add support for
2197         associative arrays. Limit the use of 'eval' to assignments.
2198         (func_get_applicability): Undo stylistic pessimisations.
2199         (func_get_automake_snippet, func_get_include_directive): Reduce code
2200         duplication.
2201         (func_modules_transitive_closure, func_modules_add_dummy,
2202         func_modules_notice, func_modules_to_filelist, func_add_file,
2203         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2204         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2205         func_create_testdir, func_create_megatestdir): Update documentation.
2206
2207 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2208
2209         * gnulib-tool (func_cache_lookup_module): Store the module name
2210         belonging to the cache variable; error out if two different
2211         module names map to the same cache variable name.
2212
2213 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2214
2215         gnulib-tool: Make caching optional.
2216         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2217         Update matching short versions of --no-changelog.
2218         (func_usage): Update.
2219         (sed_extract_cache_prog): Renamed from ...
2220         (sed_extract_prog): ... this; revert to old extraction script.
2221         (func_get_description, func_get_status)
2222         (func_get_notice, func_get_applicability, func_get_filelist)
2223         (func_get_dependencies, func_get_autoconf_early_snippet)
2224         (func_get_autoconf_snippet, func_get_automake_snippet)
2225         (func_get_include_directive, func_get_link_directive)
2226         (func_get_license, func_get_maintainer): If $do_cache is false,
2227         use old, non-caching extraction scripts.
2228         Suggestion by Bruno Haible.
2229
2230 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2231
2232         gnulib-tool: cache module metainformation.
2233         * gnulib-tool (sed_extract_prog): Match newline before each
2234         header, and rewrite header to a shell variable suffix.
2235         (func_cache_var, func_cache_lookup_module): New functions,
2236         to turn a module name into a cache variable prefix, and to
2237         look up and cache module metainformation.
2238         (func_get_description, func_get_status)
2239         (func_get_notice, func_get_applicability, func_get_filelist)
2240         (func_get_dependencies, func_get_autoconf_early_snippet)
2241         (func_get_autoconf_snippet, func_get_automake_snippet)
2242         (func_get_include_directive, func_get_link_directive)
2243         (func_get_license, func_get_maintainer): Use
2244         func_cache_lookup_module.
2245
2246 2010-02-07  Bruno Haible  <bruno@clisp.org>
2247
2248         fnctl: Fix missing dependency.
2249         * modules/fcntl (Depends-on): Add getdtablesize.
2250         Reported by John W. Eaton <jwe@gnu.org>.
2251
2252 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2253
2254         Argp: fix recognition of short alias options.
2255
2256         * lib/argp-parse.c (convert_options): Fix improper use of
2257         `|' between character values.
2258         * tests/test-argp.c (group1_option): New alias option
2259         --read (-r).
2260         (group1_parser): Special handling for 'r'.
2261         (test15): New test case.
2262         (test_fun): Add test15.
2263         * tests/test-argp-2.sh: Update expected --help and --usage
2264         outputs.
2265
2266 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2267
2268         * tests/test-argp.c: Fix indentation.
2269
2270 2010-02-04  Eric Blake  <ebb9@byu.net>
2271
2272         gettimeofday: expose type of second argument
2273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2274         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2275         * tests/test-gettimeofday.c: Use it to silence warning.
2276         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2277         the issue.
2278
2279 2010-02-03  Jim Meyering  <meyering@redhat.com>
2280
2281         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2282         * lib/regcomp.c (TYPE_SIGNED): Define.
2283         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2284
2285         regcomp.c: avoid a new -Wshadow warning
2286         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2287
2288 2010-02-01  Jim Meyering  <meyering@redhat.com>
2289
2290         removing useless parentheses in cpp #define directives
2291         For motivation, see commit c0221df4, "define STREQ(a,b)
2292         consistently, removing useless parentheses"
2293         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2294         * lib/mountlist.c (MNT_IGNORE): Likewise.
2295         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2296
2297 2010-02-01  Eric Blake  <ebb9@byu.net>
2298
2299         sys_time: use link-warning
2300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2301         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2302         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2303         * modules/sys_time (Depends-on): Add warn-on-use.
2304         (Makefile.am): Always build replacement.
2305         (configure.ac): Update substitutions.
2306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2307         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2308         bother with SYS_TIME_H.
2309         * modules/gettimeofday (configure.ac): Declare indicator.
2310         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2311         in use.
2312
2313         closein-tests: silence compiler warning
2314         * tests/test-closein.c (main): Ignore fread result.
2315         * modules/closein-tests (Depends-on): Add ignore-value.
2316
2317         tests: silence warning about system return
2318         * tests/test-areadlink-with-size.c (main): Ignore system result.
2319         * tests/test-areadlink.c (main): Likewise.
2320         * tests/test-areadlinkat-with-size.c (main): Likewise.
2321         * tests/test-areadlinkat.c (main): Likewise.
2322         * tests/test-canonicalize-lgpl.c (main): Likewise.
2323         * tests/test-canonicalize.c (main): Likewise.
2324         * tests/test-chown.c (main): Likewise.
2325         * tests/test-fchownat.c (main): Likewise.
2326         * tests/test-fdutimensat.c (main): Likewise.
2327         * tests/test-fstatat.c (main): Likewise.
2328         * tests/test-futimens.c (main): Likewise.
2329         * tests/test-lchown.c (main): Likewise.
2330         * tests/test-link.c (main): Likewise.
2331         * tests/test-linkat.c (main): Likewise.
2332         * tests/test-lstat.c (main): Likewise.
2333         * tests/test-mkdir.c (main): Likewise.
2334         * tests/test-mkdirat.c (main): Likewise.
2335         * tests/test-mkfifo.c (main): Likewise.
2336         * tests/test-mkfifoat.c (main): Likewise.
2337         * tests/test-mknod.c (main): Likewise.
2338         * tests/test-readlink.c (main): Likewise.
2339         * tests/test-remove.c (main): Likewise.
2340         * tests/test-rename.c (main): Likewise.
2341         * tests/test-renameat.c (main): Likewise.
2342         * tests/test-rmdir.c (main): Likewise.
2343         * tests/test-symlink.c (main): Likewise.
2344         * tests/test-symlinkat.c (main): Likewise.
2345         * tests/test-unlink.c (main): Likewise.
2346         * tests/test-unlinkat.c (main): Likewise.
2347         * tests/test-utimens.c (main): Likewise.
2348         * tests/test-utimensat.c (main): Likewise.
2349         * modules/areadlink-tests (Depends-on): Add ignore-value.
2350         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2351         * modules/areadlinkat-tests (Depends-on): Likewise.
2352         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2354         * modules/canonicalize-tests (Depends-on): Likewise.
2355         * modules/chown-tests (Depends-on): Likewise.
2356         * modules/fdutimensat-tests (Depends-on): Likewise.
2357         * modules/futimens-tests (Depends-on): Likewise.
2358         * modules/lchown-tests (Depends-on): Likewise.
2359         * modules/link-tests (Depends-on): Likewise.
2360         * modules/linkat-tests (Depends-on): Likewise.
2361         * modules/lstat-tests (Depends-on): Likewise.
2362         * modules/mkdir-tests (Depends-on): Likewise.
2363         * modules/mkfifo-tests (Depends-on): Likewise.
2364         * modules/mkfifoat-tests (Depends-on): Likewise.
2365         * modules/mknod-tests (Depends-on): Likewise.
2366         * modules/openat-tests (Depends-on): Likewise.
2367         * modules/readlink-tests (Depends-on): Likewise.
2368         * modules/remove-tests (Depends-on): Likewise.
2369         * modules/rename-tests (Depends-on): Likewise.
2370         * modules/renameat-tests (Depends-on): Likewise.
2371         * modules/rmdir-tests (Depends-on): Likewise.
2372         * modules/symlink-tests (Depends-on): Likewise.
2373         * modules/symlinkat-tests (Depends-on): Likewise.
2374         * modules/unlink-tests (Depends-on): Likewise.
2375         * modules/utimens-tests (Depends-on): Likewise.
2376         * modules/utimensat-tests (Depends-on): Likewise.
2377
2378 2010-01-31  Bruno Haible  <bruno@clisp.org>
2379
2380         Perform the same test for many <math.h> functions.
2381         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2382         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2383         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2384         of gl_MATHFUNC.
2385         * modules/acos (configure.ac): Likewise.
2386         * modules/asin (configure.ac): Likewise.
2387         * modules/atan (configure.ac): Likewise.
2388         * modules/atan2 (configure.ac): Likewise.
2389         * modules/cbrt (configure.ac): Likewise.
2390         * modules/copysign (configure.ac): Likewise.
2391         * modules/cos (configure.ac): Likewise.
2392         * modules/cosh (configure.ac): Likewise.
2393         * modules/erf (configure.ac): Likewise.
2394         * modules/erfc (configure.ac): Likewise.
2395         * modules/exp (configure.ac): Likewise.
2396         * modules/fmod (configure.ac): Likewise.
2397         * modules/hypot (configure.ac): Likewise.
2398         * modules/j0 (configure.ac): Likewise.
2399         * modules/j1 (configure.ac): Likewise.
2400         * modules/jn (configure.ac): Likewise.
2401         * modules/lgamma (configure.ac): Likewise.
2402         * modules/log (configure.ac): Likewise.
2403         * modules/log10 (configure.ac): Likewise.
2404         * modules/log1p (configure.ac): Likewise.
2405         * modules/pow (configure.ac): Likewise.
2406         * modules/remainder (configure.ac): Likewise.
2407         * modules/sin (configure.ac): Likewise.
2408         * modules/sinh (configure.ac): Likewise.
2409         * modules/tan (configure.ac): Likewise.
2410         * modules/tanh (configure.ac): Likewise.
2411         * modules/y0 (configure.ac): Likewise.
2412         * modules/y1 (configure.ac): Likewise.
2413         * modules/yn (configure.ac): Likewise.
2414         Suggested by Paolo Bonzini.
2415
2416 2010-01-31  Bruno Haible  <bruno@clisp.org>
2417
2418         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2419
2420 2010-01-31  Bruno Haible  <bruno@clisp.org>
2421
2422         Work around getdelim() bug on FreeBSD 8.0.
2423         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2424         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2425         not work.
2426         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2427         is 1.
2428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2429         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2430         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2431         a non-zero size.
2432         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2433
2434 2010-01-31  Bruno Haible  <bruno@clisp.org>
2435
2436         Work around getline() bug on FreeBSD 8.0.
2437         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2438         and a non-zero size.
2439         * tests/test-getline.c (main): Likewise.
2440         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2441         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2442
2443 2010-01-28  Eric Blake  <ebb9@byu.net>
2444
2445         regex: fix build failure
2446         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2447         platforms.
2448
2449 2010-01-28  Jim Meyering  <meyering@redhat.com>
2450
2451         regex: do not ignore memory allocation failure
2452         * lib/regex_internal.c (create_cd_newstate): Detect
2453         re_node_set_init_copy failure.   Extracted from glibc commit
2454         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2455
2456         regex: sync more white-space changes from libc
2457         * lib/regex_internal.c: White-space only changes.
2458         * lib/regexec.c: Likewise.
2459
2460         regex: add many uses of __attribute_warn_unused_result__
2461         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2462         * lib/regexec.c: Likewise.
2463         Extracted from a messy glibc commit.
2464
2465         regcomp.c: spelling and merge-artifact from glibc
2466         * lib/regcomp.c: Merge remainder of glibc's
2467         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2468
2469         regcomp.c: sync white-space changes from glibc
2470         * lib/regcomp.c: Merge to accommodate white space
2471         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2472
2473         regcomp.c: do not ignore internal return values
2474         * lib/regcomp.c: Do not ignore internal return values.
2475         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2476         but without its white-space changes and spelling fixes.
2477
2478         regex_internal.h: define __attribute_warn_unused_result__
2479         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2480
2481         maint: add a syntax-check rule to check for vulnerable Makefile.in
2482         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2483
2484 2010-01-27  Jim Meyering  <meyering@redhat.com>
2485
2486         ncftpput-ftp: clean up spaces
2487         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2488         Remove trailing blanks.
2489
2490 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2491
2492         * build-aux/git-version-gen: Fix copyright statement.
2493         * build-aux/gnupload: Likewise.
2494         * tests/test-arcfour.c: Likewise.
2495         * tests/test-arctwo.c: Likewise.
2496         * tests/test-count-one-bits.c: Likewise.
2497         * tests/test-crc.c: Likewise.
2498         * tests/test-des.c: Likewise.
2499         * tests/test-gc-arcfour.c: Likewise.
2500         * tests/test-gc-arctwo.c: Likewise.
2501         * tests/test-gc-des.c: Likewise.
2502         * tests/test-gc-hmac-md5.c: Likewise.
2503         * tests/test-gc-hmac-sha1.c: Likewise.
2504         * tests/test-gc-md2.c: Likewise.
2505         * tests/test-gc-md4.c: Likewise.
2506         * tests/test-gc-md5.c: Likewise.
2507         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2508         * tests/test-gc-rijndael.c: Likewise.
2509         * tests/test-gc-sha1.c: Likewise.
2510         * tests/test-gc.c: Likewise.
2511         * tests/test-gethostname.c: Likewise.
2512         * tests/test-gettimeofday.c: Likewise.
2513         * tests/test-hash.c: Likewise.
2514         * tests/test-hmac-md5.c: Likewise.
2515         * tests/test-hmac-sha1.c: Likewise.
2516         * tests/test-md2.c: Likewise.
2517         * tests/test-md4.c: Likewise.
2518         * tests/test-md5.c: Likewise.
2519         * tests/test-memchr.c: Likewise.
2520         * tests/test-memchr2.c: Likewise.
2521         * tests/test-memcmp.c: Likewise.
2522         * tests/test-memmem.c: Likewise.
2523         * tests/test-memrchr.c: Likewise.
2524         * tests/test-rawmemchr.c: Likewise.
2525         * tests/test-read-file.c: Likewise.
2526         * tests/test-rijndael.c: Likewise.
2527         * tests/test-sockets.c: Likewise.
2528         * tests/test-strchrnul.c: Likewise.
2529         * tests/test-strstr.c: Likewise.
2530         * tests/test-strtod.c: Likewise.
2531         * build-aux/ncftpput-ftp: Likewise.
2532
2533 2010-01-26  Eric Blake  <ebb9@byu.net>
2534
2535         ignore-value: update recommended header name
2536         * modules/ignore-value (Include): Only use <> for headers that
2537         exist in glibc.
2538
2539 2010-01-26  Jim Meyering  <meyering@redhat.com>
2540
2541         test-userspec.c: avoid compiler warnings
2542         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2543         and "initialization discards qualifiers..." warnings.
2544         Put the first "uid" in its own scope, and make char* members "const".
2545
2546 2010-01-25  Bruno Haible  <bruno@clisp.org>
2547
2548         gnulib-tool: Make warning diagnostics consistent.
2549         * gnulib-tool (func_warning): New function.
2550         Use it everywhere where gnulib-tool produces output to stderr and it is
2551         not a fatal error.
2552
2553 2010-01-25  Bruno Haible  <bruno@clisp.org>
2554
2555         Fix test dependencies.
2556         * modules/xstrtol-tests (Depends-on): Add inttypes.
2557         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2558
2559 2010-01-25 Pádraig Brady <P@draigBrady.com>
2560
2561         syntax-check: detect incorrect boolean macro values in config.h
2562         * modules/maintainer-makefile (configure.ac): Parameterize the location
2563         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2564         The logic is from Eric Blake and the location indicated by Jim Meyering.
2565         Note the more natural CONFIG_HEADER name is prohibited by automake
2566         for backwards compatibility reasons.
2567         * top/maint.mk (sc_Wundef_boolean): New rule.
2568
2569 2010-01-25  Jim Meyering  <meyering@redhat.com>
2570
2571         bootstrap: detect MacOS 10.6's shasum, too
2572         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2573         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2574
2575 2010-01-23  Jim Meyering  <meyering@redhat.com>
2576
2577         xstrtoll: new module
2578         * modules/xstrtoll: New file.
2579         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2580         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2581         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2582         ./configure fails if you use this module and lack "long long".
2583         * modules/xstrtoll-tests: New module.
2584         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2585         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2586         new init.sh-based test framework.
2587
2588 2010-01-24  Bruno Haible  <bruno@clisp.org>
2589
2590         Tests for module 'yn'.
2591         * modules/yn-tests: New file.
2592         * tests/test-yn.c: New file.
2593
2594         Tests for module 'y1'.
2595         * modules/y1-tests: New file.
2596         * tests/test-y1.c: New file.
2597
2598         Tests for module 'y0'.
2599         * modules/y0-tests: New file.
2600         * tests/test-y0.c: New file.
2601
2602         Tests for module 'tanh'.
2603         * modules/tanh-tests: New file.
2604         * tests/test-tanh.c: New file.
2605
2606         Tests for module 'tan'.
2607         * modules/tan-tests: New file.
2608         * tests/test-tan.c: New file.
2609
2610         Tests for module 'sqrt'.
2611         * modules/sqrt-tests: New file.
2612         * tests/test-sqrt.c: New file.
2613
2614         Tests for module 'sinh'.
2615         * modules/sinh-tests: New file.
2616         * tests/test-sinh.c: New file.
2617
2618         Tests for module 'sin'.
2619         * modules/sin-tests: New file.
2620         * tests/test-sin.c: New file.
2621
2622         Tests for module 'rint'.
2623         * modules/rint-tests: New file.
2624         * tests/test-rint.c: New file.
2625
2626         Tests for module 'remainder'.
2627         * modules/remainder-tests: New file.
2628         * tests/test-remainder.c: New file.
2629
2630         Tests for module 'pow'.
2631         * modules/pow-tests: New file.
2632         * tests/test-pow.c: New file.
2633
2634         Tests for module 'nextafter'.
2635         * modules/nextafter-tests: New file.
2636         * tests/test-nextafter.c: New file.
2637
2638         Tests for module 'modf'.
2639         * modules/modf-tests: New file.
2640         * tests/test-modf.c: New file.
2641
2642         Tests for module 'logb'.
2643         * modules/logb-tests: New file.
2644         * tests/test-logb.c: New file.
2645
2646         Tests for module 'log1p'.
2647         * modules/log1p-tests: New file.
2648         * tests/test-log1p.c: New file.
2649
2650         Tests for module 'log10'.
2651         * modules/log10-tests: New file.
2652         * tests/test-log10.c: New file.
2653
2654         Tests for module 'log'.
2655         * modules/log-tests: New file.
2656         * tests/test-log.c: New file.
2657
2658         Tests for module 'lgamma'.
2659         * modules/lgamma-tests: New file.
2660         * tests/test-lgamma.c: New file.
2661
2662         Tests for module 'ldexp'.
2663         * modules/ldexp-tests: New file.
2664         * tests/test-ldexp.c: New file.
2665
2666         Tests for module 'jn'.
2667         * modules/jn-tests: New file.
2668         * tests/test-jn.c: New file.
2669
2670         Tests for module 'j1'.
2671         * modules/j1-tests: New file.
2672         * tests/test-j1.c: New file.
2673
2674         Tests for module 'j0'.
2675         * modules/j0-tests: New file.
2676         * tests/test-j0.c: New file.
2677
2678         Tests for module 'hypot'.
2679         * modules/hypot-tests: New file.
2680         * tests/test-hypot.c: New file.
2681
2682         Tests for module 'fmod'.
2683         * modules/fmod-tests: New file.
2684         * tests/test-fmod.c: New file.
2685
2686         Tests for module 'fabs'.
2687         * modules/fabs-tests: New file.
2688         * tests/test-fabs.c: New file.
2689
2690         Tests for module 'exp'.
2691         * modules/exp-tests: New file.
2692         * tests/test-exp.c: New file.
2693
2694         Tests for module 'erfc'.
2695         * modules/erfc-tests: New file.
2696         * tests/test-erfc.c: New file.
2697
2698         Tests for module 'erf'.
2699         * modules/erf-tests: New file.
2700         * tests/test-erf.c: New file.
2701
2702         Tests for module 'cosh'.
2703         * modules/cosh-tests: New file.
2704         * tests/test-cosh.c: New file.
2705
2706         Tests for module 'cos'.
2707         * modules/cos-tests: New file.
2708         * tests/test-cos.c: New file.
2709
2710         Tests for module 'copysign'.
2711         * modules/copysign-tests: New file.
2712         * tests/test-copysign.c: New file.
2713
2714         Tests for module 'cbrt'.
2715         * modules/cbrt-tests: New file.
2716         * tests/test-cbrt.c: New file.
2717
2718         Tests for module 'atan2'.
2719         * modules/atan2-tests: New file.
2720         * tests/test-atan2.c: New file.
2721
2722         Tests for module 'atan'.
2723         * modules/atan-tests: New file.
2724         * tests/test-atan.c: New file.
2725
2726         Tests for module 'asin'.
2727         * modules/asin-tests: New file.
2728         * tests/test-asin.c: New file.
2729
2730         Tests for module 'acos'.
2731         * modules/acos-tests: New file.
2732         * tests/test-acos.c: New file.
2733
2734 2010-01-24  Bruno Haible  <bruno@clisp.org>
2735
2736         Fix tests for common <math.h> functions.
2737         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2738         code snippet that references the function pointer, rather than merely
2739         calling the function. Substitute the FUNC_LIBM variable.
2740         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2741         * modules/acos (configure.ac): Likewise.
2742         * modules/asin (configure.ac): Likewise.
2743         * modules/atan (configure.ac): Likewise.
2744         * modules/atan2 (configure.ac): Likewise.
2745         * modules/cbrt (configure.ac): Likewise.
2746         * modules/copysign (configure.ac): Likewise.
2747         * modules/cos (configure.ac): Likewise.
2748         * modules/cosh (configure.ac): Likewise.
2749         * modules/erf (configure.ac): Likewise.
2750         * modules/erfc (configure.ac): Likewise.
2751         * modules/exp (configure.ac): Likewise.
2752         * modules/fabs (configure.ac): Likewise.
2753         * modules/fmod (configure.ac): Likewise.
2754         * modules/hypot (configure.ac): Likewise.
2755         * modules/j0 (configure.ac): Likewise.
2756         * modules/j1 (configure.ac): Likewise.
2757         * modules/jn (configure.ac): Likewise.
2758         * modules/ldexp (configure.ac): Likewise.
2759         * modules/lgamma (configure.ac): Likewise.
2760         * modules/log (configure.ac): Likewise.
2761         * modules/log10 (configure.ac): Likewise.
2762         * modules/log1p (configure.ac): Likewise.
2763         * modules/logb (configure.ac): Likewise.
2764         * modules/modf (configure.ac): Likewise.
2765         * modules/nextafter (configure.ac): Likewise.
2766         * modules/pow (configure.ac): Likewise.
2767         * modules/remainder (configure.ac): Likewise.
2768         * modules/rint (configure.ac): Likewise.
2769         * modules/sin (configure.ac): Likewise.
2770         * modules/sinh (configure.ac): Likewise.
2771         * modules/tan (configure.ac): Likewise.
2772         * modules/tanh (configure.ac): Likewise.
2773         * modules/y0 (configure.ac): Likewise.
2774         * modules/y1 (configure.ac): Likewise.
2775         * modules/yn (configure.ac): Likewise.
2776
2777 2010-01-24  Bruno Haible  <bruno@clisp.org>
2778
2779         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2780         * tests/test-acosl.c (x): New variable.
2781         (main): Store argument in x and fetch it from x.
2782         * tests/test-asinl.c (x): New variable.
2783         (main): Store argument in x and fetch it from x.
2784         * tests/test-atanl.c (x): New variable.
2785         (main): Store argument in x and fetch it from x.
2786         * tests/test-cosl.c (x): New variable.
2787         (main): Store argument in x and fetch it from x.
2788         * tests/test-expl.c (x): New variable.
2789         (main): Store argument in x and fetch it from x.
2790         * tests/test-logl.c (x): New variable.
2791         (main): Store argument in x and fetch it from x.
2792         * tests/test-sinl.c (x): New variable.
2793         (main): Store argument in x and fetch it from x.
2794         * tests/test-sqrtl.c (x): New variable.
2795         (main): Store argument in x and fetch it from x.
2796         * tests/test-tanl.c (x): New variable.
2797         (main): Store argument in x and fetch it from x.
2798
2799 2010-01-24  Bruno Haible  <bruno@clisp.org>
2800
2801         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2802         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2803         assignments to the initial TESTS_ENVIRONMENT.
2804         * doc/gnulib.texi (Unit test modules): Document it.
2805         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2806         TESTS_ENVIRONMENT.
2807         * modules/btowc-tests (Makefile.am): Likewise.
2808         * modules/c-stack-tests (Makefile.am): Likewise.
2809         * modules/c-strcase-tests (Makefile.am): Likewise.
2810         * modules/copy-file-tests (Makefile.am): Likewise.
2811         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2812         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2813         * modules/mbrtowc-tests (Makefile.am): Likewise.
2814         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2815         * modules/mbscasestr-tests (Makefile.am): Likewise.
2816         * modules/mbschr-tests (Makefile.am): Likewise.
2817         * modules/mbscspn-tests (Makefile.am): Likewise.
2818         * modules/mbsinit-tests (Makefile.am): Likewise.
2819         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2820         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2821         * modules/mbspbrk-tests (Makefile.am): Likewise.
2822         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2823         * modules/mbsrchr-tests (Makefile.am): Likewise.
2824         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2825         * modules/mbsspn-tests (Makefile.am): Likewise.
2826         * modules/mbsstr-tests (Makefile.am): Likewise.
2827         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2828         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2829         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2830         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2831         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2832         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2833         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2834         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2835         * modules/wcrtomb-tests (Makefile.am): Likewise.
2836         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2837         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2838         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2839         assignments from TESTS_ENVIRONMENT.
2840         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2841         augmentation.
2842         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2843         * modules/atexit-tests (Makefile.am): Likewise.
2844         * modules/binary-io-tests (Makefile.am): Likewise.
2845         * modules/closein-tests (Makefile.am): Likewise.
2846         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2847         * modules/exclude-tests (Makefile.am): Likewise.
2848         * modules/fflush-tests (Makefile.am): Likewise.
2849         * modules/fpending-tests (Makefile.am): Likewise.
2850         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2851         * modules/freadahead-tests (Makefile.am): Likewise.
2852         * modules/freadptr-tests (Makefile.am): Likewise.
2853         * modules/freadseek-tests (Makefile.am): Likewise.
2854         * modules/fseek-tests (Makefile.am): Likewise.
2855         * modules/fseeko-tests (Makefile.am): Likewise.
2856         * modules/ftell-tests (Makefile.am): Likewise.
2857         * modules/ftello-tests (Makefile.am): Likewise.
2858         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2859         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2860         * modules/lseek-tests (Makefile.am): Likewise.
2861         * modules/parse-duration-tests (Makefile.am): Likewise.
2862         * modules/perror-tests (Makefile.am): Likewise.
2863         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2864         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2865         * modules/pipe-tests (Makefile.am): Likewise.
2866         * modules/pread-tests (Makefile.am): Likewise.
2867         * modules/printf-posix-tests (Makefile.am): Likewise.
2868         * modules/select-tests (Makefile.am): Likewise.
2869         * modules/sigpipe-tests (Makefile.am): Likewise.
2870         * modules/tsearch-tests (Makefile.am): Likewise.
2871         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2872         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2873         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2874         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2875         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2876         * modules/version-etc-tests (Makefile.am): Likewise.
2877         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2878         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2879         * modules/xalloc-die-tests (Makefile.am): Likewise.
2880         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2881         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2882         * modules/xstrtol-tests (Makefile.am): Likewise.
2883         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2884         * modules/yesno-tests (Makefile.am): Likewise.
2885         Suggested by Jim Meyering.
2886
2887 2010-01-24  Bruno Haible  <bruno@clisp.org>
2888
2889         More documentation.
2890         * doc/gnulib.texi (Writing modules): New chapter.
2891         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2892         the new chapter.
2893
2894 2010-01-24  Jim Meyering  <meyering@redhat.com>
2895
2896         maint.mk: do not prepend "./" after filtering
2897         * top/maint.mk (_prepend_srcdir_prefix): New variable
2898         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2899         "./" when $(srcdir) is ".".
2900
2901         define STREQ(a,b) consistently, removing useless parentheses
2902         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2903         since the only risk is that "a" or "b" contains an unparenthesized
2904         comma, but if either did that, STREQ would have 3 or more arguments.
2905         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2906         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2907         * lib/hash-triple.c (STREQ): Likewise.
2908         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2909         * lib/getugroups.c (STREQ): Likewise.
2910
2911 2010-01-23  Jim Meyering  <meyering@redhat.com>
2912
2913         maint.mk: fix syntax-check in a non-srcdir build directory
2914         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2915         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2916
2917 2010-01-22  Jim Meyering  <meyering@redhat.com>
2918
2919         userspec: add unit tests
2920         * tests/test-userspec.c: New file.
2921         * modules/userspec-tests: Likewise.
2922
2923 2010-01-21  Jim Meyering  <meyering@redhat.com>
2924
2925         maint.mk: handle source file names containing "." robustly
2926         * top/maint.mk (_dot_escaped_srcdir): Define.
2927         (VC_LIST): Use it in LHS of sed substitution.
2928
2929 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2930
2931         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2932         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2933         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2934         from a non-srcdir build.
2935
2936 2010-01-20  Eric Blake  <ebb9@byu.net>
2937
2938         warn-on-use: use instead of link-warning
2939         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2940         * modules/unistd (Depends-on, Makefile.am): Likewise.
2941         * modules/arpa_inet (Depends-on): Replace link-warning with
2942         warn-on-use.
2943         (Makefile.am): Update rules accordingly.
2944         * modules/ctype (Depends-on, Makefile.am): Likewise.
2945         * modules/dirent (Depends-on, Makefile.am): Likewise.
2946         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2947         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2948         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2949         * modules/locale (Depends-on, Makefile.am): Likewise.
2950         * modules/math (Depends-on, Makefile.am): Likewise.
2951         * modules/search (Depends-on, Makefile.am): Likewise.
2952         * modules/signal (Depends-on, Makefile.am): Likewise.
2953         * modules/spawn (Depends-on, Makefile.am): Likewise.
2954         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2955         * modules/string (Depends-on, Makefile.am): Likewise.
2956         * modules/strings (Depends-on, Makefile.am): Likewise.
2957         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2958         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2959         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2960         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2961         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2962         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2963         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2964         * modules/wchar (Depends-on, Makefile.am): Likewise.
2965         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2966         should be poisoned.
2967         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2968         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2969         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2970         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2972         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2973         * m4/math_h.m4 (gl_MATH_H): Likewise.
2974         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2975         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2976         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2977         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2978         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2979         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2980         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2981         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2986         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2988         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2989         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2990         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2991         GL_LINK_WARNING.
2992         * lib/ctype.in.h: Likewise.
2993         * lib/dirent.in.h: Likewise.
2994         * lib/fcntl.in.h: Likewise.
2995         * lib/inttypes.in.h: Likewise.
2996         * lib/langinfo.in.h: Likewise.
2997         * lib/locale.in.h: Likewise.
2998         * lib/math.in.h: Likewise.
2999         * lib/search.in.h: Likewise.
3000         * lib/signal.in.h: Likewise.
3001         * lib/spawn.in.h: Likewise.
3002         * lib/stdio.in.h: Likewise.
3003         * lib/stdlib.in.h: Likewise.
3004         * lib/string.in.h: Likewise.
3005         * lib/strings.in.h: Likewise.
3006         * lib/sys_file.in.h: Likewise.
3007         * lib/sys_ioctl.in.h: Likewise.
3008         * lib/sys_select.in.h: Likewise.
3009         * lib/sys_socket.in.h: Likewise.
3010         * lib/sys_stat.in.h: Likewise.
3011         * lib/sys_times.in.h: Likewise.
3012         * lib/sys_utsname.in.h: Likewise.
3013         * lib/unistd.in.h: Likewise.
3014         * lib/wchar.in.h: Likewise.
3015
3016 2010-01-20  Bruno Haible  <bruno@clisp.org>
3017
3018         Avoid duplicate -lm.
3019         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3020         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3021         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3023         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3024         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3025         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3026         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3027         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3028         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3029         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3030         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3031         Reported by Paolo Bonzini.
3032
3033 2010-01-19  Bruno Haible  <bruno@clisp.org>
3034
3035         langinfo, nl_langinfo: Relicense under LGPLv2+.
3036         * modules/langinfo (License): Change to LGPLv2+.
3037         * modules/nl_langinfo (License): Likewise.
3038         Patch by David Lutterkort <lutter@redhat.com>.
3039
3040 2010-01-19  Bruno Haible  <bruno@clisp.org>
3041
3042         Avoid compilation error with cc on OSF/1 5.1.
3043         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3044         statement, not before.
3045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3046
3047 2010-01-18  Bruno Haible  <bruno@clisp.org>
3048
3049         Avoid a link error due to the __printf__ symbol.
3050         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3051         and 2.6.x.
3052         (__format__, __printf__): Remove definitions.
3053         * lib/argp-fmtstream.h: Likewise.
3054         * lib/argp.h: Likewise.
3055         * lib/error.h: Likewise.
3056         * lib/vasnprintf.h: Likewise.
3057         * lib/xprintf.h: Likewise.
3058         * lib/xvasprintf.h: Likewise.
3059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3060
3061 2010-01-18  Bruno Haible  <bruno@clisp.org>
3062
3063         Tests for module 'tanl'.
3064         * modules/tanl-tests: New file.
3065         * tests/test-tanl.c: New file.
3066
3067         Tests for module 'sqrtl'.
3068         * modules/sqrtl-tests: New file.
3069         * tests/test-sqrtl.c: New file.
3070
3071         Tests for module 'sinl'.
3072         * modules/sinl-tests: New file.
3073         * tests/test-sinl.c: New file.
3074
3075         Tests for module 'logl'.
3076         * modules/logl-tests: New file.
3077         * tests/test-logl.c: New file.
3078
3079         Tests for module 'expl'.
3080         * modules/expl-tests: New file.
3081         * tests/test-expl.c: New file.
3082
3083         Tests for module 'cosl'.
3084         * modules/cosl-tests: New file.
3085         * tests/test-cosl.c: New file.
3086
3087         Tests for module 'atanl'.
3088         * modules/atanl-tests: New file.
3089         * tests/test-atanl.c: New file.
3090
3091         Tests for module 'asinl'.
3092         * modules/asinl-tests: New file.
3093         * tests/test-asinl.c: New file.
3094
3095         Tests for module 'acosl'.
3096         * modules/acosl-tests: New file.
3097         * tests/test-acosl.c: New file.
3098
3099         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3100         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3101         tanl): Use the standard gnulib idiom.
3102         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3103         * lib/sinl.c: Likewise.
3104         * lib/tanl.c: Don't include trigl.c.
3105         (kernel_tanl): Make static.
3106         * lib/sincosl.c: Include trigl.h first.
3107         * lib/trigl.c: Likewise.
3108         * m4/acosl.m4: New file.
3109         * m4/asinl.m4: New file.
3110         * m4/atanl.m4: New file.
3111         * m4/cosl.m4: New file.
3112         * m4/expl.m4: New file.
3113         * m4/logl.m4: New file.
3114         * m4/sinl.m4: New file.
3115         * m4/sqrtl.m4: New file.
3116         * m4/tanl.m4: New file.
3117         * m4/mathl.m4: Remove file.
3118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3119         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3120         Don't initialize GNULIB_MATHL.
3121         * modules/acosl: New file.
3122         * modules/asinl: New file.
3123         * modules/atanl: New file.
3124         * modules/cosl: New file.
3125         * modules/expl: New file.
3126         * modules/logl: New file.
3127         * modules/sinl: New file.
3128         * modules/sqrtl: New file.
3129         * modules/tanl: New file.
3130         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3131         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3132         substitute GNULIB_MATHL.
3133         * modules/mathl: Rewritten.
3134         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3135         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3136         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3137         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3138         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3139         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3140         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3141         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3142         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3143
3144 2010-01-18  Bruno Haible  <bruno@clisp.org>
3145
3146         sqrt: Make gl_FUNC_SQRT requirable.
3147         * m4/sqrt.m4: New file.
3148         * modules/sqrt (Files): Add it.
3149         (configure.ac): Invoke gl_FUNC_SQRT.
3150
3151 2010-01-18  Bruno Haible  <bruno@clisp.org>
3152
3153         New modules for common <math.h> functions.
3154         * m4/mathfunc.m4: New file.
3155         * modules/acos: New file.
3156         * modules/asin: New file.
3157         * modules/atan: New file.
3158         * modules/atan2: New file.
3159         * modules/cbrt: New file.
3160         * modules/copysign: New file.
3161         * modules/cos: New file.
3162         * modules/cosh: New file.
3163         * modules/erf: New file.
3164         * modules/erfc: New file.
3165         * modules/exp: New file.
3166         * modules/fabs: New file.
3167         * modules/fmod: New file.
3168         * modules/hypot: New file.
3169         * modules/j0: New file.
3170         * modules/j1: New file.
3171         * modules/jn: New file.
3172         * modules/ldexp: New file.
3173         * modules/lgamma: New file.
3174         * modules/log: New file.
3175         * modules/log10: New file.
3176         * modules/log1p: New file.
3177         * modules/logb: New file.
3178         * modules/modf: New file.
3179         * modules/nextafter: New file.
3180         * modules/pow: New file.
3181         * modules/remainder: New file.
3182         * modules/rint: New file.
3183         * modules/sin: New file.
3184         * modules/sinh: New file.
3185         * modules/sqrt: New file.
3186         * modules/tan: New file.
3187         * modules/tanh: New file.
3188         * modules/y0: New file.
3189         * modules/y1: New file.
3190         * modules/yn: New file.
3191         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3192         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3193         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3194         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3195         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3196         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3197         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3198         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3199         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3200         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3201         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3202         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3203         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3204         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3205         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3206         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3207         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3208         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3209         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3210         * doc/posix-functions/log.texi: Mention the 'log' module.
3211         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3212         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3213         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3214         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3215         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3216         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3217         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3218         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3219         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3220         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3221         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3222         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3223         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3224         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3225         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3226         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3227
3228 2010-01-18  Jim Meyering  <meyering@redhat.com>
3229
3230         ignore-value: relax license to LGPLv2+
3231         * modules/ignore-value (License): Relax to LGPLv2+.
3232
3233         getdate: don't leak when TZ contains two or more '"'s
3234         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3235         double quote in TZ after the first one.
3236
3237         readtokens: do not leak internal token_lengths buffer
3238         * lib/readtokens.c (readtokens): Free the local, lengths,
3239         when the supplied "token_lengths" parameter is NULL.
3240
3241 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3242
3243         Fix a couple of missing LIBTHREAD link failures on AIX.
3244         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3245         $(LIBTHREAD).
3246         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3247
3248         Link test-poll against INET_PTON_LIB.
3249         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3250         for inet_pton on Solaris 10.
3251
3252 2010-01-17  Bruno Haible  <bruno@clisp.org>
3253
3254         unistdio/*-sprintf: Fix typo in module description.
3255         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3256         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3257         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3258         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3259         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3260         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3261         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3263
3264 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3265
3266         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3267         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3268         variables in shell case patterns, for AIX and HP-UX ksh.
3269
3270         Split large sed scripts, for HP-UX sed.
3271         * modules/stdio: Split sed scripts around 50 sed commands,
3272         to avoid HP-UX limit of 99 commands, in the near future.
3273         * modules/string: Likewise.
3274         * modules/unistd: Likewise.
3275
3276         gnulib-tool: avoid writing in the current directory.
3277         * gnulib-tool (func_emit_lib_Makefile_am)
3278         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3279         not in the current directory, so concurrent gnulib-tool
3280         instances do not interfere.
3281
3282 2010-01-16  Jim Meyering  <meyering@redhat.com>
3283
3284         doc: update users.txt
3285         * users.txt: Add grep.
3286         (diffutils, gzip): Update URLs.
3287
3288 2010-01-12  Bruno Haible  <bruno@clisp.org>
3289
3290         posix_spawn: Avoid test failure on Cygwin.
3291         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3292         characters.
3293         Reported by Simon Josefsson.
3294
3295 2010-01-12  Bruno Haible  <bruno@clisp.org>
3296
3297         * tests/test-cond.c (main): When skipping the test, show the reason.
3298
3299 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3300
3301         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3302
3303 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3304
3305         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3306         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3307
3308 2010-01-12  Eric Blake  <ebb9@byu.net>
3309
3310         build: guarantee AS_VAR_IF
3311         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3312         (gl_AS_VAR_IF): Move...
3313         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3314         Reported by Simon Josefsson.
3315
3316 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3317
3318         * lib/stdio.in.h: Fix typo.
3319
3320 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3321
3322         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3323         libgpg-error.
3324
3325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3326
3327         * tests/test-xalloc-die.sh: Use $EXEEXT.
3328
3329 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3330             Bruno Haible  <bruno@clisp.org>
3331
3332         getlogin, getlogin_r: Avoid test failure.
3333         * tests/test-getlogin.c: Include <stdio.h>.
3334         (main): Skip the test when the function fails because stdin is not a
3335         tty.
3336         * tests/test-getlogin_r.c: Include <stdio.h>.
3337         (main): Skip the test when the function fails because stdin is not a
3338         tty.
3339
3340 2010-01-11  Eric Blake  <ebb9@byu.net>
3341
3342         tests: avoid more large file warnings
3343         * tests/test-fflush.c: Avoid warning about ftell use.
3344         * tests/test-fseek.c: Avoid warning about fseek use.
3345
3346 2010-01-10  Bruno Haible  <bruno@clisp.org>
3347
3348         nproc: Work better on Linux when /proc and /sys are not mounted.
3349         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3350         as lower bound when, on glibc/Linux systems,
3351         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3352         Suggested by Pádraig Brady <P@draigbrady.com>.
3353         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3354
3355         nproc: Refactor.
3356         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3357         extracted from num_processors.
3358         (num_processors): Call it.
3359
3360 2010-01-11  Jim Meyering  <meyering@redhat.com>
3361
3362         utimecmp: avoid new warning from upcoming gcc-4.5.0
3363         * lib/utimecmp.c (BILLION): Define using #define rather than an
3364         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3365
3366 2010-01-11  Eric Blake  <ebb9@byu.net>
3367
3368         math: add portability warnings for classification macros
3369         * modules/math (Depends-on): Add warn-on-use.
3370         (Makefile.am): Provide new substitutions.
3371         * m4/math_h.m4 (gl_MATH_H): Require inline.
3372         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3373         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3374         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3375         implement warnings.
3376
3377         unistd: warn on use of environ without module
3378         * modules/unistd (Depends-on): Add warn-on-use.
3379         (Makefile.am): Provide new substitutions.
3380         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3381         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3382
3383         stdio: warn on suspicious uses
3384         * modules/stdio (Depends-on): Add warn-on-use.
3385         (Makefile.am): Provide new substitutions.
3386         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3387         fseeko.
3388         * lib/stdio.in.h (gets): Always warn on use.
3389         (fseek, ftell): Adjust when warnings are issued, and honor
3390         _GL_NO_LARGE_FILES as a way to silence the warning.
3391         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3392         any warning about large file offsets.
3393         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3394         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3395         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3396         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3397         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3398         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3399         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3400         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3401
3402         warn-on-use: new module
3403         * modules/warn-on-use: New file.
3404         * build-aux/warn-on-use.h: Likewise.
3405         * m4/warn-on-use.m4: Likewise.
3406         * MODULES.html.sh (Support for building): Mention it.
3407
3408 2010-01-10  Bruno Haible  <bruno@clisp.org>
3409
3410         Tests for module 'unistr/u32-strdup'.
3411         * modules/unistr/u32-strdup-tests: New file.
3412         * tests/unistr/test-u32-strdup.c: New file.
3413
3414         Tests for module 'unistr/u16-strdup'.
3415         * modules/unistr/u16-strdup-tests: New file.
3416         * tests/unistr/test-u16-strdup.c: New file.
3417
3418         Tests for module 'unistr/u8-strdup'.
3419         * modules/unistr/u8-strdup-tests: New file.
3420         * tests/unistr/test-u8-strdup.c: New file.
3421         * tests/unistr/test-strdup.h: New file.
3422
3423         Tests for module 'unistr/u32-strncmp'.
3424         * modules/unistr/u32-strncmp-tests: New file.
3425         * tests/unistr/test-u32-strncmp.c: New file.
3426
3427         Tests for module 'unistr/u16-strncmp'.
3428         * modules/unistr/u16-strncmp-tests: New file.
3429         * tests/unistr/test-u16-strncmp.c: New file.
3430
3431         Tests for module 'unistr/u8-strncmp'.
3432         * modules/unistr/u8-strncmp-tests: New file.
3433         * tests/unistr/test-u8-strncmp.c: New file.
3434         * tests/unistr/test-strncmp.h: New file.
3435
3436         Tests for module 'unistr/u32-strcoll'.
3437         * modules/unistr/u32-strcoll-tests: New file.
3438         * tests/unistr/test-u32-strcoll.c: New file.
3439
3440         Tests for module 'unistr/u16-strcoll'.
3441         * modules/unistr/u16-strcoll-tests: New file.
3442         * tests/unistr/test-u16-strcoll.c: New file.
3443
3444         Tests for module 'unistr/u8-strcoll'.
3445         * modules/unistr/u8-strcoll-tests: New file.
3446         * tests/unistr/test-u8-strcoll.c: New file.
3447
3448         Tests for module 'unistr/u32-strcmp'.
3449         * modules/unistr/u32-strcmp-tests: New file.
3450         * tests/unistr/test-u32-strcmp.c: New file.
3451         * tests/unistr/test-u32-strcmp.h: New file.
3452
3453         Tests for module 'unistr/u16-strcmp'.
3454         * modules/unistr/u16-strcmp-tests: New file.
3455         * tests/unistr/test-u16-strcmp.c: New file.
3456         * tests/unistr/test-u16-strcmp.h: New file.
3457
3458         Tests for module 'unistr/u8-strcmp'.
3459         * modules/unistr/u8-strcmp-tests: New file.
3460         * tests/unistr/test-u8-strcmp.c: New file.
3461         * tests/unistr/test-u8-strcmp.h: New file.
3462         * tests/unistr/test-strcmp.h: New file.
3463
3464         Tests for module 'unistr/u32-strncat'.
3465         * modules/unistr/u32-strncat-tests: New file.
3466         * tests/unistr/test-u32-strncat.c: New file.
3467
3468         Tests for module 'unistr/u16-strncat'.
3469         * modules/unistr/u16-strncat-tests: New file.
3470         * tests/unistr/test-u16-strncat.c: New file.
3471
3472         Tests for module 'unistr/u8-strncat'.
3473         * modules/unistr/u8-strncat-tests: New file.
3474         * tests/unistr/test-u8-strncat.c: New file.
3475         * tests/unistr/test-strncat.h: New file.
3476
3477         Tests for module 'unistr/u32-strcat'.
3478         * modules/unistr/u32-strcat-tests: New file.
3479         * tests/unistr/test-u32-strcat.c: New file.
3480
3481         Tests for module 'unistr/u16-strcat'.
3482         * modules/unistr/u16-strcat-tests: New file.
3483         * tests/unistr/test-u16-strcat.c: New file.
3484
3485         Tests for module 'unistr/u8-strcat'.
3486         * modules/unistr/u8-strcat-tests: New file.
3487         * tests/unistr/test-u8-strcat.c: New file.
3488         * tests/unistr/test-strcat.h: New file.
3489
3490         Tests for module 'unistr/u32-stpncpy'.
3491         * modules/unistr/u32-stpncpy-tests: New file.
3492         * tests/unistr/test-u32-stpncpy.c: New file.
3493
3494         Tests for module 'unistr/u16-stpncpy'.
3495         * modules/unistr/u16-stpncpy-tests: New file.
3496         * tests/unistr/test-u16-stpncpy.c: New file.
3497
3498         Tests for module 'unistr/u8-stpncpy'.
3499         * modules/unistr/u8-stpncpy-tests: New file.
3500         * tests/unistr/test-u8-stpncpy.c: New file.
3501         * tests/unistr/test-stpncpy.h: New file.
3502
3503         Tests for module 'unistr/u32-strncpy'.
3504         * modules/unistr/u32-strncpy-tests: New file.
3505         * tests/unistr/test-u32-strncpy.c: New file.
3506
3507         Tests for module 'unistr/u16-strncpy'.
3508         * modules/unistr/u16-strncpy-tests: New file.
3509         * tests/unistr/test-u16-strncpy.c: New file.
3510
3511         Tests for module 'unistr/u8-strncpy'.
3512         * modules/unistr/u8-strncpy-tests: New file.
3513         * tests/unistr/test-u8-strncpy.c: New file.
3514         * tests/unistr/test-strncpy.h: New file.
3515
3516         Tests for module 'unistr/u32-stpcpy'.
3517         * modules/unistr/u32-stpcpy-tests: New file.
3518         * tests/unistr/test-u32-stpcpy.c: New file.
3519
3520         Tests for module 'unistr/u16-stpcpy'.
3521         * modules/unistr/u16-stpcpy-tests: New file.
3522         * tests/unistr/test-u16-stpcpy.c: New file.
3523
3524         Tests for module 'unistr/u8-stpcpy'.
3525         * modules/unistr/u8-stpcpy-tests: New file.
3526         * tests/unistr/test-u8-stpcpy.c: New file.
3527         * tests/unistr/test-stpcpy.h: New file.
3528
3529         Tests for module 'unistr/u32-strcpy'.
3530         * modules/unistr/u32-strcpy-tests: New file.
3531         * tests/unistr/test-u32-strcpy.c: New file.
3532
3533         Tests for module 'unistr/u16-strcpy'.
3534         * modules/unistr/u16-strcpy-tests: New file.
3535         * tests/unistr/test-u16-strcpy.c: New file.
3536
3537         Tests for module 'unistr/u8-strcpy'.
3538         * modules/unistr/u8-strcpy-tests: New file.
3539         * tests/unistr/test-u8-strcpy.c: New file.
3540         * tests/unistr/test-strcpy.h: New file.
3541
3542         Tests for module 'unistr/u32-strnlen'.
3543         * modules/unistr/u32-strnlen-tests: New file.
3544         * tests/unistr/test-u32-strnlen.c: New file.
3545
3546         Tests for module 'unistr/u16-strnlen'.
3547         * modules/unistr/u16-strnlen-tests: New file.
3548         * tests/unistr/test-u16-strnlen.c: New file.
3549
3550         Tests for module 'unistr/u8-strnlen'.
3551         * modules/unistr/u8-strnlen-tests: New file.
3552         * tests/unistr/test-u8-strnlen.c: New file.
3553         * tests/unistr/test-strnlen.h: New file.
3554
3555         Tests for module 'unistr/u32-strlen'.
3556         * modules/unistr/u32-strlen-tests: New file.
3557         * tests/unistr/test-u32-strlen.c: New file.
3558
3559         Tests for module 'unistr/u16-strlen'.
3560         * modules/unistr/u16-strlen-tests: New file.
3561         * tests/unistr/test-u16-strlen.c: New file.
3562
3563         Tests for module 'unistr/u8-strlen'.
3564         * modules/unistr/u8-strlen-tests: New file.
3565         * tests/unistr/test-u8-strlen.c: New file.
3566
3567         Tests for module 'unistr/u32-prev'.
3568         * modules/unistr/u32-prev-tests: New file.
3569         * tests/unistr/test-u32-prev.c: New file.
3570
3571         Tests for module 'unistr/u16-prev'.
3572         * modules/unistr/u16-prev-tests: New file.
3573         * tests/unistr/test-u16-prev.c: New file.
3574
3575         Tests for module 'unistr/u8-prev'.
3576         * modules/unistr/u8-prev-tests: New file.
3577         * tests/unistr/test-u8-prev.c: New file.
3578
3579         Tests for module 'unistr/u32-next'.
3580         * modules/unistr/u32-next-tests: New file.
3581         * tests/unistr/test-u32-next.c: New file.
3582
3583         Tests for module 'unistr/u16-next'.
3584         * modules/unistr/u16-next-tests: New file.
3585         * tests/unistr/test-u16-next.c: New file.
3586
3587         Tests for module 'unistr/u8-next'.
3588         * modules/unistr/u8-next-tests: New file.
3589         * tests/unistr/test-u8-next.c: New file.
3590
3591         Tests for module 'unistr/u32-strmbtouc'.
3592         * modules/unistr/u32-strmbtouc-tests: New file.
3593         * tests/unistr/test-u32-strmbtouc.c: New file.
3594
3595         Tests for module 'unistr/u16-strmbtouc'.
3596         * modules/unistr/u16-strmbtouc-tests: New file.
3597         * tests/unistr/test-u16-strmbtouc.c: New file.
3598
3599         Tests for module 'unistr/u8-strmbtouc'.
3600         * modules/unistr/u8-strmbtouc-tests: New file.
3601         * tests/unistr/test-u8-strmbtouc.c: New file.
3602
3603         Tests for module 'unistr/u32-strmblen'.
3604         * modules/unistr/u32-strmblen-tests: New file.
3605         * tests/unistr/test-u32-strmblen.c: New file.
3606
3607         Tests for module 'unistr/u16-strmblen'.
3608         * modules/unistr/u16-strmblen-tests: New file.
3609         * tests/unistr/test-u16-strmblen.c: New file.
3610
3611         Tests for module 'unistr/u8-strmblen'.
3612         * modules/unistr/u8-strmblen-tests: New file.
3613         * tests/unistr/test-u8-strmblen.c: New file.
3614
3615         Tests for module 'unistr/u32-cpy-alloc'.
3616         * modules/unistr/u32-cpy-alloc-tests: New file.
3617         * tests/unistr/test-u32-cpy-alloc.c: New file.
3618
3619         Tests for module 'unistr/u16-cpy-alloc'.
3620         * modules/unistr/u16-cpy-alloc-tests: New file.
3621         * tests/unistr/test-u16-cpy-alloc.c: New file.
3622
3623         Tests for module 'unistr/u8-cpy-alloc'.
3624         * modules/unistr/u8-cpy-alloc-tests: New file.
3625         * tests/unistr/test-u8-cpy-alloc.c: New file.
3626         * tests/unistr/test-cpy-alloc.h: New file.
3627
3628         Tests for module 'unistr/u32-mbsnlen'.
3629         * modules/unistr/u32-mbsnlen-tests: New file.
3630         * tests/unistr/test-u32-mbsnlen.c: New file.
3631
3632         Tests for module 'unistr/u16-mbsnlen'.
3633         * modules/unistr/u16-mbsnlen-tests: New file.
3634         * tests/unistr/test-u16-mbsnlen.c: New file.
3635
3636         Tests for module 'unistr/u8-mbsnlen'.
3637         * modules/unistr/u8-mbsnlen-tests: New file.
3638         * tests/unistr/test-u8-mbsnlen.c: New file.
3639
3640         Tests for module 'unistr/u32-chr'.
3641         * modules/unistr/u32-chr-tests: New file.
3642         * tests/unistr/test-u32-chr.c: New file.
3643
3644         Tests for module 'unistr/u16-chr'.
3645         * modules/unistr/u16-chr-tests: New file.
3646         * tests/unistr/test-u16-chr.c: New file.
3647
3648         Tests for module 'unistr/u8-chr'.
3649         * modules/unistr/u8-chr-tests: New file.
3650         * tests/unistr/test-u8-chr.c: New file.
3651         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3652
3653         Tests for module 'unistr/u32-cmp2'.
3654         * modules/unistr/u32-cmp2-tests: New file.
3655         * tests/unistr/test-u32-cmp2.c: New file.
3656
3657         Tests for module 'unistr/u16-cmp2'.
3658         * modules/unistr/u16-cmp2-tests: New file.
3659         * tests/unistr/test-u16-cmp2.c: New file.
3660
3661         Tests for module 'unistr/u8-cmp2'.
3662         * modules/unistr/u8-cmp2-tests: New file.
3663         * tests/unistr/test-u8-cmp2.c: New file.
3664         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3665
3666         Tests for module 'unistr/u32-cmp'.
3667         * modules/unistr/u32-cmp-tests: New file.
3668         * tests/unistr/test-u32-cmp.c: New file.
3669
3670         Tests for module 'unistr/u16-cmp'.
3671         * modules/unistr/u16-cmp-tests: New file.
3672         * tests/unistr/test-u16-cmp.c: New file.
3673
3674         Tests for module 'unistr/u8-cmp'.
3675         * modules/unistr/u8-cmp-tests: New file.
3676         * tests/unistr/test-u8-cmp.c: New file.
3677         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3678
3679         Tests for module 'unistr/u32-set'.
3680         * modules/unistr/u32-set-tests: New file.
3681         * tests/unistr/test-u32-set.c: New file.
3682
3683         Tests for module 'unistr/u16-set'.
3684         * modules/unistr/u16-set-tests: New file.
3685         * tests/unistr/test-u16-set.c: New file.
3686
3687         Tests for module 'unistr/u8-set'.
3688         * modules/unistr/u8-set-tests: New file.
3689         * tests/unistr/test-u8-set.c: New file.
3690         * tests/unistr/test-set.h: New file.
3691
3692         Tests for module 'unistr/u32-move'.
3693         * modules/unistr/u32-move-tests: New file.
3694         * tests/unistr/test-u32-move.c: New file.
3695
3696         Tests for module 'unistr/u16-move'.
3697         * modules/unistr/u16-move-tests: New file.
3698         * tests/unistr/test-u16-move.c: New file.
3699
3700         Tests for module 'unistr/u8-move'.
3701         * modules/unistr/u8-move-tests: New file.
3702         * tests/unistr/test-u8-move.c: New file.
3703         * tests/unistr/test-move.h: New file.
3704
3705         Tests for module 'unistr/u32-cpy'.
3706         * modules/unistr/u32-cpy-tests: New file.
3707         * tests/unistr/test-u32-cpy.c: New file.
3708
3709         Tests for module 'unistr/u16-cpy'.
3710         * modules/unistr/u16-cpy-tests: New file.
3711         * tests/unistr/test-u16-cpy.c: New file.
3712
3713         Tests for module 'unistr/u8-cpy'.
3714         * modules/unistr/u8-cpy-tests: New file.
3715         * tests/unistr/test-u8-cpy.c: New file.
3716         * tests/unistr/test-cpy.h: New file.
3717
3718 2010-01-09  Bruno Haible  <bruno@clisp.org>
3719
3720         Tests for module 'unistr/u32-uctomb'.
3721         * modules/unistr/u32-uctomb-tests: New file.
3722         * tests/unistr/test-u32-uctomb.c: New file.
3723
3724         Tests for module 'unistr/u16-uctomb'.
3725         * modules/unistr/u16-uctomb-tests: New file.
3726         * tests/unistr/test-u16-uctomb.c: New file.
3727
3728         Tests for module 'unistr/u8-uctomb'.
3729         * modules/unistr/u8-uctomb-tests: New file.
3730         * tests/unistr/test-u8-uctomb.c: New file.
3731
3732         Tests for module 'unistr/u32-mbtoucr'.
3733         * modules/unistr/u32-mbtoucr-tests: New file.
3734         * tests/unistr/test-u32-mbtoucr.c: New file.
3735
3736         Tests for module 'unistr/u16-mbtoucr'.
3737         * modules/unistr/u16-mbtoucr-tests: New file.
3738         * tests/unistr/test-u16-mbtoucr.c: New file.
3739
3740         Tests for module 'unistr/u8-mbtoucr'.
3741         * modules/unistr/u8-mbtoucr-tests: New file.
3742         * tests/unistr/test-u8-mbtoucr.c: New file.
3743
3744         Tests for module 'unistr/u32-mbtouc'.
3745         * modules/unistr/u32-mbtouc-tests: New file.
3746         * tests/unistr/test-u32-mbtouc.c: New file.
3747
3748         Tests for module 'unistr/u16-mbtouc'.
3749         * modules/unistr/u16-mbtouc-tests: New file.
3750         * tests/unistr/test-u16-mbtouc.c: New file.
3751
3752         Tests for module 'unistr/u8-mbtouc'.
3753         * modules/unistr/u8-mbtouc-tests: New file.
3754         * tests/unistr/test-u8-mbtouc.c: New file.
3755
3756         Tests for module 'unistr/u32-mbtouc-unsafe'.
3757         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3758         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3759         * tests/unistr/test-u32-mbtouc.h: New file.
3760
3761         Tests for module 'unistr/u16-mbtouc-unsafe'.
3762         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3763         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3764         * tests/unistr/test-u16-mbtouc.h: New file.
3765
3766         Tests for module 'unistr/u8-mbtouc-unsafe'.
3767         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3768         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3769         * tests/unistr/test-u8-mbtouc.h: New file.
3770
3771         Tests for module 'unistr/u32-mblen'.
3772         * modules/unistr/u32-mblen-tests: New file.
3773         * tests/unistr/test-u32-mblen.c: New file.
3774
3775         Tests for module 'unistr/u16-mblen'.
3776         * modules/unistr/u16-mblen-tests: New file.
3777         * tests/unistr/test-u16-mblen.c: New file.
3778
3779         Tests for module 'unistr/u8-mblen'.
3780         * modules/unistr/u8-mblen-tests: New file.
3781         * tests/unistr/test-u8-mblen.c: New file.
3782
3783         Tests for module 'unistr/u32-to-u16'.
3784         * modules/unistr/u32-to-u16-tests: New file.
3785         * tests/unistr/test-u32-to-u16.c: New file.
3786
3787         Tests for module 'unistr/u32-to-u8'.
3788         * modules/unistr/u32-to-u8-tests: New file.
3789         * tests/unistr/test-u32-to-u8.c: New file.
3790
3791         Tests for module 'unistr/u16-to-u32'.
3792         * modules/unistr/u16-to-u32-tests: New file.
3793         * tests/unistr/test-u16-to-u32.c: New file.
3794
3795         Tests for module 'unistr/u16-to-u8'.
3796         * modules/unistr/u16-to-u8-tests: New file.
3797         * tests/unistr/test-u16-to-u8.c: New file.
3798
3799         Tests for module 'unistr/u8-to-u32'.
3800         * modules/unistr/u8-to-u32-tests: New file.
3801         * tests/unistr/test-u8-to-u32.c: New file.
3802
3803         Tests for module 'unistr/u8-to-u16'.
3804         * modules/unistr/u8-to-u16-tests: New file.
3805         * tests/unistr/test-u8-to-u16.c: New file.
3806
3807         Tests for module 'unistr/u32-check'.
3808         * modules/unistr/u32-check-tests: New file.
3809         * tests/unistr/test-u32-check.c: New file.
3810
3811         Tests for module 'unistr/u16-check'.
3812         * modules/unistr/u16-check-tests: New file.
3813         * tests/unistr/test-u16-check.c: New file.
3814
3815         Tests for module 'unistr/u8-check'.
3816         * modules/unistr/u8-check-tests: New file.
3817         * tests/unistr/test-u8-check.c: New file.
3818
3819         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3820         (category_equals): New function.
3821         (main): Add more tests.
3822         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3823
3824         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3825
3826 2010-01-10  Bruno Haible  <bruno@clisp.org>
3827
3828         unistr/u*-strcoll: Try harder to distinguish different strings.
3829         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3830         compare s1 and s2 to see if they are different.
3831
3832 2010-01-10  Bruno Haible  <bruno@clisp.org>
3833
3834         unistr/u*-stpncpy: Fix the return value.
3835         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3836         description of the return value consistent with stpncpy in glibc.
3837         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3838         written non-NUL unit.
3839
3840 2010-01-10  Bruno Haible  <bruno@clisp.org>
3841
3842         unistr/u*-next: Add missing dependencies.
3843         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3844         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3845         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3846
3847 2010-01-10  Bruno Haible  <bruno@clisp.org>
3848
3849         unistr/u8-mbsnlen: Fix return value for incomplete character.
3850         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3851         u8_mblen.
3852         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3853         Remove unistr/u8-mblen.
3854         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3855         u16_mblen.
3856         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3857         Remove unistr/u16-mblen.
3858
3859 2010-01-10  Bruno Haible  <bruno@clisp.org>
3860
3861         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3862         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3863         Reported by Brian Gough <bjg@gnu.org> and
3864         Chris Clayton <chris2553@googlemail.com> via
3865         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3866
3867 2010-01-09  Bruno Haible  <bruno@clisp.org>
3868
3869         unistr/u16-to-u32: Reject invalid input.
3870         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3871         u16_mbtouc.
3872         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3873         Remove unistr/u16-mbtouc.
3874
3875         unistr/u16-to-u8: Reject invalid input.
3876         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3877         u16_mbtouc.
3878         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3879         Remove unistr/u16-mbtouc.
3880
3881         unistr/u8-to-u32: Reject invalid input.
3882         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3883         u8_mbtouc.
3884         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3885         Remove unistr/u8-mbtouc.
3886
3887         unistr/u8-to-u16: Reject invalid input.
3888         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3889         u8_mbtouc.
3890         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3891         Remove unistr/u8-mbtouc.
3892
3893 2010-01-09  Bruno Haible  <bruno@clisp.org>
3894
3895         Tests for module 'getlogin'.
3896         * modules/getlogin-tests: New file.
3897         * tests/test-getlogin.c: New file.
3898
3899         New module 'getlogin'.
3900         * lib/unistd.in.h (getlogin): New declaration.
3901         * lib/getlogin.c: New file.
3902         * m4/getlogin.m4: New file.
3903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3904         HAVE_GETLOGIN.
3905         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3906         HAVE_GETLOGIN.
3907         * modules/getlogin: New file.
3908         * doc/posix-functions/getlogin.texi: Mention the new module.
3909         Reported by John W. Eaton <jwe@gnu.org>.
3910
3911 2010-01-09  Bruno Haible  <bruno@clisp.org>
3912
3913         getlogin_r: Support for native Windows.
3914         * lib/getlogin_r.c: Include <windows.h>
3915         (getlogin_r): Implement for native Windows.
3916         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3917         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3918         via John W. Eaton <jwe@gnu.org>.
3919
3920 2010-01-09  Bruno Haible  <bruno@clisp.org>
3921
3922         getlogin_r: Small fixes.
3923         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3924         succeeds.
3925         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3926         before testing whether getlogin_r is declared. No need to set
3927         HAVE_DECL_GETLOGIN_R to 1.
3928         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3929
3930 2010-01-09  Bruno Haible  <bruno@clisp.org>
3931
3932         * lib/unistd.in.h (getlogin_r): Add comment.
3933
3934 2010-01-09  Bruno Haible  <bruno@clisp.org>
3935
3936         Tests for module 'getlogin_r'.
3937         * modules/getlogin_r-tests: New file.
3938         * tests/test-getlogin_r.c: New file.
3939
3940 2010-01-09  Jim Meyering  <meyering@redhat.com>
3941
3942         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3943         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3944         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3945
3946 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3947
3948         * lib/dup2.c (rpl_dup2): Improve comment.
3949
3950 2010-01-08  Eric Blake  <ebb9@byu.net>
3951
3952         maint.mk: allow packages to add makefile @@ exceptions
3953         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3954         (sc_makefile_check): Rename...
3955         (sc_makefile_at_at_check): ...to this, and use hook.
3956
3957         dup2: work around mingw bug
3958         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3959         Reported by Simon Josefsson.
3960
3961 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3962
3963         glob: Fix C++ compilation.
3964         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3965         C++.
3966
3967 2010-01-07  Bruno Haible  <bruno@clisp.org>
3968
3969         Fix indentation of wctype.in.h, broken since 2007-01-06.
3970         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3971
3972 2010-01-07  Bruno Haible  <bruno@clisp.org>
3973
3974         mbslen: Avoid collision with system function.
3975         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3976         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3977         * m4/mbslen.m4: New file.
3978         * modules/mbslen (Files): Add it.
3979         (configure.ac): Invoke gl_MBSLEN.
3980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3981         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3982         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3983         via Ian Beckwith <ianb@erislabs.net>.
3984
3985 2010-01-07  Bruno Haible  <bruno@clisp.org>
3986
3987         dirent: Document the last fix.
3988         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3989
3990 2010-01-07  Bruno Haible  <bruno@clisp.org>
3991
3992         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3993         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3994         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3995         va_list are defined.
3996         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3997         Reported by Eric Blake.
3998
3999 2010-01-07  Bruno Haible  <bruno@clisp.org>
4000
4001         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4002         * modules/xlist (Depends-on): Add 'list',
4003         * modules/xoset (Depends-on): Add 'oset'.
4004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4005
4006 2010-01-07  Bruno Haible  <bruno@clisp.org>
4007
4008         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4009         * doc/posix-functions/strncasecmp.texi: Likewise.
4010
4011 2010-01-07  Bruno Haible  <bruno@clisp.org>
4012
4013         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4014
4015 2010-01-07  John W. Eaton  <jwe@octave.org>
4016
4017         wctype: allow C++ use
4018         * lib/wctype.in.h: Add extern "C" block for C++.
4019
4020 2010-01-06  Eric Blake  <ebb9@byu.net>
4021
4022         maint.mk: detect incorrect GFDL usage
4023         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4024
4025 2010-01-06  Jim Meyering  <meyering@redhat.com>
4026         and Eric Blake  <ebb9@byu.net>
4027
4028         maint.mk: ignore multi-line copyright in NEWS
4029         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4030
4031 2010-01-06  Eric Blake  <ebb9@byu.net>
4032
4033         select: add missing dependency
4034         * modules/select-tests (Depends-on): Move sockets dependency...
4035         * modules/select (Depends-on): ...here.
4036         Reported by Ian Beckwith.
4037
4038         doc: regenerate INSTALL
4039         * doc/INSTALL: Reflect recent autoconf update.
4040         * doc/INSTALL.ISO: Likewise.
4041         * doc/INSTALL.UTF-8: Likewise.
4042
4043         pread: fix compilation on glibc
4044         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4045         Reported by Ralf Wildenhues.
4046
4047         dirent: fix test failure
4048         * lib/dirent.in.h (includes): Guarantee ino_t.
4049         Reported by Ralf Wildenhues.
4050
4051 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4052
4053         linkat, renameat: avoid bad free
4054         * lib/at-func2.c (at_func2): Fix typo.
4055         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4056
4057 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4058
4059         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4060         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4061         to avoid failure of symlink test later.
4062
4063 2010-01-06  Eric Blake  <ebb9@byu.net>
4064
4065         stdio, unistd: guarantee ssize_t
4066         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4067         2008 are exposed when needed.
4068         * lib/stdio.in.h (includes): Likewise.
4069         Reported by Ralf Wildenhues.
4070
4071 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4072
4073         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4074         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4075         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4076
4077 2010-01-06  Jim Meyering  <meyering@redhat.com>
4078
4079         readtokens: this module *does* require xalloc.h
4080         It uses only functions that were omitted by the old syntax-check rule.
4081         * lib/readtokens.c: Include "xalloc.h" once again.
4082         * modules/readtokens (Depends-on): Add xalloc.
4083         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4084
4085 2010-01-05  Eric Blake  <ebb9@byu.net>
4086
4087         maint: support 'make announcement' from a VPATH build
4088         * top/maint.mk (announcement): Look for correct NEWS file.
4089
4090 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4091
4092         utimens (fdutimens): ignore a negative FD, per contract
4093         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4094         when we have a valid file descriptor.  Otherwise, using a brand
4095         new glibc (with just-patched futimens that now fails with EBADF)
4096         would cause this function to fail with ENOSYS.
4097         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4098         See also http://bugzilla.redhat.com/552320.
4099
4100 2010-01-05  Eric Blake  <ebb9@byu.net>
4101
4102         strcase: document what it provides
4103         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4104         gnulib module.
4105         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4106         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4107
4108 2010-01-05  Jim Meyering  <meyering@redhat.com>
4109
4110         maint: remove useless inclusions of "xalloc.h"
4111         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4112         * lib/readtokens.c: Likewise.
4113         * lib/same.c: Likewise.
4114         * modules/getloadavg (Depends-on): Remove xalloc.
4115         * modules/readtokens: Likewise.
4116         * modules/same: Likewise.
4117
4118         maint.mk: include 4 more function names in alloca.h-checking regexp
4119         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4120         regexp.  Before, we would give a false-positive (saying alloca.h
4121         is included unnecessarily) when the only uses involved omitted symbols.
4122
4123         xalloc.h: use consistent formatting
4124         * lib/xalloc.h: Move declarations to start in the first column.
4125
4126 2010-01-05  Eric Blake  <ebb9@byu.net>
4127
4128         mkdir: avoid xalloc
4129         * lib/mkdir.c (includes): Drop unused header.
4130         Reported by John W. Eaton.
4131
4132 2010-01-04  Jim Meyering  <meyering@redhat.com>
4133
4134         nl_langinfo: avoid configure-time syntax error
4135         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4136         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4137         the empty string.  Don't let that provoke a shell syntax error.
4138
4139         regcomp, regexec, fnmatch: avoid array bounds read error
4140         * lib/regcomp.c (build_equiv_class): From glibc:
4141         Use only the low 24 bits of a findidx return value as an index
4142         into the weights array.  Patch by Ulrich Drepper:
4143         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4144         * lib/regexec.c (check_node_accept_bytes): Likewise.
4145         * lib/fnmatch_loop.c (FCT): Likewise.
4146
4147         regcomp: skip collseq lookup when there are no rules
4148         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4149         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4150
4151         regcomp: recognize ill-formed { } expressions
4152         * lib/regcomp.c (parse_dup_op): From glibc:
4153         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4154
4155         regcomp: fix typo in comment
4156         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4157         s/satisfy/satisfies/.
4158
4159         regcomp: sync from glibc: remove dead store
4160         * lib/regcomp.c (duplicate_node_closure): Remove useless
4161         search_duplicated_node call and dead store.
4162
4163         regcomp: sync from glibc; always use nl_langinfo
4164         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4165         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4166         * modules/regex (Depends-on): Add nl_langinfo.
4167
4168 2010-01-04  Eric Blake  <ebb9@byu.net>
4169
4170         fdopendir: fix configure test
4171         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4172
4173 2010-01-01  Bruno Haible  <bruno@clisp.org>
4174
4175         wchar: Remove unused configure check.
4176         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4177
4178 2010-01-01  Eric Blake  <ebb9@byu.net>
4179
4180         headers: make check of system header explicit
4181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4182         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4183         ourselves.
4184         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4187         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4188         internals.
4189         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4190         missing.
4191         Suggested by Bruno Haible.
4192
4193 2010-01-01  Jim Meyering  <meyering@redhat.com>
4194
4195         ChangeLog: tweak to eliminate unnecessary copyright line
4196         * ChangeLog: Remove a copyright line that was mistakenly updated
4197         by today's update-copyright run.  Reported by Eric Blake.
4198
4199         test-update-copyright: don't let envvar setting cause test failure
4200         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4201
4202 2010-01-01  Bruno Haible  <bruno@clisp.org>
4203
4204         localename: Avoid gcc warning.
4205         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4206         function if it is not used.
4207
4208 2010-01-01  Jim Meyering  <meyering@redhat.com>
4209
4210         update nearly all FSF copyright year lists to include 2010
4211         Use the same procedure as for 2009, outlined in
4212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4213
4214         version-etc: set COPYRIGHT_YEAR to 2010
4215         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4216
4217 2009-12-31  Eric Blake  <ebb9@byu.net>
4218
4219         doc: correct availability of cygwin 1.5.x getopt
4220         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4221         variables.
4222         * doc/posix-functions/opterr.texi (opterr): Likewise.
4223         * doc/posix-functions/optind.texi (optind): Likewise.
4224         * doc/posix-functions/optopt.texi (optopt): Likewise.
4225         * doc/posix-functions/tzname.texi (tzname): Likewise.
4226
4227         openat: update maintainer
4228         * modules/openat (Maintainer): Add myself.
4229
4230         utimens: avoid shadowing warning
4231         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4232         buffers into one, to avoid shadowing, as well as avoiding a
4233         redundant stat.
4234         Reported by Jim Meyering.
4235
4236         test-dup2: avoid compiler warning
4237         * tests/test-dup2.c (is_inheritable): Only define if used.
4238
4239 2010-01-01  Bruno Haible  <bruno@clisp.org>
4240
4241         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4242         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4243         defined, use wctomb instead of wcrtomb.
4244
4245 2010-01-01  Bruno Haible  <bruno@clisp.org>
4246
4247         iconv: Reject native Solaris iconv.
4248         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4249         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4250
4251 2009-12-31  Bruno Haible  <bruno@clisp.org>
4252
4253         * tests/test-signal.c (main): Remove test of 'SIG'.
4254
4255 2009-12-31  Bruno Haible  <bruno@clisp.org>
4256
4257         spawn: Fix incomplete fix.
4258         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4259         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4260         warnings for GNULIB_POSIXCHECK again.
4261         Reported by Eric Blake.
4262
4263 2009-12-31  Bruno Haible  <bruno@clisp.org>
4264
4265         Avoid namespace pollution on glibc systems.
4266         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4267         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4268         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4269         glibc systems.
4270
4271 2009-12-31  Bruno Haible  <bruno@clisp.org>
4272
4273         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4274         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4275         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4276         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4277         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4278         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4279         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4280
4281 2009-12-31  Bruno Haible  <bruno@clisp.org>
4282
4283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4284         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4285         afterwards.
4286
4287 2009-12-31  Bruno Haible  <bruno@clisp.org>
4288
4289         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4290         SYS_UTSNAME_H.
4291
4292 2009-12-31  Bruno Haible  <bruno@clisp.org>
4293
4294         spawn: Fix misapplied patch.
4295         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4296         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4297         warnings for GNULIB_POSIXCHECK.
4298
4299 2009-12-31  Bruno Haible  <bruno@clisp.org>
4300
4301         times: Update after sys_times changed.
4302         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4303         * modules/times (Files): Add it.
4304         (configure.ac): Invoke gl_FUNC_TIMES.
4305
4306 2009-12-31  Bruno Haible  <bruno@clisp.org>
4307
4308         Use AC_C_INLINE where necessary.
4309         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4310         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4312         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4313         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4314         * m4/mbiter.m4 (gl_MBITER): Likewise.
4315         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4316         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4317         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4318         * modules/u64 (configure.ac): Likewise.
4319
4320 2009-12-31  Bruno Haible  <bruno@clisp.org>
4321
4322         Use AC_C_INLINE instead of module 'inline' where possible.
4323         * modules/inline (Description): Clarify purpose.
4324         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4325         * modules/count-one-bits (Depends-on): Remove inline.
4326         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4327         * modules/openat (Depends-on): Remove inline.
4328         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4329         instead of depending on module 'inline'.
4330         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4331         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4332         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4333         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4334         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4335         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4336         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4337         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4338         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4339         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4340         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4341         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4342         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4343         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4344         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4345         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4346         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4347         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4348         Likewise.
4349         * modules/unictype/property-ascii-hex-digit (Depends-on,
4350         configure.ac): Likewise.
4351         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4352         configure.ac): Likewise.
4353         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4354         configure.ac): Likewise.
4355         * modules/unictype/property-bidi-block-separator (Depends-on,
4356         configure.ac): Likewise.
4357         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4358         configure.ac): Likewise.
4359         * modules/unictype/property-bidi-common-separator (Depends-on,
4360         configure.ac): Likewise.
4361         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4362         Likewise.
4363         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4364         configure.ac): Likewise.
4365         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4366         configure.ac): Likewise.
4367         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4368         configure.ac): Likewise.
4369         * modules/unictype/property-bidi-european-digit (Depends-on,
4370         configure.ac): Likewise.
4371         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4372         configure.ac): Likewise.
4373         * modules/unictype/property-bidi-left-to-right (Depends-on,
4374         configure.ac): Likewise.
4375         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4376         configure.ac): Likewise.
4377         * modules/unictype/property-bidi-other-neutral (Depends-on,
4378         configure.ac): Likewise.
4379         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4380         Likewise.
4381         * modules/unictype/property-bidi-segment-separator (Depends-on,
4382         configure.ac): Likewise.
4383         * modules/unictype/property-bidi-whitespace (Depends-on,
4384         configure.ac): Likewise.
4385         * modules/unictype/property-combining (Depends-on, configure.ac):
4386         Likewise.
4387         * modules/unictype/property-composite (Depends-on, configure.ac):
4388         Likewise.
4389         * modules/unictype/property-currency-symbol (Depends-on,
4390         configure.ac): Likewise.
4391         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4392         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4393         Likewise.
4394         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4395         configure.ac): Likewise.
4396         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4397         Likewise.
4398         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4399         Likewise.
4400         * modules/unictype/property-extender (Depends-on, configure.ac):
4401         Likewise.
4402         * modules/unictype/property-format-control (Depends-on, configure.ac):
4403         Likewise.
4404         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4405         Likewise.
4406         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4407         Likewise.
4408         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4409         Likewise.
4410         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4411         Likewise.
4412         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4413         Likewise.
4414         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4415         Likewise.
4416         * modules/unictype/property-id-start (Depends-on, configure.ac):
4417         Likewise.
4418         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4419         Likewise.
4420         * modules/unictype/property-ids-binary-operator (Depends-on,
4421         configure.ac): Likewise.
4422         * modules/unictype/property-ids-trinary-operator (Depends-on,
4423         configure.ac): Likewise.
4424         * modules/unictype/property-ignorable-control (Depends-on,
4425         configure.ac): Likewise.
4426         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4427         Likewise.
4428         * modules/unictype/property-join-control (Depends-on, configure.ac):
4429         Likewise.
4430         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4431         Likewise.
4432         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4433         Likewise.
4434         * modules/unictype/property-logical-order-exception (Depends-on,
4435         configure.ac): Likewise.
4436         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4437         Likewise.
4438         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4439         * modules/unictype/property-non-break (Depends-on, configure.ac):
4440         Likewise.
4441         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4442         Likewise.
4443         * modules/unictype/property-numeric (Depends-on, configure.ac):
4444         Likewise.
4445         * modules/unictype/property-other-alphabetic (Depends-on,
4446         configure.ac): Likewise.
4447         * modules/unictype/property-other-default-ignorable-code-point
4448         (Depends-on, configure.ac): Likewise.
4449         * modules/unictype/property-other-grapheme-extend (Depends-on,
4450         configure.ac): Likewise.
4451         * modules/unictype/property-other-id-continue (Depends-on,
4452         configure.ac): Likewise.
4453         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4454         Likewise.
4455         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4456         Likewise.
4457         * modules/unictype/property-other-math (Depends-on, configure.ac):
4458         Likewise.
4459         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4460         Likewise.
4461         * modules/unictype/property-paired-punctuation (Depends-on,
4462         configure.ac): Likewise.
4463         * modules/unictype/property-paragraph-separator (Depends-on,
4464         configure.ac): Likewise.
4465         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4466         Likewise.
4467         * modules/unictype/property-pattern-white-space (Depends-on,
4468         configure.ac): Likewise.
4469         * modules/unictype/property-private-use (Depends-on, configure.ac):
4470         Likewise.
4471         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4472         Likewise.
4473         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4474         Likewise.
4475         * modules/unictype/property-radical (Depends-on, configure.ac):
4476         Likewise.
4477         * modules/unictype/property-sentence-terminal (Depends-on,
4478         configure.ac): Likewise.
4479         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4480         Likewise.
4481         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4482         * modules/unictype/property-terminal-punctuation (Depends-on,
4483         configure.ac): Likewise.
4484         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4485         Likewise.
4486         * modules/unictype/property-unassigned-code-value (Depends-on,
4487         configure.ac): Likewise.
4488         * modules/unictype/property-unified-ideograph (Depends-on,
4489         configure.ac): Likewise.
4490         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4491         Likewise.
4492         * modules/unictype/property-variation-selector (Depends-on,
4493         configure.ac): Likewise.
4494         * modules/unictype/property-white-space (Depends-on, configure.ac):
4495         Likewise.
4496         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4497         Likewise.
4498         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4499         Likewise.
4500         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4501         Likewise.
4502         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4503         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4504         Likewise.
4505
4506 2009-12-31  Bruno Haible  <bruno@clisp.org>
4507
4508         Remove unnecessary AC_C_INLINE invocation.
4509         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4510         since 2009-08-21.
4511
4512 2009-12-31  Jim Meyering  <meyering@redhat.com>
4513
4514         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4515         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4516         With this change, we can all remove the gpg_key_ID = ... definition
4517         from our respective cfg.mk files.
4518
4519         maint.mk: create announcement template in ~/, not in /tmp
4520         * top/maint.mk (emit_upload_commands): Adjust.
4521         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4522         Remove temporary file, .ci-msg.
4523
4524 2009-12-31  Eric Blake  <ebb9@byu.net>
4525
4526         link-warning: always build headers with link warnings
4527         * modules/arpa_inet (Makefile.am): Always build replacement
4528         header.
4529         * modules/ctype (Makefile.am): Likewise.
4530         * modules/dirent (Makefile.am): Likewise.
4531         * modules/inttypes (Makefile.am): Likewise.
4532         * modules/langinfo (Makefile.am): Likewise.
4533         * modules/locale (Makefile.am): Likewise.
4534         * modules/spawn (Makefile.am): Likewise.
4535         * modules/sys_file (Makefile.am): Likewise.
4536         * modules/sys_ioctl (Makefile.am): Likewise.
4537         * modules/sys_select (Makefile.am): Likewise.
4538         * modules/sys_socket (Makefile.am): Likewise.
4539         * modules/sys_times (Makefile.am): Likewise.
4540         * modules/sys_utsname (Makefile.am): Likewise.
4541         * modules/sys_wait (Makefile.am): Likewise.
4542         * modules/wchar (Makefile.am): Likewise.
4543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4544         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4545         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4546         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4547         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4548         Likewise.
4549         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4550         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4552         Likewise.
4553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4554         Likewise.
4555         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4557         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4559         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4561         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4562         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4563         (gl_WCHAR_H_DEFAULTS): Likewise.
4564
4565 2009-12-31  Eric Blake  <ebb9@byu.net>
4566
4567         signal, spawn: use link warnings
4568         * lib/signal.in.h (sigset_t): Make unconditional.
4569         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4570         (sigpending, sigprocmask, sigaction): Add link warnings.
4571         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4572         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4573         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4574         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4575         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4576         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4577         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4578         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4579         (posix_spawn_file_actions_destroy)
4580         (posix_spawn_file_actions_addopen)
4581         (posix_spawn_file_actions_addclose)
4582         (posix_spawn_file_actions_adddup2): Likewise.
4583         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4584         * tests/test-signal.c (main): Enhance test.
4585
4586         spawn: improve wrapper support
4587         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4588         (gl_SPAWN_H_DEFAULTS): New defaults.
4589         * modules/spawn (Makefile.am): Substitute them.
4590         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4591         Only declare if missing or broken.
4592
4593         sys_times, sys_utsname: use include_next
4594         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4595         header.
4596         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4598         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4599         * modules/sys_times (Depends-on): Add include_next.
4600         (Makefile.am): Substitute additional values.
4601         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4602         * lib/sys_times.in.h (includes): Include native header, if
4603         available.
4604         * lib/sys_utsname.in.h (includes): Likewise.
4605         * tests/test-sys_times.c (main): Enhance test.
4606
4607         fdutimensat: revert prior patch
4608         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4609         utimens.h.
4610         Reported by Bruno Haible.
4611
4612 2009-12-30  Eric Blake  <ebb9@byu.net>
4613
4614         sys_wait: drop link-warning dependency
4615         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4616         link-warning efforts.
4617         * lib/sys_wait.in.h: Likewise.
4618
4619         fdutimensat: remove bogus dependency
4620         * modules/fdutimensat (Depends-on): Drop inline.
4621
4622         unistd: fix typo
4623         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4624
4625 2009-12-30  Bruno Haible  <bruno@clisp.org>
4626
4627         Fix compilation error with Solaris cc.
4628         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4629         * lib/unicase/u16-is-invariant.c: Likewise.
4630         * lib/unicase/u32-is-invariant.c: Likewise.
4631         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4632
4633 2009-12-30  Bruno Haible  <bruno@clisp.org>
4634
4635         Fix test crash.
4636         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4637         locales.
4638         Reported by Simon Josefsson <simon@josefsson.org>.
4639
4640 2009-12-30  Bruno Haible  <bruno@clisp.org>
4641
4642         Fix compilation error on most platforms.
4643         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4644         Reported by Simon Josefsson <simon@josefsson.org>
4645         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4646
4647 2009-12-30  Eric Blake  <ebb9@byu.net>
4648
4649         futimens, utimensat: work around ntfs-3g bug
4650         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4651         a ctime bug is present, and expand workaround to cover ntfs-3g.
4652         * lib/utimens.c (fdutimens, lutimens): Likewise.
4653         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4654         (validate_timespec): Adjust return value.
4655         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4657         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4658
4659 2009-12-29  Eric Blake  <ebb9@byu.net>
4660
4661         link-warning: make usage consistent
4662         * modules/ctype (Depends-on): Add link-warning.
4663         (Makefile.am): Update rules accordingly.
4664         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4665         * modules/locale (Depends-on, Makefile.am): Likewise.
4666         * modules/sys_file (Makefile.am): Likewise.
4667         * modules/getopt-posix (Makefile.am): Delete unused link warning
4668         efforts.
4669         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4670         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4671         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4672         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4673
4674         stdio: remove unused variables
4675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4677         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4678
4679         tests: test more substitute headers
4680         * modules/ctype-tests: New file.
4681         * modules/dirent-tests: Likewise.
4682         * modules/spawn-tests: Likewise.
4683         * modules/sys_file-tests: Likewise.
4684         * modules/sys_ioctl-tests: Likewise.
4685         * modules/sys_wait-tests: Likewise.
4686         * tests/test-ctype.c: Likewise.
4687         * tests/test-dirent.c: Likewise.
4688         * tests/test-spawn.c: Likewise.
4689         * tests/test-sys_file.c: Likewise.
4690         * tests/test-sys_ioctl.c: Likewise.
4691         * tests/test-sys_wait.c: Likewise.
4692         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4693         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4694         whether or not flock is in use.
4695
4696         tests: remove License section from module
4697         * modules/arpa_inet-tests: Remove unneeded section.
4698         * modules/byteswap-tests: Likewise.
4699         * modules/ceilf-tests: Likewise.
4700         * modules/ceill-tests: Likewise.
4701         * modules/crypto/des-tests: Likewise.
4702         * modules/crypto/gc-arcfour-tests: Likewise.
4703         * modules/crypto/gc-arctwo-tests: Likewise.
4704         * modules/crypto/gc-des-tests: Likewise.
4705         * modules/crypto/gc-hmac-md5-tests: Likewise.
4706         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4707         * modules/crypto/gc-md2-tests: Likewise.
4708         * modules/crypto/gc-md4-tests: Likewise.
4709         * modules/crypto/gc-md5-tests: Likewise.
4710         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4711         * modules/crypto/gc-rijndael-tests: Likewise.
4712         * modules/crypto/gc-sha1-tests: Likewise.
4713         * modules/crypto/gc-tests: Likewise.
4714         * modules/crypto/md2-tests: Likewise.
4715         * modules/crypto/md4-tests: Likewise.
4716         * modules/fcntl-h-tests: Likewise.
4717         * modules/floorf-tests: Likewise.
4718         * modules/floorl-tests: Likewise.
4719         * modules/frexp-nolibm-tests: Likewise.
4720         * modules/frexp-tests: Likewise.
4721         * modules/frexpl-nolibm-tests: Likewise.
4722         * modules/frexpl-tests: Likewise.
4723         * modules/getaddrinfo-tests: Likewise.
4724         * modules/inttypes-tests: Likewise.
4725         * modules/isfinite-tests: Likewise.
4726         * modules/isinf-tests: Likewise.
4727         * modules/ldexpl-tests: Likewise.
4728         * modules/locale-tests: Likewise.
4729         * modules/math-tests: Likewise.
4730         * modules/netdb-tests: Likewise.
4731         * modules/netinet_in-tests: Likewise.
4732         * modules/printf-frexp-tests: Likewise.
4733         * modules/printf-frexpl-tests: Likewise.
4734         * modules/priv-set-tests: Likewise.
4735         * modules/random_r-tests: Likewise.
4736         * modules/round-tests: Likewise.
4737         * modules/roundf-tests: Likewise.
4738         * modules/roundl-tests: Likewise.
4739         * modules/search-tests: Likewise.
4740         * modules/select-tests: Likewise.
4741         * modules/signal-tests: Likewise.
4742         * modules/stdbool-tests: Likewise.
4743         * modules/stddef-tests: Likewise.
4744         * modules/stdint-tests: Likewise.
4745         * modules/stdio-tests: Likewise.
4746         * modules/stdlib-tests: Likewise.
4747         * modules/string-tests: Likewise.
4748         * modules/strings-tests: Likewise.
4749         * modules/sys_select-tests: Likewise.
4750         * modules/sys_socket-tests: Likewise.
4751         * modules/sys_stat-tests: Likewise.
4752         * modules/sys_time-tests: Likewise.
4753         * modules/sys_utsname-tests: Likewise.
4754         * modules/sysexits-tests: Likewise.
4755         * modules/time-tests: Likewise.
4756         * modules/trunc-tests: Likewise.
4757         * modules/truncf-tests: Likewise.
4758         * modules/truncl-tests: Likewise.
4759         * modules/tsearch-tests: Likewise.
4760         * modules/unistd-tests: Likewise.
4761         * modules/wchar-tests: Likewise.
4762         * modules/wctype-tests: Likewise.
4763
4764         tests: fix license on several tests
4765         * tests/test-des.c: Update to GPLv3+.
4766         * tests/test-flock.c: Likewise.
4767         * tests/test-fsync.c: Likewise.
4768         * tests/test-futimens.h: Likewise.
4769         * tests/test-gc-arcfour.c: Likewise.
4770         * tests/test-gc-arctwo.c: Likewise.
4771         * tests/test-gc-des.c: Likewise.
4772         * tests/test-gc-hmac-md5.c: Likewise.
4773         * tests/test-gc-hmac-sha1.c: Likewise.
4774         * tests/test-gc-md2.c: Likewise.
4775         * tests/test-gc-md4.c: Likewise.
4776         * tests/test-gc-md5.c: Likewise.
4777         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4778         * tests/test-gc-rijndael.c: Likewise.
4779         * tests/test-gc-sha1.c: Likewise.
4780         * tests/test-gc.c: Likewise.
4781         * tests/test-getcwd.c: Likewise.
4782         * tests/test-link.c: Likewise.
4783         * tests/test-link.h: Likewise.
4784         * tests/test-lutimens.h: Likewise.
4785         * tests/test-md2.c: Likewise.
4786         * tests/test-md4.c: Likewise.
4787         * tests/test-mkdir.h: Likewise.
4788         * tests/test-rename.c: Likewise.
4789         * tests/test-rename.h: Likewise.
4790         * tests/test-safe-alloc.c: Likewise.
4791         * tests/test-utimens-common.h: Likewise.
4792         * tests/test-utimens.h: Likewise.
4793
4794         maint: sync license texts
4795         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4796         * doc/gpl-3.0.texi: Revert copyright year update.
4797         * doc/lgpl-3.0.texi: Likewise.
4798
4799 2009-12-29  Jim Meyering  <meyering@redhat.com>
4800
4801         update nearly all FSF copyright year lists to include 2009
4802         The files named by the following are exempted:
4803             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4804               test -f "$dst" && { echo "$dst"; continue; }
4805               test -d "$dst" || continue
4806               echo "$dst"/$(basename "$src")
4807             done > exempt
4808             git ls-files tests/unictype >> exempt
4809         In the remaining files, convert to all-interval notation if
4810         - there is already at least one year interval like 2000-2003
4811         - the file is maintained by me
4812         - the file is in lib/uni*/, where that style already prevails
4813         Otherwise, use update-copyright's default.
4814
4815 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4816         and Eric Blake  <ebb9@byu.net>
4817
4818         tests: don't require debug system() to pass
4819         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4820         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4821         * tests/test-unlink.h (test_unlink_func): Likewise.
4822         * tests/test-fstatat.c (main): ...into callers.
4823         * tests/test-lstat.c (main): Likewise.
4824         * tests/test-rmdir.c (main): Likewise.
4825         * tests/test-unlink.c (main): Likewise.
4826         * tests/test-unlinkat.c (main): Likewise.
4827         * tests/test-areadlink-with-size.c (main): Don't require a
4828         debug-only system call to pass, aiding cross-testing to mingw.
4829         * tests/test-areadlink.c (main): Likewise.
4830         * tests/test-areadlinkat-with-size.c (main): Likewise.
4831         * tests/test-areadlinkat.c (main): Likewise.
4832         * tests/test-canonicalize-lgpl.c (main): Likewise.
4833         * tests/test-canonicalize.c (main): Likewise.
4834         * tests/test-chown.c (main): Likewise.
4835         * tests/test-fchownat.c (main): Likewise.
4836         * tests/test-lchown.c (main): Likewise.
4837         * tests/test-fdutimensat.c (main): Likewise.
4838         * tests/test-futimens.c (main): Likewise.
4839         * tests/test-link.c (main): Likewise.
4840         * tests/test-linkat.c (main): Likewise.
4841         * tests/test-mkdir.c (main): Likewise.
4842         * tests/test-mkdirat.c (main): Likewise.
4843         * tests/test-mkfifo.c (main): Likewise.
4844         * tests/test-mkfifoat.c (main): Likewise.
4845         * tests/test-mknod.c (main): Likewise.
4846         * tests/test-readlink.c (main): Likewise.
4847         * tests/test-remove.c (main): Likewise.
4848         * tests/test-rename.c (main): Likewise.
4849         * tests/test-renameat.c (main): Likewise.
4850         * tests/test-symlink.c (main): Likewise.
4851         * tests/test-symlinkat.c (main): Likewise.
4852         * tests/test-utimens.c (main): Likewise.
4853         * tests/test-utimensat.c (main): Likewise.
4854
4855 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4856
4857         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4858         on $(UNUSED_PARAMETER_H) to avoid build failure.
4859
4860 2009-12-28  Jim Meyering  <meyering@redhat.com>
4861
4862         update-copyright: you may specify a max. line length other than 72
4863         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4864
4865         maint: use consistent FSF copyright line syntax
4866         * lib/posixtm.c: Add missing comma in FSF copyright line.
4867         * lib/posixtm.h: Likewise.
4868         * lib/getugroups.c: Add missing ", Inc.".
4869
4870         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4871         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4872         FSF copyright line.  Remove trailing blanks.
4873
4874 2009-12-28  Eric Blake  <ebb9@byu.net>
4875
4876         test-dup2: reduce dependencies
4877         * modules/cloexec (Configure.ac): Set witness.
4878         * modules/dup2-tests (Depends-on): Drop cloexec.
4879         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4880         not present.
4881         Suggested by Bruno Haible.
4882
4883 2009-12-26  Bruno Haible  <bruno@clisp.org>
4884
4885         Remove an unneeded dependency.
4886         * modules/fseterr (Depends-on): Remove dup2.
4887
4888 2009-12-26  Eric Blake  <ebb9@byu.net>
4889
4890         tests: use macros.h in more places
4891         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4892         (ASSERT_STREAM): Provide default of stderr.
4893         * tests/test-dirent-safer.c: Include macros.h, using alternate
4894         stream for assertions.
4895         * tests/test-dup-safer.c: Likewise.
4896         * tests/test-freopen-safer.c: Likewise.
4897         * tests/test-getopt.c: Likewise.
4898         * tests/test-openat-safer.c: Likewise.
4899         * tests/test-pipe.c: Likewise.
4900         * tests/test-popen-safer.c: Likewise.
4901         * modules/dirent-safer-tests (Files): Include macros.h.
4902         * modules/unistd-safer-tests (Files): Likewise.
4903         * modules/freopen-safer-tests (Files): Likewise.
4904         * modules/getopt-posix-tests (Files): Likewise.
4905         * modules/openat-safer-tests (Files): Likewise.
4906         * modules/pipe-tests (Files): Likewise.
4907
4908 2009-12-26  Bruno Haible  <bruno@clisp.org>
4909
4910         javacomp: Portability fix.
4911         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4912         that it also works on Solaris.
4913
4914 2009-12-26  Bruno Haible  <bruno@clisp.org>
4915
4916         localename: Fix storage allocation of gl_locale_name_thread's result.
4917         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4918         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4919         all platforms that have 'uselocale'.
4920         (gl_locale_name_thread_unsafe): New function, extracted from
4921         gl_locale_name_thread.
4922         (gl_locale_name_thread): Call struniq on all platforms that have
4923         'uselocale'.
4924         * tests/test-localename.c (test_locale_name_thread): Check that the
4925         resulting strings are permanently allocated.
4926         * modules/localename-tests (Depends-on): Add strdup.
4927
4928 2009-12-26  Bruno Haible  <bruno@clisp.org>
4929
4930         * tests/test-localename.c (categories): Fill in the strings.
4931
4932 2009-12-26  Jim Meyering  <meyering@redhat.com>
4933
4934         isdir: complete the removal of m4/isdir.m4
4935         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4936
4937         isdir: clean up, since at least grep still uses it
4938         * lib/isdir.c: Include "isdir.h".
4939         (S_ISDIR): Remove now-unneeded definition.
4940         * modules/isdir (Files): Add lib/isdir.h.
4941         * lib/isdir.h: New file, with declaration.
4942         * m4/isdir.m4: Remove file -- unneeded.
4943
4944 2009-12-25  Bruno Haible  <bruno@clisp.org>
4945
4946         selinux-h: Make generated .h files standalone.
4947         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4948         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4949         * lib/se-selinux.in.h: Likewise.
4950         * modules/selinux-h (Depends-on): Add unused-parameter.
4951         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4952         selinux/selinux.h and selinux/context.h.
4953         Suggested by Eric Blake.
4954
4955 2009-12-25  Bruno Haible  <bruno@clisp.org>
4956
4957         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4958         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4959         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4960         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4961         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4962
4963 2009-12-24  Bruno Haible  <bruno@clisp.org>
4964
4965         openat: Fix warning.
4966         * lib/openat-proc.c: Include <unistd.h>.
4967
4968 2009-12-24  Bruno Haible  <bruno@clisp.org>
4969
4970         New module 'unused-parameter'.
4971         * build-aux/unused-parameter.h: New file, extracted from earlier
4972         gnulib-common.m4.
4973         * modules/unused-parameter: New file.
4974         * lib/unistr.h: Include unused-parameter.h.
4975         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4976         _GL_UNUSED.
4977         * modules/unistr/base (Depends-on): Add unused-parameter.
4978
4979 2009-12-24  Bruno Haible  <bruno@clisp.org>
4980
4981         Add missing dependencies to 'extensions' module.
4982         * m4/extensions.m4: Add comment.
4983         * modules/accept4 (Depends-on): Add extensions.
4984         * modules/dup3 (Depends-on): Likewise.
4985         * modules/fcntl (Depends-on): Likewise.
4986         * modules/futimens (Depends-on): Likewise.
4987         * modules/mknod (Depends-on): Likewise.
4988         * modules/pipe2 (Depends-on): Likewise.
4989         * modules/stat-time (Depends-on): Likewise.
4990         * modules/strcasestr-simple (Depends-on): Likewise.
4991         * modules/strsignal (Depends-on): Likewise.
4992         * modules/utimensat (Depends-on): Likewise.
4993         * modules/localcharset (Depends-on): Likewise. Needed because of
4994         gl_FCNTL_O_FLAGS.
4995         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4996         AC_TYPE_MBSTATE_T.
4997         * modules/wcsnrtombs (Depends-on): Likewise.
4998         * modules/wcsrtombs (Depends-on): Likewise.
4999
5000 2009-12-24  Bruno Haible  <bruno@clisp.org>
5001
5002         binary-io: Avoid gcc warning due to SET_BINARY.
5003         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5004         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5005
5006 2009-12-24  Bruno Haible  <bruno@clisp.org>
5007
5008         Avoid future namespace pollution on glibc systems.
5009         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5010         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5011         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5012         glibc systems.
5013
5014 2009-12-24  Bruno Haible  <bruno@clisp.org>
5015
5016         Refactor common macros used in tests.
5017         * tests/macros.h: New file.
5018         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5019         and/or <stdlib.h>, if appropriate.
5020         (ASSERT, SIZEOF): Remove macros.
5021         * tests/test-areadlink-with-size.c: Likewise.
5022         * tests/test-areadlinkat.c: Likewise.
5023         * tests/test-areadlinkat-with-size.c: Likewise.
5024         * tests/test-argmatch.c: Likewise.
5025         * tests/test-argv-iter.c: Likewise.
5026         * tests/test-array-mergesort.c: Likewise.
5027         * tests/test-array_list.c: Likewise.
5028         * tests/test-array_oset.c: Likewise.
5029         * tests/test-avltree_list.c: Likewise.
5030         * tests/test-avltree_oset.c: Likewise.
5031         * tests/test-avltreehash_list.c: Likewise.
5032         * tests/test-base64.c: Likewise.
5033         * tests/test-binary-io.c: Likewise.
5034         * tests/test-bitrotate.c: Likewise.
5035         * tests/test-btowc.c: Likewise.
5036         * tests/test-byteswap.c: Likewise.
5037         * tests/test-c-ctype.c: Likewise.
5038         * tests/test-c-stack.c: Likewise.
5039         * tests/test-c-strcasecmp.c: Likewise.
5040         * tests/test-c-strcasestr.c: Likewise.
5041         * tests/test-c-strncasecmp.c: Likewise.
5042         * tests/test-c-strstr.c: Likewise.
5043         * tests/test-canonicalize-lgpl.c: Likewise.
5044         * tests/test-canonicalize.c: Likewise.
5045         * tests/test-carray_list.c: Likewise.
5046         * tests/test-ceilf1.c: Likewise.
5047         * tests/test-ceilf2.c: Likewise.
5048         * tests/test-ceill.c: Likewise.
5049         * tests/test-chown.c: Likewise.
5050         * tests/test-cloexec.c: Likewise.
5051         * tests/test-copy-acl.c: Likewise.
5052         * tests/test-copy-file.c: Likewise.
5053         * tests/test-count-one-bits.c: Likewise.
5054         * tests/test-dprintf-posix.c: Likewise.
5055         * tests/test-dup2.c: Likewise.
5056         * tests/test-dup3.c: Likewise.
5057         * tests/test-duplocale.c: Likewise.
5058         * tests/test-fbufmode.c: Likewise.
5059         * tests/test-fchdir.c: Likewise.
5060         * tests/test-fchownat.c: Likewise.
5061         * tests/test-fcntl-safer.c: Likewise.
5062         * tests/test-fcntl.c: Likewise.
5063         * tests/test-fdopendir.c: Likewise.
5064         * tests/test-fdutimensat.c: Likewise.
5065         * tests/test-fflush2.c: Likewise.
5066         * tests/test-file-has-acl.c: Likewise.
5067         * tests/test-filevercmp.c: Likewise.
5068         * tests/test-flock.c: Likewise.
5069         * tests/test-floorf1.c: Likewise.
5070         * tests/test-floorf2.c: Likewise.
5071         * tests/test-floorl.c: Likewise.
5072         * tests/test-fnmatch.c: Likewise.
5073         * tests/test-fopen.h: Likewise.
5074         * tests/test-fpending.c: Likewise.
5075         * tests/test-fprintf-posix.c: Likewise.
5076         * tests/test-fpurge.c: Likewise.
5077         * tests/test-freadable.c: Likewise.
5078         * tests/test-freadahead.c: Likewise.
5079         * tests/test-freading.c: Likewise.
5080         * tests/test-freadptr.c: Likewise.
5081         * tests/test-freadptr2.c: Likewise.
5082         * tests/test-freadseek.c: Likewise.
5083         * tests/test-freopen.c: Likewise.
5084         * tests/test-frexp.c: Likewise.
5085         * tests/test-frexpl.c: Likewise.
5086         * tests/test-fseek.c: Likewise.
5087         * tests/test-fseeko.c: Likewise.
5088         * tests/test-fstatat.c: Likewise.
5089         * tests/test-fstrcmp.c: Likewise.
5090         * tests/test-fsync.c: Likewise.
5091         * tests/test-ftell.c: Likewise.
5092         * tests/test-ftello.c: Likewise.
5093         * tests/test-func.c: Likewise.
5094         * tests/test-futimens.c: Likewise.
5095         * tests/test-fwritable.c: Likewise.
5096         * tests/test-fwriting.c: Likewise.
5097         * tests/test-getcwd.c: Likewise.
5098         * tests/test-getdate.c: Likewise.
5099         * tests/test-getdelim.c: Likewise.
5100         * tests/test-getdtablesize.c: Likewise.
5101         * tests/test-getgroups.c: Likewise.
5102         * tests/test-getline.c: Likewise.
5103         * tests/test-getndelim2.c: Likewise.
5104         * tests/test-glob.c: Likewise.
5105         * tests/test-hash.c: Likewise.
5106         * tests/test-i-ring.c: Likewise.
5107         * tests/test-iconv-utf.c: Likewise.
5108         * tests/test-iconv.c: Likewise.
5109         * tests/test-idpriv-drop.c: Likewise.
5110         * tests/test-idpriv-droptemp.c: Likewise.
5111         * tests/test-inet_ntop.c: Likewise.
5112         * tests/test-inet_pton.c: Likewise.
5113         * tests/test-isblank.c: Likewise.
5114         * tests/test-isfinite.c: Likewise.
5115         * tests/test-isinf.c: Likewise.
5116         * tests/test-isnan.c: Likewise.
5117         * tests/test-isnand.h: Likewise.
5118         * tests/test-isnanf.h: Likewise.
5119         * tests/test-isnanl.h: Likewise.
5120         * tests/test-lchown.c: Likewise.
5121         * tests/test-ldexpl.c: Likewise.
5122         * tests/test-link.c: Likewise.
5123         * tests/test-linkat.c: Likewise.
5124         * tests/test-linked_list.c: Likewise.
5125         * tests/test-linkedhash_list.c: Likewise.
5126         * tests/test-localename.c: Likewise.
5127         * tests/test-lseek.c: Likewise.
5128         * tests/test-lstat.c: Likewise.
5129         * tests/test-mbmemcasecmp.c: Likewise.
5130         * tests/test-mbmemcasecoll.c: Likewise.
5131         * tests/test-mbrtowc.c: Likewise.
5132         * tests/test-mbscasecmp.c: Likewise.
5133         * tests/test-mbscasestr1.c: Likewise.
5134         * tests/test-mbscasestr2.c: Likewise.
5135         * tests/test-mbscasestr3.c: Likewise.
5136         * tests/test-mbscasestr4.c: Likewise.
5137         * tests/test-mbschr.c: Likewise.
5138         * tests/test-mbscspn.c: Likewise.
5139         * tests/test-mbsinit.c: Likewise.
5140         * tests/test-mbsncasecmp.c: Likewise.
5141         * tests/test-mbsnrtowcs.c: Likewise.
5142         * tests/test-mbspbrk.c: Likewise.
5143         * tests/test-mbspcasecmp.c: Likewise.
5144         * tests/test-mbsrchr.c: Likewise.
5145         * tests/test-mbsrtowcs.c: Likewise.
5146         * tests/test-mbsspn.c: Likewise.
5147         * tests/test-mbsstr1.c: Likewise.
5148         * tests/test-mbsstr2.c: Likewise.
5149         * tests/test-mbsstr3.c: Likewise.
5150         * tests/test-memchr.c: Likewise.
5151         * tests/test-memchr2.c: Likewise.
5152         * tests/test-memcmp.c: Likewise.
5153         * tests/test-memmem.c: Likewise.
5154         * tests/test-memrchr.c: Likewise.
5155         * tests/test-mkdir.c: Likewise.
5156         * tests/test-mkdirat.c: Likewise.
5157         * tests/test-mkfifo.c: Likewise.
5158         * tests/test-mkfifoat.c: Likewise.
5159         * tests/test-mknod.c: Likewise.
5160         * tests/test-nanosleep.c: Likewise.
5161         * tests/test-nl_langinfo.c: Likewise.
5162         * tests/test-obstack-printf.c: Likewise.
5163         * tests/test-open.c: Likewise.
5164         * tests/test-openat.c: Likewise.
5165         * tests/test-pipe-filter-gi1.c: Likewise.
5166         * tests/test-pipe-filter-gi2-main.c: Likewise.
5167         * tests/test-pipe-filter-ii1.c: Likewise.
5168         * tests/test-pipe-filter-ii2-main.c: Likewise.
5169         * tests/test-pipe2.c: Likewise.
5170         * tests/test-popen.h: Likewise.
5171         * tests/test-posixtm.c: Likewise.
5172         * tests/test-pread.c: Likewise.
5173         * tests/test-printf-frexp.c: Likewise.
5174         * tests/test-printf-frexpl.c: Likewise.
5175         * tests/test-printf-posix.c: Likewise.
5176         * tests/test-priv-set.c: Likewise.
5177         * tests/test-quotearg.c: Likewise.
5178         * tests/test-random_r.c: Likewise.
5179         * tests/test-rawmemchr.c: Likewise.
5180         * tests/test-rbtree_list.c: Likewise.
5181         * tests/test-rbtree_oset.c: Likewise.
5182         * tests/test-rbtreehash_list.c: Likewise.
5183         * tests/test-readlink.c: Likewise.
5184         * tests/test-remove.c: Likewise.
5185         * tests/test-rename.c: Likewise.
5186         * tests/test-renameat.c: Likewise.
5187         * tests/test-rmdir.c: Likewise.
5188         * tests/test-round1.c: Likewise.
5189         * tests/test-roundf1.c: Likewise.
5190         * tests/test-roundl.c: Likewise.
5191         * tests/test-safe-alloc.c: Likewise.
5192         * tests/test-sameacls.c: Likewise.
5193         * tests/test-set-mode-acl.c: Likewise.
5194         * tests/test-setenv.c: Likewise.
5195         * tests/test-sigaction.c: Likewise.
5196         * tests/test-signbit.c: Likewise.
5197         * tests/test-sleep.c: Likewise.
5198         * tests/test-snprintf-posix.c: Likewise.
5199         * tests/test-snprintf.c: Likewise.
5200         * tests/test-sprintf-posix.c: Likewise.
5201         * tests/test-stat-time.c: Likewise.
5202         * tests/test-stat.c: Likewise.
5203         * tests/test-strcasestr.c: Likewise.
5204         * tests/test-strchrnul.c: Likewise.
5205         * tests/test-strerror.c: Likewise.
5206         * tests/test-striconv.c: Likewise.
5207         * tests/test-striconveh.c: Likewise.
5208         * tests/test-striconveha.c: Likewise.
5209         * tests/test-strsignal.c: Likewise.
5210         * tests/test-strstr.c: Likewise.
5211         * tests/test-strtod.c: Likewise.
5212         * tests/test-strverscmp.c: Likewise.
5213         * tests/test-symlink.c: Likewise.
5214         * tests/test-symlinkat.c: Likewise.
5215         * tests/test-trunc1.c: Likewise.
5216         * tests/test-trunc2.c: Likewise.
5217         * tests/test-truncf1.c: Likewise.
5218         * tests/test-truncf2.c: Likewise.
5219         * tests/test-truncl.c: Likewise.
5220         * tests/test-uname.c: Likewise.
5221         * tests/test-unlink.c: Likewise.
5222         * tests/test-unlinkat.c: Likewise.
5223         * tests/test-unsetenv.c: Likewise.
5224         * tests/test-usleep.c: Likewise.
5225         * tests/test-utimens.c: Likewise.
5226         * tests/test-utimensat.c: Likewise.
5227         * tests/test-vasnprintf-posix.c: Likewise.
5228         * tests/test-vasnprintf-posix2.c: Likewise.
5229         * tests/test-vasnprintf.c: Likewise.
5230         * tests/test-vasprintf-posix.c: Likewise.
5231         * tests/test-vasprintf.c: Likewise.
5232         * tests/test-vdprintf-posix.c: Likewise.
5233         * tests/test-vfprintf-posix.c: Likewise.
5234         * tests/test-vprintf-posix.c: Likewise.
5235         * tests/test-vsnprintf-posix.c: Likewise.
5236         * tests/test-vsnprintf.c: Likewise.
5237         * tests/test-vsprintf-posix.c: Likewise.
5238         * tests/test-wcrtomb.c: Likewise.
5239         * tests/test-wcsnrtombs.c: Likewise.
5240         * tests/test-wcsrtombs.c: Likewise.
5241         * tests/test-wctype.c: Likewise.
5242         * tests/test-wcwidth.c: Likewise.
5243         * tests/test-xfprintf-posix.c: Likewise.
5244         * tests/test-xmemdup0.c: Likewise.
5245         * tests/test-xprintf-posix.c: Likewise.
5246         * tests/test-xvasprintf.c: Likewise.
5247         * tests/unicase/test-locale-language.c: Likewise.
5248         * tests/unicase/test-mapping-part1.h: Likewise.
5249         * tests/unicase/test-predicate-part1.h: Likewise.
5250         * tests/unicase/test-u8-casecmp.c: Likewise.
5251         * tests/unicase/test-u8-casecoll.c: Likewise.
5252         * tests/unicase/test-u8-casefold.c: Likewise.
5253         * tests/unicase/test-u8-is-cased.c: Likewise.
5254         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5255         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5256         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5257         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5258         * tests/unicase/test-u8-tolower.c: Likewise.
5259         * tests/unicase/test-u8-totitle.c: Likewise.
5260         * tests/unicase/test-u8-toupper.c: Likewise.
5261         * tests/unicase/test-u16-casecmp.c: Likewise.
5262         * tests/unicase/test-u16-casecoll.c: Likewise.
5263         * tests/unicase/test-u16-casefold.c: Likewise.
5264         * tests/unicase/test-u16-is-cased.c: Likewise.
5265         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5266         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5267         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5268         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5269         * tests/unicase/test-u16-tolower.c: Likewise.
5270         * tests/unicase/test-u16-totitle.c: Likewise.
5271         * tests/unicase/test-u16-toupper.c: Likewise.
5272         * tests/unicase/test-u32-casecmp.c: Likewise.
5273         * tests/unicase/test-u32-casecoll.c: Likewise.
5274         * tests/unicase/test-u32-casefold.c: Likewise.
5275         * tests/unicase/test-u32-is-cased.c: Likewise.
5276         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5277         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5278         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5279         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5280         * tests/unicase/test-u32-tolower.c: Likewise.
5281         * tests/unicase/test-u32-totitle.c: Likewise.
5282         * tests/unicase/test-u32-toupper.c: Likewise.
5283         * tests/unicase/test-ulc-casecmp.c: Likewise.
5284         * tests/unicase/test-ulc-casecoll.c: Likewise.
5285         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5286         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5289         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5290         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5291         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5292         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5293         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5294         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5295         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5296         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5297         * tests/unictype/test-bidi_byname.c: Likewise.
5298         * tests/unictype/test-bidi_name.c: Likewise.
5299         * tests/unictype/test-bidi_of.c: Likewise.
5300         * tests/unictype/test-bidi_test.c: Likewise.
5301         * tests/unictype/test-block_list.c: Likewise.
5302         * tests/unictype/test-block_of.c: Likewise.
5303         * tests/unictype/test-block_test.c: Likewise.
5304         * tests/unictype/test-categ_and.c: Likewise.
5305         * tests/unictype/test-categ_and_not.c: Likewise.
5306         * tests/unictype/test-categ_byname.c: Likewise.
5307         * tests/unictype/test-categ_name.c: Likewise.
5308         * tests/unictype/test-categ_none.c: Likewise.
5309         * tests/unictype/test-categ_of.c: Likewise.
5310         * tests/unictype/test-categ_or.c: Likewise.
5311         * tests/unictype/test-categ_test_withtable.c: Likewise.
5312         * tests/unictype/test-combining.c: Likewise.
5313         * tests/unictype/test-decdigit.c: Likewise.
5314         * tests/unictype/test-digit.c: Likewise.
5315         * tests/unictype/test-mirror.c: Likewise.
5316         * tests/unictype/test-numeric.c: Likewise.
5317         * tests/unictype/test-pr_byname.c: Likewise.
5318         * tests/unictype/test-pr_test.c: Likewise.
5319         * tests/unictype/test-predicate-part1.h: Likewise.
5320         * tests/unictype/test-scripts.c: Likewise.
5321         * tests/unictype/test-sy_c_ident.c: Likewise.
5322         * tests/unictype/test-sy_java_ident.c: Likewise.
5323         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5324         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5325         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5326         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5327         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5328         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5329         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5330         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5331         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5332         * tests/uninorm/test-compat-decomposition.c: Likewise.
5333         * tests/uninorm/test-composition.c: Likewise.
5334         * tests/uninorm/test-decomposing-form.c: Likewise.
5335         * tests/uninorm/test-decomposition.c: Likewise.
5336         * tests/uninorm/test-u8-nfc.c: Likewise.
5337         * tests/uninorm/test-u8-nfd.c: Likewise.
5338         * tests/uninorm/test-u8-nfkc.c: Likewise.
5339         * tests/uninorm/test-u8-nfkd.c: Likewise.
5340         * tests/uninorm/test-u8-normcmp.c: Likewise.
5341         * tests/uninorm/test-u8-normcoll.c: Likewise.
5342         * tests/uninorm/test-u16-nfc.c: Likewise.
5343         * tests/uninorm/test-u16-nfd.c: Likewise.
5344         * tests/uninorm/test-u16-nfkc.c: Likewise.
5345         * tests/uninorm/test-u16-nfkd.c: Likewise.
5346         * tests/uninorm/test-u16-normcmp.c: Likewise.
5347         * tests/uninorm/test-u16-normcoll.c: Likewise.
5348         * tests/uninorm/test-u32-nfc.c: Likewise.
5349         * tests/uninorm/test-u32-nfd.c: Likewise.
5350         * tests/uninorm/test-u32-nfkc.c: Likewise.
5351         * tests/uninorm/test-u32-nfkd.c: Likewise.
5352         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5353         * tests/uninorm/test-u32-normcmp.c: Likewise.
5354         * tests/uninorm/test-u32-normcoll.c: Likewise.
5355         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5356         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5357         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5358         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5359         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5360         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5361         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5362         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5363         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5364         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5365         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5366         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5367         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5368         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5369         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5370         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5371         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5372         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5373         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5374         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5375         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5376         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5377         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5378         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5379         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5380         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5381         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5382         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5383         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5384         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5385         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5386         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5387         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5388         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5389         * tests/uniwidth/test-u8-width.c: Likewise.
5390         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5391         * tests/uniwidth/test-u16-width.c: Likewise.
5392         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5393         * tests/uniwidth/test-u32-width.c: Likewise.
5394         * tests/uniwidth/test-uc_width.c: Likewise.
5395         * tests/uniwidth/test-uc_width2.c: Likewise.
5396         * modules/acl-tests (Files): Add tests/macros.h.
5397         * modules/areadlink-tests (Files): Likewise.
5398         * modules/areadlink-with-size-tests (Files): Likewise.
5399         * modules/areadlinkat-tests (Files): Likewise.
5400         * modules/areadlinkat-with-size-tests (Files): Likewise.
5401         * modules/argmatch-tests (Files): Likewise.
5402         * modules/argv-iter-tests (Files): Likewise.
5403         * modules/array-list-tests (Files): Likewise.
5404         * modules/array-mergesort-tests (Files): Likewise.
5405         * modules/array-oset-tests (Files): Likewise.
5406         * modules/avltree-list-tests (Files): Likewise.
5407         * modules/avltree-oset-tests (Files): Likewise.
5408         * modules/avltreehash-list-tests (Files): Likewise.
5409         * modules/base64-tests (Files): Likewise.
5410         * modules/binary-io-tests (Files): Likewise.
5411         * modules/bitrotate-tests (Files): Likewise.
5412         * modules/btowc-tests (Files): Likewise.
5413         * modules/byteswap-tests (Files): Likewise.
5414         * modules/c-ctype-tests (Files): Likewise.
5415         * modules/c-stack-tests (Files): Likewise.
5416         * modules/c-strcase-tests (Files): Likewise.
5417         * modules/c-strcasestr-tests (Files): Likewise.
5418         * modules/c-strstr-tests (Files): Likewise.
5419         * modules/canonicalize-lgpl-tests (Files): Likewise.
5420         * modules/canonicalize-tests (Files): Likewise.
5421         * modules/carray-list-tests (Files): Likewise.
5422         * modules/ceilf-tests (Files): Likewise.
5423         * modules/ceill-tests (Files): Likewise.
5424         * modules/chown-tests (Files): Likewise.
5425         * modules/cloexec-tests (Files): Likewise.
5426         * modules/copy-file-tests (Files): Likewise.
5427         * modules/count-one-bits-tests (Files): Likewise.
5428         * modules/dprintf-posix-tests (Files): Likewise.
5429         * modules/dup2-tests (Files): Likewise.
5430         * modules/dup3-tests (Files): Likewise.
5431         * modules/duplocale-tests (Files): Likewise.
5432         * modules/fbufmode-tests (Files): Likewise.
5433         * modules/fchdir-tests (Files): Likewise.
5434         * modules/fcntl-safer-tests (Files): Likewise.
5435         * modules/fcntl-tests (Files): Likewise.
5436         * modules/fdopendir-tests (Files): Likewise.
5437         * modules/fdutimensat-tests (Files): Likewise.
5438         * modules/fflush-tests (Files): Likewise.
5439         * modules/filevercmp-tests (Files): Likewise.
5440         * modules/flock-tests (Files): Likewise.
5441         * modules/floorf-tests (Files): Likewise.
5442         * modules/floorl-tests (Files): Likewise.
5443         * modules/fnmatch-tests (Files): Likewise.
5444         * modules/fopen-safer-tests (Files): Likewise.
5445         * modules/fopen-tests (Files): Likewise.
5446         * modules/fpending-tests (Files): Likewise.
5447         * modules/fprintf-posix-tests (Files): Likewise.
5448         * modules/fpurge-tests (Files): Likewise.
5449         * modules/freadable-tests (Files): Likewise.
5450         * modules/freadahead-tests (Files): Likewise.
5451         * modules/freading-tests (Files): Likewise.
5452         * modules/freadptr-tests (Files): Likewise.
5453         * modules/freadseek-tests (Files): Likewise.
5454         * modules/freopen-tests (Files): Likewise.
5455         * modules/frexp-nolibm-tests (Files): Likewise.
5456         * modules/frexp-tests (Files): Likewise.
5457         * modules/frexpl-nolibm-tests (Files): Likewise.
5458         * modules/frexpl-tests (Files): Likewise.
5459         * modules/fseek-tests (Files): Likewise.
5460         * modules/fseeko-tests (Files): Likewise.
5461         * modules/fstrcmp-tests (Files): Likewise.
5462         * modules/fsync-tests (Files): Likewise.
5463         * modules/ftell-tests (Files): Likewise.
5464         * modules/ftello-tests (Files): Likewise.
5465         * modules/func-tests (Files): Likewise.
5466         * modules/futimens-tests (Files): Likewise.
5467         * modules/fwritable-tests (Files): Likewise.
5468         * modules/fwriting-tests (Files): Likewise.
5469         * modules/getcwd-tests (Files): Likewise.
5470         * modules/getdate-tests (Files): Likewise.
5471         * modules/getdelim-tests (Files): Likewise.
5472         * modules/getdtablesize-tests (Files): Likewise.
5473         * modules/getgroups-tests (Files): Likewise.
5474         * modules/getline-tests (Files): Likewise.
5475         * modules/getndelim2-tests (Files): Likewise.
5476         * modules/glob-tests (Files): Likewise.
5477         * modules/hash-tests (Files): Likewise.
5478         * modules/i-ring-tests (Files): Likewise.
5479         * modules/iconv-tests (Files): Likewise.
5480         * modules/iconv_open-utf-tests (Files): Likewise.
5481         * modules/idpriv-drop-tests (Files): Likewise.
5482         * modules/idpriv-droptemp-tests (Files): Likewise.
5483         * modules/inet_ntop-tests (Files): Likewise.
5484         * modules/inet_pton-tests (Files): Likewise.
5485         * modules/isblank-tests (Files): Likewise.
5486         * modules/isfinite-tests (Files): Likewise.
5487         * modules/isinf-tests (Files): Likewise.
5488         * modules/isnan-tests (Files): Likewise.
5489         * modules/isnand-nolibm-tests (Files): Likewise.
5490         * modules/isnand-tests (Files): Likewise.
5491         * modules/isnanf-nolibm-tests (Files): Likewise.
5492         * modules/isnanf-tests (Files): Likewise.
5493         * modules/isnanl-nolibm-tests (Files): Likewise.
5494         * modules/isnanl-tests (Files): Likewise.
5495         * modules/lchown-tests (Files): Likewise.
5496         * modules/ldexpl-tests (Files): Likewise.
5497         * modules/link-tests (Files): Likewise.
5498         * modules/linkat-tests (Files): Likewise.
5499         * modules/linked-list-tests (Files): Likewise.
5500         * modules/linkedhash-list-tests (Files): Likewise.
5501         * modules/localename-tests (Files): Likewise.
5502         * modules/lseek-tests (Files): Likewise.
5503         * modules/lstat-tests (Files): Likewise.
5504         * modules/mbmemcasecmp-tests (Files): Likewise.
5505         * modules/mbmemcasecoll-tests (Files): Likewise.
5506         * modules/mbrtowc-tests (Files): Likewise.
5507         * modules/mbscasecmp-tests (Files): Likewise.
5508         * modules/mbscasestr-tests (Files): Likewise.
5509         * modules/mbschr-tests (Files): Likewise.
5510         * modules/mbscspn-tests (Files): Likewise.
5511         * modules/mbsinit-tests (Files): Likewise.
5512         * modules/mbsncasecmp-tests (Files): Likewise.
5513         * modules/mbsnrtowcs-tests (Files): Likewise.
5514         * modules/mbspbrk-tests (Files): Likewise.
5515         * modules/mbspcasecmp-tests (Files): Likewise.
5516         * modules/mbsrchr-tests (Files): Likewise.
5517         * modules/mbsrtowcs-tests (Files): Likewise.
5518         * modules/mbsspn-tests (Files): Likewise.
5519         * modules/mbsstr-tests (Files): Likewise.
5520         * modules/memchr-tests (Files): Likewise.
5521         * modules/memchr2-tests (Files): Likewise.
5522         * modules/memcmp-tests (Files): Likewise.
5523         * modules/memmem-tests (Files): Likewise.
5524         * modules/memrchr-tests (Files): Likewise.
5525         * modules/mkdir-tests (Files): Likewise.
5526         * modules/mkfifo-tests (Files): Likewise.
5527         * modules/mkfifoat-tests (Files): Likewise.
5528         * modules/mknod-tests (Files): Likewise.
5529         * modules/nanosleep-tests (Files): Likewise.
5530         * modules/nl_langinfo-tests (Files): Likewise.
5531         * modules/obstack-printf-tests (Files): Likewise.
5532         * modules/open-tests (Files): Likewise.
5533         * modules/openat-tests (Files): Likewise.
5534         * modules/pipe-filter-gi-tests (Files): Likewise.
5535         * modules/pipe-filter-ii-tests (Files): Likewise.
5536         * modules/pipe2-tests (Files): Likewise.
5537         * modules/popen-safer-tests (Files): Likewise.
5538         * modules/popen-tests (Files): Likewise.
5539         * modules/posixtm-tests (Files): Likewise.
5540         * modules/pread-tests (Files): Likewise.
5541         * modules/printf-frexp-tests (Files): Likewise.
5542         * modules/printf-frexpl-tests (Files): Likewise.
5543         * modules/printf-posix-tests (Files): Likewise.
5544         * modules/priv-set-tests (Files): Likewise.
5545         * modules/quotearg-tests (Files): Likewise.
5546         * modules/random_r-tests (Files): Likewise.
5547         * modules/rawmemchr-tests (Files): Likewise.
5548         * modules/rbtree-list-tests (Files): Likewise.
5549         * modules/rbtree-oset-tests (Files): Likewise.
5550         * modules/rbtreehash-list-tests (Files): Likewise.
5551         * modules/readlink-tests (Files): Likewise.
5552         * modules/remove-tests (Files): Likewise.
5553         * modules/rename-tests (Files): Likewise.
5554         * modules/renameat-tests (Files): Likewise.
5555         * modules/rmdir-tests (Files): Likewise.
5556         * modules/round-tests (Files): Likewise.
5557         * modules/roundf-tests (Files): Likewise.
5558         * modules/roundl-tests (Files): Likewise.
5559         * modules/safe-alloc-tests (Files): Likewise.
5560         * modules/setenv-tests (Files): Likewise.
5561         * modules/sigaction-tests (Files): Likewise.
5562         * modules/signbit-tests (Files): Likewise.
5563         * modules/sleep-tests (Files): Likewise.
5564         * modules/snprintf-posix-tests (Files): Likewise.
5565         * modules/snprintf-tests (Files): Likewise.
5566         * modules/sprintf-posix-tests (Files): Likewise.
5567         * modules/stat-tests (Files): Likewise.
5568         * modules/stat-time-tests (Files): Likewise.
5569         * modules/strcasestr-tests (Files): Likewise.
5570         * modules/strchrnul-tests (Files): Likewise.
5571         * modules/strerror-tests (Files): Likewise.
5572         * modules/striconv-tests (Files): Likewise.
5573         * modules/striconveh-tests (Files): Likewise.
5574         * modules/striconveha-tests (Files): Likewise.
5575         * modules/strsignal-tests (Files): Likewise.
5576         * modules/strstr-tests (Files): Likewise.
5577         * modules/strtod-tests (Files): Likewise.
5578         * modules/strverscmp-tests (Files): Likewise.
5579         * modules/symlink-tests (Files): Likewise.
5580         * modules/symlinkat-tests (Files): Likewise.
5581         * modules/trunc-tests (Files): Likewise.
5582         * modules/truncf-tests (Files): Likewise.
5583         * modules/truncl-tests (Files): Likewise.
5584         * modules/uname-tests (Files): Likewise.
5585         * modules/unicase/cased-tests (Files): Likewise.
5586         * modules/unicase/ignorable-tests (Files): Likewise.
5587         * modules/unicase/locale-language-tests (Files): Likewise.
5588         * modules/unicase/tolower-tests (Files): Likewise.
5589         * modules/unicase/totitle-tests (Files): Likewise.
5590         * modules/unicase/toupper-tests (Files): Likewise.
5591         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5592         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5593         * modules/unicase/u8-casefold-tests (Files): Likewise.
5594         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5595         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5596         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5597         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5598         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5599         * modules/unicase/u8-tolower-tests (Files): Likewise.
5600         * modules/unicase/u8-totitle-tests (Files): Likewise.
5601         * modules/unicase/u8-toupper-tests (Files): Likewise.
5602         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5603         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5604         * modules/unicase/u16-casefold-tests (Files): Likewise.
5605         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5606         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5607         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5608         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5609         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5610         * modules/unicase/u16-tolower-tests (Files): Likewise.
5611         * modules/unicase/u16-totitle-tests (Files): Likewise.
5612         * modules/unicase/u16-toupper-tests (Files): Likewise.
5613         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5614         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5615         * modules/unicase/u32-casefold-tests (Files): Likewise.
5616         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5617         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5618         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5619         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5620         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5621         * modules/unicase/u32-tolower-tests (Files): Likewise.
5622         * modules/unicase/u32-totitle-tests (Files): Likewise.
5623         * modules/unicase/u32-toupper-tests (Files): Likewise.
5624         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5625         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5626         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5627         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5628         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5629         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5630         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5631         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5632         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5633         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5634         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5635         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5636         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5637         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5638         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5639         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5640         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5641         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5642         * modules/unictype/block-list-tests (Files): Likewise.
5643         * modules/unictype/block-of-tests (Files): Likewise.
5644         * modules/unictype/block-test-tests (Files): Likewise.
5645         * modules/unictype/category-C-tests (Files): Likewise.
5646         * modules/unictype/category-Cc-tests (Files): Likewise.
5647         * modules/unictype/category-Cf-tests (Files): Likewise.
5648         * modules/unictype/category-Cn-tests (Files): Likewise.
5649         * modules/unictype/category-Co-tests (Files): Likewise.
5650         * modules/unictype/category-Cs-tests (Files): Likewise.
5651         * modules/unictype/category-L-tests (Files): Likewise.
5652         * modules/unictype/category-Ll-tests (Files): Likewise.
5653         * modules/unictype/category-Lm-tests (Files): Likewise.
5654         * modules/unictype/category-Lo-tests (Files): Likewise.
5655         * modules/unictype/category-Lt-tests (Files): Likewise.
5656         * modules/unictype/category-Lu-tests (Files): Likewise.
5657         * modules/unictype/category-M-tests (Files): Likewise.
5658         * modules/unictype/category-Mc-tests (Files): Likewise.
5659         * modules/unictype/category-Me-tests (Files): Likewise.
5660         * modules/unictype/category-Mn-tests (Files): Likewise.
5661         * modules/unictype/category-N-tests (Files): Likewise.
5662         * modules/unictype/category-Nd-tests (Files): Likewise.
5663         * modules/unictype/category-Nl-tests (Files): Likewise.
5664         * modules/unictype/category-No-tests (Files): Likewise.
5665         * modules/unictype/category-P-tests (Files): Likewise.
5666         * modules/unictype/category-Pc-tests (Files): Likewise.
5667         * modules/unictype/category-Pd-tests (Files): Likewise.
5668         * modules/unictype/category-Pe-tests (Files): Likewise.
5669         * modules/unictype/category-Pf-tests (Files): Likewise.
5670         * modules/unictype/category-Pi-tests (Files): Likewise.
5671         * modules/unictype/category-Po-tests (Files): Likewise.
5672         * modules/unictype/category-Ps-tests (Files): Likewise.
5673         * modules/unictype/category-S-tests (Files): Likewise.
5674         * modules/unictype/category-Sc-tests (Files): Likewise.
5675         * modules/unictype/category-Sk-tests (Files): Likewise.
5676         * modules/unictype/category-Sm-tests (Files): Likewise.
5677         * modules/unictype/category-So-tests (Files): Likewise.
5678         * modules/unictype/category-Z-tests (Files): Likewise.
5679         * modules/unictype/category-Zl-tests (Files): Likewise.
5680         * modules/unictype/category-Zp-tests (Files): Likewise.
5681         * modules/unictype/category-Zs-tests (Files): Likewise.
5682         * modules/unictype/category-and-not-tests (Files): Likewise.
5683         * modules/unictype/category-and-tests (Files): Likewise.
5684         * modules/unictype/category-byname-tests (Files): Likewise.
5685         * modules/unictype/category-name-tests (Files): Likewise.
5686         * modules/unictype/category-none-tests (Files): Likewise.
5687         * modules/unictype/category-of-tests (Files): Likewise.
5688         * modules/unictype/category-or-tests (Files): Likewise.
5689         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5690         * modules/unictype/combining-class-tests (Files): Likewise.
5691         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5692         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5693         * modules/unictype/ctype-blank-tests (Files): Likewise.
5694         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5695         * modules/unictype/ctype-digit-tests (Files): Likewise.
5696         * modules/unictype/ctype-graph-tests (Files): Likewise.
5697         * modules/unictype/ctype-lower-tests (Files): Likewise.
5698         * modules/unictype/ctype-print-tests (Files): Likewise.
5699         * modules/unictype/ctype-punct-tests (Files): Likewise.
5700         * modules/unictype/ctype-space-tests (Files): Likewise.
5701         * modules/unictype/ctype-upper-tests (Files): Likewise.
5702         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5703         * modules/unictype/decimal-digit-tests (Files): Likewise.
5704         * modules/unictype/digit-tests (Files): Likewise.
5705         * modules/unictype/mirror-tests (Files): Likewise.
5706         * modules/unictype/numeric-tests (Files): Likewise.
5707         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5708         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5709         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5710         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5711         Likewise.
5712         * modules/unictype/property-bidi-block-separator-tests (Files):
5713         Likewise.
5714         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5715         Likewise.
5716         * modules/unictype/property-bidi-common-separator-tests (Files):
5717         Likewise.
5718         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5719         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5720         Likewise.
5721         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5722         Likewise.
5723         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5724         Likewise.
5725         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5726         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5727         Likewise.
5728         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5729         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5730         Likewise.
5731         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5732         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5733         * modules/unictype/property-bidi-segment-separator-tests (Files):
5734         Likewise.
5735         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5736         * modules/unictype/property-byname-tests (Files): Likewise.
5737         * modules/unictype/property-combining-tests (Files): Likewise.
5738         * modules/unictype/property-composite-tests (Files): Likewise.
5739         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5740         * modules/unictype/property-dash-tests (Files): Likewise.
5741         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5742         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5743         Likewise.
5744         * modules/unictype/property-deprecated-tests (Files): Likewise.
5745         * modules/unictype/property-diacritic-tests (Files): Likewise.
5746         * modules/unictype/property-extender-tests (Files): Likewise.
5747         * modules/unictype/property-format-control-tests (Files): Likewise.
5748         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5749         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5750         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5751         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5752         * modules/unictype/property-hyphen-tests (Files): Likewise.
5753         * modules/unictype/property-id-continue-tests (Files): Likewise.
5754         * modules/unictype/property-id-start-tests (Files): Likewise.
5755         * modules/unictype/property-ideographic-tests (Files): Likewise.
5756         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5757         * modules/unictype/property-ids-trinary-operator-tests (Files):
5758         Likewise.
5759         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5760         * modules/unictype/property-iso-control-tests (Files): Likewise.
5761         * modules/unictype/property-join-control-tests (Files): Likewise.
5762         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5763         * modules/unictype/property-line-separator-tests (Files): Likewise.
5764         * modules/unictype/property-logical-order-exception-tests (Files):
5765         Likewise.
5766         * modules/unictype/property-lowercase-tests (Files): Likewise.
5767         * modules/unictype/property-math-tests (Files): Likewise.
5768         * modules/unictype/property-non-break-tests (Files): Likewise.
5769         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5770         * modules/unictype/property-numeric-tests (Files): Likewise.
5771         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5772         * modules/unictype/property-other-default-ignorable-code-point-tests
5773         (Files): Likewise.
5774         * modules/unictype/property-other-grapheme-extend-tests (Files):
5775         Likewise.
5776         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5777         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5778         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5779         * modules/unictype/property-other-math-tests (Files): Likewise.
5780         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5781         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5782         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5783         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5784         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5785         * modules/unictype/property-private-use-tests (Files): Likewise.
5786         * modules/unictype/property-punctuation-tests (Files): Likewise.
5787         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5788         * modules/unictype/property-radical-tests (Files): Likewise.
5789         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5790         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5791         * modules/unictype/property-space-tests (Files): Likewise.
5792         * modules/unictype/property-terminal-punctuation-tests (Files):
5793         Likewise.
5794         * modules/unictype/property-test-tests (Files): Likewise.
5795         * modules/unictype/property-titlecase-tests (Files): Likewise.
5796         * modules/unictype/property-unassigned-code-value-tests (Files):
5797         Likewise.
5798         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5799         * modules/unictype/property-uppercase-tests (Files): Likewise.
5800         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5801         * modules/unictype/property-white-space-tests (Files): Likewise.
5802         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5803         * modules/unictype/property-xid-start-tests (Files): Likewise.
5804         * modules/unictype/property-zero-width-tests (Files): Likewise.
5805         * modules/unictype/scripts-tests (Files): Likewise.
5806         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5807         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5808         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5809         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5810         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5811         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5812         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5813         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5814         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5815         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5816         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5817         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5818         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5819         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5820         * modules/uninorm/composition-tests (Files): Likewise.
5821         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5822         * modules/uninorm/decomposition-tests (Files): Likewise.
5823         * modules/uninorm/filter-tests (Files): Likewise.
5824         * modules/uninorm/nfc-tests (Files): Likewise.
5825         * modules/uninorm/nfd-tests (Files): Likewise.
5826         * modules/uninorm/nfkc-tests (Files): Likewise.
5827         * modules/uninorm/nfkd-tests (Files): Likewise.
5828         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5829         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5830         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5831         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5832         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5833         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5834         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5835         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5836         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5837         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5838         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5839         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5840         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5841         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5842         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5843         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5844         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5845         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5846         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5847         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5848         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5849         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5850         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5851         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5852         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5853         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5854         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5855         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5856         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5857         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5858         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5859         * modules/uniwidth/u8-width-tests (Files): Likewise.
5860         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5861         * modules/uniwidth/u16-width-tests (Files): Likewise.
5862         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5863         * modules/uniwidth/u32-width-tests (Files): Likewise.
5864         * modules/uniwidth/width-tests (Files): Likewise.
5865         * modules/unlink-tests (Files): Likewise.
5866         * modules/unsetenv-tests (Files): Likewise.
5867         * modules/usleep-tests (Files): Likewise.
5868         * modules/utimens-tests (Files): Likewise.
5869         * modules/utimensat-tests (Files): Likewise.
5870         * modules/vasnprintf-posix-tests (Files): Likewise.
5871         * modules/vasnprintf-tests (Files): Likewise.
5872         * modules/vasprintf-posix-tests (Files): Likewise.
5873         * modules/vasprintf-tests (Files): Likewise.
5874         * modules/vdprintf-posix-tests (Files): Likewise.
5875         * modules/vfprintf-posix-tests (Files): Likewise.
5876         * modules/vprintf-posix-tests (Files): Likewise.
5877         * modules/vsnprintf-posix-tests (Files): Likewise.
5878         * modules/vsnprintf-tests (Files): Likewise.
5879         * modules/vsprintf-posix-tests (Files): Likewise.
5880         * modules/wcrtomb-tests (Files): Likewise.
5881         * modules/wcsnrtombs-tests (Files): Likewise.
5882         * modules/wcsrtombs-tests (Files): Likewise.
5883         * modules/wctype-tests (Files): Likewise.
5884         * modules/wcwidth-tests (Files): Likewise.
5885         * modules/xmemdup0-tests (Files): Likewise.
5886         * modules/xprintf-posix-tests (Files): Likewise.
5887         * modules/xvasprintf-tests (Files): Likewise.
5888
5889 2009-12-24  Eric Blake  <ebb9@byu.net>
5890
5891         test-nanosleep: fix typo
5892         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5893         patch.
5894         Reported by Bruno Haible.
5895
5896 2009-12-24  Bruno Haible  <bruno@clisp.org>
5897
5898         Reduce namespace pollution on glibc systems.
5899         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5900         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5901         systems.
5902         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5903         <getopt.h> on glibc systems.
5904         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5905         systems.
5906         * lib/fcntl.c: Include <unistd.h> here instead.
5907
5908 2009-12-24  Bruno Haible  <bruno@clisp.org>
5909
5910         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5911
5912 2009-12-24  Eric Blake  <ebb9@byu.net>
5913
5914         tests: add signature checks
5915         * tests/signature.h (SIGNATURE_CHECK): New file.
5916         * modules/atexit-tests (Files): Use it.
5917         * modules/btowc-tests (Files): Likewise.
5918         * modules/canonicalize-lgpl-tests (Files): Likewise.
5919         * modules/ceilf-tests (Files): Likewise.
5920         * modules/ceill-tests (Files): Likewise.
5921         * modules/chown-tests (Files): Likewise.
5922         * modules/dprintf-posix-tests (Files): Likewise.
5923         * modules/dup2-tests (Files): Likewise.
5924         * modules/dup3-tests (Files): Likewise.
5925         * modules/duplocale-tests (Files): Likewise.
5926         * modules/fchdir-tests (Files): Likewise.
5927         * modules/fcntl-tests (Files): Likewise.
5928         * modules/fdopendir-tests (Files): Likewise.
5929         * modules/fflush-tests (Files): Likewise.
5930         * modules/flock-tests (Files): Likewise.
5931         * modules/floorf-tests (Files): Likewise.
5932         * modules/floorl-tests (Files): Likewise.
5933         * modules/fnmatch-tests (Files): Likewise.
5934         * modules/fopen-tests (Files): Likewise.
5935         * modules/fprintf-posix-tests (Files): Likewise.
5936         * modules/freopen-tests (Files): Likewise.
5937         * modules/frexp-nolibm-tests (Files): Likewise.
5938         * modules/frexp-tests (Files): Likewise.
5939         * modules/frexpl-nolibm-tests (Files): Likewise.
5940         * modules/frexpl-tests (Files): Likewise.
5941         * modules/fseek-tests (Files): Likewise.
5942         * modules/fseeko-tests (Files): Likewise.
5943         * modules/fsync-tests (Files): Likewise.
5944         * modules/ftell-tests (Files): Likewise.
5945         * modules/ftello-tests (Files): Likewise.
5946         * modules/futimens-tests (Files): Likewise.
5947         * modules/getaddrinfo-tests (Files): Likewise.
5948         * modules/getcwd-tests (Files): Likewise.
5949         * modules/getdelim-tests (Files): Likewise.
5950         * modules/getdtablesize-tests (Files): Likewise.
5951         * modules/getgroups-tests (Files): Likewise.
5952         * modules/gethostname-tests (Files): Likewise.
5953         * modules/getline-tests (Files): Likewise.
5954         * modules/getopt-posix-tests (Files): Likewise.
5955         * modules/gettimeofday-tests (Files): Likewise.
5956         * modules/glob-tests (Files): Likewise.
5957         * modules/iconv-tests (Files): Likewise.
5958         * modules/inet_ntop-tests (Files): Likewise.
5959         * modules/inet_pton-tests (Files): Likewise.
5960         * modules/isblank-tests (Files): Likewise.
5961         * modules/lchown-tests (Files): Likewise.
5962         * modules/ldexpl-tests (Files): Likewise.
5963         * modules/link-tests (Files): Likewise.
5964         * modules/linkat-tests (Files): Likewise.
5965         * modules/lseek-tests (Files): Likewise.
5966         * modules/lstat-tests (Files): Likewise.
5967         * modules/mbrtowc-tests (Files): Likewise.
5968         * modules/mbsinit-tests (Files): Likewise.
5969         * modules/mbsnrtowcs-tests (Files): Likewise.
5970         * modules/mbsrtowcs-tests (Files): Likewise.
5971         * modules/memchr-tests (Files): Likewise.
5972         * modules/memcmp-tests (Files): Likewise.
5973         * modules/memmem-tests (Files): Likewise.
5974         * modules/memrchr-tests (Files): Likewise.
5975         * modules/mkdir-tests (Files): Likewise.
5976         * modules/mkfifo-tests (Files): Likewise.
5977         * modules/mkfifoat-tests (Files): Likewise.
5978         * modules/mknod-tests (Files): Likewise.
5979         * modules/nanosleep-tests (Files): Likewise.
5980         * modules/nl_langinfo-tests (Files): Likewise.
5981         * modules/obstack-printf-tests (Files): Likewise.
5982         * modules/open-tests (Files): Likewise.
5983         * modules/openat-tests (Files): Likewise.
5984         * modules/perror-tests (Files): Likewise.
5985         * modules/pipe2-tests (Files): Likewise.
5986         * modules/poll-tests (Files): Likewise.
5987         * modules/popen-tests (Files): Likewise.
5988         * modules/posix_spawn-tests (Files): Likewise.
5989         * modules/posix_spawnp-tests (Files): Likewise.
5990         * modules/pread-tests (Files): Likewise.
5991         * modules/printf-posix-tests (Files): Likewise.
5992         * modules/pty-tests (Files): Likewise.
5993         * modules/random_r-tests (Files): Likewise.
5994         * modules/rawmemchr-tests (Files): Likewise.
5995         * modules/readlink-tests (Files): Likewise.
5996         * modules/remove-tests (Files): Likewise.
5997         * modules/rename-tests (Files): Likewise.
5998         * modules/renameat-tests (Files): Likewise.
5999         * modules/rmdir-tests (Files): Likewise.
6000         * modules/round-tests (Files): Likewise.
6001         * modules/roundf-tests (Files): Likewise.
6002         * modules/roundl-tests (Files): Likewise.
6003         * modules/select-tests (Files): Likewise.
6004         * modules/setenv-tests (Files): Likewise.
6005         * modules/sigaction-tests (Files): Likewise.
6006         * modules/sleep-tests (Files): Likewise.
6007         * modules/snprintf-posix-tests (Files): Likewise.
6008         * modules/snprintf-tests (Files): Likewise.
6009         * modules/sprintf-posix-tests (Files): Likewise.
6010         * modules/stat-tests (Files): Likewise.
6011         * modules/strcasestr-tests (Files): Likewise.
6012         * modules/strchrnul-tests (Files): Likewise.
6013         * modules/strerror-tests (Files): Likewise.
6014         * modules/strsignal-tests (Files): Likewise.
6015         * modules/strstr-tests (Files): Likewise.
6016         * modules/strtod-tests (Files): Likewise.
6017         * modules/strverscmp-tests (Files): Likewise.
6018         * modules/symlink-tests (Files): Likewise.
6019         * modules/symlinkat-tests (Files): Likewise.
6020         * modules/times-tests (Files): Likewise.
6021         * modules/trunc-tests (Files): Likewise.
6022         * modules/truncf-tests (Files): Likewise.
6023         * modules/truncl-tests (Files): Likewise.
6024         * modules/tsearch-tests (Files): Likewise.
6025         * modules/uname-tests (Files): Likewise.
6026         * modules/unlink-tests (Files): Likewise.
6027         * modules/unsetenv-tests (Files): Likewise.
6028         * modules/usleep-tests (Files): Likewise.
6029         * modules/utimensat-tests (Files): Likewise.
6030         * modules/vasprintf-tests (Files): Likewise.
6031         * modules/vdprintf-posix-tests (Files): Likewise.
6032         * modules/vfprintf-posix-tests (Files): Likewise.
6033         * modules/vprintf-posix-tests (Files): Likewise.
6034         * modules/vsnprintf-posix-tests (Files): Likewise.
6035         * modules/vsnprintf-tests (Files): Likewise.
6036         * modules/vsprintf-posix-tests (Files): Likewise.
6037         * modules/wcrtomb-tests (Files): Likewise.
6038         * modules/wcsnrtombs-tests (Files): Likewise.
6039         * modules/wcsrtombs-tests (Files): Likewise.
6040         * modules/wcwidth-tests (Files): Likewise.
6041         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6042         * tests/test-isinf.c (isinf): Likewise.
6043         * tests/test-isnan.c (isnan): Likewise.
6044         * tests/test-signbit.c (signbit): Likewise.
6045         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6046         declaration, either as macro or with correct signature.
6047         (select): Ensure function under test is declared with correct
6048         signature in correct header.
6049         * tests/test-atexit.c (atexit): Likewise.
6050         * tests/test-btowc.c (btowc): Likewise.
6051         * tests/test-canonicalize-lgpl.c (realpath)
6052         (canonicalize_file_name): Likewise.
6053         * tests/test-ceilf1.c (ceilf): Likewise.
6054         * tests/test-ceill.c (ceill): Likewise.
6055         * tests/test-chown.c (chown): Likewise.
6056         * tests/test-dprintf-posix.c (dprintf): Likewise.
6057         * tests/test-dup2.c (dup2): Likewise.
6058         * tests/test-dup3.c (dup3): Likewise.
6059         * tests/test-duplocale.c (duplocale): Likewise.
6060         * tests/test-fchdir.c (fchdir): Likewise.
6061         * tests/test-fchownat.c (fchownat): Likewise.
6062         * tests/test-fcntl.c (fcntl): Likewise.
6063         * tests/test-fdopendir.c (fdopendir): Likewise.
6064         * tests/test-fflush.c (fflush): Likewise.
6065         * tests/test-flock.c (flock): Likewise.
6066         * tests/test-floorf1.c (floorf): Likewise.
6067         * tests/test-floorl.c (floorl): Likewise.
6068         * tests/test-fnmatch.c (fnmatch): Likewise.
6069         * tests/test-fopen.c (fopen): Likewise.
6070         * tests/test-fprintf-posix.c (fprintf): Likewise.
6071         * tests/test-freopen.c (freopen): Likewise.
6072         * tests/test-frexp.c (frexp): Likewise.
6073         * tests/test-frexpl.c (frexpl): Likewise.
6074         * tests/test-fseek.c (fseek): Likewise.
6075         * tests/test-fseeko.c (fseeko): Likewise.
6076         * tests/test-fstatat.c (fstatat): Likewise.
6077         * tests/test-fsync.c (fsync): Likewise.
6078         * tests/test-ftell.c (ftell): Likewise.
6079         * tests/test-ftello.c (ftello): Likewise.
6080         * tests/test-futimens.c (futimens): Likewise.
6081         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6082         (gai_strerror): Likewise.
6083         * tests/test-getcwd.c (getcwd): Likewise.
6084         * tests/test-getdelim.c (getdelim): Likewise.
6085         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6086         * tests/test-getgroups.c (getgroups): Likewise.
6087         * tests/test-gethostname.c (gethostname): Likewise.
6088         * tests/test-getline.c (getline): Likewise.
6089         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6090         Likewise.
6091         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6092         * tests/test-glob.c (glob, globfree): Likewise.
6093         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6094         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6095         * tests/test-inet_pton.c (inet_pton): Likewise.
6096         * tests/test-isblank.c (isblank): Likewise.
6097         * tests/test-lchown.c (lchown): Likewise.
6098         * tests/test-ldexpl.c (ldexpl): Likewise.
6099         * tests/test-link.c (link): Likewise.
6100         * tests/test-linkat.c (linkat): Likewise.
6101         * tests/test-lseek.c (lseek): Likewise.
6102         * tests/test-lstat.c (lstat): Likewise.
6103         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6104         * tests/test-mbsinit.c (mbsinit): Likewise.
6105         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6106         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6107         * tests/test-memchr.c (memchr): Likewise.
6108         * tests/test-memcmp.c (memcmp): Likewise.
6109         * tests/test-memmem.c (memmem): Likewise.
6110         * tests/test-memrchr.c (memrchr): Likewise.
6111         * tests/test-mkdir.c (mkdir): Likewise.
6112         * tests/test-mkdirat.c (mkdirat): Likewise.
6113         * tests/test-mkfifo.c (mkfifo): Likewise.
6114         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6115         * tests/test-mknod.c (mknod): Likewise.
6116         * tests/test-nanosleep.c (nanosleep): Likewise.
6117         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6118         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6119         Likewise.
6120         * tests/test-open.c (open): Likewise.
6121         * tests/test-openat.c (openat): Likewise.
6122         * tests/test-perror.c (perror): Likewise.
6123         * tests/test-pipe2.c (pipe2): Likewise.
6124         * tests/test-poll.c (poll): Likewise.
6125         * tests/test-popen.c (popen, pclose): Likewise.
6126         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6127         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6128         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6129         (posix_spawn_file_actions_destroy)
6130         (posix_spawn_file_actions_addclose)
6131         (posix_spawn_file_actions_addopen)
6132         (posix_spawn_file_actions_adddup2): Likewise.
6133         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6134         * tests/test-pread.c (pread): Likewise.
6135         * tests/test-printf-posix.c (printf): Likewise.
6136         * tests/test-pty.c (openpty, forkpty): Likewise.
6137         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6138         (random_r): Likewise.
6139         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6140         * tests/test-readlink.c (readlink): Likewise.
6141         * tests/test-remove.c (remove): Likewise.
6142         * tests/test-rename.c (rename): Likewise.
6143         * tests/test-renameat.c (renameat): Likewise.
6144         * tests/test-rmdir.c (rmdir): Likewise.
6145         * tests/test-round1.c (round): Likewise.
6146         * tests/test-roundf1.c (roundf): Likewise.
6147         * tests/test-roundl.c (roundl): Likewise.
6148         * tests/test-setenv.c (setenv): Likewise.
6149         * tests/test-sigaction.c (sigaction): Likewise.
6150         * tests/test-sleep.c (sleep): Likewise.
6151         * tests/test-snprintf.c (snprintf): Likewise.
6152         * tests/test-sprintf-posix.c (sprintf): Likewise.
6153         * tests/test-stat.c (stat): Likewise.
6154         * tests/test-stpncpy.c (stpncpy): Likewise.
6155         * tests/test-strcasestr.c (strcasestr): Likewise.
6156         * tests/test-strchrnul.c (strchrnul): Likewise.
6157         * tests/test-strerror.c (strerror): Likewise.
6158         * tests/test-strsignal.c (strsignal): Likewise.
6159         * tests/test-strstr.c (strstr): Likewise.
6160         * tests/test-strtod.c (strtod): Likewise.
6161         * tests/test-strverscmp.c (strverscmp): Likewise.
6162         * tests/test-symlink.c (symlink): Likewise.
6163         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6164         * tests/test-times.c (times): Likewise.
6165         * tests/test-trunc1.c (trunc): Likewise.
6166         * tests/test-truncf1.c (truncf): Likewise.
6167         * tests/test-truncl.c (truncl): Likewise.
6168         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6169         Likewise.
6170         * tests/test-uname.c (uname): Likewise.
6171         * tests/test-unlink.c (unlink): Likewise.
6172         * tests/test-unlinkat.c (unlinkat): Likewise.
6173         * tests/test-unsetenv.c (unsetenv): Likewise.
6174         * tests/test-usleep.c (usleep): Likewise.
6175         * tests/test-utimensat.c (utimensat): Likewise.
6176         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6177         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6178         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6179         * tests/test-vprintf-posix.c (vprintf): Likewise.
6180         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6181         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6182         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6183         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6184         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6185         * tests/test-wcwidth.c (wcwidth): Likewise.
6186
6187         build: pull in conditional headers during GNULIB_POSIXCHECK
6188         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6189         definitions from any conditionally-included headers.
6190         * lib/stdlib.in.h (includes): Likewise.
6191         * lib/unistd.in.h (includes): Likewise.
6192
6193 2009-12-24  Bruno Haible  <bruno@clisp.org>
6194
6195         * tests/test-argv-iter.c: Include header file being tested immediately
6196         after config.h.
6197         * tests/test-base64.c: Likewise.
6198         * tests/test-flock.c: Likewise.
6199         * tests/test-fsync.c: Likewise.
6200         * tests/test-getdate.c: Likewise.
6201         * tests/test-getndelim2.c: Likewise.
6202         * tests/test-isfinite.c: Likewise.
6203         * tests/test-isinf.c: Likewise.
6204         * tests/test-strerror.c: Likewise.
6205         * tests/test-strsignal.c: Likewise.
6206
6207 2009-12-23  Eric Blake  <ebb9@byu.net>
6208
6209         unistd: work around cygwin bug
6210         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6211         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6212         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6213
6214 2009-12-23  Bruno Haible  <bruno@clisp.org>
6215
6216         localename: More tests.
6217         * tests/test-localename.c (SIZEOF): New macro.
6218         (categories): New variable.
6219         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6220         test_locale_name_default): Add test w.r.t. thread locale.
6221         (test_locale_name_thread): New function.
6222         (main): Invoke it.
6223
6224         localename: Make aware of thread locale.
6225         * lib/localename.h (gl_locale_name_thread): New declaration.
6226         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6227         behaviour with respect to thread locale.
6228         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6229         <langinfo.h>, glthread/lock.h.
6230         (SIZE_BITS): New macro.
6231         (string_hash): New function.
6232         (struct hash_node): New type.
6233         (HASH_TABLE_SIZE): New macro.
6234         (struniq_hash_table, struniq_lock): New variables.
6235         (struniq): New function.
6236         (gl_locale_name_thread): New function.
6237         (gl_locale_name): Invoke it.
6238         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6239         * modules/localename (Depends-on): Add lock.
6240         Reported by Mike Gran <spk121@yahoo.com>.
6241
6242 2009-12-23  Eric Blake  <ebb9@byu.net>
6243
6244         va-args: new module
6245         * modules/va-args: New file.
6246         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6247         * MODULES.html.sh (Core language properties): Mention it.
6248
6249         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6250         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6251         named alias for __attribute__((__unused__)).
6252         * lib/chown.c: Update client.
6253         * lib/fchmodat.c: Likewise.
6254         * lib/fts.c: Likewise.
6255         * lib/getdate.y: Likewise.
6256         * lib/getgroups.c: Likewise.
6257         * lib/getopt.c: Likewise.
6258         * lib/getugroups.c: Likewise.
6259         * lib/mkdir.c: Likewise.
6260         * lib/mkfifo.c: Likewise.
6261         * lib/mkfifoat.c: Likewise.
6262         * lib/mknod.c: Likewise.
6263         * lib/mknodat.c: Likewise.
6264         * lib/readlink.c: Likewise.
6265         * lib/se-context.in.h: Likewise.
6266         * lib/se-selinux.in.h: Likewise.
6267         * lib/sockets.c: Likewise.
6268         * lib/symlink.c: Likewise.
6269         * lib/symlinkat.c: Likewise.
6270         * lib/unicodeio.c: Likewise.
6271         * lib/unistr.h: Likewise.
6272         * tests/test-areadlink.c: Likewise.
6273         * tests/test-areadlinkat.c: Likewise.
6274         * tests/test-filenamecat.c: Likewise.
6275         * tests/test-fseeko.c: Likewise.
6276         * tests/test-ftello.c: Likewise.
6277         * tests/test-getdate.c: Likewise.
6278         * tests/test-getgroups.c: Likewise.
6279         * tests/test-gethostname.c: Likewise.
6280         * tests/test-quotearg.c: Likewise.
6281         * tests/test-version-etc.c: Likewise.
6282         * tests/test-xalloc-die.c: Likewise.
6283         * tests/test-xfprintf-posix.c: Likewise.
6284         * tests/test-xprintf-posix.c: Likewise.
6285         * tests/test-xvasprintf.c: Likewise.
6286
6287         tests: avoid compiler warnings
6288         * tests/test-fcntl.c (main): Delete unused parameters.
6289         * tests/test-freopen-safer.c (main): Likewise.
6290         * tests/test-xalloc-die.c (main): Mark unused parameters.
6291         * tests/test-fseeko.c (main): Likewise.
6292         * tests/test-ftello.c (main): Likewise.
6293         * tests/test-nanosleep.c (main): Avoid declaration warning.
6294         * tests/test-sleep.c (main): Likewise.
6295         * tests/test-unsetenv.c (main): Silence warning about string
6296         literal.
6297         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6298
6299 2009-12-23  Bruno Haible  <bruno@clisp.org>
6300
6301         * tests/test-localename.c (test_locale_name): New function, extracted
6302         from main. Also test mixed situations.
6303         (test_locale_name_posix, test_locale_name_environ,
6304         test_locale_name_default): New functions.
6305         (main): Invoke them all.
6306         * modules/localename-tests (configure.ac): Test for newlocale.
6307
6308 2009-12-23  Bruno Haible  <bruno@clisp.org>
6309
6310         unistd: Ensure getcwd gets declared before being overridden.
6311         * lib/unistd.in.h: Conditionally include <io.h>.
6312
6313 2009-12-22  Bruno Haible  <bruno@clisp.org>
6314
6315         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6316         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6317         (gl_WCHAR_H): Invoke it.
6318         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6319         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6320         Reported by Karl Berry <karl@freefriends.org>.
6321
6322 2009-12-22  Eric Blake  <ebb9@byu.net>
6323
6324         math, unistd: avoid redundant includes
6325         * lib/math.in.h (isnan): No need to re-include <math.h>.
6326         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6327
6328         getsubopt: work around cygwin bug
6329         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6330         avoid conflicting with system getsubopt.
6331         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6332         bug.
6333
6334         getopt: synchronize from glibc
6335         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6336         parameter order.  Adjust all callers.
6337         (_getopt_internal_r, main): Adjust quoting in error messages.
6338         Drop considerations for outdated POSIX 1003.2 error message.
6339         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6340         callers.
6341         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6342
6343         test-getopt: test stderr behavior
6344         * modules/getopt-posix-tests (Depends-on): Add dup2.
6345         * tests/test-getopt.c (ASSERT): Avoid stderr.
6346         (main): Move stderr to a temporary file.
6347         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6348         Instead, add parameter to inform caller if output occurred.
6349         (test_getopt): Adjust all existing tests to expect silence, and
6350         add new tests of leading ":".
6351         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6352         glibc shortcomings with leading "-:" or "+:" in optstring.
6353         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6354         Likewise.
6355         * doc/posix-functions/getopt.texi (getopt): Likewise.
6356
6357         test-getopt: enhance test
6358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6359         supports optind=0.
6360         * tests/test-getopt.c (OPTIND_MIN): Move...
6361         * tests/test-getopt.h (OPTIND_MIN): ...here.
6362         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6363         Require that optind=0 works, since modern BSD supports it in
6364         addition to optreset, and since coreutils expects it.
6365         (test_getopt_long_only): New test.
6366         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6367         glibc shortcomings with 'W;', and enforcement of optind=0.
6368         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6369         Likewise.
6370
6371 2009-12-21  Bruno Haible  <bruno@clisp.org>
6372
6373         localename: Improvements for MacOS X and Cygwin.
6374         * lib/localename.h (gl_locale_name_environ): New declaration.
6375         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6376         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6377         (gl_locale_name_posix): Invoke it.
6378         (gl_locale_name_default): Add comments. Use Windows native API also on
6379         Cygwin.
6380
6381 2009-12-21  Bruno Haible  <bruno@clisp.org>
6382
6383         Update list of Win32 locale ids.
6384         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6385         (LANG_SAMI): Renamed from LANG_SAAMI.
6386         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6387         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6388         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6389         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6390         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6391         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6392         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6393         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6394         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6395         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6396         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6397         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6398         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6399         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6400         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6401         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6402         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6403         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6404         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6405         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6406         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6407         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6408         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6409         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6410         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6411         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6412         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6413         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6414         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6415         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6416         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6417         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6418         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6419         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6420         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6421         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6422         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6423         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6424         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6425         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6426         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6427         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6428         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6429         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6430         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6431         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6432         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6433         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6434         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6435         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6436         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6437         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6438         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6439         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6440         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6441         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6442         Add more languages and countries for Sami, Sorbian. Add more countries
6443         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6444         for Pashto. Change country for Syriac, Tswana.
6445
6446 2009-12-21  Eric Blake  <ebb9@byu.net>
6447
6448         test-utimens: avoid spurious failure
6449         * tests/test-chown.h (nap): Factor...
6450         * tests/nap.h: ...into new file.
6451         * tests/test-lchown.h (nap): Avoid duplication.
6452         * tests/test-utimens-common.h (nap): Use shared implementation,
6453         necessary on file systems with 1-second resolution.
6454         * modules/chown-tests (Files): Include new file.
6455         * modules/fdutimensat-tests (Files): Likewise.
6456         * modules/futimens-tests (Files): Likewise.
6457         * modules/lchown-tests (Files): Likewise.
6458         * modules/openat-tests (Files): Likewise.
6459         * modules/utimens-tests (Files): Likewise.
6460         * modules/utimensat-tests (Files): Likewise.
6461
6462 2009-12-19  Eric Blake  <ebb9@byu.net>
6463
6464         futimens, utimensat: work around Linux bug
6465         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6466         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6467         * lib/utimensat.c (rpl_utimensat): Work around it.
6468         * lib/futimens.c (rpl_futimens): Adjust comment.
6469
6470         utimens: work around Linux ctime bug
6471         * lib/utimens.c (detect_ctime_bug): New helper function.
6472         (update_timespec): Differentiate between workaround needed for
6473         this bug vs. what is needed for systems that lack utimensat.
6474         (fdutimens, lutimens): Work around bug.
6475
6476         utimens: check for ctime update
6477         * tests/test-utimens-common.h (check_ctime): Define.
6478         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6479         * tests/test-futimens.h (test_futimens): Likewise.
6480         * tests/test-lutimens.h (test_lutimens): Likewise.
6481         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6482         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6483
6484 2009-12-19  Bruno Haible  <bruno@clisp.org>
6485
6486         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6487         * tests/test-dprintf-posix2.sh: New file.
6488         * tests/test-dprintf-posix2.c: New file.
6489         * modules/dprintf-posix-tests (Files): Add them.
6490         (configure.ac): Check for getrlimit and setrlimit.
6491         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6492
6493 2009-12-19  Bruno Haible  <bruno@clisp.org>
6494
6495         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6496         * tests/test-fprintf-posix3.sh: New file.
6497         * tests/test-fprintf-posix3.c: New file.
6498         * modules/fprintf-posix-tests (Files): Add them.
6499         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6500
6501 2009-12-19  Eric Blake  <ebb9@byu.net>
6502
6503         dirfd: fix prototype
6504         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6505         * lib/dirfd.c (dirfd): Likewise.
6506
6507         canonicalize: reduce memory usage
6508         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6509         allocation to size.
6510         Reported by Solar Designer <solar@openwall.com>.
6511
6512 2009-12-19  Bruno Haible  <bruno@clisp.org>
6513
6514         New module attribute 'Applicability'.
6515         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6516         * gnulib-tool: New option --extract-applicability.
6517         (func_usage): Document it.
6518         (sed_extract_prog): Recognize it.
6519         (func_get_applicability): New function.
6520         (func_import): Generalize handling of 'link-warning' module.
6521         * modules/link-warning (Applicability): New section.
6522         * modules/arg-nonnull (Applicability): New section.
6523         Repoted by Simon Josefsson <simon@josefsson.org>.
6524
6525 2009-12-19  Bruno Haible  <bruno@clisp.org>
6526
6527         fflush: tweak
6528         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6529         * lib/fseeko.c (rpl_fseeko): Likewise.
6530
6531 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6532
6533         * lib/gl_list.h: Fix typo in comment.
6534
6535 2009-12-16  Eric Blake  <ebb9@byu.net>
6536
6537         fcntl: use to simplify other modules
6538         * modules/cloexec (Depends-on): Add fcntl.
6539         * modules/fchdir (Depends-on): Likewise.
6540         * modules/fd-safer-flag (Depends-on): Likewise.
6541         * modules/unistd-safer (Depends-on): Likewise.
6542         * modules/dup3 (configure.ac): Set module indicator.
6543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6544         missing.
6545         * lib/fchdir.c (_gl_register_dup): Fix comment.
6546         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6547         * lib/dup-safer.c (dup_safer): Likewise.
6548         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6549         * lib/dup3.c (dup3): Likewise.
6550         * tests/test-fchdir.c (main): Enhance test.
6551         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6552
6553         fcntl: port portions of fcntl to mingw
6554         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6555         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6556         replacement for mingw.
6557         * modules/fcntl (Description): Update.
6558         (Depends-on): Add dup2.
6559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6560         * modules/fcntl-h (Makefile.am): Substitute it.
6561         * lib/fcntl.in.h (fcntl): Update declaration.
6562         (F_DUPFD, F_GETFD): New macros, when needed.
6563         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6564         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6565         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6566         we now guarantee.
6567
6568         fcntl: work around cygwin bug in F_DUPFD
6569         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6570         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6571         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6572         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6573         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6574
6575         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6576         * modules/fcntl (Files): List new files.
6577         (configure.ac): Run a test.
6578         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6579         * lib/fcntl.c (rpl_fcntl): Likewise.
6580         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6581         (gl_FCNTL_H): Always replace fcntl.h.
6582         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6583         * lib/fcntl.in.h (fcntl): Declare replacement.
6584         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6585         needed, plus a witness.
6586         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6587         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6588         * tests/test-fcntl.c: New file.
6589         * modules/fcntl-tests: Likewise.
6590
6591         binary-io: avoid potential compilation warning
6592         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6593         directives.
6594
6595         fflush: avoid compilation error on NetBSD
6596         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6597         between off_t and fpos_t, since the latter is sometimes a struct.
6598         * lib/fseeko.c (rpl_fseeko): Likewise.
6599         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6600
6601 2009-12-15  Eric Blake  <ebb9@byu.net>
6602
6603         fcntl-h, stdio, sys_ioctl: fix declarations
6604         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6605         function must not take arguments.
6606         * lib/sys_ioctl.in.h (ioctl): Likewise.
6607         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6608         (open): Add a link warning.
6609
6610 2009-12-15  Jim Meyering  <meyering@redhat.com>
6611
6612         areadlink, areadlink-with-size: relax license to LGPLv2+
6613         * modules/areadlink (License): Relax to LGPLv2+.
6614         * modules/areadlink-with-size (License): Likewise.
6615
6616 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6617             Bruno Haible  <bruno@clisp.org>
6618
6619         *printf: Fix memory leak.
6620         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6621         * lib/vfprintf.c (vfprintf): Likewise.
6622         * lib/dprintf.c (dprintf): Likewise.
6623         * lib/vdprintf.c (vdprintf): Likewise.
6624
6625 2009-12-14  Eric Blake  <ebb9@byu.net>
6626
6627         accept4: adjust module dependencies
6628         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6629
6630         utimens: one more try at avoiding compiler warning
6631         * lib/utimens.c (lutimens): Lower scope of result.
6632
6633 2009-12-13  Bruno Haible  <bruno@clisp.org>
6634
6635         Move the malloc checking from module 'list' to new module 'xlist'.
6636         * modules/xlist: New file.
6637         * lib/gl_xlist.h: New file.
6638         * lib/gl_xlist.c: New file.
6639         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6640         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6641         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6642         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6643         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6644         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6645         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6646         gl_sortedlist_nx_add): New declarations.
6647         (struct gl_list_implementation): Rename and change methods accordingly.
6648         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6649         (gl_list_nx_create): Renamed from gl_list_create.
6650         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6651         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6652         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6653         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6654         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6655         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6656         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6657         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6658         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6659         gl_list_create_empty.
6660         (gl_list_nx_create): Renamed from gl_list_create.
6661         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6662         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6663         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6664         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6665         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6666         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6667         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6668         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6669         * lib/gl_array_list.c: Don't include xalloc.h.
6670         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6671         NULL upon out-of-memory.
6672         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6673         out-of-memory.
6674         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6675         Change return type to 'int'.
6676         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6677         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6678         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6679         upon out-of-memory.
6680         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6681         upon out-of-memory.
6682         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6683         upon out-of-memory.
6684         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6685         upon out-of-memory.
6686         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6687         out-of-memory.
6688         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6689         Update.
6690         (gl_array_list_implementation): Update.
6691         * lib/gl_carray_list.c: Don't include xalloc.h.
6692         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6693         Return NULL upon out-of-memory.
6694         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6695         out-of-memory.
6696         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6697         Change return type to 'int'.
6698         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6699         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6700         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6701         upon out-of-memory.
6702         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6703         upon out-of-memory.
6704         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6705         out-of-memory.
6706         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6707         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6708         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6709         Update.
6710         (gl_carray_list_implementation): Update.
6711         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6712         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6713         gl_linked_create_empty. Return NULL upon out-of-memory.
6714         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6715         out-of-memory.
6716         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6717         Change return type to 'int'. Return -1 upon out-of-memory.
6718         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6719         out-of-memory.
6720         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6721         upon out-of-memory.
6722         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6723         upon out-of-memory.
6724         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6725         NULL upon out-of-memory.
6726         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6727         upon out-of-memory.
6728         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6729         out-of-memory.
6730         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6731         Update.
6732         * lib/gl_linked_list.c: Don't include xalloc.h.
6733         (gl_linked_list_implementation): Update.
6734         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6735         (add_to_bucket): Change return type to 'int'.
6736         (gl_linkedhash_list_implementation): Update.
6737         * lib/gl_anytree_list1.h (free_subtree): New function.
6738         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6739         gl_tree_create_empty. Return NULL upon out-of-memory.
6740         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6741         Change return type to 'int'. Return -1 upon out-of-memory.
6742         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6743         out-of-memory.
6744         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6745         (gl_tree_remove_node): New function, moved here from
6746         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6747         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6748         Update.
6749         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6750         malloc, not xmalloc. Return NULL upon out-of-memory.
6751         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6752         out-of-memory.
6753         (gl_tree_remove_node_from_tree): New function, extracted from
6754         gl_tree_remove_node.
6755         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6756         upon out-of-memory.
6757         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6758         out-of-memory.
6759         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6760         upon out-of-memory.
6761         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6762         upon out-of-memory.
6763         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6764         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6765         not xmalloc. Return NULL upon out-of-memory.
6766         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6767         out-of-memory.
6768         (gl_tree_remove_node_from_tree): New function, extracted from
6769         gl_tree_remove_node.
6770         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6771         upon out-of-memory.
6772         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6773         out-of-memory.
6774         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6775         upon out-of-memory.
6776         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6777         upon out-of-memory.
6778         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6779         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6780         gl_anytree_list1.h before gl_anyavltree_list2.h.
6781         (gl_avltree_list_implementation): Update.
6782         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6783         gl_anytree_list1.h before gl_anyavltree_list2.h.
6784         (gl_rbtree_list_implementation): Update.
6785         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6786         Change return type to 'int'. Return -1 upon out-of-memory. Use
6787         __builtin_expect.
6788         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6789         (gl_avltreehash_list_implementation): Update.
6790         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6791         (gl_rbtreehash_list_implementation): Update.
6792         * modules/array-list (Depends-on): Remove xalloc.
6793         * modules/carray-list (Depends-on): Likewise.
6794         * modules/linked-list (Depends-on): Likewise.
6795         * modules/linkedhash-list (Depends-on): Likewise.
6796         * modules/avltree-list (Depends-on): Likewise.
6797         * modules/rbtree-list (Depends-on): Likewise.
6798         * modules/avltreehash-list (Depends-on): Likewise.
6799         * modules/rbtreehash-list (Depends-on): Likewise.
6800
6801         * modules/xsublist: New file.
6802         * lib/gl_xsublist.h: New file.
6803         * lib/gl_xsublist.c: New file.
6804         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6805         (gl_sublist_nx_create): New declaration.
6806         * lib/gl_sublist.c: Don't include xalloc.h.
6807         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6808         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6809         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6810         Change return type to 'int'. Return -1 upon out-of-memory.
6811         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6812         upon out-of-memory.
6813         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6814         NULL upon out-of-memory.
6815         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6816         upon out-of-memory.
6817         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6818         NULL upon out-of-memory.
6819         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6820         NULL upon out-of-memory.
6821         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6822         upon out-of-memory.
6823         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6824         (gl_sublist_list_implementation): Update.
6825         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6826         upon out-of-memory.
6827         * modules/sublist (Depends-on): Remove xalloc.
6828
6829         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6830         * tests/test-carray_list.c: Likewise.
6831         * tests/test-linked_list.c: Likewise.
6832         * tests/test-linkedhash_list.c: Likewise.
6833         * tests/test-avltree_list.c: Likewise.
6834         * tests/test-rbtree_list.c: Likewise.
6835         * tests/test-avltreehash_list.c: Likewise.
6836         * tests/test-rbtreehash_list.c: Likewise.
6837         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6838         * modules/carray-list-tests (Makefile.am): Likewise.
6839         * modules/linked-list-tests (Makefile.am): Likewise.
6840         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6841         * modules/avltree-list-tests (Makefile.am): Likewise.
6842         * modules/rbtree-list-tests (Makefile.am): Likewise.
6843         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6844         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6845
6846         * NEWS: Mention the changes.
6847
6848         * lib/clean-temp.c: Include gl_xlist.h.
6849         * modules/clean-temp (Depends-on): Add xlist.
6850
6851         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6852         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6853
6854         * tests/test-array_oset.c: Include gl_xlist.h.
6855         * modules/array-oset-tests (Depends-on): Add xlist.
6856
6857         Reported by José E. Marchesi <jemarch@gnu.org>.
6858
6859 2009-12-13  Bruno Haible  <bruno@clisp.org>
6860
6861         Move the malloc checking from module 'oset' to new module 'xoset'.
6862         * modules/xoset: New file.
6863         * lib/gl_xoset.h: New file.
6864         * lib/gl_xoset.c: New file.
6865         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6866         declarations.
6867         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6868         (struct gl_oset_implementation): Rename and change methods accordingly.
6869         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6870         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6871         'int'. Mark as __warn_unused_result__.
6872         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6873         gl_oset_create_empty.
6874         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6875         'int'.
6876         * lib/gl_array_oset.c: Don't include xalloc.h.
6877         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6878         malloc, not xmalloc.
6879         (grow): Change return type to 'int'. Don't call xalloc_die.
6880         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6881         to 'int'.
6882         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6883         'int'.
6884         (gl_array_oset_implementation): Update.
6885         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6886         gl_tree_create_empty.
6887         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6888         'int'.
6889         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6890         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6891         xmalloc.
6892         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6893         not xmalloc.
6894         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6895         xmalloc.
6896         (gl_avltree_oset_implementation): Update.
6897         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6898         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6899         xmalloc.
6900         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6901         not xmalloc.
6902         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6903         xmalloc.
6904         (gl_rbtree_oset_implementation): Update.
6905         * modules/array-oset (Depends-on): Remove xalloc.
6906         * modules/avltree-oset (Depends-on): Likewise.
6907         * modules/rbtree-oset (Depends-on): Likewise.
6908         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6909         * tests/test-avltree_oset.c: Likewise.
6910         * tests/test-rbtree_oset.c: Likewise.
6911         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6912         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6913         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6914         * NEWS: Mention the change.
6915
6916 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6917
6918         maint.mk: allow a project to override release-prep commands
6919         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6920         commands into a new rule.
6921         (release-prep): New rule.
6922         (release-prep-hook): New overridable variable.
6923
6924 2009-12-13  Bruno Haible  <bruno@clisp.org>
6925
6926         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6927
6928 2009-12-13  Jim Meyering  <meyering@redhat.com>
6929
6930         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6931         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6932
6933 2009-12-12  Bruno Haible  <bruno@clisp.org>
6934
6935         duplocale: Tweak.
6936         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6937
6938 2009-12-12  Karl Berry  <karl@gnu.org>
6939
6940         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6941
6942 2009-12-12  Bruno Haible  <bruno@clisp.org>
6943
6944         * m4/po.m4: Undo incorrect untabification.
6945
6946 2009-12-12  Bruno Haible  <bruno@clisp.org>
6947
6948         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6949         * modules/c-strtod (Depends-on): Add locale.
6950         * modules/c-strtold (Depends-on): Likewise.
6951
6952 2009-12-12  Bruno Haible  <bruno@clisp.org>
6953
6954         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6955
6956 2009-12-11  Eric Blake  <ebb9@byu.net>
6957
6958         setenv: relax requirement in light of POSIX ruling
6959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6960         not NULL.
6961         * tests/test-setenv.c (main): Relax test.
6962         * tests/test-unsetenv.c (main): Likewise.
6963         * doc/posix-functions/setenv.texi (setenv): Document this.
6964         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6965
6966 2009-12-11  Bruno Haible  <bruno@clisp.org>
6967
6968         New module 'fd-safer-flag'.
6969         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6970         * lib/dup-safer.c (dup_safer_flag): Remove function.
6971         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6972         * lib/fd-safer.c (fd_safer_flag): Remove function.
6973         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6974         * modules/cloexec (configure.ac): Drop indicator macro.
6975         * modules/fd-safer-flag: New file.
6976         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6977         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6978         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6979
6980 2009-12-11  Bruno Haible  <bruno@clisp.org>
6981
6982         Tests for module 'nl_langinfo'.
6983         * modules/nl_langinfo-tests: New file.
6984         * tests/test-nl_langinfo.sh: New file.
6985         * tests/test-nl_langinfo.c: New file.
6986
6987         New module 'nl_langinfo'.
6988         * lib/nl_langinfo.c: New file.
6989         * m4/nl_langinfo.m4: New file.
6990         * modules/nl_langinfo: New file.
6991         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6992
6993 2009-12-11  Bruno Haible  <bruno@clisp.org>
6994
6995         Tests for module 'langinfo'.
6996         * modules/langinfo-tests: New file.
6997         * tests/test-langinfo.c: New file.
6998
6999         New module 'langinfo'.
7000         * lib/langinfo.in.h: New file.
7001         * m4/langinfo_h.m4: New file.
7002         * modules/langinfo: New file.
7003         * doc/posix-headers/langinfo.texi: Mention the new module.
7004
7005 2009-12-11  Bruno Haible  <bruno@clisp.org>
7006
7007         * lib/config.charset: Untabify.
7008
7009 2009-12-11  Bruno Haible  <bruno@clisp.org>
7010
7011         * modules/unistd-safer (configure.ac): Drop indicator macro.
7012
7013 2009-12-11  Bruno Haible  <bruno@clisp.org>
7014
7015         Move pipe2-safer code to its own file.
7016         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7017         * lib/pipe-safer.c (pipe2_safer): Remove function.
7018         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7019         (Makefile.am): Add it to lib_SOURCES.
7020
7021 2009-12-10  Bruno Haible  <bruno@clisp.org>
7022
7023         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7024
7025 2009-12-10  Bruno Haible  <bruno@clisp.org>
7026
7027         Declare which arguments expect non-NULL values, for GCC and clang.
7028         * build-aux/arg-nonnull.h: New file.
7029         * modules/arg-nonnull: New file.
7030         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7031         (inet_ntop, inet_pton): Use it.
7032         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7033         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7034         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7035         (open, openat): Use it.
7036         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7037         (fnmatch): Use it.
7038         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7039         (getopt, getopt_long, getopt_long_only): Use it.
7040         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7041         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7042         Use it.
7043         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7044         (iconv_open): Use it.
7045         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7046         (strtoimax, strtoumax): Use it.
7047         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7048         (duplocale): Use it.
7049         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7050         (frexp, frexpl): Use it.
7051         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7052         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7053         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7054         (tsearch, tfind, tdelete, twalk): Use it.
7055         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7056         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7057         sigpending): Use it.
7058         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7059         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7060         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7061         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7062         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7063         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7064         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7065         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7066         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7067         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7068         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7069         Use it.
7070         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7071         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7072         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7073         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7074         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7075         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7076         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7077         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7078         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7079         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7080         strtoull, unsetenv): Use it.
7081         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7082         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7083         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7084         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7085         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7086         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7087         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7088         (strcasecmp, strncasecmp): Use it.
7089         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7090         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7091         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7092         rpl_setsockopt): Use it.
7093         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7094         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7095         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7096         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7097         (gettimeofday): Use it.
7098         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7099         (times): Use it.
7100         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7101         (uname): Use it.
7102         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7103         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7104         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7105         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7106         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7107         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7108         unlinkat, write): Use it.
7109         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7110         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7111         * lib/argv-iter.h: Include arg-nonnull.h.
7112         (_ATTRIBUTE_NONNULL_): Remove macro.
7113         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7114         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7115         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7116         optimization.
7117         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7118         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7119         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7120         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7121         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7122         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7123         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7124         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7125         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7126         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7127         * modules/dirent (Depends-on): Add arg-nonnull.
7128         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7129         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7130         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7131         * modules/fnmatch (Depends-on): Add arg-nonnull.
7132         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7133         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7134         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7135         * modules/glob (Depends-on): Add arg-nonnull.
7136         (Makefile.am): Insert arg-nonnull.h into glob.h.
7137         * modules/iconv_open (Depends-on): Add arg-nonnull.
7138         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7139         * modules/inttypes (Depends-on): Add arg-nonnull.
7140         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7141         * modules/locale (Depends-on): Add arg-nonnull.
7142         (Makefile.am): Insert arg-nonnull.h into locale.h.
7143         * modules/math (Depends-on): Add arg-nonnull.
7144         (Makefile.am): Insert arg-nonnull.h into math.h.
7145         * modules/netdb (Depends-on): Add arg-nonnull.
7146         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7147         * modules/search (Depends-on): Add arg-nonnull.
7148         (Makefile.am): Insert arg-nonnull.h into search.h.
7149         * modules/signal (Depends-on): Add arg-nonnull.
7150         (Makefile.am): Insert arg-nonnull.h into signal.h.
7151         * modules/spawn (Depends-on): Add arg-nonnull.
7152         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7153         * modules/stdio (Depends-on): Add arg-nonnull.
7154         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7155         * modules/stdlib (Depends-on): Add arg-nonnull.
7156         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7157         * modules/string (Depends-on): Add arg-nonnull.
7158         (Makefile.am): Insert arg-nonnull.h into string.h.
7159         * modules/strings (Depends-on): Add arg-nonnull.
7160         (Makefile.am): Insert arg-nonnull.h into strings.h.
7161         * modules/sys_socket (Depends-on): Add arg-nonnull.
7162         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7163         * modules/sys_stat (Depends-on): Add arg-nonnull.
7164         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7165         * modules/sys_time (Depends-on): Add arg-nonnull.
7166         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7167         * modules/sys_times (Depends-on): Add arg-nonnull.
7168         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7169         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7170         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7171         * modules/time (Depends-on): Add arg-nonnull.
7172         (Makefile.am): Insert arg-nonnull.h into time.h.
7173         * modules/unistd (Depends-on): Add arg-nonnull.
7174         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7175         * modules/wchar (Depends-on): Add arg-nonnull.
7176         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7177         * modules/argv-iter (Depends-on): Add arg-nonnull.
7178         * tests/test-canonicalize.c (null_ptr): New function.
7179         (main): Use it.
7180         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7181         (main): Use it.
7182         * tests/test-memmem.c (null_ptr): New function.
7183         (main): Use it.
7184         Reported by Jim Meyering.
7185
7186 2009-12-10  Bruno Haible  <bruno@clisp.org>
7187
7188         Use spaces for indentation, not tabs.
7189         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7190         * m4/*.m4: Untabify.
7191         * build-aux/*.h: Untabify.
7192         * tests/**/*.[hc]: Untabify.
7193         * README: New section "Indent with spaces, not TABs", based on
7194         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7195         * NEWS: Mention the change.
7196
7197 2009-12-10  Bruno Haible  <bruno@clisp.org>
7198
7199         pty test: Fix link error.
7200         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7201         test_pty_LDADD.
7202
7203 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7204
7205         * modules/pty: New file.
7206         * modules/pty-tests: New file.
7207         * m4/pty.m4: New file.
7208         * tests/test-pty.c: New file.
7209         * doc/glibc-headers/pty.texi: Modified.
7210         * doc/glibc-functions/forkpty.texi: Modified.
7211         * doc/glibc-functions/openpty.texi: Modified.
7212
7213 2009-12-10  Bruno Haible  <bruno@clisp.org>
7214
7215         Avoid syntax error in C++ mode.
7216         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7217
7218 2009-12-10  Bruno Haible  <bruno@clisp.org>
7219
7220         Use sed with option -e.
7221         * gnulib-tool (func_version, func_emit_copyright_notice,
7222         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7223         option -e to sed.
7224         * modules/link-warning (Makefile.am): Likewise.
7225
7226 2009-12-10  Jim Meyering  <meyering@redhat.com>
7227
7228         mgetgroups: do not write bytes beyond end of malloc'd buffer
7229         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7230         username, we call getgroups with a one-element-shorter buffer,
7231         but still told it the length was original, max_n_groups.
7232
7233 2009-12-09  Eric Blake  <ebb9@byu.net>
7234
7235         cloexec: relax license
7236         * modules/cloexec (Maintainer): Add myself.
7237         (License): Use LGPL, not GPL.
7238
7239         link-warning: optimize generation
7240         * modules/link-warning (Makefile.am): Reduce process usage.
7241
7242 2009-12-09  Bruno Haible  <bruno@clisp.org>
7243
7244         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7245         workaround was added on 2009-11-17.
7246
7247 2009-12-09  Jim Meyering  <meyering@redhat.com>
7248             Bruno Haible  <bruno@clisp.org>
7249
7250         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7251         * modules/link-warning (Makefile.am): Make the comment-removing sed
7252         command more robust in the face of bootstrap-prepended comment lines.
7253
7254 2009-12-09  Bruno Haible  <bruno@clisp.org>
7255
7256         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7257         most one group.
7258
7259 2009-12-09  Simon Josefsson <simon@josefsson.org>
7260             Bruno Haible  <bruno@clisp.org>
7261
7262         * build-aux/link-warning.h: Add copyright notice.
7263         * modules/link-warning (Makefile.am): Generate link-warning.h from
7264         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7265         * NEWS: Mention change in link-warning module.
7266         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7267         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7268         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7269         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7270         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7271         * modules/math (Makefile.am): Add dependency to math.h.
7272         * modules/search (Makefile.am): Add dependency to search.h.
7273         * modules/signal (Makefile.am): Add dependency to signal.h.
7274         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7275         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7276         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7277         * modules/string (Makefile.am): Add dependency to string.h.
7278         * modules/strings (Makefile.am): Add dependency to strings.h.
7279         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7280         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7281         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7282         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7283         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7284         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7285         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7286         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7287         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7288
7289 2009-12-09  Bruno Haible  <bruno@clisp.org>
7290
7291         fchdir: Optimize away rpl_fstat when possible.
7292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7293         REPLACE_OPEN_DIRECTORY.
7294         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7295
7296 2009-12-09  Bruno Haible  <bruno@clisp.org>
7297
7298         * lib/fchdir.c: Update comment.
7299
7300 2009-12-09  Bruno Haible  <bruno@clisp.org>
7301
7302         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7303
7304 2009-12-08  Eric Blake  <ebb9@byu.net>
7305
7306         fchdir: avoid memory leak on re-registration.
7307         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7308
7309 2009-12-08  Jim Meyering  <meyering@redhat.com>
7310
7311         init.sh: avoid Solaris 10 /bin/sh portability problem
7312         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7313         sourced script:
7314           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7315           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7316           bar
7317         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7318         and two tests used that idiom.
7319         * tests/init.sh: Update suggested usage comments.
7320         (path_prepend_): New function, to be used in place
7321         of the --src-path=DIR option.
7322         (setup_): Move PATH-prepending code into path_prepend_.
7323         * tests/test-pread.sh: Adapt to new usage.
7324         * tests/test-xalloc-die.sh: Likewise.
7325
7326 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7327
7328         * doc/gnulib.texi (Glibc pty.h): Add.
7329         * doc/glibc-functions/forkpty.texi: Add.
7330         * doc/glibc-functions/openpty.texi: Add.
7331         Suggested by Bruno Haible.
7332
7333 2009-12-08  Eric Blake  <ebb9@byu.net>
7334
7335         fchdir: fix logic bugs
7336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7337         * tests/test-fchdir.c (main): Enhance test.
7338         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7339         is in use.
7340
7341         dup2: fix logic bugs
7342         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7343         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7344         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7345         exists.
7346         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7347
7348 2009-12-07  Eric Blake  <ebb9@byu.net>
7349
7350         unlink: fix m4 detection
7351         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7352
7353         unistd-safer: add unit test
7354         * modules/unistd-safer-tests: New file.
7355         * tests/test-dup-safer.c: Likewise.
7356         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7357         * tests/test-dup2.c (setmode): Likewise.
7358         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7359
7360         cloexec: preserve text vs. binary across dup_cloexec
7361         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7362         mode.
7363         * modules/dup2-tests (Depends-on): Add binary-io.
7364         * modules/cloexec-tests (Depends-on): Likewise.
7365         * tests/test-dup2.c (setmode, is_mode): New helpers.
7366         (main): Add tests that translation mode is preserved.
7367         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7368         Reported by Bruno Haible.
7369
7370         mgetgroups: reduce duplicate listings
7371         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7372         resulting array.
7373         * tests/test-chown.h (test_chown): Simplify client.
7374         * tests/test-lchown.h (test_lchown): Likewise.
7375
7376 2009-12-06  Bruno Haible  <bruno@clisp.org>
7377
7378         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7379         value.
7380
7381 2009-12-06  Bruno Haible  <bruno@clisp.org>
7382
7383         * lib/progname.c: Include stdio.h, stdlib.h.
7384         (set_program_name): Reject a NULL argument.
7385
7386 2009-12-05  Eric Blake  <ebb9@byu.net>
7387
7388         pipe2-safer: new module
7389         * modules/pipe2-safer: New file.
7390         * lib/unistd-safer.h (pipe2_safer): New prototype.
7391         * lib/unistd--.h (pipe2): New wrapper.
7392         * lib/pipe-safer.c (pipe2_safer): New function.
7393         * modules/pipe (Depends-on): Add pipe2-safer.
7394         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7395
7396         stdlib-safer: preserve cloexec flag for mkostemp[s]
7397         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7398         fd_safer_flag.
7399
7400         unistd-safer: allow preservation of cloexec status via flag
7401         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7402         prototypes.
7403         * lib/dup-safer.c (dup_safer_flag): New function.
7404         * lib/fd-safer.c (fd_safer_flag): Likewise.
7405         * modules/cloexec (configure.ac): Set witness.
7406
7407         test-dup2: enhance test
7408         * modules/dup2-tests (Depends-on): Add cloexec.
7409         * tests/test-dup2.c (main): Enhance test.
7410
7411         cloexec: add dup_cloexec
7412         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7413         header and comments.
7414         * lib/cloexec.c (set_cloexec_flag): Add comments.
7415         (dup_cloexec): New function, with mingw implementation borrowed
7416         from...
7417         * lib/w32spawn.h (dup_noinherit): ...here.
7418         * modules/execute (Depends-on): Add cloexec.
7419         * modules/pipe (Depends-on): Likewise.
7420         * modules/cloexec (Depends-on): Add dup2.
7421         * modules/cloexec-tests (Files): New file.
7422         * tests/test-cloexec.c: Likewise.
7423
7424         test-xalloc-die: fix test for mingw
7425         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7426         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7427         directory and .exe suffix off argv[0] output.
7428
7429         test-fseeko: fix test for mingw
7430         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7431         than undefining fseek, so test will pass on mingw.
7432
7433 2009-12-05  Bruno Haible  <bruno@clisp.org>
7434
7435         * lib/progname.h (set_program_name): Clarify specification.
7436         * lib/progname.c (set_program_name): Likewise.
7437         Reported by Jim Meyering.
7438
7439 2009-12-05  Jim Meyering  <meyering@redhat.com>
7440
7441         maint.mk: backslash-escape parens in default regexp
7442         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7443         backslash-escape the literal parentheses.
7444
7445         maint.mk: news-date-check: use grep -E
7446         * top/maint.mk (today): Define a Make variable, not a...
7447         (news-date-check): ...shell variable.
7448         (news-date-regexp): Use the Make variable.
7449         Use grep's -E option.  Change the failing diagnostic to mention
7450         the variable, $(news-date-regexp).
7451
7452 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7453
7454         maintainer-makefile: allow customization of NEWS entry format
7455         * top/maint.mk (news-date-regexp): New overridable variable.
7456         (news-date-check): Use it.
7457
7458 2009-12-04  Eric Blake  <ebb9@byu.net>
7459
7460         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7461         * lib/mgetgroups.h (xgetgroups): New prototype.
7462         * lib/mgetgroups.c (xgetgroups): New wrapper.
7463         (mgetgroups): Handle ENOSYS.
7464         * modules/mgetgroups (Depends-on): Add realloc.
7465         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7466
7467         mgetgroups: avoid argument promotion issues with -1
7468         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7469         for invalid gid_t.
7470         * tests/test-chown.h (getegid, test_chown): Likewise.
7471         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7472
7473 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7474
7475         exclude: Fix header file problems.
7476         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7477
7478 2009-12-01  Jim Meyering  <meyering@redhat.com>
7479
7480         fts: fts_open: do not let an empty string cause immediate failure
7481         This is required in support of GNU rm, for which the command
7482         "rm A '' B" must process and remove both A and B, in spite of
7483         the empty string argument.
7484         * lib/fts.c (fts_open): Do not let the presence of an empty string
7485         cause fts_open to fail immediately.  Most fts-using tools must be
7486         able to process all arguments, in order, and can be expected to
7487         diagnose such arguments themselves.
7488
7489 2009-11-30  Eric Blake  <ebb9@byu.net>
7490
7491         utimens: fix compilation error
7492         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7493         Declare variable at right scope.
7494
7495 2009-11-29  Jim Meyering  <meyering@redhat.com>
7496
7497         bootstrap: handle perl-5.11's changed --version output
7498         * build-aux/bootstrap (get_version): Handle perl separately,
7499         since perl-5.11's --version output is different.
7500
7501 2009-11-28  Jim Meyering  <meyering@redhat.com>
7502
7503         userspec: depend on the inttostr module, too
7504         * modules/userspec (Depends-on): Add inttostr.
7505
7506         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7507         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7508         number of MAXUID when it evaluates to (uid_t) -1.
7509         Likewise for group ID.  Reported by Matt McCutchen in
7510         <http://savannah.gnu.org/bugs/?28113>
7511
7512         userspec: reformat to use spaces, not TABs
7513         * lib/userspec.c: Expand TABs to spaces.
7514         Add Emacs' "indent-tabs-mode: nil" hint.
7515
7516 2009-11-27  Eric Blake  <ebb9@byu.net>
7517
7518         getopt-gnu: flush out another BSD bug
7519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7520         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7521         flush out BSD bug.
7522         * tests/test-getopt.h (test_getopt): End lists with NULL.
7523         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7524         (test_getopt_long_posix): Enhance test.
7525         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7526         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7527         getopt-gnu.
7528         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7529         Likewise.
7530
7531 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7532
7533         * modules/idpriv-droptemp-tests (Notice): Fix text.
7534
7535 2009-11-27  Jim Meyering  <meyering@redhat.com>
7536
7537         test-xalloc-die: avoid spurious failure due to libtool argv difference
7538         In a libtool-enabled project, this test would fail due to a difference
7539         in the emitted program name, e.g.,
7540         -test-xalloc-die: memory exhausted
7541         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7542         Use program to avoid that.
7543         * modules/xalloc-die-tests (Depends-on): Add progname.
7544         * tests/test-xalloc-die.c: Include progname.h".
7545         (program_name): Remove decl.
7546         (main): Call set_program_name.
7547         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7548
7549 2009-11-26  Richard Jones  <rjones@redhat.com>
7550
7551         w32sock: leave win32 error in place.
7552         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7553
7554 2009-11-26  Eric Blake  <ebb9@byu.net>
7555
7556         init.sh: suggest to use skip_ and fail_ functions in comments
7557         * tests/init.sh: Add a sentence.
7558
7559 2009-11-25  Bruno Haible  <bruno@clisp.org>
7560
7561         init.sh: add documentation in comments
7562         * tests/init.sh: Add some developer and user documentation.
7563
7564 2009-11-26  Jim Meyering  <meyering@redhat.com>
7565
7566         init.sh: accommodate even those who specify bogus srcdir manually
7567         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7568         configure-time tests to be sanitized, so that there is no need to
7569         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7570         (with no double quotes) suffices.  However, since tests may be
7571         invoked manually, and since you may explicitly set srcdir to the
7572         name of a directory containing spaces, do quote its uses here.
7573         * tests/test-pread.sh: Likewise.
7574         Suggested by Bruno Haible.
7575
7576         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7577         * tests/test-pread.sh: Write no data into the pipe, because
7578         test-pread actually reads none.  This avoids a diagnostic,
7579         "bash: echo: write error: Broken pipe", that arises in the unusual
7580         event something is ignoring SIGPIPE, and might be interpreted
7581         as some sort of failure.  Reported by Bruno Haible.
7582
7583 2009-11-25  Jim Meyering  <meyering@redhat.com>
7584
7585         test-pread: cover failure with ESPIPE and EINVAL
7586         * tests/test-pread.c (main): Test for failure, too.
7587         * tests/test-pread.sh: Invoke with stdin on a pipe.
7588         Suggested by Eric Blake.
7589
7590         pread: improvement and fix
7591         * modules/pread (Depends-on): Depend on lseek, for portability to
7592         e.g., mingw.  Suggested by Eric Blake.
7593         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7594
7595         unistd.in.h: correct declaration of pread
7596         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7597         Reported by Richard W.M. Jones.
7598
7599         test-pread.sh: distribute the test script
7600         * modules/pread-tests (Files): Include test-pread.sh.
7601
7602         test-pread.sh: clean up
7603         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7604         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7605         That is unnecessary, since it's always ".".
7606         Suggestion from Eric Blake.
7607
7608         test-pread.sh: make executable
7609         * tests/test-pread.sh: Set executable bit.
7610         Reported by Eric Blake.
7611
7612         correct typo in test-pread.sh
7613         * tests/test-pread.sh: Add #! line.
7614
7615         test pread
7616         * tests/test-pread.c: New file.
7617         * tests/test-pread.sh: Likewise.
7618         * modules/pread-tests: Likewise.
7619
7620         pread: new module
7621         * modules/pread: New file.
7622         * lib/unistd.in.h (pread): Define/declare.
7623         * lib/pread.c (pread): New file.
7624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7625         * modules/unistd (Makefile.am): Substitute witnesses.
7626         * doc/posix-functions/pread.texi (pread): Update.
7627         * MODULES.html.sh: Add pread.
7628
7629 2009-11-25  Jim Meyering  <meyering@redhat.com>
7630
7631         tests/init.sh: new file to be used via most *.sh tests
7632         * tests/init.sh: New file.
7633
7634 2009-11-25  Eric Blake  <ebb9@byu.net>
7635
7636         utimens: work around older Linux failure with symlinks
7637         * lib/utimens.c (lutimensat_works_really): New variable.
7638         (fdutimens, lutimens): Use it to manage kernels that support
7639         nanosecond times on files, but not on symlinks.
7640         Reported by Ondřej Vašík.
7641
7642         utimes: fix configure grammar
7643         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7644
7645 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7646
7647         regex: Fix fastmap for multibyte character ranges.
7648         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7649         characters when a multibyte character range is included.
7650
7651 2009-11-22  Andy Wingo  <wingo@pobox.com>
7652
7653         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7654         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7655
7656 2009-11-24  Bruno Haible  <bruno@clisp.org>
7657
7658         doc: Most *_l functions exist in MacOS X 10.5.
7659         * doc/posix-functions/duplocale.texi: Update platforms list.
7660         * doc/posix-functions/freelocale.texi: Likewise.
7661         * doc/posix-functions/newlocale.texi: Likewise.
7662         * doc/posix-functions/uselocale.texi: Likewise.
7663         * doc/posix-functions/isalnum_l.texi: Likewise.
7664         * doc/posix-functions/isalpha_l.texi: Likewise.
7665         * doc/posix-functions/isblank_l.texi: Likewise.
7666         * doc/posix-functions/iscntrl_l.texi: Likewise.
7667         * doc/posix-functions/isdigit_l.texi: Likewise.
7668         * doc/posix-functions/isgraph_l.texi: Likewise.
7669         * doc/posix-functions/islower_l.texi: Likewise.
7670         * doc/posix-functions/isprint_l.texi: Likewise.
7671         * doc/posix-functions/ispunct_l.texi: Likewise.
7672         * doc/posix-functions/isspace_l.texi: Likewise.
7673         * doc/posix-functions/isupper_l.texi: Likewise.
7674         * doc/posix-functions/iswalnum_l.texi: Likewise.
7675         * doc/posix-functions/iswalpha_l.texi: Likewise.
7676         * doc/posix-functions/iswblank_l.texi: Likewise.
7677         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7678         * doc/posix-functions/iswctype_l.texi: Likewise.
7679         * doc/posix-functions/iswdigit_l.texi: Likewise.
7680         * doc/posix-functions/iswgraph_l.texi: Likewise.
7681         * doc/posix-functions/iswlower_l.texi: Likewise.
7682         * doc/posix-functions/iswprint_l.texi: Likewise.
7683         * doc/posix-functions/iswpunct_l.texi: Likewise.
7684         * doc/posix-functions/iswspace_l.texi: Likewise.
7685         * doc/posix-functions/iswupper_l.texi: Likewise.
7686         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7687         * doc/posix-functions/isxdigit_l.texi: Likewise.
7688         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7689         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7690         * doc/posix-functions/strcoll_l.texi: Likewise.
7691         * doc/posix-functions/strfmon_l.texi: Likewise.
7692         * doc/posix-functions/strftime_l.texi: Likewise.
7693         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7694         * doc/posix-functions/strxfrm_l.texi: Likewise.
7695         * doc/posix-functions/tolower_l.texi: Likewise.
7696         * doc/posix-functions/toupper_l.texi: Likewise.
7697         * doc/posix-functions/towctrans_l.texi: Likewise.
7698         * doc/posix-functions/towlower_l.texi: Likewise.
7699         * doc/posix-functions/towupper_l.texi: Likewise.
7700         * doc/posix-functions/wcscoll_l.texi: Likewise.
7701         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7702         * doc/posix-functions/wctrans_l.texi: Likewise.
7703         * doc/posix-functions/wctype_l.texi: Likewise.
7704         * doc/glibc-functions/strptime_l.texi: Likewise.
7705         * doc/glibc-functions/strtod_l.texi: Likewise.
7706         * doc/glibc-functions/strtof_l.texi: Likewise.
7707         * doc/glibc-functions/strtol_l.texi: Likewise.
7708         * doc/glibc-functions/strtold_l.texi: Likewise.
7709         * doc/glibc-functions/strtoll_l.texi: Likewise.
7710         * doc/glibc-functions/strtoul_l.texi: Likewise.
7711         * doc/glibc-functions/strtoull_l.texi: Likewise.
7712         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7713         * doc/glibc-functions/wcstod_l.texi: Likewise.
7714         * doc/glibc-functions/wcstof_l.texi: Likewise.
7715         * doc/glibc-functions/wcstol_l.texi: Likewise.
7716         * doc/glibc-functions/wcstold_l.texi: Likewise.
7717         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7718         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7719         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7720
7721 2009-11-24  Bruno Haible  <bruno@clisp.org>
7722
7723         duplocale: Fix logic bug.
7724         * lib/duplocale.c: Don't include <langinfo.h>.
7725         (_NL_LOCALE_NAME): Remove macro.
7726         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7727         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7728
7729 2009-11-23  Jim Meyering  <meyering@redhat.com>
7730
7731         test-update-copyright: don't hard-code /usr/bin/perl
7732         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7733         perl to print the current year.  Gilles Espinasse reported that
7734         the replaced use of perl was hard-coded as /usr/bin/perl.
7735
7736 2009-11-23  Bruno Haible  <bruno@clisp.org>
7737
7738         duplocale: Add support for glibc 2.3.x.
7739         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7740
7741 2009-11-22  Bruno Haible  <bruno@clisp.org>
7742
7743         vasnprintf: Tiny optimization.
7744         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7745         MacOS X.
7746
7747 2009-11-22  Bruno Haible  <bruno@clisp.org>
7748
7749         Tests for module 'duplocale'.
7750         * modules/duplocale-tests: New file.
7751         * tests/test-duplocale.c: New file.
7752
7753         New module 'duplocale'.
7754         * m4/duplocale.m4: New file.
7755         * lib/locale.in.h (duplocale): New declaration.
7756         * lib/duplocale.c: New file.
7757         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7758         gl_LOCALE_H_DEFAULTS): New macros.
7759         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7760         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7761         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7762         REPLACE_DUPLOCALE.
7763         * modules/duplocale: New file.
7764         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7765
7766 2009-11-22  Bruno Haible  <bruno@clisp.org>
7767
7768         * modules/locale-tests (configure.ac): Test for newlocale function.
7769         * tests/test-locale.c: When the system has extended locale functions,
7770         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7771
7772         locale: Make locale_t available when possible.
7773         * lib/locale.in.h: Include <xlocale.h> when it exists.
7774         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7775         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7776         * modules/locale (Depends-on): Add extensions.
7777         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7778         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7779
7780 2009-11-22  Bruno Haible  <bruno@clisp.org>
7781
7782         Add comments.
7783         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7784         invocation.
7785         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7786         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7787         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7788
7789 2009-11-22  Bruno Haible  <bruno@clisp.org>
7790
7791         error: account for the possibility of freopen (stdout).
7792         * lib/error.c: Include <unistd.h>.
7793         (flush_stdout): New function, extracted from error and error_at_line.
7794         Determine stdout's fd dynamically.
7795         (error, error_at_line): Invoke flush_stdout.
7796         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7797         * modules/error (Depends-on): Add unistd.
7798
7799 2009-11-22  Bruno Haible  <bruno@clisp.org>
7800
7801         diffseq: Add comment.
7802         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7803
7804 2009-11-22  Jim Meyering  <meyering@redhat.com>
7805
7806         c-stack: avoid defining an unused static function
7807         * lib/c-stack.c (find_stack_direction): Do not define this function
7808         when it will not be used.
7809
7810         diffseq: avoid spurious gcc warnings
7811         * lib/diffseq.h (IF_LINT2): Define.
7812         (compareseq): Use it to initialize two members of "part".
7813         This avoids two used-uninitialized warnings.
7814
7815 2009-11-21  Jim Meyering  <meyering@redhat.com>
7816
7817         c-stack: avoid "ignoring return value of `write'" warning
7818         * lib/c-stack.c: Include "ignore-value.h".
7819         (die): Explicitly ignore each write return value.
7820         * modules/c-stack (Depends-on): Add ignore-value.
7821
7822 2009-11-21  Bruno Haible  <bruno@clisp.org>
7823
7824         diffseq: reduce scope of variable 'best'.
7825         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7826         variable, earlier used for two different purposes.
7827
7828 2009-11-21  Jim Meyering  <meyering@redhat.com>
7829
7830         diffseq: remove useless assignment to "best"
7831         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7832         assignment.  At that point "best" is already guaranteed to be zero.
7833
7834 2009-11-20  Eric Blake  <ebb9@byu.net>
7835
7836         build: mention ftp redirector in release announcements
7837         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7838         values that used to come from cfg.mk; mention FTP redirect URL.
7839         * build-aux/announce-gen: Mention the mirror list.
7840         Suggested by Karl Berry.
7841
7842         nanosleep: improve port to mingw
7843         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7845         LIB_NANOSLEEP, but only when needed.
7846         * modules/select (Link): Document LIBSOCKET.
7847         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7848         enough.
7849
7850         nanosleep: work around cygwin bug
7851         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7852         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7853         bug.
7854         (getnow): Delete, not needed.
7855         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7856         LIB_CLOCK_GETTIME.
7857         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7858         clock-time, gettime.
7859         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7860         bug.
7861         * modules/nanosleep-tests: New test.
7862         * tests/test-nanosleep.c: New file.
7863
7864         sleep: work around cygwin bug
7865         * lib/sleep.c (rpl_sleep): Work around the bug.
7866         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7867         (gl_PREREQ_SLEEP): Delete unused macro.
7868         * modules/sleep (Depends-on): Add verify.
7869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7870         * modules/unistd (Makefile.am): Substitute witness.
7871         * lib/unistd.in.h (sleep): Update prototype.
7872         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7873         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7874         * modules/sleep-tests (Depends-on): Check for alarm.
7875
7876 2009-11-20  Jim Meyering  <meyering@redhat.com>
7877
7878         maint.mk: improve sc_prohibit_magic_number_exit
7879         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7880         so it does not match uses like System.exit(1).
7881         Add comments showing how to correct all offenders.
7882
7883 2009-11-19  Eric Blake  <ebb9@byu.net>
7884
7885         xalloc-die-tests: add missing library
7886         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7887
7888         test-xvasprintf: silence compiler warnings
7889         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7890         empty string from gcc.
7891
7892 2009-11-19  Jim Meyering  <meyering@redhat.com>
7893
7894         xfreopen: new module, from coreutils
7895         * modules/xfreopen: New module.
7896         * lib/xfreopen.c: New file.
7897         * lib/xfreopen.h: New file.
7898         * MODULES.html.sh (File stream based Input/Output"): Add it.
7899
7900 2009-11-19  Eric Blake  <ebb9@byu.net>
7901
7902         manywarnings: depend on warnings
7903         * modules/manywarnings (Depends-on): Add warnings.
7904
7905         build: avoid compiler warnings
7906         * lib/select.c (rpl_select): Delete unused variable.
7907         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7908
7909 2009-11-18  Eric Blake  <ebb9@byu.net>
7910
7911         tests: avoid false negative with --with-packager
7912         * tests/test-version-etc.sh: Discard packager information.
7913         * tests/test-argp-version-etc-1.sh: Likewise.
7914         Reported by Mike Frysinger.
7915
7916         utimens: fix regression on Solaris
7917         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7918         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7919         can only change fd timestamps via futimesat.  Instead, use an
7920         additional witness macro to avoid BSD bug.
7921         Reported by Jim Meyering.
7922
7923 2009-11-17  Eric Blake  <ebb9@byu.net>
7924
7925         usleep: use it to simplify tests
7926         * modules/stat-time-tests (Depends-on): Add usleep.
7927         (configure.ac): Drop usleep check.
7928         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7929         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7930         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7931         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7932         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7933         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7934         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7935         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7936         Likewise.
7937         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7938         * tests/test-lchown.h (nap): Likewise.
7939         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7940         * tests/test-stat-time.c (nap): Likewise.
7941         * tests/test-utimens-common.h (nap): Update comments.
7942
7943         usleep: new module
7944         * modules/usleep: New file.
7945         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7946         * lib/usleep.c (usleep): Likewise.
7947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7948         * modules/unistd (Makefile.am): Substitute witnesses.
7949         * lib/unistd.in.h (usleep): Add declaration.
7950         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7951         * MODULES.html.sh (Date and time): Likewise.
7952         * modules/usleep-tests (Depends-on): New test.
7953         * tests/test-usleep.c: New file.
7954
7955         chown: work around OpenBSD bug
7956         * lib/chown.c (rpl_chown): Work around the bug.
7957         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7958         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7959         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7960         * modules/chown (Depends-on): Add stdbool.
7961         * modules/lchown (Depends-on): Likewise.
7962         * doc/posix-functions/chown.texi (chown): Document the bug.
7963         * doc/posix-functions/lchown.texi (lchown): Likewise.
7964         * tests/test-lchown.h (test_chown): Relax test.
7965
7966         mkstemp: avoid conflict with C++ keyword template
7967         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7968         * lib/mkostemp.c (mkostemp): Likewise.
7969         * lib/mkostemps.c (mkostemps): Likewise.
7970         * lib/mkstemp.c (mkstemp): Likewise.
7971         * lib/mkstemps.c (mkstemps): Likewise.
7972
7973         xalloc-die-tests: optimize
7974         * tests/test-xalloc-die.sh: Reduce number of processes.
7975
7976 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7977
7978         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7979         patch from ludo@gnu.org (Ludovic Courtès).
7980
7981 2009-11-17  Jim Meyering  <meyering@redhat.com>
7982
7983         version-etc: use proper license string
7984         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7985         * modules/version-etc-fsf: Likewise.
7986
7987 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7988
7989         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7990         printed to stdout.  Deal with EOL differences.
7991
7992 2009-11-17  Eric Blake  <ebb9@byu.net>
7993
7994         unsetenv: work around Solaris bug
7995         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7996         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7997         Reported by Jim Meyering.
7998
7999         vasnprintf: avoid compiler warnings
8000         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8001         variables.
8002         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8003
8004 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8005
8006         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8007         settings since xalloc-die is no longer the self test,
8008         xalloc-die.sh is.
8009
8010 2009-11-17  Jim Meyering  <meyering@redhat.com>
8011
8012         test-xalloc-die.sh: make the code agree with the commit log
8013         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8014         at the end, just in case you happen to have a test-xalloc-die
8015         program in some other PATH directory.
8016
8017         test-xalloc-die.sh: fix a portability bug
8018         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8019         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8020         Otherwise, argv[0] (as often seen in diagnostics) would be too
8021         system-dependent, sometimes with, and sometimes without the leading "./".
8022
8023         version-etc-fsf: relax license to LGPLv3+
8024         * modules/version-etc-fsf (License): Relax license.
8025
8026 2009-11-16  Eric Blake  <ebb9@byu.net>
8027
8028         xalloc-die-tests: avoid printing null pointer
8029         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8030         shell script.
8031         * tests/test-xalloc-die.c (program_name): Declare.
8032         * tests/test-xalloc-die.sh (tmpfiles): New file.
8033
8034         setenv, unsetenv: work around various bugs
8035         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8036         (setenv) [HAVE_SETENV]: Work around bugs.
8037         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8038         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8039         for bugs.
8040         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8041         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8043         * modules/stdlib (Makefile.am): Update substitutions.
8044         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8045         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8046         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8047         * modules/setenv-tests: New test.
8048         * modules/unsetenv-tests: Likewise.
8049         * tests/test-setenv.c: New file.
8050         * tests/test-unsetenv.c: Likewise.
8051
8052 2009-11-16  Jim Meyering  <meyering@redhat.com>
8053
8054         version-etc: relax license to LGPLv3+
8055         * modules/version-etc (License): Relax license.
8056
8057         better AC_REQUIRE expanded-before-required-warning avoidance
8058         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8059         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8060         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8061         which is no longer needed.
8062
8063 2009-11-16  Eric Blake  <ebb9@byu.net>
8064
8065         test-freading: clean up temporary file
8066         * tests/test-freading.c (main): Remove file on success, and use
8067         ASSERT more liberally.
8068         Reported by Jim Meyering.
8069
8070 2009-11-16  Jim Meyering  <meyering@redhat.com>
8071
8072         avoid new AC_REQUIRE expanded-before-required warnings
8073         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8074         merely using it.
8075         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8076         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8077
8078 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8079
8080         * tests/test-xalloc-die.c: New file.
8081         * modules/xalloc-die-tests: New file.
8082         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8083         XFAIL_TESTS so it can be appended by modules.
8084
8085 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8086
8087         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8088         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8089
8090 2009-11-14  Eric Blake  <ebb9@byu.net>
8091
8092         fnmatch: avoid compiler warning
8093         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8094         to silence compiler warning about mismatch signedness in ?:.
8095         Reported by Robert Millan.
8096
8097         intprops: add double-inclusion guard
8098         * lib/intprops.h: Allow idempotent includes.
8099         Suggested by Bruce Korb.
8100
8101         openat: detect Solaris fchownat bug
8102         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8103         penalizing glibc chownat when only lchownat is broken.
8104         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8105         trailing slash bugs.
8106         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8107         * modules/openat-tests (Files): Include more files.
8108         (Depends-on): Add mgetgroups, sleep, stat-time.
8109         (configure.ac): Add additional checks.
8110         (Makefile.am): Build new test.
8111         * tests/test-fchownat.c: New file.
8112
8113         lchown: detect Solaris and FreeBSD bug
8114         * lib/lchown.c (rpl_lchown): Work around bug.
8115         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8117         * modules/unistd (Makefile.am): Populate it.
8118         * lib/unistd.in.h (lchown): Update declaration.
8119         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8120         * modules/lchown-tests: New file.
8121         * tests/test-lchown.h (test_lchown): Likewise.
8122         * tests/test-lchown.c (main): Likewise.
8123
8124         chown: detect Solaris and FreeBSD bug
8125         * lib/chown.c (rpl_chown): Work around bug.
8126         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8127         (gl_PREREQ_CHOWN): Delete.
8128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8129         * modules/unistd (Makefile.am): Populate it.
8130         * lib/unistd.in.h (chown): Update declaration.
8131         * lib/lchown.c (chown): Update client.
8132         * modules/lchown (Depends-on): Add lstat.
8133         * doc/posix-functions/chown.texi (chown): Document the bug.
8134         * doc/posix-functions/getgroups.texi (getgroups): Document
8135         getgroups pitfall.
8136         * modules/chown-tests: New file.
8137         * tests/test-chown.h (test_chown): Likewise.
8138         * tests/test-chown.c (main): Likewise.
8139
8140 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8141
8142         gnulib-tool: correctly detect absence of m4 directories
8143         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8144
8145 2009-11-14  Jim Meyering  <meyering@redhat.com>
8146
8147         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8148         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8149
8150 2009-11-14  John W. Eaton  <jwe@gnu.org>
8151
8152         strftime.h: wrap funtion declaration in extern "C" block
8153         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8154
8155 2009-11-13  Eric Blake  <ebb9@byu.net>
8156
8157         getgroups: avoid compiler warning
8158         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8159
8160         getgroups: work around FreeBSD bug
8161         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8162         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8163         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8164         * tests/test-getgroups.c (main): Fix buffer overrun.
8165
8166         getgroups: avoid compilation failure
8167         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8168         * modules/getgroups (Depends-on): Add stdint.
8169
8170 2009-11-13  Jim Meyering  <meyering@redhat.com>
8171
8172         test-getgroups: avoid compilation failure
8173         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8174
8175 2009-11-13  Eric Blake  <ebb9@byu.net>
8176
8177         mgetgroups: new module, taken from coreutils
8178         * modules/mgetgroups: New file.
8179         * lib/mgetgroups.h: Likewise.
8180         * lib/mgetgroups.c (mgetgroups): Likewise.
8181         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8182         * MODULES.html.sh (Users and groups): Mention it.
8183
8184         getgroups: don't expose GETGROUPS_T to user
8185         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8186         an element at a time if GETGROUPS_T is wrong size.
8187         * lib/getugroups.h (getugroups): Change signature.
8188         * lib/unistd.in.h (getgroups): Likewise.
8189         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8190         signature needs fixing.
8191         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8192         AC_TYPE_GETGROUPS.
8193         * modules/group-member (Depends-on): Add getgroups.
8194         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8195         (group_member): Rely on getgroups replacement.
8196         * lib/getugroups.c (getugroups): Use gid_t.
8197         * tests/test-getgroups.c (main): Likewise.
8198         * NEWS: Mention the signature change.
8199         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8200         problem with signature.
8201         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8202         GETGROUPS_T is still useful for setgroups.
8203
8204         getgroups, getugroups: provide stubs for mingw
8205         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8206         * lib/getugroups.c (getugroups): Likewise.
8207         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8208         function.  Modernize replacement scheme.
8209         (gl_PREREQ_GETGROUPS): Delete.
8210         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8211         * modules/getgroups (configure.ac): Declare witness.
8212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8213         * modules/unistd (Depends-on): Substitute witness.
8214         * lib/unistd.in.h (getgroups): Declare replacement.
8215
8216         getgroups: avoid calling exit
8217         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8218         drop xalloc.
8219         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8220         dependencies.
8221         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8222         exiting, in the rare case of malloc failure.
8223
8224         getgroups: fix logic error
8225         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8226         has more than 20 groups.
8227         * modules/getgroups-tests: New test.
8228         * tests/test-getgroups.c: New file.
8229
8230 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8231
8232         * tests/test-base64.c: Improve.
8233
8234 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8235
8236         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8237         Blake <ebb9@byu.net>.
8238
8239 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8240
8241         * tests/test-xvasprintf.c: Add %s%s related checks.
8242
8243 2009-11-12  Eric Blake  <ebb9@byu.net>
8244
8245         version-etc: match standards.texi style
8246         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8247         and use <> only for URLs.
8248
8249 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8250
8251         fts: do not fail on a submount during traversal
8252         * lib/fts.c (fts_build): Read the stat info again after opening
8253         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8254         Original report at http://bugzilla.redhat.com/501848.
8255
8256 2009-11-12  Jim Meyering  <meyering@redhat.com>
8257
8258         bootstrap: sync from coreutils
8259         * build-aux/bootstrap (bootstrap_epilogue): New function.
8260         Use git_modules_config in one more place.  This make bootstrap's
8261         --gnulib-srcdir option more useful for testing.
8262
8263         bootstrap: generalize autoheader check
8264         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8265         AC_CONFIG_HEADERS.
8266
8267 2009-11-11  Eric Blake  <ebb9@byu.net>
8268
8269         mkfifoat: use new modules for Solaris and BSD bugs
8270         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8271         * lib/mkfifoat.c (mknodat): Split...
8272         * lib/mknodat.c (mknodat): ...into new file.
8273         * modules/mkfifoat (Files): Ship new file.
8274         (Depends-on): Add mkfifo, mknod.
8275         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8276         (Depends-on): Add symlink.
8277         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8278         redundant with test_mkfifo.h.
8279         (do_mkfifoat, do_mknodat): New helpers.
8280
8281         mknod: new module
8282         * modules/mknod: New file.
8283         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8284         * lib/mknod.c (mknod): Likewise.
8285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8286         defaults.
8287         * modules/sys_stat (Makefile.am): Substitute them.
8288         * lib/sys_stat.in.h (mknod): Declare replacement.
8289         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8290         Document it.
8291         * doc/posix-functions/mknod.texi (mknod): Likewise.
8292         * modules/mknod-tests: New test.
8293         * tests/test-mknod.c: Likewise.
8294
8295         mkfifo: new module
8296         * modules/mkfifo: New file.
8297         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8298         * lib/mkfifo.c (mkfifo): Likewise.
8299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8300         defaults.
8301         * modules/sys_stat (Makefile.am): Substitute them.
8302         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8303         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8304         Document it.
8305         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8306         * modules/mkfifo-tests: New test.
8307         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8308         from test-mkfifoat.c.
8309         * tests/test-mkfifo.c: New file.
8310
8311         readlink: detect FreeBSD bug
8312         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8313         slash on symlink.
8314         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8315         * tests/test-readlink.h (test_readlink): Enhance test.
8316
8317         symlink: detect FreeBSD bug
8318         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8319         slash on symlink.
8320         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8321         * tests/test-symlink.h (test_symlink): Enhance test.
8322
8323 2009-11-10  Eric Blake  <ebb9@byu.net>
8324
8325         link: detect FreeBSD bug
8326         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8327         symlink.
8328         * doc/posix-functions/link.texi (link): Document the bug.
8329         * tests/test-link.h (test_link): Enhance test.
8330         * tests/test-linkat.c (main): Update caller.
8331
8332         unlink, remove: detect FreeBSD bug
8333         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8334         slash on symlink.
8335         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8336         * doc/posix-functions/remove.texi (remove): Likewise.
8337         * tests/test-unlink.h (test_unlink): Enhance test.
8338         * tests/test-remove.c (main): Likewise.
8339
8340 2009-11-09  Eric Blake  <ebb9@byu.net>
8341
8342         rename: detect FreeBSD bug
8343         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8344         slash on symlink.
8345         * modules/renameat-tests (Depends-on): Add filenamecat.
8346         * tests/test-rename.h (test_rename): Allow one more errno.
8347         * tests/test-renameat.c (main): Likewise.
8348         * doc/posix-functions/rename.texi (rename): Document the bug.
8349
8350         open: detect FreeBSD bug
8351         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8352         symlink.
8353         * doc/posix-functions/open.texi (open): Document the bug.
8354         * doc/posix-functions/utimes.texi (utimes): Likewise.
8355         * tests/test-open.h (test_open): Add parameters, and test symlink
8356         handling.
8357         * tests/test-open.c (main): Adjust caller.
8358         * tests/test-fcntl-safer.c (main): Likewise.
8359         * modules/open-tests (Depends-on): Add stdbool, symlink.
8360         * modules/fcntl-safer-tests (Depends-on): Likewise.
8361         * tests/test-openat.c (main): Add test-open tests.
8362
8363         stat: detect FreeBSD bug
8364         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8365         symlink.
8366         * doc/posix-functions/stat.texi (stat): Document the bug.
8367         * tests/test-stat.h (test_stat_func): Add argument.
8368         * tests/test-stat.c (main): Adjust caller.
8369         * tests/test-fstatat.c (main): Likewise.
8370         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8371         Reported by Jim Meyering.
8372
8373 2009-11-09  James Youngman  <jay@gnu.org>
8374
8375         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8376         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8377
8378 2009-11-08  Jim Meyering  <meyering@redhat.com>
8379
8380         utimens: remove invalid futimesat call
8381         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8382         It used the file descriptor of the target file as the DIR_FD
8383         parameter and NULL as the file name.  That caused failure with
8384         errno == EFAULT on FreeBSD-8.0-rc2
8385
8386 2009-11-07  Eric Blake  <ebb9@byu.net>
8387
8388         fflush, freadseek: use fseeko, not fseek
8389         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8390         (clear_ungetc_buffer): Avoid potential problems on large files.
8391         * lib/freadseek.c (freadseek): Likewise.
8392         * modules/freadseek (Depends-on): Add fseeko.
8393         * modules/fseek (configure.ac): Set a witness.
8394         * tests/test-fflush.c (main): Use fseeko.
8395         * tests/test-fpurge.c (fseek): Disable link warning.
8396         * tests/test-freadable.c (fseek): Likewise.
8397         * tests/test-freading.c (fseek): Likewise.
8398         * tests/test-fseeko.c (fseek): Likewise.
8399         * tests/test-ftell.c (fseek): Likewise.
8400         * tests/test-ftello.c (fseek): Likewise.
8401         * tests/test-fwritable.c (fseek): Likewise.
8402         * tests/test-fwriting.c (fseek): Likewise.
8403
8404 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8405
8406         * modules/memchr (Depends-on): Drop getpagesize dependency.
8407
8408 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8409
8410         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8411         Reported by Ludovic Courtès.
8412         * build-aux/pmccabe2html: Improve example usage.
8413         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8414
8415 2009-11-06  Jim Meyering  <meyering@redhat.com>
8416
8417         do-release-commit-and-tag: New module.
8418         Automate the release-commit and tag process.
8419         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8420         * modules/do-release-commit-and-tag: New file.
8421         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8422
8423 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8424
8425         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8426         because test-select.c uses inet_pton.
8427
8428 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8429
8430         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8431         GETADDRINFO_LIB.  Bump serial number.
8432         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8433         Suggested by Eric Blake <ebb9@byu.net>.
8434
8435 2009-11-05  Eric Blake  <ebb9@byu.net>
8436
8437         strtod: detect darwin bug
8438         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8439         Reported by Leo Davis.
8440
8441         freopen-safer: new module
8442         * modules/freopen-safer: New module.
8443         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8444         * lib/freopen-safer.c (freopen_safer): New file.
8445         * lib/stdio-safer.h (freopen_safer): New declaration.
8446         * lib/stdio--.h (freopen): New override.
8447         * MODULES.html.sh (File stream based Input/Output): Mention it.
8448         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8449         freopen-safer module.
8450         * doc/posix-functions/stderr.texi (stderr): Likewise.
8451         * doc/posix-functions/stdin.texi (stdin): Likewise.
8452         * doc/posix-functions/stdout.texi (stdout): Likewise.
8453         * modules/freopen-safer-tests: New test.
8454         * tests/test-reopen-safer.c: New file.
8455
8456 2009-11-05  Jim Meyering  <meyering@redhat.com>
8457
8458         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8459         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8460
8461 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8462
8463         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8464
8465 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8466
8467         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8468
8469 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8470
8471         Fix link error.
8472         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8473         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8474
8475 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8476
8477         * tests/test-func.c: Also test value of __func__.
8478
8479 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8480
8481         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8482         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8483
8484 2009-11-05  Bruno Haible  <bruno@clisp.org>
8485
8486         Fix link error.
8487         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8488         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8489         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8490
8491 2009-11-05  Bruno Haible  <bruno@clisp.org>
8492
8493         Tests for module 'inet_pton'.
8494         * modules/inet_pton-tests: New file.
8495         * tests/test-inet_pton.c: New file.
8496
8497 2009-11-05  Bruno Haible  <bruno@clisp.org>
8498
8499         Tests for module 'inet_ntop'.
8500         * modules/inet_ntop-tests: New file.
8501         * tests/test-inet_ntop.c: New file.
8502
8503 2009-11-04  Eric Blake  <ebb9@byu.net>
8504
8505         stdlib-safer: wrap all mkstemp variants
8506         * modules/mkostemp (configure.ac): Set witness.
8507         * modules/mkostemps (configure.ac): Likewise.
8508         * modules/mkstemps (configure.ac): Likewise.
8509         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8510         (mkstemps_safer): Wrap more functions.
8511         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8512         wrapping.
8513         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8514         (mkstemps_safer): Implement the wrappers.
8515
8516         mkstemps, mkostemps: new modules
8517         * modules/mkostemps: New module.
8518         * modules/mkstemps: Likewise.
8519         * lib/mkostemps.c (mkostemps): New file.
8520         * lib/mkstemps.c (mkstemps): Likewise.
8521         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8522         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8524         * modules/stdlib (Makefile.am): Substitute them.
8525         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8526         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8527         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8528         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8529         * MODULES.html.sh (File system functions): Mention them.
8530
8531         tempname: resync from glibc
8532         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8533         same values for __GT_FILE as glibc.  Abort even when assertions
8534         are disabled.
8535         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8536         match its value otherwise.  Allow idempotent inclusion.
8537         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8538         * lib/mkostemp.c (mkostemp): Likewise.
8539         * lib/mkstemp.c (mkstemp): Likewise.
8540         * lib/tmpfile.c (tmpfile): Likewise.
8541         * NEWS: Document this.
8542
8543         utimens: fix use of futimens on older Linux
8544         * lib/utimens.c (fdutimens): Use updated, rather than original,
8545         timespec to avoid bug in older Linux kernel.
8546         Reported by Simon Josefsson.
8547
8548 2009-11-04  Bruno Haible  <bruno@clisp.org>
8549
8550         Make num_processors more flexible and consistent.
8551         * lib/nproc.h (enum nproc_query): New type.
8552         (num_processors): Add a 'query' argument.
8553         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8554         (num_processors): Add a 'query' argument. Test the value of the
8555         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8556         mingw, count the number of CPUs available for the current process.
8557         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8558         Check for sched_getaffinity and sched_getaffinity_np.
8559         * modules/nproc (Depends-on): Add c-ctype, extensions.
8560         * NEWS: Mention the change.
8561
8562 2009-11-03  Bruno Haible  <bruno@clisp.org>
8563
8564         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8565
8566 2009-11-03  Jim Meyering  <meyering@redhat.com>
8567
8568         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8569         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8570         if it is defined.
8571
8572 2009-11-02  Eric Blake  <ebb9@byu.net>
8573
8574         mktime, timegm: share common declaration
8575         * lib/mktime-internal.h: New file.
8576         * lib/mktime.c: Use it rather than open-coding a declaration.
8577         * lib/timegm.c: Likewise.
8578         * modules/mktime (Files): Ship it.
8579         * modules/timegm (Files): Likewise.
8580         Suggested by Bruno Haible.
8581
8582         test-update-copyright: update test to match script changes
8583         * tests/test-update-copyright.sh: Avoid hard-coding perl
8584         location.  Don't update *.bak created by earlier runs.
8585
8586 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8587             Simon Josefsson  <simon@josefsson.org>
8588             Bruno Haible  <bruno@clisp.org>
8589
8590         Fix link error on Solaris 8.
8591         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8592         also in libnsl. Define also INET_PTON_LIB.
8593         * modules/inet_pton (Link): New section.
8594
8595 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8596             Bruno Haible  <bruno@clisp.org>
8597
8598         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8599         * modules/inet_ntop (Link): New section.
8600         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8601
8602 2009-11-02  Eric Blake  <ebb9@byu.net>
8603
8604         maint: avoid compiler warnings in m4 macros
8605         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8606         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8607
8608 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8609
8610         * m4/pmccabe2html.m4: Remove file.
8611         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8612         function.  Change maintainer.
8613         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8614         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8615         Courtès).
8616
8617 2009-10-31  Eric Blake  <ebb9@byu.net>
8618
8619         fseeko: fix m4 regression
8620         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8621         regression from 2009-10-27.
8622         Reported by Ralf Wildenhues.
8623
8624 2009-10-31  Jim Meyering  <meyering@redhat.com>
8625
8626         inttostr: aesthetics and improved (compile-time) safety
8627         Define inttype_is_signed rather than inttype_is_unsigned,
8628         since the sole use is via "#if inttype_is_signed".
8629         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8630         inttype_is_unsigned.
8631         * lib/offtostr.c (inttype_is_signed): Likewise.
8632         * lib/uinttostr.c (inttype_is_signed): Likewise.
8633         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8634         * lib/inttostr.c (inttostr): Use verify to cross-check the
8635         inttype_is_signed value and the signedness of the actual type.
8636         * modules/inttostr (Depends-on): Add verify.
8637
8638 2009-10-30  Eric Blake  <ebb9@byu.net>
8639
8640         build: avoid compiler warnings
8641         * lib/fchmodat.c (lchmod): Mark unused variables.
8642         * lib/getopt.c (_getopt_initialize): Likewise.
8643         * lib/mktime.c (__mktime_internal): Provide prototype.
8644         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8645         older gcc that do not understand #pragma GCC diagnostic.
8646         * lib/uinttostr.c (inttype_is_unsigned): Define.
8647         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8648
8649 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8650
8651         stat: fix compilation on AIX
8652         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8653         only see struct stat64.
8654
8655 2009-10-30  Eric Blake  <ebb9@byu.net>
8656
8657         exclude: make more robust
8658         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8659         rather than masking a coding bug.
8660         Suggested by Bruno Haible.
8661
8662 2009-10-30  Jim Meyering  <meyering@redhat.com>
8663
8664         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8665         Rather than putting #!/usr/bin/perl on the first line,
8666         start with a variant of what's recommended by "man perlrun" that
8667         invokes the first "perl" program from your shell's search path.
8668         * build-aux/gitlog-to-changelog: Replace #!... as above.
8669         Add a "Local Variables" perl mode setting.
8670         Prompted by a patch from Ludovic Courtès.
8671         Improved by Eric Blake.
8672         * build-aux/useless-if-before-free: Likewise.
8673         * build-aux/announce-gen: Likewise.
8674         * build-aux/update-copyright: Likewise.
8675
8676 2009-10-29  Eric Blake  <ebb9@byu.net>
8677
8678         filenamecat-lgpl: adjust clients
8679         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8680         filenamecat.
8681         * modules/renameat (Depends-on): Likewise.
8682
8683         filenamecat: split into filenamecat-lgpl
8684         * modules/filenamecat-lgpl: New module.
8685         * modules/filenamecat (Files): Move library-safe files into
8686         filenamecat-lgpl.
8687         (Depends-on): Add filenamecat-lgpl.
8688         (configure.ac): Declare witness.
8689         * lib/filenamecat.h (file_name_concat): Only declare when using
8690         GPL module.
8691         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8692         Move...
8693         * lib/filenamecat-lgpl.c: ...into new file.
8694         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8695         (gl_FILE_NAME_CONCAT): Use it.
8696         * MODULES.html.sh (File system functions): Mention new module.
8697
8698         argp: avoid memory leak
8699         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8700         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8701         base_name, since the latter malloc()s and can call exit().
8702         Leak introduced 2006-07-03.
8703
8704         dirname-lgpl: adjust clients that don't need full dirname
8705         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8706         * modules/filenamecat (Depends-on): Likewise.
8707         * modules/linkat (Depends-on): Likewise.
8708         * modules/mkancesdirs (Depends-on): Likewise.
8709         * modules/mkdir (Depends-on): Likewise.
8710         * modules/openat (Depends-on): Likewise.
8711         * modules/savewd (Depends-on): Likewise.
8712         * modules/rename (Depends-on): Likewise.
8713         (License): Relax license.
8714         * modules/mkdir-tests (Depends-on): Drop progname.
8715         (Makefile.am): Delete unneeded LDADD.
8716         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8717
8718         dirname: split into dirname-lgpl
8719         * modules/dirname-lgpl: New module.
8720         * modules/dirname (Files): Move library-safe files into
8721         dirname-lgpl.
8722         (Depends-on): Add dirname-lgpl.
8723         (configure.ac): Declare witness.
8724         * modules/double-slash-root (License): Relax license.
8725         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8726         module.
8727         * lib/dirname.c (dir_len, mdir_name): Move...
8728         * lib/dirname-lgpl.c: ...into new file.
8729         * lib/basename.c (last_component, base_len): Move...
8730         * lib/basename-lgpl.c: ...into new file.
8731         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8732         (gl_DIRNAME): Use it.
8733         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8734         Mention new module.
8735         * modules/dirname-tests (Depends-on): Add progname.
8736         * tests/test-dirname.c (program_name): Delete.
8737
8738         mkdir: make safe for libraries
8739         * modules/mkdir (Depends-on): Drop xalloc.
8740         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8741         exit.
8742
8743         tests: avoid some compiler warnings
8744         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8745         literals.
8746         * tests/test-memchr.c (main): Avoid type mismatch.
8747         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8748         * tests/test-base64.c (main): Likewise.
8749         * tests/test-getdelim.c (main): Likewise.
8750         * tests/test-gethostname.c (main): Likewise.
8751         * tests/test-getline.c (main): Likewise.
8752         * tests/test-netinet_in.c (main): Likewise.
8753         * tests/test-select.c (open_server_socket, main): Likewise.
8754         * tests/test-select-stdin.c (main): Likewise.
8755         * tests/test-sockets.c (main): Likewise.
8756         * tests/test-strsignal.c (main): Likewise.
8757         * tests/test-sys_select.c (main): Likewise.
8758         * tests/test-sys_socket.c (main): Likewise.
8759         * tests/test-u64.c (main): Likewise.
8760         * tests/test-xfprintf-posix.c (main): Likewise.
8761         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8762
8763         sockets: avoid compiler warning
8764         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8765
8766         maint: detect usage(1) and other suspicious exits
8767         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8768
8769 2009-10-29  Jim Meyering  <meyering@redhat.com>
8770
8771         timespec: long-to-int truncation could make timespec_cmp malfunction
8772         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8773         a multiple of 2^32 nanoseconds as no difference.
8774
8775 2009-10-28  Jim Meyering  <meyering@redhat.com>
8776
8777         fprintftime: wrap macro code argument in "do {...} while(0)"
8778         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8779         cpy macro must be a statement that can be followed by a semicolon.
8780         Now that the else clause contains a comment and is hence longer
8781         than one line, I require curly braces.  That in turn requires
8782         that we wrap this code block in the standard do...while(0).
8783
8784         fprintftime: remove stray semicolon from previous change
8785         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8786
8787         fprintftime: avoid a warning about ignored fwrite return value
8788         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8789         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8790         that is unsafe.
8791         * modules/fprintftime (Depends-on): Add ignore-value.
8792
8793         exclude: avoid an unwarranted warning
8794         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8795
8796 2009-10-27  Eric Blake  <ebb9@byu.net>
8797
8798         fseek: avoid compilation failure when fflush is replaced
8799         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8800         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8801         module is in use.
8802         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8803         module is not in use; since REPLACE_FSEEK worked otherwise.
8804         (GNULIB_FTELLO): Likewise for ftell.
8805         Reported by Ian Beckwith and others.
8806
8807 2009-10-27  Bruno Haible  <bruno@clisp.org>
8808
8809         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8810         Reported by Jim Meyering.
8811
8812 2009-10-27  Jim Meyering  <jim@meyering.net>
8813             Bruno Haible  <bruno@clisp.org>
8814
8815         Avoid warning despite dropping the return value of fwrite.
8816         * lib/unicodeio.c: Include ignore-value.h.
8817         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8818         * modules/unicodeio (Depends-on): Add ignore-value.
8819
8820 2009-10-26  Eric Blake  <ebb9@byu.net>
8821
8822         areadlinkat: fix fallback path
8823         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8824         pointer and zero.
8825
8826 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8827
8828         Use a better IO block size for modern systems
8829         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8830         * lib/md2.c: Likewise.
8831         * lib/md4.c: Likewise.
8832         * lib/md5.c: Likewise.
8833         * lib/sha1.c: Likewise.
8834         * lib/sha256.c: Likewise.
8835         * lib/sha512.c: Likewise.
8836
8837 2009-10-22  Eric Blake  <ebb9@byu.net>
8838
8839         tests: avoid several compiler warnings
8840         * tests/test-getcwd.c (main): Avoid buffer underflow.
8841         * tests/test-getdate.c (main): String literals are not safe with
8842         putenv, so use setenv.  Declare unused argument.
8843         * modules/getdate-tests (Depends-on): Add setenv.
8844         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8845         problems with string literals in char *.
8846         * tests/test-hash.c (main): Avoid shadowing declaration.
8847         (insert_new): Treat string literals as char const *.
8848         * tests/test-getopt.h (test_getopt): Likewise.
8849         (getopt_loop): Alter types to minimize casting elsewhere.
8850         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8851         (test_getopt_long_posix): Likewise.
8852         (do_getopt_long): Add wrapper to minimize casting.
8853         * tests/test-atexit.c (clear_temp_file): Use void.
8854         * tests/test-areadlink-with-size.c (main): Declare unused
8855         arguments.
8856         * tests/test-areadlink.c (main): Likewise.
8857         * tests/test-areadlinkat-with-size.c (main): Likewise.
8858         * tests/test-areadlinkat.c (main): Likewise.
8859         * tests/test-canonicalize-lgpl.c (main): Likewise.
8860         * tests/test-canonicalize.c (main): Likewise.
8861         * tests/test-dirent-safer.c (main): Likewise.
8862         * tests/test-dirname.c (main): Likewise.
8863         * tests/test-dup2.c (main): Likewise.
8864         * tests/test-fchdir.c (main): Likewise.
8865         * tests/test-fcntl-h.c (main): Likewise.
8866         * tests/test-fcntl-safer.c (main): Likewise.
8867         * tests/test-fdopendir.c (main): Likewise.
8868         * tests/test-fdutimensat.c (main): Likewise.
8869         * tests/test-fflush.c (main): Likewise.
8870         * tests/test-filenamecat.c (main): Likewise.
8871         * tests/test-filevercmp.c (main): Likewise.
8872         * tests/test-fopen-safer.c (main): Likewise.
8873         * tests/test-fopen.c (main): Likewise.
8874         * tests/test-fpending.c (main): Likewise.
8875         * tests/test-fpurge.c (main): Likewise.
8876         * tests/test-freading.c (main): Likewise.
8877         * tests/test-fstatat.c (main): Likewise.
8878         * tests/test-fsync.c (main): Likewise.
8879         * tests/test-futimens.c (main): Likewise.
8880         * tests/test-getndelim2.c (main): Likewise.
8881         * tests/test-gettimeofday.c (main): Likewise.
8882         * tests/test-getopt.c (main): Likewise.
8883         * tests/test-i-ring.c (main): Likewise.
8884         * tests/test-inttypes.c (main): Likewise.
8885         * tests/test-link.c (main): Likewise.
8886         * tests/test-lstat.c (main): Likewise.
8887         * tests/test-math.c (main): Likewise.
8888         * tests/test-md5.c (main): Likewise.
8889         * tests/test-memchr2.c (main): Likewise.
8890         * tests/test-memrchr.c (main): Likewise.
8891         * tests/test-mkdir.c (main): Likewise.
8892         * tests/test-mkdirat.c (main): Likewise.
8893         * tests/test-mkfifoat.c (main): Likewise.
8894         * tests/test-open.c (main): Likewise.
8895         * tests/test-openat-safer.c (main): Likewise.
8896         * tests/test-openat.c (main): Likewise.
8897         * tests/test-quotearg.c (main): Likewise.
8898         * tests/test-rawmemchr.c (main): Likewise.
8899         * tests/test-readlink.c (main): Likewise.
8900         * tests/test-remove.c (main): Likewise.
8901         * tests/test-rename.c (main): Likewise.
8902         * tests/test-renameat.c (main): Likewise.
8903         * tests/test-rmdir.c (main): Likewise.
8904         * tests/test-sha1.c (main): Likewise.
8905         * tests/test-signal.c (main): Likewise.
8906         * tests/test-sigaction.c (main): Likewise.
8907         * tests/test-stat.c (main): Likewise.
8908         * tests/test-stat-time.c (main): Likewise.
8909         * tests/test-stddef.c (main): Likewise.
8910         * tests/test-stdint.c (main): Likewise.
8911         * tests/test-stdio.c (main): Likewise.
8912         * tests/test-stdlib.c (main): Likewise.
8913         * tests/test-strchrnul.c (main): Likewise.
8914         * tests/test-strerror.c (main): Likewise.
8915         * tests/test-string.c (main): Likewise.
8916         * tests/test-strtod.c (main): Likewise.
8917         * tests/test-strverscmp.c (main): Likewise.
8918         * tests/test-symlink.c (main): Likewise.
8919         * tests/test-symlinkat.c (main): Likewise.
8920         * tests/test-sys_stat.c (main): Likewise.
8921         * tests/test-sys_time.c (main): Likewise.
8922         * tests/test-time.c (main): Likewise.
8923         * tests/test-unistd.c (main): Likewise.
8924         * tests/test-unlink.c (main): Likewise.
8925         * tests/test-unlinkat.c (main): Likewise.
8926         * tests/test-utimens.c (main): Likewise.
8927         * tests/test-utimensat.c (main): Likewise.
8928         * tests/test-version-etc.c (main): Likewise.
8929         * tests/test-wchar.c (main): Likewise.
8930         * tests/test-wctype.c (main): Likewise.
8931         * tests/test-xprintf-posix.c (main): Likewise.
8932         * tests/test-posixtm.c (main): Likewise.
8933         (STREQ): Delete unused macro.
8934         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8935         shadowed variables.
8936         * tests/test-memchr.c (main): Likewise.
8937
8938 2009-10-21  Eric Blake  <ebb9@byu.net>
8939
8940         areadlinkat: avoid failure on older glibc
8941         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8942         rather than mis-comparing 0 against FUNC_RESULT of char*.
8943
8944 2009-10-21  Bruno Haible  <bruno@clisp.org>
8945
8946         * modules/stpncpy (License): Relicense under LGPLv2+.
8947         Reported by David Lutterkort <lutter@redhat.com>.
8948
8949 2009-10-20  Eric Blake  <ebb9@byu.net>
8950
8951         utimensat: work around Solaris 9 bug
8952         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8953         has trailing slash bugs.
8954         * tests/test-lutimens.h (test_lutimens): Enhance test.
8955         * tests/test-utimens.h (test_utimens): Likewise.
8956         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8957         * doc/posix-functions/utimes.texi (utimes): Likewise.
8958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8959         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8960         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8961         * doc/posix-functions/futimens.texi (futimens): Likewise.
8962
8963         fdutimensat: new module
8964         * modules/fdutimensat: New file.
8965         * lib/fdutimensat.c (fdutimensat): Likewise.
8966         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8967         * MODULES.html.sh (File system functions): Mention module.
8968         * modules/fdutimensat-tests: New test.
8969         * tests/test-fdutimensat.c: Likewise.
8970
8971         doc: regenerate INSTALL
8972         * doc/INSTALL: Reflect recent autoconf update.
8973         * doc/INSTALL.ISO: Likewise.
8974         * doc/INSTALL.UTF-8: Likewise.
8975
8976 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8977
8978         acl: warn if ACL support is not detected
8979         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8980
8981 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8982
8983         * lib/nproc.h: Add extern "C" block for C++.
8984
8985 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8986             Bruno Haible  <bruno@clisp.org>
8987
8988         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8989         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8990         * doc/posix-functions/isalpha.texi: Likewise.
8991         * doc/posix-functions/isblank.texi: Likewise.
8992         * doc/posix-functions/iscntrl.texi: Likewise.
8993         * doc/posix-functions/isdigit.texi: Likewise.
8994         * doc/posix-functions/isgraph.texi: Likewise.
8995         * doc/posix-functions/islower.texi: Likewise.
8996         * doc/posix-functions/isprint.texi: Likewise.
8997         * doc/posix-functions/ispunct.texi: Likewise.
8998         * doc/posix-functions/isspace.texi: Likewise.
8999         * doc/posix-functions/isupper.texi: Likewise.
9000         * doc/posix-functions/isxdigit.texi: Likewise.
9001
9002 2009-10-18  Bruno Haible  <bruno@clisp.org>
9003
9004         Tests for module 'isblank'.
9005         * modules/isblank-tests: New file.
9006         * tests/test-isblank.c: New file.
9007
9008         New module 'isblank'.
9009         * lib/isblank.c: New file.
9010         * m4/isblank.m4: New file.
9011         * modules/isblank: New file.
9012         * doc/posix-functions/isblank.texi: Mention the new module.
9013
9014 2009-10-18  Bruno Haible  <bruno@clisp.org>
9015
9016         New module 'ctype'.
9017         * lib/ctype.in.h: New file.
9018         * m4/ctype.m4: New file.
9019         * modules/ctype: New file.
9020         * doc/posix-headers/ctype.texi: Mention the new module.
9021
9022 2009-10-18  Jim Meyering  <meyering@redhat.com>
9023
9024         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9025         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9026         right after its initialization, rather than farther down.
9027         Keeping these in close proximity makes it easier to ensure
9028         that each such variable is initialized.  E.g.,
9029
9030             LIB_CLOCK_GETTIME=
9031             AC_SUBST([LIB_CLOCK_GETTIME])
9032
9033         This change also increments these serial numbers.
9034         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9037
9038 2009-10-18  Bruno Haible  <bruno@clisp.org>
9039
9040         Don't let environment variables perturb build.
9041         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9042         (gl_PREREQ_GETHRXTIME): ... not here.
9043
9044 2009-10-18  Bruno Haible  <bruno@clisp.org>
9045
9046         Avoid symlink attack in localcharset module.
9047         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9048         (O_NOFOLLOW): Define fallback.
9049         (get_charset_aliases): Don't open the file if it is a symbolic link.
9050         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9051         gl_FCNTL_H.
9052         (gl_FCNTL_H): Require it.
9053         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9054         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9055         Reported by Fergal Glynn <fglynn@veracode.com>.
9056
9057 2009-10-18  Bruno Haible  <bruno@clisp.org>
9058
9059         Implement nproc for mingw.
9060         * lib/nproc.c: Include <windows.h>
9061         (num_processors): On native Windows platforms, try GetSystemInfo.
9062
9063 2009-10-18  Bruno Haible  <bruno@clisp.org>
9064
9065         Implement nproc for IRIX.
9066         * lib/nproc.c: Include <sys/sysmp.h>.
9067         (num_processors): On IRIX systems, try sysmp.
9068         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9069
9070 2009-10-18  Bruno Haible  <bruno@clisp.org>
9071
9072         Implement nproc for HP-UX.
9073         * lib/nproc.c: Include <sys/pstat.h>
9074         (num_processors): On HP-UX systems, try pstat_getdynamic.
9075         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9076         pstat_getdynamic.
9077
9078 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9079             Bruno Haible  <bruno@clisp.org>
9080
9081         Implement nproc for NetBSD, OpenBSD.
9082         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9083         (ARRAY_SIZE): New macro.
9084         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9085         * m4/nproc.m4: New file.
9086         * modules/nproc (Files): Add m4/nproc.m4.
9087         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9088         (Makefile.am): Instead, augment lib_SOURCES.
9089
9090 2009-10-18  Bruno Haible  <bruno@clisp.org>
9091
9092         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9093         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9094         sys/param.h.
9095
9096 2009-10-16  Eric Blake  <ebb9@byu.net>
9097
9098         utimensat: new module
9099         * modules/utimensat: New file.
9100         * lib/utimensat.c (utimensat): Likewise.
9101         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9102         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9103         so we can work around Linux bugs.
9104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9105         * modules/sys_stat (Makefile.am): Substitute them.
9106         * lib/sys_stat.in.h (utimensat): Declare it.
9107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9108         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9109         * modules/utimensat-tests: New test.
9110         * tests/test-utimensat.c: Likewise.
9111
9112         utimens: let lutimens work on non-symlinks
9113         * lib/utimens.c (lutimens): Fall back to utimens rather than
9114         failing with ENOSYS, when file is not a symlink.
9115         (utimens): Reduce redirection.
9116         * tests/test-lutimens.h (test_lutimens): Update test to cover
9117         non-symlinks.
9118         * tests/test-utimens.h (test_utimens): Update test to cover
9119         symlinks.
9120         * tests/test-utimens.c (main): Update caller.
9121
9122         utimens: cache whether utimensat syscall works
9123         * lib/utimens.c (utimensat_works_really): New cache variable.
9124         (fdutimens, lutimens): Use it to avoid failing syscall.
9125
9126         test-stat-time, test-utimens: improve portability
9127         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9128         ext4 on alpha, and for cygwin.
9129         * tests/test-utimens-common.h: New file.
9130         (nap): Factor delays into single function.
9131         * tests/test-lutimens.h (test_lutimens): Use new header.
9132         * tests/test-futimens.h (test_futimens): Likewise.
9133         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9134         timestamps to occur from same machine, as was done previously for
9135         test_utimens.
9136         * modules/utimens-tests (Files): Ship new file.
9137         * modules/futimens-tests (Files): Likewise.
9138         Reported in part by Jim Meyering.
9139
9140         sys_stat: sort replacement declarations
9141         * lib/sys_stat.in.h: Sort declarations.
9142         * lib/futimens.c (futimens): Fix typo.
9143
9144 2009-10-15  Jim Meyering  <meyering@redhat.com>
9145
9146         don't let environment settings perturb build
9147         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9148         could cause a configure-time and/or build-time malfunction.
9149         Typically, a configure-time function-in-library test is performed
9150         via code like this:
9151
9152           LIB_VAR=
9153           AC_SUBST([LIB_VAR])
9154           prefix_saved_LIBS=$LIBS
9155             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9156                        [test "$ac_cv_search_FUNC" = "none required" ||
9157                         LIB_VAR=$ac_cv_search_FUNC])
9158           LIBS=$prefix_saved_LIBS
9159
9160         However, in each of the files affected by this change, the LIB_VAR=
9161         initialization was omitted.  Thus, when set in the environment, its
9162         value would propagate into generated Makefiles when FUNC is not found
9163         in LIB_NAME.
9164         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9165         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9167
9168 2009-10-14  Eric Blake  <ebb9@byu.net>
9169
9170         fchdir: avoid infinite recursion in mingw
9171         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9172         recursing.
9173
9174         test-stat-time: port to mingw
9175         * tests/test-stat-time.c (force_unlink): Return a value.
9176         (test_ctime) [W32]: Fix compilation error.
9177         (nap): Don't call usleep with too large an argument.  Use
9178         force_unlink.
9179         * doc/pastposix-functions/usleep.texi (usleep): Document the
9180         portability issue.
9181
9182 2009-10-13  Jim Meyering  <meyering@redhat.com>
9183
9184         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9185         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9186         * modules/pipe-filter-ii: Likewise.
9187         * modules/sys_socket-tests: Likewise.
9188         * modules/tsearch-tests: Likewise.
9189         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9190         (check): Depend on it.
9191
9192 2009-10-12  Eric Blake  <ebb9@byu.net>
9193
9194         utimens-tests: port to NFS file systems
9195         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9196         comparisons to avoid spurious failures from timestamp drift
9197         between NFS machines.
9198
9199 2009-10-12  Eric Blake  <ebb9@byu.net>
9200
9201         stat-time-tests: minor cleanups
9202         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9203         * tests/test-stat-time.c (nap): Separate assignment from call.
9204         Suggested by Paolo Bonzini and Bruno Haible.
9205
9206         sys_stat: guarantee struct timespec
9207         * lib/sys_stat.in.h (includes): Always include <time.h>
9208         * modules/sys_stat (Depends-on): Add time.
9209         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9210         mode_t permission values.
9211         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9212         get at subsecond timestamps.
9213
9214 2009-10-10  Eric Blake  <ebb9@byu.net>
9215
9216         futimens: new module
9217         * modules/futimens: New file.
9218         * lib/futimens.c (futimens): Likewise.
9219         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9220         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9221         we can work around Linux bugs.
9222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9223         * modules/sys_stat (Makefile.am): Substitute them.
9224         * lib/sys_stat.in.h (futimens): Declare it.
9225         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9226         * doc/posix-functions/futimens.texi (futimens): Likewise.
9227         * modules/futimens-tests: New test.
9228         * tests/test-futimens.c: Likewise.
9229
9230         utimens: introduce fdutimens
9231         * lib/utimens.h (fdutimens): New prototype.
9232         * lib/utimens.c (gl_futimens): Move guts...
9233         (fdutimens): ...to new interface.
9234         * tests/test-utimens.c (do_fdutimens): Use it.
9235
9236         utimens: add UTIME_NOW and UTIME_OMIT support
9237         * lib/utimens.c (validate_timespec, update_timespec): New helper
9238         functions.
9239         (gl_futimens, lutimens): Use them.
9240         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9241         stdbool, sys_stat.
9242         (Link): Mention resulting library dependency.
9243         * modules/utimecmp (Link): Likewise.
9244         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9245         (Makefile.am): Pick up library dependency.
9246         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9247         definition.
9248         * tests/test-sys_stat.c: Test the definitions.
9249         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9250         * NEWS: Document library dependency.
9251
9252         utimecmp: support symlink timestamps
9253         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9254         hashing when possible.  Use pathconf when available.
9255         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9256         * modules/utimecmp (Depends-on): Add lstat.
9257
9258         utimens: add lutimens interface
9259         * lib/utimens.c (lutimens): New function.
9260         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9261         * lib/utimens.h (lutimens): Declare new interface.
9262         * tests/test-utimens.c (main): Enhance test.
9263         * tests/test-lutimens.h (test_lutimens): New file.
9264         * modules/utimens-tests (Files): Distribute it.
9265         (Depends-on): Add symlink.
9266         (configure.ac): Check for usleep.
9267
9268         utimens: validate futimens usage
9269         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9270         fewer syscalls on failure later on.  Avoid compiler warning on
9271         mingw.
9272         * modules/utimens (Depends-on): Add dup2.
9273
9274         utimens: add test
9275         * modules/utimens-tests: New test.
9276         * tests/test-utimens.h: New file.
9277         * tests/test-futimens.h: Likewise.
9278         * tests/test-utimens.c: Likewise.
9279
9280         doc: mention timestamp portability issues
9281         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9282         instead.
9283         * doc/posix-functions/utime.texi (utime): Likewise.
9284         * doc/posix-functions/utimes.texi (utimes): Likewise.
9285         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9286         instead.
9287         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9288         module.
9289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9290         Mention weakness with symlink timestamps.
9291         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9292         to utimensat/futimens instead.
9293         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9294
9295         test-dup2: enhance test
9296         * tests/test-dup2.c (main): Also check AT_FDCWD.
9297
9298         test-stat-time: avoid more spurious failures
9299         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9300         xfs; and avoid race if the two timestamps cross quantization edge.
9301
9302         relocatable: prefer 'file system' over 'filesystem'
9303         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9304         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9305         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9306         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9307         * lib/relocatable.c (compute_curr_prefix): Likewise.
9308
9309 2009-10-10  Jim Meyering  <meyering@redhat.com>
9310
9311         stat-time-tests: check for the usleep function
9312         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9313
9314 2009-10-10  Bruno Haible  <bruno@clisp.org>
9315
9316         * modules/xnanosleep: Put the Link section after the Include section.
9317
9318 2009-10-09  Eric Blake  <ebb9@byu.net>
9319
9320         dup2: work around FreeBSD 6.1 bug
9321         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9322         * doc/posix-functions/dup2.texi (dup2): Document it.
9323         Reported by Nelson H. F. Beebe and Jim Meyering.
9324
9325         test-stat-time: port to buggy NFS clients
9326         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9327         (test_ctime): Also skip test if mtime and ctime are skewed.
9328
9329         maint: prefer 'file system' over 'filesystem'
9330         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9331         * doc/posix-functions/lstat.texi (lstat): Likewise.
9332         * lib/file-has-acl.c (file_has_acl): Likewise.
9333         * lib/fwriteerror.c [TEST]: Likewise.
9334         * tests/test-areadlink.h (test_areadlink): Likewise.
9335         * tests/test-areadlinkat-with-size.c (main): Likewise.
9336         * tests/test-areadlinkat.c (main): Likewise.
9337         * tests/test-canonicalize-lgpl.c (main): Likewise.
9338         * tests/test-canonicalize.c (main): Likewise.
9339         * tests/test-fstatat.c (main): Likewise.
9340         * tests/test-linkat.c (main): Likewise.
9341         * tests/test-lstat.h (test_lstat_func): Likewise.
9342         * tests/test-mkdir.h (test_mkdir): Likewise.
9343         * tests/test-readlink.h (test_readlink): Likewise.
9344         * tests/test-remove.c (main): Likewise.
9345         * tests/test-rename.h (test_rename): Likewise.
9346         * tests/test-renameat.c (main): Likewise.
9347         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9348         * tests/test-symlink.h (test_symlink): Likewise.
9349         * tests/test-symlinkat.c (main): Likewise.
9350         * tests/test-unlink.h (test_unlink_func): Likewise.
9351         * tests/test-unlinkat.c (main): Likewise.
9352
9353         maint: make realtime library usage explicit
9354         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9355         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9356         * modules/settime (Link): Likewise.
9357         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9358
9359         test-stat-time: speed up execution
9360         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9361         warning on mingw.
9362         (nap): New helper function.
9363         (prepare_test): Use it to reduce sleep time.
9364         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9365         execution.
9366         * modules/stat-time-tests (configure.ac): Check for usleep.
9367
9368 2009-10-09  Jim Meyering  <meyering@redhat.com>
9369
9370         selinux-h: always use getfilecon wrappers
9371         * lib/getfilecon.c: New file.
9372         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9373         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9374         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9375         (fgetfilecon): Provide a stub.
9376         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9377         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9378         file unconditionally.
9379         When <selinux/selinux.h> is found, arrange to use wrappers.
9380         * modules/selinux-h (Files): Add getfilecon.c.
9381         (Makefile.am): Substitute include-next-related bits
9382         into the now-always-generated selinux/selinux.h file.
9383         * doc/glibc-functions/lgetfilecon.texi: New file.
9384         * doc/glibc-functions/fgetfilecon.texi: New file.
9385         * doc/glibc-functions/getfilecon.texi: New file.
9386         * doc/glibc-functions/getfilecon-desc.texi: New file.
9387         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9388         which to pull in the new files.
9389         * MODULES.html.sh (Misc): Add selinux-h.
9390
9391 2009-10-08  Jim Meyering  <meyering@redhat.com>
9392
9393         unistd: fix comment typo
9394         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9395
9396 2009-10-08  Eric Blake  <ebb9@byu.net>
9397
9398         areadlink: use SIZE_MAX consistently
9399         * modules/areadlink (Depends-on): Add stdint.
9400         * modules/areadlink-with-size (Depends-on): Likewise.
9401         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9402         gives NULL; drop sys/types, since unistd gives size_t; and add
9403         stdint for SIZE_MAX.
9404         (SIZE_MAX): Rely on headers.
9405         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9406         and add stdint.
9407         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9408         (SIZE_MAX): Likewise.
9409         (INITIAL_BUF_SIZE): Turn into enum.
9410         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9411
9412 2009-10-08  Jim Meyering  <meyering@redhat.com>
9413
9414         areadlinkat: avoid compilation failure
9415         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9416         Fix typo in comment.
9417
9418 2009-10-07  Eric Blake  <ebb9@byu.net>
9419
9420         areadlinkat-with-size: new module
9421         * modules/areadlinkat-with-size: New module.
9422         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9423         * lib/areadlink.h (areadlinkat): Declare it.
9424         * MODULES.html.sh (File system functions): Mention it.
9425         * modules/areadlinkat-with-size-tests: New test.
9426         * tests/test-areadlinkat-with-size.c: New file.
9427
9428         xreadlinkat: new module
9429         * modules/xreadlinkat: New module.
9430         * lib/xreadlinkat.c (xreadlinkat): New file.
9431         * lib/xreadlink.h (xreadlinkat): Declare it.
9432         * MODULES.html.sh (File system functions): Mention it.
9433
9434         areadlinkat: new module
9435         * lib/at-func.c (FUNC_FAIL): New define.
9436         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9437         * modules/areadlinkat: New module.
9438         * lib/linkat.c (areadlinkat): Move...
9439         * lib/areadlinkat.c (areadlinkat): ...to new file.
9440         * lib/areadlink.h (areadlinkat): Declare it.
9441         * modules/linkat (Depends-on): Add areadlinkat.
9442         * MODULES.html.sh (File system functions): Mention it.
9443         * modules/areadlinkat-tests: New test.
9444         * tests/test-areadlinkat.c: New file.
9445
9446         areadlink, areadlink-with-size: add tests
9447         * modules/areadlink-tests: New test.
9448         * modules/areadlink-with-size-tests: Likewise.
9449         * tests/test-areadlink.h: New file.
9450         * tests/test-areadlink.c: Likewise.
9451         * tests/test-areadlink-with-size.c: Likewise.
9452
9453         maint: minor cleanups
9454         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9455         _UNUSED_PARAMETER_ instead.
9456         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9457         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9458         * modules/linkat-tests (Files): Distribute test-link.h.
9459
9460         openat, utimens: whitespace cleanup
9461         * lib/openat.c: Prefer space throughout, rather than mix of 8
9462         spaces vs. tabs.
9463         * lib/at-func.c: Likewise.
9464         * lib/utimens.c: Likewise.
9465
9466         openat: avoid using wrong fd
9467         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9468         working directory chooses same fd.
9469         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9470
9471         mkdir, mkdirat: fix cygwin 1.5.x bug
9472         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9473         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9474         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9475         bug.
9476         (gl_PREREQ_MKDIR): Delete unused macro.
9477         * modules/mkdir (Files): Track file rename.
9478         (configure.ac): Update macro name.
9479         * modules/openat (Depends-on): Add mkdir.
9480         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9481
9482         mkdir, mkdirat: add tests
9483         * modules/mkdir-tests: New test.
9484         * tests/test-mkdir.h: New file.
9485         * tests/test-mkdir.c: Likewise.
9486         * tests/test-mkdirat.c: Likewise.
9487         * modules/openat-tests (Files): Add new files.
9488         (Makefile.am): Run new test.
9489
9490 2009-10-06  Eric Blake  <ebb9@byu.net>
9491
9492         doc: tweak *at function documentation
9493         * doc/posix-functions/faccessat.texi (faccessat): Mention
9494         known issue with replacement.
9495         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9496         * doc/posix-functions/linkat.texi (linkat): Likewise.
9497         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9498         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9499         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9500         * doc/posix-functions/renameat.texi (renameat): Likewise.
9501         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9502
9503         openat: fix GNU/Hurd bug in unlinkat
9504         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9505         broken.
9506         * doc/posix-functions/unlink.texi (unlink): Document this.
9507         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9508
9509         fdopendir: fix GNU/Hurd bug
9510         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9511         allowing non-directory fds.
9512         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9513         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9514         * modules/dirent (Makefile.am): Substitute it.
9515         * lib/dirent.in.h (fdopendir): Declare replacement.
9516         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9517         * tests/test-fdopendir.c (main): Test something other than
9518         /dev/null, since on Hurd that behaves like a directory.
9519
9520         test-symlink: port to GNU/Hurd
9521         * tests/test-symlink.h (test_symlink): Relax expected errno.
9522
9523         doc: tweak more cygwin information
9524         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9525         now compatible with glibc.
9526         * doc/posix-functions/getopt.texi (getopt): Likewise.
9527
9528         getopt-gnu: add another test
9529         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9530         guarantee behavior relied on by m4.
9531         * tests/test-getopt.c (main): Use it.
9532         * modules/getopt-posix-tests (Depends-on): Add setenv.
9533         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9534
9535         getopt: fix compilation on darwin
9536         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9537         include.
9538         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9539         Reported by Ludovic Courtès.
9540
9541 2009-10-06  Bruno Haible  <bruno@clisp.org>
9542
9543         * modules/size_max (Description): Discourage its use.
9544         Reported by Simon Josefsson.
9545
9546 2009-10-06  Jim Meyering  <meyering@redhat.com>
9547
9548         linkat: avoid compilation failure
9549         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9550
9551 2009-10-05  Eric Blake  <ebb9@byu.net>
9552
9553         linkat: support Linux 2.6.17
9554         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9555         linkat on Linux, but allow cache variable override.
9556         * lib/linkat.c (rpl_linkat): Define override.
9557         * modules/linkat (Depends-on): Add symlinkat.
9558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9559         * modules/unistd (Makefile.am): Substitute it.
9560         * lib/unistd.in.h (linkat): Declare replacement.
9561         Reported by Pádraig Brady.
9562
9563         quotearg: port test to systems with C.UTF-8 locale
9564         * tests/test-quotearg.c (struct result_strings): Add another
9565         member, differentiating between C.ASCII and C.UTF-8 handling.
9566         (compare_strings): Add parameter.
9567         (main): Adjust all callers.
9568
9569         getopt: avoid clash with FreeBSD _getopt_internal
9570         * lib/getopt.in.h (_getopt_internal): Override the name.
9571         * lib/getopt_int.h (includes): Pick up any overrides.
9572         Reported by Reuben Thomas.
9573
9574         hash: allow C89 compilation
9575         * lib/hash.c (check_tuning): Move declaration before statement.
9576         Reported by Reuben Thomas.
9577
9578 2009-10-05  Karl Berry  <karl@gnu.org>
9579
9580         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9581
9582 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9583             Bruno Haible  <bruno@clisp.org>
9584
9585         * lib/uname.c (uname): Use a table-driven algorithm to compute
9586         Windows NT versions.
9587
9588 2009-10-04  Bruno Haible  <bruno@clisp.org>
9589
9590         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9591         program_invocation_short_name.
9592         * modules/progname (configure.ac): Test for presence of
9593         program_invocation_short_name.
9594         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9595
9596 2009-10-04  Bruno Haible  <bruno@clisp.org>
9597
9598         * lib/progname.c (set_program_name): Fix comment.
9599         Reported by Jim Meyering.
9600
9601 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9602             Bruno Haible  <bruno@clisp.org>
9603
9604         * lib/uname.c: Include <string.h>.
9605         (uname): Do only one call to GetVersionEx in the common case.
9606
9607 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9608             Bruno Haible  <bruno@clisp.org>
9609
9610         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9611         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9612         (uname): Add support for Windows CE and various non-x86 CPU types.
9613
9614 2009-10-03  Bruno Haible  <bruno@clisp.org>
9615
9616         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9617         invocation to tests/configure.ac.
9618         Reported by Ian Beckwith <ianb@erislabs.net>.
9619
9620 2009-10-02  Eric Blake  <ebb9@byu.net>
9621
9622         fchdir: avoid compiler warning
9623         * lib/fchdir.c (canonicalize_file_name)
9624         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9625
9626         test-open: support mingw errno values
9627         * tests/test-open.h (test_open): Relax test.
9628         * tests/test-fopen.h (test_fopen): Likewise.
9629         * tests/test-openat-safer.c (main): Likewise.
9630
9631         open: fix opening directory on mingw
9632         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9633
9634         test-open: on GNU/Hurd, /dev/null is a directory
9635         * tests/test-fopen.h (main): Rename...
9636         (test_fopen): ...to this.  Use a guaranteed non-directory when
9637         confirming open behavior on trailing slash.
9638         * tests/test-openat-safer.c (main): Likewise.
9639         * tests/test-open.h (main): Likewise....
9640         (test_open): ...to this.
9641         * tests/test-fopen.c (main): Adjust caller.
9642         * tests/test-fopen-safer.c (main): Likewise.
9643         * tests/test-open.c (main): Likewise.
9644         * tests/test-fcntl-safer.c (main): Likewise.
9645         Reported by Samuel Thibault.
9646
9647         rename, fchdir: don't ignore chdir failure
9648         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9649         * lib/rename.c (rpl_rename) [W32]: Likewise.
9650         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9651         an empty destination directory if source cannot be renamed,
9652         although there is still possibility for failure.
9653         * doc/posix-functions/rename.texi (rename): Document the race.
9654         Reported by Jim Meyering.
9655
9656         maint: cleanup whitespace in recent commits
9657         * lib/rename.c (rpl_rename): Remove tabs.
9658         * tests/test-link.h (test_link): Likewise.
9659         * lib/fchdir.c (get_name): Likewise.
9660         Reported by Jim Meyering.
9661
9662 2009-10-02  Ben Pfaff  <blp@gnu.org>
9663
9664         relocatable-prog-wrapper: Add missing dependency on
9665         double-slash-root.
9666         * modules/relocatable-prog-wrapper: Add dependency.
9667         Reported by Ian Beckwith <ianb@erislabs.net>.
9668
9669 2009-10-02  Eric Blake  <ebb9@byu.net>
9670
9671         renameat: fix Solaris bugs
9672         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9673         needed fixing.
9674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9675         * modules/stdio (Makefile.am): Substitute it.
9676         * lib/stdio.in.h (renameat): Declare replacement.
9677         * lib/renameat.c (rpl_renameat): Implement fix.
9678
9679         renameat: new module
9680         * modules/renameat: New file.
9681         * lib/renameat.c (renameat): Likewise.
9682         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9684         * modules/stdio (Makefile.am): Substitute them.
9685         * lib/stdio.in.h (renameat): Declare it.
9686         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9687         * doc/posix-functions/renameat.texi (renameat): Likewise.
9688         * modules/renameat-tests: New test.
9689         * tests/test-renameat.c: Likewise.
9690
9691         rename: fix mingw bugs
9692         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9693         directory overwrite bugs.
9694
9695         rename: fix another cygwin 1.5 bug
9696         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9697         checks.
9698         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9699         unnecessary cygwin workarounds.  Also work around bug with moving
9700         full directory onto an empty one.
9701         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9702
9703         rename-dest-slash: merge into rename module
9704         * modules/rename-dest-slash (Status): Mark obsolete.
9705         (Depends-on): Add rename.
9706         (Files): Let rename do it all.
9707         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9708         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9709         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9710         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9711         * lib/rename.c (rpl_rename): Update comments.
9712
9713         rename: fix cygwin 1.5.x bugs
9714         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9715         * lib/rename.c (rpl_rename): Work around them.
9716         * modules/rename (Depends-on): Add same-inode.
9717
9718         rename: fix Solaris 10 bug
9719         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9720         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9721         was the only bug.
9722
9723         rename: fix Solaris 9 bug
9724         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9725         on non-directory.  Avoid calling exit.
9726         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9727         strdup.
9728         * modules/rename-tests (Depends-on): Drop lstat.
9729         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9730         (gl_PREREQ_RENAME): Delete unused macro.
9731
9732         rename-dest-slash: fix NetBSD bug
9733         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9734         links.
9735         * modules/rename-dest-slash (Depends-on): Add same-inode.
9736
9737         rename-tests: new test, exposes several platform bugs
9738         * modules/rename-tests: New file.
9739         * tests/test-rename.h: Likewise.
9740         * tests/test-rename.c: Likewise.
9741         * doc/posix-functions/rename.texi (rename): Improve documentation,
9742         including bugs that will eventually be fixed in gnulib.
9743
9744 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9745
9746         * lib/uname.c: Include <stdlib.h>
9747         (uname): Assume version info is available.
9748
9749 2009-10-02  Jim Meyering  <meyering@redhat.com>
9750
9751         gnu-web-doc-update: correct --help output
9752         * build-aux/gnu-web-doc-update: Make --help output relevant.
9753
9754         gnu-web-doc-update: add standard options
9755         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9756
9757         gnu-web-doc-update: New module.
9758         Use this script to automatically update the on-line web documentation
9759         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9760         * modules/gnu-web-doc-update: New file, from coreutils.
9761         * build-aux/gnu-web-doc-update: New script.
9762
9763 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9764
9765         link: LoadLibrary is not needed.
9766         * lib/link.c: Use GetModuleHandle.
9767
9768 2009-10-01  Eric Blake  <ebb9@byu.net>
9769
9770         getopt: bump serial number
9771         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9772         change.
9773
9774         tests: tighten link, rmdir, and remove tests
9775         * tests/test-link.h (includes): No need to use <config.h> here.
9776         Clean up if directory hard link was created, otherwise test for
9777         trailing '.'.
9778         * tests/test-linkat.c (main): Simplify.
9779         * tests/test-remove.c (main): Enhance test for trailing '.'.
9780         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9781
9782 2009-10-01  Jim Meyering  <meyering@redhat.com>
9783
9784         maint.mk: requiring "make major" was annoying, for a "minor" release.
9785         What is intended is "stable", to contrast with alpha and beta,
9786         so require "make stable", not "make major".
9787         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9788         (get_tool_versions): Likewise.
9789         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9790
9791 2009-09-30  Ben Pfaff  <blp@gnu.org>
9792
9793         Fix broken build of replacement for Windows tmpfile().
9794         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9795         flags argument added along with the 'mkostemp' module.
9796
9797 2009-09-28  Bruno Haible  <bruno@clisp.org>
9798
9799         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9800         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9801         to 'remove_elt'.
9802         (gl_list_remove): Update.
9803         * lib/gl_list.c (gl_list_remove): Update.
9804         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9805         to 'remove_elt'.
9806         (gl_oset_remove): Update.
9807         * lib/gl_list.c (gl_oset_remove): Update.
9808         Reported by Eric Blake.
9809
9810 2009-09-28  Eric Blake  <ebb9@byu.net>
9811
9812         doc: mention yet more cygwin 1.7 status
9813         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9814         cygwin.
9815         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9816         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9817
9818         argp: fix test failure
9819         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9820         that are not upper-case.  Pass correct range to tolower.
9821
9822 2009-09-27  Jim Meyering  <meyering@redhat.com>
9823
9824         test-yesno: work around sparc-dash here-document infelicity
9825         Without this change, the literal \177 byte in a here document
9826         would make dash 0.5.5.1-3 access uninitialized memory.
9827         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9828         Instead, use a marker, "@", and filter through tr to create the desired
9829         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9830
9831 2009-09-27  Bruno Haible  <bruno@clisp.org>
9832
9833         Disable untested support for new flavours of ACLs on AIX.
9834         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9835         progress.
9836         * lib/set-mode-acl.c (qset_acl): Likewise.
9837
9838 2008-12-07  Bruno Haible  <bruno@clisp.org>
9839
9840         Add support for new flavours of ACLs on AIX. (Untested.)
9841         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9842         (file_has_acl): Add support for newer AIX.
9843         * lib/set-mode-acl.c (qset_acl): Likewise.
9844         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9845         Rainer Tammer <tammer@tammer.net>.
9846
9847 2009-09-26  Eric Blake  <ebb9@byu.net>
9848
9849         argp: fix compilation of getopt
9850         * lib/getopt.in.h (includes): Use different guard than glibc.
9851         Reported by Sergey Poznyakoff.
9852
9853         doc: mention more cygwin 1.7 status
9854         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9855         bug.
9856         * doc/posix-functions/execl.texi (execl): Likewise.
9857         * doc/posix-functions/execle.texi (execle): Likewise.
9858         * doc/posix-functions/execlp.texi (execlp): Likewise.
9859         * doc/posix-functions/execv.texi (execv): Likewise.
9860         * doc/posix-functions/execve.texi (execve): Likewise.
9861         * doc/posix-functions/execvp.texi (execvp): Likewise.
9862         * doc/glibc-functions/canonicalize_file_name.texi
9863         (canonicalize_file_name): Cygwin 1.7 now provides this.
9864         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9865         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9866         on AT_SYMLINK_NOFOLLOW.
9867
9868 2009-09-24  Eric Blake  <ebb9@byu.net>
9869
9870         test-linkat: make test more robust
9871         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9872
9873         getopt: fix inclusion guards for cygwin
9874         * modules/getopt-posix (Depends-on): Add include-next.
9875         (Makefile.am): Substitute more items in replacement header.
9876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9877         <getopt.h>.
9878         * lib/getopt.in.h (includes): Use split inclusion guard, and
9879         prefer <getopt.h> over include <unistd.h> when one is present.
9880         (option): Also override name of 'struct option'.
9881
9882         same-inode: revert prior change; it is not yet ready
9883         * NEWS: Undo mention of this change.
9884         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9885         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9886         * lib/cycle-check.c (cycle_check): Likewise.
9887         * lib/same.c (same_name): Likewise.
9888         * lib/at-func2.c (at_func2): Likewise.
9889
9890 2009-09-23  Eric Blake  <ebb9@byu.net>
9891
9892         linkat: new module
9893         * modules/linkat: New file.
9894         * lib/at-func2.c (at_func2): Likewise.
9895         * lib/linkat.c (linkat): Likewise.
9896         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9897         * lib/openat-priv.h (at_func2): Add declaration.
9898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9899         * modules/unistd (Makefile.am): Substitute them.
9900         * lib/unistd.in.h (linkat): Declare it.
9901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9902         * doc/posix-functions/linkat.texi (linkat): Likewise.
9903         * doc/posix-functions/link.texi (link): Tweak wording.
9904         * tests/test-link.c (main): Move guts...
9905         * tests/test-link.h (test_link): ...into new file.
9906         * modules/linkat-tests: New test.
9907         * tests/test-linkat.c: Likewise.
9908         * modules/link-tests (Files): Ship new file.
9909         (Depends-on): Add stdbool.
9910
9911         dirname: add library-safe mdir_name
9912         * lib/dirname.h (mdir_name): New prototype.
9913         * lib/dirname.c (dir_name): Move guts...
9914         (mdir_name): ...to new function that avoids xalloc_die.
9915
9916         fchdir: another mingw fix
9917         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9918         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9919         on mingw (where it has not yet been ported), and make it optional
9920         elsewhere.
9921         (_gl_register_fd): Use it.
9922
9923         same-inode: make SAME_INODE tri-state, to port to mingw
9924         * NEWS: Mention this change.
9925         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9926         st_ino always being 0.
9927         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9928         * lib/cycle-check.c (cycle_check): Likewise.
9929         * lib/same.c (same_name): Likewise.
9930
9931         lstat: avoid mingw compilation error
9932         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9933         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9934         lstat ourselves.
9935         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9936         was adequate.
9937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9938         the checks for lstat.
9939         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9940
9941         link: fix test failure on Solaris 9
9942         * lib/link.c (rpl_link): Don't assume link will catch bogus
9943         trailing slash on source.
9944
9945         test-symlinkat: enhance test
9946         * tests/test-readlink.c (main): Move guts...
9947         * tests/test-readlink.h (test_readlink): ...into new file.
9948         * tests/test-symlink.c (main): Move guts...
9949         * tests/test-symlink.h (test_symlink): ...into new file.
9950         * tests/test-symlinkat.c (main): Use new files for further
9951         coverage.
9952         (do_symlink, do_readlink): New helper functions.
9953         * modules/symlink-tests (Files): Ship new file.
9954         (Depends-on): Add stdbool.
9955         * modules/readlink-tests (Files): Ship new file.
9956         (Depends-on): Add stdbool.
9957         * modules/symlinkat-tests (Files): Use new files.
9958
9959 2009-09-23  Eric Blake  <ebb9@byu.net>
9960
9961         readlink: document portability issue with symlink length
9962         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9963         systems have bogus st_size on symlinks, and mention the
9964         areadlink-with-size module.
9965         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9966         * doc/posix-functions/readlink.texi (readlink): Mention the
9967         areadlink module, and ERANGE failure.
9968         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9969         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9970
9971         readlink: fix Solaris 9 bug with trailing slash
9972         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9973         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9974         * doc/posix-functions/readlink.texi (readlink): Document this.
9975         * modules/readlink-tests: New test.
9976         * tests/test-readlink.c: Likewise.
9977
9978         readlink: fix cygwin 1.5.x bug with return type
9979         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9980         * lib/unistd.in.h (readlink): Use ssize_t.
9981         * lib/readlink.c (readlink): Likewise.
9982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9983         * modules/unistd (Makefile.am): Substitute it.
9984         * lib/unistd.in.h (readlink): Declare replacement.
9985         * doc/posix-functions/readlink.texi (readlink): Document this.
9986
9987         symlink: use throughout gnulib
9988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9989         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9990         symlink is not used.
9991         * modules/symlinkat (Depends-on): Add symlink.
9992         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9993         * modules/canonicalize-tests (Depends-on): Likewise.
9994         * modules/lstat-tests (Depends-on): Likewise.
9995         * modules/openat-tests (Depends-on): Likewise.
9996         * modules/remove-tests (Depends-on): Likewise.
9997         * modules/rmdir-tests (Depends-on): Likewise.
9998         * modules/unlink-tests (Depends-on): Likewise.
9999         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10000         * tests/test-canonicalize.c (symlink): Likewise.
10001         * tests/test-fstatat.c (symlink): Likewise.
10002         * tests/test-lstat.c (symlink): Likewise.
10003         * tests/test-remove.c (symlink): Likewise.
10004         * tests/test-rmdir.c (symlink): Likewise.
10005         * tests/test-unlink.c (symlink): Likewise.
10006         * tests/test-unlinkat.c (symlink): Likewise.
10007
10008         symlink: new module, for Solaris 9 bug
10009         * modules/symlink: New file.
10010         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10011         * lib/symlink.c: Likewise.
10012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10013         * modules/unistd (Makefile.am): Substitute them.
10014         * lib/unistd.in.h (symlink): Declare replacement.
10015         * MODULES.html.sh (File system functions): Mention it.
10016         * doc/posix-functions/symlink.texi (symlink): Likewise.
10017         * modules/symlink-tests: New test.
10018         * tests/test-symlink.c: Likewise.
10019
10020 2009-09-23  Bruno Haible  <bruno@clisp.org>
10021
10022         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10023         when needed.
10024         Test case: gnulib-tool --import --with-tests atexit inttypes.
10025         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10026
10027 2009-09-23  Bruno Haible  <bruno@clisp.org>
10028
10029         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10030         subcommand, not in a subshell.
10031
10032 2009-09-22  Eric Blake  <ebb9@byu.net>
10033
10034         unistd: sort replacement declarations
10035         * lib/unistd.in.h: Sort declarations.
10036
10037         open, openat: minor optimization
10038         * lib/open.c (open): If open succeeded, len is non-zero.
10039         * lib/openat.c (rpl_openat): Likewise.
10040
10041         link-follow: ensure correct result
10042         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10044         distinguish between possible failures.
10045
10046 2009-09-21  Eric Blake  <ebb9@byu.net>
10047
10048         fts: avoid compiler warning
10049         * lib/fts.c (dirent_inode_sort_may_be_useful)
10050         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10051
10052 2009-09-19  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/progreloc.c (canonicalize_file_name): New declaration.
10055
10056 2009-09-19  Eric Blake  <ebb9@byu.net>
10057
10058         link: fix quoting
10059         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10060
10061         openat: fix openat bugs on Solaris 9
10062         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10063         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10064         * modules/openat (Depends-on): Add open.
10065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10066         * modules/fcntl-h (Makefile.am): Substitute it.
10067         * lib/fcntl.in.h (openat): Declare replacement.
10068         * doc/posix-functions/openat.texi (openat): Document this.
10069
10070         openat: move fstatat and unlinkat into correct files
10071         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10072         compiled.
10073         * lib/openat.c (fstatat, unlinkat): Move...
10074         * lib/fstatat.c (fstatat): ...into correct files.
10075         * lib/unlinkat.c (unlinkat): Likewise.
10076
10077         openat: fix unlinkat bugs on Solaris 9
10078         * lib/unlinkat.c (unlinkat): New file.
10079         * modules/openat (Depends-on): Add unlink.
10080         (Files): Distribute it.
10081         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10082         trailing slash behavior is broken.
10083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10084         * modules/unistd (Makefile.am): Substitute it.
10085         * lib/unistd.in.h (unlinkat): Declare replacement.
10086         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10087
10088         openat: fix fstatat bugs on Solaris 9
10089         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10090         stat.
10091         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10092
10093         test-unlinkat: enhance test, to expose Solaris 9 bug
10094         * tests/test-unlink.c (main): Factor guts...
10095         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10096         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10097         * tests/test-rmdir.c (main): Adjust caller.
10098         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10099         (unlinker): New helper function.
10100         (rmdirat): Enhance check.
10101         * modules/rmdir-tests (Depends-on): Add stdbool.
10102         * modules/unlink-tests (Depends-on): Likewise.
10103         (Files): Add test-unlink.h.
10104         * modules/openat-tests (Files): Likewise.
10105         (Depends-on): Add unlinkdir.
10106
10107         test-fstatat: new test, to expose Solaris 9 bugs
10108         * tests/test-stat.c (main): Factor guts...
10109         * tests/test-stat.h (test_stat_func): ...into new file.
10110         * tests/test-lstat.c (main): Factor guts...
10111         * tests/test-lstat.h (test_lstat_func): ...into new file.
10112         * tests/test-fstatat.c: New file.
10113         * modules/stat-tests (Files): Add test-stat.h.
10114         * modules/lstat-tests (Files): Add test-lstat.h.
10115         (Depends-on): Add stdbool.
10116         * modules/openat-tests (Depends-on): Add pathmax.
10117         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10118         (Makefile.am): Run new test.
10119
10120         remove: new module, for mingw and Solaris 9 bugs
10121         * modules/remove: New file.
10122         * lib/remove.c: Likewise.
10123         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10125         * modules/stdio (Makefile.am): Use them.
10126         * lib/stdio.in.h (remove): Declare replacement.
10127         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10128         * doc/posix-functions/remove.texi (remove): Likewise.
10129         * modules/remove-tests: New test.
10130         * tests/test-remove.c: Likewise.
10131
10132         unlink: new module, for Solaris 9 bug
10133         * modules/unlink: New file.
10134         * lib/unlink.c: Likewise.
10135         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10137         * modules/unistd (Makefile.am): Use them.
10138         * lib/unistd.in.h (stat): Declare replacement.
10139         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10140         * doc/posix-functions/unlink.texi (unlink): Likewise.
10141         * modules/unlink-tests: New test.
10142         * tests/test-unlink.c: Likewise.
10143
10144         lstat: fix Solaris 9 bug
10145         * lib/lstat.c (lstat): Also check for trailing slash on
10146         non-symlink, non-directories.  Use stat module to simplify logic.
10147         * doc/posix-functions/lstat.texi (lstat): Document it.
10148         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10149         (configure.ac): Check for symlink.
10150         * tests/test-lstat.c (main): Add more tests.
10151
10152         stat: add as dependency to other modules
10153         * modules/chown (Depends-on): Add stat.
10154         * modules/euidaccess (Depends-on): Likewise.
10155         * modules/fchdir (Depends-on): Likewise.
10156         * modules/isdir (Depends-on): Likewise.
10157         * modules/link (Depends-on): Likewise.
10158         * modules/lstat (Depends-on): Likewise.
10159         * modules/mkdir-p (Depends-on): Likewise.
10160         * modules/modechange (Depends-on): Likewise.
10161         * modules/open (Depends-on): Likewise.
10162         * modules/readlink (Depends-on): Likewise.
10163         * modules/same (Depends-on): Likewise.
10164
10165         stat: fix Solaris 9 bug
10166         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10167         slash.
10168         * lib/stat.c (rpl_stat): Work around it.
10169         * doc/posix-functions/stat.texi (stat): Update documentation.
10170
10171         stat: new module, for mingw bug
10172         * modules/stat: New file.
10173         * lib/stat.c: Likewise.
10174         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10176         * modules/sys_stat (Makefile.am): Use them.
10177         * lib/sys_stat.in.h (stat): Declare replacement.
10178         * lib/openat.c (fstatat): Deal with lstat and stat being function
10179         macros.
10180         * modules/openat (Depends-on): Add inline.
10181         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10182         * doc/posix-functions/stat.texi (stat): Likewise.
10183         * modules/stat-tests: New test.
10184         * tests/test-stat.c: Likewise.
10185
10186 2009-09-19  Jim Meyering  <meyering@redhat.com>
10187
10188         syntax-check: detect unnecessary inclusion of canonicalize.h
10189         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10190
10191 2009-09-19  Eric Blake  <ebb9@byu.net>
10192
10193         canonicalize-lgpl: adjust clients to use correct header
10194         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10195         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10196         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10197         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10198         * lib/progreloc.c (includes): Likewise.
10199
10200 2009-09-19  Jim Meyering  <meyering@redhat.com>
10201
10202         test-posixtm.c: correct a comment
10203         * tests/test-posixtm.c: Correct first-line comment.
10204         Spotted by Eric Blake.
10205
10206 2009-09-16  Jim Meyering  <meyering@redhat.com>
10207
10208         posixtm-tests: make T const-correct; add a test case
10209         * tests/test-posixtm.c (T): Declare const.
10210         Add a test for -(2^31+1).
10211         Remove useless can-succeed-only-in-2002 test.
10212
10213         posixtm-tests: adjust the sole failing test
10214         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10215         expected output matches what mktime now produces.  Cross-checked via
10216         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10217
10218         posixtm: move #ifdef'd tests into a new module
10219         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10220         * tests/test-posixtm.c: ... this new file.
10221         * modules/posixtm-tests: New module.
10222
10223 2009-09-19  Eric Blake  <ebb9@byu.net>
10224
10225         openat: simplify use of at-func.c
10226         * lib/at-func.c (includes): Include prerequisites here, to
10227         simplify requirements on client files.
10228         * lib/openat-priv.h: Add double-inclusion guard.
10229         * lib/faccessat.c (includes): Simplify.
10230         * lib/fchmodat.c (includes): Likewise.
10231         * lib/fchownat.c (includes): Likewise.
10232         * lib/mkdirat.c (includes): Likewise.
10233         * lib/mkfifoat.c (includes): Likewise.
10234         * lib/symlinkat.c (includes): Likewise.
10235
10236         openat: allow return of fd 0
10237         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10238         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10239         unistd-safer.
10240         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10241         <fcntl.h>; this module does not leak fds.
10242         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10243         must be allowed to return 0, leaving openat_safer to add the
10244         safety.
10245         (openat_permissive): Avoid writing to just-opened fd 2 if
10246         restoring the current directory fails.
10247         * lib/openat-die.c (openat_restore_fail): Add comment.
10248         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10249         (save_cwd): Guarantee safe fd, but without use of open_safer.
10250         * tests/test-openat.c: New test.
10251         * modules/openat-tests (Files, Makefile.am): Distribute and build
10252         new file.
10253
10254         relocatable-prog-wrapper: fix build
10255         * modules/relocatable-prog-wrapper (Files): Update name of
10256         canonicalize m4 file, broken on 2009-09-17.
10257         Reported by emad hajjar <aleppos@hotmail.com>.
10258
10259 2009-09-19  Bruno Haible  <bruno@clisp.org>
10260
10261         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10262         * lib/safe-alloc.c: Likewise.
10263         Reported by Ian Beckwith <ianb@erislabs.net>.
10264
10265 2009-09-18  Bruno Haible  <bruno@clisp.org>
10266
10267         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10268         Reported by <erobles@sensacd.com.mx>.
10269
10270 2009-09-17  Eric Blake  <ebb9@byu.net>
10271
10272         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10273         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10274         slashes when checking if last component is missing.
10275         * tests/test-canonicalize.c (main): Test this.
10276
10277         canonicalize, canonicalize-lgpl: honor // if distinct from /
10278         * modules/canonicalize (Files): Add double-slash-root.m4.
10279         * modules/canonicalize-lgpl (Files): Likewise.
10280         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10281         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10282         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10283         fallback definition.
10284         (canonicalize_filename_mode): Use it to protect //.
10285         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10286         (__realpath): Likewise.
10287         * tests/test-canonicalize.c (main): Test this.
10288         * tests/test-canonicalize-lgpl.c (main): Likewise.
10289         * modules/canonicalize-tests (Depends-on): Add same-inode.
10290         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10291
10292         canonicalize-lgpl: fix glibc bug with trailing slash
10293         * m4/canonicalize-lgpl.m4: Move contents...
10294         * m4/canonicalize.m4: ...here.
10295         (gl_CANONICALIZE_LGPL): Factor realpath check...
10296         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10297         glibc 2.3.5 bug, fixed 2005-04-27.
10298         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10299         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10300         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10301         * modules/canonicalize-lgpl (Files): Manage file rename.
10302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10303         * modules/stdlib (Makefile.am): Substitute witness.
10304         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10305         is needed.
10306         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10307         replacement is required.
10308         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10309         * doc/glibc-functions/canonicalize_file_name.texi
10310         (canonicalize_file_name): Document this.
10311         * doc/posix-functions/realpath.texi (realpath): Likewise.
10312
10313         canonicalize-lgpl: reject non-directory with trailing slash
10314         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10315         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10316         catches failures in glibc 2.3.5.
10317         * tests/test-canonicalize.c (main): Likewise.
10318
10319         canonicalize-lgpl: use native realpath if it works
10320         * lib/canonicalize-lgpl.c (realpath): Guard with
10321         FUNC_REALPATH_WORKS.
10322         * lib/stdlib.in.h (realpath): Make declaration optional based on
10323         HAVE_REALPATH.
10324         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10325         native realpath works.
10326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10327         * modules/stdlib (Makefile.am): Substitute witness.
10328
10329         canonicalize, canonicalize-lgpl: use <stdlib.h>
10330         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10331         (Include): Mention <stdlib.h>.
10332         (configure.ac): Mention functions we provide.
10333         * modules/canonicalize (configure.ac): Likewise.
10334         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10335         realpath if canonicalize_file_name is missing.
10336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10337         * modules/stdlib (Makefile.am): Substitute witnesses.
10338         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10339         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10340         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10341         * NEWS: Document this.
10342         * doc/glibc-functions/canonicalize_file_name.texi
10343         (canonicalize_file_name): Likewise.
10344         * doc/posix-functions/realpath.texi (realpath): Likewise.
10345         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10346
10347         test-canonicalize: consolidate into single C program
10348         * tests/test-canonicalize.sh: Delete; move setup into...
10349         * tests/test-canonicalize.c (main): ...the program, making it
10350         easier to run in debugger.  Add some tests.
10351         * modules/canonicalize-tests (Files): Remove unused file.
10352         (Depends-on): Add progname.
10353         (configure.ac, Makefile.am): Simplify.
10354
10355         test-canonicalize-lgpl: consolidate into single C program
10356         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10357         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10358         easier to run in debugger.  Add some tests.
10359         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10360         (configure.ac, Makefile.am): Simplify.
10361
10362         canonicalize: avoid resolvepath
10363         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10364         unnecessary checks.
10365         * lib/canonicalize.c (includes): Simplify.
10366         (canonicalize_file_name): Drop resolvepath implementation.
10367         * modules/canonicalize (Depends-on): Drop filenamecat.
10368
10369         canonicalize: don't lose errno
10370         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10371         over calls to free.
10372
10373         canonicalize: simplify errno handling
10374         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10375         assignment.
10376
10377         canonicalize, canonicalize-lgpl: update module dependencies
10378         * modules/canonicalize (Depends-on): Add extensions, lstat,
10379         pathmax, stdlib.
10380         (Files): Drop pathmax.h.
10381         (configure.ac): Adjust macro name.
10382         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10383         lstat, stdlib, sys_stat.
10384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10385         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10386         extensions.
10387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10388         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10389         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10390         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10391         declaration, if available.
10392         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10393         we can rely on the readlink module.
10394         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10395         (includes): Use <unistd.h> unconditionally.
10396
10397 2009-09-17  Eric Blake  <ebb9@byu.net>
10398
10399         maint: make Include sections of modules consistent
10400         * modules/alloca: Use only header name; no need to list #include.
10401         * modules/alloca-opt: Likewise.
10402         * modules/arpa_inet: Likewise.
10403         * modules/canon-host: Likewise.
10404         * modules/configmake: Likewise.
10405         * modules/dirent: Likewise.
10406         * modules/eealloc: Likewise.
10407         * modules/environ: Likewise.
10408         * modules/fchdir: Likewise.
10409         * modules/fcntl: Likewise.
10410         * modules/fcntl-h: Likewise.
10411         * modules/gethrxtime: Likewise.
10412         * modules/gettime: Likewise.
10413         * modules/ignore-value: Likewise.
10414         * modules/inet_ntop: Likewise.
10415         * modules/inet_pton: Likewise.
10416         * modules/inttypes: Likewise.
10417         * modules/isnand-nolibm: Likewise.
10418         * modules/isnanf-nolibm: Likewise.
10419         * modules/mbchar: Likewise.
10420         * modules/mbfile: Likewise.
10421         * modules/mbiter: Likewise.
10422         * modules/mbuiter: Likewise.
10423         * modules/netdb: Likewise.
10424         * modules/netinet_in: Likewise.
10425         * modules/nproc: Likewise.
10426         * modules/pagealign_alloc: Likewise.
10427         * modules/poll: Likewise.
10428         * modules/printf-frexp: Likewise.
10429         * modules/pthread: Likewise.
10430         * modules/putenv: Likewise.
10431         * modules/random_r: Likewise.
10432         * modules/relocatable-prog: Likewise.
10433         * modules/search: Likewise.
10434         * modules/select: Likewise.
10435         * modules/selinux-h: Likewise.
10436         * modules/settime: Likewise.
10437         * modules/signal: Likewise.
10438         * modules/size_max: Likewise.
10439         * modules/socklen: Likewise.
10440         * modules/ssize_t: Likewise.
10441         * modules/stdarg: Likewise.
10442         * modules/stdbool: Likewise.
10443         * modules/stddef: Likewise.
10444         * modules/stdint: Likewise.
10445         * modules/stdio: Likewise.
10446         * modules/stdlib: Likewise.
10447         * modules/string: Likewise.
10448         * modules/strings: Likewise.
10449         * modules/sys_file: Likewise.
10450         * modules/sys_ioctl: Likewise.
10451         * modules/sys_select: Likewise.
10452         * modules/sys_socket: Likewise.
10453         * modules/sys_stat: Likewise.
10454         * modules/sys_time: Likewise.
10455         * modules/sys_times: Likewise.
10456         * modules/sys_utsname: Likewise.
10457         * modules/sys_wait: Likewise.
10458         * modules/sysexits: Likewise.
10459         * modules/time: Likewise.
10460         * modules/times: Likewise.
10461         * modules/tmpfile: Likewise.
10462         * modules/trim: Likewise.
10463         * modules/unistd: Likewise.
10464         * modules/wchar: Likewise.
10465         * modules/wctype: Likewise.
10466
10467 2009-09-17  Bruno Haible  <bruno@clisp.org>
10468
10469         Make getdate.y compile on QNX and NetBSD 5 / i386.
10470         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10471         TIME_T_FITS_IN_LONG_INT.
10472         * lib/getdate.y (long_time_t): New type.
10473         (relative_time): Change type of 'seconds' field to long_time_t.
10474         (get_date): Update types of local variables. Check against overflow
10475         during conversion from long_time_t to time_t.
10476         Reported by Matt Kraai <kraai@ftbfs.org>
10477         and Hasso Tepper <hasso@netbsd.org>.
10478
10479 2009-09-17  Bruno Haible  <bruno@clisp.org>
10480
10481         * modules/COPYING: Update copyright years.
10482         * modules/README: Likeiwse.
10483         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10484         Reported by Ian Beckwith <ianb@erislabs.net>.
10485
10486 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10487
10488         * users.txt: Update references for gnuit package.
10489
10490 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10491
10492         * m4/getdelim.m4: Fix typo in copyright line.
10493
10494 2009-09-17  Bruno Haible  <bruno@clisp.org>
10495
10496         * lib/atoll.c: Use the standard header with GPL copyright.
10497         * lib/argz.in.h: Likewise.
10498         * lib/glob.c: Likewise.
10499         * lib/glob-libc.h: Likewise.
10500         * lib/random_r.c: Likewise.
10501         * lib/siglist.h: Likewise.
10502         * lib/strsignal.c: Likewise.
10503         Reported by Ian Beckwith <ianb@erislabs.net>.
10504
10505 2009-09-17  Eric Blake  <ebb9@byu.net>
10506
10507         rmdir: ensure correct dependency order
10508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10509
10510 2009-09-17  Bruno Haible  <bruno@clisp.org>
10511
10512         Disable assertion that fails on NetBSD 5 / i386.
10513         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10514         Reported by Sam Steingold <sds@gnu.org>
10515         and Hasso Tepper <hasso@netbsd.org>.
10516
10517 2009-09-16  Eric Blake  <ebb9@byu.net>
10518
10519         unlinkdir: port to mingw
10520         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10521         on which no one can unlink a directory.
10522
10523         stdlib: sort witness names
10524         * modules/stdlib (Makefile.am): Sort replacements.
10525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10526         * lib/stdlib.in.h: Likewise.
10527
10528         parse-duration-tests: avoid link failure
10529         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10530         LIBINTL.
10531         Reported by Tom G. Christensen.
10532
10533         openat-tests: ensure unlinkat behaves like rmdir
10534         * tests/test-rmdir.c (main): Factor guts...
10535         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10536         * modules/rmdir-tests (Files): Ship new file.
10537         * modules/openat-tests: New test.
10538         * tests/test-unlinkat.c: Likewise.
10539
10540         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10541         * modules/rmdir-errno (Status, Notice): Now obsolete.
10542
10543         rmdir: work around cygwin 1.5.x and mingw bugs
10544         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10545         * lib/rmdir.c (rmdir): Work around it.
10546         * modules/rmdir (Status, Notice): No longer obsolete.
10547         (Files): Add dos.m4.
10548         (Depends-on): Add unistd.
10549         (configure.ac): Set witnesses.
10550         (License): Relax to LGPLv2+.
10551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10552         * modules/unistd (Makefile.am): Substitute witnesses.
10553         * lib/unistd.in.h (rmdir): Declare replacement.
10554         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10555         * modules/rmdir-tests: New tests.
10556         * tests/test-rmdir.c: Likewise.
10557
10558 2009-09-15  Eric Blake  <ebb9@byu.net>
10559
10560         fchdir: improve use of replacement functions
10561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10563         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10564         REPLACE_CLOSEDIR.
10565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10566         * modules/sys_stat (Makefile.am): Substitute correct witness.
10567         * modules/dirent (Makefile.am): Likewise.
10568         * modules/unistd (Makefile.am): Likewise.
10569         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10570         * lib/unistd.in.h (dup): Likewise.
10571         * lib/sys_stat.in.h (fstat): Likewise.
10572
10573         maint: ignore gnulib-tool temp files
10574         * .gitignore: Ignore files created during gnulib-tool --test.
10575
10576 2009-09-13  Jim Meyering  <meyering@redhat.com>
10577
10578         posixtm: don't reject a time that specify "60" as the number of seconds
10579         * lib/posixtm.c (posixtime): The code to reject invalid dates
10580         would also reject a time specified with the .60 suffix.
10581         But POSIX allows that, in order to accommodate leap seconds.
10582         So don't reject it.
10583         (main): Adjust tests accordingly.
10584         * modules/posixtm (Depends-on): Add stpcpy.
10585
10586 2009-09-11  Jim Meyering  <meyering@redhat.com>
10587
10588         announce-gen: include [$release_type] in emitted Subject:
10589         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10590         e.g., [stable] in the emitted Subject: line.
10591
10592 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10593
10594         Remove obsolete macros from several modules.
10595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10596         obsolete Autoconf macros with their modern counterparts.
10597         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10598         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10601         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10602         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10605         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10606         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10607         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10609         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10610         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10612         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10613         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10614         * m4/time_r.m4 (gl_TIME_R): Likewise.
10615         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10616         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10617         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10618
10619         Fix copyright header in build-aux scripts.
10620         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10621         recommendation.
10622         * build-aux/ncftpput-ftp: Likewise.
10623         * build-aux/update-copyright: Likewise.
10624
10625 2009-09-09  Eric Blake  <ebb9@byu.net>
10626
10627         test-link: allow Linux choice of errno
10628         * tests/test-link.c (main): Relax test for alternate error.
10629
10630         strndup: fix improper m4 caching
10631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10632         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10633         (gl_PREREQ_STRNDUP): Delete.
10634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10635         * modules/string (Makefile.am): Substitute it.
10636         * lib/string.in.h (strndup): Modernize prototype.
10637
10638         getcwd: port to mingw
10639         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10640         different from the POSIX assumptions made throughout the getcwd
10641         module; fortunately, the mingw getcwd does not need replacement.
10642         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10643         * modules/getcwd-tests: New test.
10644         * tests/test-getcwd.c: Likewise.
10645
10646         link: fix platform bugs
10647         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10648         * lib/link.c (link): Work around them.  Fix related mingw bug.
10649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10650         * modules/unistd (Makefile.am): Substitute it.
10651         * lib/unistd.in.h (link): Declare replacement.
10652         * doc/posix-functions/link.texi (link): Document this.
10653         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10654
10655         test-link: consolidate into single C program, test more cases
10656         * tests/test-link.sh: Delete.
10657         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10658         at least Cygwin and Solaris.
10659         * modules/link-tests (Files): Remove unused file.
10660         (Depends-on): Add errno, sys_stat.
10661         (Makefile.am): Simplify.
10662
10663 2009-09-08  Bruno Haible  <bruno@clisp.org>
10664
10665         Work around towlower, towupper bug on mingw.
10666         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10667         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10668         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10669         * doc/posix-functions/towupper.texi: Likewise.
10670         Reported by Eric Blake.
10671
10672 2009-09-08  Jim Meyering  <meyering@redhat.com>
10673
10674         build: don't try to run autoheader if we don't use it
10675         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10676         is not used in configure.ac.
10677
10678 2009-09-08  Eric Blake  <ebb9@byu.net>
10679
10680         euidaccess: fix compilation error
10681         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10682
10683         rawmemchr: relax license
10684         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10685         okay.
10686         Reported by Jim Meyering.
10687
10688         mkfifoat: new module
10689         * modules/mkfifoat: New file.
10690         * lib/mkfifoat.c: Likewise.
10691         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10692         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10693         * modules/sys_stat (Makefile.am): Use them.
10694         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10695         * MODULES.html.sh (File system functions): Mention module.
10696         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10697         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10698         * modules/mkfifoat-tests: New test.
10699         * tests/test-mkfifoat.c: Likewise.
10700
10701         strchrnul: relax license
10702         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10703         okay.
10704         Reported by Jim Meyering.
10705
10706 2009-09-08  Eric Blake  <ebb9@byu.net>
10707
10708         fstatat: fix compilation on Solaris
10709         * lib/fstatat.c (includes): Add fcntl.h.
10710         Reported by Pádraig Brady.
10711
10712 2009-09-07  Eric Blake  <ebb9@byu.net>
10713
10714         rename: modernize replacement
10715         * modules/rename (Depends-on): Add stdio.
10716         (configure.ac): Declare witness.
10717         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10718         stdio take care of replacement.
10719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10720         * modules/stdio (Makefile.am): Substitute them.
10721         * lib/stdio.in.h (rename): Declare replacement.
10722         * lib/rename.c (includes): Allow cross-compilation to non-windows
10723         machines.
10724         * doc/posix-functions/rename.texi (rename): Improve
10725         documentation.
10726
10727         stdio: sort witness names
10728         * modules/stdio (Makefile.am): Sort replacements.
10729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10730         * lib/stdio.in.h: Likewise.
10731
10732         getcwd: minor cleanups
10733         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10734         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10735
10736         openat: provide more convenience names
10737         * modules/faccessat (configure.ac): Add C witness.
10738         * lib/unistd.in.h (readlinkat): Fix typo.
10739         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10740         convenience wrappers.
10741         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10742         wrappers in syntax checks.
10743
10744 2009-09-06  Eric Blake  <ebb9@byu.net>
10745
10746         doc: fix comments in recent patches
10747         * lib/faccessat.c: Mention correct function.
10748         * lib/fchmodat.c: Likewise.
10749         * lib/fchownat.c: Likewise.
10750         * lib/symlinkat.c: Likewise.
10751         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10752         constants.
10753
10754         faccessat, symlinkat: continue cleanup of previous patch
10755         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10756         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10757         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10759         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10760         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10761         set.
10762
10763 2009-09-06  Bruno Haible  <bruno@clisp.org>
10764
10765         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10766         (fstatat): Declare if GNULIB_FSTATAT is set.
10767         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10768         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10769         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10770         * modules/fcntl-h (Files): Remove m4/openat.m4.
10771         * modules/sys_stat (Files): Remove m4/openat.m4.
10772         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10773         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10774         * modules/unistd (Files): Remove m4/openat.m4.
10775         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10776         GNULIB_OPENAT.
10777         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10778         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10780         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10781         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10782         gl_OPENAT_DEFAULTS.
10783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10784         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10785         Don't require gl_OPENAT_DEFAULTS.
10786         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10787         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10788         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10789         (gl_OPENAT_DEFAULTS): Remove macro.
10790
10791 2009-09-06  Bruno Haible  <bruno@clisp.org>
10792
10793         * modules/openat (configure.ac): Remove unneeded witness.
10794
10795 2009-09-06  Bruno Haible  <bruno@clisp.org>
10796
10797         Set errno to ENOSYS when a function is entirely unsupported.
10798         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10799         EOPNOTSUPP.
10800         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10801         * modules/chown (Depends-on): Remove errno.
10802
10803 2009-09-06  Bruno Haible  <bruno@clisp.org>
10804
10805         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10806
10807 2009-09-06  Bruno Haible  <bruno@clisp.org>
10808
10809         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10810
10811 2009-09-06  Ben Pfaff  <blp@gnu.org>
10812             Bruno Haible  <bruno@clisp.org>
10813
10814         Work around a glibc bug in strtok_r.
10815         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10816         Undefine if UNDEFINE_STRTOK_R is set.
10817         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10819         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10821         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10822         UNDEFINE_STRTOK_R.
10823         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10824
10825 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10826
10827         exclude: minor fix
10828         * lib/exclude.c: Include wctype.h
10829
10830 2009-09-06  Akim Demaille  <demaille@gostai.com>
10831
10832         bootstrap: improve error message
10833         * build-aux/bootstrap (find_tool): Upon failure, report the list
10834         of candidates.
10835         Honor the initial value of the envvar.
10836
10837 2009-09-05  Eric Blake  <ebb9@byu.net>
10838
10839         symlinkat: new module
10840         * modules/symlinkat: New file.
10841         * lib/symlinkat.c: Likewise.
10842         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10844         * modules/unistd (Makefile.am): Use them.
10845         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10846         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10847         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10848         * MODULES.html.sh (File system functions): Mention module.
10849         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10850         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10851         * modules/symlinkat-tests: New test.
10852         * tests/test-symlinkat.c: Likewise.
10853
10854         test-openat-safer: add more checks
10855         * tests/test-openat-safer.c (main): Check more code paths.
10856
10857 2009-09-05  Jim Meyering  <meyering@redhat.com>
10858
10859         syntax-check: detect unnecessary inclusion of openat.h
10860         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10861
10862 2009-09-05  Bruno Haible  <bruno@clisp.org>
10863
10864         Support towlower, towupper.
10865         * doc/posix-functions/towlower.texi: Mention module wctype.
10866         * doc/posix-functions/towupper.texi: Likewise.
10867         * lib/wctype.in.h (towlower, towupper): New functions.
10868         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10869         (ASSERT): New macro.
10870         (e): New variable.
10871         (main): Test also towlower, towupper. Test WEOF argument.
10872         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10873
10874 2009-09-05  Bruno Haible  <bruno@clisp.org>
10875
10876         Fix conversion behaviour when the input is invalid.
10877         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10878         mark occurring in first pass of indirect conversion.
10879         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10880         input.
10881         Found by clang's static analyzer.
10882
10883 2009-09-05  Bruno Haible  <bruno@clisp.org>
10884
10885         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10886         where direct conversion is possible.
10887
10888 2009-09-04  Eric Blake  <ebb9@byu.net>
10889
10890         openat: fail with ENOENT on empty name
10891         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10892         buffer.
10893
10894         link-follow: fix logic bug in prior patch
10895         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10896         reversed sense of yes and no in prior patch.  Avoid confusing
10897         compilation failure with desired semantics.
10898
10899         link-follow: accomodate mingw and cross-compilation
10900         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10901         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10902         cross-compilation results to -1, to make linkat easier to
10903         implement when cross-compiling.  Trivially support mingw.
10904         * modules/link-follow (configure.ac): Call new name.
10905         * NEWS: Mention this.
10906
10907 2009-09-03  Eric Blake  <ebb9@byu.net>
10908
10909         faccessat: compile replacement
10910         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10911         needed.
10912
10913         fts: fix compilation error
10914         * lib/fts.c (includes): Re-add "openat.h", for
10915         openat_needs_fchdir.
10916
10917         faccessat: new module
10918         * modules/faccessat: New file.
10919         * lib/faccessat.c: Likewise.
10920         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10922         * modules/unistd (Makefile.am): Use it.
10923         * lib/unistd.in.h (faccessat): Declare it.
10924         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10925         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10926         * MODULES.html.sh (File system functions): Mention it.
10927         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10928         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10929
10930         euidaccess: prefer POSIX over non-standard implementation
10931         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10932         * lib/euidaccess.c (euidaccess): Use it if available.
10933
10934         openat: make template easier to use
10935         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10936         AT_FUNC_F2 to be undefined.
10937         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10938         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10939         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10940         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10941         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10942         Likewise.
10943         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10944         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10945         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10946         Likewise.
10947
10948         openat: declare in POSIX headers
10949         * NEWS: Mention this.
10950         * modules/openat (configure.ac): Declare witnesses.
10951         (Depends-on): Add fcntl-h, sys_stat, unistd.
10952         (Include): Mention correct headers.
10953         * modules/fcntl-h (Depends-on): Add link-warning.
10954         (Files): Add openat.m4.
10955         (Makefile.am): Substitute witnesses.
10956         * modules/sys_stat (Files, Makefile.am): Likewise.
10957         * modules/unistd (Files, Makefile.am): Likewise.
10958         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10959         (gl_OPENAT_DEFAULTS): New macro.
10960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10962         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10963         (SYS_STAT_H): Remove unused variable.
10964         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10965         * lib/fcntl--.h (includes): Remove unneeded header.
10966         * lib/openat-safer.c (includes): Likewise.
10967         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10968         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10969         appropriate headers.
10970         (__OPENAT_PREFIX): Delete.
10971         * lib/fcntl.in.h (openat): Provide declaration.
10972         (AT_FDCWD): Fix Solaris bug.
10973         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10974         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10975         * lib/fchmodat.c (includes):  Adjust to find declaration.
10976         * lib/fchownat.c (includes): Likewise.
10977         * lib/mkdirat.c (includes): Likewise.
10978         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10979         still visible.
10980
10981 2009-09-02  Eric Blake  <ebb9@byu.net>
10982
10983         errno: use consistently
10984         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10985         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10986         * lib/canonicalize.c (ELOOP): Likewise.
10987         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10988         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10989         * lib/lchown.c (EOPNOTSUPP): Likewise.
10990         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10991         * lib/savewd.c (ESTALE): Likewise.
10992         * lib/settime.c (ENOSYS): Likewise.
10993         * lib/utimens.c (ENOSYS): Likewise.
10994         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10995         * lib/chdir-safer.c (ELOOP): Likewise.
10996         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10997         * modules/c-stack (Depends-on): Add errno.
10998         * modules/canonicalize (Depends-on): Likewise.
10999         * modules/chdir-safer (Depends-on): Likewise.
11000         * modules/fdopendir (Depends-on): Likewise.
11001         * modules/inet_ntop (Depends-on): Likewise.
11002         * modules/inet_pton (Depends-on): Likewise.
11003         * modules/lchown (Depends-on): Likewise.
11004         * modules/openat (Depends-on): Likewise.
11005         * modules/savewd (Depends-on): Likewise.
11006         * modules/settime (Depends-on): Likewise.
11007         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11008
11009         fts: avoid leaking fds
11010         * modules/fts (Depends-on): Add cloexec.
11011         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11012         flag.
11013
11014         fts: make directory fds more robust
11015         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11016         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11017
11018         backupfile, chdir-long, fts, savedir: make safer
11019         * lib/backupfile.c (includes): Use "dirent--.h", since
11020         numbered_backup can write to stderr during readdir.
11021         * lib/savedir.c (includes): Likewise.
11022         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11023         emulation can write to stderr on failure.
11024         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11025         * lib/getcwd.c: Document why opendir_safer is unused.
11026         * lib/glob.c: Likewise.
11027         * lib/scandir.c: Likewise.
11028         * lib/openat-proc.c: Likewise, for open_safer.
11029         * modules/backupfile (Depends-on): Add dirent-safer.
11030         * modules/savedir (Depends-on): Likewise.
11031         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11032         * modules/chdir-long (Depends-on): Add openat-safer.
11033
11034         openat-safer: new module
11035         * modules/openat-safer: New file.
11036         * lib/openat-safer.c: Likewise.
11037         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11038         * lib/fcntl-safer.h (openat_safer): Declare.
11039         * lib/fcntl--.h (openat): Override.
11040         * MODULES.html.sh (File descriptor based I/O): Mention it.
11041         * lib/openat.h: Add double-inclusion guards.
11042         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11043         "fcntl--.h", so we can implement openat.
11044         * modules/openat-safer-tests: New test.
11045         * tests/test-openat-safer.c: New file.
11046
11047         dirent-safer: new module
11048         * modules/dirent-safer: New file.
11049         * lib/dirent--.h: Likewise.
11050         * lib/dirent-safer.h: Likewise.
11051         * lib/opendir-safer.c: Likewise.
11052         * m4/dirent-safer.m4: Likewise.
11053         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11054         * modules/dirent-safer-tests: New test.
11055         * tests/test-dirent-safer.c: New file.
11056         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11057
11058         fdopendir: optimize on mingw
11059         * lib/unistd.in.h (_gl_directory_name): New prototype.
11060         * lib/fchdir.c (_gl_directory_name): Implement it.
11061         (fchdir): Use it to simplify implementation.
11062         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11063         fchdir, when available, to avoid calling [f]chdir().
11064
11065         fdopendir: split into its own module
11066         * lib/openat.c (fdopendir): Move...
11067         * lib/fdopendir.c: ...into new file.
11068         * modules/fdopendir: New module.
11069         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11070         * modules/openat (Depends-on): Add fdopendir.
11071         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11072         fdopendir here.
11073         * modules/savedir (Depends-on): Only need fdopendir, not full
11074         openat.
11075         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11076         * lib/openat.h (fdopendir): Drop prototype.
11077         * lib/dirent.in.h (fdopendir): Provide prototype.
11078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11079         * modules/dirent (Makefile.am): Substitute them.
11080         * MODULES.html.sh (File system functions): Mention it.
11081         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11082         * modules/fdopendir-tests: New file.
11083         * tests/test-fdopendir.c: Likewise.
11084
11085         fchdir: use more consistent macro convention
11086         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11087         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11088         REPLACE_FCHDIR, rather than relying on config.h macros.
11089         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11090         inside a single make-time REPLACE_FCHDIR block, rather than using
11091         the config.h FCHDIR_REPLACEMENT.
11092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11093         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11094         Manage fstat replacement.
11095         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11096         REPLACE_FCHDIR.
11097         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11098         (Makefile.am): Substitute REPLACE_FCHDIR.
11099         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11100         FCHDIR_REPLACEMENT.
11101         * lib/dup-safer.c (dup_safer): Likewise.
11102         * lib/dup2.c (rpl_dup2): Likewise.
11103         * lib/dup3.c (rpl_dup3): Likewise.
11104         * lib/open.c (rpl_open): Likewise.
11105
11106         fchdir: simplify error handling, and support dup3
11107         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11108         stdbool, malloc-posix, realloc-posix.
11109         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11110         (ensure_dirs_slot): Return false on allocation failure.
11111         (rpl_dup2): Delete.
11112         (_gl_register_dup): New function.
11113         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11114         (_gl_register_fd): Close fd on allocation failure.
11115         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11116         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11117         prototype.
11118         (rpl_dup2_fchdir): Delete prototype.
11119         * lib/open.c (open): Update caller.
11120         * lib/dup2.c (dup2): Track fchdir metadata.
11121         * lib/dup3.c (dup3): Likewise.
11122         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11124
11125 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11126
11127         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11128         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11129         don't pass arguments to AC_OUTPUT.
11130
11131 2009-09-02  Bruno Haible  <bruno@clisp.org>
11132
11133         * modules/mkdtemp (License): Relicense under LGPLv2+.
11134         Reported by Paolo Bonzini.
11135
11136 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11137
11138         Replace uses of obsolete autoconf macros in Jim's modules.
11139         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11140         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11141         can evoke a warning from autoconf when run with -Wobsolete
11142         enabled.  They were declared obsolete for good reasons (see
11143         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11144         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11145         should not continue using the deprecated macros.
11146         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11147         obsolete Autoconf macros with modern counterparts.
11148         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11149         * m4/dos.m4 (gl_AC_DOS): Likewise.
11150         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11152         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11153         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11154         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11155         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11156         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11157         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11158         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11159         Likewise.
11160         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11161         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11162         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11163         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11164         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11165         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11166
11167 2009-09-01  Eric Blake  <ebb9@byu.net>
11168
11169         fchdir: fix off-by-one bug in previous patch
11170         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11171         (_gl_unregister_fd): Delete useless if.
11172
11173 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11174
11175         maint.mk: sort the list of syntax-check rules
11176         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11177         easier to get a sense of progress when the rules are run sequentially
11178         and take a long time.
11179
11180 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11181
11182         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11183         * modules/netinet_in: Likewise.
11184         * modules/sys_file: Likewise.
11185         * modules/sys_ioctl: Likewise.
11186         * modules/sys_select: Likewise.
11187         * modules/sys_socket: Likewise.
11188         * modules/sys_stat: Likewise.
11189         * modules/sys_time: Likewise.
11190         * modules/sys_times: Likewise.
11191         * modules/sys_utsname: Likewise.
11192         * modules/sys_wait: Likewise.
11193
11194 2009-09-01  Jim Meyering  <meyering@redhat.com>
11195
11196         fts: help ensure that return values are not ignored
11197         * lib/fts_.h (__GNUC_PREREQ): Define.
11198         (__attribute_warn_unused_result__): Define.
11199         (fts_children, fts_close, fts_open, fts_read): Declare with
11200         __attribute_warn_unused_result__.
11201
11202         fts: fts_close now fails also when closing a dir file descriptor fails
11203         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11204         and propagate to caller, along with errno.
11205
11206         announce-gen: correct formatting in --help output
11207         * build-aux/announce-gen (usage): Move the one-line description in
11208         --help output "up", to where it belongs, just after Usage:.
11209
11210 2009-08-31  Eric Blake  <ebb9@byu.net>
11211
11212         fchdir: port to mingw
11213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11214         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11215         opened, then use a substitute.
11216         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11217         replacement.
11218         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11219         (_gl_register_fd): No need to check stat if open already filters
11220         all directories.
11221         (fchdir): Fix error condition to match POSIX.
11222         * modules/fchdir (Depends-on): Add sys_stat.
11223         * doc/posix-functions/open.texi (open): Document the limitation.
11224         * modules/fchdir-tests: New file.
11225         * tests/test-fchdir.c: Likewise.
11226
11227         canonicalize: allow cross-testing from cygwin to mingw
11228         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11229         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11230         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11231         Likewise.
11232         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11233         target does not support symlinks.
11234         * tests/test-canonicalize-lgpl.sh: Likewise.
11235
11236         chown: avoid compilation warning on mingw
11237         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11238         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11239         mingw.
11240         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11241         * modules/chown (Depends-on): Add errno.
11242
11243 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11244
11245         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11246         command.
11247
11248 2009-08-31  Jim Meyering  <meyering@redhat.com>
11249
11250         canonicalize: remove useless initialization
11251         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11252         initialization of local, "end".
11253
11254 2009-08-30  Bruno Haible  <bruno@clisp.org>
11255
11256         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11257         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11258         ENOSYS.
11259
11260 2009-08-30  Bruno Haible  <bruno@clisp.org>
11261
11262         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11263         /usr/xpg4/bin/tr when it exists.
11264         * tests/test-pipe-filter-gi1.sh: Likewise.
11265
11266 2009-08-30  Bruno Haible  <bruno@clisp.org>
11267
11268         Work around deficient /usr/bin/id program on Solaris.
11269         * tests/test-file-has-acl.sh (ID): New variable.
11270         * tests/test-set-mode-acl.sh (ID): Likewise.
11271         * tests/test-copy-acl.sh (ID): Likewise.
11272         * tests/test-copy-file.sh (ID): Likewise.
11273
11274 2009-08-30  Bruno Haible  <bruno@clisp.org>
11275
11276         New module 'xstriconveh'.
11277         * lib/xstriconveh.h: New file.
11278         * lib/xstriconveh.c: New file.
11279         * modules/xstriconveh: New file.
11280
11281 2009-08-30  Bruno Haible  <bruno@clisp.org>
11282
11283         Make it easier to use mem_cd_iconveh.
11284         * lib/striconveh.h (iconveh_t): New type.
11285         (iconveh_open, iconveh_close): New declarations.
11286         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11287         with a single 'const iconveh_t *' argument.
11288         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11289         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11290         with a single 'const iconveh_t *' argument.
11291         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11292         * tests/test-striconveh.c (main): Update.
11293         * NEWS: Mention the change.
11294
11295 2009-08-30  Bruno Haible  <bruno@clisp.org>
11296
11297         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11298         problem.
11299
11300 2009-08-30  Bruno Haible  <bruno@clisp.org>
11301
11302         Work around iconv_open problem on Solaris.
11303         * lib/iconv_open-solaris.gperf: New file.
11304         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11305         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11306         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11307         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11308         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11309         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11310
11311 2009-08-29  Jim Meyering  <meyering@redhat.com>
11312
11313         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11314         * top/maint.mk (cvs-check): Remove target; it was just an alias
11315         to the better-named vc-diff-check.
11316         (maintainer-distcheck): Remove rule.  It was used only from
11317         the (alpha/beta/major) target, and all of its commands but one
11318         were coreutils-specific.
11319         (vc-dist): Remove rule.
11320         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11321         Run vc-diff-check, not vc-dist.
11322         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11323
11324 2009-08-27  Bruno Haible  <bruno@clisp.org>
11325
11326         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11327         of 0.
11328
11329 2009-08-27  Bruno Haible  <bruno@clisp.org>
11330
11331         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11332         compilers.
11333         * doc/func.texi: Document the SunPRO C bug.
11334
11335 2009-08-27  Bruno Haible  <bruno@clisp.org>
11336
11337         Fix link error on Solaris.
11338         * tests/test-parse-duration.c (xstrdup): Remove function.
11339
11340 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11341
11342         ignore-value: handle pointer types, too
11343         * lib/ignore-value.h (__attribute__): Remove definition.
11344         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11345         of a more concise and more-often effective "(void) i" statement.
11346         (ignore_ptr): New function to suppress warnings from functions that
11347         return pointers, and to make it explicit that one function doesn't
11348         handle all cases.
11349
11350 2009-08-25  Bruno Haible  <bruno@clisp.org>
11351
11352         dup2: work around a Linux bug.
11353         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11354         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11355         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11356         Reported by Simon Josefsson.
11357
11358 2009-08-25  Jim Meyering  <meyering@redhat.com>
11359
11360         libguestfs uses gnulib
11361         * users.txt: Add libguestfs.
11362
11363 2009-08-24  Eric Blake  <ebb9@byu.net>
11364
11365         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11366         * lib/pipe2.c (includes): Add binary-io.h.
11367         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11368
11369 2009-08-24  Bruno Haible  <bruno@clisp.org>
11370
11371         Tolerate declared but missing accept4 syscall.
11372         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11373         available.
11374         * lib/sys_socket.in.h (accept4): If the function is already present,
11375         override it.
11376         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11377         * modules/accept4 (Makefile.am): Compile accept4.c always.
11378         Reported by Paolo Bonzini and Eric Blake.
11379
11380 2009-08-23  Bruno Haible  <bruno@clisp.org>
11381
11382         New module 'accept4'.
11383         * lib/sys_socket.in.h (accept4): New declaration.
11384         * lib/accept4.c: New file.
11385         * m4/accept4.m4: New file.
11386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11387         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11388         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11389         HAVE_ACCEPT4.
11390         * modules/accept4: New file.
11391         * doc/glibc-functions/accept4.texi: Mention the new module.
11392
11393 2009-08-24  Jim Meyering  <meyering@redhat.com>
11394
11395         progname: also set global program_invocation_name, when possible
11396         Before this change, a libtool-enabled program that calls glibc's
11397         error function would report the program name as
11398         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11399         * modules/progname (configure.ac): Check for a declaration of
11400         program_invocation_name.
11401         * lib/progname.c:  Include <errno.h>.
11402         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11403         Set program_invocation_name.
11404
11405 2009-08-23  Bruno Haible  <bruno@clisp.org>
11406
11407         * lib/dup3.c: Include <string.h>.
11408
11409 2009-08-23  Bruno Haible  <bruno@clisp.org>
11410
11411         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11412         * lib/pipe2.c (pipe2): Likewise.
11413         Suggested by Eric Blake.
11414
11415 2009-08-23  Bruno Haible  <bruno@clisp.org>
11416
11417         Tolerate declared but missing dup3 syscall.
11418         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11419         * lib/unistd.in.h (dup3): If the function is already present,
11420         override it.
11421         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11422         * modules/dup3 (Makefile.am): Compile dup3.c always.
11423         Reported by Paolo Bonzini.
11424
11425 2009-08-23  Bruno Haible  <bruno@clisp.org>
11426
11427         Tolerate declared but missing pipe2 syscall.
11428         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11429         available.
11430         * lib/unistd.in.h (pipe2): If the function is already present,
11431         override it.
11432         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11433         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11434         Reported by Paolo Bonzini.
11435
11436 2009-08-23  Bruno Haible  <bruno@clisp.org>
11437
11438         * lib/pipe2.c (pipe2): Move #ifs inside function.
11439
11440 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11441
11442         quotearg: document limitations of quote_these_too
11443         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11444         those limitations are created.
11445         * lib/quotearg.h (set_char_quoting): Document that digits and
11446         letters that are special after backslash are not permitted.
11447         (quotearg_char): Cross-reference set_char_quoting documentation.
11448
11449 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11450
11451         quotearg: implement custom_quoting_style
11452         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11453         right_quote fields.
11454         (set_custom_quoting): New public function.
11455         (quotearg_buffer_restyled): Add left_quote and right_quote
11456         arguments, handle them very much like locale quoting, and update
11457         all uses.
11458         (quotearg_n_custom): New public function.
11459         (quotearg_n_custom_mem): New public function.
11460         (quotearg_custom): New public function.
11461         (quotearg_custom_mem): New public function.
11462         * lib/quotearg.h: Prototype and document new public functions.
11463         (enum quoting_style): For escape_quoting_style and
11464         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11465         ignored even though they're otherwise like c_quoting_style.
11466         Add custom_quoting_style member and document with comparison to
11467         clocale_quoting_style.
11468         * tests/test-quotearg.c (custom_quotes): New array.
11469         (custom_results): New array.
11470         (main): Extend to test custom quoting.
11471
11472 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11473
11474         quotearg: fix right quote escaping when it's in quote_these_too
11475         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11476         quote, be sure to prepend only one backslash.
11477         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11478         (main): Test it.
11479
11480 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11481
11482         quotearg-tests: test escaping of embedded locale quotes
11483         * tests/test-quotearg.c (struct result_strings): Add member for
11484         new input.
11485         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11486         (inputs): Add new input.
11487         (results_g): Add expected results.
11488         (flag_results): Likewise.
11489         (locale_results): Likewise.
11490         (compare_strings): Check those.
11491
11492 2009-08-23  Bruno Haible  <bruno@clisp.org>
11493
11494         Tests for module 'dup3'.
11495         * modules/dup3-tests: New file.
11496         * tests/test-dup3.c: New file.
11497
11498         New module 'dup3'.
11499         * lib/unistd.in.h (dup3): New declaration.
11500         * lib/dup3.c: New file.
11501         * m4/dup3.m4: New file.
11502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11503         HAVE_DUP3.
11504         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11505         * modules/dup3: New file.
11506         * doc/glibc-functions/dup3.texi: Mention the new module.
11507
11508 2009-08-23  Bruno Haible  <bruno@clisp.org>
11509
11510         Tweak the dup2 test.
11511         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11512         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11513         the test file is still empty. Fix argument order of lseek.
11514
11515 2009-08-23  Bruno Haible  <bruno@clisp.org>
11516
11517         Avoid test link errors when the modules getopt-gnu, gettext are used.
11518         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11520
11521 2009-08-23  Bruno Haible  <bruno@clisp.org>
11522
11523         Fix getdtablesize() on mingw.
11524         * lib/getdtablesize.c (getdtablesize): Implement differently.
11525         * lib/unistd.in.h (getdtablesize): Improve comment.
11526
11527 2009-08-23  Bruno Haible  <bruno@clisp.org>
11528
11529         New module 'mkostemp'.
11530         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11531         * lib/stdlib.in.h (mksotemp): New declaration.
11532         * lib/mkostemp.c: New file, from glibc with modifications.
11533         * lib/tempname.h (GT_FILE): Remove outdated comment.
11534         (gen_tempname): Add flags argument.
11535         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11536         (__GT_FILE): Map to 1.
11537         (small_open, large_open): Remove macros.
11538         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11539         * lib/mkstemp.c (mkstemp): Update.
11540         * lib/mkdtemp.c (mkdtemp): Likewise.
11541         * m4/mkostemp.m4: New file.
11542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11543         HAVE_MKOSTEMP.
11544         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11545         HAVE_MKOSTEMP.
11546         * modules/mkostemp: New file, based on modules/mkstemp.
11547         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11548         * NEWS: Mention the change.
11549
11550 2009-08-23  Bruno Haible  <bruno@clisp.org>
11551
11552         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11553         Reported by Eric Blake.
11554
11555 2009-08-23  Bruno Haible  <bruno@clisp.org>
11556
11557         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11558         Reported by Eric Blake.
11559
11560 2009-08-23  Bruno Haible  <bruno@clisp.org>
11561
11562         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11563         * modules/pipe2 (Depends-on): Likewise.
11564
11565 2009-08-23  Eric Blake  <ebb9@byu.net>
11566
11567         fcntl-h: add O_TTY_INIT support
11568         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11569         * tests/test-fcntl-h.c (o): Test it.
11570         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11571
11572         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11573         * modules/fcntl: Move <fcntl.h> header replacement...
11574         * modules/fcntl-h: ...to new name, so as not to collide with
11575         like-named function.
11576         * tests/test-fcntl.c: Rename...
11577         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11578         * modules/fcntl-tests: Rename...
11579         * modules/fcntl-h-tests: ...to this.  Update test file name.
11580         * modules/chdir-long (Depends-on): Update clients.
11581         * modules/chdir-safer (Depends-on): Likewise.
11582         * modules/fcntl-safer (Depends-on): Likewise.
11583         * modules/fts (Depends-on): Likewise.
11584         * modules/mkancesdirs (Depends-on): Likewise.
11585         * modules/mkdir-p (Depends-on): Likewise.
11586         * modules/open (Depends-on): Likewise.
11587         * modules/savewd (Depends-on): Likewise.
11588         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11589         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11590
11591 2009-08-22  Bruno Haible  <bruno@clisp.org>
11592
11593         * modules/binary-io (License): Relicense under LGPL.
11594         * modules/pipe2 (License): Likewise.
11595
11596 2009-08-22  Bruno Haible  <bruno@clisp.org>
11597
11598         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11599         return value.
11600         * lib/pipe-filter-gi.c (filter_init): Likewise.
11601         Reported by Eric Blake.
11602
11603 2009-08-22  Bruno Haible  <bruno@clisp.org>
11604
11605         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11606         * modules/pipe (Depends-on): Add pipe2.
11607
11608 2009-08-22  Bruno Haible  <bruno@clisp.org>
11609
11610         Tests for module 'pipe2'.
11611         * modules/pipe2-tests: New file.
11612         * tests/test-pipe2.c: New file.
11613
11614         New module 'pipe2'.
11615         * lib/unistd.in.h (pipe2): New declaration.
11616         * lib/pipe2.c: New file.
11617         * m4/pipe2.m4: New file.
11618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11619         HAVE_PIPE2.
11620         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11621         * modules/pipe2: New file.
11622         * doc/glibc-functions/pipe2.texi: Mention the new module.
11623
11624 2009-08-22  Bruno Haible  <bruno@clisp.org>
11625
11626         Reference some new glibc functions.
11627         * doc/glibc-functions/accept4.texi: New file.
11628         * doc/glibc-functions/dup3.texi: New file.
11629         * doc/glibc-functions/mkostemp.texi: New file.
11630         * doc/glibc-functions/pipe2.texi: New file.
11631         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11632         (Glibc sys/socket.h): Refer to accept4.
11633         (Glibc unistd.h): Refer to dup3, pipe2.
11634         Reported by Eric Blake.
11635
11636 2009-08-22  Jim Meyering  <meyering@redhat.com>
11637             Bruno Haible  <bruno@clisp.org>
11638
11639         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11640         This makes it so packages using automake-1.11's silent-rules option
11641         can print e.g., a single "GEN    configmake.h" line, rather than
11642         the 30+ statements that perform the job.  If you want to see the
11643         actual commands, you can still run "make V=1".
11644         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11645         so that make output is abbreviated when those variables are defined
11646         appropriately.
11647         * modules/argz: Likewise.
11648         * modules/arpa_inet: Likewise.
11649         * modules/byteswap: Likewise.
11650         * modules/configmake: Likewise.
11651         * modules/dirent: Likewise.
11652         * modules/errno: Likewise.
11653         * modules/fcntl: Likewise.
11654         * modules/float: Likewise.
11655         * modules/fnmatch: Likewise.
11656         * modules/getopt-posix: Likewise.
11657         * modules/glob: Likewise.
11658         * modules/iconv_open: Likewise.
11659         * modules/inttypes: Likewise.
11660         * modules/localcharset: Likewise.
11661         * modules/locale: Likewise.
11662         * modules/math: Likewise.
11663         * modules/netdb: Likewise.
11664         * modules/netinet_in: Likewise.
11665         * modules/poll: Likewise.
11666         * modules/posix_spawnp-tests: Likewise.
11667         * modules/sched: Likewise.
11668         * modules/search: Likewise.
11669         * modules/selinux-h: Likewise.
11670         * modules/signal: Likewise.
11671         * modules/spawn: Likewise.
11672         * modules/stdarg: Likewise.
11673         * modules/stdbool: Likewise.
11674         * modules/stddef: Likewise.
11675         * modules/stdint: Likewise.
11676         * modules/stdio: Likewise.
11677         * modules/stdlib: Likewise.
11678         * modules/string: Likewise.
11679         * modules/strings: Likewise.
11680         * modules/sys_file: Likewise.
11681         * modules/sys_ioctl: Likewise.
11682         * modules/sys_select: Likewise.
11683         * modules/sys_socket: Likewise.
11684         * modules/sys_stat: Likewise.
11685         * modules/sys_time: Likewise.
11686         * modules/sys_times: Likewise.
11687         * modules/sys_utsname: Likewise.
11688         * modules/sys_wait: Likewise.
11689         * modules/sysexits: Likewise.
11690         * modules/time: Likewise.
11691         * modules/unistd: Likewise.
11692         * modules/wchar: Likewise.
11693         * modules/wctype: Likewise.
11694
11695 2009-08-22  Jim Meyering  <meyering@redhat.com>
11696
11697         announce-gen: detect write failure
11698         * build-aux/announce-gen: Add Coda at end.
11699         Remove equivalent-but-more-verbose block at top.
11700
11701 2009-08-19  Akim Demaille  <demaille@gostai.com>
11702
11703         bootstrap: --help to stdout.
11704         * bootstrap (usage): Don't send --help to stderr.
11705         Use a here doc instead of a long string.
11706
11707 2009-08-21  Eric Blake  <ebb9@byu.net>
11708
11709         test-popen-safer: split from test-popen
11710         * tests/test-popen.c (main): Move...
11711         * tests/test-popen.h: ...into new file.
11712         * tests/test-popen-safer2.c: New file.
11713         * modules/popen-tests (Files): Add test-popen.h.
11714         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11715         Suggested by Bruno Haible.
11716
11717         test-fcntl-safer: split from test-open
11718         * tests/test-open.c (main): Move...
11719         * tests/test-open.h: ...into new file.
11720         * tests/test-fcntl-safer.c: New file.
11721         * modules/open-tests (Files): Add test-open.h.
11722         * modules/fcntl-safer-tests: New file.
11723         Suggested by Bruno Haible.
11724
11725         test-fopen-safer: split from test-fopen
11726         * tests/test-fopen.c (main): Move...
11727         * tests/test-fopen.h: ...into new file.
11728         * tests/test-fopen-safer.c: New file.
11729         * modules/fopen-tests (Files): Add test-fopen.h.
11730         * modules/fopen-safer-tests: New file.
11731         Suggested by Bruno Haible.
11732
11733 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11734
11735         popen-safer: test O_CLOEXEC at run-time.
11736         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11737
11738 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11739
11740         fcntl: move more flags to the header
11741         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11742         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11743         * lib/fcntl.in.h: Do both things here.
11744
11745 2009-08-21  Jim Meyering  <meyering@redhat.com>
11746
11747         consistently remove $@-t before redirecting to it
11748         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11749         * modules/alloca-opt: Likewise.
11750         * modules/byteswap: Likewise.
11751         * modules/fnmatch: Likewise.
11752         * modules/getopt-posix: Likewise.
11753         * modules/glob: Likewise.
11754         * modules/poll: Likewise.
11755         * modules/posix_spawnp-tests: Likewise.
11756         * modules/sys_socket: Likewise.
11757         * modules/sysexits: Likewise.
11758
11759 2009-08-21  Eric Blake  <ebb9@byu.net>
11760
11761         popen: simplify access to original popen
11762         * lib/popen.c (rpl_popen): No need to worry about popen being a
11763         macro.
11764         Reported by Bruno Haible.
11765
11766 2009-08-20  Eric Blake  <ebb9@byu.net>
11767
11768         build: avoid some compiler warnings
11769         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11770         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11771         type.
11772         (new_exclude_segment, excluded_file_pattern_p)
11773         (excluded_file_name_p): Reduce scope.
11774         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11775         old-style declaration.
11776
11777 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11778
11779         * tests/test-exclude1.sh: Handle Windows EOL.
11780         * tests/test-exclude2.sh: Likewise.
11781         * tests/test-exclude3.sh: Likewise.
11782         * tests/test-exclude4.sh: Likewise.
11783         * tests/test-exclude5.sh: Likewise.
11784         * tests/test-exclude6.sh: Likewise.
11785         * tests/test-exclude7.sh: Likewise.
11786
11787 2009-08-19  Akim Demaille  <demaille@gostai.com>
11788
11789         bootstrap: find sha1sum when named gsha1sum.
11790         * bootstrap (find_tool): New.
11791         ($SHA1SUM): New.
11792         Use it.
11793
11794 2009-08-20  Jim Meyering  <meyering@redhat.com>
11795
11796         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11797         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11798         expression that converts "." in a file name to "\." in the resulting
11799         regexp.  Start with a dummy statement, so that prior shell variable
11800         definitions are expanded portably.  Reported by Simon Josefsson.
11801
11802 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11803
11804         Fix polling for writeability of a screen buffer.
11805         * lib/poll.c: Distinguish input and screen buffers for the
11806         Win32 implementation.
11807         * lib/select.c: Likewise.
11808
11809 2009-08-19  Eric Blake  <ebb9@byu.net>
11810
11811         popen-safer: prevent popen from clobbering std descriptors
11812         * modules/popen-safer: New file.
11813         * lib/popen-safer.c: Likewise.
11814         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11815         * lib/stdio--.h (popen): Provide override.
11816         * lib/stdio-safer.h (popen_safer): Provide declaration.
11817         * tests/test-popen.c (includes): Partially test this.
11818         * modules/popen-safer-tests: New file, for more tests.
11819         * tests/test-popen-safer.c: Likewise.
11820         * MODULES.html.sh (file stream based Input/Output): Mention it.
11821
11822         tests: test some of the *-safer modules
11823         * modules/fopen-safer (Depends-on): Add fopen.
11824         * modules/fcntl-safer (Depends-on): Add fcntl.
11825         * modules/stdlib-safer (Depends-on): Add stdlib.
11826         (configure.ac): Set indicator.
11827         * modules/unistd-safer (configure.ac): Likewise.
11828         * modules/tmpfile-safer (configure.ac): Likewise.
11829         (Depends-on): Add tmpfile.
11830         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11831         active.
11832         * tests/test-fopen.c (includes): Test safer versions when they are
11833         in use.
11834         * tests/test-open.c (includes): Likewise.
11835
11836         popen: fix cygwin 1.5 bug when stdin closed
11837         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11838         * modules/popen: New file.
11839         * modules/popen-tests: Likewise.
11840         * tests/test-popen.c: Likewise.
11841         * m4/popen.m4: Likewise.
11842         * lib/popen.c: Likewise.
11843         * lib/stdio.in.h (popen): New declaration.
11844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11845         * modules/stdio (Makefile.am): Likewise.
11846         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11847
11848 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11849
11850         maint.mk: give full control over update-copyright exclusions
11851         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11852         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11853         (update-copyright): Don't force inclusion of top-level
11854         ChangeLog.  Don't force exclusion of all COPYING files, but make
11855         them the default exclusion instead.
11856
11857 2009-08-16  Bruno Haible  <bruno@clisp.org>
11858
11859         Fix test failures on Solaris 10.
11860         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11861         tests when Solaris iconv() is used.
11862         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11863         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11864         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11865         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11866         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11867
11868 2009-08-16  Bruno Haible  <bruno@clisp.org>
11869
11870         Fix test failures on Solaris 10.
11871         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11872         'tr' program and pass it as first argument.
11873         * tests/test-pipe-filter-gi1.sh: Likewise.
11874         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11875         program as first argument.
11876         * tests/test-pipe-filter-gi1.c (main): Likewise.
11877
11878 2009-08-16  Eric Blake  <ebb9@byu.net>
11879
11880         fpurge: fix previous commits
11881         * modules/fpurge (Makefile.am): Make replacement conditional,
11882         partially reverting 2007-04-29 change; missed in previous
11883         attempt.
11884         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11885         is missing.
11886
11887 2009-08-16  Bruno Haible  <bruno@clisp.org>
11888
11889         Clarify fpurge's effect on the file position.
11890         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11891         * tests/test-fpurge.c (main): Make a second pass for checking the file
11892         position.
11893
11894 2009-08-16  Bruno Haible  <bruno@clisp.org>
11895
11896         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11897         declaration of fpurge is missing.
11898         * tests/test-fpurge.c (main): Check that the file has not more contents
11899         than expected. Close the file before removing it.
11900
11901 2009-08-15  Eric Blake  <ebb9@byu.net>
11902
11903         fpurge: don't wrap working cygwin implementation
11904         * lib/fpurge.c (fpurge): Fix comment typo.
11905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11906         1.7 to avoid replacement.
11907         * tests/test-fpurge.c (main): Enhance test.
11908
11909 2009-08-15  Eric Blake  <ebb9@byu.net>
11910         and Jim Meyering  <meyering@redhat.com>
11911
11912         test-update-copyright: skip if perl is insufficient
11913         * tests/test-update-copyright.sh: Failure to run maintainer tool
11914         should not cause testsuite failure on cygwin 1.5.
11915
11916 2009-08-14  Eric Blake  <ebb9@byu.net>
11917
11918         doc: mention more functions added in cygwin 1.7.0
11919         * doc/posix-headers/limits.texi (limits.h): Update for recent
11920         cygwin additions.
11921         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11922         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11923         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11924         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11925         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11926
11927 2009-08-14  Eric Blake  <ebb9@byu.net>
11928
11929         maint.mk: simplify update-copyright rule
11930         * top/maint.mk (update-copyright-local): Delete, and document how
11931         to do it in cfg.mk instead.
11932         (update-copyright-exclude-regexp): Delete, and document how to do
11933         it in .x-update-copyright instead.
11934         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11935         exclude ChangeLog.
11936
11937 2009-08-14  Bruno Haible  <bruno@clisp.org>
11938
11939         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11940
11941 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11942
11943         maint.mk: support update-copyright-env
11944         * top/maint.mk (update-copyright-env): Define place-holder.
11945         (update-copyright): Expand $(update-copyright-env) before
11946         invoking update-copyright.
11947
11948 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11949
11950         update-copyright: implement forced reformatting
11951         * build-aux/update-copyright: Implement and document
11952         UPDATE_COPYRIGHT_FORCE.
11953         * tests/test-update-copyright.sh: Test it.
11954
11955 2009-08-14  Eric Blake  <ebb9@byu.net>
11956         and Bruno Haible  <bruno@clisp.org>
11957
11958         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11959         * tests/test-locale.c: Revert previous patch related to NULL.
11960         * tests/test-stdio.c: Likewise.
11961         * tests/test-stdlib.c: Likewise.
11962         * tests/test-string.c: Likewise.
11963         * tests/test-unistd.c: Likewise.
11964         * modules/time-tests (Depends-on): Add verify.
11965         * modules/wchar-tests (Depends-on): Likewise.
11966         * tests/test-time.c: Test for NULL compliance.
11967         * tests/test-wchar.c: Likewise.
11968         * modules/locale (Depends-on): Add stddef.
11969         * modules/stdio (Depends-on): Likewise.
11970         * modules/stdlib (Depends-on): Likewise.
11971         * modules/string (Depends-on): Likewise.
11972         * modules/time (Depends-on): Likewise.
11973         * modules/unistd (Depends-on): Likewise.
11974         * modules/wchar (Depends-on): Likewise.
11975         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11976         * lib/stdlib.in.h (includes): Likewise.
11977         * lib/string.in.h (includes): Likewise.
11978         * lib/time.in.h (includes): Likewise.
11979         * lib/unistd.in.h (includes): Likewise.
11980         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11981         replaced.
11982         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11983         * m4/stddef_h.m4: New file.
11984         * modules/stddef: Likewise.
11985         * lib/stddef.in.h: Likewise.
11986         * modules/stddef-tests: Likewise.
11987         * tests/test-stddef.c: Likewise.
11988         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11989         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11990         * doc/posix-headers/locale.texi (locale.h): Likewise.
11991         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11992         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11993         * doc/posix-headers/string.texi (string.h): Likewise.
11994         * doc/posix-headers/time.texi (time.h): Likewise.
11995         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11996         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11997
11998 2009-08-14  Eric Blake  <ebb9@byu.net>
11999
12000         doc: improve git diff of texinfo files
12001         * .gitattributes: Add rule for *.texi files, with hint on how to
12002         use it.
12003         Copied from m4, and based on a report by Bruno Haible.
12004
12005 2009-08-14  Bruno Haible  <bruno@clisp.org>
12006
12007         Disable multithread support by default on Cygwin 1.5.x for real.
12008         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12009
12010 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12011
12012         update-copyright: much ado about intervals
12013         * build-aux/update-copyright: Implement and document
12014         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12015         of copyright year intervals.
12016         Also, document UPDATE_COPYRIGHT_YEAR.
12017         * tests/test-update-copyright.sh: Test it.
12018
12019         update-copyright: convert 2-digit to 4-digit years
12020         * build-aux/update-copyright: Implement and document.
12021         * tests/test-update-copyright.sh: Update.
12022
12023 2009-08-14  Jim Meyering  <meyering@redhat.com>
12024
12025         test-exclude: avoid coreutils "make check" failure
12026         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12027         just as in test-argmatch.c.
12028
12029 2009-08-13  Eric Blake  <ebb9@byu.net>
12030
12031         test-dup2: fix bad assumption
12032         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12033         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12034
12035         test-version-etc: fix CRLF portability issue
12036         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12037         recognize \r.
12038         * tests/test-argp-version-etc-1.sh: Likewise.
12039
12040         getopt: update client modules
12041         * modules/argp (Depends-on): Use getopt-gnu.
12042         * modules/git-merge-changelog (Depends-on): Likewise.
12043         * modules/long-options (Depends-on): Likewise.
12044         * modules/xstrtol (Depends-on): Likewise.
12045
12046 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12047
12048         * tests/test-version-etc.sh: Don't fail on different
12049         project/version.  Don't fail on CRLF differences.  Rewrite to use
12050         multiple -e instead of multiple sed forks, suggested by Eric Blake
12051         <ebb9@byu.net>.
12052         * tests/test-argp-version-etc-1.sh: Likewise.
12053
12054 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12055
12056         * tests/test-version-etc.sh: Don't fail on different
12057         project/version.
12058
12059 2009-08-12  Bruno Haible  <bruno@clisp.org>
12060
12061         Tests for modules 'getopt-posix', 'getopt-gnu'.
12062         * modules/getopt-posix-tests: New file.
12063         * tests/test-getopt.c: New file.
12064         * tests/test-getopt.h: New file.
12065         * tests/test-getopt_long.h: New file.
12066
12067         New modules 'getopt-posix', 'getopt-gnu'.
12068         * modules/getopt-gnu: New file, renamed from modules/getopt.
12069         * modules/getopt-posix: New file.
12070         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12071         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12072         (gl_GETOPT): Remove macro.
12073         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12074         Disable the test against BSD systems that declare optreset. Test
12075         against mingw bug. Test against lack of support of optional arguments
12076         on many platforms.
12077         * doc/glibc-headers/getopt.texi: Update module name and list of
12078         relevant platforms.
12079         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12080         'getopt-gnu' and more portability problems.
12081         * NEWS: Mention the changes.
12082
12083 2009-08-12  Bruno Haible  <bruno@clisp.org>
12084
12085         Ensure that optarg etc. get declared by <unistd.h>.
12086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12087         AC_USE_SYSTEM_EXTENSIONS.
12088         * modules/getopt (Depends-on): Add 'extensions'.
12089
12090 2009-08-12  Bruno Haible  <bruno@clisp.org>
12091
12092         Avoid test link errors.
12093         * modules/pipe-filter-ii-tests (Makefile.am): Define
12094         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12095         * modules/pipe-filter-gi-tests (Makefile.am): Define
12096         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12098
12099 2009-08-12  Bruno Haible  <bruno@clisp.org>
12100
12101         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12102         gl_GETOPT_SUBSTITUTE before.
12103         (gl_GETOPT): Use it.
12104         * m4/argp.m4 (gl_ARGP): Update.
12105         Reported by Sergey Poznyakoff.
12106
12107         * m4/getopt.m4: Reorder macros.
12108         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12109         (gl_GETOPT_SUBSTITUTE): Remove macro.
12110
12111 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12112
12113         Minor improvement in gitlog-to-changelog
12114
12115         * build-aux/gitlog-to-changelog: New option `--format' makes
12116         output format string configurable.
12117
12118 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12119
12120         Optimize exclude: use hash tables for non-wildcard patterns.
12121
12122         * lib/exclude.c: Include hash.h and mbuiter.h
12123         (struct exclude_pattern, exclude_segment): New data types.
12124         (struct exclude): Rewrite.
12125         (fnmatch_pattern_has_wildcards): New function.
12126         (new_exclude_segment, free_exclude_segment): New functions.
12127         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12128         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12129         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12130         * modules/exclude: Depend on hash and mbuiter.
12131
12132         * modules/exclude-tests: New file.
12133         * tests/test-exclude.c: New file.
12134         * tests/test-exclude1.sh: New file.
12135         * tests/test-exclude2.sh: New file.
12136         * tests/test-exclude3.sh: New file.
12137         * tests/test-exclude4.sh: New file.
12138         * tests/test-exclude5.sh: New file.
12139         * tests/test-exclude6.sh: New file.
12140         * tests/test-exclude7.sh: New file.
12141
12142 2009-08-12  Bruno Haible  <bruno@clisp.org>
12143
12144         Ensure that getopt() gets declared by <unistd.h>.
12145         * lib/unistd.in.h: Conditionally include getopt.h.
12146         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12147         Set GNULIB_UNISTD_H_GETOPT.
12148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12149         GNULIB_UNISTD_H_GETOPT.
12150         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12151
12152 2009-08-12  Bruno Haible  <bruno@clisp.org>
12153
12154         Clarify logic.
12155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12156         gl_replace_getopt instead of GETOPT_H.
12157
12158 2009-08-12  Bruno Haible  <bruno@clisp.org>
12159
12160         * m4/getopt.m4: Add comments.
12161
12162 2009-08-12  Bruno Haible  <bruno@clisp.org>
12163
12164         Disable multithread support by default on Cygwin 1.5.x.
12165         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12166         set gl_use_threads=no if not specified otherwise.
12167
12168 2009-08-11  Bruno Haible  <bruno@clisp.org>
12169
12170         Avoid compilation error on NetBSD 5.0.
12171         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12172         * tests/test-stdio.c: Likewise.
12173         * tests/test-stdlib.c: Likewise.
12174         * tests/test-string.c: Likewise.
12175         * tests/test-unistd.c: Likewise.
12176         Reported by Greg Troxel <gdt@ir.bbn.com>
12177         at <https://savannah.gnu.org/support/?106973>.
12178
12179 2009-08-11  Bruno Haible  <bruno@clisp.org>
12180
12181         * modules/dup2-tests (Depends-on): Remove close.
12182
12183         Undo 2009-07-19 commit.
12184         * modules/acl-tests (Depends-on): Remove close.
12185         * modules/binary-io-tests (Depends-on): Likewise.
12186         * modules/closein-tests (Depends-on): Likewise.
12187         * modules/flock-tests (Depends-on): Likewise.
12188         * modules/fsync-tests (Depends-on): Likewise.
12189         * modules/lseek-tests (Depends-on): Likewise.
12190         * modules/pipe-tests (Depends-on): Likewise.
12191         * modules/posix_spawn-tests (Depends-on): Likewise.
12192         * modules/posix_spawnp-tests (Depends-on): Likewise.
12193         * modules/stat-time-tests (Depends-on): Likewise.
12194         * modules/yesno-tests (Depends-on): Likewise.
12195
12196 2009-08-10  Bruno Haible  <bruno@clisp.org>
12197
12198         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12199
12200 2009-08-10  Bruno Haible  <bruno@clisp.org>
12201
12202         Fix a gcc warning.
12203         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12204
12205 2009-08-10  Bruno Haible  <bruno@clisp.org>
12206
12207         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12208         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12209         not only the first time.
12210         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12211         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12212         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12213         is 1, not only the the first time.
12214
12215 2009-08-10  Bruno Haible  <bruno@clisp.org>
12216
12217         Make it possible to use module 'gethostname' without module 'close'.
12218         * lib/unistd.in.h (close): Evoke a link error only if
12219         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12222         * modules/unistd (Makefile.am): Substitute
12223         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12224         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12225         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12228         * modules/sys_ioctl (Makefile.am): Substitute
12229         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12230         * modules/socket (configure.ac): On native Windows, set
12231         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12232         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12233         Reported by Sam Steingold <sds@gnu.org>.
12234
12235 2009-08-10  Bruno Haible  <bruno@clisp.org>
12236
12237         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12238         * modules/ioctl (configure.ac): Likewise.
12239
12240 2009-08-10  Bruno Haible  <bruno@clisp.org>
12241
12242         Avoid collision between gnulib wrapper and libintl wrapper.
12243         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12244         already defined in intl/printf.c.
12245         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12246         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12247
12248 2009-08-09  Bruno Haible  <bruno@clisp.org>
12249
12250         Make <sys/select.h> really self-contained, also on Solaris 10.
12251         * lib/sys_select.in.h: Include <string.h>.
12252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12253         Solaris 10 problem.
12254         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12255         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12256         Reported by Jim Meyering.
12257
12258 2009-08-09  Bruno Haible  <bruno@clisp.org>
12259
12260         Avoid warnings from 'aclocal' that are due to a use of macro name
12261         AM_XGETTEXT_OPTION that is not defined in automake.
12262         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12263         automake.
12264         * modules/error (configure.ac): Likewise.
12265         * modules/propername (configure.ac): Likewise.
12266         * modules/vasprintf (configure.ac): Likewise.
12267         * modules/verror (configure.ac): Likewise.
12268         * modules/xprintf (configure.ac): Likewise.
12269         * modules/xvasprintf (configure.ac): Likewise.
12270
12271 2009-08-08  Bruno Haible  <bruno@clisp.org>
12272
12273         Avoid compilation error in C++ mode.
12274         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12275         Reported by Sam Steingold <sds@gnu.org>.
12276
12277 2009-08-08  Bruno Haible  <bruno@clisp.org>
12278
12279         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12280         for the various Unix platforms.
12281         * doc/posix-headers/limits.texi: Update platforms list regarding
12282         HOST_NAME_MAX.
12283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12284
12285 2009-08-07  Jim Meyering  <meyering@redhat.com>
12286
12287         selinux-at: fix typo in a comment
12288         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12289         Spotted by Paolo Bonzini.
12290
12291         selinux-at: remove redundant m4 code, add documentation
12292         * modules/selinux-at (configure.ac): Remove redundant code.
12293         LIB_SELINUX is already set via the dependent module, selinux-h.
12294         (Include): Add quotes around selinux-at.h.
12295         * lib/selinux-at.h: Add documentation.
12296         Reported by Bruno Haible in
12297         http://marc.info/?l=gnulib-bug&m=124958988300749
12298
12299 2009-08-07  Bruno Haible  <bruno@clisp.org>
12300
12301         Avoid link error on MacOS X 10.3 and 10.4.
12302         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12303         on non-ELF systems.
12304         * lib/argp-pv.c (argp_program_version): Likewise.
12305         Reported by Simon Josefsson.
12306
12307 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12308
12309         * tests/test-version-etc.sh: Use $EXEEXT.
12310
12311 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12312
12313         update-copyright: update documentation to point to maint.mk
12314         * build-aux/update-copyright: Here.
12315
12316 2009-08-06  Jim Meyering  <meyering@redhat.com>
12317
12318         maint.mk: support update-copyright-local
12319         * top/maint.mk (update-copyright-local): Define place-holder.
12320         (update-copyright): Depend on $(update-copyright-local).
12321
12322 2009-08-06  Jim Meyering  <meyering@redhat.com>
12323
12324         selinux-at: new module
12325         Initially written for coreutils, this module will soon be
12326         used by findutils, too.
12327         * MODULES.html.sh [Misc]: Add selinux-at.
12328         * lib/selinux-at.h: New file, from coreutils.
12329         * lib/selinux-at.c: Likewise.
12330         * modules/selinux-at: Likewise.
12331         (License): Change from LGPL to GPL, since it depends
12332         on the GPL'd openat module.
12333
12334         doc: update README
12335         * README: Remove references to cogito.
12336         Remove cvs-repo-updating instructions from 2007.
12337         Don't imply that CVS is better if you have limited disk space.
12338
12339 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12340
12341         update-copyright: support C-style comments
12342         * build-aux/update-copyright: Implement and document.
12343         * tests/test-update-copyright.sh: Test.
12344
12345 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12346
12347         update-copyright: support omitted "(C)"
12348         * build-aux/update-copyright: Implement and document.  Also,
12349         allow variable whitespace before "(C)".
12350         * tests/test-update-copyright.sh: Test.
12351
12352 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12353
12354         update-copyright: don't trip on non-FSF copyright statements
12355         * build-aux/update-copyright: Fix so that the first correctly
12356         formatted FSF copyright statement is recognized no matter what
12357         appears before it.  Update documentation.
12358         * tests/test-update-copyright.sh: Test that.
12359
12360 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12361
12362         update-copyright: clean up code a little
12363         * build-aux/update-copyright: Append "_re" to the name of any
12364         variable holding a regular expression.
12365         Replace "old" and "new" with "stmt" in variable names.
12366         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12367         handled correctly.
12368         Format code more consistently.
12369
12370 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12371
12372         update-copyright-tests: improve portability
12373         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12374         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12375
12376 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12377
12378         update-copyright: support @copyright{} and &copy;
12379         * build-aux/update-copyright: Implement and document.
12380         * tests/test-update-copyright.sh: Test.
12381
12382 2009-08-04  Jim Meyering  <meyering@redhat.com>
12383
12384         update-copyright-tests: correctly test EOL=\r\n handling
12385         * tests/test-update-copyright.sh: Put \r at the end of some lines
12386         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12387
12388         maint.mk: make update-copyright exclusion list more configurable
12389         * top/maint.mk (update-copyright): Default to excluding COPYING,
12390         but allow an override, in case someone does want to update that file.
12391
12392         maint.mk: don't update copyright date in COPYING
12393         * top/maint.mk (update-copyright): Exclude COPYING.
12394
12395         maint.mk: add a copyright-updating rule
12396         * top/maint.mk (update-copyright): New rule.
12397         Derived from coreutils/Makefile.am.
12398
12399         update-copyright: rename some variables
12400         * build-aux/update-copyright: Rename a few variables for clarity.
12401         Tweak syntax.  List Joel E. Denny as coauthor.
12402
12403 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12404
12405         update-copyright: fix bug for 2-digit last year and add tests
12406         * build-aux/update-copyright: Fix bug.
12407         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12408         specified.
12409         * modules/update-copyright-tests: New
12410         * tests/test-update-copyright.sh: New.
12411
12412 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12413
12414         update-copyright: handle leading tabs in line prefix
12415         * build-aux/update-copyright: Count leading tabs as 8 spaces
12416         when computing margin.  This helps with the formatting of
12417         ChangeLogs, for example.
12418         Fix documentation a little.
12419
12420 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12421
12422         update-copyright: support EOL=\r\n
12423         * build-aux/update-copyright: Implement that.
12424
12425 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12426
12427         update-copyright: automatically format copyright statements
12428         * build-aux/update-copyright: Implement that.
12429         Also, be a little more predictable and safer by always failing
12430         when the full copyright format is not perfectly recognized as an
12431         unbroken whole.  Discussed at
12432         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12433         Rewrite documentation.
12434
12435 2009-08-03  Bruno Haible  <bruno@clisp.org>
12436
12437         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12438
12439 2009-08-02  Bruno Haible  <bruno@clisp.org>
12440
12441         Tests for module 'uname'.
12442         * modules/uname-tests: New file.
12443         * tests/test-uname.c: New file.
12444
12445         New module 'uname'.
12446         * lib/uname.c: New file.
12447         * m4/uname.m4: New file.
12448         * modules/uname: New file.
12449         * doc/posix-functions/uname.texi: Mention the new module.
12450
12451 2009-08-02  Bruno Haible  <bruno@clisp.org>
12452
12453         Tests for module 'sys_utsname'.
12454         * modules/sys_utsname-tests: New file.
12455         * tests/test-sys_utsname.c: New file.
12456
12457         New module 'sys_utsname'.
12458         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12459         * m4/sys_utsname_h.m4: New file.
12460         * modules/sys_utsname: New file.
12461         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12462
12463 2009-08-02  Bruno Haible  <bruno@clisp.org>
12464
12465         Implicitly initialize the sockets library.
12466         * lib/gethostname.c: Include sockets.h.
12467         (rpl_gethostname): Invoke gl_sockets_startup.
12468         * lib/socket.c: Include sockets.h.
12469         (rpl_socket): Invoke gl_sockets_startup.
12470         * modules/gethostname (Depends-on): Add sockets.
12471         * modules/socket (Depends-on): Likewise.
12472         * tests/test-poll.c: Don't include sockets.h.
12473         (main): Don't invoke gl_sockets_startup.
12474         * tests/test-select.c: Don't include sockets.h.
12475         (main): Don't invoke gl_sockets_startup.
12476
12477 2009-08-02  Bruno Haible  <bruno@clisp.org>
12478
12479         Allow multiple calls to gl_sockets_startup.
12480         * lib/sockets.c (initialized_sockets_version): New variable.
12481         (gl_sockets_startup): Do nothing if already called for this or a higher
12482         version.
12483         (gl_sockets_cleanup): Reset initialized_sockets_version.
12484
12485 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12486
12487         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12488         different project/version.
12489
12490 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12491             Bruno Haible  <bruno@clisp.org>
12492
12493         Tests for module 'pipe-filter-gi'.
12494         * modules/pipe-filter-gi-tests: New file.
12495         * tests/test-pipe-filter-gi1.sh: New file.
12496         * tests/test-pipe-filter-gi1.c: New file.
12497         * tests/test-pipe-filter-gi2.sh: New file.
12498         * tests/test-pipe-filter-gi2-main.c: New file.
12499         * tests/test-pipe-filter-gi2-child.c: New file.
12500
12501         New module 'pipe-filter-gi'.
12502         * lib/pipe-filter-gi.c: New file.
12503         * modules/pipe-filter-gi: New file.
12504
12505 2009-08-02  Bruno Haible  <bruno@clisp.org>
12506             Paolo Bonzini  <bonzini@gnu.org>
12507
12508         Tests for module 'pipe-filter-ii'.
12509         * modules/pipe-filter-ii-tests: New file.
12510         * tests/test-pipe-filter-ii1.sh: New file.
12511         * tests/test-pipe-filter-ii1.c: New file.
12512         * tests/test-pipe-filter-ii2.sh: New file.
12513         * tests/test-pipe-filter-ii2-main.c: New file.
12514         * tests/test-pipe-filter-ii2-child.c: New file.
12515
12516         New module 'pipe-filter-ii'.
12517         * lib/pipe-filter.h: New file.
12518         * lib/pipe-filter-ii.c: New file.
12519         * lib/pipe-filter-aux.h: New file.
12520         * modules/pipe-filter-ii: New file.
12521
12522 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12523
12524         * lib/gc-libgcrypt.c: Change copyright to FSF.
12525         * lib/gc-gnulib.c: Likewise.
12526
12527 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12528
12529         * lib/gethostname.c: Include limits.h.
12530
12531 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12532             Bruno Haible  <bruno@clisp.org>
12533
12534         Ensure HOST_NAME_MAX as part of the gethostname module.
12535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12536         define also HOST_NAME_MAX.
12537         * tests/test-gethostname.c: Include <limits.h>.
12538         (main): Check also HOST_NAME_MAX.
12539         * doc/posix-headers/limits.texi: Document the mingw problem.
12540
12541 2009-08-02  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12544         Add comments.
12545
12546 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12547
12548         * lib/gethostname.c: Add Windows wrapper.
12549         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12550         * modules/gethostname: Depend on sys_socket & errno, for also
12551         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12552         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12553
12554 2009-07-31  Jim Meyering  <meyering@redhat.com>
12555
12556         getloadavg: fix symbol name in comment
12557         * lib/getloadavg.c: Correct a typo I introduced when adding
12558         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12559         Matt Kraai spotted the problem.
12560
12561 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12562
12563         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12564         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12565         code also if ! defined N_NAME_POINTER.
12566         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12567         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12568         but the n_name member is a 12-byte array.
12569
12570 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12571
12572         update-copyright: generalize comment handling
12573         * build-aux/update-copyright: Handle copyright statements
12574         within more comment styles.
12575         Document usage.
12576         Report any file with an external copyright holder or parse failure.
12577
12578 2009-07-29  Jim Meyering  <meyering@redhat.com>
12579
12580         mktime: correct setting of REPLACE_MKTIME
12581         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12582
12583         update-copyright: new module
12584         * modules/update-copyright: New file.
12585         * build-aux/update-copyright: New file.
12586         * MODULES.html.sh (maint+release support): Add update-copyright.
12587
12588 2009-07-27  Bruno Haible  <bruno@clisp.org>
12589
12590         Fix compilation error when <ctime> is used and mktime is replaced.
12591         * lib/time.in.h (mktime): New declaration.
12592         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12593         REPLACE_MKTIME instead of defining mktime in config.h.
12594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12595         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12596         Reported by Ross McFarland <rwmcfa1@neces.com>.
12597
12598 2009-07-27  Bruno Haible  <bruno@clisp.org>
12599
12600         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12601         Reported by Matt Kraai <mkraai@beckman.com>.
12602
12603 2009-07-25  Jim Meyering  <meyering@redhat.com>
12604
12605         maint.mk: avoid warnings about missing files
12606         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12607         diagnostic when .prev-version does not exist.
12608         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12609         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12610         nonexistent cfg.mk.
12611         Suggestions from Simon Josefsson.
12612
12613 2009-07-25  Bruno Haible  <bruno@clisp.org>
12614
12615         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12616         defined as macros. Needed on QNX 6.4.1.
12617         Reported by Matt Kraai <mkraai@beckman.com>.
12618
12619 2009-07-23  Jim Meyering  <meyering@redhat.com>
12620
12621         maint.mk: invoke "make dist" with a working value of XZ_OPT
12622         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12623
12624 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12625
12626         Make fseeko.c compile on QNX.
12627         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12628
12629 2009-07-22  Peter Simons  <simons@cryp.to>
12630
12631         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12632         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12633         * lib/md4.h: Likewise.
12634         * lib/md5.h: Likewise.
12635         * lib/sha1.h: Likewise.
12636         * lib/sha256.h: Likewise.
12637         * lib/sha512.h: Likewise.
12638
12639         tests-sha1: don't assign literal string to 'char *' variable
12640         * tests/test-sha1.c (main): Declare locals with "const" to match
12641         attributes of the right hand side.
12642
12643 2009-07-21  Eric Blake  <ebb9@byu.net>
12644
12645         dup2: fix more mingw problems
12646         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12647         fd to itself.
12648         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12649         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12650         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12651         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12652         care of mingw bugs.
12653
12654 2009-07-21  Jim Meyering  <meyering@redhat.com>
12655
12656         vc-list-files: avoid failure when /bin/sh is dash
12657         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12658         On some Debian based systems, /bin/sh is a symlink to dash, and running
12659         this command would omit the "/" following each 'tests' prefix:
12660           dash -x build-aux/vc-list-files -C . tests
12661         That is because bash and dash work differently:
12662           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12663           bash ok
12664           dash odd
12665
12666 2009-07-21  Eric Blake  <ebb9@byu.net>
12667
12668         dup2-tests: test previous patch
12669         * modules/dup2-tests: New file.
12670         * tests/test-dup2.c: Likewise.
12671         * tests/test-open.c (main): Avoid unspecified behavior.
12672         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12673         test.
12674
12675         dup2: work around mingw and cygwin 1.5 bug
12676         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12678         * modules/unistd (Makefile.am): Substitute it.
12679         * lib/unistd.in.h (dup2): Declare the replacement.
12680         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12681         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12682         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12683         * modules/execute (Depends-on): Add dup2.
12684         * modules/fseterr (Depends-on): Likewise.
12685         * modules/pipe (Depends-on): Likewise.
12686         * modules/posix_spawn-internal (Depends-on): Likewise.
12687
12688 2009-07-21  Bruno Haible  <bruno@clisp.org>
12689
12690         * modules/.gitattributes: New file.
12691
12692 2009-07-20  Bruno Haible  <bruno@clisp.org>
12693
12694         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12695         (main): Use it.
12696
12697 2009-07-20  Eric Blake  <ebb9@byu.net>
12698
12699         test-pipe: make a bit more robust.
12700         * tests/test-pipe.c (myerr): Allow error messages regardless of
12701         what we do to stderr.
12702         (test_pipe): Rearrange to avoid deadlock.
12703         (child_main): Try a larger read, to ensure we avoided deadlock.
12704         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12705         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12706         if misused.
12707
12708 2009-07-19  Jim Meyering  <meyering@redhat.com>
12709
12710         fts: avoid false-positive cycle-detection
12711         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12712         for each new command line argument.
12713
12714 2009-07-19  Bruno Haible  <bruno@clisp.org>
12715
12716         Fix build error on mingw with the modules sys_select and unistd.
12717         * modules/acl-tests (Depends-on): Add close.
12718         * modules/binary-io-tests (Depends-on): Likewise.
12719         * modules/closein-tests (Depends-on): Likewise.
12720         * modules/flock-tests (Depends-on): Likewise.
12721         * modules/fsync-tests (Depends-on): Likewise.
12722         * modules/lseek-tests (Depends-on): Likewise.
12723         * modules/pipe-tests (Depends-on): Likewise.
12724         * modules/posix_spawn-tests (Depends-on): Likewise.
12725         * modules/posix_spawnp-tests (Depends-on): Likewise.
12726         * modules/stat-time-tests (Depends-on): Likewise.
12727         * modules/yesno-tests (Depends-on): Likewise.
12728
12729 2009-07-19  Bruno Haible  <bruno@clisp.org>
12730
12731         Unify conditionals.
12732         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12733         macros, not at the compiler macros.
12734         * lib/pipe.c: Likewise.
12735         * lib/execute.c: Likewise.
12736         * lib/spawni.c: Likewise.
12737
12738 2009-07-19  Bruno Haible  <bruno@clisp.org>
12739
12740         Fix handling of closed stdin/stdout/stderr on mingw.
12741         * lib/w32spawn.h: Include unistd.h.
12742         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12743         file descriptor with O_NOINHERIT flag.
12744         (fd_safer_noinherit): New function, based on fd-safer.c.
12745         (dup_safer_noinherit): New function, based on dup-safer.c.
12746         (undup_safer_noinherit): New function.
12747         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12748         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12749         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12750         instead of fd_safer.
12751         * tests/test-pipe.c: Include <windows.h>.
12752         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12753
12754         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12755         from main.
12756         (test_pipe): Pass an extra argument for disambiguation.
12757         (main): Invoke parent_main or child_main.
12758
12759         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12760         consistently.
12761
12762 2009-07-18  Eric Blake  <ebb9@byu.net>
12763
12764         test-pipe: fix mingw build
12765         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12766
12767 2009-07-18  Bruno Haible  <bruno@clisp.org>
12768
12769         * modules/pipe-tests (Makefile.am): Fix typo.
12770
12771 2009-07-18  Eric Blake  <ebb9@byu.net>
12772
12773         error: fix mingw build
12774         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12775         Reported by Bruno Haible.
12776
12777         error: avoid undefined use of stdout
12778         * lib/error.c (error, error_at_line): Check that fd 1 is open
12779         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12780         is handling faults and the close_stdout module wants to report the
12781         detection of closed stdout as an error.
12782
12783 2009-07-17  Eric Blake  <ebb9@byu.net>
12784
12785         pipe: be robust in face of closed fds
12786         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12787         should cause child to misbehave.
12788         * modules/pipe-tests: New module.
12789         * tests/test-pipe.c: New file.
12790         * tests/test-pipe.sh: New file.
12791         Reported by Akim Demaille.
12792
12793 2009-07-14  Bruno Haible  <bruno@clisp.org>
12794
12795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12796         Reported by anonymous kc.
12797
12798 2009-07-07  Jim Meyering  <meyering@redhat.com>
12799
12800         maint.mk: don't look for translatable strings in *.m4 or *.mk
12801         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12802         when searching for translatable strings.
12803
12804 2009-07-05  Jim Meyering  <meyering@redhat.com>
12805
12806         remove superfluous parentheses in STREQ definition
12807         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12808         * lib/getugroups.c (STREQ): Likewise.
12809         * lib/fnmatch.c (STREQ): Likewise.
12810         Spotted by Bruno Haible.
12811
12812 2009-07-04  Jim Meyering  <meyering@redhat.com>
12813
12814         argv-iter: new module
12815         * MODULES.html.sh: Add argv-iter.
12816         * lib/argv-iter.c, lib/argv-iter.h: New files.
12817         * modules/argv-iter: New file.
12818         * modules/argv-iter-tests: New file.
12819         * tests/test-argv-iter.c: Test it.
12820
12821 2009-07-04  Bruno Haible  <bruno@clisp.org>
12822
12823         Fix assertion.
12824         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12825         contains more exact copies of a given entry than file2, leave the extra
12826         copies unpaired rather than aborting.
12827         Reported by Eric Blake.
12828
12829 2009-07-02  Bruno Haible  <bruno@clisp.org>
12830
12831         Speedup git-merge-changelog for git cherry-pick.
12832         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12833         (entries_mapping_get): New function, extracted from compute_mapping.
12834         (entries_mapping_reverse_get): New function.
12835         (compute_mapping): Add a 'full' argument. Return the result in a
12836         'struct entries_mapping'.
12837         (main): Update. Access the mappings through entries_mapping_get.
12838         Reported by Eric Blake.
12839
12840 2009-07-02  Bruno Haible  <bruno@clisp.org>
12841
12842         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12843         best_i.
12844
12845 2009-07-02  Bruno Haible  <bruno@clisp.org>
12846
12847         Speed up approximate search for matching ChangeLog entries.
12848         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12849         argument. Call fstrcmp_bounded instead of fstrcmp.
12850         (compute_mapping, try_split_merged_entry, main): Update callers.
12851
12852 2009-07-02  Bruno Haible  <bruno@clisp.org>
12853
12854         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12855
12856 2009-06-30  Bruno Haible  <bruno@clisp.org>
12857
12858         Reduce the number of uc_is_cased calls.
12859         * lib/unicase.h (casing_suffix_context_t): Add
12860         'first_char_except_ignorable' field.
12861         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12862         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12863         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12864         Update initializer.
12865         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12866         case-ignorable characters.
12867         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12868         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12869         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12870         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12871         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12872
12873 2009-06-30  Bruno Haible  <bruno@clisp.org>
12874
12875         Tests for module 'unicase/ignorable'.
12876         * modules/unicase/ignorable-tests: New file.
12877         * tests/unicase/test-ignorable.c: New file, generated by
12878         gen-uni-tables.
12879
12880         Tests for module 'unicase/cased'.
12881         * modules/unicase/cased-tests: New file.
12882         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12883         * tests/unicase/test-predicate-part1.h: New file, derived from
12884         tests/unictype/test-predicate-part1.h.
12885         * tests/unicase/test-predicate-part2.h: New file, same as
12886         tests/unictype/test-predicate-part2.h.
12887
12888         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12889         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12890         (output_casing_properties): New function.
12891         (main): Call it.
12892         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12893         * lib/unicase/cased.c: Include unictype/bitmap.h.
12894         (uc_is_cased): Define through a bitmap lookup.
12895         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12896         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12897         (uc_is_case_ignorable): Define through a bitmap lookup.
12898         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12899         lib/unictype/bitmap.h.
12900         (Depends-on): Add inline. Clean up.
12901         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12902         lib/unictype/bitmap.h.
12903         (Depends-on): Add inline. Clean up.
12904         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12905         recognition.
12906         * tests/unicase/test-u16-tolower.c (main): Likewise.
12907         * tests/unicase/test-u32-tolower.c (main): Likewise.
12908
12909 2009-06-30  Bruno Haible  <bruno@clisp.org>
12910
12911         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12912         * lib/unicase/u16-casemap.c: Likewise.
12913         * lib/unicase/u32-casemap.c: Likewise.
12914
12915 2009-06-29  Bruno Haible  <bruno@clisp.org>
12916
12917         Define u32_casefold as a wrapper around u32_ct_casefold.
12918         * lib/unicase/u32-casefold.c: Update.
12919         * modules/unicase/u32-casefold (Depends-on): Add
12920         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12921         unicase/empty-suffix-context. Clean up.
12922
12923         Define u16_casefold as a wrapper around u16_ct_casefold.
12924         * lib/unicase/u16-casefold.c: Update.
12925         * modules/unicase/u16-casefold (Depends-on): Add
12926         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12927         unicase/empty-suffix-context. Clean up.
12928
12929         Define u8_casefold as a wrapper around u8_ct_casefold.
12930         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12931         * lib/unicase/u8-casefold.c: Update.
12932         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12933         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12934
12935         Define u32_totitle as a wrapper around u32_ct_totitle.
12936         * lib/unicase/u32-totitle.c: Update.
12937         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12938         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12939
12940         Define u16_totitle as a wrapper around u16_ct_totitle.
12941         * lib/unicase/u16-totitle.c: Update.
12942         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12943         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12944
12945         Define u8_totitle as a wrapper around u8_ct_totitle.
12946         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12947         functions.
12948         (FUNC): Delegate to U_CT_TOTITLE.
12949         * lib/unicase/u8-totitle.c: Update.
12950         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12951         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12952
12953         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12954         invocation.
12955         * modules/unicase/u32-tolower (Depends-on): Add
12956         unicase/empty-prefix-context, unicase/empty-suffix-context.
12957
12958         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12959         invocation.
12960         * modules/unicase/u16-tolower (Depends-on): Add
12961         unicase/empty-prefix-context, unicase/empty-suffix-context.
12962
12963         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12964         * modules/unicase/u8-tolower (Depends-on): Add
12965         unicase/empty-prefix-context, unicase/empty-suffix-context.
12966
12967         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12968         invocation.
12969         * modules/unicase/u32-toupper (Depends-on): Add
12970         unicase/empty-prefix-context, unicase/empty-suffix-context.
12971
12972         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12973         invocation.
12974         * modules/unicase/u16-toupper (Depends-on): Add
12975         unicase/empty-prefix-context, unicase/empty-suffix-context.
12976
12977         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12978         * modules/unicase/u8-toupper (Depends-on): Add
12979         unicase/empty-prefix-context, unicase/empty-suffix-context.
12980
12981         New module 'unicase/u32-ct-casefold'.
12982         * lib/unicase/u32-ct-casefold.c: New file.
12983         * modules/unicase/u32-ct-casefold: New file.
12984
12985         New module 'unicase/u16-ct-casefold'.
12986         * lib/unicase/u16-ct-casefold.c: New file.
12987         * modules/unicase/u16-ct-casefold: New file.
12988
12989         New module 'unicase/u8-ct-casefold'.
12990         * lib/unicase/u8-ct-casefold.c: New file.
12991         * lib/unicase/u-ct-casefold.h: New file, derived from
12992         lib/unicase/u-casefold.h.
12993         * modules/unicase/u8-ct-casefold: New file.
12994
12995         New module 'unicase/u32-ct-totitle'.
12996         * lib/unicase/u32-ct-totitle.c: New file.
12997         * modules/unicase/u32-ct-totitle: New file.
12998
12999         New module 'unicase/u16-ct-totitle'.
13000         * lib/unicase/u16-ct-totitle.c: New file.
13001         * modules/unicase/u16-ct-totitle: New file.
13002
13003         New module 'unicase/u8-ct-totitle'.
13004         * lib/unicase/u8-ct-totitle.c: New file.
13005         * lib/unicase/u-ct-totitle.h: New file, derived from
13006         lib/unicase/u-totitle.h.
13007         * modules/unicase/u8-ct-totitle: New file.
13008
13009         New module 'unicase/u32-ct-tolower'.
13010         * lib/unicase/u32-ct-tolower.c: New file.
13011         * modules/unicase/u32-ct-tolower: New file.
13012
13013         New module 'unicase/u16-ct-tolower'.
13014         * lib/unicase/u16-ct-tolower.c: New file.
13015         * modules/unicase/u16-ct-tolower: New file.
13016
13017         New module 'unicase/u8-ct-tolower'.
13018         * lib/unicase/u8-ct-tolower.c: New file.
13019         * modules/unicase/u8-ct-tolower: New file.
13020
13021         New module 'unicase/u32-ct-toupper'.
13022         * lib/unicase/u32-ct-toupper.c: New file.
13023         * modules/unicase/u32-ct-toupper: New file.
13024
13025         New module 'unicase/u16-ct-toupper'.
13026         * lib/unicase/u16-ct-toupper.c: New file.
13027         * modules/unicase/u16-ct-toupper: New file.
13028
13029         New module 'unicase/u8-ct-toupper'.
13030         * lib/unicase/u8-ct-toupper.c: New file.
13031         * modules/unicase/u8-ct-toupper: New file.
13032
13033         Add context arguments to u*_casemap functions.
13034         * lib/unicase/unicasemap.h: Include unicase.h.
13035         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13036         suffix_context arguments.
13037         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13038         functions.
13039         (FUNC): Add prefix_context and suffix_context arguments. Use
13040         uc_is_cased and uc_is_case_ignorable.
13041         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13042         * lib/unicase/u16-casemap.c: Likewise.
13043         * lib/unicase/u32-casemap.c: Likewise.
13044         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13045         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13046         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13047         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13048         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13049         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13050
13051         New module 'unicase/u32-suffix-context'.
13052         * lib/unicase/u32-suffix-context.c: New file.
13053         * modules/unicase/u32-suffix-context: New file.
13054
13055         New module 'unicase/u16-suffix-context'.
13056         * lib/unicase/u16-suffix-context.c: New file.
13057         * modules/unicase/u16-suffix-context: New file.
13058
13059         New module 'unicase/u8-suffix-context'.
13060         * lib/unicase/u8-suffix-context.c: New file.
13061         * lib/unicase/u-suffix-context.h: New file.
13062         * modules/unicase/u8-suffix-context: New file.
13063
13064         New module 'unicase/empty-suffix-context'.
13065         * lib/unicase/empty-suffix-context.c: New file.
13066         * modules/unicase/empty-suffix-context: New file.
13067
13068         New module 'unicase/u32-prefix-context'.
13069         * lib/unicase/u32-prefix-context.c: New file.
13070         * modules/unicase/u32-prefix-context: New file.
13071
13072         New module 'unicase/u16-prefix-context'.
13073         * lib/unicase/u16-prefix-context.c: New file.
13074         * modules/unicase/u16-prefix-context: New file.
13075
13076         New module 'unicase/u8-prefix-context'.
13077         * lib/unicase/u8-prefix-context.c: New file.
13078         * lib/unicase/u-prefix-context.h: New file.
13079         * lib/unicase/context.h: New file.
13080         * modules/unicase/u8-prefix-context: New file.
13081
13082         New module 'unicase/empty-prefix-context'.
13083         * lib/unicase/empty-prefix-context.c: New file.
13084         * modules/unicase/empty-prefix-context: New file.
13085
13086         New module 'unicase/ignorable'.
13087         * lib/unicase/ignorable.c: New file.
13088         * modules/unicase/ignorable: New file.
13089
13090         New module 'unicase/cased'.
13091         * lib/unicase/caseprop.h: New file.
13092         * lib/unicase/cased.c: New file.
13093         * modules/unicase/cased: New file.
13094
13095         New functions for case mapping of substrings.
13096         * lib/unicase.h (casing_prefix_context_t): New type.
13097         (unicase_empty_prefix_context): New variable.
13098         (u8_casing_prefix_context, u16_casing_prefix_context,
13099         u32_casing_prefix_context, u8_casing_prefixes_context,
13100         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13101         declarations.
13102         (casing_suffix_context_t): New type.
13103         (unicase_empty_suffix_context): New variable.
13104         (u8_casing_suffix_context, u16_casing_suffix_context,
13105         u32_casing_suffix_context, u8_casing_suffixes_context,
13106         u16_casing_suffixes_context, u32_casing_suffixes_context,
13107         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13108         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13109         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13110         declarations.
13111
13112 2009-06-28  Jim Meyering  <meyering@redhat.com>
13113
13114         boostrap: indent only with spaces
13115         * build-aux/bootstrap: Indent only with spaces, never TABs.
13116
13117         bootstrap: split long lines
13118         * build-aux/bootstrap: Keep line length < 80.
13119
13120         bootstrap: sync from coreutils
13121         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13122         just as autoreconf does.  Verify a list of prerequisite
13123         package-name,version-number pairs if defined in bootstrap.conf.
13124         Refer to README-prereq, if prerequisites are not satisfied.
13125
13126 2009-06-27  Eric Blake  <ebb9@byu.net>
13127
13128         tests: add test for bogus NULL definition
13129         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13130         * tests/test-stdlib.c: Likewise.
13131         * tests/test-string.c: Likewise.
13132         * tests/test-locale.c: Likewise.
13133         * tests/test-unistd.c: Likewise.
13134         * modules/stdio-tests (Depends-on): Add verify.
13135         * modules/stdlib-tests (Depends-on): Likewise.
13136         * modules/string-tests (Depends-on): Likewise.
13137         * modules/locale-tests (Depends-on): Likewise.
13138         * modules/unistd-tests (Depends-on): Likewise.
13139
13140 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13141
13142         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13143         self-explaining comment.
13144         * m4/selinux-selinux-h: Update serial.
13145         (gl_LIBSELINUX): New macro, adding a warning for missing development
13146         packages to code extracted from...
13147         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13148         Add warning for missing development packages here, too.
13149
13150 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13151
13152         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13153
13154 2009-06-25  Eric Blake  <ebb9@byu.net>
13155
13156         version-etc: fix regression
13157         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13158         gcc.
13159         (version_etc): Use it, to catch bugs with trailing NULL.
13160         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13161         (version_etc_va): Fix logic bug.
13162         * modules/version-etc-tests: Add test.
13163         * tests/test-version-etc.c: New file.
13164         * tests/test-version-etc.sh: Likewise.
13165
13166 2009-06-25  Sam Steingold  <sds@gnu.org>
13167
13168         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13169         mbtowc declaration.
13170
13171 2009-06-25  Eric Blake  <ebb9@byu.net>
13172
13173         fpurge: migrate into <stdio.h>
13174         * lib/fpurge.h: Delete...
13175         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13176         * lib/fpurge.c (fpurge): Change declaring header.
13177         * modules/fpurge (Files): Drop deleted file.
13178         (Depends-on): Add stdio.
13179         (configure.ac): Set witness.
13180         * modules/stdio (Makefile.am): Support fpurge macros.
13181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13182         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13183         * lib/fflush.c: Update client.
13184         * tests/test-fpurge.c: Likewise.
13185         * NEWS: Mention the change.
13186
13187 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13188
13189         * lib/argp-version-etc.c (program_authors): Add const
13190         qualifier.
13191         * lib/version-etc.c: Fix typos in the comments.
13192         * modules/argp-version-etc: Depends on version-etc.
13193
13194 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13195
13196         argp-version-etc: new module.
13197
13198         * lib/argp-version-etc.c: New file.
13199         * lib/argp-version-etc.h: New file.
13200         * modules/argp-version-etc: New file.
13201         * modules/argp-version-etc-tests: New file.
13202         * tests/test-argp-version-etc.c: New test.
13203         * tests/test-argp-version-etc-1.sh: New test.
13204
13205 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13206
13207         Provide additional interfaces and documentation for version-etc
13208         module.
13209
13210         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13211         interfaces.
13212         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13213         prototypes.
13214
13215 2009-06-24  Bruno Haible  <bruno@clisp.org>
13216
13217         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13218         HAVE_LIB${NAME} macro.
13219         Reported by Sam Steingold <sds@gnu.org>.
13220
13221 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13222
13223         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13224         needed.
13225
13226 2009-06-21  Bruno Haible  <bruno@clisp.org>
13227
13228         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13229         work.
13230         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13231         together with LIB${NAME}, LTLIB${NAME}.
13232         Reported by Sam Steingold <sds@gnu.org>.
13233
13234 2009-06-20  Jim Meyering  <meyering@redhat.com>
13235
13236         tests: make sc_require_test_exit_idiom more generic
13237         * top/maint.mk (Exit_witness_file): New overridable variable.
13238         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13239         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13240
13241 2009-06-19  Jim Meyering  <meyering@redhat.com>
13242
13243         hash: reverse order of src/dst parameters in an internal interface
13244         * lib/hash.c (transfer_entries): Reverse order of parameters to
13245         put DST before SRC.  Adjust callers.
13246
13247         tests: test-hash: avoid wholesale duplication
13248         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13249         Instead, use a loop and add a single conditional.
13250
13251         tests: test-hash: allow seed selection via a command line argument
13252         * tests/test-hash.c (get_seed): New function.
13253         (main): Use it.
13254
13255 2009-06-19  Eric Blake  <ebb9@byu.net>
13256
13257         hash: avoid memory leak on allocation failure
13258         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13259         failure.  Factor repeated algorithm...
13260         (transfer_entries): ...into new helper routine.
13261         (hash_delete): React to hash_rehash return value.
13262
13263         hash: reduce memory pressure in hash_rehash no-op case
13264         * lib/hash.c (next_prime): Avoid overflow.
13265         (hash_initialize): Factor bucket size computation...
13266         (compute_bucket_size): ...into new helper function.
13267         (hash_rehash): Use new function and open coding to reduce memory
13268         pressure, and avoid a memory leak in USE_OBSTACK code.
13269         Reported by Jim Meyering.
13270
13271 2009-06-18  Eric Blake  <ebb9@byu.net>
13272
13273         hash: make rotation more obvious
13274         * modules/hash (Depends-on): Add bitrotate and stdint.
13275         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13276         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13277         (SIZE_MAX): Rely on headers for definition.
13278         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13279         (raw_hasher): Use rotr_sz.
13280         Suggested by Jim Meyering.
13281
13282         hash: fix memory leak in last patch
13283         * lib/hash.c (hash_rehash): Avoid memory leak.
13284
13285         hash: avoid no-op rehashing
13286         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13287
13288         hash: provide default callback functions
13289         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13290         (hash_initialize): Use them as defaults.
13291         * tests/test-hash.c (main): Test this.
13292
13293         hash: minor optimization
13294         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13295         when possible.
13296         (hash_initialize): Document this promise.
13297         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13298         * tests/test-hash.c (hash_compare_strings): Test this.
13299
13300 2009-06-18  Bruno Haible  <bruno@clisp.org>
13301
13302         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13303         going to be replaced anyway.
13304
13305 2009-06-18  Bruno Haible  <bruno@clisp.org>
13306
13307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13308         in one place.
13309         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13310         be replaced anyway.
13311
13312 2009-06-18  Eric Blake  <ebb9@byu.net>
13313
13314         hash: check for resize before insertion
13315         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13316         threshold before insertion, so that a pathological hash_rehash
13317         that fills every bucket can still trigger another rehash.
13318
13319 2009-06-18  Jim Meyering  <meyering@redhat.com>
13320
13321         hash-tests: add a loop around the small tests
13322         * tests/test-hash.c (main): Repeat small tests with selected
13323         small initial table sizes.
13324
13325 2009-06-17  Eric Blake  <ebb9@byu.net>
13326
13327         hash: minor cleanups
13328         * lib/hash.h (hash_entry): Make opaque, by moving...
13329         * lib/hash.c (hash_entry): ...here.
13330         (hash_insert): Clarify restrictions on what can be inserted.
13331         (hash_get_next): Clarify when it is safe to remove an element
13332         during traversal.
13333         (check_tuning): Skip verification when tuning is known safe.
13334         (hash_initialize): Clarify restrictions on tuning.
13335
13336 2009-06-17  Jim Meyering  <jim@meyering.net>
13337         and Eric Blake  <ebb9@byu.net>
13338
13339         hash-tests: new module
13340         * modules/hash-tests: New file.
13341         * tests/test-hash.c: New file.
13342
13343 2009-06-17  Eric Blake  <ebb9@byu.net>
13344
13345         strstr-simple: document new module
13346         * MODULES.html.sh: Document new module.
13347
13348         strstr, strcasestr: replace on platforms with broken memchr
13349         * modules/strstr: Split into...
13350         * modules/strstr-simple: ...new module that does not care about
13351         performance, but does care about glibc bug.
13352         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13353         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13354         if platform memchr is broken, per Debian bug 521737.
13355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13356         memchr.
13357         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13358         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13359         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13360         * modules/mountlist (Depends-on): Add strstr-simple.
13361         * modules/gen-uni-tables (Depends-on): Likewise.
13362         * modules/argz (Depends-on): Add strstr.
13363
13364 2009-06-17  Bruno Haible  <bruno@clisp.org>
13365
13366         * modules/posix_spawn-internal (Depends-on): Add errno.
13367
13368 2009-06-17  Bruno Haible  <bruno@clisp.org>
13369
13370         Define missing ESTALE on Interix 3.5.
13371         * lib/errno.in.h (ESTALE): Assign a value if missing.
13372         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13373         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13374         missing.
13375         * doc/posix-headers/errno.texi: Mention the Interix bug.
13376         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13377
13378 2009-06-15  Eric Blake  <ebb9@byu.net>
13379
13380         memchr, memchr2: add valgrind exception
13381         * lib/memchr.valgrind: New file.
13382         * lib/memchr2.valgrind: New file.
13383         * modules/memchr (Files): Distribute valgrind file.
13384         * modules/memchr2 (Files): Likewise.
13385
13386         docs: memchr is no longer obsolete
13387         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13388         * lib/string.in.h (memchr): Simplify logic.
13389
13390 2009-06-14  Jim Meyering  <meyering@redhat.com>
13391
13392         link-follow: fix the "checking..." message to not mention trailing slash
13393         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13394         never considered trailing slashes.
13395
13396 2009-06-14  Bruno Haible  <bruno@clisp.org>
13397
13398         * m4/memchr.m4: Mention also the bug on IA-64.
13399         * doc/posix-functions/memchr.texi: Likewise.
13400
13401 2009-06-12  Eric Blake  <ebb9@byu.net>
13402
13403         memchr: detect broken x86_64 and alpha implementations
13404         * modules/memchr-tests (Depends-on): Move mmap detection...
13405         * modules/memchr (Depends-on): ...here.
13406         (configure.ac): Set indicator.
13407         * lib/string.in.h (memchr): Declare replacement.
13408         * modules/string (Makefile.am): Trigger replacement.
13409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13410         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13411         bugs.
13412         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13413         * modules/getpagesize (License): Relax license.
13414
13415 2009-06-11  Bruno Haible  <bruno@clisp.org>
13416
13417         * lib/idpriv.h: Add more references.
13418
13419 2009-06-08  Bruno Haible  <bruno@clisp.org>
13420
13421         Tests for module 'idpriv-droptemp'.
13422         * modules/idpriv-droptemp-tests: New file.
13423         * tests/test-idpriv-droptemp.sh: New file.
13424         * tests/test-idpriv-droptemp.su.sh: New file.
13425         * tests/test-idpriv-droptemp.c: New file.
13426
13427         New module 'idpriv-droptemp'.
13428         * lib/idpriv-droptemp.c: New file.
13429         * modules/idpriv-droptemp: New file.
13430
13431 2009-06-08  Bruno Haible  <bruno@clisp.org>
13432
13433         Tests for module 'idpriv-drop'.
13434         * modules/idpriv-drop-tests: New file.
13435         * tests/test-idpriv-drop.sh: New file.
13436         * tests/test-idpriv-drop.su.sh: New file.
13437         * tests/test-idpriv-drop.c: New file.
13438
13439         New module 'idpriv-drop'.
13440         * lib/idpriv.h: New file.
13441         * lib-idpriv-drop.c: New file.
13442         * m4/idpriv.m4: New file.
13443         * modules/idpriv-drop: New file.
13444
13445 2009-06-08  Bruno Haible  <bruno@clisp.org>
13446
13447         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13448         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13449         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13450         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13451         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13452         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13453         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13454
13455 2009-06-08  Eric Blake  <ebb9@byu.net>
13456
13457         test-strstr: use memory fence, when possible
13458         * tests/test-strstr.c (main): Use memory fence, in order to be
13459         more likely to trigger Debian bug 521737.
13460         * modules/strstr-tests (Files): Pull in additional files.
13461
13462         memchr: no longer obsolete, for wider field testing
13463         * modules/memchr (Status, Notice): Delete, this module is no
13464         longer obsolete.
13465         * modules/vasnprintf (Depends-on): Add memchr.
13466
13467 2009-06-07  Jim Meyering  <meyering@redhat.com>
13468
13469         hash: declare some functions with the warn_unused_result attribute
13470         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13471
13472 2009-06-07  Bruno Haible  <bruno@clisp.org>
13473
13474         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13475         Reported by Eric Blake.
13476
13477 2009-06-06  Eric Blake  <ebb9@byu.net>
13478
13479         test-alignof: fix typo with long double
13480         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13481         compiler error.
13482
13483 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13484
13485         Escape non-texinfo { and }s.
13486         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13487         markup error.
13488
13489 2009-06-04  Jim Meyering  <meyering@redhat.com>
13490
13491         gitlog-to-changelog: don't infloop on an empty commit log
13492         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13493         Reported by Boris Petersen <transacid@centerim.org>.
13494
13495 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13496
13497         version-etc: extend for packagers
13498         Add three new configure options, intended for packagers:
13499           --with-packager="packager name"
13500           --with-packager-version="packager-specific version"
13501           --with-packager-bug-reports="packager bug reporting"
13502         An example with coreutils:
13503           $ ./configure \
13504             --with-packager=Gentoo \
13505             --with-packager-bug-report=http://bugs.gentoo.org/ \
13506             --with-packager-version="patchset 1.6"
13507           $ ./src/ls --version | head -n2
13508           ls (GNU coreutils) 7.1-dirty
13509           Packaged by Gentoo (patchset 1.6)
13510         Note that the bug reporting info via --help doesn't show up because
13511         coreutils uses its own custom emit_bug_reporting_address() implementation
13512         in src/system.h.  If it didn't, it'd look like:
13513           $ ./src/ls --help | tail -n4
13514           Report bugs to <bug-coreutils@gnu.org>.
13515           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13516           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13517           General help using GNU software: <http://www.gnu.org/gethelp/>.
13518         * lib/version-etc.c: Print new information, if provided.
13519         * m4/version-etc.m4: New file.
13520         * modules/version-etc (Files): Add m4/version-etc.m4.
13521         (configure.ac): Add gl_VERSION_ETC.
13522
13523 2009-05-31  Bruno Haible  <bruno@clisp.org>
13524
13525         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13526         and 'int64_t'.
13527         * modules/alignof-tests (Dependencies): Add stdint.
13528         Reported by Eric Blake.
13529
13530 2009-05-31  Bruno Haible  <bruno@clisp.org>
13531
13532         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13533         restriction due to compiler bugs.
13534         Reported by Eric Blake.
13535
13536 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13537             Bruno Haible  <bruno@clisp.org>
13538
13539         Fix test-alignof failure.
13540         * lib/alignof.h (alignof_slot): New macro.
13541         (alignof_type): New macro, with the same semantics as the previous
13542         'alignof'.
13543         (alignof): Alias to alignof_slot.
13544         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13545         check that the results are usable as constant expressions.
13546
13547 2009-05-31  Bruno Haible  <bruno@clisp.org>
13548
13549         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13550         * tests/test-memchr.c (main): Check that memchr does not read past the
13551         first occurrence of the byte.
13552         * tests/test-strstr.c (main): Update comment.
13553         Suggested by Eric Blake.
13554
13555 2009-05-30  Bruno Haible  <bruno@clisp.org>
13556
13557         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13558         detail how to use dumpbin.
13559         Reported by David Byron <dbyron@dbyron.com>.
13560
13561 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13562
13563         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13564
13565 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13566
13567         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13568
13569 2009-05-28  Bruno Haible  <bruno@clisp.org>
13570
13571         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13572         build-aux/ files.
13573
13574 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13575
13576         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13577
13578 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13579
13580         * gnulib-tool (sed_transform_main_lib_file)
13581         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13582         regexps.
13583
13584 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13585
13586         * tests/test-strstr.c: Add another self-test.
13587         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13588         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13589
13590 2009-05-23  Bruno Haible  <bruno@clisp.org>
13591
13592         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13593         change.
13594
13595 2009-05-21  Bruno Haible  <bruno@clisp.org>
13596
13597         Simplify use of mode_t varargs.
13598         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13599         uses 'mode_t' or 'int'.
13600         * lib/openat.c (openat): Likewise.
13601         * lib/open-safer.c (open_safer): Likewise.
13602         * m4/mode_t.m4: New file.
13603         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13604         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13605         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13606         * modules/open (Files): Add m4/mode_t.m4.
13607         * modules/openat (Files): Likewise.
13608         * modules/fcntl-safer (Files): Likewise.
13609         Suggested by Eric Blake.
13610
13611 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13612
13613         * doc/glibc-functions/fallocate.texi: New file.
13614         * doc/gnulib.texi: Include it.
13615
13616 2009-05-21  Eric Blake  <ebb9@byu.net>
13617             Bruno Haible  <bruno@clisp.org>
13618
13619         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13620         invocations.
13621         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13622
13623 2009-05-21  Eric Blake  <ebb9@byu.net>
13624             Bruno Haible  <bruno@clisp.org>
13625
13626         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13627         include_next. Fix of 2008-11-20 commit.
13628         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13629         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13630         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13631         NEXT_MATH_H.
13632         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13633         instead of NEXT_MATH_H.
13634
13635 2009-05-21  Bruno Haible  <bruno@clisp.org>
13636
13637         Avoid redefinition warnings for SIZE_MAX.
13638         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13639         Reported by Simon Josefsson.
13640
13641 2009-05-21  Bruno Haible  <bruno@clisp.org>
13642
13643         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13644         AC_CACHE_VAL.
13645
13646 2009-05-20  Bruno Haible  <bruno@clisp.org>
13647
13648         Make zeroptr.h work on mingw.
13649         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13650         mprotect.
13651         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13652         * modules/memchr2-tests (configure.ac): Likewise.
13653         * modules/memcmp-tests (configure.ac): Likewise.
13654         * modules/memmem-tests (configure.ac): Likewise.
13655         * modules/memrchr-tests (configure.ac): Likewise.
13656         Reported by Simon Josefsson.
13657
13658 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13659
13660         * tests/test-glob.c: Include string.h for strcmp prototype.
13661
13662 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13663
13664         * modules/getdelim (Depends-on): Add explicit stdint, although it
13665         was implicitly already pulled in via realloc-posix.
13666         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13667
13668 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13669
13670         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13671         G. Christensen" <tgc@jupiterrise.com>.
13672         * m4/sys_socket_h.m4: Check for sa_family_t.
13673         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13674         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13675         * tests/test-sys_socket.c: Check that sa_family_t works.
13676
13677 2009-05-18  Eric Blake  <ebb9@byu.net>
13678
13679         maint.mk: allow gnulib_dir in VPATH build
13680         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13681
13682 2009-05-15  Jim Meyering  <meyering@redhat.com>
13683
13684         maint.mk: Give gnulib_dir a default definition.
13685         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13686         Thus, most packages no longer need to specify this variable in cfg.mk
13687
13688 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13689
13690         rename.m4: fix typos that would make non-mingw cross-configure fail
13691         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13692
13693 2009-05-13  Eric Blake  <ebb9@byu.net>
13694
13695         mmap-anon: avoid out-of-order autoconf expansion
13696         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13697         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13698         * modules/memchr-tests (Depends-on): Add extensions.
13699         * modules/memchr2-tests (Depends-on): Add extensions.
13700         * modules/memcmp-tests (Depends-on): Add extensions.
13701         * modules/memmem-tests (Depends-on): Add extensions.
13702         * modules/memrchr-tests (Depends-on): Add extensions.
13703
13704 2009-05-13  Bruno Haible  <bruno@clisp.org>
13705
13706         Make some tests ISO C 99 compliant.
13707         * tests/zerosize-ptr.h: New file.
13708         * tests/test-memchr.c: Include zerosize-ptr.h.
13709         (main): Use a zero-size object pointer instead of NULL.
13710         * tests/test-memchr2.c: Include zerosize-ptr.h.
13711         (main): Use a zero-size object pointer instead of NULL.
13712         * tests/test-memcmp.c: Include zerosize-ptr.h.
13713         (main): Use a zero-size object pointer instead of NULL.
13714         * tests/test-memmem.c: Include zerosize-ptr.h.
13715         (main): Use a zero-size object pointer instead of NULL.
13716         * tests/test-memrchr.c: Include zerosize-ptr.h.
13717         (main): Use a zero-size object pointer instead of NULL.
13718         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13719         m4/mmap-anon.m4.
13720         (Depends-on): Add getpagesize.
13721         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13722         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13723         m4/mmap-anon.m4.
13724         (Depends-on): Add getpagesize.
13725         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13726         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13727         m4/mmap-anon.m4.
13728         (Depends-on): Add getpagesize.
13729         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13730         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13731         m4/mmap-anon.m4.
13732         (Depends-on): Add getpagesize.
13733         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13734         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13735         m4/mmap-anon.m4.
13736         (Depends-on): Add getpagesize.
13737         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13738
13739 2009-05-12  Bruno Haible  <bruno@clisp.org>
13740
13741         Tests for module 'alignof'.
13742         * modules/alignof-tests: New file.
13743         * tests/test-alignof.c: New file.
13744
13745 2009-05-12  Bruno Haible  <bruno@clisp.org>
13746
13747         Fix alignof macro.
13748         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13749         vendor compilers that are always correct.
13750
13751 2009-05-12  Bruno Haible  <bruno@clisp.org>
13752
13753         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13754         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13755         not whether its fully works.
13756
13757 2009-05-12  Bruno Haible  <bruno@clisp.org>
13758
13759         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13760
13761 2009-05-12  Jim Meyering  <meyering@redhat.com>
13762
13763         * top/maint.mk: Adjust backslash alignment.
13764
13765 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13766
13767         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13768
13769 2009-05-11  Eric Blake  <ebb9@byu.net>
13770
13771         argp: avoid undefined behavior
13772         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13773         macros.
13774
13775 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13776
13777         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13778         user.name to prevent git commit from complaining.
13779
13780 2009-05-10  Bruno Haible  <bruno@clisp.org>
13781
13782         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13783         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13784         it rewrites every file name only once.
13785         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13786
13787 2009-05-08  Bruno Haible  <bruno@clisp.org>
13788
13789         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13790         instead of 'max'.
13791
13792 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13793
13794         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13795         sockaddr_storage test.
13796
13797 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13798
13799         * modules/sys_socket (Makefile.am): Substitute
13800         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13801         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13802         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13803         * tests/test-sys_socket.c: Check sockaddr_storage.
13804
13805 2009-05-08  Bruno Haible  <bruno@clisp.org>
13806
13807         New module 'alignof'.
13808         * lib/alignof.h: New file.
13809         * modules/alignof: New file.
13810
13811 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13812             Bruno Haible  <bruno@clisp.org>
13813
13814         Fix test-file-has-acl on FreeBSD.
13815         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13816         mask is implicitly added.
13817         * tests/test-file-has-acl.c: Include <signal.h>.
13818         (main): Terminate the test after 5 seconds.
13819         * modules/acl-tests (configure.ac): Check for alarm function.
13820
13821 2009-05-04  Bruno Haible  <bruno@clisp.org>
13822
13823         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13825         * modules/errno (configure.ac): Drop AC_REQUIRE.
13826         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13827         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13828
13829 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13830
13831         * modules/glob-tests: New module.
13832         * tests/test-glob.c: Add.
13833
13834 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13835
13836         * modules/fnmatch-tests: New module.
13837         * tests/test-fnmatch.c: Add.
13838
13839 2009-05-04  Eric Blake  <ebb9@byu.net>
13840
13841         maint: make the new no-submodule-changes rule VPATH-safe
13842         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13843
13844 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13845             Bruno Haible  <bruno@clisp.org>
13846
13847         acl: Fix infinite loop on FreeBSD.
13848         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13849         of return value from acl_get_entry.
13850         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13851         Likewise.
13852
13853 2009-05-03  Bruno Haible  <bruno@clisp.org>
13854
13855         * lib/acl-internal.h (acl_entries): Clarify return value.
13856         * lib/acl_entries.c (acl_entries): Likewise.
13857
13858 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13859
13860         Bug fix in acl module.
13861         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13862
13863 2009-05-03  Bruno Haible  <bruno@clisp.org>
13864
13865         Create gperf-generated file in the source dir, not in the build dir.
13866         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13867         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13868         * modules/unicase/locale-language (unicase/locale-languages.h):
13869         Likewise.
13870         * modules/unicase/special-casing (unicase/special-casing-table.h):
13871         Likewise.
13872         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13873         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13874         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13875         Reported by Ralf Wildenhues.
13876
13877 2009-05-03  Bruno Haible  <bruno@clisp.org>
13878
13879         * modules/fnmatch (Description, configure.ac): Taken from
13880         fnmatch-posix.
13881         * modules/fnmatch-posix: Turn into a symbolic reference to the
13882         'fnmatch' module, and deprecate.
13883         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13884
13885 2009-05-03  Bruno Haible  <bruno@clisp.org>
13886
13887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13888         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13889         Reported by Ralf Wildenhues.
13890
13891 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13892
13893         * m4/fnmatch.m4: Fix fnmatch re-define.
13894
13895 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13896
13897         priv-set: new module and tests; adapt write-any-file
13898         * lib/priv-set.c: New file.
13899         * lib/priv-set.h: New file.
13900         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13901         * lib/write-any-file.c: Simplify by using priv-set module.
13902         * m4/priv-set.m4: New file.
13903         * modules/priv-set: New file.
13904         * modules/unlinkdir: Add dependency on priv-set module.
13905         * modules/write-any-file: Likewise.
13906
13907         Tests for module 'priv-set'.
13908         * modules/priv-set-tests: New file.
13909         * tests/test-priv-set.c: New file.
13910
13911 2009-05-03  Jim Meyering  <meyering@redhat.com>
13912             Bruno Haible  <bruno@clisp.org>
13913
13914         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13915         use the converted UTF-8 variant of the name instead.
13916
13917 2009-05-03  Jim Meyering  <meyering@redhat.com>
13918
13919         tests: tighten some getdate tests
13920         * tests/test-getdate.c (main): Tighten tests: require equality,
13921         not just greater than.  Set TZ envvar to UTC0.
13922
13923 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13924
13925         getdate: correctly interpret "next monday" when run on a Monday
13926         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13927         that e.g., "next tues" (when run on a tuesday) results in a date
13928         that is one week in the future, and not today's date.
13929         I.e., add a week when the wday is the same as the current one.
13930         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13931         and earlier by Martin Bernreuther and Jan Minář.
13932         * tests/test-getdate.c (main): Check that "next DAY" is always in
13933         the future and that "last DAY" is always in the past.
13934
13935 2009-05-02  Jim Meyering  <meyering@redhat.com>
13936
13937         build: ensure that a release build fails when a submodule is unclean
13938         * top/maint.mk (no-submodule-changes): New rule.
13939         (alpha beta major): Depend on it.
13940
13941 2009-05-02  Bruno Haible  <bruno@clisp.org>
13942
13943         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13944         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13945         shell variable gl_fnmatch_required to detect which variant is
13946         requested.
13947         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13948         gl_FUNC_FNMATCH_POSIX.
13949         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13950         exclude fnmatch-posix.
13951
13952 2009-05-02  Bruno Haible  <bruno@clisp.org>
13953
13954         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13955         * modules/mbsrtowcs (License): Change to LGPLv2+.
13956         * modules/strnlen1 (License): Likewise.
13957         Reported by Simon Josefsson.
13958
13959 2009-05-02  Bruno Haible  <bruno@clisp.org>
13960
13961         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13962         "cross".
13963         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13964         gnulib-tool was called with option --source-base=lib.
13965
13966 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13967
13968         Use automake *-local hooks without commands, for extensibility.
13969         * modules/localcharset (Makefile.am): Rename install-exec-local
13970         rule to install-exec-localcharset, and make it a prerequisite of
13971         install-exec-local.  Likewise, rename the uninstall-local rule to
13972         uninstall-localcharset, and make it a prerequisite of the former.
13973
13974 2009-05-01  Bruno Haible  <bruno@clisp.org>
13975
13976         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13977         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13978         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13980         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13981         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13982         m4/locale-zh.m4, m4/codeset.m4.
13983
13984         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13985         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13986         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13987         m4/locale-zh.m4.
13988
13989         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13990         REPLACE_WCRTOMB if mbstate_t must be replaced.
13991         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13992         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13993
13994 2009-05-01  Bruno Haible  <bruno@clisp.org>
13995
13996         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13997         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13998         dngettext, dcngettext, textdomain, bindtextdomain,
13999         bind_textdomain_codeset): Undefine before redefining.
14000
14001 2009-04-30  Bruno Haible  <bruno@clisp.org>
14002
14003         Fix bug introduced on 2009-04-25.
14004         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14005         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14006         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14007         is defined.
14008         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14009         is defined.
14010         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14011         is defined.
14012         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14013
14014 2009-04-28  Bruno Haible  <bruno@clisp.org>
14015
14016         Comment tweaks.
14017         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14018         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14019         * lib/unicase.h (u*_casexfrm): Likewise.
14020         Reported by Paolo Bonzini.
14021
14022 2009-04-28  Bruno Haible  <bruno@clisp.org>
14023
14024         Fix a compilation error.
14025         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14026         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14027         Reported by Jim Meyering.
14028
14029 2009-04-27  Bruno Haible  <bruno@clisp.org>
14030
14031         New module 'libunistring'.
14032         * modules/libunistring: New file.
14033         * m4/libunistring.m4: New file.
14034         * MODULES.html.sh (Unicode string functions): Add it.
14035
14036 2009-04-27  Eric Blake  <ebb9@byu.net>
14037
14038         maint.mk: allow package-specific header to provide <config.h>
14039         * top/maint.mk (sc_require_config_h): New variable.
14040         (sc_require_config_h, sc_require_config_h_first): Use it.
14041
14042 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14043
14044         * top/maint.mk (sc_avoid_if_before_free): Except
14045         useless-if-before-free script.
14046
14047 2009-04-27  Eric Blake  <ebb9@byu.net>
14048
14049         maintainer-makefile: depend on all required helper scripts
14050         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14051         useless-if-before-free.
14052         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14053         version, rather than assuming gnulib checkout is available.
14054         Reported by Simen Josefsson.
14055
14056 2009-04-26  Bruno Haible  <bruno@clisp.org>
14057
14058         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14059         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14060         "../" or "..".
14061
14062 2009-04-26  Bruno Haible  <bruno@clisp.org>
14063
14064         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14065         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14066         AC_LIB_HAVE_LINKFLAGS.
14067
14068 2009-04-26  Bruno Haible  <bruno@clisp.org>
14069
14070         Simplify calling convention of u*_conv_from_encoding.
14071         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14072         u32_conv_from_encoding): Expect a resultbuf argument and return the
14073         result directly as a pointer.
14074         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14075         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14076         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14077         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14078         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14079         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14080         Update.
14081         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14082         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14083         * lib/vasnprintf.c (VASNPRINTF): Update.
14084         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14085         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14086         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14087         * NEWS: Mention the change.
14088
14089 2009-04-26  Bruno Haible  <bruno@clisp.org>
14090
14091         Simplify calling convention of u*_conv_to_encoding.
14092         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14093         u32_conv_to_encoding): Expect a resultbuf argument and return the
14094         result directly as a pointer.
14095         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14096         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14097         freeing scaled_offsets if mem_iconveha failed.
14098         * lib/unicase/u-casexfrm.h (FUNC): Update.
14099         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14100         * lib/vasnprintf.c (VASNPRINTF): Update.
14101         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14102         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14103         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14104         * NEWS: Mention the change.
14105
14106 2009-04-26  Bruno Haible  <bruno@clisp.org>
14107
14108         Avoid test failures on AIX and OSF/1.
14109         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14110         malloc(0).
14111         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14112         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14113         Likewise.
14114         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14115         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14116         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14117         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14118         * doc/posix-functions/malloc.texi: Document the portability problem
14119         related to malloc(0).
14120
14121 2009-04-26  Bruno Haible  <bruno@clisp.org>
14122
14123         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14124         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14125         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14126
14127 2009-04-25  Bruno Haible  <bruno@clisp.org>
14128
14129         Avoid link error when creating a namespace clean library.
14130         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14131         as macro with arguments if already defined as an alias.
14132         * lib/signbitf.c (gl_signbitf): Don't undefine.
14133         * lib/signbitd.c (gl_signbitd): Don't undefine.
14134         * lib/signbitl.c (gl_signbitl): Don't undefine.
14135
14136 2009-04-25  Jim Meyering  <meyering@redhat.com>
14137
14138         vc-list-files: fix another quoting bug
14139         * build-aux/vc-list-files: Avoid sed backslash expansion
14140         of pathological directory names.
14141
14142 2009-04-25  Eric Blake  <ebb9@byu.net>
14143
14144         vc-list-files: fix shell quoting error
14145         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14146         timestamp.
14147
14148 2009-04-25  Jim Meyering  <meyering@redhat.com>
14149
14150         vc-list-files: restore lost functionality with subdir argument
14151         * build-aux/vc-list-files: When given a non-"." sub-directory
14152         argument, substitute the $dir/ prefix back onto each resulting name.
14153         Otherwise, coreutils' root_tests check would fail.
14154
14155 2009-04-24  Eric Blake  <ebb9@byu.net>
14156
14157         vc-list-files: ignore git symlinks
14158         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14159         than ls-files, to ignore git symlinks.
14160
14161         maint.mk: import improvements from m4
14162         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14163         (move_if_change): Delete unused macro.
14164         (news-date-check, vc-diff-check): Support VPATH builds.
14165         (announcement): Likewise.  Split --bootstrap-tools list...
14166         (boostrap-tools): ...into separate list, which can be overridden
14167         in cfg.mk.
14168         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14169         requiring dependency on useless-if-before-free module.
14170         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14171         Support VPATH builds.
14172
14173 2009-04-24  Jim Meyering  <meyering@redhat.com>
14174
14175         maint.mk: remove coreutils-specific rules and variables
14176         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14177         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14178         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14179
14180         maint.mk: remove obsolete rule
14181         * top/maint.mk (rel-check): Remove rule.
14182         (WGET, WGETFLAGS): Remove now-unused variables.
14183
14184 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14185
14186         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14187         consistency.
14188
14189         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14190         '$(PATH_SEPARATOR)' instead of ':'.
14191
14192 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14193
14194         * lib/getopt1.c (main): Use 'const' for static array.
14195
14196 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14197
14198         * top/maint.mk: Sync with coreutils.
14199         * NEWS: Explain incompatibilities.
14200
14201 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14202             Bruno Haible  <bruno@clisp.org>
14203
14204         Fix cross-compilation results.
14205         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14206         statement, as third argument of AC_TRY_RUN.
14207         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14208         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14209         Likewise.
14210         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14211         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14212         Likewise.
14213         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14214         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14215         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14216
14217 2009-04-20  Bruno Haible  <bruno@clisp.org>
14218
14219         Avoid test failure on mingw.
14220         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14221
14222 2009-04-20  Bruno Haible  <bruno@clisp.org>
14223
14224         Avoid compilation error on mingw.
14225         * modules/localename-tests (Depends-on): Add locale.
14226
14227 2009-04-19  Bruno Haible  <bruno@clisp.org>
14228
14229         Support for building a shared library on Windows platforms.
14230         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14231         (main): Test the presence of UNINORM_NFC here.
14232         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14233         (main): Test the presence of UNINORM_NFD here.
14234         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14235         (main): Test the presence of UNINORM_NFKC here.
14236         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14237         (main): Test the presence of UNINORM_NFKD here.
14238
14239 2009-04-19  Bruno Haible  <bruno@clisp.org>
14240
14241         Avoid a compiler warning.
14242         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14243         Change type of variable 'sequence'.
14244
14245 2009-04-19  Bruno Haible  <bruno@clisp.org>
14246
14247         * modules/configmake (Makefile.am): When the contents of configmake.h
14248         does not change, arrange to preserve its modification time.
14249
14250 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14251
14252         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14253         gettext domain.
14254
14255 2009-04-16  Jim Meyering  <meyering@redhat.com>
14256
14257         useless-if-before-free: improve conversion code
14258         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14259         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14260
14261 2009-04-14  Bruno Haible  <bruno@clisp.org>
14262
14263         * modules/fcntl (Depends-on): Add extensions.
14264         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14265
14266 2009-04-12  Ben Pfaff  <blp@gnu.org>
14267
14268         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14269         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14270
14271 2009-03-20  Ben Pfaff  <blp@gnu.org>
14272
14273         Make rename replace existing destinations on Windows.
14274         * m4/rename.m4: Add test for Mingw.
14275         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14276         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14277         * doc/posix-functions/rename.texi: Document.
14278
14279 2009-04-10  Bruno Haible  <bruno@clisp.org>
14280
14281         New include file "iconveh.h".
14282         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14283         * lib/striconveh.h: Include it.
14284         (enum iconv_ilseq_handler): Remove definition.
14285         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14286         striconveh.h.
14287         * lib/striconveha.c: Include striconveh.h.
14288         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14289         * modules/striconveh (Files): Add lib/iconveh.h.
14290         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14291         lib/striconveh.h.
14292
14293 2009-04-10  Bruno Haible  <bruno@clisp.org>
14294
14295         * lib/uniconv.h: Update comment.
14296
14297 2009-04-10  Bruno Haible  <bruno@clisp.org>
14298
14299         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14300         always.
14301         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14302         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14303         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14304         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14305         "unistring-notinline.h", so that the function gets defined always.
14306         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14307         * lib/unistr/u8-uctomb.c: Likewise.
14308         * lib/unistr/u16-mbtouc.c: Likewise.
14309         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14310         * lib/unistr/u16-uctomb.c: Likewise.
14311         * lib/unistr/u32-mbtouc.c: Likewise.
14312         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14313         * lib/unistr/u32-uctomb.c: Likewise.
14314
14315 2009-04-10  Bruno Haible  <bruno@clisp.org>
14316
14317         Mark 'utime' obsolete.
14318         * modules/utime (Status, Notice): New sections.
14319         Suggested by Jim Meyering.
14320
14321         Fix cross-compile guess for utime test.
14322         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14323         autoconf.
14324         * doc/posix-functions/utime.texi: Give more precisions.
14325         Reported by Jan <ipif@ymail.com>.
14326
14327 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14328
14329         filevercmp: correct today's change
14330         * lib/filevercmp.c: Also handle coreutils' test inputs.
14331         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14332
14333         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14334         for reporting it.
14335         * lib/filevercmp.c: Special handle for "", "." and "..".
14336         * tests/test-filevercmp.c: Enlarge the set suite.
14337
14338 2009-04-07  Jim Meyering  <meyering@redhat.com>
14339
14340         useless-if-before-free: show how to remove braced useless free, too
14341         * build-aux/useless-if-before-free: still only in a comment, though.
14342
14343 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14344
14345         maint.mk: import changes to syntax-check macros from coreutils
14346         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14347         Use them in the relevant macros.
14348
14349 2009-04-06  Bruno Haible  <bruno@clisp.org>
14350
14351         Fix unportable use of bit-fields.
14352         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14353         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14354         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14355
14356 2009-04-06  Bruno Haible  <bruno@clisp.org>
14357
14358         Avoid test failures on AIX and OSF/1.
14359         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14360         that malloc(0) = NULL.
14361         * tests/unicase/test-u8-tolower.c (check): Likewise.
14362         * tests/unicase/test-u8-totitle.c (check): Likewise.
14363         * tests/unicase/test-u8-toupper.c (check): Likewise.
14364         * tests/unicase/test-u16-casefold.c (check): Likewise.
14365         * tests/unicase/test-u16-tolower.c (check): Likewise.
14366         * tests/unicase/test-u16-totitle.c (check): Likewise.
14367         * tests/unicase/test-u16-toupper.c (check): Likewise.
14368         * tests/unicase/test-u32-casefold.c (check): Likewise.
14369         * tests/unicase/test-u32-tolower.c (check): Likewise.
14370         * tests/unicase/test-u32-totitle.c (check): Likewise.
14371         * tests/unicase/test-u32-toupper.c (check): Likewise.
14372         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14373         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14374         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14375         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14376         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14377         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14378         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14379         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14380         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14381         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14382         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14383         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14384
14385 2009-04-05  Bruno Haible  <bruno@clisp.org>
14386
14387         Work around an autoconf limitation.
14388         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14389         comment line if it would be longer than 3 KB.
14390
14391 2009-04-05  Bruno Haible  <bruno@clisp.org>
14392
14393         Avoid test failure with libiconv-1.13.
14394         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14395         of the expected test results.
14396
14397 2009-04-05  Bruno Haible  <bruno@clisp.org>
14398
14399         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14400         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14401         that it should be installed.
14402
14403 2009-04-05  Bruno Haible  <bruno@clisp.org>
14404
14405         * gnulib-tool: New option --copy-file.
14406         (func_usage): Document it.
14407         (func_dest_tmpfilename): Moved out of func_import.
14408         (func_add_file, func_update_file): New functions, extracted from
14409         func_import.
14410         (func_import): Update.
14411
14412 2009-04-05  Karl Berry  <karl@gnu.org>
14413
14414         * README: prominently mention gnulib-tool.
14415         Rearrange sections so getting the code is near the top.
14416
14417 2009-04-05  Bruno Haible  <bruno@clisp.org>
14418
14419         * lib/unicase.h: Mention u*_cmp2.
14420         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14421         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14422         * lib/unicase/ulc-casecmp.c: Likewise.
14423         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14424         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14425         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14426         unistr/u8-cmp.
14427         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14428         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14429         unistr/u16-cmp.
14430         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14431         unistr/u32-cmp.
14432
14433         * lib/uninorm.h: Mention u*_cmp2.
14434         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14435         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14436         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14437         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14438         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14439         unistr/u8-cmp.
14440         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14441         unistr/u16-cmp.
14442         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14443         unistr/u32-cmp.
14444
14445         New module 'unistr/u32-cmp2'.
14446         * lib/unistr/u32-cmp2.c: New file.
14447         * modules/unistr/u32-cmp2: New file.
14448
14449         New module 'unistr/u16-cmp2'.
14450         * lib/unistr/u16-cmp2.c: New file.
14451         * modules/unistr/u16-cmp2: New file.
14452
14453         New module 'unistr/u8-cmp2'.
14454         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14455         * lib/unistr/u8-cmp2.c: New file.
14456         * lib/unistr/u-cmp2.h: New file.
14457         * modules/unistr/u8-cmp2: New file.
14458
14459 2009-04-05  Bruno Haible  <bruno@clisp.org>
14460
14461         * lib/unictype.h (uc_property_is_valid): New macro.
14462         * tests/unictype/test-pr_byname.c (main): Use it.
14463
14464         * lib/unistr.h: Doc fixes.
14465         * lib/uniconv.h: Doc fixes.
14466         * lib/unictype.h: Doc fixes.
14467
14468 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14469
14470         Port coreutils 7.2 to Solaris 8.
14471
14472         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14473         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14474         for Solaris 8.  This is a bit of a hack, as it means it's the
14475         caller's responsibility to add -lnsl if needed, but most likely it
14476         won't be needed since only getaddrinfo uses this and getaddrinfo
14477         isn't needed on Solaris 8.
14478
14479         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14480         problem to Solaris 8 encountered with coreutils 7.2, which
14481         resulted in a message "fnmatch.c:292: warning: passing argument 4
14482         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14483         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14484
14485 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14486
14487         * m4/ld-version-script.m4: Add FIXME comment.
14488
14489 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14490
14491         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14492         SOVERSION variable.
14493
14494 2009-04-02  Bruno Haible  <bruno@clisp.org>
14495
14496         * Makefile (info, html, dvi, pdf): Combine the rules.
14497         Suggested by Jim Meyering.
14498
14499 2009-04-01  Bruno Haible  <bruno@clisp.org>
14500
14501         * Makefile (info, html, dvi, pdf): New targets.
14502         Reported by Reuben Thomas <rrt@sc3d.org>.
14503
14504 2009-04-01  Bruno Haible  <bruno@clisp.org>
14505
14506         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14507         can be put into PATH.
14508         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14509
14510 2009-04-01  Bruno Haible  <bruno@clisp.org>
14511
14512         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14513
14514 2009-04-01  Bruno Haible  <bruno@clisp.org>
14515
14516         Rename module 'visibility'.
14517         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14518         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14519         * doc/gnulib.texi: Update.
14520         * MODULES.html.sh (Misc): Update.
14521         * NEWS: Mention the change.
14522
14523 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14524
14525         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14526         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14527         Eric Blake <ebb9@byu.net> for review.
14528         * MODULES.html.sh: Add lib-msvc-compat.
14529         * doc/gnulib.texi: Link to new section.
14530         * m4/ld-output-def.m4: New file.
14531         * doc/ld-output-def.texi: New file.
14532
14533 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14534
14535         Rename ld-version-script to lib-symbol-versions.  Suggested by
14536         Bruno Haible <bruno@clisp.org>.
14537         * modules/ld-version-script: Renamed to lib-symbol-versions.
14538         * doc/ld-version-script.texi: Fix module name.
14539         * MODULES.html.sh: Add lib-symbol-versions.
14540
14541 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14542
14543         * modules/u64-tests: New file.
14544         * tests/test-u64.c: New file.
14545
14546 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14547
14548         * MODULES.html.sh: Mention u64.
14549         * modules/u64: New module.
14550         * modules/crypto/sha512: Depend on u64 module instead of providing
14551         u64.h.
14552
14553 2009-03-27  Eric Blake  <ebb9@byu.net>
14554
14555         test-strerror: make debugging EAI_SYSTEM easier
14556         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14557         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14558         failure was EAI_SYSTEM.
14559
14560 2009-03-25  Bruno Haible  <bruno@clisp.org>
14561
14562         Fix a problem with --enable-relocatable on Solaris 7.
14563         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14564         since 2008-02-24.
14565
14566 2009-03-25  Eric Blake  <ebb9@byu.net>
14567
14568         test-sockets: avoid gcc warning
14569         * tests/test-sockets.c (main): Silence compiler warning.
14570
14571 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         New modules nproc, pthread, contributed by Glen Lenker.
14574
14575         * MODULES.html.sh: Add pthread, nproc.
14576         * lib/nproc.c: New file.
14577         * lib/nproc.h: New file.
14578         * lib/pthread.in.h: New file.
14579         * m4/pthread.m4: New file.
14580         * modules/nproc: New file.
14581         * modules/pthread: New file.
14582
14583 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14584
14585         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14586         New variable.
14587
14588 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14589
14590         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14591         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14592         * tests/test-filevercmp.c: Add tests for backup suffixes.
14593
14594 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14595
14596         * modules/stdlib (Depends-on): Add stdint, needed when defining
14597         struct random_data on, for example, HP-UX 10.20.  Reported by
14598         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14599
14600 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14601
14602         * lib/readline.c (readline): Call fflush on stdout after printing
14603         prompt.
14604
14605 2009-03-20  Bruno Haible  <bruno@clisp.org>
14606
14607         Remove dependency from 'close' module to -lws2_32 on native Windows.
14608         * lib/close-hook.h: New file.
14609         * lib/close-hook.c: New file.
14610         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14611         w32sock.h.
14612         (_gl_close_fd_maybe_socket): Remove function.
14613         (rpl_close): Invoke execute_all_close_hooks instead of
14614         _gl_close_fd_maybe_socket.
14615         * lib/sockets.c: Include close-hook.h, w32sock.h.
14616         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14617         (close_sockets_hook): New variable.
14618         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14619         (gl_sockets_cleanup): Unregister it.
14620         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14621         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14622         * modules/close-hook: New file.
14623         * modules/close (Files): Remove lib/w32sock.h.
14624         (Depends-on): Add close-hook.
14625         (Link): Remove section.
14626         * modules/sockets (Files): Add lib/w32sock.h.
14627         (Depends-on): Add close-hook.
14628         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14629         invocation.
14630         * NEWS: Mention that LIB_CLOSE is gone.
14631
14632 2009-03-23  Eric Blake  <ebb9@byu.net>
14633
14634         signal-tests: test previous patch
14635         * tests/test-signal.c: New file.
14636         * modules/signal-tests: Likewise.
14637
14638         signal.h: always support 'volatile sig_atomic_t'
14639         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14640         (gl_SIGNAL_H_DEFAULTS): Add a default.
14641         * modules/signal (Makefile.am): Substitute if needed.
14642         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14643         users can blindly add volatile.
14644         * doc/posix-headers/signal.texi (signal.h): Document it.
14645         Reported by Matthew Woehlke.
14646
14647 2009-03-23  Jim Meyering  <meyering@redhat.com>
14648
14649         pathmax: PATH_MAX: use pathconf only when available
14650         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14651         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14652         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14653         This avoids a link failure in a PSP cross-compilation environment
14654         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14655
14656         * lib/vasnprintf.c (divide): Fix typo in comment.
14657
14658 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14659
14660         * gnulib-tool (func_filter_filelist): Fix comment.
14661
14662 2009-03-20  Bruno Haible  <bruno@clisp.org>
14663
14664         Make sockets.h self-contained.
14665         * lib/sockets.c: Include sockets.h first.
14666         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14667
14668 2009-03-19  Eric Blake  <ebb9@byu.net>
14669
14670         doc: mention more functions added in cygwin 1.7.0
14671         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14672         addition.
14673         * doc/posix-functions/log2f.texi: Likewise.
14674
14675 2009-03-19  Jim Meyering  <meyering@redhat.com>
14676
14677         fsusage: avoid syntax error due to statement-before-declaration
14678         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14679         after all declarations.  Reported by Matthew Woehlke in
14680         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14681
14682 2009-03-18  Eric Blake  <ebb9@byu.net>
14683
14684         build-aux/compile: sync from automake
14685         * build-aux/compile: New file, from automake.
14686         * config/srclist.txt: Mention build-aux/compile.
14687
14688 2009-03-17  Bruno Haible  <bruno@clisp.org>
14689
14690         * lib/git-merge-changelog.c: Fix typo in comment.
14691         Reported by Reuben Thomas <rrt@sc3d.org>.
14692
14693 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14694
14695         * m4/regex.m4: update and improve help for
14696         --without-included-regex.
14697
14698 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14699
14700         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14701         failure on missing include files.
14702
14703 2009-03-17  Eric Blake  <ebb9@byu.net>
14704
14705         doc: mention more functions added in cygwin 1.7.0
14706         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14707         addition.
14708         * doc/posix-functions/fwscanf.texi: Likewise.
14709         * doc/posix-functions/swprintf.texi: Likewise.
14710         * doc/posix-functions/swscanf.texi: Likewise.
14711         * doc/posix-functions/vfwprintf.texi: Likewise.
14712         * doc/posix-functions/vfwscanf.texi: Likewise.
14713         * doc/posix-functions/vswprintf.texi: Likewise.
14714         * doc/posix-functions/vswscanf.texi: Likewise.
14715         * doc/posix-functions/vwprintf.texi: Likewise.
14716         * doc/posix-functions/vwscanf.texi: Likewise.
14717         * doc/posix-functions/wcscasecmp.texi: Likewise.
14718         * doc/posix-functions/wcsdup.texi: Likewise.
14719         * doc/posix-functions/wcsftime.texi: Likewise.
14720         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14721         * doc/posix-functions/wprintf.texi: Likewise.
14722         * doc/posix-functions/wscanf.texi: Likewise.
14723         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14724
14725 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14726
14727         maint.mk: really add $(AM_MAKEFLAGS)
14728         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14729         was inadvertently omitted in the last commit.
14730         Spotted by Bruno Haible.
14731
14732         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14733         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14734         $(AM_MAKEFLAGS)' rather than plain `make'.
14735
14736         gnulib-tool: execute $MAKE not make
14737         * gnulib-tool: Default $MAKE to 'make'.
14738         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14739         than make.  Initialize $MAKE in the do-autobuild script.
14740
14741         gnulib-tool: use $MAKE not make in generated files
14742         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14743         make, in generated files.  Initialize $MAKE in the do-autobuild
14744         script.
14745
14746         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14747
14748         GNUmakefile: disable parallelism only for multiple, recursive targets
14749         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14750         additions in the Makefile.
14751         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14752         by Automake.
14753         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14754         are listed on the command line and at least one of them is
14755         listed in $(ALL_RECURSIVE_TARGETS).
14756
14757 2009-03-14  Bruno Haible  <bruno@clisp.org>
14758
14759         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14760         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14761         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14762         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14763         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14764         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14765         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14766         unistr/u8-uctomb.
14767         * modules/unistr/u8-strchr (Depends-on): Likewise.
14768         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14769         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14770         unistr/u16-uctomb.
14771         * modules/unistr/u16-strchr (Depends-on): Likewise.
14772         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14773
14774 2009-03-12  Bruno Haible  <bruno@clisp.org>
14775
14776         Work around select() bug on Interix 3.5.
14777         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14778         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14779         * m4/select.m4: New file.
14780         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14781         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14782         * modules/select (Files): Add m4/select.m4.
14783         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14784         * modules/nanosleep (Depends-on): Add select.
14785         * modules/poll (Depends-on): Likewise.
14786         * doc/posix-functions/select.texi: Mention the Interix bug.
14787         Reported by Markus Duft <mduft@gentoo.org>.
14788
14789         * lib/select.c: Renamed from lib/winsock-select.c.
14790         * modules/select (Files): Add lib/select.c, remove
14791         lib/winsock-select.c.
14792         (configure.ac): Update.
14793
14794 2009-03-12  Jim Meyering  <meyering@redhat.com>
14795
14796         avoid gcc warnings about unused macro definitions
14797         * lib/readtokens.c (STREQ): Remove unused definition.
14798         * lib/xmalloc.c (SIZE_MAX): Likewise.
14799         * lib/openat-die.c (N_): Likewise.
14800         * lib/mountlist.c (SIZE_MAX): Remove definition.
14801         Instead, include <stdint.h>.
14802         * lib/readutmp.c: Likewise.
14803         * modules/readutmp (Depends-on): Add stdint.
14804         * modules/mountlist (Depends-on): Add stdint.
14805         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14806
14807 2009-03-10  Bruno Haible  <bruno@clisp.org>
14808
14809         Tests for module 'mbmemcasecoll'.
14810         * modules/mbmemcasecoll-tests: New file.
14811         * tests/test-mbmemcasecoll1.sh: New file.
14812         * tests/test-mbmemcasecoll2.sh: New file.
14813         * tests/test-mbmemcasecoll3.sh: New file.
14814         * tests/test-mbmemcasecoll.c: New file.
14815
14816         New module 'mbmemcasecoll'.
14817         * lib/mbmemcasecoll.h: New file.
14818         * lib/mbmemcasecoll.c: New file.
14819         * modules/mbmemcasecoll: New file.
14820
14821         * tests/test-mbmemcasecmp.h: New file, extracted from
14822         tests/test-mbmemcasecmp.c.
14823         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14824         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14825         (main): Update.
14826         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14827
14828 2009-03-09  Bruno Haible  <bruno@clisp.org>
14829
14830         Tests for module 'mbmemcasecmp'.
14831         * modules/mbmemcasecmp-tests: New file.
14832         * tests/test-mbmemcasecmp1.sh: New file.
14833         * tests/test-mbmemcasecmp2.sh: New file.
14834         * tests/test-mbmemcasecmp3.sh: New file.
14835         * tests/test-mbmemcasecmp.c: New file.
14836
14837         New module 'mbmemcasecmp'.
14838         * lib/mbmemcasecmp.h: New file.
14839         * lib/mbmemcasecmp.c: New file.
14840         * modules/mbmemcasecmp: New file.
14841
14842 2009-03-09  Bruno Haible  <bruno@clisp.org>
14843
14844         Tests for module 'unicase/ulc-casecoll'.
14845         * modules/unicase/ulc-casecoll-tests: New file.
14846         * tests/unicase/test-ulc-casecoll1.sh: New file.
14847         * tests/unicase/test-ulc-casecoll2.sh: New file.
14848         * tests/unicase/test-ulc-casecoll.c: New file.
14849
14850         New module 'unicase/ulc-casecoll'.
14851         * lib/unicase.h (ulc_casecoll): New declaration.
14852         * lib/unicase/ulc-casecoll.c: New file.
14853         * modules/unicase/ulc-casecoll: New file.
14854
14855         New module 'unicase/ulc-casexfrm'.
14856         * lib/unicase.h (ulc_casexfrm): New declaration.
14857         * lib/unicase/ulc-casexfrm.c: New file.
14858         * modules/unicase/ulc-casexfrm: New file.
14859
14860 2009-03-09  Bruno Haible  <bruno@clisp.org>
14861
14862         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14863         invocations.
14864
14865         * m4/mbscasecmp.m4: Remove file.
14866         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14867         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14868
14869         * m4/mbscasestr.m4: Remove file.
14870         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14871         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14872
14873         * m4/mbschr.m4: Remove file.
14874         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14875         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14876
14877         * m4/mbscspn.m4: Remove file.
14878         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14879         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14880
14881         * m4/mbslen.m4: Remove file.
14882         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14883         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14884
14885         * m4/mbsncasecmp.m4: Remove file.
14886         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14887         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14888
14889         * m4/mbsnlen.m4: Remove file.
14890         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14891         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14892
14893         * m4/mbspbrk.m4: Remove file.
14894         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14895         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14896
14897         * m4/mbspcasecmp.m4: Remove file.
14898         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14899         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14900
14901         * m4/mbsrchr.m4: Remove file.
14902         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14903         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14904
14905         * m4/mbssep.m4: Remove file.
14906         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14907         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14908
14909         * m4/mbsspn.m4: Remove file.
14910         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14911         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14912
14913         * m4/mbsstr.m4: Remove file.
14914         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14915         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14916
14917         * m4/mbstok_r.m4: Remove file.
14918         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14919         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14920
14921         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14922
14923         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14924         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14925
14926         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14927
14928 2009-03-08  Bruno Haible  <bruno@clisp.org>
14929
14930         Tests for module 'unicase/ulc-casecmp'.
14931         * modules/unicase/ulc-casecmp-tests: New file.
14932         * tests/unicase/test-ulc-casecmp1.sh: New file.
14933         * tests/unicase/test-ulc-casecmp2.sh: New file.
14934         * tests/unicase/test-ulc-casecmp.c: New file.
14935
14936         New module 'unicase/ulc-casecmp'.
14937         * lib/unicase.h (ulc_casecmp): New declaration.
14938         * lib/unicase/ulc-casecmp.c: New file.
14939         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14940         'const SRC_UNIT *'.
14941         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14942         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14943         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14944         * modules/unicase/ulc-casecmp: New file.
14945
14946         Tests for module 'unicase/u32-is-cased'.
14947         * modules/unicase/u32-is-cased-tests: New file.
14948         * tests/unicase/test-u32-is-cased.c: New file.
14949
14950         Tests for module 'unicase/u16-is-cased'.
14951         * modules/unicase/u16-is-cased-tests: New file.
14952         * tests/unicase/test-u16-is-cased.c: New file.
14953
14954         Tests for module 'unicase/u8-is-cased'.
14955         * modules/unicase/u8-is-cased-tests: New file.
14956         * tests/unicase/test-u8-is-cased.c: New file.
14957         * tests/unicase/test-is-cased.h: New file.
14958
14959         New module 'unicase/u32-is-cased'.
14960         * lib/unicase/u32-is-cased.c: New file.
14961         * modules/unicase/u32-is-cased: New file.
14962
14963         New module 'unicase/u16-is-cased'.
14964         * lib/unicase/u16-is-cased.c: New file.
14965         * modules/unicase/u16-is-cased: New file.
14966
14967         New module 'unicase/u8-is-cased'.
14968         * lib/unicase/u8-is-cased.c: New file.
14969         * lib/unicase/u-is-cased.h: New file.
14970         * modules/unicase/u8-is-cased: New file.
14971
14972         Tests for module 'unicase/u32-is-casefolded'.
14973         * modules/unicase/u32-is-casefolded-tests: New file.
14974         * tests/unicase/test-u32-is-casefolded.c: New file.
14975
14976         Tests for module 'unicase/u16-is-casefolded'.
14977         * modules/unicase/u16-is-casefolded-tests: New file.
14978         * tests/unicase/test-u16-is-casefolded.c: New file.
14979
14980         Tests for module 'unicase/u8-is-casefolded'.
14981         * modules/unicase/u8-is-casefolded-tests: New file.
14982         * tests/unicase/test-u8-is-casefolded.c: New file.
14983         * tests/unicase/test-is-casefolded.h: New file.
14984
14985         New module 'unicase/u32-is-casefolded'.
14986         * lib/unicase/u32-is-casefolded.c: New file.
14987         * modules/unicase/u32-is-casefolded: New file.
14988
14989         New module 'unicase/u16-is-casefolded'.
14990         * lib/unicase/u16-is-casefolded.c: New file.
14991         * modules/unicase/u16-is-casefolded: New file.
14992
14993         New module 'unicase/u8-is-casefolded'.
14994         * lib/unicase/u8-is-casefolded.c: New file.
14995         * modules/unicase/u8-is-casefolded: New file.
14996
14997         Tests for module 'unicase/u32-is-titlecase'.
14998         * modules/unicase/u32-is-titlecase-tests: New file.
14999         * tests/unicase/test-u32-is-titlecase.c: New file.
15000
15001         Tests for module 'unicase/u16-is-titlecase'.
15002         * modules/unicase/u16-is-titlecase-tests: New file.
15003         * tests/unicase/test-u16-is-titlecase.c: New file.
15004
15005         Tests for module 'unicase/u8-is-titlecase'.
15006         * modules/unicase/u8-is-titlecase-tests: New file.
15007         * tests/unicase/test-u8-is-titlecase.c: New file.
15008         * tests/unicase/test-is-titlecase.h: New file.
15009
15010         New module 'unicase/u32-is-titlecase'.
15011         * lib/unicase/u32-is-titlecase.c: New file.
15012         * modules/unicase/u32-is-titlecase: New file.
15013
15014         New module 'unicase/u16-is-titlecase'.
15015         * lib/unicase/u16-is-titlecase.c: New file.
15016         * modules/unicase/u16-is-titlecase: New file.
15017
15018         New module 'unicase/u8-is-titlecase'.
15019         * lib/unicase/u8-is-titlecase.c: New file.
15020         * modules/unicase/u8-is-titlecase: New file.
15021
15022         Tests for module 'unicase/u32-is-lowercase'.
15023         * modules/unicase/u32-is-lowercase-tests: New file.
15024         * tests/unicase/test-u32-is-lowercase.c: New file.
15025
15026         Tests for module 'unicase/u16-is-lowercase'.
15027         * modules/unicase/u16-is-lowercase-tests: New file.
15028         * tests/unicase/test-u16-is-lowercase.c: New file.
15029
15030         Tests for module 'unicase/u8-is-lowercase'.
15031         * modules/unicase/u8-is-lowercase-tests: New file.
15032         * tests/unicase/test-u8-is-lowercase.c: New file.
15033         * tests/unicase/test-is-lowercase.h: New file.
15034
15035         New module 'unicase/u32-is-lowercase'.
15036         * lib/unicase/u32-is-lowercase.c: New file.
15037         * modules/unicase/u32-is-lowercase: New file.
15038
15039         New module 'unicase/u16-is-lowercase'.
15040         * lib/unicase/u16-is-lowercase.c: New file.
15041         * modules/unicase/u16-is-lowercase: New file.
15042
15043         New module 'unicase/u8-is-lowercase'.
15044         * lib/unicase/u8-is-lowercase.c: New file.
15045         * modules/unicase/u8-is-lowercase: New file.
15046
15047         Tests for module 'unicase/u32-is-uppercase'.
15048         * modules/unicase/u32-is-uppercase-tests: New file.
15049         * tests/unicase/test-u32-is-uppercase.c: New file.
15050
15051         Tests for module 'unicase/u16-is-uppercase'.
15052         * modules/unicase/u16-is-uppercase-tests: New file.
15053         * tests/unicase/test-u16-is-uppercase.c: New file.
15054
15055         Tests for module 'unicase/u8-is-uppercase'.
15056         * modules/unicase/u8-is-uppercase-tests: New file.
15057         * tests/unicase/test-u8-is-uppercase.c: New file.
15058         * tests/unicase/test-is-uppercase.h: New file.
15059
15060         New module 'unicase/u32-is-uppercase'.
15061         * lib/unicase/u32-is-uppercase.c: New file.
15062         * modules/unicase/u32-is-uppercase: New file.
15063
15064         New module 'unicase/u16-is-uppercase'.
15065         * lib/unicase/u16-is-uppercase.c: New file.
15066         * modules/unicase/u16-is-uppercase: New file.
15067
15068         New module 'unicase/u8-is-uppercase'.
15069         * lib/unicase/u8-is-uppercase.c: New file.
15070         * modules/unicase/u8-is-uppercase: New file.
15071
15072         New module 'unicase/u32-is-invariant'.
15073         * lib/unicase/u32-is-invariant.c: New file.
15074         * modules/unicase/u32-is-invariant: New file.
15075
15076         New module 'unicase/u16-is-invariant'.
15077         * lib/unicase/u16-is-invariant.c: New file.
15078         * modules/unicase/u16-is-invariant: New file.
15079
15080         New module 'unicase/u8-is-invariant'.
15081         * lib/unicase/u8-is-invariant.c: New file.
15082         * lib/unicase/invariant.h: New file.
15083         * lib/unicase/u-is-invariant.h: New file.
15084         * modules/unicase/u8-is-invariant: New file.
15085
15086         Tests for module 'unicase/u32-casecoll'.
15087         * modules/unicase/u32-casecoll-tests: New file.
15088         * tests/unicase/test-u32-casecoll.c: New file.
15089
15090         Tests for module 'unicase/u16-casecoll'.
15091         * modules/unicase/u16-casecoll-tests: New file.
15092         * tests/unicase/test-u16-casecoll.c: New file.
15093
15094         Tests for module 'unicase/u8-casecoll'.
15095         * modules/unicase/u8-casecoll-tests: New file.
15096         * tests/unicase/test-u8-casecoll.c: New file.
15097
15098         New module 'unicase/u32-casecoll'.
15099         * lib/unicase/u32-casecoll.c: New file.
15100         * modules/unicase/u32-casecoll: New file.
15101
15102         New module 'unicase/u16-casecoll'.
15103         * lib/unicase/u16-casecoll.c: New file.
15104         * modules/unicase/u16-casecoll: New file.
15105
15106         New module 'unicase/u8-casecoll'.
15107         * lib/unicase/u8-casecoll.c: New file.
15108         * lib/unicase/u-casecoll.h: New file.
15109         * modules/unicase/u8-casecoll: New file.
15110
15111         New module 'unicase/u32-casexfrm'.
15112         * lib/unicase/u32-casexfrm.c: New file.
15113         * modules/unicase/u32-casexfrm: New file.
15114
15115         New module 'unicase/u16-casexfrm'.
15116         * lib/unicase/u16-casexfrm.c: New file.
15117         * modules/unicase/u16-casexfrm: New file.
15118
15119         New module 'unicase/u8-casexfrm'.
15120         * lib/unicase/u8-casexfrm.c: New file.
15121         * lib/unicase/u-casexfrm.h: New file.
15122         * modules/unicase/u8-casexfrm: New file.
15123
15124         Tests for module 'unicase/u32-casecmp'.
15125         * modules/unicase/u32-casecmp-tests: New file.
15126         * tests/unicase/test-u32-casecmp.c: New file.
15127
15128         Tests for module 'unicase/u16-casecmp'.
15129         * modules/unicase/u16-casecmp-tests: New file.
15130         * tests/unicase/test-u16-casecmp.c: New file.
15131
15132         Tests for module 'unicase/u8-casecmp'.
15133         * modules/unicase/u8-casecmp-tests: New file.
15134         * tests/unicase/test-u8-casecmp.c: New file.
15135         * tests/unicase/test-casecmp.h: New file.
15136
15137         New module 'unicase/u32-casecmp'.
15138         * lib/unicase/u32-casecmp.c: New file.
15139         * modules/unicase/u32-casecmp: New file.
15140
15141         New module 'unicase/u16-casecmp'.
15142         * lib/unicase/u16-casecmp.c: New file.
15143         * modules/unicase/u16-casecmp: New file.
15144
15145         New module 'unicase/u8-casecmp'.
15146         * lib/unicase/u8-casecmp.c: New file.
15147         * lib/unicase/u-casecmp.h: New file.
15148         * modules/unicase/u8-casecmp: New file.
15149
15150         Tests for module 'unicase/u32-casefold'.
15151         * modules/unicase/u32-casefold-tests: New file.
15152         * tests/unicase/test-u32-casefold.c: New file.
15153
15154         Tests for module 'unicase/u16-casefold'.
15155         * modules/unicase/u16-casefold-tests: New file.
15156         * tests/unicase/test-u16-casefold.c: New file.
15157
15158         Tests for module 'unicase/u8-casefold'.
15159         * modules/unicase/u8-casefold-tests: New file.
15160         * tests/unicase/test-u8-casefold.c: New file.
15161
15162         New module 'unicase/u32-casefold'.
15163         * lib/unicase/u32-casefold.c: New file.
15164         * modules/unicase/u32-casefold: New file.
15165
15166         New module 'unicase/u16-casefold'.
15167         * lib/unicase/u16-casefold.c: New file.
15168         * modules/unicase/u16-casefold: New file.
15169
15170         New module 'unicase/u8-casefold'.
15171         * lib/unicase/u8-casefold.c: New file.
15172         * lib/unicase/u-casefold.h: New file.
15173         * modules/unicase/u8-casefold: New file.
15174
15175         New module 'unicase/tocasefold'.
15176         * lib/unicase/casefold.h: New file.
15177         * lib/unicase/tocasefold.c: New file.
15178         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15179         * modules/unicase/tocasefold: New file.
15180
15181         Tests for module 'unicase/u32-totitle'.
15182         * modules/unicase/u32-totitle-tests: New file.
15183         * tests/unicase/test-u32-totitle.c: New file.
15184
15185         Tests for module 'unicase/u16-totitle'.
15186         * modules/unicase/u16-totitle-tests: New file.
15187         * tests/unicase/test-u16-totitle.c: New file.
15188
15189         Tests for module 'unicase/u8-totitle'.
15190         * modules/unicase/u8-totitle-tests: New file.
15191         * tests/unicase/test-u8-totitle.c: New file.
15192
15193         New module 'unicase/u32-totitle'.
15194         * lib/unicase/u32-totitle.c: New file.
15195         * modules/unicase/u32-totitle: New file.
15196
15197         New module 'unicase/u16-totitle'.
15198         * lib/unicase/u16-totitle.c: New file.
15199         * modules/unicase/u16-totitle: New file.
15200
15201         New module 'unicase/u8-totitle'.
15202         * lib/unicase/u8-totitle.c: New file.
15203         * lib/unicase/u-totitle.h: New file.
15204         * modules/unicase/u8-totitle: New file.
15205
15206         Tests for module 'unicase/u32-tolower'.
15207         * modules/unicase/u32-tolower-tests: New file.
15208         * tests/unicase/test-u32-tolower.c: New file.
15209
15210         Tests for module 'unicase/u16-tolower'.
15211         * modules/unicase/u16-tolower-tests: New file.
15212         * tests/unicase/test-u16-tolower.c: New file.
15213
15214         Tests for module 'unicase/u8-tolower'.
15215         * modules/unicase/u8-tolower-tests: New file.
15216         * tests/unicase/test-u8-tolower.c: New file.
15217
15218         New module 'unicase/u32-tolower'.
15219         * lib/unicase/u32-tolower.c: New file.
15220         * modules/unicase/u32-tolower: New file.
15221
15222         New module 'unicase/u16-tolower'.
15223         * lib/unicase/u16-tolower.c: New file.
15224         * modules/unicase/u16-tolower: New file.
15225
15226         New module 'unicase/u8-tolower'.
15227         * lib/unicase/u8-tolower.c: New file.
15228         * modules/unicase/u8-tolower: New file.
15229
15230         Tests for module 'unicase/u32-toupper'.
15231         * modules/unicase/u32-toupper-tests: New file.
15232         * tests/unicase/test-u32-toupper.c: New file.
15233
15234         Tests for module 'unicase/u16-toupper'.
15235         * modules/unicase/u16-toupper-tests: New file.
15236         * tests/unicase/test-u16-toupper.c: New file.
15237
15238         Tests for module 'unicase/u8-toupper'.
15239         * modules/unicase/u8-toupper-tests: New file.
15240         * tests/unicase/test-u8-toupper.c: New file.
15241
15242         New module 'unicase/u32-toupper'.
15243         * lib/unicase/u32-toupper.c: New file.
15244         * modules/unicase/u32-toupper: New file.
15245
15246         New module 'unicase/u16-toupper'.
15247         * lib/unicase/u16-toupper.c: New file.
15248         * modules/unicase/u16-toupper: New file.
15249
15250         New module 'unicase/u8-toupper'.
15251         * lib/unicase/u8-toupper.c: New file.
15252         * modules/unicase/u8-toupper: New file.
15253
15254         New module 'unicase/u32-casemap'.
15255         * lib/unicase/u32-casemap.c: New file.
15256         * modules/unicase/u32-casemap: New file.
15257
15258         New module 'unicase/u16-casemap'.
15259         * lib/unicase/u16-casemap.c: New file.
15260         * modules/unicase/u16-casemap: New file.
15261
15262         New module 'unicase/u8-casemap'.
15263         * lib/unicase/unicasemap.h: New file.
15264         * lib/unicase/u8-casemap.c: New file.
15265         * lib/unicase/u-casemap.h: New file.
15266         * modules/unicase/u8-casemap: New file.
15267
15268         New module 'unicase/special-casing'.
15269         * lib/unicase/special-casing.h: New file.
15270         * lib/unicase/special-casing.c: New file.
15271         * lib/unicase/special-casing-table.gperf: New file, generated by
15272         gen-uni-tables.c.
15273         * modules/unicase/special-casing: New file.
15274
15275         Tests for module 'unicase/locale-language'.
15276         * modules/unicase/locale-language-tests: New file.
15277         * tests/unicase/test-locale-language.sh: New file.
15278         * tests/unicase/test-locale-language.c: New file.
15279
15280         New module 'unicase/locale-language'.
15281         * lib/unicase/locale-language.c: New file.
15282         * lib/unicase/locale-languages.gperf: New file.
15283         * modules/unicase/locale-language: New file.
15284
15285         Generate more tables for case conversion and case folding.
15286         * lib/gen-uni-tables.c (SCC_*): New enum items.
15287         (struct special_casing_rule): New type.
15288         (casing_rules, num_casing_rules, allocated_casing_rules): New
15289         variables.
15290         (add_casing_rule, fill_casing_rules): New functions.
15291         (struct casefold_rule): New type.
15292         (casefolding_rules, num_casefolding_rules,
15293         allocated_casefolding_rules): New variables.
15294         (fill_casefolding_rules): New function.
15295         (unicode_casefold): New variable.
15296         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15297         sort_casing_rules, output_casing_rules): New functions.
15298         (main): Accept to more arguments: SpecialCasing.txt and
15299         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15300         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15301         Output mapping for casefolding.
15302
15303         * lib/unicase.h: Include stdbool.h, uninorm.h.
15304         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15305         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15306         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15307         arguments.
15308         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15309         resultp arguments.
15310         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15311         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15312         resultp arguments.
15313         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15314         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15315         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15316         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15317         declarations.
15318         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15319
15320 2009-03-08  Bruno Haible  <bruno@clisp.org>
15321
15322         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15323         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15324         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15325         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15326
15327 2009-03-07  Bruno Haible  <bruno@clisp.org>
15328
15329         Adjust u*_normcmp, u*_normcoll API.
15330         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15331         u16_normcoll, u32_normcoll): Change failure conventions.
15332         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15333         errno and return -1.
15334         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15335
15336 2009-03-07  Bruno Haible  <bruno@clisp.org>
15337
15338         Tests for module 'uninorm/u32-normcoll'.
15339         * modules/uninorm/u32-normcoll-tests: New file.
15340         * tests/uninorm/test-u32-normcoll.c: New file.
15341
15342         Tests for module 'uninorm/u16-normcoll'.
15343         * modules/uninorm/u16-normcoll-tests: New file.
15344         * tests/uninorm/test-u16-normcoll.c: New file.
15345
15346         Tests for module 'uninorm/u8-normcoll'.
15347         * modules/uninorm/u8-normcoll-tests: New file.
15348         * tests/uninorm/test-u8-normcoll.c: New file.
15349
15350 2009-03-07  Bruno Haible  <bruno@clisp.org>
15351
15352         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15353         tests/uninorm/test-u32-normcmp.c.
15354         * tests/uninorm/test-u32-normcmp.c: Include it.
15355         (test_nonascii): New function, extracted from main. Add some more
15356         tests.
15357         (main): Invoke test_ascii and test_nonascii.
15358         * modules/uninorm/u32-normcmp-tests (Files): Add
15359         tests/uninorm/test-u32-normcmp.h.
15360         (Depends-on): Remove uninorm/u32-normcmp.
15361
15362         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15363         tests/uninorm/test-u16-normcmp.c.
15364         * tests/uninorm/test-u16-normcmp.c: Include it.
15365         (test_nonascii): New function, extracted from main. Add some more
15366         tests.
15367         (main): Invoke test_ascii and test_nonascii.
15368         * modules/uninorm/u16-normcmp-tests (Files): Add
15369         tests/uninorm/test-u16-normcmp.h.
15370         (Depends-on): Remove uninorm/u16-normcmp.
15371
15372         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15373         tests/uninorm/test-u8-normcmp.c.
15374         * tests/uninorm/test-u8-normcmp.c: Include it.
15375         (test_nonascii): New function, extracted from main. Add some more
15376         tests.
15377         (main): Invoke test_ascii and test_nonascii.
15378         * modules/uninorm/u8-normcmp-tests (Files): Add
15379         tests/uninorm/test-u8-normcmp.h.
15380         (Depends-on): Remove uninorm/u8-normcmp.
15381
15382 2009-03-07  Bruno Haible  <bruno@clisp.org>
15383
15384         New module 'uninorm/u32-normcoll'.
15385         * lib/uninorm/u32-normcoll.c: New file.
15386         * modules/uninorm/u32-normcoll: New file.
15387
15388         New module 'uninorm/u16-normcoll'.
15389         * lib/uninorm/u16-normcoll.c: New file.
15390         * modules/uninorm/u16-normcoll: New file.
15391
15392         New module 'uninorm/u8-normcoll'.
15393         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15394         declarations.
15395         * lib/uninorm/u8-normcoll.c: New file.
15396         * lib/uninorm/u-normcoll.h: New file.
15397         * modules/uninorm/u8-normcoll: New file.
15398
15399         New module 'uninorm/u32-normxfrm'.
15400         * lib/uninorm/u32-normxfrm.c: New file.
15401         * modules/uninorm/u32-normxfrm: New file.
15402
15403         New module 'uninorm/u16-normxfrm'.
15404         * lib/uninorm/u16-normxfrm.c: New file.
15405         * modules/uninorm/u16-normxfrm: New file.
15406
15407         New module 'uninorm/u8-normxfrm'.
15408         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15409         declarations.
15410         * lib/uninorm/u8-normxfrm.c: New file.
15411         * lib/uninorm/u-normxfrm.h: New file.
15412         * modules/uninorm/u8-normxfrm: New file.
15413
15414 2009-03-07  Bruno Haible  <bruno@clisp.org>
15415
15416         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15417         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15418         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15419
15420 2009-03-07  Bruno Haible  <bruno@clisp.org>
15421
15422         New module 'memxfrm'.
15423         * lib/memxfrm.h: New file.
15424         * lib/memxfrm.c: New file.
15425         * modules/memxfrm: New file.
15426
15427 2009-03-07  Bruno Haible  <bruno@clisp.org>
15428
15429         New module 'memcmp2'.
15430         * lib/memcmp2.h: New file.
15431         * lib/memcmp2.c: New file.
15432         * modules/memcmp2: New file.
15433
15434 2009-03-07  Bruno Haible  <bruno@clisp.org>
15435
15436         Tests for module 'uninorm/decomposing-form'.
15437         * modules/uninorm/decomposing-form-tests: New file.
15438         * tests/uninorm/test-decomposing-form.c: New file.
15439
15440         New module 'uninorm/decomposing-form'.
15441         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15442         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15443         Add 'decomposing_variant' field.
15444         * lib/uninorm/decomposing-form.c: New file.
15445         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15446         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15447         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15448         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15449         * modules/uninorm/decomposing-form: New file.
15450         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15451         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15452
15453 2009-03-07  Bruno Haible  <bruno@clisp.org>
15454
15455         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15456         strings.
15457
15458 2009-03-06  Bruno Haible  <bruno@clisp.org>
15459
15460         Tests for module 'uninorm/u32-normcmp'.
15461         * tests/uninorm/test-u32-normcmp.c: New file.
15462         * modules/uninorm/u32-normcmp-tests: New file.
15463
15464         Tests for module 'uninorm/u16-normcmp'.
15465         * tests/uninorm/test-u16-normcmp.c: New file.
15466         * modules/uninorm/u16-normcmp-tests: New file.
15467
15468         Tests for module 'uninorm/u8-normcmp'.
15469         * tests/uninorm/test-u8-normcmp.c: New file.
15470         * modules/uninorm/u8-normcmp-tests: New file.
15471
15472         New module 'uninorm/u32-normcmp'.
15473         * lib/uninorm/u32-normcmp.c: New file.
15474         * modules/uninorm/u32-normcmp: New file.
15475
15476         New module 'uninorm/u16-normcmp'.
15477         * lib/uninorm/u16-normcmp.c: New file.
15478         * modules/uninorm/u16-normcmp: New file.
15479
15480         New module 'uninorm/u8-normcmp'.
15481         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15482         declarations.
15483         * lib/uninorm/u8-normcmp.c: New file.
15484         * lib/uninorm/u-normcmp.h: New file.
15485         * modules/uninorm/u8-normcmp: New file.
15486
15487 2009-03-06  Bruno Haible  <bruno@clisp.org>
15488
15489         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15490         Reported by Eric Blake.
15491
15492 2009-03-06  Eric Blake  <ebb9@byu.net>
15493             Bruno Haible  <bruno@clisp.org>
15494
15495         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15496         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15497         condition.
15498         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15499         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15500         condition.
15501         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15502
15503 2009-03-06  Eric Blake  <ebb9@byu.net>
15504
15505         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15506         to avoid compiler warnings.
15507         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15508
15509 2009-03-05  Bruno Haible  <bruno@clisp.org>
15510
15511         * tests/test-ftell.c (main): Disable test beyond end of file on
15512         FreeMiNT.
15513         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15514
15515 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15516
15517         * lib/filevercmp.c: Move hidden files up in ordering.
15518         * tests/test-filevercmp.c: Add tests for hidden files.
15519
15520 2009-03-04  Bruno Haible  <bruno@clisp.org>
15521
15522         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15523         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15524         AM_CFLAGS.
15525         Reported by Simon Josefsson.
15526
15527 2009-03-03  Bruno Haible  <bruno@clisp.org>
15528
15529         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15530         Reported by Simon Josefsson.
15531
15532         * doc/ld-version-script.texi: Update node reference.
15533
15534 2009-03-03  Bruno Haible  <bruno@clisp.org>
15535
15536         * modules/visibility (License): Change to 'unlimited'.
15537         Suggested by Simon Josefsson.
15538
15539 2009-03-03  Jim Meyering  <meyering@redhat.com>
15540
15541         unlinkdir: cannot_unlink_dir may modify process state
15542         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15543         it's neither thread-safe nor appropriate for use in a library.
15544
15545 2009-03-03  Eric Blake  <ebb9@byu.net>
15546
15547         test-closein: silence test under Darwin
15548         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15549         care if it dies from EPIPE or EBADF.
15550
15551 2009-03-03  Bruno Haible  <bruno@clisp.org>
15552
15553         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15554         earlier.
15555         * doc/visibility.texi: Fix @node and @section.
15556
15557 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15558
15559         * doc/gnulib.texi: Link to sections for ld version script and
15560         visibility.
15561         * doc/visibility.texi: Add @node and @section.
15562         * modules/ld-version-script: New module.
15563         * m4/ld-version-script.m4: New file.
15564         * doc/ld-version-script.texi: New file.
15565
15566 2009-03-02  David Lutterkort  <lutter@redhat.com>
15567
15568         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15570
15571 2009-03-02  Bruno Haible  <bruno@clisp.org>
15572
15573         * doc/visibility.texi: Mention libtool's -export-symbols option.
15574
15575 2009-03-02  Jim Meyering  <meyering@redhat.com>
15576
15577         announce-gen: new option: --no-print-checksums
15578         * build-aux/announce-gen (usage): Describe it.
15579         (print_checksums): Print a newline here, not in the [*] footnote.
15580         (main): Honor it.
15581
15582 2009-03-01  Bruno Haible  <bruno@clisp.org>
15583
15584         Use socklen_t in the native Windows replacements prototypes.
15585         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15586         instead of 'int'.
15587         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15588         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15589         * modules/getsockopt (Depends-on): Add socklen.
15590         * modules/setsockopt (Depends-on): Add socklen.
15591
15592 2009-03-01  Bruno Haible  <bruno@clisp.org>
15593
15594         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15595         least 4.2.
15596
15597 2009-03-01  Eric Blake  <ebb9@byu.net>
15598             Bruno Haible  <bruno@clisp.org>
15599
15600         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15601         error messages.
15602         * lib/wait-process.c (wait_subprocess): Omit error message about
15603         deadly signal sent to the child of termsigp != NULL.
15604
15605 2009-03-01  Eric Blake  <ebb9@byu.net>
15606
15607         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15608
15609 2009-03-01  Bruno Haible  <bruno@clisp.org>
15610
15611         Avoid a gcc warning.
15612         * tests/test-sched.c (b): Make global.
15613         Reported by Eric Blake.
15614
15615 2009-01-19  Martin Lambers  <marlam@marlam.de>
15616
15617         Provide POSIX semantics for socket timeout options on W32.
15618         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15619         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15620         * modules/setsockopt: Depend on sys_time module for struct timeval.
15621         * modules/getsockopt: Depend on sys_time module for struct timeval.
15622
15623 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15624
15625         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15626         __USE_GNU, for consistency with netdb.in.h.
15627         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15628
15629 2009-03-01  Bruno Haible  <bruno@clisp.org>
15630
15631         More support for FreeMiNT.
15632         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15633         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15634
15635 2009-03-01  Bruno Haible  <bruno@clisp.org>
15636
15637         More support for FreeMiNT.
15638         * lib/fpurge.c (fpurge): Correct last commit.
15639         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15640
15641 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15642
15643         Fix unportable awk script in vc-list-files.
15644         * build-aux/vc-list-files: In the replacement awk script, use
15645         substr with a second argument of 1, not zero.
15646         Report by Simon Josefsson.
15647
15648 2009-02-28  Bruno Haible  <bruno@clisp.org>
15649
15650         More support for FreeMiNT.
15651         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15652         to FreeMiNT today.
15653         * lib/fwriting.c (fwriting): Likewise.
15654         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15655
15656 2009-02-28  Bruno Haible  <bruno@clisp.org>
15657
15658         * tests/test-freadseek.c (main): Disable test beyond end of file on
15659         FreeMiNT.
15660         * tests/test-ftello.c (main): Likewise.
15661         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15662
15663 2009-02-28  Bruno Haible  <bruno@clisp.org>
15664
15665         Add tentative support for FreeMiNT.
15666         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15667         * lib/fpurge.c (fpurge): Likewise.
15668         * lib/freadable.c (freadable): Likewise.
15669         * lib/freading.c (freading): Likewise.
15670         * lib/freadptr.c (freadptr): Likewise.
15671         * lib/freadseek.c (freadptrinc): Likewise.
15672         * lib/fseeko.c (rpl_fseeko): Likewise.
15673         * lib/fseterr.c (fseterr): Likewise.
15674         * lib/fwritable.c (fwritable): Likewise.
15675         * lib/fwriting.c (fwriting): Likewise.
15676         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15677         Hourihane.
15678         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15679
15680 2009-02-28  Bruno Haible  <bruno@clisp.org>
15681
15682         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15683         SIGCHLD.
15684         Reported by Jim Meyering.
15685
15686 2009-02-28  Bruno Haible  <bruno@clisp.org>
15687
15688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15689         Mention the results of these tests on various platforms.
15690         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15691         order.
15692         * doc/posix-functions/printf.texi: Likewise.
15693         * doc/posix-functions/snprintf.texi: Likewise.
15694         * doc/posix-functions/sprintf.texi: Likewise.
15695         * doc/posix-functions/vfprintf.texi: Likewise.
15696         * doc/posix-functions/vprintf.texi: Likewise.
15697         * doc/posix-functions/vsnprintf.texi: Likewise.
15698         * doc/posix-functions/vsprintf.texi: Likewise.
15699         * doc/glibc-functions/obstack_printf.texi: Likewise.
15700         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15701
15702 2009-02-28  Bruno Haible  <bruno@clisp.org>
15703
15704         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15705         Reported by Loïc Minier <lool@dooz.org>.
15706
15707 2009-02-27  Bruno Haible  <bruno@clisp.org>
15708
15709         * gnulib-tool (func_import): Make the sed expression used to create the
15710         sed script for updating the .gitignore file POSIX compliant.
15711         Reported by Eric Blake.
15712
15713 2009-02-27  Bruno Haible  <bruno@clisp.org>
15714
15715         * gnulib-tool (sed): Don't alias as "sed --posix".
15716         Reported by Eric Blake.
15717
15718 2009-02-27  Bruno Haible  <bruno@clisp.org>
15719
15720         Avoid test link errors.
15721         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15722         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15723         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15724         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15726
15727 2009-02-27  Bruno Haible  <bruno@clisp.org>
15728
15729         Avoid spurious "(cached)" in configure output.
15730         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15731         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15732         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15733         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15734         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15735         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15736         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15737         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15738         Reported by Eric Blake.
15739
15740 2009-02-27  Eric Blake  <ebb9@byu.net>
15741
15742         printf: fix regression in previous patch
15743         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15744
15745 2009-02-27  Bruno Haible  <bruno@clisp.org>
15746
15747         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15748         value.
15749         * lib/stdint.in.h: Likewise.
15750         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15751
15752 2009-02-27  Eric Blake  <ebb9@byu.net>
15753
15754         doc: mention more functions added in cygwin 1.7.0
15755         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15756         addition.
15757         * doc/posix-functions/open_wmemstream.texi: Likewise.
15758         * doc/posix-functions/wcsnlen.texi: Likewise.
15759         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15760         * doc/posix-functions/wcstod.texi: Likewise.
15761         * doc/posix-functions/wcstof.texi: Likewise.
15762         * doc/posix-functions/wcstoimax.texi: Likewise.
15763         * doc/posix-functions/wcstok.texi: Likewise.
15764         * doc/posix-functions/wcstoumax.texi: Likewise.
15765
15766         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15768         * doc/posix-functions/fprintf.texi: Update.
15769         * doc/posix-functions/printf.texi: Update.
15770         * doc/posix-functions/snprintf.texi: Update.
15771         * doc/posix-functions/sprintf.texi: Update.
15772         * doc/posix-functions/vfprintf.texi: Update.
15773         * doc/posix-functions/vprintf.texi: Update.
15774         * doc/posix-functions/vsnprintf.texi: Update.
15775         * doc/posix-functions/vsprintf.texi: Update.
15776         * doc/glibc-functions/obstack_printf.texi: Update.
15777         * doc/glibc-functions/obstack_vprintf.texi: Update.
15778
15779 2009-02-26  Eric Blake  <ebb9@byu.net>
15780
15781         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15782         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15783         compilation bug by using runtime conversion.
15784         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15785         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15786         * modules/ceill-tests (Files): Use nan.h.
15787         * modules/floorl-tests (Files): Likewise.
15788         * modules/frexpl-tests (Files): Likewise.
15789         * modules/isnanl-tests (Files): Likewise.
15790         * modules/ldexpl-tests (Files): Likewise.
15791         * modules/roundl-tests (Files): Likewise.
15792         * modules/truncl-tests (Files): Likewise.
15793         * tests/test-ceill.c (main): Use a working NaN.
15794         * tests/test-floorl.c (main): Likewise.
15795         * tests/test-frexpl.c (main): Likewise.
15796         * tests/test-isnan.c (test_long_double): Likewise.
15797         * tests/test-isnanl.h (main): Likewise.
15798         * tests/test-ldexpl.h (main): Likewise.
15799         * tests/test-roundl.h (main): Likewise.
15800         * tests/test-truncl.h (main): Likewise.
15801         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15802
15803 2009-02-26  Eric Blake  <ebb9@byu.net>
15804             Bruno Haible  <bruno@clisp.org>
15805
15806         Work around a *printf bug with %ls on Solaris.
15807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15808         precision is specified, sprintf stops converting the wide string
15809         argument when the number of bytes that have been produced by this
15810         conversion equals or exceeds the precision.
15811         * doc/posix-functions/fprintf.texi: Update.
15812         * doc/posix-functions/printf.texi: Update.
15813         * doc/posix-functions/snprintf.texi: Update.
15814         * doc/posix-functions/sprintf.texi: Update.
15815         * doc/posix-functions/vfprintf.texi: Update.
15816         * doc/posix-functions/vprintf.texi: Update.
15817         * doc/posix-functions/vsnprintf.texi: Update.
15818         * doc/posix-functions/vsprintf.texi: Update.
15819         * doc/glibc-functions/obstack_printf.texi: Update.
15820         * doc/glibc-functions/obstack_vprintf.texi: Update.
15821
15822 2009-02-26  Eric Blake  <ebb9@byu.net>
15823
15824         stdlib: favor compiler check of random.h
15825         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15826         to avoid an ObjC random.h installed by Swarm.
15827
15828 2009-02-26  Bruno Haible  <bruno@clisp.org>
15829
15830         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15831         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15832         Reported by Gary V. Vaughan <gary@gnu.org>.
15833
15834 2009-02-26  Bruno Haible  <bruno@clisp.org>
15835
15836         Fix *printf behaviour regarding the %ls directive.
15837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15838         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15839         NEED_PRINTF_DIRECTIVE_LS.
15840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15841         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15843         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15844         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15845         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15846         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15851         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15855         * doc/posix-functions/fprintf.texi: Update.
15856         * doc/posix-functions/printf.texi: Update.
15857         * doc/posix-functions/snprintf.texi: Update.
15858         * doc/posix-functions/sprintf.texi: Update.
15859         * doc/posix-functions/vfprintf.texi: Update.
15860         * doc/posix-functions/vprintf.texi: Update.
15861         * doc/posix-functions/vsnprintf.texi: Update.
15862         * doc/posix-functions/vsprintf.texi: Update.
15863         * doc/glibc-functions/obstack_printf.texi: Update.
15864         * doc/glibc-functions/obstack_vprintf.texi: Update.
15865         Reported by Eric Blake.
15866
15867 2009-02-25  Bruno Haible  <bruno@clisp.org>
15868
15869         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15870         with known value.
15871         Reported by Gary V. Vaughan <gary@gnu.org>.
15872
15873 2009-02-25  Bruno Haible  <bruno@clisp.org>
15874
15875         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15876         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15877         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15878         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15879         Reported by Gary V. Vaughan <gary@gnu.org>.
15880
15881 2009-02-25  Bruno Haible  <bruno@clisp.org>
15882
15883         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15884         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15885         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15886         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15887         Reported by Gary V. Vaughan <gary@gnu.org>.
15888
15889 2009-02-25  Eric Blake  <ebb9@byu.net>
15890
15891         tests: skip fseek/ftell tests if ungetc is broken
15892         * m4/ungetc.m4: New file.
15893         * modules/fseek-tests: Split test, so ungetc dependency is
15894         separate from rest of test.
15895         * modules/fseeko-tests: Likewise.
15896         * modules/ftell-tests: Likewise.
15897         * modules/ftello-tests: Likewise.
15898         * tests/test-fseek.c (main): Isolate ungetc dependency.
15899         * tests/test-fseeko.c (main): Likewise.
15900         * tests/test-ftell.c (main): Likewise.
15901         * tests/test-ftello.c (main): Likewise.
15902         * tests/test-fseek2.sh: New file.
15903         * tests/test-fseeko2.sh: Likewise.
15904         * tests/test-ftell2.sh: Likewise.
15905         * tests/test-ftello2.sh: Likewise.
15906
15907 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15908
15909         test-getaddrinfo: fix usage of skip return code 77
15910         * tests/test-gettaddrinfo.c: Return skip code 77 only
15911         for first occurance of skip (4x77 is not 77)
15912
15913 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15914
15915         strtod: avoid C99 decl-after-statement
15916         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15917
15918 2009-02-24  Eric Blake  <ebb9@byu.net>
15919
15920         strtod: detect HP-UX 11.31 bug
15921         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15922         Reported by Gary V. Vaughan.
15923
15924 2009-02-23  Bruno Haible  <bruno@clisp.org>
15925
15926         Fix invalid read past end of memory block.
15927         * lib/vasnprintf.c (DCHAR_SET): Define.
15928         (local_wcslen): Define only when needed.
15929         (local_strnlen, local_wcsnlen): New functions.
15930         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15931         directives that involve a conversion ourselves.
15932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15933         wcsnlen, mbrtowc, wcrtomb.
15934         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15935         * tests/test-vasprintf-posix.c (test_function): Likewise.
15936         * tests/test-snprintf-posix.h (test_function): Likewise.
15937         * tests/test-sprintf-posix.h (test_function): Likewise.
15938         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15939
15940 2009-02-22  Bruno Haible  <bruno@clisp.org>
15941
15942         Implement new clarified decomposition of Hangul syllables.
15943         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15944         of type LTV, return only a pairwise decomposition.
15945         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15946         Likewise.
15947         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15948         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15949         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15950
15951 2009-02-22  Bruno Haible  <bruno@clisp.org>
15952
15953         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15954         zero-length results and shrink excess allocated memory.
15955         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15956         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15957         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15958         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15959         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15960         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15961         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15962         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15963         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15964         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15965         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15966         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15967
15968 2009-02-21  Bruno Haible  <bruno@clisp.org>
15969
15970         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15971         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15972         spaces after a period. Put a space between a macro name and its
15973         argument list. Trivial rewordings.
15974         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15975         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15976         (main): Return 0 explicitly.
15977
15978 2009-02-21  Bruno Haible  <bruno@clisp.org>
15979
15980         Tests for module 'uninorm/filter'.
15981         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15982         * modules/uninorm/filter-tests: New file.
15983
15984         New module 'uninorm/filter'.
15985         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15986         uninorm_filter_flush, uninorm_filter_free): New declarations.
15987         * lib/uninorm/uninorm-filter.c: New file.
15988         * modules/uninorm/filter: New file.
15989
15990 2009-02-21  Bruno Haible  <bruno@clisp.org>
15991
15992         Tests for module 'uninorm/nfkc'.
15993         * tests/uninorm/test-nfkc.c: New file.
15994         * tests/uninorm/test-u8-nfkc.c: New file.
15995         * tests/uninorm/test-u16-nfkc.c: New file.
15996         * tests/uninorm/test-u32-nfkc.c: New file.
15997         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15998         * tests/uninorm/test-u32-nfkc-big.c: New file.
15999         * modules/uninorm/nfkc-tests: New file.
16000
16001         New module 'uninorm/nfkc'.
16002         * lib/uninorm/nfkc.c: New file.
16003         * modules/uninorm/nfkc: New file.
16004
16005         Tests for module 'uninorm/nfkd'.
16006         * tests/uninorm/test-nfkd.c: New file.
16007         * tests/uninorm/test-u8-nfkd.c: New file.
16008         * tests/uninorm/test-u16-nfkd.c: New file.
16009         * tests/uninorm/test-u32-nfkd.c: New file.
16010         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16011         * tests/uninorm/test-u32-nfkd-big.c: New file.
16012         * modules/uninorm/nfkd-tests: New file.
16013
16014         New module 'uninorm/nfkd'.
16015         * lib/uninorm/nfkd.c: New file.
16016         * modules/uninorm/nfkd: New file.
16017
16018         Tests for module 'uninorm/nfc'.
16019         * tests/uninorm/test-nfc.c: New file.
16020         * tests/uninorm/test-u8-nfc.c: New file.
16021         * tests/uninorm/test-u16-nfc.c: New file.
16022         * tests/uninorm/test-u32-nfc.c: New file.
16023         * tests/uninorm/test-u32-nfc-big.sh: New file.
16024         * tests/uninorm/test-u32-nfc-big.c: New file.
16025         * modules/uninorm/nfc-tests: New file.
16026
16027         New module 'uninorm/nfc'.
16028         * lib/uninorm/nfc.c: New file.
16029         * modules/uninorm/nfc: New file.
16030
16031         Tests for module 'uninorm/nfd'.
16032         * tests/uninorm/test-nfd.c: New file.
16033         * tests/uninorm/test-u8-nfd.c: New file.
16034         * tests/uninorm/test-u16-nfd.c: New file.
16035         * tests/uninorm/test-u32-nfd.c: New file.
16036         * tests/uninorm/test-u32-nfd-big.sh: New file.
16037         * tests/uninorm/test-u32-nfd-big.c: New file.
16038         * tests/uninorm/test-u32-normalize-big.h: New file.
16039         * tests/uninorm/test-u32-normalize-big.c: New file.
16040         * tests/uninorm/NormalizationTest.txt: New file, created from
16041         Unicode 5.1.0 NormalizationTest.txt.
16042         * modules/uninorm/nfd-tests: New file.
16043
16044         New module 'uninorm/nfd'.
16045         * lib/uninorm/nfd.c: New file.
16046         * modules/uninorm/nfd: New file.
16047
16048         New module 'uninorm/u32-normalize'.
16049         * lib/uninorm/u32-normalize.c: New file.
16050         * modules/uninorm/u32-normalize: New file.
16051
16052         New module 'uninorm/u16-normalize'.
16053         * lib/uninorm/u16-normalize.c: New file.
16054         * modules/uninorm/u16-normalize: New file.
16055
16056         New module 'uninorm/u8-normalize'.
16057         * lib/uninorm/u8-normalize.c: New file.
16058         * lib/uninorm/normalize-internal.h: New file.
16059         * lib/uninorm/u-normalize-internal.h: New file.
16060         * modules/uninorm/u8-normalize: New file.
16061
16062         New module 'uninorm/decompose-internal'.
16063         * lib/uninorm/decompose-internal.c: New file.
16064         * modules/uninorm/decompose-internal: New file.
16065
16066         Tests for module 'uninorm/composition'.
16067         * tests/uninorm/test-composition.c: New file.
16068         * modules/uninorm/composition-tests: New file.
16069
16070         New module 'uninorm/composition'.
16071         * lib/uninorm/composition.c: New file.
16072         * lib/uninorm/composition-table.gperf: New file, generated by
16073         gen-uni-tables.
16074         * modules/uninorm/composition: New file.
16075
16076         Tests for module 'uninorm/compat-decomposition'.
16077         * tests/uninorm/test-compat-decomposition.c: New file.
16078         * modules/uninorm/compat-decomposition-tests: New file.
16079
16080         New module 'uninorm/compat-decomposition'.
16081         * lib/uninorm/decompose-internal.h: New file.
16082         * lib/uninorm/compat-decomposition.c: New file.
16083         * modules/uninorm/compat-decomposition: New file.
16084
16085         Tests for module 'uninorm/canonical-decomposition'.
16086         * tests/uninorm/test-canonical-decomposition.c: New file.
16087         * modules/uninorm/canonical-decomposition-tests: New file.
16088
16089         New module 'uninorm/canonical-decomposition'.
16090         * lib/uninorm/canonical-decomposition.c: New file.
16091         * modules/uninorm/canonical-decomposition: New file.
16092
16093         Tests for module 'uninorm/decomposition'.
16094         * tests/uninorm/test-decomposition.c: New file.
16095         * modules/uninorm/decomposition-tests: New file.
16096
16097         New module 'uninorm/decomposition'.
16098         * lib/uninorm/decomposition.c: New file.
16099         * modules/uninorm/decomposition: New file.
16100
16101         New module 'uninorm/decomposition-table'.
16102         * lib/uninorm/decomposition-table.h: New file.
16103         * lib/uninorm/decomposition-table.c: New file.
16104         * lib/uninorm/decomposition-table1.h: New file, generated by
16105         gen-uni-tables.
16106         * lib/uninorm/decomposition-table2.h: New file, generated by
16107         gen-uni-tables.
16108         * modules/uninorm/decomposition-table: New file.
16109
16110         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16111         (UC_DECOMP_*): New enumeration items.
16112         (get_decomposition): New function.
16113         (struct decomp_table): New type.
16114         (output_decomposition, output_decomposition_tables): New functions.
16115         (unicode_composition_exclusions): New variable.
16116         (fill_composition_exclusions, debug_output_composition_tables): New
16117         functions.
16118         (main): Accept one more argument. Invoke fill_composition_exclusions.
16119         Output decomposition and composition tables.
16120
16121         New module 'uninorm/base'.
16122         * lib/uninorm.h: New file.
16123         * lib/unictype.h: Update comment.
16124         * modules/uninorm/base: New file.
16125
16126 2009-02-21  David Lutterkort  <lutter@redhat.com>
16127
16128         Tests for module 'safe-alloc'.
16129         * tests/test-safe-alloc.c: New file.
16130         * modules/safe-alloc-tests: New file.
16131
16132         New module 'safe-alloc'.
16133         * lib/safe-alloc.h: New file.
16134         * lib/safe-alloc.c: New file.
16135         * m4/safe-alloc.m4: New file.
16136         * modules/safe-alloc: New file.
16137         * doc/safe-alloc.texi: New file.
16138         * doc/gnulib.texi: Include it.
16139         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16140         safe-alloc.
16141
16142 2009-02-18  Bruno Haible  <bruno@clisp.org>
16143
16144         Fix link error on non-glibc systems.
16145         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16146         variable.
16147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16148
16149 2009-02-18  Jim Meyering  <meyering@redhat.com>
16150
16151         fts: avoid used-uninitialized error due to recent change
16152         * lib/fts.c (fts_read): Guard uses of the new member,
16153         parent->fts_n_dirs_remaining, since it's not relevant for
16154         the parent of a directory specified on the command-line.
16155
16156 2009-02-17  James Youngman  <jay@gnu.org>
16157             Bruno Haible  <bruno@clisp.org>
16158
16159         * m4/include_next.m4: Reformulate comment.
16160
16161 2009-02-16  Jim Meyering  <meyering@redhat.com>
16162
16163         fts: add #if guards so that the fts_lgpl module still builds
16164         * lib/fts.c: Guard just-added hash-table-using parts with
16165         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16166         Reported by Simon Josefsson.
16167
16168 2009-02-15  Bruno Haible  <bruno@clisp.org>
16169
16170         * modules/array-mergesort-tests: New file.
16171         * tests/test-array-mergesort.c: New file.
16172
16173         New module 'array-mergesort'.
16174         * modules/array-mergesort: New file.
16175         * lib/array-mergesort.h: New file.
16176
16177 2009-02-15  Bruno Haible  <bruno@clisp.org>
16178
16179         Fix 2009-02-07 commit.
16180         * lib/gen-uni-tables.c (output_predicate, output_category,
16181         output_combclass, output_bidi_category, output_decimal_digit,
16182         output_digit, output_numeric, output_mirror, output_scripts,
16183         output_ident_category, output_simple_mapping): Fix format directives.
16184         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16185
16186 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16187
16188         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16189         fixes are available from IBM.
16190
16191 2009-02-13  Jim Meyering  <meyering@redhat.com>
16192
16193         fts: arrange not to stat non-directories in more cases
16194         This makes GNU find (when it doesn't need to stat each file)
16195         *much* more efficient at traversing reiserfs file systems.
16196         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16197         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16198         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16199         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16200         (leaf_optimization_applies): New function.
16201         (LCO_hash, LCO_compare): New helper functions.
16202         (link_count_optimize_ok): New function.
16203         (fts_stat): Initialize new member (if dir).
16204         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16205         we've just stat'ed a directory.  Skip the stat call when possible.
16206         ---
16207         Note this AFS-related exchange:
16208         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16209         and note find's pioctl call in find/fstype.c.
16210         But that is necessary only if you want to enable the
16211         optimization for AFS, and for now, I don't.
16212
16213         fts: move a function definition "up" (no semantic change)
16214         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16215         "up" to precede upcoming use of a related function.
16216
16217 2009-02-11  Jim Meyering  <meyering@redhat.com>
16218
16219         fts: correct internal computation of nlinks (optimization-related)
16220         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16221         whether the current entry is a directory, so don't test it.
16222
16223 2009-02-10  Bruno Haible  <bruno@clisp.org>
16224
16225         Tests for module 'uniwbrk/ulc-wordbreaks'.
16226         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16227         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16228         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16229
16230         Tests for module 'uniwbrk/u32-wordbreaks'.
16231         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16232         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16233
16234         Tests for module 'uniwbrk/u16-wordbreaks'.
16235         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16236         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16237
16238         Tests for module 'uniwbrk/u8-wordbreaks'.
16239         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16240         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16241
16242 2009-02-10  Bruno Haible  <bruno@clisp.org>
16243
16244         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16245         property.
16246         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16247         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16248         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16249
16250 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16251
16252         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16253         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16254
16255 2009-02-10  Bruno Haible  <bruno@clisp.org>
16256
16257         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16258         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16259         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16260         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16261         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16262         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16263
16264 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16265
16266         * lib/sockets.h (gl_fd_to_handle): New function.
16267
16268         * tests/test-sockets.c: Call gl_fd_to_handle.
16269
16270 2009-02-09  Bruno Haible  <bruno@clisp.org>
16271
16272         * doc/havelib.texi: Document the conventions on bi-arch systems.
16273
16274 2009-02-08  Bruno Haible  <bruno@clisp.org>
16275
16276         Document the AC_LIB_LINKFLAGS macro.
16277         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16278         * doc/gnulib.texi: Include it.
16279
16280 2009-02-08  Bruno Haible  <bruno@clisp.org>
16281
16282         Fix wrong order of sections, compared to TOC.
16283         * doc/gnulib.texi: Include relocatable-maint.texi after the
16284         "Regular expressions" node, not before.
16285
16286 2009-02-08  Bruno Haible  <bruno@clisp.org>
16287
16288         Tests for module 'unicase/totitle'.
16289         * modules/unicase/totitle-tests: New file.
16290
16291         Tests for module 'unicase/tolower'.
16292         * modules/unicase/tolower-tests: New file.
16293
16294         Tests for module 'unicase/toupper'.
16295         * modules/unicase/toupper-tests: New file.
16296         * tests/unicase/test-mapping-part1.h: New file.
16297         * tests/unicase/test-mapping-part2.h: New file.
16298
16299         New module 'unicase/totitle'.
16300         * modules/unicase/totitle: New file.
16301         * lib/unicase/totitle.c: New file.
16302
16303         New module 'unicase/tolower'.
16304         * modules/unicase/tolower: New file.
16305         * lib/unicase/tolower.c: New file.
16306
16307         New module 'unicase/toupper'.
16308         * modules/unicase/toupper: New file.
16309         * lib/unicase/toupper.c: New file.
16310         * lib/unicase/simple-mapping.h: New file.
16311
16312         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16313         (mapping_table): New structure.
16314         (output_simple_mapping): New function.
16315         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16316         * modules/gen-uni-tables (Description): Update.
16317         * lib/unicase/toupper.h: New file, automatically generated by
16318         gen-uni-tables.
16319         * lib/unicase/tolower.h: New file, automatically generated by
16320         gen-uni-tables.
16321         * lib/unicase/totitle.h: New file, automatically generated by
16322         gen-uni-tables.
16323         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16324         gen-uni-tables.
16325         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16326         gen-uni-tables.
16327         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16328         gen-uni-tables.
16329
16330         New module 'unicase/base'.
16331         * modules/unicase/base: New file.
16332         * lib/unicase.h: New file.
16333
16334 2009-02-08  Bruno Haible  <bruno@clisp.org>
16335
16336         New module 'uniwbrk/ulc-wordbreaks'.
16337         * modules/uniwbrk/ulc-wordbreaks: New file.
16338         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16339
16340         New module 'uniwbrk/u32-wordbreaks'.
16341         * modules/uniwbrk/u32-wordbreaks: New file.
16342         * lib/uniwbrk/u32-wordbreaks.c: New file.
16343
16344         New module 'uniwbrk/u16-wordbreaks'.
16345         * modules/uniwbrk/u16-wordbreaks: New file.
16346         * lib/uniwbrk/u16-wordbreaks.c: New file.
16347
16348         New module 'uniwbrk/u8-wordbreaks'.
16349         * modules/uniwbrk/u8-wordbreaks: New file.
16350         * lib/uniwbrk/u8-wordbreaks.c: New file.
16351         * lib/uniwbrk/u-wordbreaks.h: New file.
16352
16353         New module 'uniwbrk/table'.
16354         * modules/uniwbrk/table: New file.
16355         * lib/uniwbrk/wbrktable.h: New file.
16356         * lib/uniwbrk/wbrktable.c: New file.
16357
16358         New module 'uniwbrk/wordbreak-property'.
16359         * modules/uniwbrk/wordbreak-property: New file.
16360         * lib/uniwbrk/wordbreak-property.c: New file.
16361
16362         * lib/gen-uni-tables.c (WBP_*): New enum items.
16363         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16364         (unicode_org_wbp): New variable.
16365         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16366         New functions.
16367         (wbp_table): New structure.
16368         (output_wbp, output_wbrk_tables): New functions.
16369         (main): Accept additional argument. Invoke fill_org_wbp,
16370         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16371         output_wbrk_tables.
16372         * modules/gen-uni-tables (Description): Update.
16373         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16374         gen-uni-tables.
16375
16376         New module 'uniwbrk/base'.
16377         * modules/uniwbrk/base: New file.
16378         * lib/uniwbrk.h: New file.
16379
16380 2009-02-08  Bruno Haible  <bruno@clisp.org>
16381
16382         Update to Unicode 5.1.0.
16383         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16384         U+2185..U+2188.
16385         (is_property_default_ignorable_code_point): Don't include characters
16386         of category Cc or Cs and not-a-characters.
16387         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16388         U+0D79, U+109E, U+109F, U+A60C.
16389         * lib/unictype/bidi_of.h: Regenerated.
16390         * lib/unictype/blocks.h: Regenerated.
16391         * lib/unictype/categ_C.h: Regenerated.
16392         * lib/unictype/categ_Cf.h: Regenerated.
16393         * lib/unictype/categ_Cn.h: Regenerated.
16394         * lib/unictype/categ_L.h: Regenerated.
16395         * lib/unictype/categ_Ll.h: Regenerated.
16396         * lib/unictype/categ_Lm.h: Regenerated.
16397         * lib/unictype/categ_Lo.h: Regenerated.
16398         * lib/unictype/categ_Lu.h: Regenerated.
16399         * lib/unictype/categ_M.h: Regenerated.
16400         * lib/unictype/categ_Mc.h: Regenerated.
16401         * lib/unictype/categ_Me.h: Regenerated.
16402         * lib/unictype/categ_Mn.h: Regenerated.
16403         * lib/unictype/categ_N.h: Regenerated.
16404         * lib/unictype/categ_Nd.h: Regenerated.
16405         * lib/unictype/categ_Nl.h: Regenerated.
16406         * lib/unictype/categ_No.h: Regenerated.
16407         * lib/unictype/categ_P.h: Regenerated.
16408         * lib/unictype/categ_Pd.h: Regenerated.
16409         * lib/unictype/categ_Pe.h: Regenerated.
16410         * lib/unictype/categ_Pf.h: Regenerated.
16411         * lib/unictype/categ_Pi.h: Regenerated.
16412         * lib/unictype/categ_Po.h: Regenerated.
16413         * lib/unictype/categ_Ps.h: Regenerated.
16414         * lib/unictype/categ_S.h: Regenerated.
16415         * lib/unictype/categ_Sk.h: Regenerated.
16416         * lib/unictype/categ_Sm.h: Regenerated.
16417         * lib/unictype/categ_So.h: Regenerated.
16418         * lib/unictype/categ_of.h: Regenerated.
16419         * lib/unictype/combining.h: Regenerated.
16420         * lib/unictype/ctype_alnum.h: Regenerated.
16421         * lib/unictype/ctype_alpha.h: Regenerated.
16422         * lib/unictype/ctype_graph.h: Regenerated.
16423         * lib/unictype/ctype_lower.h: Regenerated.
16424         * lib/unictype/ctype_print.h: Regenerated.
16425         * lib/unictype/ctype_punct.h: Regenerated.
16426         * lib/unictype/ctype_upper.h: Regenerated.
16427         * lib/unictype/decdigit.h: Regenerated.
16428         * lib/unictype/digit.h: Regenerated.
16429         * lib/unictype/mirror.h: Regenerated.
16430         * lib/unictype/numeric.h: Regenerated.
16431         * lib/unictype/pr_alphabetic.h: Regenerated.
16432         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16433         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16434         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16435         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16436         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16437         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16438         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16439         * lib/unictype/pr_combining.h: Regenerated.
16440         * lib/unictype/pr_dash.h: Regenerated.
16441         * lib/unictype/pr_decimal_digit.h: Regenerated.
16442         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16443         * lib/unictype/pr_deprecated.h: Regenerated.
16444         * lib/unictype/pr_diacritic.h: Regenerated.
16445         * lib/unictype/pr_extender.h: Regenerated.
16446         * lib/unictype/pr_format_control.h: Regenerated.
16447         * lib/unictype/pr_grapheme_base.h: Regenerated.
16448         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16449         * lib/unictype/pr_grapheme_link.h: Regenerated.
16450         * lib/unictype/pr_id_continue.h: Regenerated.
16451         * lib/unictype/pr_id_start.h: Regenerated.
16452         * lib/unictype/pr_ideographic.h: Regenerated.
16453         * lib/unictype/pr_ignorable_control.h: Regenerated.
16454         * lib/unictype/pr_lowercase.h: Regenerated.
16455         * lib/unictype/pr_math.h: Regenerated.
16456         * lib/unictype/pr_numeric.h: Regenerated.
16457         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16458         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16459         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16460         * lib/unictype/pr_other_id_continue.h: Regenerated.
16461         * lib/unictype/pr_other_lowercase.h: Regenerated.
16462         * lib/unictype/pr_other_math.h: Regenerated.
16463         * lib/unictype/pr_punctuation.h: Regenerated.
16464         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16465         * lib/unictype/pr_soft_dotted.h: Regenerated.
16466         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16467         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16468         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16469         * lib/unictype/pr_uppercase.h: Regenerated.
16470         * lib/unictype/pr_xid_continue.h: Regenerated.
16471         * lib/unictype/pr_xid_start.h: Regenerated.
16472         * lib/unictype/pr_zero_width.h: Regenerated.
16473         * lib/unictype/scripts.h: Regenerated.
16474         * lib/unictype/scripts_byname.gperf: Regenerated.
16475         * lib/unictype/sy_java_ident.h: Regenerated.
16476         * lib/unilbrk/lbrkprop1.h: Regenerated.
16477         * lib/unilbrk/lbrkprop2.h: Regenerated.
16478         * tests/unictype/test-categ_C.c: Regenerated.
16479         * tests/unictype/test-categ_Cf.c: Regenerated.
16480         * tests/unictype/test-categ_Cn.c: Regenerated.
16481         * tests/unictype/test-categ_L.c: Regenerated.
16482         * tests/unictype/test-categ_Ll.c: Regenerated.
16483         * tests/unictype/test-categ_Lm.c: Regenerated.
16484         * tests/unictype/test-categ_Lo.c: Regenerated.
16485         * tests/unictype/test-categ_Lu.c: Regenerated.
16486         * tests/unictype/test-categ_M.c: Regenerated.
16487         * tests/unictype/test-categ_Mc.c: Regenerated.
16488         * tests/unictype/test-categ_Me.c: Regenerated.
16489         * tests/unictype/test-categ_Mn.c: Regenerated.
16490         * tests/unictype/test-categ_N.c: Regenerated.
16491         * tests/unictype/test-categ_Nd.c: Regenerated.
16492         * tests/unictype/test-categ_Nl.c: Regenerated.
16493         * tests/unictype/test-categ_No.c: Regenerated.
16494         * tests/unictype/test-categ_P.c: Regenerated.
16495         * tests/unictype/test-categ_Pd.c: Regenerated.
16496         * tests/unictype/test-categ_Pe.c: Regenerated.
16497         * tests/unictype/test-categ_Pf.c: Regenerated.
16498         * tests/unictype/test-categ_Pi.c: Regenerated.
16499         * tests/unictype/test-categ_Po.c: Regenerated.
16500         * tests/unictype/test-categ_Ps.c: Regenerated.
16501         * tests/unictype/test-categ_S.c: Regenerated.
16502         * tests/unictype/test-categ_Sk.c: Regenerated.
16503         * tests/unictype/test-categ_Sm.c: Regenerated.
16504         * tests/unictype/test-categ_So.c: Regenerated.
16505         * tests/unictype/test-ctype_alnum.c: Regenerated.
16506         * tests/unictype/test-ctype_alpha.c: Regenerated.
16507         * tests/unictype/test-ctype_graph.c: Regenerated.
16508         * tests/unictype/test-ctype_lower.c: Regenerated.
16509         * tests/unictype/test-ctype_print.c: Regenerated.
16510         * tests/unictype/test-ctype_punct.c: Regenerated.
16511         * tests/unictype/test-ctype_upper.c: Regenerated.
16512         * tests/unictype/test-decdigit.h: Regenerated.
16513         * tests/unictype/test-digit.h: Regenerated.
16514         * tests/unictype/test-numeric.h: Regenerated.
16515         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16516         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16517         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16518         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16519         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16520         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16521         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16522         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16523         * tests/unictype/test-pr_combining.c: Regenerated.
16524         * tests/unictype/test-pr_dash.c: Regenerated.
16525         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16526         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16527         * tests/unictype/test-pr_deprecated.c: Regenerated.
16528         * tests/unictype/test-pr_diacritic.c: Regenerated.
16529         * tests/unictype/test-pr_extender.c: Regenerated.
16530         * tests/unictype/test-pr_format_control.c: Regenerated.
16531         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16532         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16533         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16534         * tests/unictype/test-pr_id_continue.c: Regenerated.
16535         * tests/unictype/test-pr_id_start.c: Regenerated.
16536         * tests/unictype/test-pr_ideographic.c: Regenerated.
16537         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16538         * tests/unictype/test-pr_lowercase.c: Regenerated.
16539         * tests/unictype/test-pr_math.c: Regenerated.
16540         * tests/unictype/test-pr_numeric.c: Regenerated.
16541         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16542         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16543         Regenerated.
16544         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16545         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16546         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16547         * tests/unictype/test-pr_other_math.c: Regenerated.
16548         * tests/unictype/test-pr_punctuation.c: Regenerated.
16549         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16550         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16551         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16552         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16553         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16554         * tests/unictype/test-pr_uppercase.c: Regenerated.
16555         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16556         * tests/unictype/test-pr_xid_start.c: Regenerated.
16557         * tests/unictype/test-pr_zero_width.c: Regenerated.
16558
16559         Update to Unicode 5.1.0.
16560         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16561         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16562         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16563         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16564         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16565         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16566         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16567         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16568         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16569         (nonspacing_table_ind): Update.
16570         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16571
16572         Update to Unicode 5.1.0.
16573         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16574         code transform.
16575         * lib/uniname/uniname.c (unicode_character_name,
16576         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16577         * lib/uniname/uninames.h: Regenerated.
16578         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16579
16580 2009-02-07  Bruno Haible  <bruno@clisp.org>
16581
16582         Merge gen-ctype and gen-lbrk into a single program.
16583         * lib/gen-uni-tables.c: New file, incorporating
16584         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16585         Add directory prefixes to the names of the generated files.
16586         * lib/unictype/gen-ctype.c: Remove file.
16587         * lib/unilbrk/gen-lbrk.c: Remove file.
16588         * modules/gen-uni-tables: New file.
16589         * modules/unictype/gen-ctype: Remove file.
16590         * modules/unilbrk/gen-lbrk: Remove file.
16591
16592 2009-02-07  Bruno Haible  <bruno@clisp.org>
16593
16594         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16595
16596         New module 'unistr/u32-strcoll'.
16597         * modules/unistr/u32-strcoll: New file.
16598         * lib/unistr/u32-strcoll.c: New file.
16599
16600         New module 'unistr/u16-strcoll'.
16601         * modules/unistr/u16-strcoll: New file.
16602         * lib/unistr/u16-strcoll.c: New file.
16603
16604         New module 'unistr/u8-strcoll'.
16605         * modules/unistr/u8-strcoll: New file.
16606         * lib/unistr/u8-strcoll.c: New file.
16607         * lib/unistr/u-strcoll.h: New file.
16608
16609 2009-02-07  Bruno Haible  <bruno@clisp.org>
16610
16611         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16612         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16613         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16614         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16615         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16616         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16617
16618 2009-02-07  Bruno Haible  <bruno@clisp.org>
16619
16620         Make 64-bit clean.
16621         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16622         output_combclass, output_bidi_category, output_decimal_digit,
16623         output_digit, output_numeric, output_mirror, output_scripts,
16624         output_ident_category): Use proper width specifier in format strings.
16625
16626 2009-02-07  Bruno Haible  <bruno@clisp.org>
16627
16628         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16629         failure behaviour.
16630
16631 2009-02-07  Jim Meyering  <meyering@redhat.com>
16632
16633         regex: avoid compilation failure with upcoming gcc-4.4
16634         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16635         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16636         "... error: integer overflow in preprocessor expression".
16637
16638 2009-02-05  Ben Pfaff  <blp@gnu.org>
16639
16640         Fix link errors on Windows when close module is used.
16641         * modules/close: Add $(LIB_CLOSE) to Link section.
16642         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16643         $(LIB_CLOSE) on Windows.
16644
16645 2009-02-05  Jim Meyering  <meyering@redhat.com>
16646
16647         still avoid unused-parameter warnings, but do it cleanly
16648         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16649         (get_fs_usage): Cast to void instead.
16650         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16651         (dev_from_mount_options, read_file_system_list): Cast to void.
16652         Prompted by Bruno Haible.
16653
16654 2009-02-04  Jim Meyering  <meyering@redhat.com>
16655
16656         fsusage.c: correct copyright year
16657         * lib/fsusage.c: Reflect year in which the change is pushed into
16658
16659         avoid misc. warnings
16660         * lib/fsusage.c (UNUSED_PARAM): Define.
16661         (get_fs_usage): Mark parameter "disk" as unused.
16662         * lib/getugroups.c (getgrent): Use "void" in prototype.
16663         * lib/mountlist.c: Mark unused parameters.
16664         (read_file_system_list): Declare a local with "const".
16665         * lib/nanosleep.c (getnow): Declare static.
16666         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16667
16668         dirfd: set errno upon failure
16669         * lib/dirfd.c: Include <errno.h>.
16670         Set errno to ENOTSUP when returning -1.
16671         * modules/dirfd (Depends-on): Add errno.
16672         Suggested by John Kodis <kodis@comcast.net>.
16673
16674 2009-02-01  Bruno Haible  <bruno@clisp.org>
16675
16676         Don't assume sizeof (long) >= sizeof (void *).
16677         * lib/memcmp.c: Include stdint.h.
16678         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16679         srcp2 to 'const byte *'.
16680         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16681         types to uintptr_t.
16682         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16683         * modules/memcmp (Depends-on): Add stdint.
16684         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16685
16686 2009-01-30  Eric Blake  <ebb9@byu.net>
16687
16688         fix more require-before-expand issues
16689         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16690         expand, AC_PROG_AWK.
16691         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16692
16693 2009-01-28  Eric Blake  <ebb9@byu.net>
16694
16695         version-etc: use consistent URL formatting
16696         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16697         Improve formatting.  Use fputs for string without %.
16698
16699 2009-01-28  Jim Meyering  <meyering@redhat.com>
16700
16701         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16702         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16703         "underquoted definition of NAME" from autoconf-2.59.
16704
16705 2009-01-28  Bruno Haible  <bruno@clisp.org>
16706
16707         * doc/gnulib.texi: Add "Obsolete modules" to index.
16708
16709 2009-01-28  Jim Meyering  <meyering@redhat.com>
16710
16711         useless-if-before-free: recognize more variants
16712         * build-aux/useless-if-before-free: Also recognize e.g.,
16713         if (NULL != p) free (p);
16714
16715 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16716
16717         test-getaddrinfo: skip (don't fail) this test when there's no network
16718         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16719         on the presumption that it means you lack network access.
16720
16721 2009-01-26  Jim Meyering  <meyering@redhat.com>
16722
16723         fflush: avoid warnings on modern systems
16724         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16725         pos and result, into scopes where they're used.
16726
16727 2009-01-26  Eric Blake  <ebb9@byu.net>
16728
16729         Silence warning reintroduced by recent extensions patch.
16730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16731         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16732         autoconf.
16733
16734         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16735         * m4/00gnulib.m4: New file.
16736         * gnulib-tool (func_get_filelist): Always use it.
16737         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16738         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16739
16740 2009-01-25  Bruno Haible  <bruno@clisp.org>
16741
16742         Make test-quotearg work on MacOS X and AIX.
16743         * tests/test-quotearg.sh: New file.
16744         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16745         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16746         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16747         include <libintl.h>.
16748         (fake_locale): Remove variable.
16749         (gettext, dgettext, dcgettext): Remove functions.
16750         (main): Instead of setting a fake locale, set a real locale. Call
16751         textdomain and bindtextdomain.
16752         * modules/quotearg-tests (Files): Add the new files.
16753         (Depends-on): Add gettext, setenv, unsetenv.
16754         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16755         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16756         Augment TESTS_ENVIRONMENT.
16757
16758 2009-01-25  Bruno Haible  <bruno@clisp.org>
16759
16760         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16761         fr_FR.ISO8859-1 locale on MacOS X.
16762         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16763         ja_JP.eucJP locale on MacOS X.
16764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16765         zh_CN.GB18030 locale on MacOS X.
16766
16767 2009-01-25  Bruno Haible  <bruno@clisp.org>
16768
16769         Avoid link errors on MacOS X 10.3.
16770         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16771         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16772
16773 2009-01-25  Bruno Haible  <bruno@clisp.org>
16774
16775         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16776         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16777         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16778         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16779         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16780         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16781         posix_spawnattr_init, posix_spawnattr_setsigmask,
16782         posix_spawnattr_setflags, posix_spawnattr_destroy.
16783
16784         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16785         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16786         * modules/execute (Files): Remove m4/posix_spawn.m4.
16787         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16788         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16789         posix_spawnattr_init, posix_spawnattr_setsigmask,
16790         posix_spawnattr_setflags, posix_spawnattr_destroy.
16791
16792 2009-01-25  Bruno Haible  <bruno@clisp.org>
16793
16794         * lib/glthread/threadlib.c: Include <stdlib.h>.
16795
16796 2009-01-25  Bruno Haible  <bruno@clisp.org>
16797
16798         * lib/glthread/threadlib.c (dummy): New declaration.
16799
16800 2009-01-25  Bruno Haible  <bruno@clisp.org>
16801
16802         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16803         multibyte characters also for the GB18030 encoding. Don't crash when
16804         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16805
16806 2009-01-25  Bruno Haible  <bruno@clisp.org>
16807
16808         Avoid redefining 'struct random_data' on OSF/1 5.1.
16809         * lib/stdlib.in.h: Include <random.h> if it exists.
16810         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16811         HAVE_RANDOM_H. Include <random.h> when testing whether
16812         'struct random_data' exists.
16813         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16814
16815 2009-01-25  Bruno Haible  <bruno@clisp.org>
16816
16817         Don't install charset.alias on MacOS X >= 10.3.
16818         * lib/localcharset.c (DARWIN7): New macro.
16819         (get_charset_aliases): Hardcode the result for Darwin7.
16820         * modules/localcharset (install-exec-local): Don't install
16821         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16822
16823 2009-01-25  Bruno Haible  <bruno@clisp.org>
16824
16825         Don't install charset.alias on mingw and Cygwin.
16826         * modules/localcharset (install-exec-local): Don't install
16827         charset.alias on mingw and Cygwin, if the file does not yet exist.
16828         The result for these platforms is hardcoded in localcharset.c.
16829
16830 2009-01-25  Bruno Haible  <bruno@clisp.org>
16831
16832         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16834         before requiring AC_USE_SYSTEM_EXTENSIONS.
16835
16836 2009-01-25  Jim Meyering  <meyering@redhat.com>
16837
16838         c-strtod: avoid warnings
16839         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16840         "assignment discards qualifiers from pointer target type" warnings.
16841
16842 2009-01-24  Bruno Haible  <bruno@clisp.org>
16843
16844         Add support for non-UTF-8 locales on MacOS X.
16845         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16846         canonical encodings. For Darwin 7 and newer, don't map traditional
16847         encodings to UTF-8.
16848         Reported by Vincent Lefevre <vincent@vinc17.org>
16849         at <http://savannah.gnu.org/bugs/?25235>.
16850
16851 2009-01-24  Bruno Haible  <bruno@clisp.org>
16852
16853         * doc/gnulib.texi (Obsolete modules): New section.
16854         Reported by Mike Frysinger <vapier@gentoo.org>.
16855
16856 2009-01-24  Bruno Haible  <bruno@clisp.org>
16857
16858         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16859         (%.dvi): New rule.
16860
16861 2009-01-24  Bruno Haible  <bruno@clisp.org>
16862
16863         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16864         Reported by Eric Blake.
16865
16866 2009-01-24  Bruno Haible  <bruno@clisp.org>
16867
16868         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16869         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16870         Reported by Gary V. Vaughan <gary@gnu.org>.
16871
16872 2009-01-24  Bruno Haible  <bruno@clisp.org>
16873
16874         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16875
16876 2009-01-23  Bruno Haible  <bruno@clisp.org>
16877
16878         Make c-strtod, c-strtold usable in libraries.
16879         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16880         (C_STRTOD): Call strdup instead of xstrdup.
16881         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16882         * modules/c-strtold (Depends-on): Likewise.
16883         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16884         * NEWS: Mention the change.
16885         Reported by Michael Gold <mgold@ncf.ca>.
16886
16887 2009-01-23  Jim Meyering  <meyering@redhat.com>
16888
16889         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16890         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16891         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16892
16893 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16894
16895         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16896         GNU CoreUtils.
16897         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16898         * modules/version-etc (Description): Update.
16899
16900 2009-01-22  Bruno Haible  <bruno@clisp.org>
16901
16902         Cache the C locale object.
16903         * lib/c-strtod.c (c_locale_cache): New variable.
16904         (c_locale): New function.
16905         (C_STRTOD): Use it, and don't call freelocale.
16906         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16907         Suggested by Paolo Bonzini.
16908
16909 2009-01-21  Bruno Haible  <bruno@clisp.org>
16910
16911         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16912         conditions other than overflow.
16913
16914 2009-01-21  Bruno Haible  <bruno@clisp.org>
16915
16916         * lib/c-strtod.c: Include errno.h.
16917         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16918         value from STRTOD_L and STRTOD.
16919
16920 2009-01-21  Bruno Haible  <bruno@clisp.org>
16921         and Jim Meyering  <meyering@redhat.com>
16922
16923         nanosleep: skip configure test (fail it) for apple universal builds
16924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16925         universal builds, assume that nanosleep does not work.
16926         * modules/nanosleep (Depends-on): Add multiarch.
16927
16928         mktime: skip configure test (fail it) for apple universal builds
16929         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16930         universal builds, assume that mktime does not work.
16931         * modules/mktime (Depends-on): Add multiarch.
16932
16933 2009-01-21  Eric Blake  <ebb9@byu.net>
16934
16935         multiarch: avoid expand-before-require warning
16936         * modules/multiarch (configure.ac): Require, rather than expand,
16937         gl_MULTIARCH.
16938         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16939         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16940         enforce that all clients require it.  Partial reversion of
16941         2008-12-29 patch.
16942
16943         error: avoid expand-before-require warning
16944         * modules/errno (configure.ac): Require, rather than expand,
16945         gl_HEADER_ERRNO_H.
16946         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16947         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16948         enforce that all clients require it.
16949
16950         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16951         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16952         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16953         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16954
16955 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16956
16957         Revert:
16958         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16959
16960         regex: do not depend on obsolete modules.
16961         * modules/regex: Remove memcmp and memmove.
16962
16963 2009-01-20  Bruno Haible  <bruno@clisp.org>
16964
16965         Make the 'link' module link on Windows NT 4.
16966         * lib/link.c (_WIN32_WINNT): Don't define.
16967         (CreateHardLinkFuncType): New type.
16968         (CreateHardLinkFunc, initialized): New variables.
16969         (initialize): New function.
16970         (link): Invoke CreateHardLink indirectly through the function pointer.
16971
16972 2009-01-20  Bruno Haible  <bruno@clisp.org>
16973
16974         Fix compilation failure on mingw.
16975         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16976
16977 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16978
16979         * doc/c-strtod.texi: Mention a couple of restrictions.
16980
16981 2009-01-20  Jim Meyering  <meyering@redhat.com>
16982
16983         gettimeofday: move more declarations out of functions
16984         * lib/gettimeofday.c: Move extern declarations of tzset and
16985         gmtime out of containing functions.  Prompted by Bruno Haible.
16986
16987 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16988
16989         regex: do not depend on obsolete modules.
16990         * modules/regex: Remove memcmp and memmove.
16991
16992 2009-01-19  Bruno Haible  <bruno@clisp.org>
16993
16994         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16995         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16996         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16997         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16998         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16999
17000 2009-01-19  Bruno Haible  <bruno@clisp.org>
17001
17002         * tests/test-link.c: Include <errno.h>.
17003         (main): Exit with code 77 when a hard link cannot be created due to
17004         the file system.
17005         * tests/test-link.sh: Skip test when a hard link cannot be created due
17006         to the file system.
17007         Suggested by Eric Blake.
17008
17009 2009-01-19  Martin Lambers  <marlam@marlam.de>
17010
17011         * modules/link-tests: New file.
17012         * tests/test-link.sh: New file.
17013         * tests/test-link.c: New file.
17014
17015 2009-01-19  Eric Blake  <ebb9@byu.net>
17016
17017         doc: mention another function added in cygwin 1.7.0
17018         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17019         Another new function in cygwin 1.7.
17020
17021 2009-01-19  Bruno Haible  <bruno@clisp.org>
17022
17023         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17024         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17025         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17026         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17027         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17028         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17029         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17030         * m4/md4.m4 (gl_MD4): Likewise.
17031         * m4/md5.m4 (gl_MD5): Likewise.
17032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17033         * m4/sha1.m4 (gl_SHA1): Likewise.
17034         * m4/sha256.m4 (gl_SHA256): Likewise.
17035         * m4/sha512.m4 (gl_SHA512): Likewise.
17036
17037 2009-01-19  Bruno Haible  <bruno@clisp.org>
17038
17039         * modules/uniname/uniname-tests (Depends-on): Add progname.
17040         * tests/uniname/test-uninames.c: Include progname.h.
17041         (main): Call set_program_name.
17042
17043         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17044         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17045         (main): Call set_program_name.
17046
17047         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17048         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17049         (main): Call set_program_name.
17050
17051         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17052         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17053         (main): Call set_program_name.
17054
17055         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17056         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17057         (main): Call set_program_name.
17058
17059         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17060         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17061         (main): Call set_program_name.
17062
17063         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17064         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17065         (main): Call set_program_name.
17066
17067         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17068         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17069         (main): Call set_program_name.
17070
17071         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17072         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17073         (main): Call set_program_name.
17074
17075 2009-01-19  Eric Blake  <ebb9@byu.net>
17076
17077         test-unistd: test previous patch
17078         * tests/test-unistd.c: Test *_FILENO macros.
17079
17080         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17081         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17082         Guarantee a definition.
17083         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17084         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17085         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17086         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17087         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17088         Likewise.
17089         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17090         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17091         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17092         Likewise.
17093         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17094         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17095         (STDERR_FILENO): Likewise.
17096         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17097         (STDERR_FILENO): Likewise.
17098         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17099         (STDERR_FILENO): Likewise.
17100         Reported by Elbert Pol.
17101
17102 2009-01-19  Eric Blake  <ebb9@byu.net>
17103
17104         doc: mention more functions added in cygwin 1.7.0
17105         * doc/posix-functions/abort.texi (abort): Update wording related
17106         to cygwin.
17107         * doc/posix-functions/daylight.texi (daylight): Likewise.
17108         * doc/posix-functions/optarg.texi (optarg): Likewise.
17109         * doc/posix-functions/optarg.texi (opterr): Likewise.
17110         * doc/posix-functions/optarg.texi (optind): Likewise.
17111         * doc/posix-functions/optarg.texi (optopt): Likewise.
17112         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17113         worked in 1.5.x, and was withdrawn in 1.7.
17114         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17115         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17116         cygwin versions.
17117         * doc/posix-functions/perror.texi (perror): Likewise.
17118         * doc/posix-functions/printf.texi (printf): Likewise.
17119         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17120         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17121         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17122         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17123         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17124         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17125         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17126         Likewise.
17127         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17128         Likewise.
17129         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17130         this function.
17131         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17132         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17133         Likewise.
17134         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17135         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17136         * doc/posix-functions/confstr.texi (confstr): Likewise.
17137         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17138         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17139         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17140         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17141         * doc/posix-functions/fputws.texi (fputws): Likewise.
17142         * doc/posix-functions/fwide.texi (fwide): Likewise.
17143         * doc/posix-functions/getwc.texi (getwc): Likewise.
17144         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17145         * doc/posix-functions/putwc.texi (putwc): Likewise.
17146         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17147         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17148         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17149         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17150         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17151         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17152         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17153         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17154         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17155         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17156         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17157
17158 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17159
17160         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17161         * lib/ioctl.c: Include <sys/ioctl.h>.
17162
17163 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17164
17165         * modules/getdate-tests (Depends-on): Add progname.
17166         * tests/test-getdate.c: Use progname module, to avoid link errors
17167         on non-glibc systems.
17168
17169 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17170
17171         * modules/filenamecat-tests (Depends-on): Add progname.
17172         * modules/fstrcmp-tests (Depends-on): Likewise.
17173
17174         * tests/test-filenamecat.c: Use progname module, to avoid link
17175         errors on non-glibc systems.
17176         * tests/test-fstrcmp.c: Likewise.
17177
17178 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17179
17180         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17181         * lib/gettimeofday.c: Move extern declaration out of function.
17182
17183 2009-01-18  Bruno Haible  <bruno@clisp.org>
17184
17185         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17186         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17187         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17188
17189 2009-01-18  Bruno Haible  <bruno@clisp.org>
17190
17191         * lib/strftime.c (MEMPCPY): Remove unused macro.
17192         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17193
17194 2009-01-18  Martin Lambers  <marlam@marlam.de>
17195
17196         New module 'link'.
17197         * lib/unistd.in.h (link): New declaration.
17198         * lib/link.c: New file.
17199         * m4/link.m4: New file.
17200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17201         HAVE_LINK.
17202         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17203         * modules/link: New file.
17204         * doc/posix-functions/link.texi: Mention the new module.
17205
17206 2009-01-18  Bruno Haible  <bruno@clisp.org>
17207
17208         * tests/test-avltree_list.c (main): Call set_program_name.
17209         * tests/test-avltree_oset.c (main): Likewise.
17210         * tests/test-obstack-printf.c: Include progname.h.
17211         (main): Call set_program_name.
17212         * tests/test-quotearg.c: Include progname.h.
17213         (main): Call set_program_name.
17214         * tests/test-xmemdup0.c: Include progname.h.
17215         (main): Call set_program_name.
17216
17217 2009-01-18  Bruno Haible  <bruno@clisp.org>
17218
17219         New module 'alphasort'.
17220         * lib/dirent.in.h (alphasort): New declaration.
17221         * lib/alphasort.c: New file, from glibc with modifications.
17222         * m4/alphasort.m4: New file.
17223         * modules/alphasort: New file.
17224         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17225         HAVE_ALPHASORT.
17226         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17227         HAVE_ALPHASORT.
17228         * doc/posix-functions/alphasort.texi: Mention the new module and the
17229         portability problems.
17230
17231 2009-01-18  Bruno Haible  <bruno@clisp.org>
17232
17233         New module 'scandir'.
17234         * lib/dirent.in.h (scandir): New declaration.
17235         * lib/scandir.c: New file, from glibc with modifications.
17236         * m4/scandir.m4: New file.
17237         * modules/scandir: New file.
17238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17239         HAVE_SCANDIR.
17240         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17241         HAVE_SCANDIR.
17242         * doc/posix-functions/scandir.texi: Mention the new module and the
17243         portability problems.
17244
17245 2009-01-17  Bruno Haible  <bruno@clisp.org>
17246
17247         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17248         Update documentation.
17249         (func_remove_suffix): Escape all dots in the suffix. Update
17250         documentation.
17251         (func_filter_filelist): Update documentation.
17252         Reported by Ralf Wildenhues.
17253
17254 2009-01-17  Bruno Haible  <bruno@clisp.org>
17255
17256         * modules/dprintf-posix-tests: New file.
17257         * tests/test-dprintf-posix.sh: New file.
17258         * tests/test-dprintf-posix.c: New file.
17259
17260         New modules 'dprintf', 'dprintf-posix'.
17261         * lib/stdio.in.h (dprintf): New declaration.
17262         * lib/dprintf.c: New file.
17263         * m4/dprintf.m4: New file.
17264         * m4/dprintf-posix.m4: New file.
17265         * modules/dprintf: New file.
17266         * modules/dprintf-posix: New file.
17267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17268         HAVE_DPRINTF, REPLACE_DPRINTF.
17269         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17270         HAVE_DPRINTF, REPLACE_DPRINTF.
17271         * doc/posix-functions/dprintf.texi: Mention the new modules.
17272
17273 2009-01-17  Bruno Haible  <bruno@clisp.org>
17274
17275         * modules/vdprintf-posix-tests: New file.
17276         * tests/test-vdprintf-posix.sh: New file.
17277         * tests/test-vdprintf-posix.c: New file.
17278
17279         New modules 'vdprintf', 'vdprintf-posix'.
17280         * lib/stdio.in.h (vdprintf): New declaration.
17281         * lib/vdprintf.c: New file.
17282         * m4/vdprintf.m4: New file.
17283         * m4/vdprintf-posix.m4: New file.
17284         * modules/vdprintf: New file.
17285         * modules/vdprintf-posix: New file.
17286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17287         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17288         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17289         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17290         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17291
17292 2009-01-17  Bruno Haible  <bruno@clisp.org>
17293
17294         Fix replacement of fopen on mingw.
17295         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17296         mingw.
17297
17298 2009-01-17  Bruno Haible  <bruno@clisp.org>
17299
17300         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17301         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17302
17303 2009-01-17  Bruno Haible  <bruno@clisp.org>
17304
17305         Avoid test-fflush2.sh failure on mingw.
17306         * tests/test-fflush2.c: Include binary-io.h.
17307         (main): Put standard input into binary mode.
17308         * modules/fflush-tests (Depends-on): Add binary-io.
17309
17310 2009-01-17  Bruno Haible  <bruno@clisp.org>
17311
17312         * lib/wchar.in.h: In another particular situation, include only the
17313         system's <wchar.h> file.
17314         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17315         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17316         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17317
17318 2009-01-17  Bruno Haible  <bruno@clisp.org>
17319
17320         Support for stripping executables in --enable-relocatable.
17321         * build-aux/install-reloc: Expect one more argument, or an environment
17322         variable RELOC_STRIP_PROG. If set, strip the destination program and
17323         its wrapper.
17324         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17325         RELOC_STRIP_PROG.
17326         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17327         to set RELOCATABLE_STRIP.
17328         * NEWS: Mention the new Makefile requirement.
17329
17330 2009-01-17  Bruno Haible  <bruno@clisp.org>
17331
17332         * build-aux/install-reloc: Remove debugging information left over by
17333         C compiler on MacOS X.
17334
17335 2009-01-17  Bruno Haible  <bruno@clisp.org>
17336
17337         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17338         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17339         _NSGetExecutablePath.
17340
17341 2009-01-16  Jim Meyering  <meyering@redhat.com>
17342
17343         strerror: avoid warnings about discarding "const"
17344         * lib/strerror.c (rpl_strerror): Instead of returning a const
17345         string from each and every "case", use a variable, and add a single
17346         cast after the switch.
17347
17348 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17349
17350         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17351
17352 2009-01-16  Bruno Haible  <bruno@clisp.org>
17353
17354         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17355         array initializer syntax that also works in C++ mode.
17356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17357
17358 2009-01-16  Jim Meyering  <meyering@redhat.com>
17359
17360         poll: suppress a warning
17361         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17362         to ignore "...unsigned expression < 0 is always false" warnings.
17363
17364 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17365
17366         poll: remove declarations of unused variables
17367         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17368         sockbuf and optlen.
17369
17370 2009-01-15  Bruno Haible  <bruno@clisp.org>
17371
17372         Make fflush-after-ungetc POSIX compliant on BSD systems.
17373         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17374         (clear_ungetc_buffer): Implement also for other systems.
17375         (rpl_fflush): On glibc systems, invoke
17376         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17377         clear_ungetc_buffer after fetching the stream's position, not before.
17378
17379 2009-01-15  Bruno Haible  <bruno@clisp.org>
17380
17381         Make fflush-after-ungetc POSIX compliant on glibc systems.
17382         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17383         after ungetc.
17384         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17385         (rpl_fflush): On glibc systems, simply call the system's fflush
17386         function after clearing the ungetc buffer.
17387         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17388         Instead, lseek only to the end of file, then use the system's fseeko
17389         for the rest. On glibc systems, reset the EOF indicator bit.
17390
17391 2009-01-15  Jim Meyering  <meyering@redhat.com>
17392
17393         openmp.m4: revert quote-adding change, for portability to older autoconf
17394         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17395         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17396         Simon Josefsson noticed the problem when using autoconf-2.61.
17397
17398 2009-01-15  Bruno Haible  <bruno@clisp.org>
17399
17400         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17401         * tests/test-fflush2.c (ASSERT): Always fail.
17402         (main): Add two tests for fflush() after ungetc(), taking into account
17403         the Austin Group's clarification.
17404         Suggested by Eric Blake.
17405
17406 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17407
17408         mktime.m4: remove K&R-style function prototypes
17409         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17410         for the Sun C++ compiler.
17411
17412 2009-01-14  Bruno Haible  <bruno@clisp.org>
17413
17414         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17415         while including <wchar.h>.
17416         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17417         the system's <wchar.h> file.
17418         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17419
17420 2009-01-14  Bruno Haible  <bruno@clisp.org>
17421
17422         * m4/csharp.m4: Don't mention gettext on the serial number line.
17423         * m4/csharpexec.m4: Likewise.
17424         * m4/eaccess.m4: Likewise.
17425         * m4/javaexec.m4: Likewise.
17426         * m4/sig_atomic_t.m4: Likewise.
17427         * m4/tmpdir.m4: Likewise.
17428         * m4/intldir.m4: Bump gettext version.
17429         * m4/lib-ld.m4: Likewise.
17430
17431 2009-01-14  Bruno Haible  <bruno@clisp.org>
17432
17433         * lib/progname.c (set_program_name): Add more comments.
17434         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17435
17436 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17437
17438         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17439         were sys/stat.h does not define it.
17440
17441 2009-01-14  Jim Meyering  <meyering@redhat.com>
17442
17443         many *.m4 files: improve m4 quoting
17444         99% of this change was performed by running the following commands:
17445         git ls-files | grep '\.m4$' | xargs perl -pi \
17446           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17447           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17449           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17450         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17451         The remainder were to add Copyright dates, increment serial numbers,
17452         undo some changes in comments, exclude m4/intl.m4, and add quotes
17453         around the "1" in ",1" where the unusual spacing prohibited the
17454         above regexps from doing the job.  For more details, see
17455         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17456         * m4/acl.m4: Modified.
17457         * m4/afs.m4: Likewise.
17458         * m4/alloca.m4: Likewise.
17459         * m4/argp.m4: Likewise.
17460         * m4/argz.m4: Likewise.
17461         * m4/atexit.m4: Likewise.
17462         * m4/bison-i18n.m4: Likewise.
17463         * m4/bison.m4: Likewise.
17464         * m4/byteswap.m4: Likewise.
17465         * m4/c-stack.m4: Likewise.
17466         * m4/c-strtod.m4: Likewise.
17467         * m4/calloc.m4: Likewise.
17468         * m4/canonicalize-lgpl.m4: Likewise.
17469         * m4/chown.m4: Likewise.
17470         * m4/clock_time.m4: Likewise.
17471         * m4/codeset.m4: Likewise.
17472         * m4/copy-file.m4: Likewise.
17473         * m4/csharp.m4: Likewise.
17474         * m4/csharpcomp.m4: Likewise.
17475         * m4/csharpexec.m4: Likewise.
17476         * m4/d-ino.m4: Likewise.
17477         * m4/d-type.m4: Likewise.
17478         * m4/dirfd.m4: Likewise.
17479         * m4/double-slash-root.m4: Likewise.
17480         * m4/eaccess.m4: Likewise.
17481         * m4/eealloc.m4: Likewise.
17482         * m4/environ.m4: Likewise.
17483         * m4/errno_h.m4: Likewise.
17484         * m4/euidaccess.m4: Likewise.
17485         * m4/execute.m4: Likewise.
17486         * m4/fatal-signal.m4: Likewise.
17487         * m4/fchdir.m4: Likewise.
17488         * m4/fcntl_h.m4: Likewise.
17489         * m4/fileblocks.m4: Likewise.
17490         * m4/filenamecat.m4: Likewise.
17491         * m4/findprog.m4: Likewise.
17492         * m4/flexmember.m4: Likewise.
17493         * m4/fnmatch.m4: Likewise.
17494         * m4/fopen.m4: Likewise.
17495         * m4/fpending.m4: Likewise.
17496         * m4/fprintf-posix.m4: Likewise.
17497         * m4/free.m4: Likewise.
17498         * m4/frexp.m4: Likewise.
17499         * m4/frexpl.m4: Likewise.
17500         * m4/fsusage.m4: Likewise.
17501         * m4/ftruncate.m4: Likewise.
17502         * m4/gc-camellia.m4: Likewise.
17503         * m4/gc-random.m4: Likewise.
17504         * m4/gc.m4: Likewise.
17505         * m4/getaddrinfo.m4: Likewise.
17506         * m4/getcwd-abort-bug.m4: Likewise.
17507         * m4/getcwd-path-max.m4: Likewise.
17508         * m4/getdate.m4: Likewise.
17509         * m4/getdomainname.m4: Likewise.
17510         * m4/getgroups.m4: Likewise.
17511         * m4/gethostname.m4: Likewise.
17512         * m4/gethrxtime.m4: Likewise.
17513         * m4/getline.m4: Likewise.
17514         * m4/getloadavg.m4: Likewise.
17515         * m4/getndelim2.m4: Likewise.
17516         * m4/getpass.m4: Likewise.
17517         * m4/gettext.m4: Likewise.
17518         * m4/gettime.m4: Likewise.
17519         * m4/gettimeofday.m4: Likewise.
17520         * m4/gnulib-common.m4: Likewise.
17521         * m4/group-member.m4: Likewise.
17522         * m4/host-os.m4: Likewise.
17523         * m4/iconv.m4: Likewise.
17524         * m4/iconv_open.m4: Likewise.
17525         * m4/inet_ntop.m4: Likewise.
17526         * m4/inet_pton.m4: Likewise.
17527         * m4/inline.m4: Likewise.
17528         * m4/intldir.m4: Likewise.
17529         * m4/intlmacosx.m4: Likewise.
17530         * m4/intmax.m4: Likewise.
17531         * m4/intmax_t.m4: Likewise.
17532         * m4/inttypes.m4: Likewise.
17533         * m4/inttypes_h.m4: Likewise.
17534         * m4/inttypes-pri.m4: Likewise.
17535         * m4/isapipe.m4: Likewise.
17536         * m4/isnand.m4: Likewise.
17537         * m4/isnanf.m4: Likewise.
17538         * m4/isnanl.m4: Likewise.
17539         * m4/javacomp.m4: Likewise.
17540         * m4/javaexec.m4: Likewise.
17541         * m4/jm-winsz1.m4: Likewise.
17542         * m4/jm-winsz2.m4: Likewise.
17543         * m4/lchown.m4: Likewise.
17544         * m4/lcmessage.m4: Likewise.
17545         * m4/ldexpl.m4: Likewise.
17546         * m4/lib-ld.m4: Likewise.
17547         * m4/lib-link.m4: Likewise.
17548         * m4/libsigsegv.m4: Likewise.
17549         * m4/link-follow.m4: Likewise.
17550         * m4/localcharset.m4: Likewise.
17551         * m4/locale-fr.m4: Likewise.
17552         * m4/locale-ja.m4: Likewise.
17553         * m4/locale-tr.m4: Likewise.
17554         * m4/locale-zh.m4: Likewise.
17555         * m4/lock.m4: Likewise.
17556         * m4/longlong.m4: Likewise.
17557         * m4/ls-mntd-fs.m4: Likewise.
17558         * m4/lstat.m4: Likewise.
17559         * m4/malloc.m4: Likewise.
17560         * m4/mathl.m4: Likewise.
17561         * m4/mbrtowc.m4: Likewise.
17562         * m4/mbstate_t.m4: Likewise.
17563         * m4/mbswidth.m4: Likewise.
17564         * m4/memchr.m4: Likewise.
17565         * m4/memcmp.m4: Likewise.
17566         * m4/memcpy.m4: Likewise.
17567         * m4/memmem.m4: Likewise.
17568         * m4/memmove.m4: Likewise.
17569         * m4/mempcpy.m4: Likewise.
17570         * m4/memrchr.m4: Likewise.
17571         * m4/memset.m4: Likewise.
17572         * m4/minmax.m4: Likewise.
17573         * m4/mkdir-slash.m4: Likewise.
17574         * m4/mkdtemp.m4: Likewise.
17575         * m4/mktime.m4: Likewise.
17576         * m4/mmap-anon.m4: Likewise.
17577         * m4/mountlist.m4: Likewise.
17578         * m4/nanosleep.m4: Likewise.
17579         * m4/nls.m4: Likewise.
17580         * m4/nocrash.m4: Likewise.
17581         * m4/open.m4: Likewise.
17582         * m4/openat.m4: Likewise.
17583         * m4/openmp.m4: Likewise.
17584         * m4/pathmax.m4: Likewise.
17585         * m4/perl.m4: Likewise.
17586         * m4/physmem.m4: Likewise.
17587         * m4/pipe.m4: Likewise.
17588         * m4/po.m4: Likewise.
17589         * m4/poll.m4: Likewise.
17590         * m4/posixtm.m4: Likewise.
17591         * m4/posixver.m4: Likewise.
17592         * m4/printf-frexp.m4: Likewise.
17593         * m4/printf-frexpl.m4: Likewise.
17594         * m4/printf-posix.m4: Likewise.
17595         * m4/printf-posix-rpl.m4: Likewise.
17596         * m4/printf.m4: Likewise.
17597         * m4/progtest.m4: Likewise.
17598         * m4/putenv.m4: Likewise.
17599         * m4/readline.m4: Likewise.
17600         * m4/readlink.m4: Likewise.
17601         * m4/readutmp.m4: Likewise.
17602         * m4/realloc.m4: Likewise.
17603         * m4/regex.m4: Likewise.
17604         * m4/relocatable.m4: Likewise.
17605         * m4/relocatable-lib.m4: Likewise.
17606         * m4/rename-dest-slash.m4: Likewise.
17607         * m4/rename.m4: Likewise.
17608         * m4/rmdir-errno.m4: Likewise.
17609         * m4/rmdir.m4: Likewise.
17610         * m4/roundf.m4: Likewise.
17611         * m4/roundl.m4: Likewise.
17612         * m4/rpmatch.m4: Likewise.
17613         * m4/save-cwd.m4: Likewise.
17614         * m4/selinux-selinux-h.m4: Likewise.
17615         * m4/setenv.m4: Likewise.
17616         * m4/settime.m4: Likewise.
17617         * m4/sig2str.m4: Likewise.
17618         * m4/sig_atomic_t.m4: Likewise.
17619         * m4/signalblocking.m4: Likewise.
17620         * m4/signbit.m4: Likewise.
17621         * m4/sigpipe.m4: Likewise.
17622         * m4/sockets.m4: Likewise.
17623         * m4/sockpfaf.m4: Likewise.
17624         * m4/st_dm_mode.m4: Likewise.
17625         * m4/stat-time.m4: Likewise.
17626         * m4/stdbool.m4: Likewise.
17627         * m4/stdint.m4: Likewise.
17628         * m4/stdint_h.m4: Likewise.
17629         * m4/stpcpy.m4: Likewise.
17630         * m4/stpncpy.m4: Likewise.
17631         * m4/strcase.m4: Likewise.
17632         * m4/strchrnul.m4: Likewise.
17633         * m4/strcspn.m4: Likewise.
17634         * m4/strdup.m4: Likewise.
17635         * m4/strftime.m4: Likewise.
17636         * m4/strndup.m4: Likewise.
17637         * m4/strnlen.m4: Likewise.
17638         * m4/strpbrk.m4: Likewise.
17639         * m4/strptime.m4: Likewise.
17640         * m4/strsep.m4: Likewise.
17641         * m4/strtod.m4: Likewise.
17642         * m4/strtoimax.m4: Likewise.
17643         * m4/strtok_r.m4: Likewise.
17644         * m4/strtol.m4: Likewise.
17645         * m4/strtoll.m4: Likewise.
17646         * m4/strtoul.m4: Likewise.
17647         * m4/strtoull.m4: Likewise.
17648         * m4/strtoumax.m4: Likewise.
17649         * m4/strverscmp.m4: Likewise.
17650         * m4/threadlib.m4: Likewise.
17651         * m4/timegm.m4: Likewise.
17652         * m4/tm_gmtoff.m4: Likewise.
17653         * m4/tmpdir.m4: Likewise.
17654         * m4/tmpfile.m4: Likewise.
17655         * m4/tzset.m4: Likewise.
17656         * m4/uintmax_t.m4: Likewise.
17657         * m4/unlinkdir.m4: Likewise.
17658         * m4/unlocked-io.m4: Likewise.
17659         * m4/uptime.m4: Likewise.
17660         * m4/userspec.m4: Likewise.
17661         * m4/utimbuf.m4: Likewise.
17662         * m4/utime.m4: Likewise.
17663         * m4/utimes-null.m4: Likewise.
17664         * m4/utimes.m4: Likewise.
17665         * m4/vararrays.m4: Likewise.
17666         * m4/vasnprintf.m4: Likewise.
17667         * m4/vfprintf-posix.m4: Likewise.
17668         * m4/vprintf-posix.m4: Likewise.
17669         * m4/wait-process.m4: Likewise.
17670         * m4/wchar_t.m4: Likewise.
17671         * m4/wint_t.m4: Likewise.
17672         * m4/write-any-file.m4: Likewise.
17673         * m4/yield.m4: Likewise.
17674
17675 2009-01-13  Bruno Haible  <bruno@clisp.org>
17676
17677         Avoid test-copy-file.sh failures when ACL support insufficient.
17678         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17679         TESTS_ENVIRONMENT.
17680         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17681         Reported by Jim Meyering.
17682
17683 2009-01-13  Bruno Haible  <bruno@clisp.org>
17684
17685         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17686         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17687         * modules/unistdio/u8-printf-parse (Files): Likewise.
17688         * modules/unistdio/u32-printf-parse (Files): Likewise.
17689         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17690
17691 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17692
17693         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17694         and m4/inttypes_h.m4 too.
17695
17696 2009-01-12  Eric Blake  <ebb9@byu.net>
17697
17698         tests: IRIX 6.2 cc can't compile -0.0 into .data
17699         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17700         rather than at compile-time.
17701         * tests/test-floorl.c (minus_zero): Likewise.
17702         * tests/test-frexpl.c (minus_zero): Likewise.
17703         * tests/test-isnan.c (minus_zerol): Likewise.
17704         * tests/test-isnanl.h (minus_zero): Likewise.
17705         * tests/test-ldexpl.c (minus_zero): Likewise.
17706         * tests/test-roundl.c (minus_zero): Likewise.
17707         * tests/test-signbit.c (minus_zerol): Likewise.
17708         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17709         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17710         * tests/test-truncl.c (minus_zero): Likewise.
17711         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17712         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17713         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17714
17715 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17716
17717         regex: fix glibc bug 9697
17718         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17719         handling.
17720
17721 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17722
17723         regex: fix glibc bug 697
17724         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17725         being NULL also if there are no backreferences.
17726
17727 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17728
17729         regex: merge glibc changes
17730         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17731         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17732         re_string_skip_chars, re_string_reconstruct): Likewise.
17733         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17734
17735 2009-01-07  Jim Meyering  <meyering@redhat.com>
17736
17737         poll: filter through cppi
17738         * lib/poll.c: Indent cpp directives to reflect nesting.
17739
17740 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17741
17742         poll: don't return uninitialized
17743         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17744
17745 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17746
17747         avoid compile failure on AIX 6.1
17748         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17749         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17750
17751 2009-01-04  Jim Meyering  <meyering@redhat.com>
17752
17753         remove duplicate inclusion of <stdio.h>
17754         * tests/test-fprintf-posix.c: Likewise.
17755         * tests/test-printf-posix.c: Likewise.
17756         * tests/test-snprintf-posix.c: Likewise.
17757         * tests/test-sprintf-posix.c: Likewise.
17758         * tests/test-vasprintf-posix.c: Likewise.
17759         * tests/test-vfprintf-posix.c: Likewise.
17760         * tests/test-vprintf-posix.c: Likewise.
17761         * tests/test-vsnprintf-posix.c: Likewise.
17762         * tests/test-vsprintf-posix.c: Likewise.
17763
17764 2009-01-03  Jim Meyering  <meyering@redhat.com>
17765
17766         gnulib-tool: fix sed-based filtering
17767         * gnulib-tool (func_filter_filelist): Remove extra backslash
17768         in sed_fff_filter definition.
17769
17770 2009-01-02  Jim Meyering  <meyering@redhat.com>
17771
17772         strftime: avoid compilation failure on Solaris 2.6
17773         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17774         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17775         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17776         be available.  Reported by Tom G. Christensen.  Details in
17777         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17778
17779 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17780             Bruno Haible  <bruno@clisp.org>
17781
17782         Speed up gnulib-tool by doing more string processing through shell
17783         built-ins.
17784         * gnulib-tool (fast_func_append): New variable.
17785         (func_remove_prefix, func_remove_suffix): New functions.
17786         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17787         (func_filter_filelist): New function.
17788         (func_get_dependencies): Use func_remove_suffix instead of sed.
17789         (func_get_automake_snippet): Use func_filter_filelist instead of a
17790         subshell and sed invocation.
17791
17792 2009-01-01  Bruno Haible  <bruno@clisp.org>
17793
17794         Fix a security bug.
17795         * gnulib-tool (func_import, import, update): Don't allow the characters
17796         '"', '$', '`', '\' in macro arguments that become part of commands that
17797         are evaluated.
17798
17799 2009-01-01  Bruno Haible  <bruno@clisp.org>
17800
17801         * gnulib-tool (func_reset_sigpipe): Add more comments.
17802
17803 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17804
17805         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17806         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17807         already know the answer.
17808
17809 2009-01-01  Jim Meyering  <meyering@redhat.com>
17810
17811         * lib/version-etc.c (version_etc_va): Update copyright year.
17812
17813 2008-12-30  Bruno Haible  <bruno@clisp.org>
17814
17815         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17816         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17817         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17818
17819 2008-12-29  Eric Blake  <ebb9@byu.net>
17820
17821         multiarch: avoid autoconf AC_REQUIRE bug
17822         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17823         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17824         2.63 and older.
17825         Reported by Bruno Haible, and analyzed in
17826         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17827
17828 2008-12-29  Bruno Haible  <bruno@clisp.org>
17829
17830         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17831         files in subdirectories correctly.
17832         Reported by Ralf Wildenhues.
17833
17834 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17835
17836         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17837         rather than 'join FILE -', for Solaris join.
17838
17839 2008-12-29  Bruno Haible  <bruno@clisp.org>
17840
17841         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17842         quoting.
17843         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17844         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17845         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17846         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17847         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17848         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17849         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17850         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17851         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17852         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17853         * m4/nls.m4 (AM_NLS): Likewise.
17854         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17855         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17856         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17857         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17858         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17859         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17860         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17861         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17862         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17863         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17864         * m4/xsize.m4 (gl_XSIZE): Likewise.
17865         Suggested by Jim Meyering.
17866
17867 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17868
17869         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17870         * lib/parse-duration.c: use a switch instead of cascading if's.
17871
17872 2008-12-29  Eric Blake  <ebb9@byu.net>
17873
17874         wchar.h: supply WEOF on Irix 5.3
17875         * lib/wchar.in.h (wint_t): Also supply WEOF.
17876         * lib/wctype.in.h (wint_t): Likewise.
17877         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17878         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17879         Reported by Tom G. Christensen.
17880
17881 2008-12-26  Bruno Haible  <bruno@clisp.org>
17882
17883         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17884         i486, i586, i686.
17885
17886 2008-12-26  Bruno Haible  <bruno@clisp.org>
17887
17888         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17889
17890 2008-12-26  Bruno Haible  <bruno@clisp.org>
17891
17892         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17893         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17894         not __STDC_CONSTANT_MACROS.
17895         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17896
17897 2008-12-25  Bruno Haible  <bruno@clisp.org>
17898
17899         Add support for universal builds to vasnprintf.
17900         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17901         universal builds, guess no.
17902         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17903         * modules/vasprintf-posix (Depends-on): Likewise.
17904         * modules/fprintf-posix (Depends-on): Likewise.
17905         * modules/vfprintf-posix (Depends-on): Likewise.
17906         * modules/snprintf-posix (Depends-on): Likewise.
17907         * modules/vsnprintf-posix (Depends-on): Likewise.
17908         * modules/sprintf-posix (Depends-on): Likewise.
17909         * modules/vsprintf-posix (Depends-on): Likewise.
17910         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17911         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17912         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17913         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17914         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17915         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17916         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17917
17918         Add support for universal builds to <inttypes.h>.
17919         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17920         _SCNu64_PREFIX): In Apple
17921         universal builds, define directly, using _LP64.
17922         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17923         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17924         * modules/inttypes (Depends-on): Add multiarch.
17925         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17926
17927         Add support for universal builds to <stdint.h>.
17928         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17929         universal builds, define directly, using _LP64.
17930         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17931         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17932         and size_t.
17933         * modules/stdint (Depends-on): Add multiarch.
17934         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17935
17936         New module 'multiarch'.
17937         * modules/multiarch: New file.
17938         * m4/multiarch.m4: New file.
17939
17940 2008-12-25  Bruno Haible  <bruno@clisp.org>
17941
17942         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17943
17944 2008-12-25  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/btowc (License): Relicense under LGPLv2+.
17947         * modules/mbsinit (License): Likewise.
17948         * modules/mbrtowc (License): Likewise.
17949         * modules/wcrtomb (License): Likewise.
17950         * modules/streq (License): Likewise.
17951         Reported by David Lutterkort <lutter@redhat.com>.
17952
17953 2008-12-23  Bruno Haible  <bruno@clisp.org>
17954
17955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17956
17957 2008-12-23  Bruno Haible  <bruno@clisp.org>
17958
17959         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17961         GETADDRINFO_LIB, not in LIBS.
17962         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17963         * modules/canon-host (Link): Likewise.
17964         * NEWS: Mention the change.
17965         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17966         GETADDRINFO_LIB.
17967
17968 2008-12-22  Bruno Haible  <bruno@clisp.org>
17969
17970         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17971         * doc/posix-functions/iswalpha_l.texi: Likewise.
17972         * doc/posix-functions/iswblank_l.texi: Likewise.
17973         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17974         * doc/posix-functions/iswctype_l.texi: Likewise.
17975         * doc/posix-functions/iswdigit_l.texi: Likewise.
17976         * doc/posix-functions/iswgraph_l.texi: Likewise.
17977         * doc/posix-functions/iswlower_l.texi: Likewise.
17978         * doc/posix-functions/iswprint_l.texi: Likewise.
17979         * doc/posix-functions/iswpunct_l.texi: Likewise.
17980         * doc/posix-functions/iswspace_l.texi: Likewise.
17981         * doc/posix-functions/iswupper_l.texi: Likewise.
17982         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17983         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17984         * doc/posix-functions/open_wmemstream.texi: Likewise.
17985         * doc/posix-functions/swscanf.texi: Likewise.
17986         * doc/posix-functions/towctrans_l.texi: Likewise.
17987         * doc/posix-functions/towlower.texi: Likewise.
17988         * doc/posix-functions/towlower_l.texi: Likewise.
17989         * doc/posix-functions/towupper.texi: Likewise.
17990         * doc/posix-functions/towupper_l.texi: Likewise.
17991         * doc/posix-functions/vfwprintf.texi: Likewise.
17992         * doc/posix-functions/vfwscanf.texi: Likewise.
17993         * doc/posix-functions/vswscanf.texi: Likewise.
17994         * doc/posix-functions/vwprintf.texi: Likewise.
17995         * doc/posix-functions/vwscanf.texi: Likewise.
17996         * doc/posix-functions/wcpcpy.texi: Likewise.
17997         * doc/posix-functions/wcpncpy.texi: Likewise.
17998         * doc/posix-functions/wcscasecmp.texi: Likewise.
17999         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18000         * doc/posix-functions/wcscoll_l.texi: Likewise.
18001         * doc/posix-functions/wcsdup.texi: Likewise.
18002         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18003         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18004         * doc/posix-functions/wcsnlen.texi: Likewise.
18005         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18006         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18007         * doc/posix-functions/wctrans_l.texi: Likewise.
18008         * doc/posix-functions/wctype_l.texi: Likewise.
18009         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18010         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18011         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18012         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18013         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18014         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18015         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18016         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18017         * doc/glibc-functions/wcschrnul.texi: Likewise.
18018         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18019         * doc/glibc-functions/wcstod_l.texi: Likewise.
18020         * doc/glibc-functions/wcstof_l.texi: Likewise.
18021         * doc/glibc-functions/wcstol_l.texi: Likewise.
18022         * doc/glibc-functions/wcstold_l.texi: Likewise.
18023         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18024         * doc/glibc-functions/wcstoq.texi: Likewise.
18025         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18026         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18027         * doc/glibc-functions/wcstouq.texi: Likewise.
18028         * doc/glibc-functions/wmempcpy.texi: Likewise.
18029
18030 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18031             Eric Blake  <ebb9@byu.net>
18032             Paolo Bonzini  <bonzini@gnu.org>
18033             Bruno Haible  <bruno@clisp.org>
18034
18035         Make c-stack work on Haiku.
18036         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18037         (c_stack_action): Use SA_ONSTACK flag.
18038
18039 2008-12-22  Bruno Haible  <bruno@clisp.org>
18040
18041         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18042
18043 2008-12-22  Bruno Haible  <bruno@clisp.org>
18044
18045         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18046         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18047         being overridden.
18048         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18049         New macros.
18050         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18052         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18053         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18054
18055 2008-12-22  Bruno Haible  <bruno@clisp.org>
18056
18057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18058         from test code.
18059
18060 2008-12-22  Eric Blake  <ebb9@byu.net>
18061
18062         Avoid gcc warnings on cygwin.
18063         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18064         Avoid unused variable.
18065         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18066         Likewise.
18067
18068 2008-12-22  Bruno Haible  <bruno@clisp.org>
18069
18070         Remove HAVE_MBRTOWC conditionals.
18071         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18072         (mbscasecmp): Assume mbrtowc function.
18073         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18074         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18075         * lib/mbschr.c: Include mbuiter.h unconditionally.
18076         (mbschr): Assume mbrtowc function.
18077         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18078         (mbscspn): Assume mbrtowc function.
18079         * lib/mbslen.c: Include mbuiter.h unconditionally.
18080         (mbslen): Assume mbrtowc function.
18081         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18082         (mbsncasecmp): Assume mbrtowc function.
18083         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18084         (mbsnlen): Assume mbrtowc function.
18085         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18086         (mbspbrk): Assume mbrtowc function.
18087         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18088         (mbspcasecmp): Assume mbrtowc function.
18089         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18090         (mbsrchr): Assume mbrtowc function.
18091         * lib/mbssep.c: Include mbuiter.h unconditionally.
18092         (mbssep): Assume mbrtowc function.
18093         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18094         (mbsspn): Assume mbrtowc function.
18095         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18096         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18097         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18098         (mbstok_r): Assume mbrtowc function.
18099         * lib/propername.c: Include mbuiter.h unconditionally.
18100         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18101         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18102         (trim2): Assume mbrtowc function.
18103         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18104         (mbsnwidth): Assume mbrtowc function.
18105         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18106         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18107         fallback definitions.
18108         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18109
18110 2008-12-22  Bruno Haible  <bruno@clisp.org>
18111
18112         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18113
18114 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18115
18116         * modules/regex: Request emulations for the mb*/wc* functions we need.
18117         * m4/regex.m4: Don't look for those functions here.
18118         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18119
18120 2008-12-22  Bruno Haible  <bruno@clisp.org>
18121
18122         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18123
18124 2008-12-21  Bruno Haible  <bruno@clisp.org>
18125
18126         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18127         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18128         (Include): Remove conditionalization.
18129         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18130         (Include): Remove conditionalization.
18131         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18132         (Include): Remove conditionalization.
18133         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18134         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18135         * NEWS: Mention the change.
18136         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18137         via Sergey Poznyakoff <gray@gnu.org.ua>.
18138
18139 2008-12-21  Bruno Haible  <bruno@clisp.org>
18140
18141         * MODULES.html.sh (Extended multibyte and wide character utilities
18142         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18143         wcrtomb, wcsrtombs.
18144         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18145         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18146         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18147         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18148
18149 2008-12-21  Bruno Haible  <bruno@clisp.org>
18150
18151         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18152
18153 2008-12-21  Bruno Haible  <bruno@clisp.org>
18154
18155         * modules/wcsnrtombs-tests: New file.
18156         * tests/test-wcsnrtombs1.sh: New file.
18157         * tests/test-wcsnrtombs2.sh: New file.
18158         * tests/test-wcsnrtombs3.sh: New file.
18159         * tests/test-wcsnrtombs4.sh: New file.
18160         * tests/test-wcsnrtombs.c: New file.
18161
18162         New module 'wcsnrtombs'.
18163         * lib/wchar.in.h (wcsnrtombs): New declaration.
18164         * lib/wcsnrtombs.c: New file.
18165         * lib/wcsrtombs-state.c: New file.
18166         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18167         (internal_state): Remove variable.
18168         * m4/wcsnrtombs.m4: New file.
18169         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18170         compilation units.
18171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18172         HAVE_WCSNRTOMBS.
18173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18174         HAVE_WCSNRTOMBS.
18175         * modules/wcsnrtombs: New file.
18176         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18177         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18178
18179 2008-12-21  Bruno Haible  <bruno@clisp.org>
18180
18181         * modules/wcsrtombs-tests: New file.
18182         * tests/test-wcsrtombs1.sh: New file.
18183         * tests/test-wcsrtombs2.sh: New file.
18184         * tests/test-wcsrtombs3.sh: New file.
18185         * tests/test-wcsrtombs4.sh: New file.
18186         * tests/test-wcsrtombs.c: New file.
18187
18188         New module 'wcsrtombs'.
18189         * lib/wchar.in.h (wcsrtombs): New declaration.
18190         * lib/wcsrtombs.c: New file.
18191         * m4/wcsrtombs.m4: New file.
18192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18193         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18195         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18196         * modules/wcsrtombs: New file.
18197         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18198         bugs.
18199
18200 2008-12-21  Bruno Haible  <bruno@clisp.org>
18201
18202         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18203         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18205         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18206         if not correct.
18207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18208         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18209         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18210         m4/locale-zh.m4, m4/codeset.m4.
18211         * doc/posix-functions/wcrtomb.texi: Document the bug.
18212
18213 2008-12-21  Bruno Haible  <bruno@clisp.org>
18214
18215         Work around a btowc() bug on IRIX 6.5.
18216         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18217         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18218         REPLACE_WTOBC if not.
18219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18220         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18221         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18222
18223 2008-12-21  Bruno Haible  <bruno@clisp.org>
18224
18225         * modules/wcrtomb-tests: New file.
18226         * tests/test-wcrtomb.sh: New file.
18227         * tests/test-wcrtomb.c: New file.
18228
18229         New module 'wcrtomb'.
18230         * lib/wchar.in.h (wcrtomb): New declaration.
18231         * lib/wcrtomb.c: New file.
18232         * m4/wcrtomb.m4: New file.
18233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18234         HAVE_WCRTOMB.
18235         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18236         HAVE_WCRTOMB.
18237         * modules/wcrtomb: New file.
18238         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18239
18240 2008-12-21  Bruno Haible  <bruno@clisp.org>
18241
18242         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18243         * modules/mbsrtowcs (Files): Likewise.
18244         * modules/wctob (Files): Likewise.
18245         * modules/c-strcase-tests (Files): Likewise.
18246         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18247         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18248         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18249         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18250         * modules/vasnprintf-posix-tests (Files): Likewise.
18251
18252 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18253
18254         gitlog-to-changelog: pass all command-line arguments to git-log
18255         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18256         it is sometimes convenient to filter the commits in various ways.
18257         gitlog-to-changelog only allows --since to specify a start date,
18258         but git-log itself supports many other filtering mechanisms.
18259         At the moment, I want to filter by branch name.  Rather than
18260         adding a --branch option to gitlog-to-changelog, it seems more
18261         flexible to simply pass all options directly to git-log and let
18262         git do the work.  Notice that this effectively makes --since a
18263         redundant option for gitlog-to-changelog, but removing it would
18264         require current usage to change since calls would then require
18265         an additional '--'.
18266
18267 2008-12-21  Bruno Haible  <bruno@clisp.org>
18268
18269         * modules/mbsnrtowcs-tests: New file.
18270         * tests/test-mbsnrtowcs1.sh: New file.
18271         * tests/test-mbsnrtowcs2.sh: New file.
18272         * tests/test-mbsnrtowcs3.sh: New file.
18273         * tests/test-mbsnrtowcs4.sh: New file.
18274         * tests/test-mbsnrtowcs.c: New file.
18275
18276         New module 'mbsnrtowcs'.
18277         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18278         * lib/mbsnrtowcs.c: New file.
18279         * lib/mbsrtowcs-state.c: New file.
18280         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18281         (internal_state): Remove variable.
18282         * m4/mbsnrtowcs.m4: New file.
18283         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18284         compilation units.
18285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18286         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18287         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18288         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18289         * modules/mbsnrtowcs: New file.
18290         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18291         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18292         portability problem.
18293
18294 2008-12-21  Bruno Haible  <bruno@clisp.org>
18295
18296         Work around mbsrtowcs bug.
18297         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18298         (gl_FUNC_MBSRTOWCS): Invoke it.
18299         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18300         m4/locale-zh.m4.
18301         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18302
18303 2008-12-21  Bruno Haible  <bruno@clisp.org>
18304
18305         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18306
18307 2008-12-21  Bruno Haible  <bruno@clisp.org>
18308
18309         Update doc for AIX.
18310         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18311         16-bit wchar_t type.
18312         * doc/posix-functions/btowc.texi: Likewise.
18313         * doc/posix-functions/fgetwc.texi: Likewise.
18314         * doc/posix-functions/fgetws.texi: Likewise.
18315         * doc/posix-functions/fputwc.texi: Likewise.
18316         * doc/posix-functions/fputws.texi: Likewise.
18317         * doc/posix-functions/fwide.texi: Likewise.
18318         * doc/posix-functions/fwprintf.texi: Likewise.
18319         * doc/posix-functions/fwscanf.texi: Likewise.
18320         * doc/posix-functions/getwchar.texi: Likewise.
18321         * doc/posix-functions/getwc.texi: Likewise.
18322         * doc/posix-functions/iswalnum.texi: Likewise.
18323         * doc/posix-functions/iswalpha.texi: Likewise.
18324         * doc/posix-functions/iswblank.texi: Likewise.
18325         * doc/posix-functions/iswcntrl.texi: Likewise.
18326         * doc/posix-functions/iswctype.texi: Likewise.
18327         * doc/posix-functions/iswdigit.texi: Likewise.
18328         * doc/posix-functions/iswgraph.texi: Likewise.
18329         * doc/posix-functions/iswlower.texi: Likewise.
18330         * doc/posix-functions/iswprint.texi: Likewise.
18331         * doc/posix-functions/iswpunct.texi: Likewise.
18332         * doc/posix-functions/iswspace.texi: Likewise.
18333         * doc/posix-functions/iswupper.texi: Likewise.
18334         * doc/posix-functions/iswxdigit.texi: Likewise.
18335         * doc/posix-functions/mbrtowc.texi: Likewise.
18336         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18337         * doc/posix-functions/mbstowcs.texi: Likewise.
18338         * doc/posix-functions/mbtowc.texi: Likewise.
18339         * doc/posix-functions/putwchar.texi: Likewise.
18340         * doc/posix-functions/putwc.texi: Likewise.
18341         * doc/posix-functions/swprintf.texi: Likewise.
18342         * doc/posix-functions/tolower.texi: Likewise.
18343         * doc/posix-functions/toupper.texi: Likewise.
18344         * doc/posix-functions/towctrans.texi: Likewise.
18345         * doc/posix-functions/ungetwc.texi: Likewise.
18346         * doc/posix-functions/vswprintf.texi: Likewise.
18347         * doc/posix-functions/wcrtomb.texi: Likewise.
18348         * doc/posix-functions/wcscat.texi: Likewise.
18349         * doc/posix-functions/wcschr.texi: Likewise.
18350         * doc/posix-functions/wcscmp.texi: Likewise.
18351         * doc/posix-functions/wcscoll.texi: Likewise.
18352         * doc/posix-functions/wcscpy.texi: Likewise.
18353         * doc/posix-functions/wcscspn.texi: Likewise.
18354         * doc/posix-functions/wcsftime.texi: Likewise.
18355         * doc/posix-functions/wcslen.texi: Likewise.
18356         * doc/posix-functions/wcsncat.texi: Likewise.
18357         * doc/posix-functions/wcsncmp.texi: Likewise.
18358         * doc/posix-functions/wcsncpy.texi: Likewise.
18359         * doc/posix-functions/wcspbrk.texi: Likewise.
18360         * doc/posix-functions/wcsrchr.texi: Likewise.
18361         * doc/posix-functions/wcsrtombs.texi: Likewise.
18362         * doc/posix-functions/wcsspn.texi: Likewise.
18363         * doc/posix-functions/wcsstr.texi: Likewise.
18364         * doc/posix-functions/wcstod.texi: Likewise.
18365         * doc/posix-functions/wcstof.texi: Likewise.
18366         * doc/posix-functions/wcstoimax.texi: Likewise.
18367         * doc/posix-functions/wcstok.texi: Likewise.
18368         * doc/posix-functions/wcstold.texi: Likewise.
18369         * doc/posix-functions/wcstoll.texi: Likewise.
18370         * doc/posix-functions/wcstol.texi: Likewise.
18371         * doc/posix-functions/wcstombs.texi: Likewise.
18372         * doc/posix-functions/wcstoull.texi: Likewise.
18373         * doc/posix-functions/wcstoul.texi: Likewise.
18374         * doc/posix-functions/wcstoumax.texi: Likewise.
18375         * doc/posix-functions/wcswidth.texi: Likewise.
18376         * doc/posix-functions/wcsxfrm.texi: Likewise.
18377         * doc/posix-functions/wctob.texi: Likewise.
18378         * doc/posix-functions/wctomb.texi: Likewise.
18379         * doc/posix-functions/wctrans.texi: Likewise.
18380         * doc/posix-functions/wctype.texi: Likewise.
18381         * doc/posix-functions/wcwidth.texi: Likewise.
18382         * doc/posix-functions/wmemchr.texi: Likewise.
18383         * doc/posix-functions/wmemcmp.texi: Likewise.
18384         * doc/posix-functions/wmemcpy.texi: Likewise.
18385         * doc/posix-functions/wmemmove.texi: Likewise.
18386         * doc/posix-functions/wmemset.texi: Likewise.
18387         * doc/posix-functions/wprintf.texi: Likewise.
18388         * doc/posix-functions/wscanf.texi: Likewise.
18389
18390 2008-12-21  Bruno Haible  <bruno@clisp.org>
18391
18392         Update doc for HP-UX 11.11.
18393         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18394         in HP-UX version 11.00, not in all versions of HP-UX 11.
18395         * doc/posix-functions/fwide.texi: Likewise.
18396         * doc/posix-functions/fwprintf.texi: Likewise.
18397         * doc/posix-functions/fwscanf.texi: Likewise.
18398         * doc/posix-functions/inet_ntop.texi: Likewise.
18399         * doc/posix-functions/inet_pton.texi: Likewise.
18400         * doc/posix-functions/mbrlen.texi: Likewise.
18401         * doc/posix-functions/mbrtowc.texi: Likewise.
18402         * doc/posix-functions/mbsinit.texi: Likewise.
18403         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18404         * doc/posix-functions/swprintf.texi: Likewise.
18405         * doc/posix-functions/swscanf.texi: Likewise.
18406         * doc/posix-functions/towctrans.texi: Likewise.
18407         * doc/posix-functions/vfwprintf.texi: Likewise.
18408         * doc/posix-functions/vswprintf.texi: Likewise.
18409         * doc/posix-functions/vwprintf.texi: Likewise.
18410         * doc/posix-functions/wcrtomb.texi: Likewise.
18411         * doc/posix-functions/wcsrtombs.texi: Likewise.
18412         * doc/posix-functions/wcsstr.texi: Likewise.
18413         * doc/posix-functions/wctob.texi: Likewise.
18414         * doc/posix-functions/wctrans.texi: Likewise.
18415         * doc/posix-functions/wmemchr.texi: Likewise.
18416         * doc/posix-functions/wmemcmp.texi: Likewise.
18417         * doc/posix-functions/wmemcpy.texi: Likewise.
18418         * doc/posix-functions/wmemmove.texi: Likewise.
18419         * doc/posix-functions/wmemset.texi: Likewise.
18420         * doc/posix-functions/wprintf.texi: Likewise.
18421         * doc/posix-functions/wscanf.texi: Likewise.
18422
18423 2008-12-21  Bruno Haible  <bruno@clisp.org>
18424
18425         Work around a portability problem.
18426         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18427         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18428
18429 2008-12-20  Bruno Haible  <bruno@clisp.org>
18430
18431         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18432         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18433         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18435         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18436
18437         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18438         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18439         set.
18440         (GNULIB_defined_mbstate_t): New macro.
18441         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18442         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18443         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18444         reuses the system's mbrtowc function but works around the bugs.
18445         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18446         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18447         macros.
18448         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18449         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18450         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18451         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18452         REPLACE_MBSINIT if mbsinit needs to be overridden.
18453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18454         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18455         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18456         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18457         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18458         m4/locale-zh.m4.
18459         (Depends): Add mbsinit.
18460         * modules/mbsinit (Depends): Add mbrtowc.
18461         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18462
18463 2008-12-20  Bruno Haible  <bruno@clisp.org>
18464
18465         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18466         so that there are no conversion errors on AIX.
18467         * tests/test-mbsrtowcs.c (main): LIkewise.
18468
18469 2008-12-20  Bruno Haible  <bruno@clisp.org>
18470
18471         Work around wctob bug on Solaris <= 9.
18472         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18473         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18475         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18476         * modules/wctob (Files): Add m4/locale-fr.m4.
18477         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18478
18479 2008-12-20  Bruno Haible  <bruno@clisp.org>
18480
18481         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18482         /dev/null.
18483         * tests/test-select-in.sh: Likewise.
18484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18485
18486 2008-12-20  Bruno Haible  <bruno@clisp.org>
18487
18488         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18489         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18490         Cygwin 1.5.x.
18491
18492 2008-12-20  Bruno Haible  <bruno@clisp.org>
18493
18494         Ensure mbstate_t is defined on HP-UX 11.11.
18495         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18496         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18497         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18498         AC_USE_SYSTEM_EXTENSIONS.
18499         * modules/fnmatch (Depends-on): Add extensions.
18500         * modules/mbrlen (Depends-on): Likewise.
18501         * modules/mbrtowc (Depends-on): Likewise.
18502         * modules/mbsinit (Depends-on): Likewise.
18503         * modules/mbsrtowcs (Depends-on): Likewise.
18504         * modules/mbswidth (Depends-on): Likewise.
18505         * modules/quotearg (Depends-on): Likewise.
18506         * modules/strftime (Depends-on): Likewise.
18507
18508 2008-12-20  Bruno Haible  <bruno@clisp.org>
18509
18510         Ensure wctob is declared on IRIX 6.5.
18511         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18512         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18513         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18515         of HAVE_WCTOB.
18516         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18517         HAVE_WCTOB.
18518         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18519
18520 2008-12-19  Bruno Haible  <bruno@clisp.org>
18521
18522         * modules/mbsrtowcs-tests: New file.
18523         * tests/test-mbsrtowcs1.sh: New file.
18524         * tests/test-mbsrtowcs2.sh: New file.
18525         * tests/test-mbsrtowcs3.sh: New file.
18526         * tests/test-mbsrtowcs4.sh: New file.
18527         * tests/test-mbsrtowcs.c: New file.
18528
18529         New module 'mbsrtowcs'.
18530         * lib/wchar.in.h (mbsrtowcs): New declaration.
18531         * lib/mbsrtowcs.c: New file.
18532         * m4/mbsrtowcs.m4: New file.
18533         * modules/mbsrtowcs: New file.
18534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18535         HAVE_MBSRTOWCS.
18536         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18537         HAVE_MBSRTOWCS.
18538         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18539
18540 2008-12-19  Bruno Haible  <bruno@clisp.org>
18541
18542         New module 'mbrlen'.
18543         * lib/wchar.in.h (mbrlen): New declaration.
18544         * lib/mbrlen.c: New file.
18545         * m4/mbrlen.m4: New file.
18546         * modules/mbrlen: New file.
18547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18548         HAVE_MBRLEN.
18549         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18550         HAVE_MBRLEN.
18551         * doc/posix-functions/mbrlen.texi: Document the new module.
18552
18553 2008-12-19  Bruno Haible  <bruno@clisp.org>
18554
18555         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18556         * modules/mbrtowc (Depends-on): Add verify.
18557         Suggested by Paul Eggert.
18558
18559 2008-12-18  Bruno Haible  <bruno@clisp.org>
18560
18561         * modules/mbsinit-tests: New file.
18562         * tests/test-mbsinit.sh: New file.
18563         * tests/test-mbsinit.c: New file.
18564
18565 2008-12-18  Bruno Haible  <bruno@clisp.org>
18566
18567         * modules/mbrtowc-tests: New file.
18568         * tests/test-mbrtowc1.sh: New file.
18569         * tests/test-mbrtowc2.sh: New file.
18570         * tests/test-mbrtowc3.sh: New file.
18571         * tests/test-mbrtowc4.sh: New file.
18572         * tests/test-mbrtowc.c: New file.
18573
18574         New module 'mbrtowc'.
18575         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18576         mbsinit and mbrtowc.
18577         (mbrtowc): New declaration.
18578         * lib/mbrtowc.c: New file.
18579         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18580         * modules/mbrtowc: New file.
18581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18582         HAVE_MBRTOWC.
18583         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18584         HAVE_MBRTOWC.
18585         * doc/posix-functions/mbrtowc.texi: Document the new module.
18586
18587 2008-12-18  Bruno Haible  <bruno@clisp.org>
18588
18589         New module 'wctob'.
18590         * lib/wchar.in.h (wctob): New declaration.
18591         * lib/wctob.c: New file.
18592         * m4/wctob.m4: New file.
18593         * modules/wctob: New file.
18594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18595         HAVE_WCTOB.
18596         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18597         * doc/posix-functions/wctob.texi: Document the new module.
18598
18599 2008-12-18  Bruno Haible  <bruno@clisp.org>
18600
18601         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18602         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18603
18604 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18605
18606         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18607         G. Christensen" <tgc@jupiterrise.com>.
18608
18609         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18610         G. Christensen" <tgc@jupiterrise.com>.
18611
18612         * lib/flock.c: Need to include string.h.  Reported by "Tom
18613         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18614         <ebb9@byu.net>.
18615
18616 2008-12-18  Bruno Haible  <bruno@clisp.org>
18617
18618         * m4/locale-ja.m4: New file, from GNU gettext.
18619
18620 2008-12-17  Bruno Haible  <bruno@clisp.org>
18621
18622         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18623         Suggested by Eric Blake.
18624
18625 2008-12-17  Bruno Haible  <bruno@clisp.org>
18626
18627         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18628
18629 2008-12-17  Bruno Haible  <bruno@clisp.org>
18630
18631         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18632         * modules/mbsinit (Depends-on): Add verify.
18633         Suggested by Paul Eggert.
18634
18635 2008-12-17  Bruno Haible  <bruno@clisp.org>
18636
18637         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18638         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18639         gl_FUNC_MBRTOWC.
18640         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18641         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18642         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18643         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18644         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18645         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18646         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18647         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18648         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18649         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18650         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18651         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18652         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18653         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18654         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18655         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18656         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18657         * modules/trim (configure.ac): Likewise.
18658
18659 2008-12-17  Bruno Haible  <bruno@clisp.org>
18660
18661         * modules/btowc-tests: New file.
18662         * tests/test-btowc1.sh: New file.
18663         * tests/test-btowc2.sh: New file.
18664         * tests/test-btowc.c: New file.
18665
18666         New module 'btowc'.
18667         * lib/wchar.in.h (btowc): New declaration.
18668         * lib/btowc.c: New file.
18669         * m4/btowc.m4: New file.
18670         * modules/btowc: New file.
18671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18672         HAVE_BTOWC.
18673         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18674         * doc/posix-functions/btowc.texi: Document the new module.
18675
18676 2008-12-17  Bruno Haible  <bruno@clisp.org>
18677
18678         New module 'mbsinit'.
18679         * lib/wchar.in.h (mbsinit): New declaration.
18680         * lib/mbsinit.c: New file.
18681         * m4/mbsinit.m4: New file.
18682         * modules/mbsinit: New file.
18683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18684         HAVE_MBSINIT.
18685         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18686         HAVE_MBSINIT.
18687         * doc/posix-functions/mbsinit.texi: Document the new module.
18688
18689 2008-12-16  Bruno Haible  <bruno@clisp.org>
18690
18691         * lib/unistd.in.h: Add comment.
18692         * tests/test-environ.c: Don't include <stdlib.h>.
18693
18694 2008-12-16  Bruno Haible  <bruno@clisp.org>
18695
18696         * lib/parse-duration.h (parse_duration): Document return value
18697         convention.
18698         * lib/parse-duration.c: Include specification header first. Add
18699         comments.
18700         (_): Remove macro.
18701         (parse_year_month_day, parse_hour_minute_second): Move side effects
18702         outside of strchr call.
18703         (parse_non_iso8601): Move side effects outside of isspace call.
18704         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18705         call.
18706
18707 2008-12-16  Bruno Haible  <bruno@clisp.org>
18708
18709         * tests/test-parse-duration.sh: Produce no output when the test
18710         succeeds.
18711
18712 2008-12-16  Bruno Haible  <bruno@clisp.org>
18713
18714         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18715         expressions.
18716
18717 2008-12-15  Bruno Haible  <bruno@clisp.org>
18718
18719         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18720         * doc/glibc-functions/flistxattr.texi: Likewise.
18721         * doc/glibc-functions/fopencookie.texi: Likewise.
18722         * doc/glibc-functions/fremovexattr.texi: Likewise.
18723         * doc/glibc-functions/fsetxattr.texi: Likewise.
18724         * doc/glibc-functions/getxattr.texi: Likewise.
18725         * doc/glibc-functions/lgetxattr.texi: Likewise.
18726         * doc/glibc-functions/listxattr.texi: Likewise.
18727         * doc/glibc-functions/llistxattr.texi: Likewise.
18728         * doc/glibc-functions/lremovexattr.texi: Likewise.
18729         * doc/glibc-functions/lsetxattr.texi: Likewise.
18730         * doc/glibc-functions/removexattr.texi: Likewise.
18731         * doc/glibc-functions/setxattr.texi: Likewise.
18732         * doc/posix-functions/open_memstream.texi: Likewise.
18733
18734 2008-12-15  Eric Blake  <ebb9@byu.net>
18735
18736         Update doc for cygwin 1.7.
18737         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18738         functions.
18739         * doc/posix-functions/fchmodat.texi: Likewise.
18740         * doc/posix-functions/fchownat.texi: Likewise.
18741         * doc/posix-functions/fdopendir.texi: Likewise.
18742         * doc/posix-functions/fmemopen.texi: Likewise.
18743         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18744         * doc/posix-functions/fstatat.texi: Likewise.
18745         * doc/posix-functions/futimens.texi: Likewise.
18746         * doc/posix-functions/gai_strerror.texi: Likewise.
18747         * doc/posix-functions/getaddrinfo.texi: Likewise.
18748         * doc/posix-functions/getnameinfo.texi: Likewise.
18749         * doc/posix-functions/if_freenameindex.texi: Likewise.
18750         * doc/posix-functions/if_indextoname.texi: Likewise.
18751         * doc/posix-functions/if_nameindex.texi: Likewise.
18752         * doc/posix-functions/if_nametoindex.texi: Likewise.
18753         * doc/posix-functions/insque.texi: Likewise.
18754         * doc/posix-functions/linkat.texi: Likewise.
18755         * doc/posix-functions/llrint.texi: Likewise.
18756         * doc/posix-functions/llrintf.texi: Likewise.
18757         * doc/posix-functions/llrintl.texi: Likewise.
18758         * doc/posix-functions/lockf.texi: Likewise.
18759         * doc/posix-functions/lrintl.texi: Likewise.
18760         * doc/posix-functions/mkdirat.texi: Likewise.
18761         * doc/posix-functions/mkfifoat.texi: Likewise.
18762         * doc/posix-functions/mknodat.texi: Likewise.
18763         * doc/posix-functions/mq_close.texi: Likewise.
18764         * doc/posix-functions/mq_getattr.texi: Likewise.
18765         * doc/posix-functions/mq_notify.texi: Likewise.
18766         * doc/posix-functions/mq_open.texi: Likewise.
18767         * doc/posix-functions/mq_receive.texi: Likewise.
18768         * doc/posix-functions/mq_send.texi: Likewise.
18769         * doc/posix-functions/mq_setattr.texi: Likewise.
18770         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18771         * doc/posix-functions/mq_timedsend.texi: Likewise.
18772         * doc/posix-functions/mq_unlink.texi: Likewise.
18773         * doc/posix-functions/open_memstream.texi: Likewise.
18774         * doc/posix-functions/openat.texi: Likewise.
18775         * doc/posix-functions/posix_fadvise.texi: Likewise.
18776         * doc/posix-functions/posix_fallocate.texi: Likewise.
18777         * doc/posix-functions/posix_madvise.texi: Likewise.
18778         * doc/posix-functions/posix_memalign.texi: Likewise.
18779         * doc/posix-functions/posix_openpt.texi: Likewise.
18780         * doc/posix-functions/readlinkat.texi: Likewise.
18781         * doc/posix-functions/remque.texi: Likewise.
18782         * doc/posix-functions/renameat.texi: Likewise.
18783         * doc/posix-functions/rintl.texi: Likewise.
18784         * doc/posix-functions/sem_unlink.texi: Likewise.
18785         * doc/posix-functions/shm_open.texi: Likewise.
18786         * doc/posix-functions/shm_unlink.texi: Likewise.
18787         * doc/posix-functions/signgam.texi: Likewise.
18788         * doc/posix-functions/sigset.texi: Likewise.
18789         * doc/posix-functions/stpcpy.texi: Likewise.
18790         * doc/posix-functions/stpncpy.texi: Likewise.
18791         * doc/posix-functions/strerror.texi: Likewise.
18792         * doc/posix-functions/strtod.texi: Likewise.
18793         * doc/posix-functions/symlinkat.texi: Likewise.
18794         * doc/posix-functions/unlinkat.texi: Likewise.
18795         * doc/posix-functions/utimensat.texi: Likewise.
18796         * doc/glibc-functions/bindresvport.texi: Likewise.
18797         * doc/glibc-functions/dn_expand.texi: Likewise.
18798         * doc/glibc-functions/exp10.texi: Likewise.
18799         * doc/glibc-functions/exp10f.texi: Likewise.
18800         * doc/glibc-functions/fgetxattr.texi: Likewise.
18801         * doc/glibc-functions/flistxattr.texi: Likewise.
18802         * doc/glibc-functions/fopencookie.texi: Likewise.
18803         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18804         * doc/glibc-functions/fremovexattr.texi: Likewise.
18805         * doc/glibc-functions/fsetxattr.texi: Likewise.
18806         * doc/glibc-functions/getifaddrs.texi: Likewise.
18807         * doc/glibc-functions/getxattr.texi: Likewise.
18808         * doc/glibc-functions/lgetxattr.texi: Likewise.
18809         * doc/glibc-functions/listxattr.texi: Likewise.
18810         * doc/glibc-functions/llistxattr.texi: Likewise.
18811         * doc/glibc-functions/lremovexattr.texi: Likewise.
18812         * doc/glibc-functions/lsetxattr.texi: Likewise.
18813         * doc/glibc-functions/pow10.texi: Likewise.
18814         * doc/glibc-functions/pow10f.texi: Likewise.
18815         * doc/glibc-functions/rcmd_af.texi: Likewise.
18816         * doc/glibc-functions/removexattr.texi: Likewise.
18817         * doc/glibc-functions/res_init.texi: Likewise.
18818         * doc/glibc-functions/res_mkquery.texi: Likewise.
18819         * doc/glibc-functions/res_query.texi: Likewise.
18820         * doc/glibc-functions/res_querydomain.texi: Likewise.
18821         * doc/glibc-functions/res_send.texi: Likewise.
18822         * doc/glibc-functions/rresvport_af.texi: Likewise.
18823         * doc/glibc-functions/setxattr.texi: Likewise.
18824         * doc/glibc-functions/strcasestr.texi: Likewise.
18825
18826 2008-12-15  Bruno Haible  <bruno@clisp.org>
18827
18828         Fix compilation error on OSF/1 4.0.
18829         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18830         <sys/time.h>, simply delegate to the system header.
18831         Reported by Daniel Richard G. <oss@teragram.com>.
18832
18833 2008-12-15  Bruno Haible  <bruno@clisp.org>
18834
18835         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18836         * doc/posix-functions/fchmodat.texi: Likewise.
18837         * doc/posix-functions/fchownat.texi: Likewise.
18838         * doc/posix-functions/fdopendir.texi: Likewise.
18839         * doc/posix-functions/fstatat.texi: Likewise.
18840         * doc/posix-functions/mkdirat.texi: Likewise.
18841         * doc/posix-functions/unlinkat.texi: Likewise.
18842
18843 2008-12-14  Bruno Haible  <bruno@clisp.org>
18844
18845         Update doc for POSIX:2008.
18846         * doc/posix-functions/faccessat.texi: New file.
18847         * doc/posix-functions/fchmodat.texi: New file.
18848         * doc/posix-functions/fchownat.texi: New file.
18849         * doc/posix-functions/fdopendir.texi: New file.
18850         * doc/posix-functions/fstatat.texi: New file.
18851         * doc/posix-functions/futimens.texi: New file.
18852         * doc/posix-functions/linkat.texi: New file.
18853         * doc/posix-functions/mkdirat.texi: New file.
18854         * doc/posix-functions/mkfifoat.texi: New file.
18855         * doc/posix-functions/mknodat.texi: New file.
18856         * doc/posix-functions/open_wmemstream.texi: New file.
18857         * doc/posix-functions/openat.texi: New file.
18858         * doc/posix-functions/psiginfo.texi: New file.
18859         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18860         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18861         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18862         * doc/posix-functions/readlinkat.texi: New file.
18863         * doc/posix-functions/renameat.texi: New file.
18864         * doc/posix-functions/strerror_l.texi: New file.
18865         * doc/posix-functions/symlinkat.texi: New file.
18866         * doc/posix-functions/unlinkat.texi: New file.
18867         * doc/posix-functions/utimensat.texi: New file.
18868         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18869
18870 2008-12-14  Bruno Haible  <bruno@clisp.org>
18871
18872         Update doc for POSIX:2008.
18873         * doc/posix-functions/alphasort.texi: Renamed from
18874         doc/glibc-functions/alphasort.texi.
18875         * doc/posix-functions/dirfd.texi: Renamed from
18876         doc/glibc-functions/dirfd.texi.
18877         * doc/posix-functions/dprintf.texi: Renamed from
18878         doc/glibc-functions/dprintf.texi.
18879         * doc/posix-functions/duplocale.texi: Renamed from
18880         doc/glibc-functions/duplocale.texi.
18881         * doc/posix-functions/fexecve.texi: Renamed from
18882         doc/glibc-functions/fexecve.texi.
18883         * doc/posix-functions/fmemopen.texi: Renamed from
18884         doc/glibc-functions/fmemopen.texi.
18885         * doc/posix-functions/freelocale.texi: Renamed from
18886         doc/glibc-functions/freelocale.texi.
18887         * doc/posix-functions/getdate_err.texi: Renamed from
18888         doc/glibc-functions/getdate_err.texi.
18889         * doc/posix-functions/isalnum_l.texi: Renamed from
18890         doc/glibc-functions/isalnum_l.texi.
18891         * doc/posix-functions/isalpha_l.texi: Renamed from
18892         doc/glibc-functions/isalpha_l.texi.
18893         * doc/posix-functions/isblank_l.texi: Renamed from
18894         doc/glibc-functions/isblank_l.texi.
18895         * doc/posix-functions/iscntrl_l.texi: Renamed from
18896         doc/glibc-functions/iscntrl_l.texi.
18897         * doc/posix-functions/isdigit_l.texi: Renamed from
18898         doc/glibc-functions/isdigit_l.texi.
18899         * doc/posix-functions/isgraph_l.texi: Renamed from
18900         doc/glibc-functions/isgraph_l.texi.
18901         * doc/posix-functions/islower_l.texi: Renamed from
18902         doc/glibc-functions/islower_l.texi.
18903         * doc/posix-functions/isprint_l.texi: Renamed from
18904         doc/glibc-functions/isprint_l.texi.
18905         * doc/posix-functions/ispunct_l.texi: Renamed from
18906         doc/glibc-functions/ispunct_l.texi.
18907         * doc/posix-functions/isspace_l.texi: Renamed from
18908         doc/glibc-functions/isspace_l.texi.
18909         * doc/posix-functions/isupper_l.texi: Renamed from
18910         doc/glibc-functions/isupper_l.texi.
18911         * doc/posix-functions/iswalnum_l.texi: Renamed from
18912         doc/glibc-functions/iswalnum_l.texi.
18913         * doc/posix-functions/iswalpha_l.texi: Renamed from
18914         doc/glibc-functions/iswalpha_l.texi.
18915         * doc/posix-functions/iswblank_l.texi: Renamed from
18916         doc/glibc-functions/iswblank_l.texi.
18917         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18918         doc/glibc-functions/iswcntrl_l.texi.
18919         * doc/posix-functions/iswctype_l.texi: Renamed from
18920         doc/glibc-functions/iswctype_l.texi.
18921         * doc/posix-functions/iswdigit_l.texi: Renamed from
18922         doc/glibc-functions/iswdigit_l.texi.
18923         * doc/posix-functions/iswgraph_l.texi: Renamed from
18924         doc/glibc-functions/iswgraph_l.texi.
18925         * doc/posix-functions/iswlower_l.texi: Renamed from
18926         doc/glibc-functions/iswlower_l.texi.
18927         * doc/posix-functions/iswprint_l.texi: Renamed from
18928         doc/glibc-functions/iswprint_l.texi.
18929         * doc/posix-functions/iswpunct_l.texi: Renamed from
18930         doc/glibc-functions/iswpunct_l.texi.
18931         * doc/posix-functions/iswspace_l.texi: Renamed from
18932         doc/glibc-functions/iswspace_l.texi.
18933         * doc/posix-functions/iswupper_l.texi: Renamed from
18934         doc/glibc-functions/iswupper_l.texi.
18935         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18936         doc/glibc-functions/iswxdigit_l.texi.
18937         * doc/posix-functions/isxdigit_l.texi: Renamed from
18938         doc/glibc-functions/isxdigit_l.texi.
18939         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18940         doc/glibc-functions/mbsnrtowcs.texi.
18941         * doc/posix-functions/mkdtemp.texi: Renamed from
18942         doc/glibc-functions/mkdtemp.texi.
18943         * doc/posix-functions/newlocale.texi: Renamed from
18944         doc/glibc-functions/newlocale.texi.
18945         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18946         doc/glibc-functions/nl_langinfo_l.texi.
18947         * doc/posix-functions/open_memstream.texi: Renamed from
18948         doc/glibc-functions/open_memstream.texi.
18949         * doc/posix-functions/opterr.texi: Renamed from
18950         doc/glibc-functions/opterr.texi.
18951         * doc/posix-functions/optind.texi: Renamed from
18952         doc/glibc-functions/optind.texi.
18953         * doc/posix-functions/optopt.texi: Renamed from
18954         doc/glibc-functions/optopt.texi.
18955         * doc/posix-functions/psignal.texi: Renamed from
18956         doc/glibc-functions/psignal.texi.
18957         * doc/posix-functions/scandir.texi: Renamed from
18958         doc/glibc-functions/scandir.texi.
18959         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18960         doc/glibc-functions/sched_get_priority_min.texi.
18961         * doc/posix-functions/signgam.texi: Renamed from
18962         doc/glibc-functions/signgam.texi.
18963         * doc/posix-functions/stpcpy.texi: Renamed from
18964         doc/glibc-functions/stpcpy.texi.
18965         * doc/posix-functions/stpncpy.texi: Renamed from
18966         doc/glibc-functions/stpncpy.texi.
18967         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18968         doc/glibc-functions/strcasecmp_l.texi.
18969         * doc/posix-functions/strcoll_l.texi: Renamed from
18970         doc/glibc-functions/strcoll_l.texi.
18971         * doc/posix-functions/strfmon_l.texi: Renamed from
18972         doc/glibc-functions/strfmon_l.texi.
18973         * doc/posix-functions/strftime_l.texi: Renamed from
18974         doc/glibc-functions/strftime_l.texi.
18975         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18976         doc/glibc-functions/strncasecmp_l.texi.
18977         * doc/posix-functions/strndup.texi: Renamed from
18978         doc/glibc-functions/strndup.texi.
18979         * doc/posix-functions/strnlen.texi: Renamed from
18980         doc/glibc-functions/strnlen.texi.
18981         * doc/posix-functions/strsignal.texi: Renamed from
18982         doc/glibc-functions/strsignal.texi.
18983         * doc/posix-functions/strxfrm_l.texi: Renamed from
18984         doc/glibc-functions/strxfrm_l.texi.
18985         * doc/posix-functions/timer_gettime.texi: Renamed from
18986         doc/glibc-functions/timer_gettime.texi.
18987         * doc/posix-functions/tolower_l.texi: Renamed from
18988         doc/glibc-functions/tolower_l.texi.
18989         * doc/posix-functions/toupper_l.texi: Renamed from
18990         doc/glibc-functions/toupper_l.texi.
18991         * doc/posix-functions/towctrans_l.texi: Renamed from
18992         doc/glibc-functions/towctrans_l.texi.
18993         * doc/posix-functions/towlower_l.texi: Renamed from
18994         doc/glibc-functions/towlower_l.texi.
18995         * doc/posix-functions/towupper_l.texi: Renamed from
18996         doc/glibc-functions/towupper_l.texi.
18997         * doc/posix-functions/uselocale.texi: Renamed from
18998         doc/glibc-functions/uselocale.texi.
18999         * doc/posix-functions/vdprintf.texi: Renamed from
19000         doc/glibc-functions/vdprintf.texi.
19001         * doc/posix-functions/wcpcpy.texi:
19002         Renamed from doc/glibc-functions/wcpcpy.texi.
19003         * doc/posix-functions/wcpncpy.texi: Renamed from
19004         doc/glibc-functions/wcpncpy.texi.
19005         * doc/posix-functions/wcscasecmp.texi: Renamed from
19006         doc/glibc-functions/wcscasecmp.texi.
19007         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19008         doc/glibc-functions/wcscasecmp_l.texi.
19009         * doc/posix-functions/wcscoll_l.texi: Renamed from
19010         doc/glibc-functions/wcscoll_l.texi.
19011         * doc/posix-functions/wcsdup.texi: Renamed from
19012         doc/glibc-functions/wcsdup.texi.
19013         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19014         doc/glibc-functions/wcsncasecmp.texi.
19015         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19016         doc/glibc-functions/wcsncasecmp_l.texi.
19017         * doc/posix-functions/wcsnlen.texi: Renamed from
19018         doc/glibc-functions/wcsnlen.texi.
19019         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19020         doc/glibc-functions/wcsnrtombs.texi.
19021         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19022         doc/glibc-functions/wcsxfrm_l.texi.
19023         * doc/posix-functions/wctrans_l.texi: Renamed from
19024         doc/glibc-functions/wctrans_l.texi.
19025         * doc/posix-functions/wctype_l.texi: Renamed from
19026         doc/glibc-functions/wctype_l.texi.
19027         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19028         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19029         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19030         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19031         these subsections.
19032         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19033         Remove sections.
19034
19035 2008-12-14  Bruno Haible  <bruno@clisp.org>
19036
19037         Update doc for POSIX:2008.
19038         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19039
19040 2008-12-14  Bruno Haible  <bruno@clisp.org>
19041
19042         Update doc for POSIX:2008.
19043         * doc/pastposix-functions/bcmp.texi: Renamed from
19044         doc/posix-functions/bcmp.texi.
19045         * doc/pastposix-functions/bcopy.texi: Renamed from
19046         doc/posix-functions/bcopy.texi.
19047         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19048         doc/posix-functions/bsd_signal.texi.
19049         * doc/pastposix-functions/bzero.texi: Renamed from
19050         doc/posix-functions/bzero.texi.
19051         * doc/pastposix-functions/ecvt.texi: Renamed from
19052         doc/posix-functions/ecvt.texi.
19053         * doc/pastposix-functions/fcvt.texi: Renamed from
19054         doc/posix-functions/fcvt.texi.
19055         * doc/pastposix-functions/ftime.texi: Renamed from
19056         doc/posix-functions/ftime.texi.
19057         * doc/pastposix-functions/gcvt.texi: Renamed from
19058         doc/posix-functions/gcvt.texi.
19059         * doc/pastposix-functions/getcontext.texi: Renamed from
19060         doc/posix-functions/getcontext.texi.
19061         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19062         doc/posix-functions/gethostbyaddr.texi.
19063         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19064         doc/posix-functions/gethostbyname.texi.
19065         * doc/pastposix-functions/getwd.texi: Renamed from
19066         doc/posix-functions/getwd.texi.
19067         * doc/pastposix-functions/h_errno.texi: Renamed from
19068         doc/posix-functions/h_errno.texi.
19069         * doc/pastposix-functions/index.texi: Renamed from
19070         doc/posix-functions/index.texi.
19071         * doc/pastposix-functions/makecontext.texi: Renamed from
19072         doc/posix-functions/makecontext.texi.
19073         * doc/pastposix-functions/mktemp.texi: Renamed from
19074         doc/posix-functions/mktemp.texi.
19075         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19076         doc/posix-functions/pthread_attr_getstackaddr.texi.
19077         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19078         doc/posix-functions/pthread_attr_setstackaddr.texi.
19079         * doc/pastposix-functions/rindex.texi: Renamed from
19080         doc/posix-functions/rindex.texi.
19081         * doc/pastposix-functions/scalb.texi: Renamed from
19082         doc/posix-functions/scalb.texi.
19083         * doc/pastposix-functions/setcontext.texi: Renamed from
19084         doc/posix-functions/setcontext.texi.
19085         * doc/pastposix-functions/swapcontext.texi: Renamed from
19086         doc/posix-functions/swapcontext.texi.
19087         * doc/pastposix-functions/ualarm.texi: Renamed from
19088         doc/posix-functions/ualarm.texi.
19089         * doc/pastposix-functions/usleep.texi: Renamed from
19090         doc/posix-functions/usleep.texi.
19091         * doc/pastposix-functions/vfork.texi: Renamed from
19092         doc/posix-functions/vfork.texi.
19093         * doc/pastposix-functions/wcswcs.texi: Renamed from
19094         doc/posix-functions/wcswcs.texi.
19095         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19096         (Function Substitutes): Update.
19097
19098 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19099
19100         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19101         m4/strerror.m4.
19102
19103 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19104             Bruno Haible  <bruno@clisp.org>
19105
19106         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19107
19108 2008-12-13  Bruno Haible  <bruno@clisp.org>
19109
19110         * modules/strtoull (Depends-on): Remove unistd.
19111
19112 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19113
19114         * modules/strtoull (Depends-on): Add stdlib.
19115
19116 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19117
19118         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19119
19120 2008-12-10  Jim Meyering  <meyering@redhat.com>
19121
19122         gl_ASSERT: don't say assertions are disabled when they're not
19123         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19124         "checking whether to enable assertions... no", when they are in
19125         fact enabled.  This is solely a bug in the output of configure.
19126         In spite of saying "no", NDEBUG was not defined in that case.
19127         Also, as noted by Eric Blake, leave assertions enabled upon
19128         --enable-assert=INVALID.
19129
19130 2008-12-10  Bruno Haible  <bruno@clisp.org>
19131
19132         Change MODULES.html to refer to POSIX:2008 where possible.
19133         * MODULES.html.sh (POSIX2008_URL): New variable.
19134         (posix_headers): Remove sys/timeb, ucontext.
19135         (posix2001_headers): New variable.
19136         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19137         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19138         index, makecontext, mktemp, pthread_attr_getstackaddr,
19139         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19140         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19141         (posix2001_functions): New variable.
19142         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19143         otherwise.
19144
19145 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19146
19147         add missing include to parse-duration.c
19148         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19149         * modules/parse-duration (Depends-on): Add xalloc.
19150
19151         fix sed script reading maint.mk
19152         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19153         (syntax-check-rules): Use it.
19154
19155 2008-12-09  Bruno Haible  <bruno@clisp.org>
19156
19157         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19158         MacOS X 10.4/PowerPC.
19159         Reported by Simon Josefsson.
19160
19161 2008-12-08  Jim Meyering  <meyering@redhat.com>
19162
19163         work around mingw's lack of some S_IF definitions
19164         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19165         Reported by Simon Josefsson.
19166
19167 2008-12-08  Bruno Haible  <bruno@clisp.org>
19168
19169         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19170         applied to variables. Needed on MacOS X 10.4/PowerPC.
19171         Reported by Simon Josefsson.
19172
19173 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19174         and Eric Blake  <ebb9@byu.net>
19175
19176         assert: honor --enable-assert
19177         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19178         order to honor --enable-assert, rather than treating it as a
19179         synonym for --disable-assert.
19180
19181 2008-12-08  Jim Meyering  <meyering@redhat.com>
19182
19183         * lib/posixtm.c: Remove now-useless declaration of mktime.
19184
19185         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19186
19187 2008-12-07  Bruno Haible  <bruno@clisp.org>
19188
19189         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19190         test_once): Mark functions as static.
19191         * tests/test-tls.c (test_tls): Likewise.
19192
19193 2008-12-07  Bruno Haible  <bruno@clisp.org>
19194
19195         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19196         iconv_register_autodetect.
19197
19198 2008-12-07  Jim Meyering  <meyering@redhat.com>
19199
19200         posixtm.c: avoid a warning
19201         * lib/posixtm.c (posixtime): Don't initialize tm0.
19202         It's no longer needed to placate gcc4's -Wuninitialized,
19203         and the attempt to placate would elicit a new warning.
19204
19205         unicodeio.c: mark unused parameters
19206         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19207         (fallback_failure_callback): Likewise.
19208
19209 2008-12-07  Bruno Haible  <bruno@clisp.org>
19210
19211         * gnulib-tool (func_create_testdir): When building the tests
19212         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19213         Reported by Simon Josefsson.
19214
19215 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19216
19217         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19218
19219 2008-12-06  Bruno Haible  <bruno@clisp.org>
19220
19221         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19222         Suggested by Eric Blake.
19223
19224 2008-12-06  Bruno Haible  <bruno@clisp.org>
19225
19226         Fix a c-stack test failure on MacOS X.
19227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19228         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19229         handler for SIGBUS as well.
19230         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19231         install a signal handler for SIGBUS as well.
19232         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19233
19234 2008-12-06  Bruno Haible  <bruno@clisp.org>
19235
19236         Advocacy documentation.
19237         * doc/gnulib-intro.texi (Benefits): New section.
19238         * doc/gnulib.texi: Update.
19239
19240 2008-12-06  Bruno Haible  <bruno@clisp.org>
19241
19242         Document the 'manywarnings' module.
19243         * doc/manywarnings.texi: New file.
19244         * doc/gnulib.texi: Include it.
19245
19246 2008-12-05  Eric Blake  <ebb9@byu.net>
19247
19248         tests: silence some gcc warnings
19249         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19250         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19251         type mismatches.
19252
19253 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19254             Bruno Haible  <bruno@clisp.org>
19255
19256         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19257
19258 2008-11-29  Jim Meyering  <meyering@redhat.com>
19259
19260         unicodeio.c: mark unused parameters
19261         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19262         (fallback_failure_callback): Likewise.
19263
19264         fts: fix a thinko
19265         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19266         (set_stat_type): Return S_IF*-valued "type" directly.
19267         Prompted by James Youngman's spotting a related bug.
19268         Confirmed by further testing through find.
19269
19270         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19271         * lib/fts.c (D_TYPE): Define.
19272         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19273         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19274         (s_ifmt_shift_bits): New function.
19275         (set_stat_type): New function.
19276         (fts_build): When not calling fts_stat, call set_stat_type
19277         to propagate dirent.d_type info to fts_read caller.
19278         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19279         fts_statp->st_mode type information may be valid.
19280
19281 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19282
19283         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19284         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19285         <sds@gnu.org>.
19286
19287 2008-11-20  Bruno Haible  <bruno@clisp.org>
19288
19289         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19290         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19291         INCLUDE_NEXT.
19292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19293         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19294         * modules/math (Makefile.am): Substitute
19295         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19296         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19297
19298 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19299             Bruno Haible  <bruno@clisp.org>
19300
19301         * lib/stdint.in.h: Define all type macros so that their expansion is
19302         a single typedef'ed token. Fixes a compilation failure in Boost which
19303         does "using ::int8_t;".
19304
19305 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19306
19307         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19308         gl_MANYWARN_ALL_GCC.
19309         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19310         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19311         * modules/manywarnings: New file.
19312         * MODULES.html.sh: Mention manywarnings module.
19313
19314 2008-11-18  Bruno Haible  <bruno@clisp.org>
19315
19316         * doc/gnulib-tool.texi (Unit tests): New section.
19317
19318 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19319
19320         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19321         paths like 'lib/po/foo.po'.
19322
19323 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19324
19325         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19326         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19327
19328 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19329
19330         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19331         parameter works.
19332
19333 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19334
19335         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19336
19337 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19338
19339         * modules/parse-duration-tests: New file.
19340         * tests/test-parse-duration.sh: New file.
19341         * tests/test-parse-duration.c: New file.
19342
19343         New module 'parse-duration'.
19344         * lib/parse-duration.h: New file.
19345         * lib/parse-duration.c: New file.
19346         * modules/parse-duration: New file.
19347
19348 2008-11-17  Bruno Haible  <bruno@clisp.org>
19349
19350         * tests/test-select-out.sh: Comment out the first pipe test.
19351         Reported by Simon Josefsson.
19352
19353 2008-11-17  Bruno Haible  <bruno@clisp.org>
19354
19355         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19356         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19357         gl_HOSTENT.
19358
19359 2008-11-17  Bruno Haible  <bruno@clisp.org>
19360
19361         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19362         -lnetwork and -lnet. Needed for Haiku and BeOS.
19363
19364 2008-11-16  Bruno Haible  <bruno@clisp.org>
19365
19366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19367
19368 2008-11-16  Bruno Haible  <bruno@clisp.org>
19369
19370         Avoid test failure on Haiku.
19371         * tests/test-fsync.c: Include <errno.h>.
19372         (main): Don't require that fsync (0) fails.
19373
19374 2008-11-15  Bruno Haible  <bruno@clisp.org>
19375
19376         New module 'hostent'.
19377         * modules/hostent: New file.
19378         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19379
19380 2008-11-15  Bruno Haible  <bruno@clisp.org>
19381
19382         New module 'servent'.
19383         * modules/servent: New file.
19384         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19385
19386 2008-11-15  Bruno Haible  <bruno@clisp.org>
19387
19388         Avoid generating same test program with two different rules.
19389         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19390         test-frexp to test-frexp-nolibm.
19391         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19392         test-frexpl to test-frexpl-nolibm.
19393
19394 2008-11-15  Bruno Haible  <bruno@clisp.org>
19395
19396         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19397         $(FREXPL_LIBM).
19398
19399 2008-11-15  Bruno Haible  <bruno@clisp.org>
19400
19401         * lib/netdb.in.h: Activate the definitions also when the system's
19402         <netdb.h> has 'struct addrinfo'.
19403         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19404         EAI_OVERFLOW or AI_NUMERICSERV.
19405         * doc/posix-headers/netdb.texi: Document the problem.
19406
19407 2008-11-15  Bruno Haible  <bruno@clisp.org>
19408
19409         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19410
19411         Make the 'sched' module work on platforms where <sched.h> exists but
19412         is incomplete (such as Haiku).
19413         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19414         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19415         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19416         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19417         HAVE_STRUCT_SCHED_PARAM.
19418         * modules/sched (Depends-on): Add include_next.
19419         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19420         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19421         * doc/posix-headers/sched.texi: Document the issue.
19422
19423 2008-11-13  Jim Meyering  <meyering@redhat.com>
19424
19425         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19426         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19427         test would fail due to the difference in the Report bugs to ...
19428         line.  The expected address is empty, "<>", while the actual
19429         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19430
19431 2008-11-12  Bruno Haible  <bruno@clisp.org>
19432
19433         lstat: don't compile lstat.c on systems lacking lstat
19434         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19435         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19436         Reported by Daniel P. Berrange via Jim Meyering.
19437
19438 2008-11-12  Jim Meyering  <meyering@redhat.com>
19439
19440         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19441
19442 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19443
19444         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19445         instead.
19446
19447 2008-11-12  Bruno Haible  <bruno@clisp.org>
19448
19449         * lib/unicodeio.c: Include unistr.h.
19450         (utf8_wctomb): Remove function.
19451         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19452
19453 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19454
19455         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19456         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19457         <bruno@clisp.org>.
19458         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19459
19460 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19461
19462         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19463         * doc/gnulib.texi: Add section for warnings.
19464
19465 2008-11-11  Bruno Haible  <bruno@clisp.org>
19466
19467         * lib/sockets.h: Add a comment.
19468
19469 2008-11-11  Karl Berry  <karl@gnu.org>
19470
19471         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19472
19473 2008-11-11  Eric Blake  <ebb9@byu.net>
19474
19475         fdl.texi: avoid git symlinks
19476         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19477
19478 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19479
19480         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19481
19482 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19483
19484         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19485         (gl_WARN_ADD): Substitute $2 if literal.
19486
19487 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19488
19489         * m4/warning.m4: Remove.
19490
19491 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19492
19493         * m4/warnings.m4: Almost complete rewrite. :-)
19494
19495 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19496
19497         * modules/warnings: New module.
19498         * m4/warnings.m4: New file.
19499         * MODULES.html.sh: Mention warnings module.
19500         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19501         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19502
19503 2008-11-10  Eric Blake  <ebb9@byu.net>
19504
19505         fdl.texi: make a symlink to the latest version
19506         * doc/standards.texi: Revert today's earlier change.
19507         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19508         * doc/fdl.texi: ...and replace this with a symlink to the newer
19509         fdl-1.3.texi.
19510
19511 2008-11-10  Bruno Haible  <bruno@clisp.org>
19512
19513         * tests/test-select-fd.c (main): Accept the result file name as fourth
19514         argument.
19515         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19516         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19517
19518 2008-11-10  Bruno Haible  <bruno@clisp.org>
19519
19520         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19521         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19522         as autoconf-substituted macros.
19523         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19525         gl_NETDB_H_DEFAULTS. Set these variables.
19526         * modules/netdb (Makefile.am): Substitute these variables.
19527
19528 2008-11-10  Eric Blake  <ebb9@byu.net>
19529
19530         standards.texi: include correct file for FDL 1.3
19531         * doc/standards.texi (GNU Free Documentation License): Change
19532         include file to pull in FDL 1.3, not 1.2.
19533
19534         fdl.texi: revert accidental change to license
19535         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19536
19537 2008-11-10  Bruno Haible  <bruno@clisp.org>
19538
19539         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19540         cross-compiling guesses also when the native compile gives no result.
19541
19542 2008-11-10  Bruno Haible  <bruno@clisp.org>
19543
19544         * lib/spawni.c (__spawni): Force variable into the stack.
19545
19546 2008-11-10  Bruno Haible  <bruno@clisp.org>
19547
19548         Add support for Haiku.
19549         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19550         glibc and BeOS, but also on Haiku.
19551         * lib/fpurge.c (fpurge): Likewise.
19552         * lib/freadable.c (freadable): Likewise.
19553         * lib/freadahead.c (freadahead): Likewise.
19554         * lib/freading.c (freading): Likewise.
19555         * lib/freadptr.c (freadptr): Likewise.
19556         * lib/freadseek.c (freadptrinc): Likewise.
19557         * lib/fseeko.c (rpl_fseeko): Likewise.
19558         * lib/fseterr.c (fseterr): Likewise.
19559         * lib/fwritable.c (fwritable): Likewise.
19560         * lib/fwriting.c (fwriting): Likewise.
19561         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19562
19563 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19564
19565         * lib/config.charset: Treat Haiku like BeOS.
19566
19567 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19568
19569         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19570         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19571
19572 2008-11-08  Bruno Haible  <bruno@clisp.org>
19573
19574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19575         AC_CACHE_CHECK.
19576
19577 2008-11-08  Bruno Haible  <bruno@clisp.org>
19578
19579         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19580
19581 2008-11-08  Bruno Haible  <bruno@clisp.org>
19582
19583         * tests/test-select-fd.c: New file.
19584         * tests/test-select-in.sh: New file.
19585         * tests/test-select-out.sh: New file.
19586         * tests/test-select-stdin.c: New file.
19587         * modules/select-tests (Files): Add the new files.
19588         (Depends-on): Add gettimeofday.
19589         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19590         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19591         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19592
19593 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19594             Bruno Haible  <bruno@clisp.org>
19595
19596         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19597
19598 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19599
19600         * build-aux/pmccabe2html: Added support for C++ source files.
19601
19602 2008-11-05  Ben Pfaff  <blp@gnu.org>
19603
19604         Fix lib/close.c build on Windows.
19605         * modules/close (Files): Add lib/w32sock.h.
19606
19607 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19608
19609         Accept Bison's NEWS format.
19610         * build-aux/announce-gen (print_news_deltas): Tweak
19611         $re_prefix.
19612
19613 2008-11-04  Bruno Haible  <bruno@clisp.org>
19614
19615         * modules/random_r (Maintainer): Add glibc.
19616
19617 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19618
19619         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19620         by karl@freefriends.org (Karl Berry).
19621         * doc/alloca.texi: Likewise.
19622         * doc/c-ctype.texi: Likewise.
19623         * doc/c-strcase.texi: Likewise.
19624         * doc/c-strcaseeq.texi: Likewise.
19625         * doc/c-strcasestr.texi: Likewise.
19626         * doc/c-strstr.texi: Likewise.
19627         * doc/c-strtod.texi: Likewise.
19628         * doc/c-strtold.texi: Likewise.
19629         * doc/ctime.texi: Likewise.
19630         * doc/error.texi: Likewise.
19631         * doc/fdl.texi: Likewise.
19632         * doc/gcd.texi: Likewise.
19633         * doc/getdate.texi: Likewise.
19634         * doc/gnulib-intro.texi: Likewise.
19635         * doc/gnulib-tool.texi: Likewise.
19636         * doc/gnulib.texi: Likewise.
19637         * doc/inet_ntoa.texi: Likewise.
19638         * doc/maintain.texi: Likewise.
19639         * doc/make-stds.texi: Likewise.
19640         * doc/quote.texi: Likewise.
19641         * doc/regexprops-generic.texi: Likewise.
19642         * doc/standards.texi: Likewise.
19643         * doc/verify.texi: Likewise.
19644         * doc/visibility.texi: Likewise.
19645         * doc/gnulib.texi (GNU Free Documentation License): Include
19646         fdl-1.3.texi instead of fdl.texi.
19647
19648 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19649
19650         * doc/fdl-1.3.texi: New file, from
19651         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19652         * modules/fdl-1.3: Add.
19653         * MODULES.html.sh: Add fdl-1.3.
19654
19655 2008-11-03  Bruno Haible  <bruno@clisp.org>
19656
19657         Make determination of absolute name of header file work with AIX xlc.
19658         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19659         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19660         preprocessing.
19661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19662         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19663
19664 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19665
19666         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19667         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19668         <ludo@gnu.org>.
19669
19670 2008-11-02  Bruno Haible  <bruno@clisp.org>
19671
19672         Mark 'strpbrk' obsolete.
19673         * modules/strpbrk (Status, Notice): New sections.
19674         * modules/strtok_r (Depends-on): Add strpbrk.
19675
19676 2008-11-02  Bruno Haible  <bruno@clisp.org>
19677
19678         Mark 'strdup' obsolete.
19679         * modules/strdup (Status, Notice): New sections.
19680         * modules/findprog (Depends-on): Add strdup.
19681         * modules/getaddrinfo (Depends-on): Likewise.
19682         * modules/localename (Depends-on): Likewise.
19683         * modules/relocatable-lib (Depends-on): Likewise.
19684         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19685         * modules/relocatable-prog (Depends-on): Likewise.
19686         * modules/trim (Depends-on): Likewise.
19687         * modules/unictype/gen-ctype (Depends-on): Likewise.
19688         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19689
19690 2008-11-02  Bruno Haible  <bruno@clisp.org>
19691
19692         Mark 'strcspn' obsolete.
19693         * modules/strcspn (Status, Notice): New sections.
19694
19695 2008-11-02  Bruno Haible  <bruno@clisp.org>
19696
19697         Mark 'rmdir' obsolete.
19698         * modules/rmdir (Status, Notice): New sections.
19699         * modules/clean-temp (Depends-on): Add rmdir.
19700         * modules/openat (Depends-on): Likewise.
19701
19702 2008-11-02  Bruno Haible  <bruno@clisp.org>
19703
19704         Mark 'raise' obsolete.
19705         * modules/raise (Status, Notice): New sections.
19706         (Include): Specify <signal.h>.
19707         * modules/stdio (Depends-on): Add raise.
19708         * modules/write (Depends-on): Likewise.
19709
19710 2008-11-02  Bruno Haible  <bruno@clisp.org>
19711
19712         Mark 'memset' obsolete.
19713         * modules/memset (Status, Notice): New sections.
19714
19715 2008-11-02  Bruno Haible  <bruno@clisp.org>
19716
19717         Mark 'memmove' obsolete.
19718         * modules/memmove (Status, Notice): New sections.
19719         * modules/argp (Depends-on): Add memmove.
19720         * modules/argz (Depends-on): Likewise.
19721         * modules/canonicalize (Depends-on): Likewise.
19722         * modules/canonicalize-lgpl (Depends-on): Likewise.
19723         * modules/fts (Depends-on): Likewise.
19724         * modules/getcwd (Depends-on): Likewise.
19725         * modules/human (Depends-on): Likewise.
19726         * modules/regex (Depends-on): Likewise.
19727         * modules/striconveh (Depends-on): Likewise.
19728         * modules/trim (Depends-on): Likewise.
19729         * modules/unistr/u8-move (Depends-on): Likewise.
19730         * modules/unistr/u16-move (Depends-on): Likewise.
19731         * modules/unistr/u32-move (Depends-on): Likewise.
19732
19733 2008-11-02  Bruno Haible  <bruno@clisp.org>
19734
19735         Mark 'memcpy' obsolete.
19736         * modules/memcpy (Status, Notice): New sections.
19737
19738 2008-11-02  Bruno Haible  <bruno@clisp.org>
19739
19740         Mark 'memcmp' obsolete.
19741         * modules/memcmp (Status, Notice): New sections.
19742         * modules/argmatch (Depends-on): Add memchr.
19743         * modules/backupfile (Depends-on): Likewise.
19744         * modules/c-strcasestr (Depends-on): Likewise.
19745         * modules/crypto/des (Depends-on): Likewise.
19746         * modules/csharpcomp (Depends-on): Likewise.
19747         * modules/fnmatch (Depends-on): Likewise.
19748         * modules/git-merge-changelog (Depends-on): Likewise.
19749         * modules/isnand (Depends-on): Likewise.
19750         * modules/isnand-nolibm (Depends-on): Likewise.
19751         * modules/isnanf (Depends-on): Likewise.
19752         * modules/isnanf-nolibm (Depends-on): Likewise.
19753         * modules/isnanl (Depends-on): Likewise.
19754         * modules/isnanl-nolibm (Depends-on): Likewise.
19755         * modules/mbchar (Depends-on): Likewise.
19756         * modules/memcoll (Depends-on): Likewise.
19757         * modules/quotearg (Depends-on): Likewise.
19758         * modules/regex (Depends-on): Likewise.
19759         * modules/relocatable-prog (Depends-on): Likewise.
19760         * modules/same (Depends-on): Likewise.
19761         * modules/signbit (Depends-on): Likewise.
19762         * modules/strcasestr-simple (Depends-on): Likewise.
19763         * modules/unictype/gen-ctype (Depends-on): Likewise.
19764         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19765         * modules/uniname/uniname (Depends-on): Likewise.
19766         * modules/unistr/u8-cmp (Depends-on): Likewise.
19767
19768 2008-11-02  Bruno Haible  <bruno@clisp.org>
19769
19770         Mark 'memchr' obsolete.
19771         * modules/memchr (Status, Notice): New sections.
19772         * modules/argp (Depends-on): Add memchr.
19773         * modules/base64 (Depends-on): Likewise.
19774         * modules/c-strcasestr (Depends-on): Likewise.
19775         * modules/chdir-long (Depends-on): Likewise.
19776         * modules/fnmatch (Depends-on): Likewise.
19777         * modules/getsubopt (Depends-on): Likewise.
19778         * modules/git-merge-changelog (Depends-on): Likewise.
19779         * modules/glob (Depends-on): Likewise.
19780         * modules/strcasestr-simple (Depends-on): Likewise.
19781         * modules/strnlen (Depends-on): Likewise.
19782
19783 2008-11-02  Bruno Haible  <bruno@clisp.org>
19784
19785         Mark 'atexit' obsolete.
19786         * modules/atexit (Status, Notice): New sections.
19787         * modules/chdir-long (Depends-on): Add atexit.
19788         * modules/wait-process (Depends-on): Likewise.
19789
19790 2008-11-02  Bruno Haible  <bruno@clisp.org>
19791
19792         * gnulib-tool: New option --with-obsolete.
19793         (func_usage): Document it.
19794         (func_modules_transitive_closure): Drop obsolete dependencies if
19795         incobsolete is not true.
19796         (func_import): Read and save the incobsolete variable to the cache.
19797
19798 2008-11-02  Bruno Haible  <bruno@clisp.org>
19799
19800         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19801         * gnulib-tool: New option --extract-status.
19802         (func_usage): Document it.
19803         (sed_extract_prog): Recognize it.
19804         (func_get_status): New function.
19805
19806 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19807
19808         * modules/sockets (License): Change from LGPL to LGPLv2+.
19809
19810 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19811
19812         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19813
19814 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19815
19816         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19817         Mention times and sys_times.
19818         * modules/sys_times, modules/sys_times-tests: New modules.
19819         * modules/times, modules/times-tests: Likewise
19820         * m4/sys_times_h.m4: New file.
19821         * lib/sys_times.in.h: Likewise
19822         * lib/times.c: Likewise.
19823         * tests/test-sys_times.c: Likewise.
19824         * tests/test-times.c: Likewise.
19825         * doc/posix-headers/sys_times.texi: Update.
19826         * doc/posix-functions/times.texi: Update.
19827
19828 2008-10-28  Jim Meyering  <meyering@redhat.com>
19829
19830         * modules/tempname (Depends-on): Add lstat.
19831
19832         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19833
19834 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19835
19836         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19837         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19838         using idiom used elsewhere in gnulib.
19839
19840 2008-10-27  Jim Meyering  <meyering@redhat.com>
19841
19842         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19843
19844 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19845
19846         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19847         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19848         programs.
19849         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19850
19851 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19852
19853         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19854
19855 2008-10-27  Bruno Haible  <bruno@clisp.org>
19856
19857         * tests/test-lstat.c: Include <stdio.h>.
19858
19859 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19860
19861         * modules/lstat-tests: New module.
19862         * tests/test-lstat.c: New file.
19863
19864 2008-10-26  Jim Meyering  <meyering@redhat.com>
19865
19866         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19867
19868 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19869             Bruno Haible  <bruno@clisp.org>
19870
19871         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19872         * modules/configmake (Include): Add a note that the include must come
19873         after all system headers.
19874         * lib/javaversion.c: Include configmake.h after all other includes.
19875
19876 2008-10-26  Bruno Haible  <bruno@clisp.org>
19877
19878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19879         HAVE_STRUCT_RANDOM_DATA to 1.
19880         (gl_STDLIB_H): Simplify.
19881
19882 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19883
19884         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19885         substitute HAVE_STRUCT_RANDOM_DATA.
19886         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19887         random_data.
19888         * modules/stdlib (Makefile.am): Substitute
19889         HAVE_STRUCT_RANDOM_DATA.
19890
19891 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19892
19893         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19894         * doc/gnulib-intro.texi (Copyright): Likewise.
19895
19896 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19897
19898         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19899         findings.
19900
19901 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19902             Bruno Haible  <bruno@clisp.org>
19903
19904         * lib/unistd.in.h: Include <winsock2.h>.
19905         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19906         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19907         Provide dummy declarations.
19908         (gethostname): Override.
19909         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19910         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19911         gl_PREREQ_SYS_H_WINSOCK2.
19912         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19913         * doc/posix-functions/gethostname.texi: More details.
19914
19915 2008-10-25  Bruno Haible  <bruno@clisp.org>
19916
19917         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19918         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19919         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19920
19921         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19922         here ...
19923         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19924         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19925         gl_UNISTD_H_DEFAULTS.
19926
19927 2008-10-25  Eric Blake  <ebb9@byu.net>
19928
19929         signbit: avoid spurious compiler failure
19930         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19931         declarations inside function.
19932
19933 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19934             Bruno Haible  <bruno@clisp.org>
19935
19936         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19937         * modules/random_r (Depends-on): Add stdint.
19938
19939 2008-10-24  Bruno Haible  <bruno@clisp.org>
19940
19941         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19942         Eggert.
19943         * modules/strerror (License): Likewise.
19944
19945 2008-10-24  Jim Meyering  <meyering@redhat.com>
19946
19947         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19948         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19949
19950 2008-10-24  Eric Blake  <ebb9@byu.net>
19951
19952         getgroups: fix compilation when getgroups is available
19953         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19954         but with <config.h> override of getgroups disabled.
19955
19956 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19957
19958         * doc/gnulib.texi (Header files): Add note about C++ problems.
19959         Explained by Bruno Haible <bruno@clisp.org>.
19960
19961 2008-10-23  Bruno Haible  <bruno@clisp.org>
19962
19963         Define a dummy SA_NODEFER macro on Interix.
19964         * lib/signal.in.h (SA_NODEFER): Define fallback.
19965         Reported by Aleksey Cheusov <cheusov@tut.by> via
19966         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19967
19968 2008-10-23  Bruno Haible  <bruno@clisp.org>
19969
19970         * modules/freadahead (License): Change to LGPLv2+.
19971         Suggested by Simon Josefsson.
19972
19973 2008-10-23  Jim Meyering  <meyering@redhat.com>
19974
19975         random_r: new module
19976         * modules/random_r: New file.
19977         * m4/random_r.m4: New file.
19978         * lib/random_r.c: New file, from glibc.
19979         * modules/random_r-tests: New file.
19980         * tests/test-random_r.c: New file.
19981         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19982          Declare.
19983         (RAND_MAX): Define.
19984         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19985         * modules/stdlib: Substitute them, too.
19986         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19987         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19988         * doc/glibc-functions/random_r.texi: Likewise.
19989         * doc/glibc-functions/setstate_r.texi: Likewise.
19990         * doc/glibc-functions/srandom_r.texi: Likewise.
19991         * config/srclist.txt: Mention it.
19992
19993 2008-10-23  David Lutterkort  <lutter@redhat.com>
19994
19995         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19996         link requirement
19997
19998 2008-10-23  Jim Meyering  <meyering@redhat.com>
19999
20000         selinux-h: mark parameters of stub functions as intentionally unused
20001         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20002         * lib/se-context.in.h: Likewise.
20003
20004 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20005
20006         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20007
20008 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20009
20010         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20011
20012 2008-10-22  Eric Blake  <ebb9@byu.net>
20013
20014         glthread/thread: avoid compiler warning
20015         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20016         Add unreachable abort to silence compiler.
20017
20018 2008-10-22  Eric Blake  <ebb9@byu.net>
20019
20020         netdb: also supply struct addrinfo for cygwin 1.5.x
20021         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20022         older cygwin.
20023         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20024         cygwin.
20025         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20026
20027 2008-10-22  Bruno Haible  <bruno@clisp.org>
20028
20029         * users.txt: Update entry about pspp.
20030
20031 2008-10-21  Bruno Haible  <bruno@clisp.org>
20032
20033         Simplification.
20034         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20035         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20036
20037         Simplification.
20038         * lib/ioctl.c (ioctl): Don't undefine.
20039         * lib/socket.c (socket): Don't undefine.
20040
20041         Remove unused module indicator macros.
20042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20043         GNULIB_$1 as a C macro.
20044
20045         * doc/posix-functions/close.texi: Undo last change.
20046         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20047         Windows platforms.
20048
20049 2008-10-21  Bruno Haible  <bruno@clisp.org>
20050
20051         Add gethostname() declaration to <unistd.h>.
20052         * lib/unistd.in.h (gethostname): New declaration.
20053         * lib/gethostname.c: Include <unistd.h>.
20054         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20055         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20057         and HAVE_GETHOSTNAME.
20058         * modules/gethostname (Depends-on): Add unistd.
20059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20060         (Include): Specify <unistd.h>.
20061         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20062         HAVE_GETHOSTNAME.
20063         * tests/test-gethostname.c: Include <unistd.h> first.
20064
20065 2008-10-21  Bruno Haible  <bruno@clisp.org>
20066
20067         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20068         * modules/select-tests (Depends-on): Likewise.
20069         Reported by Simon Josefsson.
20070
20071 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20072
20073         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20074         * lib/accept.c: New file, based on winsock.c.
20075         * lib/bind.c: New file, based on winsock.c.
20076         * lib/connect.c: New file, based on winsock.c.
20077         * lib/getpeername.c: New file, based on winsock.c.
20078         * lib/getsockname.c: New file, based on winsock.c.
20079         * lib/getsockopt.c: New file, based on winsock.c.
20080         * lib/ioctl.c: New file, based on winsock.c.
20081         * lib/listen.c: New file, based on winsock.c.
20082         * lib/recv.c: New file, based on winsock.c.
20083         * lib/recvfrom.c: New file, based on winsock.c.
20084         * lib/send.c: New file, based on winsock.c.
20085         * lib/sendto.c: New file, based on winsock.c.
20086         * lib/setsockopt.c: New file, based on winsock.c.
20087         * lib/shutdown.c: New file, based on winsock.c.
20088         * lib/socket.c: New file, based on winsock.c.
20089         * lib/w32sock.h: New file, based on winsock.c.
20090         * lib/winsock.c: Remove file.
20091         * modules/accept: Likewise.
20092         * modules/bind: Likewise.
20093         * modules/connect: Likewise.
20094         * modules/getpeername: Likewise.
20095         * modules/getsockname: Likewise.
20096         * modules/getsockopt: Likewise.
20097         * modules/ioctl: Likewise.
20098         * modules/listen: Likewise.
20099         * modules/recv: Likewise.
20100         * modules/recvfrom: Likewise.
20101         * modules/send: Likewise.
20102         * modules/sendto: Likewise.
20103         * modules/setsockopt: Likewise.
20104         * modules/shutdown: Likewise.
20105         * modules/socket: Use socket.c instead of winsock.c.
20106         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20107         * doc/posix-functions/accept.texi: Doc fix.
20108         * doc/posix-functions/bind.texi: Doc fix.
20109         * doc/posix-functions/close.texi: Doc fix.
20110         * doc/posix-functions/connect.texi: Doc fix.
20111         * doc/posix-functions/getpeername.texi: Doc fix.
20112         * doc/posix-functions/getsockname.texi: Doc fix.
20113         * doc/posix-functions/getsockopt.texi: Doc fix.
20114         * doc/posix-functions/ioctl.texi: Doc fix.
20115         * doc/posix-functions/listen.texi: Doc fix.
20116         * doc/posix-functions/recv.texi: Doc fix.
20117         * doc/posix-functions/recvfrom.texi: Doc fix.
20118         * doc/posix-functions/send.texi: Doc fix.
20119         * doc/posix-functions/sendto.texi: Doc fix.
20120         * doc/posix-functions/setsockopt.texi: Doc fix.
20121         * doc/posix-functions/shutdown.texi: Doc fix.
20122         * doc/posix-functions/socket.texi: Doc fix.
20123
20124 2008-10-20  Bruno Haible  <bruno@clisp.org>
20125
20126         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20127         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20128         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20129         as an alias for SIGABRT.
20130         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20131         (sigaction): Map it to SIGABRT.
20132         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20133
20134 2008-10-20  Bruno Haible  <bruno@clisp.org>
20135
20136         * lib/fts.c: Don't include lstat.h.
20137         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20138
20139         Move the lstat() declaration to <sys/stat.h>.
20140         * lib/lstat.h: Remove file.
20141         * lib/sys_stat.in.h: Add special invocation convention.
20142         (lstat): New declaration.
20143         * lib/lstat.c (orig_lstat): New function.
20144         (rpl_lstat): Use orig_lstat instead of lstat.
20145         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20146         AC_C_INLINE. Set REPLACE_LSTAT.
20147         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20148         and REPLACE_LSTAT.
20149         * modules/lstat (Files): Remove lib/lstat.h.
20150         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20151         (Include): Specify <sys/stat.h> instead of lstat.h.
20152         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20153         REPLACE_LSTAT.
20154         * NEWS: Mention the change.
20155
20156 2008-10-20  Bruno Haible  <bruno@clisp.org>
20157
20158         * modules/posix_spawn-tests: New file.
20159         * tests/test-posix_spawn3.c: New file.
20160
20161 2008-10-20  Bruno Haible  <bruno@clisp.org>
20162
20163         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20164         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20165         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20166         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20167         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20168
20169 2008-10-20  Bruno Haible  <bruno@clisp.org>
20170
20171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20172         of posix_spawn on AIX 5.3.
20173
20174 2008-10-20  Bruno Haible  <bruno@clisp.org>
20175
20176         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20177
20178 2008-10-20  Bruno Haible  <bruno@clisp.org>
20179
20180         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20181         of AC_LANG_PROGRAM.
20182
20183 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20184
20185         * lib/netdb.in.h: Don't define GNU specific constants until they
20186         are supported or needed.  Reported by Bruno Haible
20187         <bruno@clisp.org>.
20188
20189 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20190
20191         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20192
20193 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20194
20195         * lib/getaddrinfo.h: Remove file.
20196         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20197         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20198         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20199         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20200         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20201         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20202         * tests/test-getaddrinfo.c: Likewise.
20203         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20204         * NEWS: Mention change.
20205
20206 2008-10-19  Bruno Haible  <bruno@clisp.org>
20207
20208         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20209
20210 2008-10-19  Bruno Haible  <bruno@clisp.org>
20211
20212         * lib/wait-process.c: Include simply <sys/wait.h>.
20213         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20214         WIFSTOPPED): Remove fallback definitions.
20215         * modules/wait-process (Depends-on): Add sys_wait.
20216
20217         New module 'sys_wait'.
20218         * modules/sys_wait: New file.
20219         * lib/sys_wait.in.h: New file, partially copied from
20220         lib/wait-process.c.
20221         * m4/sys_wait_h.m4: New file.
20222         * doc/posix-headers/sys_wait.texi: Mention the new module.
20223
20224 2008-10-19  Bruno Haible  <bruno@clisp.org>
20225
20226         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20227
20228 2008-10-19  Bruno Haible  <bruno@clisp.org>
20229
20230         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20231         * lib/wait-process.c (WAIT_T): Remove type.
20232         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20233         (wait_subprocess): Update.
20234
20235 2008-10-19  Bruno Haible  <bruno@clisp.org>
20236
20237         New module 'atoll'.
20238         * modules/atoll: New file.
20239         * lib/stdlib.in.h (atoll): New declaration.
20240         * lib/atoll.c: New file, from glibc with modifications.
20241         * m4/atoll.m4: New file.
20242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20243         HAVE_ATOLL.
20244         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20245         * doc/posix-functions/atoll.texi: Mention the new module.
20246
20247 2008-10-19  Bruno Haible  <bruno@clisp.org>
20248
20249         Add strtoull() declaration to <stdlib.h>.
20250         * lib/stdlib.in.h (strtoull): New declaration.
20251         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20252         Set HAVE_STRTOULL.
20253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20254         HAVE_STRTOULL.
20255         * modules/strtoull (Depends-on): Add stdlib.
20256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20257         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20258         HAVE_STRTOULL.
20259
20260 2008-10-19  Bruno Haible  <bruno@clisp.org>
20261
20262         Add strtoll() declaration to <stdlib.h>.
20263         * lib/stdlib.in.h (strtoll): New declaration.
20264         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20265         Set HAVE_STRTOLL.
20266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20267         HAVE_STRTOLL.
20268         * modules/strtoll (Depends-on): Add stdlib.
20269         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20270         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20271
20272 2008-10-19  Bruno Haible  <bruno@clisp.org>
20273
20274         * modules/bcopy (Depends-on): Add strings.
20275         (Include): Specify <strings.h>.
20276
20277 2008-10-19  Bruno Haible  <bruno@clisp.org>
20278
20279         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20280
20281 2008-10-19  Bruno Haible  <bruno@clisp.org>
20282
20283         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20284         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20285         mingw.
20286
20287 2008-10-19  Bruno Haible  <bruno@clisp.org>
20288
20289         * lib/atanl.c: Don't include isnanl.h.
20290         * lib/cosl.c: Likewise.
20291         * lib/ldexpl.c: Likewise.
20292         * lib/logl.c: Likewise.
20293         * lib/sinl.c: Likewise.
20294         * lib/sqrtl.c: Likewise.
20295         * lib/tanl.c: Likewise.
20296
20297         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20298         * lib/isnanf.h: Remove file.
20299         * lib/isnand.h: Remove file.
20300         * lib/isnanl.h: Remove file.
20301         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20302         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20303         macros.
20304         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20305         HAVE_ISNANF, don't define it as a C macro.
20306         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20307         HAVE_ISNAND, don't define it as a C macro.
20308         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20309         HAVE_ISNANL, don't define it as a C macro.
20310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20311         HAVE_ISNAN[FDL].
20312         * modules/isnanf (Files): Remove lib/isnanf.h.
20313         (Depends-on): Add math.
20314         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20315         (Include): Specify <math.h> instead of isnanf.h.
20316         * modules/isnand (Files): Remove lib/isnand.h.
20317         (Depends-on): Add math.
20318         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20319         (Include): Specify <math.h> instead of isnand.h.
20320         * modules/isnanl (Files): Remove lib/isnanl.h.
20321         (Depends-on): Add math.
20322         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20323         (Include): Specify <math.h> instead of isnanl.h.
20324         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20325         HAVE_ISNAN[FDL].
20326         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20327         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20328         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20329         * NEWS: Mention the change.
20330
20331 2008-10-18  Bruno Haible  <bruno@clisp.org>
20332
20333         Add getusershell(), setusershell(), endusershell() declarations to
20334         <unistd.h>.
20335         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20336         declarations.
20337         * lib/getusershell.c: Include unistd.h.
20338         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20339         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20340         HAVE_GETUSERSHELL.
20341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20342         and HAVE_GETUSERSHELL.
20343         * modules/getusershell (Depends-on): Add unistd, extensions.
20344         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20345         (Include): Specify <unistd.h>.
20346         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20347         HAVE_GETUSERSHELL.
20348
20349 2008-10-18  Bruno Haible  <bruno@clisp.org>
20350
20351         Add a getloadavg() declaration to <stdlib.h>.
20352         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20353         getloadavg declaration.
20354         (getloadavg): New declaration.
20355         * lib/getloadavg.c: Include <stdlib.h> first.
20356         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20357         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20358         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20360         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20361         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20362         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20363         (Include): Specify <stdlib.h>.
20364         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20365         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20366
20367 2008-10-18  Bruno Haible  <bruno@clisp.org>
20368
20369         * lib/dirchownmod.c: Don't include lchmod.h.
20370
20371         Move the lchmod() declaration to <sys/stat.h>.
20372         * lib/lchmod.h: Remove file.
20373         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20374         (lchmod): New declaration, moved here from lib/lchown.h.
20375         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20376         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20378         and HAVE_LCHMOD.
20379         * modules/lchmod (Files): Remove lib/lchmod.h.
20380         (Depends-on): Add sys_stat, extensions.
20381         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20382         (Include): Specify <sys/stat.h> instead of lchmod.h.
20383         * modules/sys_stat (Depends-on): Add link-warning.
20384         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20385         definition of GL_LINK_WARNING.
20386         * NEWS: Mention the change.
20387
20388 2008-10-18  Bruno Haible  <bruno@clisp.org>
20389
20390         * lib/fchdir.c: Don't include dirfd.h.
20391         * lib/fts.c: Likewise.
20392         * lib/getcwd.c: Likewise.
20393         * lib/glob.c: Likewise.
20394
20395         Move the dirfd() declaration to <dirent.h>.
20396         * lib/dirfd.h: Remove file.
20397         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20398         (dirfd): New declaration.
20399         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20400         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20401         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20402         HAVE_DECL_DIRFD.
20403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20404         HAVE_DECL_DIRFD.
20405         * modules/dirfd (Files): Remove lib/dirfd.h.
20406         (Depends-on): Add dirent, extensions.
20407         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20408         (Include): Specify <dirent.h> instead of dirfd.h.
20409         * modules/dirent (Depends-on): Add link-warning.
20410         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20411         definition of GL_LINK_WARNING.
20412         * NEWS: Mention the change.
20413
20414 2008-10-18  Bruno Haible  <bruno@clisp.org>
20415
20416         Move the euidaccess() declaration to <unistd.h>.
20417         * lib/euidaccess.h: Remove file.
20418         * lib/unistd.in.h (euidaccess): New declaration.
20419         * lib/euidaccess.c: Don't include euidaccess.h.
20420         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20421         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20423         and HAVE_EUIDACCESS.
20424         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20425         (Depends-on): Add unistd.
20426         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20427         (Include): Specify <unistd.h> instead of euidaccess.h.
20428         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20429         HAVE_EUIDACCESS.
20430         * NEWS: Mention the change.
20431
20432 2008-10-18  Bruno Haible  <bruno@clisp.org>
20433
20434         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20435
20436         Move the getdomainname() declaration to <unistd.h>.
20437         * lib/getdomainname.h: Remove file.
20438         * lib/unistd.in.h (getdomainname): New declaration.
20439         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20440         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20441         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20442         HAVE_GETDOMAINNAME.
20443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20444         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20445         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20446         (Depends-on): Add unistd, extensions.
20447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20448         (Includes): Specify <unistd.h> instead of getdomainname.h.
20449         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20450         HAVE_GETDOMAINNAME.
20451         * NEWS: Mention the change.
20452
20453 2008-10-18  Bruno Haible  <bruno@clisp.org>
20454
20455         * modules/dirent: New file.
20456         * m4/dirent_h.m4: New file.
20457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20458         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20459         * modules/fchdir (Files): Remove lib/dirent.in.h.
20460         (Depends-on): Add dirent.
20461         (Makefile.am): Move rules to modules/dirent.
20462         * doc/posix-headers/dirent.texi: Mention the new module.
20463
20464 2008-10-18  Bruno Haible  <bruno@clisp.org>
20465
20466         Avoid -Wunused-parameter warnings in public gnulib header files.
20467         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20468         macro.
20469         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20470
20471 2008-10-18  Bruno Haible  <bruno@clisp.org>
20472
20473         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20474         * doc/glibc-functions/error.texi: Mention the module 'error'.
20475         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20476         * doc/glibc-functions/getdomainname.texi: Mention the module
20477         'getdomainname'.
20478         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20479         * doc/glibc-functions/getpagesize.texi: Mention the module
20480         'getpagesize'.
20481         * doc/glibc-functions/getusershell.texi: Mention the module
20482         'getusershell'.
20483         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20484         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20485         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20486         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20487         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20488         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20489         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20490         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20491         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20492         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20493         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20494         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20495         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20496         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20497
20498 2008-10-17  Bruno Haible  <bruno@clisp.org>
20499
20500         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20501         HP-UX and IRIX, use -0.0L.
20502         * tests/test-ceill.c (minus_zero): Likewise.
20503         * tests/test-floorl.c (minus_zero): Likewise.
20504         * tests/test-frexpl.c (minus_zero): Likewise.
20505         * tests/test-isnan.c (minus_zerol): Likewise.
20506         * tests/test-isnanl.h (minus_zero): Likewise.
20507         * tests/test-ldexpl.c (minus_zero): Likewise.
20508         * tests/test-roundl.c (minus_zero): Likewise.
20509         * tests/test-signbit.c (minus_zerol): Likewise.
20510         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20511         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20512         * tests/test-truncl.c (minus_zero): Likewise.
20513         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20514         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20515         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20516         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20517
20518 2008-10-17  Bruno Haible  <bruno@clisp.org>
20519
20520         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20521         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20522         that it gets activated only for gcc >= 3.0.
20523         * lib/dirent.in.h: Likewise.
20524         * lib/errno.in.h: Likewise.
20525         * lib/fcntl.in.h: Likewise.
20526         * lib/float.in.h: Likewise.
20527         * lib/iconv.in.h: Likewise.
20528         * lib/inttypes.in.h: Likewise.
20529         * lib/locale.in.h: Likewise.
20530         * lib/math.in.h: Likewise.
20531         * lib/netdb.in.h: Likewise.
20532         * lib/netinet_in.in.h: Likewise.
20533         * lib/search.in.h: Likewise.
20534         * lib/signal.in.h: Likewise.
20535         * lib/spawn.in.h: Likewise.
20536         * lib/stdarg.in.h: Likewise.
20537         * lib/stdint.in.h: Likewise.
20538         * lib/stdio.in.h: Likewise.
20539         * lib/stdlib.in.h: Likewise.
20540         * lib/string.in.h: Likewise.
20541         * lib/strings.in.h: Likewise.
20542         * lib/sys_file.in.h: Likewise.
20543         * lib/sys_ioctl.in.h: Likewise.
20544         * lib/sys_select.in.h: Likewise.
20545         * lib/sys_socket.in.h: Likewise.
20546         * lib/sys_stat.in.h: Likewise.
20547         * lib/sys_time.in.h: Likewise.
20548         * lib/sysexits.in.h: Likewise.
20549         * lib/time.in.h: Likewise.
20550         * lib/unistd.in.h: Likewise.
20551         * lib/wchar.in.h: Likewise.
20552         * lib/wctype.in.h: Likewise.
20553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20554
20555 2008-10-17  Jim Meyering  <meyering@redhat.com>
20556
20557         ignore-value: don't depend on inline module
20558         * modules/ignore-value (Depends-on): Remove 'inline'.
20559         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20560         Suggestion from Bruno Haible.
20561
20562 2008-10-17  Bruno Haible  <bruno@clisp.org>
20563
20564         New implementation of condition variables for Win32.
20565         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20566         (gl_linked_waitqueue_t): New type.
20567         (gl_cond_t): Use it.
20568         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20569         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20570         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20571         (glthread_cond_init_func, glthread_cond_wait_func,
20572         glthread_cond_timedwait_func, glthread_cond_signal_func,
20573         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20574         Reimplemented on the basis of gl_linked_waitqueue_t.
20575         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20576         gl_waitqueue_t.
20577         (gl_rwlock_t): Update.
20578         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20579
20580 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20581
20582         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20583         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20584
20585 2008-10-17  Jim Meyering  <meyering@redhat.com>
20586
20587         ignore-value: new module
20588         * modules/ignore-value: New file.
20589         * lib/ignore-value.h: New file.
20590         * MODULES.html.sh (Compiler warning management): New section,
20591         just for this module.  More to come.
20592
20593 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20594
20595         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20596         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20597         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20598
20599 2008-10-16  Jim Meyering  <meyering@redhat.com>
20600
20601         openat-die.c: avoid 'no previous prototype' warning
20602         * lib/openat-die.c: Include "openat.h".
20603         Reported by Reuben Thomas <rrt@sc3d.org>.
20604
20605 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20606
20607         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20608         * lib/netdb.in.h: Fix typo.
20609         Reported by Bruno Haible  <bruno@clisp.org>
20610
20611         * lib/netdb.in.h: Include sys/socket.h for platforms without
20612         netdb.h, to get structures like hostent on MinGW.
20613         * modules/netdb (Depends-on): Add sys_socket.
20614
20615 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20616
20617         * modules/netdb, modules/netdb-tests: New file.
20618         * m4/netdb_h.m4: New file.
20619         * lib/netdb.in.h: Add, currently just an empty file pending
20620         definitions.
20621         * tests/test-netdb.c: New file.
20622         * doc/posix-headers/netdb.texi: Mention that we replace it if
20623         needed.
20624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20625         netdb.
20626
20627 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20628
20629         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20630         with code.
20631
20632 2008-10-13  Bruno Haible  <bruno@clisp.org>
20633
20634         * lib/glthread/cond.c (glthread_cond_wait_func,
20635         glthread_cond_timedwait_func): Add a comment.
20636
20637 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20638
20639         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20640         * tests/test-select.c: Likewise,
20641
20642 2008-10-13  Bruno Haible  <bruno@clisp.org>
20643
20644         * lib/glthread/cond.c (glthread_cond_wait_func,
20645         glthread_cond_timedwait_func): Fix variable name.
20646         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20647
20648 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20649
20650         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20652         struct sockaddr.sa_len.
20653         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20654
20655 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20656
20657         * build-aux/pmccabe2html: Add css and css_url parameters.
20658
20659 2008-10-12  Bruno Haible  <bruno@clisp.org>
20660
20661         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20662         calling aclx_get.
20663         Reported by Rainer Tammer <tammer@tammer.net>.
20664
20665 2008-10-12  Bruno Haible  <bruno@clisp.org>
20666
20667         Use msvcrt aware primitives for creation/termination of Win32 threads.
20668         * lib/glthread/thread.c: Include <process.h>.
20669         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20670         (wrapper_func): Update signature.
20671         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20672
20673 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20674             Bruno Haible  <bruno@clisp.org>
20675
20676         Provide a Win32 implementation of the 'cond' module.
20677         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20678         * lib/glthread/cond.c (glthread_cond_init_func,
20679         glthread_cond_wait_func, glthread_cond_timedwait_func,
20680         glthread_cond_signal_func, glthread_cond_broadcast_func,
20681         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20682         * modules/cond (Dependencies): Add gettimeofday.
20683
20684 2008-10-11  Bruno Haible  <bruno@clisp.org>
20685
20686         Make sleep work on older versions of mingw.
20687         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20688         only whether it exists.
20689         * doc/posix-functions/sleep.texi: Mention the problem with older
20690         versions of mingw.
20691
20692 2008-10-11  Bruno Haible  <bruno@clisp.org>
20693
20694         New module 'shutdown'.
20695         * modules/shutdown: New file.
20696         * lib/sys_socket.in.h (shutdown): New declaration.
20697         * lib/winsock.c (shutdown): New function.
20698         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20699         GNULIB_SHUTDOWN.
20700         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20701         * doc/posix-functions/shutdown.texi: Document the new module.
20702
20703 2008-10-11  Jim Meyering  <meyering@redhat.com>
20704
20705         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20706
20707 2008-10-11  Bruno Haible  <bruno@clisp.org>
20708
20709         New module 'fclose'.
20710         * modules/fclose: New file.
20711         * lib/stdio.in.h (fclose): New declaration.
20712         * lib/fclose.c: New file.
20713         * m4/fclose.m4: New file.
20714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20715         REPLACE_FCLOSE.
20716         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20717         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20718         REPLACE_FCLOSE.
20719         * modules/close (Depends-on): fclose.
20720         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20721
20722 2008-10-11  Bruno Haible  <bruno@clisp.org>
20723
20724         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20725         set errno and don't call _close.
20726
20727 2008-10-10  Bruno Haible  <bruno@clisp.org>
20728
20729         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20730         ACL, not afterwards. Fixes test failure on Cygwin.
20731
20732 2008-10-09  Ben Pfaff  <blp@gnu.org>
20733
20734         * build-aux/announce-gen: Fix gnulib version related part of usage
20735         message.  Die with a useful error message if no tarballs are
20736         found.
20737
20738 2008-10-10  Jim Meyering  <meyering@redhat.com>
20739
20740         bootstrap: use git's --depth=N option only if it's supported
20741         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20742         recognize the --depth option.  Reported by Pádraig Brady.
20743
20744 2008-10-09  Bruno Haible  <bruno@clisp.org>
20745
20746         New module 'ioctl'.
20747         * modules/ioctl: New file.
20748         * lib/sys_socket.in.h (ioctl): Remove declaration.
20749         * lib/winsock.c: Include <sys/ioctl.h>.
20750         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20751         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20752         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20753         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20754         * doc/posix-functions/ioctl.texi: Mention the new module.
20755
20756 2008-10-09  Bruno Haible  <bruno@clisp.org>
20757
20758         New module 'sys_ioctl'.
20759         * lib/sys_ioctl.in.h: New file.
20760         * m4/sys_ioctl_h.m4: New file.
20761         * modules/sys_ioctl: New file.
20762         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20763
20764 2008-10-09  Bruno Haible  <bruno@clisp.org>
20765
20766         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20767         * lib/winsock.c: Include <stdarg.h>.
20768         (rpl_ioctl): Change to second argument 'int' and then varargs.
20769
20770 2008-10-09  Bruno Haible  <bruno@clisp.org>
20771
20772         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20773         when the sys_socket module is present and the system has <winsock2.h>.
20774
20775 2008-10-09  Bruno Haible  <bruno@clisp.org>
20776
20777         * doc/posix-functions/close.texi: Mention module 'close' instead of
20778         module 'sys_socket'.
20779
20780 2008-10-09  Bruno Haible  <bruno@clisp.org>
20781
20782         * doc/glibc-headers/sys_ioctl.texi: New file.
20783         * doc/gnulib.texi: Include it.
20784
20785 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20786             Bruno Haible  <bruno@clisp.org>
20787
20788         Combine the two replacements of 'close'.
20789         * lib/sys_socket.in.h (close): Define to a reminder to include
20790         <unistd.h>.
20791         (_gl_close_fd_maybe_socket): New declaration.
20792         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20793         * lib/winsock.c (close): Remove undefinition.
20794         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20795         needed for the gnulib module 'close'.
20796         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20797         define to an error symbol or to a warning, if suitable.
20798         * lib/close.c: Include <sys/socket.h>.
20799         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20801         UNISTD_H_HAVE_WINSOCK2_H.
20802         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20804         UNISTD_H_HAVE_WINSOCK2_H.
20805         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20806         (configure.ac): Set a module indicator.
20807         (Makefile.am): Substitute GNULIB_CLOSE.
20808         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20809         * modules/poll-tests (Depends-on): Add close.
20810         * modules/select-tests (Depends-on): Likewise.
20811
20812 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20813             Bruno Haible  <bruno@clisp.org>
20814
20815         New module 'close'.
20816         * modules/close: New file.
20817         * lib/unistd.in.h (close): Move declaration out of the
20818         FCHDIR_REPLACEMENT scope.
20819         (_gl_unregister_fd): New declaration.
20820         * lib/close.c: New file.
20821         * lib/fchdir.c (rpl_close): Remove function.
20822         * m4/close.m4: New file.
20823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20824         close.
20825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20826         REPLACE_CLOSE.
20827         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20828         REPLACE_CLOSE.
20829         * modules/fchdir (Depends-on): Add close.
20830
20831 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20832             Bruno Haible  <bruno@clisp.org>
20833
20834         * lib/fcntl.in.h (open): Simplify conditionals.
20835         (_gl_register_fd): New declaration.
20836         * lib/fchdir.c (rpl_open): Remove function.
20837         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20838         also.
20839         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20841         open.
20842
20843 2008-10-09  Jim Meyering  <meyering@redhat.com>
20844
20845         GNUmakefile: use the more name-space-friendly "_version"
20846         * top/GNUmakefile (_dummy): Update.
20847         (_version): Rename from "version".
20848
20849 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20850             Bruno Haible  <bruno@clisp.org>
20851
20852         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20853         rpl_close.
20854         (_gl_register_fd): New function, extracted from rpl_open.
20855         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20856         (rpl_open, rpl_opendir): Use _gl_register_fd.
20857
20858 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20859
20860         Fix organization of 'open' replacement.
20861         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20862         (gl_FUNC_OPEN): Use it.
20863         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20864
20865 2008-10-08  Bruno Haible  <bruno@clisp.org>
20866
20867         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20868
20869 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20870
20871         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20872         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20873         listen).
20874
20875 2008-10-08  Eric Blake  <ebb9@byu.net>
20876
20877         GNUmakefile: add 'make version' target
20878         * top/GNUmakefile (_curr-ver): Split version update rules...
20879         (version): ...into a target.
20880
20881 2008-10-07  Bruno Haible  <bruno@clisp.org>
20882
20883         Use a more portable replacement expression for -0.0L.
20884         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20885         instead of -0.0L. Fix m4 quotation.
20886
20887         * tests/test-signbit.c: Include <float.h>.
20888         (minus_zero): New variable.
20889         (test_signbitl): Use minus_zero instead of -zero.
20890         * modules/signbit-tests (Depends-on): Add float.
20891
20892         * tests/test-ceill.c: Include <float.h>.
20893         (zero): Remove variable.
20894         (minus_zero): New variable.
20895         (main): Use minus_zero instead of -zero.
20896         * modules/ceill-tests (Depends-on): Add float.
20897
20898         * tests/test-floorl.c: Include <float.h>.
20899         (zero): Remove variable.
20900         (minus_zero): New variable.
20901         (main): Use minus_zero instead of -zero.
20902         * modules/floorl-tests (Depends-on): Add float.
20903
20904         * tests/test-roundl.c: Include <float.h>.
20905         (zero): Remove variable.
20906         (minus_zero): New variable.
20907         (main): Use minus_zero instead of -zero.
20908         * modules/roundl-tests (Depends-on): Add float.
20909
20910         * tests/test-truncl.c: Include <float.h>.
20911         (zero): Remove variable.
20912         (minus_zero): New variable.
20913         (main): Use minus_zero instead of -zero.
20914         * modules/truncl-tests (Depends-on): Add float.
20915
20916         * tests/test-frexpl.c (zero): Remove variable.
20917         (minus_zero): New variable.
20918         (main): Use minus_zero instead of -zero.
20919         * modules/frexpl-tests (Depends-on): Add float.
20920
20921         * tests/test-isnan.c (zerol): Remove variable.
20922         (minus_zerol): New variable.
20923         (test_long_double): Use minus_zerol instead of -zerol.
20924         * modules/isnan-tests (Depends-on): Add float.
20925
20926         * tests/test-isnanl.h (zero): Remove variable.
20927         (minus_zero): New variable.
20928         (main): Use minus_zero instead of -zero.
20929         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20930         * modules/isnanl-tests (Depends-on): Add float.
20931
20932         * tests/test-ldexpl.c (zero): Remove variable.
20933         (minus_zero): New variable.
20934         (main): Use minus_zero instead of -zero.
20935         * modules/ldexpl-tests (Depends-on): Add float.
20936
20937         * tests/test-snprintf-posix.h (zerol): Remove variable.
20938         (minus_zerol): New variable.
20939         (test_function): Use minus_zerol instead of -zerol.
20940         * modules/snprintf-posix-tests (Depends-on): Add float.
20941         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20942
20943         * tests/test-sprintf-posix.h (zerol): Remove variable.
20944         (minus_zerol): New variable.
20945         (test_function): Use minus_zerol instead of -zerol.
20946         * modules/sprintf-posix-tests (Depends-on): Add float.
20947         * modules/vsprintf-posix-tests (Depends-on): Add float.
20948
20949         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20950         (minus_zerol): New variable.
20951         (test_function): Use minus_zerol instead of -zerol.
20952         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20953
20954         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20955         (minus_zerol): New variable.
20956         (test_function): Use minus_zerol instead of -zerol.
20957         * modules/vasprintf-posix-tests (Depends-on): Add float.
20958
20959 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20960
20961         * MODULES.html.sh (Support for building documentation): Mention
20962         pmccabe2html.  Sort entries.
20963
20964         Add pmccabe2html module, from gnupdf.
20965         * build-aux/pmccabe.css: New file.
20966         * build-aux/pmccabe2html: New file.
20967         * m4/pmccabe2html.m4: New file.
20968         * modules/pmccabe2html: New file.
20969
20970 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20971
20972         flock: new module
20973         * MODULES.html.sh: Add to list of modules.
20974         * lib/flock.c: flock implementation for Windows and Unix systems
20975         which have fcntl.
20976         * doc/glibc-functions/flock.texi: Update documentation.
20977         * lib/sys_file.in.h: <sys/file.h> header file.
20978         * m4/flock.m4: M4 macros.
20979         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20980         * modules/flock: flock module.
20981         * modules/flock-tests: flock tests module.
20982         * modules/sys_file: sys/file.h module.
20983         * tests/test-flock.c: test suite for flock.
20984
20985 2008-10-06  Jim Meyering  <meyering@redhat.com>
20986
20987         bootstrap: check for LT_INIT more portably still ;-)
20988         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20989         Spotted by Bruno Haible.
20990
20991 2008-10-06  Eric Blake  <ebb9@byu.net>
20992
20993         test-signbit: avoid tripping Irix cc bug on -0.0L
20994         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20995         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20996         entire testsuite consistent and avoids an Irix 6.2 bug.
20997
20998 2008-10-05  Bruno Haible  <bruno@clisp.org>
20999             Jim Meyering  <jim@meyering.net>
21000
21001         Add an option for ignoring EPIPE during close_stdout.
21002         * lib/closeout.h: Include <stdbool.h>.
21003         (close_stdout_set_ignore_EPIPE): New declaration.
21004         * lib/closeout.c: Include <stdbool.h>.
21005         (ignore_EPIPE): New variable.
21006         (close_stdout_set_ignore_EPIPE): New function.
21007         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21008         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21009         failure.
21010         * modules/closeout (Depends-on): Add stdbool.
21011
21012 2008-10-05  Bruno Haible  <bruno@clisp.org>
21013
21014         * modules/accept: New file.
21015         * modules/bind: New file.
21016         * modules/connect: New file.
21017         * modules/getpeername: New file.
21018         * modules/getsockname: New file.
21019         * modules/getsockopt: New file.
21020         * modules/listen: New file.
21021         * modules/recv: New file.
21022         * modules/recvfrom: New file.
21023         * modules/send: New file.
21024         * modules/sendto: New file.
21025         * modules/setsockopt: New file.
21026         * modules/socket: New file.
21027         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21028         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21029         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21030         the particular module is requested. Add a link warning when the
21031         particular module is not requested.
21032         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21033         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21034         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21035         the particular module is requested.
21036         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21037         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21038         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21039         * modules/sys_socket (Depends-on): Add link-warning.
21040         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21041         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21042         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21043         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21044         GL_LINK_WARNING.
21045         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21046         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21047         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21048         * doc/posix-functions/getpeername.texi: Mention the new module
21049         'getpeername'.
21050         * doc/posix-functions/getsockname.texi: Mention the new module
21051         'getsockname'.
21052         * doc/posix-functions/getsockopt.texi: Mention the new module
21053         'getsockopt'.
21054         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21055         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21056         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21057         * doc/posix-functions/send.texi: Mention the new module 'send'.
21058         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21059         * doc/posix-functions/setsockopt.texi: Mention the new module
21060         'setsockopt'.
21061         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21062         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21063         listen, connect, accept.
21064         * modules/select-tests (Depends-on): Likewise.
21065
21066 2008-10-05  Bruno Haible  <bruno@clisp.org>
21067
21068         * lib/winsock.c (strerror): Remove unused #undef.
21069         (rpl_close): Remove unused local variable.
21070
21071         * modules/sys_socket (Depends-on); Add errno.
21072
21073 2008-10-05  Bruno Haible  <bruno@clisp.org>
21074
21075         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21076         (select): Add a link warning when the 'select' module is not used.
21077         * modules/sys_select (Depends-on): Add link-warning.
21078         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21079         Suggested by Paolo Bonzini.
21080
21081 2008-10-05  Jim Meyering  <meyering@redhat.com>
21082
21083         bootstrap: check for LT_INIT more portably
21084         * build-aux/bootstrap: Avoid using grep -E, since it's not
21085         portable enough.  Suggestion from Bruno Haible.
21086
21087 2008-10-05  Bruno Haible  <bruno@clisp.org>
21088
21089         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21090         as being fixed by gnulib.
21091
21092 2008-10-05  Bruno Haible  <bruno@clisp.org>
21093
21094         * modules/select-tests: New file, mostly copied from
21095         modules/sys_select-tests.
21096         * tests/test-select.c: New file, mostly copied from
21097         tests/test-sys_select.c.
21098         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21099         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21100         (Makefile.am): Remove test_sys_select_LDADD.
21101
21102         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21103         to an undefined symbol, for an error message.
21104         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21105         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21106         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21107         winsock-select.c here.
21108         * modules/sys_select (Files): Remove lib/winsock-select.c.
21109         (Depends-on): Remove alloca.
21110         (Makefile.am): Substitute GNULIB_SELECT.
21111         * modules/select: New file.
21112         * doc/posix-functions/select.texi: Update.
21113
21114 2008-10-05  Bruno Haible  <bruno@clisp.org>
21115
21116         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21117         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21118         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21119         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21120         getdtablesize.
21121         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21122         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21123
21124 2008-10-05  Bruno Haible  <bruno@clisp.org>
21125
21126         * modules/getdtablesize-tests: New file.
21127         * tests/test-getdtablesize.c: New file.
21128
21129         New module 'getdtablesize'.
21130         * lib/unistd.in.h (getdtablesize): New declaration.
21131         * lib/getdtablesize.c: New file.
21132         * m4/getdtablesize.m4: New file.
21133         * modules/getdtablesize: New file.
21134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21135         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21136         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21137         HAVE_GETDTABLESIZE.
21138         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21139
21140 2008-10-05  Bruno Haible  <bruno@clisp.org>
21141
21142         * modules/sched (Makefile.am): Fix typo.
21143         Reported by Simon Josefsson.
21144
21145 2008-10-05  Jim Meyering  <meyering@redhat.com>
21146
21147         bootstrap: check for LT_INIT, too
21148         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21149         are deprecated.  Suggestion from Ralf Wildenhues.
21150
21151 2008-10-05  Bruno Haible  <bruno@clisp.org>
21152
21153         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21154         overriding them by ours.
21155         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21156
21157 2008-10-05  Jim Meyering  <meyering@redhat.com>
21158
21159         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21160         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21161         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21162
21163 2008-10-04  Bruno Haible  <bruno@clisp.org>
21164
21165         * modules/dup2 (License): Change to LGPLv2+.
21166         * modules/sleep (License): Likewise.
21167         * modules/perror (License): Likewise.
21168         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21169         Blake.
21170         * modules/signal (License): Likewise.
21171         * modules/sigprocmask (License): Likewise.
21172         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21173         Meyering.
21174
21175 2008-10-04  Bruno Haible  <bruno@clisp.org>
21176
21177         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21178         Reported by Rainer Tammer <tammer@tammer.net>.
21179
21180 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21181             Bruno Haible  <bruno@clisp.org>
21182
21183         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21184         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21185         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21186
21187 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21188
21189         filevercmp: new module
21190         * lib/filevercmp.h: New function filevercmp comparing version strings.
21191         * lib/filevercmp.c: Implementation of filevercmp function.
21192         * modules/filevercmp: Module metadata.
21193         * tests/test-filevercmp.c: Unit test for new module.
21194         * modules/filevercmp-tests: Unit test metadata.
21195         * MODULES.html.sh: Add filevercmp module.
21196
21197 2008-10-03  Bruno Haible  <bruno@clisp.org>
21198
21199         * lib/c-ctype.h: Add comment.
21200         Reported by Jim Meyering.
21201
21202 2008-10-02  Bruno Haible  <bruno@clisp.org>
21203
21204         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21205
21206 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21207
21208         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21209         name of bootstrap.conf accordingly.
21210
21211 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21212
21213         * build-aux/bootstrap: Install git-merge-changelog configuration
21214         items into .gitconfig if needed.
21215
21216 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21217
21218         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21219         git repository, and initialize/update it accordingly.
21220
21221 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21222
21223         * modules/fsync-tests: New file.
21224         * tests/test-fsync.c: New file.
21225
21226         New module 'fsync'.
21227         * lib/fsync.c: New file.
21228         * m4/fsync.m4: New file.
21229         * modules/fsync: New file.
21230         * lib/unistd.in.h (fsync): New declaration.
21231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21232         GNULIB_FSYNC and HAVE_FSYNC.
21233         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21234         * MODULES.html.sh (posix_functions): Add fsync.
21235         * doc/posix-functions/fsync.texi: Mention the new module.
21236
21237 2008-10-02  Jim Meyering  <meyering@redhat.com>
21238
21239         fts.c: sync with similar code from coreutils' remove.c
21240         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21241         Guard also with "#if defined __linux__", since for now at least,
21242         this code is Linux-kernel-specific.
21243
21244 2008-10-02  Jim Meyering  <meyering@redhat.com>
21245
21246         fts: bug fixes
21247         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21248         Include <sys/vfs.h>, not <sys/statfs.h>.
21249
21250         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21251         Include <sys/vfs.h>, not <sys/statfs.h>.
21252
21253 2008-10-01  Bruno Haible  <bruno@clisp.org>
21254
21255         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21256         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21257         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21258         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21259         * doc/posix-functions/posix_spawnp.texi: Likewise.
21260         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21261         whether posix_spawn actually works.
21262         * m4/pipe.m4 (gl_PIPE): Likewise.
21263         * modules/execute (Files): Add m4/posix_spawn.m4.
21264         * modules/pipe (Files): Add m4/posix_spawn.m4.
21265         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21266
21267 2008-10-01  Jim Meyering  <meyering@redhat.com>
21268
21269         remove trailing spaces
21270         * NEWS: Likewise.
21271         * lib/poll.c (poll): Likewise.
21272         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21273         * lib/winsock.c (rpl_close): Likewise.
21274         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21275         * modules/yield: Likewise.
21276         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21277         * tests/test-sys_select.c (connect_to_socket): Likewise.
21278
21279         fts.c: adjust a new interface to be more generally useful
21280         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21281         (fts_build): Adjust caller.
21282
21283 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21284
21285         * modules/cond-tests: New file.
21286         * tests/test-cond.c: New file.
21287
21288 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21289             Bruno Haible  <bruno@clisp.org>
21290
21291         * modules/cond (Dependencies): Add errno, time.
21292         * lib/glthread/cond.h: Include <time.h>.
21293         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21294         across platforms.
21295
21296 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21297             Bruno Haible  <bruno@clisp.org>
21298
21299         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21300
21301 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21302             Bruno Haible  <bruno@clisp.org>
21303
21304         * modules/tls-tests (Depends-on): Add thread, yield.
21305         (configure.ac): Remove all checks.
21306         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21307         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21308         gl_thread_self): Remove definitions. Include glthread/thread.h and
21309         glthread/yield.h instead.
21310         (test_tls): Pass an additional NULL argument to gl_thread_join.
21311
21312 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21313             Bruno Haible  <bruno@clisp.org>
21314
21315         * modules/lock-tests (Depends-on): Add thread, yield.
21316         (configure.ac): Remove all checks.
21317         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21318         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21319         gl_thread_self): Remove definitions. Include glthread/thread.h and
21320         glthread/yield.h instead.
21321         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21322         additional NULL argument to gl_thread_join.
21323
21324 2008-09-30  Bruno Haible  <bruno@clisp.org>
21325
21326         Fix the Win32 implementation of the 'thread' module.
21327         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21328         pointer type.
21329         (gl_thread_self): Invoke gl_thread_self_func.
21330         (gl_thread_self_func): New declaration.
21331         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21332         (do_init_self_key, init_self_key): New functions.
21333         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21334         Remove some fields.
21335         (running_threads, running_lock): Remove variables.
21336         (get_current_thread_handle): New function.
21337         (gl_thread_self_func, wrapper_func, glthread_create_func,
21338         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21339         simplified.
21340
21341 2008-09-30  Bruno Haible  <bruno@clisp.org>
21342
21343         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21344         files.
21345
21346 2008-09-30  Jim Meyering  <meyering@redhat.com>
21347
21348         fts.m4: correct the test for statfs.f_type
21349         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21350         when checking for statfs.f_type.
21351
21352 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21353
21354         tests: avoid some compiler warnings
21355         * tests/test-memchr.c (main): Pass NULL indirectly.
21356         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21357
21358 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21359
21360         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21361         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21362         exactly specified dayshifts.
21363         (dayshift): New rule.
21364         (rel): Add dayshift.
21365         (relative_time_table) [tomorrow, yesterday, today, now]:
21366         Use tDAY_SHIFT in place of tDAY_UNIT.
21367         * tests/test-getdate.c: Add tests for now-disallowed countable
21368         dayshifts, e.g., "4 yesterday ago".
21369
21370 2008-09-29  Bruno Haible  <bruno@clisp.org>
21371
21372         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21373         * tests/test-posix_spawn1.in.sh: Renamed from
21374         tests/test-posix_spawn.in.sh.
21375         * tests/test-posix_spawn2.c: New file.
21376         * tests/test-posix_spawn2.in.sh: New file.
21377         * modules/posix_spawnp-tests (Files): Update.
21378         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21379
21380 2008-09-29  Bruno Haible  <bruno@clisp.org>
21381
21382         Propagate effects of putenv/setenv/unsetenv to child processes.
21383         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21384         * lib/pipe.c (create_pipe): Likewise.
21385
21386 2008-09-29  Bruno Haible  <bruno@clisp.org>
21387
21388         Enable use of shell scripts as executables in mingw.
21389         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21390         run the program as a shell script.
21391         * lib/pipe.c (create_pipe): Likewise.
21392         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21393         resulting array.
21394
21395 2008-09-29  Eric Blake  <ebb9@byu.net>
21396
21397         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21398
21399 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21400
21401         * doc/posix-functions/accept.texi: Update mingw problems.
21402         * doc/posix-functions/bind.texi: Update mingw problems.
21403         * doc/posix-functions/close.texi: Update mingw problems.
21404         * doc/posix-functions/connect.texi: Update mingw problems.
21405         * doc/posix-functions/getpeername.texi: Update mingw problems.
21406         * doc/posix-functions/getsockname.texi: Update mingw problems.
21407         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21408         * doc/posix-functions/ioctl.texi: Update mingw problems.
21409         * doc/posix-functions/listen.texi: Update mingw problems.
21410         * doc/posix-functions/recv.texi: Update mingw problems.
21411         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21412         * doc/posix-functions/select.texi: Update mingw problems.
21413         * doc/posix-functions/send.texi: Update mingw problems.
21414         * doc/posix-functions/sendto.texi: Update mingw problems.
21415         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21416         * doc/posix-functions/socket.texi: Update mingw problems.
21417
21418 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21419             Bruno Haible  <bruno@clisp.org>
21420
21421         * lib/sys_select.in.h: Include sys/time.h.
21422         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21423         * modules/sys_select: Depend on sys_time.
21424         * tests/test-sys_select.c: Test that sys/select.h defines struct
21425         timeval fully.
21426
21427 2008-09-29  Bruno Haible  <bruno@clisp.org>
21428
21429         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21430         * lib/sys_select.in.h: Likewise.
21431
21432 2008-09-29  Bruno Haible  <bruno@clisp.org>
21433
21434         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21435
21436 2008-09-29  Bruno Haible  <bruno@clisp.org>
21437
21438         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21439         Set LIBSOCKET instead of augmenting LIBS.
21440         * modules/sockets (Link): New section.
21441         * modules/sockets-tests (test_sockets_LDADD): New variable.
21442         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21443         * modules/poll-tests (test_poll_LDADD): New variable.
21444         * NEWS: Document the change.
21445
21446 2008-09-29  Bruno Haible  <bruno@clisp.org>
21447
21448         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21449         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21450         ARPA_INET_H directly.
21451         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21452
21453 2008-09-28  Bruno Haible  <bruno@clisp.org>
21454
21455         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21456         from gl_HEADER_SYS_SOCKET.
21457         (gl_HEADER_SYS_SOCKET): Invoke it.
21458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21459
21460 2008-09-28  Bruno Haible  <bruno@clisp.org>
21461
21462         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21463         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21464         Needed on OSF/1 4.0.
21465
21466 2008-09-28  Bruno Haible  <bruno@clisp.org>
21467
21468         Override open more carefully.
21469         * lib/open.c (orig_open): New function.
21470         (rpl_open): Use orig_open instead of open.
21471         * lib/fcntl.in.h: Add special invocation convention.
21472         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21473         (gl_FUNC_OPEN): Invoke it.
21474
21475         Override freopen more carefully.
21476         * lib/freopen.c (orig_freopen): New function.
21477         (rpl_freopen): Use orig_freopen instead of freopen.
21478         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21479         (gl_FUNC_FREOPEN): Invoke it.
21480
21481         Override fopen more carefully.
21482         * lib/fopen.c (orig_fopen): New function.
21483         (rpl_fopen): Use orig_fopen instead of fopen.
21484         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21485         (gl_FUNC_FOPEN): Invoke it.
21486         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21487
21488 2008-09-28  Bruno Haible  <bruno@clisp.org>
21489
21490         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21491         SIGPIPE.
21492
21493 2008-09-28  Bruno Haible  <bruno@clisp.org>
21494
21495         * tests/test-sigaction.c (handler, main): Disable the check whether
21496         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21497         glibc systems with LinuxThreads.
21498
21499 2008-09-28  Bruno Haible  <bruno@clisp.org>
21500
21501         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21502
21503         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21504         with AIX xlc.
21505         * lib/fcntl.in.h (open): Likewise.
21506         Reported by Rainer Tammer <tammer@tammer.net>.
21507
21508 2008-09-28  Bruno Haible  <bruno@clisp.org>
21509
21510         * modules/posix_spawnp-tests: New file.
21511         * tests/test-posix_spawn.c: New file.
21512         * tests/test-posix_spawn.in.sh: New file.
21513
21514         New module 'posix_spawnp'.
21515         * modules/posix_spawnp: New file.
21516         * lib/spawnp.c: New file, from GNU libc with modifications.
21517         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21518
21519         New module 'posix_spawn'.
21520         * modules/posix_spawn: New file.
21521         * lib/spawn.c: New file, from GNU libc with modifications.
21522         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21523
21524         New module 'posix_spawnattr_destroy'.
21525         * modules/posix_spawnattr_destroy: New file.
21526         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21527         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21528         module.
21529
21530         New module 'posix_spawnattr_setsigmask'.
21531         * modules/posix_spawnattr_setsigmask: New file.
21532         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21533         modifications.
21534         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21535         new module.
21536
21537         New module 'posix_spawnattr_getsigmask'.
21538         * modules/posix_spawnattr_getsigmask: New file.
21539         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21540         modifications.
21541         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21542         new module.
21543
21544         New module 'posix_spawnattr_setsigdefault'.
21545         * modules/posix_spawnattr_setsigdefault: New file.
21546         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21547         modifications.
21548         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21549         new module.
21550
21551         New module 'posix_spawnattr_getsigdefault'.
21552         * modules/posix_spawnattr_getsigdefault: New file.
21553         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21554         modifications.
21555         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21556         new module.
21557
21558         New module 'posix_spawnattr_setschedpolicy'.
21559         * modules/posix_spawnattr_setschedpolicy: New file.
21560         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21561         modifications.
21562         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21563         new module.
21564
21565         New module 'posix_spawnattr_getschedpolicy'.
21566         * modules/posix_spawnattr_getschedpolicy: New file.
21567         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21568         modifications.
21569         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21570         new module.
21571
21572         New module 'posix_spawnattr_setschedparam'.
21573         * modules/posix_spawnattr_setschedparam: New file.
21574         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21575         modifications.
21576         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21577         new module.
21578
21579         New module 'posix_spawnattr_getschedparam'.
21580         * modules/posix_spawnattr_getschedparam: New file.
21581         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21582         modifications.
21583         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21584         new module.
21585
21586         New module 'posix_spawnattr_setpgroup'.
21587         * modules/posix_spawnattr_setpgroup: New file.
21588         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21589         modifications.
21590         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21591         module.
21592
21593         New module 'posix_spawnattr_getpgroup'.
21594         * modules/posix_spawnattr_getpgroup: New file.
21595         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21596         modifications.
21597         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21598         module.
21599
21600         New module 'posix_spawnattr_setflags'.
21601         * modules/posix_spawnattr_setflags: New file.
21602         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21603         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21604         module.
21605
21606         New module 'posix_spawnattr_getflags'.
21607         * modules/posix_spawnattr_getflags: New file.
21608         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21609         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21610         module.
21611
21612         New module 'posix_spawnattr_init'.
21613         * modules/posix_spawnattr_init: New file.
21614         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21615         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21616         module.
21617
21618         New module 'posix_spawn_file_actions_destroy'.
21619         * modules/posix_spawn_file_actions_destroy: New file.
21620         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21621         modifications.
21622         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21623         the new module.
21624
21625         New module 'posix_spawn_file_actions_addopen'.
21626         * modules/posix_spawn_file_actions_addopen: New file.
21627         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21628         modifications.
21629         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21630         the new module.
21631
21632         New module 'posix_spawn_file_actions_adddup2'.
21633         * modules/posix_spawn_file_actions_adddup2: New file.
21634         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21635         modifications.
21636         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21637         the new module.
21638
21639         New module 'posix_spawn_file_actions_addclose'.
21640         * modules/posix_spawn_file_actions_addclose: New file.
21641         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21642         modifications.
21643         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21644         the new module.
21645
21646         New module 'posix_spawn_file_actions_init'.
21647         * modules/posix_spawn_file_actions_init: New file.
21648         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21649         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21650         new module.
21651
21652         New module 'posix_spawn-internal'.
21653         * modules/posix_spawn-internal: New file.
21654         * lib/spawn_int.h: New file, from GNU libc with modifications.
21655         * lib/spawni.c: New file, from GNU libc with modifications.
21656         * m4/posix_spawn.m4: New file.
21657
21658         New module 'spawn'.
21659         * modules/spawn: New file.
21660         * lib/spawn.in.h: New file, from GNU libc with modifications.
21661         * m4/spawn_h.m4: New file.
21662         * doc/posix-headers/spawn.texi: Mention the new module.
21663
21664 2008-09-28  Bruno Haible  <bruno@clisp.org>
21665
21666         * modules/sched-tests: New file.
21667         * tests/test-sched.c: New file.
21668
21669         New module 'sched'.
21670         * modules/sched: New file.
21671         * lib/sched.in.h: New file.
21672         * m4/sched_h.m4: New file.
21673         * doc/posix-headers/sched.texi: Mention the new module.
21674
21675 2008-09-27  Eric Blake  <ebb9@byu.net>
21676
21677         Fix previous patch, and tweak references to $0.
21678         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21679         (func_version, func_gnulib_dir): Don't call this program
21680         gnulib-tool.
21681         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21682         with using $0 in function.
21683         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21684         (func_fatal_error): Reuse the name the user invoked us with.
21685
21686 2008-09-27  Bruno Haible  <bruno@clisp.org>
21687
21688         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21689         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21690         (gl_ICONV_H): Not here.
21691         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21692         instead of assigning ICONV_H directly.
21693
21694         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21696         WCHAR_H directly.
21697
21698 2008-09-27  Bruno Haible  <bruno@clisp.org>
21699
21700         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21701         * modules/arpa_inet (Depends-on): Add link-warning.
21702         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21703         * modules/unistd (Makefile.am): Likewise.
21704
21705 2008-09-26  Bruno Haible  <bruno@clisp.org>
21706
21707         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21708         variables.
21709         (func_version): Essentially copied from gnulib-tool.
21710         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21711         func_readlink): Copied from gnulib-tool.
21712
21713 2008-09-26  Bruno Haible  <bruno@clisp.org>
21714
21715         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21716         invoking git-version-gen.
21717
21718 2008-09-26  Bruno Haible  <bruno@clisp.org>
21719
21720         * posix-modules: Update to directory names changed on 2008-01-19.
21721         Remove commas in output before splitting into words. No more need to
21722         avoid 'ftruncate' since 2007-02-19.
21723
21724 2008-09-26  Bruno Haible  <bruno@clisp.org>
21725
21726         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21727
21728 2008-09-26  Bruno Haible  <bruno@clisp.org>
21729
21730         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21731         * modules/fwriteerror (Depends-on): Add errno.
21732
21733 2008-09-26  Bruno Haible  <bruno@clisp.org>
21734
21735         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21736         * tests/test-vc-list-files-cvs.sh: Likewise.
21737
21738 2008-09-26  Bruno Haible  <bruno@clisp.org>
21739
21740         * doc/posix-headers/sys_resource.texi: Reorder items.
21741
21742 2008-09-26  Jim Meyering  <meyering@redhat.com>
21743
21744         fts: tweak inode comparison function
21745         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21746         inode numbers, as documented.
21747
21748         fts: sort dirent entries on inode number before traversing
21749         This avoids a quadratic, seek-related performance penalty when
21750         operating on a directory containing many entries (measurable at 10k;
21751         3.5 hours at 2 million entries with a cold cache) on certain types
21752         of file systems, including ext3 and ext4, but not tmpfs.
21753         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21754         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21755         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21756         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21757         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21758         (fts_build): Set the stat.st_ino member from D_INO.
21759         If it is likely to be useful, sort dirent entries on inode number.
21760
21761         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21762         and the struct statfs.f_type member.
21763         * modules/fts (Depends-on): Add d-ino.
21764
21765 2008-09-26  Bruno Haible  <bruno@clisp.org>
21766
21767         * modules/sigpipe-die (Depends-on): Add sigpipe.
21768
21769         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21770         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21771         and GNULIB_STDIO_H_SIGPIPE are set.
21772         * lib/stdio-write.c: New file.
21773         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21774         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21775         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21776         REPLACE_STDIO_WRITE_FUNCS.
21777         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21778         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21779         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21780         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21781         * modules/stdio (Files): Add lib/stdio-write.c.
21782         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21783         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21784         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21785         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21786         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21787         REPLACE_FPRINTF_POSIX.
21788         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21789         REPLACE_PRINTF_POSIX.
21790         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21791         REPLACE_VFPRINTF_POSIX.
21792         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21793         REPLACE_VPRINTF_POSIX.
21794         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21795         SIGPIPE issue.
21796         * doc/posix-functions/fputc.texi: Likewise.
21797         * doc/posix-functions/fputs.texi: Likewise.
21798         * doc/posix-functions/fwrite.texi: Likewise.
21799         * doc/posix-functions/printf.texi: Likewise.
21800         * doc/posix-functions/putc.texi: Likewise.
21801         * doc/posix-functions/putchar.texi: Likewise.
21802         * doc/posix-functions/puts.texi: Likewise.
21803         * doc/posix-functions/vfprintf.texi: Likewise.
21804         * doc/posix-functions/vprintf.texi: Likewise.
21805
21806         * modules/safe-write (Depends-on): Add write.
21807
21808         * modules/sigpipe-tests: New file.
21809         * tests/test-sigpipe.c: New file.
21810         * tests/test-sigpipe.sh: New file.
21811
21812         * modules/write: New file.
21813         * lib/unistd.in.h: Include <sys/types.h>.
21814         (write): New declaration.
21815         * lib/write.c: New file.
21816         * m4/write.m4: New file.
21817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21818         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21819         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21820         GNULIB_WRITE, REPLACE_WRITE.
21821         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21822         and the SIGPIPE issue.
21823
21824         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21825         (raise): New declaration.
21826         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21827         (ext_signal): New function.
21828         (rpl_raise): New function.
21829         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21830         GNULIB_SIGNAL_H_SIGPIPE.
21831         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21832         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21833
21834         * modules/sigpipe: New file.
21835         * m4/sigpipe.m4: New file.
21836
21837 2008-09-25  Derek Price  <derek@ximbiot.com>
21838             Bruno Haible  <bruno@clisp.org>
21839
21840         * gnulib-tool (func_import): Report all license incompatibilities, not
21841         just the first one.
21842
21843 2008-09-25  Bruno Haible  <bruno@clisp.org>
21844
21845         * gnulib-tool (func_import): When computing the edits, consider not
21846         only the Makefile.ams that exist but also those that will be generated.
21847
21848 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21849
21850         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21851         fixes gnulib-tool --test warning about duplicate dependency.
21852
21853 2008-09-25  Bruno Haible  <bruno@clisp.org>
21854
21855         * gnulib-tool: Don't ask the user to perform edits in the generated
21856         Makefile.ams.
21857         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21858         apply to the Makefile.am being generated.
21859         (func_emit_tests_Makefile_am): Execute edits that apply to the
21860         Makefile.am being generated.
21861         (func_import): Setup list of Makefile.am edits before emitting the
21862         Makefile.ams, not at the end.
21863         (func_create_testdir): Update.
21864         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21865
21866 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21867
21868         * gnulib-tool (func_import): Store the --tests-base option in the
21869         comment in gnulib-cache.m4.
21870
21871 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21872
21873         * NEWS: Document increased portability that sys_select now provides.
21874
21875         * lib/sys_select.in.h: Install select wrapper.
21876         * lib/sys_socket.in.h: Use more descriptive name when there is no
21877         select wrapper.
21878         * lib/winsock-select.c: New.
21879         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21880         Require gl_HEADER_SYS_SOCKET.
21881         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21882         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21883         * tests/test-sys_select.c: Add functional tests.
21884
21885 2008-09-24  Eric Blake  <ebb9@byu.net>
21886
21887         open, fopen: close fd leak in last patch
21888         * lib/open.c (rpl_open): Close fd before returning error.
21889         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21890         * doc/posix-functions/open.texi (open): Document that Irix also
21891         has the bug.
21892         * doc/posix-functions/fopen.texi (fopen): Likewise.
21893         Reported by Paolo Bonzini.
21894
21895 2008-09-24  Bruno Haible  <bruno@clisp.org>
21896
21897         Ensure that a filename ending in a slash cannot be used to access a
21898         non-directory.
21899         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21900         to check whether it's really a directory.
21901         * lib/fopen.c: Include fcntl.h, unistd.h.
21902         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21903         and fdopen().
21904         * modules/fopen (Depends-on): Add unistd.
21905         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21906         * tests/test-fopen.c (main): Likewise.
21907         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21908         * doc/posix-functions/fopen.texi: Likewise.
21909         Reported by Eric Blake.
21910
21911 2008-09-23  Eric Blake  <ebb9@byu.net>
21912
21913         c-stack: avoid compiler optimizations when provoking overflow
21914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21915         recursion harder to optimize, to ensure a stack overflow occurs.
21916         * tests/test-c-stack.c (recurse): Likewise.
21917         Borrowed from libsigsegv.
21918
21919         c-stack: work around Irix sigaltstack bug
21920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21921         whether sigaltstack uses wrong end of stack_t (copied in part from
21922         libsigsegv).
21923         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21924         Irix bug, without requiring an over-allocation.
21925         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21926         bug.
21927
21928         fopen: document mingw bug on directories
21929         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21930         not allowing a stream visiting a directory, even though reading
21931         from such a stream is not portable.
21932
21933 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21934
21935         * lib/poll.c: Rewrite.
21936         * modules/poll: Depend on alloca.
21937
21938 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21939
21940         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21941         instead define prototypes for a full set of wrappers.  Ensure
21942         that Cygwin does not use the compatibility code, which is only
21943         for MinGW.
21944         * lib/winsock.c: New.
21945         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21946         * modules/sys_socket: Add lib/winsock.c.
21947
21948         * modules/poll-tests: Add errno and perror.
21949         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21950
21951 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21952
21953         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21954
21955 2008-09-23  Bruno Haible  <bruno@clisp.org>
21956
21957         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21958         * doc/glibc-functions/*: Likewise.
21959
21960 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21961
21962         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21963         success.
21964
21965 2008-09-22  Eric Blake  <ebb9@byu.net>
21966             Bruno Haible  <bruno@clisp.org>
21967
21968         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21969         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21970         supply %A but mishandle pseudo-NaN.
21971         Reported by Simon Josefsson.
21972
21973 2008-09-21  Bruno Haible  <bruno@clisp.org>
21974
21975         * tests/test-lock.c (main): Tweak skip message.
21976         * tests/test-tls.c (main): Likewise.
21977
21978 2008-09-21  Bruno Haible  <bruno@clisp.org>
21979
21980         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21981         whether 'struct sigaction' has sa_sigaction here...
21982         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21983         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21984
21985 2008-09-21  Bruno Haible  <bruno@clisp.org>
21986
21987         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21988         section.
21989         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21990         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21991         the new section.
21992         (Support for obsolete systems lacking POSIX:2001): New section.
21993         (String handling <string.h>): Move strdup to the new section.
21994         Suggested by Simon Josefsson and Paolo Bonzini.
21995
21996 2008-09-21  Bruno Haible  <bruno@clisp.org>
21997
21998         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21999         exponents in %e and %g results on 'long double'. Needed for mingw's
22000         improved *printf functions.
22001         * tests/test-vasprintf-posix.c (test_function): Likewise.
22002         * tests/test-snprintf-posix.h (test_function): Likewise.
22003         * tests/test-sprintf-posix.h (test_function): Likewise.
22004         Reported by Eric Blake.
22005
22006 2008-09-21  Bruno Haible  <bruno@clisp.org>
22007
22008         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22009         * tests/test-sprintf-posix.h (test_function): Likewise.
22010
22011 2008-09-21  Bruno Haible  <bruno@clisp.org>
22012
22013         * modules/getpass (Depends-on): Add strdup-posix.
22014
22015         New module 'strdup-posix'.
22016         * modules/strdup-posix: New file.
22017         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22018         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22020         REPLACE_STRDUP.
22021         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22022         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22024         strdup-posix.
22025
22026         * modules/strdup (Depends-on): Remove malloc-posix.
22027
22028 2008-09-20  Bruno Haible  <bruno@clisp.org>
22029
22030         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22031         Wildenhues.
22032
22033 2008-09-20  Bruno Haible  <bruno@clisp.org>
22034
22035         Ensure that wint_t gets defined on IRIX 5.3.
22036         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22037         * lib/wctype.in.h (wint_t): Likewise.
22038         (__wctype_wint_t): Remove type.
22039         (isw*): Use wint_t instead of __wctype_wint_t.
22040         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22041         * modules/wchar (Files): Add m4/wint_t.m4.
22042         (Makefile.am): Substitute HAVE_WINT_T.
22043         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22044         * tests/test-wctype.c: Check that wint_t is defined.
22045         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22046         * doc/posix-headers/wctype.texi: Likewise.
22047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22048
22049 2008-09-18  Bruno Haible  <bruno@clisp.org>
22050
22051         * gnulib-tool (func_exit): Update comment.
22052
22053 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22054
22055         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22056         assumes strdup exists and does not depend on strdup to return
22057         ENOMEM on out of memory conditions.
22058
22059 2008-09-18  Bruno Haible  <bruno@clisp.org>
22060
22061         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22062         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22063         digits for the exponent.
22064
22065 2008-09-18  Jim Meyering  <meyering@redhat.com>
22066             Bruno Haible  <bruno@clisp.org>
22067
22068         * lib/vasnprintf.c (decimal_point_char): Define also if
22069         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22070
22071 2008-09-16  Bruno Haible  <bruno@clisp.org>
22072         and Eric Blake  <ebb9@byu.net>
22073
22074         vasnprintf: support Irix 5.3
22075         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22076         that mishandle long double infinity.
22077         Reported by Tom G. Christensen.
22078
22079 2008-09-16  Bruno Haible  <bruno@clisp.org>
22080
22081         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22082         Solaris 9.
22083         * doc/glibc-functions/alphasort.texi: Likewise.
22084         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22085
22086 2008-09-16  Jim Meyering  <meyering@redhat.com>
22087
22088         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22089         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22090         a umask modification leak out of a subshell.  Otherwise, the
22091         opensolaris /bin/sh would be accepted and thus cause unwarranted
22092         failures in the coreutils test suite.
22093
22094 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22095
22096         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22097         to succeed.
22098
22099 2008-09-16  Jim Meyering  <meyering@redhat.com>
22100
22101         avoid spurious test failure when library is built without ACL support
22102         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22103         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22104         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22105         * tests/test-copy-acl.sh: Likewise.
22106
22107 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22108
22109         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22110         based on character occurrence counts.
22111
22112 2008-09-15  Eric Blake  <ebb9@byu.net>
22113
22114         tests: avoid some compiler warnings
22115         * tests/test-memchr.c (main): Pass NULL indirectly.
22116         * tests/test-closein.c (main): Avoid unused variable.
22117
22118 2008-09-15  Bruno Haible  <bruno@clisp.org>
22119
22120         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22121         are missing on OpenBSD 4.0 individually.
22122         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22123
22124 2008-09-15  Bruno Haible  <bruno@clisp.org>
22125
22126         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22127         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22128         * doc/posix-functions/perror.texi: Likewise.
22129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22130         is missing.
22131         Reported by Eric Blake.
22132
22133         * lib/errno.in.h: Use replacement values >= 2000.
22134         Reported by Eric Blake.
22135
22136 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22137
22138         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22139         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22140         limit.
22141         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22142         compareseq was aborted.
22143
22144 2008-09-14  Bruno Haible  <bruno@clisp.org>
22145
22146         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22147         yvec_edit_count.
22148         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22149         (fstrcmp_bounded): Simplify result computation accordingly.
22150
22151 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22152
22153         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22154         (fstrcmp): Define in terms of fstrcmp_bounded.
22155         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22156         lower_bound argument.
22157         Return quickly if the result is certainly < lower_bound.
22158         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22159
22160 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22161
22162         * lib/diffseq.h (EARLY_ABORT): New macro.
22163         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22164         evaluates to true.
22165
22166 2008-09-14  Bruno Haible  <bruno@clisp.org>
22167
22168         * modules/perror-tests: New file.
22169         * tests/test-perror.sh: New file.
22170         * tests/test-perror.c: New file.
22171
22172         New module 'perror'.
22173         * lib/stdio.in.h (perror): New declaration.
22174         * lib/perror.c: New file.
22175         * m4/perror.m4: New file.
22176         * modules/perror: New file.
22177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22178         * doc/posix-functions/perror.texi: Mention the perror module.
22179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22180         REPLACE_PERROR.
22181         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22182         REPLACE_PERROR.
22183
22184 2008-09-14  Bruno Haible  <bruno@clisp.org>
22185
22186         * modules/stdio (Makefile.am): Reorder to match the order in
22187         lib/stdio.in.h.
22188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22189
22190 2008-09-13  Bruno Haible  <bruno@clisp.org>
22191
22192         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22193
22194 2008-09-13  Bruno Haible  <bruno@clisp.org>
22195
22196         Extend strerror to cover the added errno values.
22197         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22198         (rpl_strerror): Provide error messages for the added errno values and
22199         for the WSA* values.
22200         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22201         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22202         strerror.
22203         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22204         * modules/strerror (Depends-on): Add errno.
22205         * doc/posix-functions/strerror.texi: Document the change.
22206         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22207         and EOVERFLOW.
22208
22209 2008-09-13  Bruno Haible  <bruno@clisp.org>
22210
22211         * modules/EOVERFLOW: Remove file.
22212         * m4/eoverflow.m4: Remove file.
22213         * modules/EOVERFLOW-tests: Remove file.
22214         * tests/test-EOVERFLOW.c: Remove file.
22215         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22216         * modules/ftell (Depends-on): Likewise.
22217         * modules/getdelim (Depends-on): Likewise.
22218         * modules/getugroups (Depends-on): Likewise.
22219         * modules/poll (Depends-on): Likewise.
22220         * modules/snprintf (Depends-on): Likewise.
22221         * modules/sprintf-posix (Depends-on): Likewise.
22222         * modules/vasnprintf (Depends-on): Likewise.
22223         * modules/vasprintf (Depends-on): Likewise.
22224         * modules/vfprintf-posix (Depends-on): Likewise.
22225         * modules/vsnprintf (Depends-on): Likewise.
22226         * modules/vsprintf-posix (Depends-on): Likewise.
22227         * modules/xvasprintf (Depends-on): Likewise.
22228         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22229         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22230         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22231         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22233         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22234         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22235         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22236         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22237         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22238         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22239         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22241         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22242         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22243         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22244         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22245         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22246         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22247         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22248         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22249         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22250         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22251         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22252         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22253         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22254         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22255         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22256         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22257         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22258         * MODULES.html.sh: Remove EOVERFLOW.
22259         * NEWS: Mention the change.
22260
22261 2008-09-13  Bruno Haible  <bruno@clisp.org>
22262
22263         * modules/errno-tests: New file.
22264         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22265
22266         * lib/errno.in.h: New file.
22267         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22268         * modules/errno: New file.
22269         * doc/posix-headers/errno.texi: Update documentation.
22270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22271
22272 2008-09-13  Bruno Haible  <bruno@clisp.org>
22273
22274         * tests/test-poll.c: Use #if for native Windows, rather than testing
22275         __MSVCRT__.
22276
22277 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22278             Bruno Haible  <bruno@clisp.org>
22279
22280         * lib/glob.c: Don't include <pwd.h> on native Windows.
22281         (WINDOWS32): New macro.
22282         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22283
22284 2008-09-13  Bruno Haible  <bruno@clisp.org>
22285
22286         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22287         (ETIMEDOUT): Remove macro.
22288         (glthread_cond_timedwait_multithreaded): New declaration.
22289         (glthread_cond_timedwait): Use it.
22290         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22291         (glthread_cond_timedwait_multithreaded): New function.
22292
22293 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22294
22295         * modules/poll-tests: Do not check for io.h.
22296         * tests/test-poll.c: Check for __MSVCRT__ instead.
22297
22298 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22299
22300         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22301         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22302         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22303
22304 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22305
22306         * modules/poll-tests: New.
22307         * tests/test-poll.c: New.
22308
22309 2008-09-12  Eric Blake  <ebb9@byu.net>
22310
22311         frexp: test for NetBSD failure on -0.0
22312         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22313         not all, bugs from NetBSD 3.0 have been fixed.
22314         * doc/posix-functions/frexp.texi (frexp): Document bug.
22315         Reported by Thomas Klausner.
22316
22317         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22318         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22319         literal -0.0.
22320         Reported by Jonathan C. Patschke <jp@centtech.com>.
22321
22322 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22323
22324         * lib/glthread/cond.h: Use dummy implementation also if
22325         USE_WIN32_THREADS.
22326
22327 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22328
22329         * modules/fnmatch-posix (License): Change to LGPLv2+.
22330         * modules/fnmatch-gnu (License): Likewise.
22331
22332 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22333
22334         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22335
22336 2008-09-11  Jim Meyering  <meyering@redhat.com>
22337
22338         * users.txt: Add gtk-vnc.
22339
22340 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22341
22342         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22343         rotate amounts.
22344
22345         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22346         required for 16-bit and 8-bit rotates.
22347         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22348         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22349         UINT8_MAX instead of hard-coded constants.
22350         Suggested by Paul Eggert.
22351
22352 2008-09-07  Bruno Haible  <bruno@clisp.org>
22353
22354         * tests/test-striconveh.c (main): Check behaviour when converting from
22355         UTF-7.
22356
22357         Make striconveh work better with stateful encodings.
22358         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22359         that iconv does not increment the inptr when returning -1/EINVAL.
22360
22361 2008-09-07  Bruno Haible  <bruno@clisp.org>
22362
22363         * build-aux/config.rpath: Update according to libtool-2.2.6.
22364         * build-aux/config.libpath: Likewise.
22365
22366 2008-09-06  Bruno Haible  <bruno@clisp.org>
22367
22368         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22369         * lib/freadptr.c (freadptr): Likewise.
22370         * lib/freadseek.c (freadptrinc): Likewise.
22371         Reported by Simon Josefsson.
22372
22373 2008-09-06  Bruno Haible  <bruno@clisp.org>
22374
22375         * modules/freadptr (License): Change to LGPLv2+.
22376         * modules/freadseek (License): Likewise.
22377         Suggested by Eric Blake.
22378
22379         * modules/memchr2 (License): Change to LGPLv2+.
22380         Approved by Eric Blake.
22381
22382 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22383             Bruno Haible  <bruno@clisp.org>
22384
22385         Make gnulib-tool work with native 'sed' on AIX.
22386         * gnulib-tool (sed_noop): New variable.
22387         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22388         func_add_or_update, func_create_testdir): Use it to initialize sed
22389         script variables.
22390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22391
22392 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22393             Bruno Haible  <bruno@clisp.org>
22394
22395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22396         also works after #include directives.
22397
22398 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22399
22400         getdate.y: reject an out-of-range timezone value
22401         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22402         the range [-24...+24].  When specified with only one or two digits,
22403         * tests/test-getdate.c: Tests for the fix.
22404         * doc/getdate.texi: Document this change.
22405
22406 2008-09-03  Bruno Haible  <bruno@clisp.org>
22407
22408         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22409
22410 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22411
22412         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22413         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22414         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22415         Blake <ebb9@byu.net>.
22416
22417         * tests/test-bitrotate.c: Add more test vectors.
22418
22419 2008-09-02  Eric Blake  <ebb9@byu.net>
22420
22421         vasnprintf-posix: handle large precision via %.*d
22422         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22423         when handling it ourselves.
22424         * tests/test-vasnprintf-posix.c (test_function): Add test.
22425         * tests/test-snprintf-posix.h (test_function): Likewise.
22426         * tests/test-sprintf-posix.h (test_function): Likewise.
22427         * tests/test-vasprintf-posix.c (test_function): Likewise.
22428         Reported by Alain Guibert.
22429
22430 2008-09-01  Eric Blake  <ebb9@byu.net>
22431
22432         c-stack: make configure-time check more robust
22433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22434         successful sigaction call.
22435         Reported by Tom G. Christensen.
22436
22437 2008-09-01  Bruno Haible  <bruno@clisp.org>
22438
22439         New module 'findprog-lgpl'.
22440         * modules/findprog-lgpl: New file.
22441         * lib/findprog-lgpl.c: New file.
22442         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22443         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22444         to decide whether to use strdup or xstrdup, concatenated_filename or
22445         xconcatenated_filename.
22446
22447 2008-09-01  Bruno Haible  <bruno@clisp.org>
22448
22449         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22450         'xconcat-filename' (GPL).
22451         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22452         (License): Change to LGPLv2+.
22453         * modules/xconcat-filename: New file.
22454         * lib/concat-filename.h (concatenated_filename): Change specification.
22455         (xconcatenated_filename): New declaration.
22456         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22457         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22458         memory situations.
22459         * lib/xconcat-filename.c: New file.
22460         * NEWS: Mention the change.
22461         * lib/findprog.c: Include concat-filename.h, not filename.h.
22462         (find_in_path): Use xconcatenated_filename instead of
22463         concatenated_filename.
22464         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22465         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22466         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22467         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22468         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22469         instead of concatenated_filename.
22470         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22471         (execute_java_class): Use xconcatenated_filename instead of
22472         concatenated_filename.
22473         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22474         * modules/javacomp (Depends-on): Likewise.
22475         * modules/javaexec (Depends-on): Likewise.
22476
22477 2008-09-01  Bruno Haible  <bruno@clisp.org>
22478
22479         Split module 'filename' into 'filename' and 'concat-filename'.
22480         * modules/filename: Keep only lib/filename.h.
22481         (License): Change to LGPLv2+.
22482         * modules/concat-filename: New file, extracted from modules/filename.
22483         * lib/filename.h (concatenated_filename): Remove declaration.
22484         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22485         * lib/concat-filename.c: Include concat-filename.h.
22486         * NEWS: Mention the change.
22487
22488 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22489
22490         * lib/bitrotate.h (rotl8, rotr8): Add.
22491
22492         * modules/bitrotate (configure.ac): Need
22493         AC_REQUIRE([AC_C_INLINE]).
22494         (Description): Mention stdint.h.  Reported by Bruno Haible
22495         <bruno@clisp.org>.
22496
22497         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22498         Paolo Bonzini <bonzini@gnu.org>.
22499
22500 2008-08-31  Bruno Haible  <bruno@clisp.org>
22501
22502         Assume Solaris specific bi-arch conventions on Solaris systems.
22503         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22504         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22506         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22507         like acl_libdirstem.
22508         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22509         acl_libdirstem.
22510         * NEWS: Mention the change.
22511         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22512
22513 2008-08-31  Jim Meyering  <meyering@redhat.com>
22514
22515         * lib/strftime.h: Add comments describing the two added arguments.
22516
22517         remove duplicate #include directives
22518         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22519         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22520
22521 2008-08-31  Bruno Haible  <bruno@clisp.org>
22522
22523         New module 'sigpipe-die'.
22524         * modules/sigpipe-die: New file.
22525         * lib/sigpipe-die.h: New file.
22526         * lib/sigpipe-die.c: New file.
22527         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22528
22529 2008-08-31  Bruno Haible  <bruno@clisp.org>
22530
22531         Don't override previously installed signal handlers.
22532         * lib/fatal-signal.c (saved_sigactions): New variable.
22533         (uninstall_handlers): Reset the signal to the saved handler, not
22534         to SIG_DFL (except when ignored).
22535         (install_handlers): Save the previous handlers.
22536
22537 2008-08-30  Bruno Haible  <bruno@clisp.org>
22538
22539         * gnulib-tool (func_reset_sigpipe): New function.
22540         (func_get_automake_snippet, func_modules_transitive_closure,
22541         func_import): Invoke it before a join command that reads from stdin,
22542         to avoid "echo: write error: Broken pipe" error messages on stderr.
22543         Reported by Sam Steingold <sds@gnu.org>.
22544
22545 2008-08-30  Bruno Haible  <bruno@clisp.org>
22546
22547         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22548         Code copied from m4/open.m4.
22549         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22550         access and the filename ends in a slash. Code copied from lib/open.c.
22551         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22552         * tests/test-fopen.c (main): Check against bug with trailing slash.
22553
22554 2008-08-29  Bruno Haible  <bruno@clisp.org>
22555
22556         Avoid some "gcc -pedantic" warnings.
22557         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22558         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22559         * lib/dirent.in.h: Likewise.
22560         * lib/fcntl.in.h: Likewise.
22561         * lib/float.in.h: Likewise.
22562         * lib/iconv.in.h: Likewise.
22563         * lib/inttypes.in.h: Likewise.
22564         * lib/locale.in.h: Likewise.
22565         * lib/math.in.h: Likewise.
22566         * lib/netinet_in.in.h: Likewise.
22567         * lib/search.in.h: Likewise.
22568         * lib/signal.in.h: Likewise.
22569         * lib/stdarg.in.h: Likewise.
22570         * lib/stdint.in.h: Likewise.
22571         * lib/stdio.in.h: Likewise.
22572         * lib/stdlib.in.h: Likewise.
22573         * lib/string.in.h: Likewise.
22574         * lib/strings.in.h: Likewise.
22575         * lib/sys_select.in.h: Likewise.
22576         * lib/sys_socket.in.h: Likewise.
22577         * lib/sys_stat.in.h: Likewise.
22578         * lib/sys_time.in.h: Likewise.
22579         * lib/sysexits.in.h: Likewise.
22580         * lib/time.in.h: Likewise.
22581         * lib/unistd.in.h: Likewise.
22582         * lib/wchar.in.h: Likewise.
22583         * lib/wctype.in.h: Likewise.
22584         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22585         * modules/fchdir (Makefile.am): Likewise.
22586         * modules/fcntl (Makefile.am): Likewise.
22587         * modules/float (Makefile.am): Likewise.
22588         * modules/iconv_open (Makefile.am): Likewise.
22589         * modules/inttypes (Makefile.am): Likewise.
22590         * modules/locale (Makefile.am): Likewise.
22591         * modules/math (Makefile.am): Likewise.
22592         * modules/netinet_in (Makefile.am): Likewise.
22593         * modules/search (Makefile.am): Likewise.
22594         * modules/signal (Makefile.am): Likewise.
22595         * modules/stdarg (Makefile.am): Likewise.
22596         * modules/stdint (Makefile.am): Likewise.
22597         * modules/stdio (Makefile.am): Likewise.
22598         * modules/stdlib (Makefile.am): Likewise.
22599         * modules/string (Makefile.am): Likewise.
22600         * modules/strings (Makefile.am): Likewise.
22601         * modules/sys_select (Makefile.am): Likewise.
22602         * modules/sys_socket (Makefile.am): Likewise.
22603         * modules/sys_stat (Makefile.am): Likewise.
22604         * modules/sys_time (Makefile.am): Likewise.
22605         * modules/sysexits (Makefile.am): Likewise.
22606         * modules/time (Makefile.am): Likewise.
22607         * modules/unistd (Makefile.am): Likewise.
22608         * modules/wchar (Makefile.am): Likewise.
22609         * modules/wctype (Makefile.am): Likewise.
22610         Reported by Reuben Thomas <rrt@sc3d.org>.
22611
22612 2008-08-29  Bruno Haible  <bruno@clisp.org>
22613
22614         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22615         any more.
22616
22617 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22618
22619         * MODULES.html.sh (Misc): Add bitrotate.
22620
22621         * modules/bitrotate: New file.
22622
22623         * lib/bitrotate.h: New file.
22624
22625         * modules/bitrotate-tests: New file.
22626
22627         * tests/test-bitrotate.c: New file.
22628
22629         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22630         on the bitrotate module.
22631
22632         * lib/arctwo.c: Use new bitrotate module.
22633
22634 2008-08-29  Jim Meyering  <meyering@redhat.com>
22635
22636         bootstrap: merge changes from coreutils
22637         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22638         of copied files.  Remove a kludge, now that this is fixed.
22639         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22640         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22641         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22642
22643 2008-08-29  Bruno Haible  <bruno@clisp.org>
22644
22645         * MODULES.html.sh: Remove --cvs-urls option.
22646
22647 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22648
22649         maint.mk: adjust to file name change
22650         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22651
22652 2008-08-28  Jim Meyering  <meyering@redhat.com>
22653
22654         * modules/getndelim2 (License): Relicense to LGPLv2+.
22655         Approved by Richard Stallman for the version of 1995, and by
22656         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22657
22658 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22659
22660         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22661         dummy if one is not available.  Do not touch them if
22662         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22663         (getc_maybe_unlocked): New.
22664         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22665
22666 2008-08-26  Eric Blake  <ebb9@byu.net>
22667
22668         doc/INSTALL: resync from autoconf
22669         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22670         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22671         moving...
22672         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22673         * INSTALL: Regenerate.
22674         * INSTALL.ISO: New file.
22675         * INSTALL.UTF-8: Likewise.
22676
22677 2008-08-26  Jim Meyering  <meyering@redhat.com>
22678
22679         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22680         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22681         these definitions conditional, so that they may be overridden, too.
22682
22683 2008-08-26  Bruno Haible  <bruno@clisp.org>
22684
22685         Generate INSTALL file variants with prettier quotes.
22686         * doc/Makefile (INSTALL_PRELUDE): New macro.
22687         (INSTALL): Use it.
22688         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22689
22690 2008-08-26  Bruno Haible  <bruno@clisp.org>
22691
22692         Run makeinfo in an English locale.
22693         * doc/Makefile (MAKEINFO): New variable.
22694
22695 2008-08-26  Bruno Haible  <bruno@clisp.org>
22696
22697         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22698         Suggested by Eric Blake.
22699
22700 2008-08-25  Bruno Haible  <bruno@clisp.org>
22701
22702         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22703
22704 2008-08-25  Eric Blake  <ebb9@byu.net>
22705
22706         c-stack: test that stack overflow can be caught
22707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22708         that platform allows handling stack overflow; at least OS/2 EMX
22709         has sigaltstack, but crashes before transferring control to
22710         handler on stack overflow.
22711         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22712         check for HAVE_STACK_OVERFLOW_HANDLING.
22713         Reported by Elbert Pol.
22714
22715 2008-08-25  Bruno Haible  <bruno@clisp.org>
22716
22717         * doc/posix-functions/strftime.texi: Fix description of strftime
22718         module.
22719
22720 2008-08-24  Bruno Haible  <bruno@clisp.org>
22721
22722         * tests/uniwidth/test-uc_width2.c: New file.
22723         * tests/uniwidth/test-uc_width2.sh: New file.
22724         * modules/uniwidth/width-tests (Files): Add the new files.
22725         (TESTS): Add uniwidth/test-uc_width2.sh.
22726         (TESTS_ENVIRONMENT): New variable.
22727         (check_PROGRAMS): Add test-uc_width2.
22728         (test_uc_width2_SOURCES): New variable.
22729
22730         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22731         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22732         not 0x00AB.
22733         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22734
22735 2008-08-22  Eric Blake  <ebb9@byu.net>
22736
22737         test-lock, test-tls: mention why a test is skipped
22738         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22739         skipped.
22740         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22741
22742         count-one-bits: relax license
22743         * modules/count-one-bits (License): Relicense to LGPLv2+.
22744         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22745
22746 2008-08-22  Andreas Schwab  <schwab@suse.de>
22747
22748         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22749         Remove spurious space in assignment.
22750
22751 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22752
22753         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22754         Paul Eggert <eggert@CS.UCLA.EDU>.
22755
22756 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22757
22758         * modules/gettext: Add m4/threadlib.m4.
22759
22760 2008-08-19  Eric Blake  <ebb9@byu.net>
22761
22762         test-c-stack: fix compilation failure on FreeBSD 5.0
22763         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22764         headers before <sys/resource.h>.
22765         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22766         the bug.
22767         Reported by Nelson H. F. Beebe.
22768
22769         strverscmp: migrate from "strverscmp.h" to <string.h>
22770         * modules/string (Makefile.am): Add new hooks.
22771         * modules/strverscmp (Files): Remove strverscmp.h.
22772         (Depends-on): Add string.
22773         (configure.ac): Add indicator.
22774         (Include): Mention new header.
22775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22776         defaults.
22777         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22778         results.
22779         * lib/strverscmp.h: Delete.
22780         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22781         * tests/test-strverscmp.c (includes): Adjust client.
22782         * lib/check-version.c (includes): Likewise.
22783         * NEWS: Document the change.
22784
22785         strverscmp: add unit test
22786         * modules/strverscmp-tests: New file.
22787         * tests/test-strverscmp.c: Likewise.
22788
22789 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22790
22791         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22792         regarding Windows crypto stuff, from Mono.
22793
22794 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22795
22796         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22797         if present, for intel RND.  Return error on failures.
22798
22799 2008-08-18  Ben Pfaff  <blp@gnu.org>
22800
22801         gitlog-to-changelog: give better diagnostic for failed pipe-open
22802         * build-aux/gitlog-to-changelog: Improve error message: suggest
22803         that the version of Git may be too old.
22804
22805 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22806
22807         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22808         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22809
22810 2008-08-18  Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22813         pthread_in_use().
22814
22815 2008-08-18  Bruno Haible  <bruno@clisp.org>
22816
22817         * lib/glthread/threadlib.c: Include <pthread.h>.
22818
22819 2008-08-18  Bruno Haible  <bruno@clisp.org>
22820
22821         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22822         glthread_recursive_lock_* macros.
22823         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22824         Fix syntax error.
22825
22826 2008-08-18  Bruno Haible  <bruno@clisp.org>
22827
22828         * lib/glthread/thread.c: Avoid forcing a context switch right after
22829         thread creation.
22830
22831 2008-08-17  Bruno Haible  <bruno@clisp.org>
22832
22833         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22834         * lib/glthread/thread.h: Provide Win32 specific implementation.
22835         * modules/thread (Files): Add lib/glthread/thread.c.
22836         (Depends-on): Add lock.
22837         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22838
22839 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22840
22841         New module 'yield'.
22842         * modules/yield: New file.
22843         * lib/glthread/yield.h: New file.
22844         * m4/yield.m4: New file.
22845         * MODULES.html.sh (Multithreading): Add yield.
22846
22847 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22848
22849         New module 'thread'.
22850         * modules/thread: New file.
22851         * lib/glthread/thread.h: New file.
22852         * m4/thread.m4: New file.
22853         * MODULES.html.sh (Multithreading): Add thread.
22854
22855 2008-08-17  Bruno Haible  <bruno@clisp.org>
22856
22857         * lib/glthread/lock.h: Include <stdlib.h> always.
22858         * lib/glthread/tls.h: Likewise.
22859         * lib/glthread/cond.h: Likewise.
22860
22861 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22862
22863         New module 'cond'.
22864         * modules/cond: New file.
22865         * lib/glthread/cond.h: New file.
22866         * lib/glthread/cond.c: New file.
22867         * m4/cond.m4: New file.
22868         * MODULES.html.sh (Multithreading): Add cond.
22869
22870 2008-08-16  Eric Blake  <ebb9@byu.net>
22871
22872         c-stack: fix regression on Irix 5.3 from 2008-06-21
22873         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22874         sa_sigaction...
22875         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22876         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22878         * modules/signal (Makefile.am): Use the value.
22879         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22880         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22881         * doc/posix-headers/signal.texi (signal.h): Document this
22882         portability issue.
22883         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22884         Reported by Tom G. Christensen.
22885
22886 2008-08-17  Bruno Haible  <bruno@clisp.org>
22887
22888         New module 'threadlib'.
22889         * modules/threadlib: New file.
22890         * lib/glthread/threadlib.c: New file, extracted from
22891         lib/glthread/lock.c.
22892         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22893         functions.
22894         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22895         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22896         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22897         macros.
22898         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22899         (gl_DISABLE_THREADS): Remove macro.
22900         * modules/lock (Files): Remove build-aux/config.rpath.
22901         (Depends-on): Remove havelib. Add threadlib.
22902         (configure.ac-early): Remove section.
22903         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22904         * modules/tls (Depends-on): Remove lock. Add threadlib.
22905         (Link): New section, copied from threadlib.
22906         * MODULES.html.sh (Multithreading): Add threadlib.
22907
22908 2008-08-14  Bruno Haible  <bruno@clisp.org>
22909
22910         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22911         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22912         glthread_rwlock_unlock, glthread_rwlock_destroy,
22913         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22914         glthread_recursive_lock_destroy): Define as macros always.
22915         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22916         glthread_lock_lock.
22917         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22918         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22919         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22920         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22921         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22922         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22923         (glthread_recursive_lock_lock_func): Renamed from
22924         glthread_recursive_lock_lock.
22925         (glthread_recursive_lock_unlock_func): Renamed from
22926         glthread_recursive_lock_unlock.
22927         (glthread_recursive_lock_destroy_func): Renamed from
22928         glthread_recursive_lock_destroy.
22929
22930 2008-08-14  Bruno Haible  <bruno@clisp.org>
22931
22932         * lib/glthread/lock.h: Renamed from lib/lock.h.
22933         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22934         * lib/glthread/tls.h: Renamed from lib/tls.h.
22935         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22936         * lib/fstrcmp.c: Update includes.
22937         * lib/strsignal.c: Update includes.
22938         * modules/lock (Files, Makefile.am): Update.
22939         (Include): Change to "glthread/lock.h".
22940         * modules/tls (Files, Makefile.am): Update.
22941         (Include): Change to "glthread/tls.h".
22942         * tests/test-lock.c: Update includes.
22943         * tests/test-tls.c: Update includes.
22944         * NEWS: Mention the renamed header files.
22945
22946 2008-08-11  Jim Meyering  <meyering@redhat.com>
22947
22948         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22949
22950 2008-08-11  Eric Blake  <ebb9@byu.net>
22951
22952         test-c-stack: avoid C99-ism
22953         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22954         before statement.
22955         Reported by Alain Guibert.
22956
22957 2008-08-10  Jim Meyering  <meyering@redhat.com>
22958
22959         ensure that return value of uinttostr et al are not ignored
22960         * lib/inttostr.h (__GNUC_PREREQ): Define.
22961         (__attribute_warn_unused_result__): Define.
22962         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22963
22964 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22965
22966         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22967         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22968
22969 2008-08-07  Jim Meyering  <meyering@redhat.com>
22970
22971         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22972
22973         * modules/mkstemp (License): Relicense under LGPLv2+.
22974         * modules/tempname (License): Likewise.
22975
22976 2008-08-06  Bruno Haible  <bruno@clisp.org>
22977
22978         * lib/poll.c (poll): Further micro-optimization.
22979
22980 2008-08-06  Jim Meyering  <meyering@redhat.com>
22981
22982         inet_pton.c: use locale-independent tolower
22983         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22984         (inet_pton6): Use c_tolower rather than tolower.
22985         * modules/inet_pton (Depends-on): Add c-ctype.
22986
22987 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22988
22989         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22990         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22991
22992 2008-08-06  Jim Meyering  <meyering@redhat.com>
22993
22994         * modules/inet_pton (License): Relicense under LGPLv2+.
22995
22996 2008-08-03  Bruno Haible  <bruno@clisp.org>
22997
22998         Additional non-aborting API for lock and tls.
22999         * lib/lock.h: Include <errno.h>.
23000         (glthread_lock_init): New macro/function.
23001         (gl_lock_init): Define as wrapper around glthread_lock_init.
23002         (glthread_lock_lock): New macro/function.
23003         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23004         (glthread_lock_unlock): New macro/function.
23005         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23006         (glthread_lock_destroy): New macro/function.
23007         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23008         (glthread_rwlock_init): New macro/function.
23009         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23010         (glthread_rwlock_rdlock): New macro/function.
23011         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23012         (glthread_rwlock_wrlock): New macro/function.
23013         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23014         (glthread_rwlock_unlock): New macro/function.
23015         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23016         (glthread_rwlock_destroy): New macro/function.
23017         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23018         (glthread_recursive_lock_init): New macro/function.
23019         (gl_recursive_lock_init): Define as wrapper around
23020         glthread_recursive_lock_init.
23021         (glthread_recursive_lock_lock): New macro/function.
23022         (gl_recursive_lock_lock): Define as wrapper around
23023         glthread_recursive_lock_lock.
23024         (glthread_recursive_lock_unlock): New macro/function.
23025         (gl_recursive_lock_unlock): Define as wrapper around
23026         glthread_recursive_lock_unlock.
23027         (glthread_recursive_lock_destroy): New macro/function.
23028         (gl_recursive_lock_destroy): Define as wrapper around
23029         glthread_recursive_lock_destroy.
23030         (glthread_once): New macro/function.
23031         (gl_once): Define as wrapper around glthread_once.
23032         Update function declarations.
23033         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23034         glthread_rwlock_init. Return error code.
23035         (glthread_rwlock_rdlock_multithreaded): Renamed from
23036         glthread_rwlock_rdlock. Return error code.
23037         (glthread_rwlock_wrlock_multithreaded): Renamed from
23038         glthread_rwlock_wrlock. Return error code.
23039         (glthread_rwlock_unlock_multithreaded): Renamed from
23040         glthread_rwlock_unlock. Return error code.
23041         (glthread_rwlock_destroy_multithreaded): Renamed from
23042         glthread_rwlock_destroy. Return error code.
23043         (glthread_recursive_lock_init_multithreaded): Renamed from
23044         glthread_recursive_lock_init. Return error code.
23045         (glthread_recursive_lock_lock_multithreaded): Renamed from
23046         glthread_recursive_lock_lock. Return error code.
23047         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23048         glthread_recursive_lock_unlock. Return error code.
23049         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23050         glthread_recursive_lock_destroy. Return error code.
23051         (glthread_once_call): Make static.
23052         (glthread_once_multithreaded): Renamed from glthread_once.
23053         * lib/tls.h: Include <errno.h>.
23054         (glthread_tls_key_init): New macro/function.
23055         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23056         (glthread_tls_set): New macro/function.
23057         (gl_tls_set): Define as wrapper around glthread_tls_set.
23058         (glthread_tls_key_destroy): New macro/function.
23059         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23060         Update function declarations.
23061         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23062         glthread_tls_get.
23063         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23064
23065 2008-08-04  Eric Blake  <ebb9@byu.net>
23066
23067         gnumakefile: use space, not TAB, outside of targets
23068         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23069
23070 2008-08-02  Jim Meyering  <meyering@redhat.com>
23071
23072         getdate.y: avoid locale-dependent date parsing failure
23073         In Turkish locales, getdate would fail to recognize keywords
23074         containing a lowercase "i".  The solution is not to rely on
23075         locale-sensitive case-conversion.
23076         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23077         (lookup_word): Use c_toupper in place of toupper.
23078         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23079         Reported by Vefa Bicakci <bicave@superonline.com> in
23080         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23081         * modules/getdate (Depends-on): Add c-ctype.
23082
23083 2008-08-02  Bruno Haible  <bruno@clisp.org>
23084
23085         * gnulib-tool (func_import): When updating or creating a .gitignore
23086         file, prepend each added line with a slash, and ignore leading slashes
23087         from the existing lines.
23088         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23089
23090 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23091
23092         Portability fix for GNU make 3.79.1.
23093         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23094         versions do not understand.
23095
23096 2008-08-01  Bruno Haible  <bruno@clisp.org>
23097
23098         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23099         * tests/test-isnanf.h (zero): New variable.
23100         (main): Avoid literal -0.0f.
23101         * tests/test-isnand.h (zero): New variable.
23102         (main): Avoid literal -0.0.
23103         * tests/test-isnanl.h (zero): New variable.
23104         (main): Avoid literal -0.0L.
23105         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23106         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23107         -0.0, -0.0L.
23108         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23109         (test_signbitd): Avoid literal -0.0.
23110         (test_signbitl): Avoid literal -0.0L.
23111         * tests/test-ceilf1.c (zero): New variable.
23112         (main): Avoid literal -0.0f.
23113         * tests/test-ceill.c (zero): New variable.
23114         (main): Avoid literal -0.0L.
23115         * tests/test-floorf1.c (zero): New variable.
23116         (main): Avoid literal -0.0f.
23117         * tests/test-floorl.c (zero): New variable.
23118         (main): Avoid literal -0.0L.
23119         * tests/test-roundf1.c (zero): New variable.
23120         (main): Avoid literal -0.0f.
23121         * tests/test-round1.c (zero): New variable.
23122         (main): Avoid literal -0.0.
23123         * tests/test-roundl.c (zero): New variable.
23124         (main): Avoid literal -0.0L.
23125         * tests/test-truncf1.c (zero): New variable.
23126         (main): Avoid literal -0.0f.
23127         * tests/test-trunc1.c (zero): New variable.
23128         (main): Avoid literal -0.0.
23129         * tests/test-truncl.c (zero): New variable.
23130         (main): Avoid literal -0.0L.
23131         * tests/test-frexp.c (zero): New variable.
23132         (main): Avoid literal -0.0.
23133         * tests/test-frexpl.c (zero): New variable.
23134         (main): Avoid literal -0.0L.
23135         * tests/test-ldexpl.c (zero): New variable.
23136         (main): Avoid literal -0.0L.
23137         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23138         (zerod, zerol): New variables.
23139         (test_function): Avoid literals -0.0, -0.0L.
23140         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23141         (zerod, zerol): New variables.
23142         (test_function): Avoid literals -0.0, -0.0L.
23143         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23144         (zerod, zerol): New variables.
23145         (test_function): Avoid literals -0.0, -0.0L.
23146         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23147         (zerod, zerol): New variables.
23148         (test_function): Avoid literals -0.0, -0.0L.
23149         * tests/test-strtod.c (zero): New variable.
23150         (main): Avoid literal -0.0.
23151         Reported by Jonathan C. Patschke <jp@centtech.com>.
23152
23153 2008-07-31  Jim Meyering  <meyering@redhat.com>
23154
23155         sha256.h: correct definition of SHA224_DIGEST_SIZE
23156         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23157         Reported by Paulie Pena IV <paulie4@gmail.com>.
23158         Define as 224 / 8, rather than as a literal.
23159         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23160         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23161         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23162
23163 2008-07-31  Bruno Haible  <bruno@clisp.org>
23164
23165         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23166         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23167         Reported by Jonathan Patschke <jp@centtech.com>.
23168
23169 2008-07-31  Bruno Haible  <bruno@clisp.org>
23170
23171         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23172         Reported by Paolo Bonzini <bonzini@gnu.org>.
23173
23174 2008-07-30  Eric Blake  <ebb9@byu.net>
23175
23176         test-strtod: allow compilation without -lm
23177         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23178         Reported by Dennis Clarke <blastwave@gmail.com>.
23179
23180 2008-07-28  Jim Meyering  <meyering@redhat.com>
23181
23182         bootstrap: work also when there are no .po files in po/
23183         * build-aux/bootstrap (update_po_files): Complete the change
23184         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23185
23186 2008-07-27  Jim Meyering  <meyering@redhat.com>
23187
23188         * users.txt: Add zile.
23189
23190 2008-07-26  Ben Pfaff  <blp@gnu.org>
23191
23192         Add missing dependencies on new m4/exponent[fdl].m4 files.
23193         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23194         * modules/isnand-nolibm: Add m4/exponentd.m4.
23195         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23196         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23197         m4/isnan[fdl].m4, because the macros actually used moved.
23198         Reported by Jim Meyering.
23199
23200 2008-07-14  Ben Pfaff  <blp@gnu.org>
23201
23202         Add isinf module.
23203         * lib/isinf.c: New file.
23204         * lib/math.in.h: Define isinf macro if we have decided to replace
23205         it.
23206         * m4/isinf.m4: New file.
23207         * m4/math_h.m4: Initialize and substitute variables for isinf
23208         module.
23209         * modules/isinf: New file.
23210         * modules/isinf-tests: New file.
23211         * modules/math: Add substitutions for new module.
23212         * tests/test-isinf.c: New file.
23213         * doc/posix-functions/isinf.texi: Mention new module.
23214         * MODULES.html.sh: Mention new module.
23215
23216 2008-07-14  Ben Pfaff  <blp@gnu.org>
23217
23218         Factor out some macros for use by additional modules.
23219         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23220         exponentf.m4.
23221         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23222         exponentd.m4.
23223         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23224         file exponentl.m4.
23225         * m4/exponentf.m4: New file.
23226         * m4/exponentd.m4: New file.
23227         * m4/exponentl.m4: New file.
23228         * modules/isnanf: Use new file m4/exponentf.m4.
23229         * modules/isnand: Use new file m4/exponentd.m4.
23230         * modules/isnanl: Use new file m4/exponentl.m4.
23231
23232 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23233
23234         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23235         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23236         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23237         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23238
23239         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23240         readlink on platforms without PATH_MAX.
23241
23242 2008-07-21  Eric Blake  <ebb9@byu.net>
23243
23244         Warn, not fail, on stale version.
23245         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23246
23247         Don't allow installation with stale devel version number.
23248         * top/GNUmakefile (_is-install-target): New macro.
23249         (_curr-ver): Forbid installation with stale version number.
23250
23251 2008-07-20  Bruno Haible  <bruno@clisp.org>
23252
23253         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23254         TESTS_ENVIRONMENT.
23255         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23256
23257 2008-07-20  Bruno Haible  <bruno@clisp.org>
23258
23259         * lib/c-stack.h (c_stack_action): Add documentation.
23260         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23261
23262 2008-07-20  Bruno Haible  <bruno@clisp.org>
23263
23264         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23265         * modules/readlink (License): Likewise.
23266
23267 2008-07-17  Eric Blake  <ebb9@byu.net>
23268
23269         * modules/c-stack (Link): Fix typo.
23270
23271         Make c-stack use libsigsegv, when available.
23272         * modules/c-stack (Depends-on): Add libsigsegv.
23273         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23274         needed.
23275         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23276         (segv_handler, overflow_handler, c_stack_action)
23277         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23278         implementation when libsigsegv is available, but only when using
23279         the library is necessary.
23280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23281         comment, explaining why XSI check fails on Linux.
23282         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23283         * tests/test-c-stack2.sh: Tweak skip message.
23284         * NEWS: Document new link-time requirements.
23285
23286 2008-07-16  Eric Blake  <ebb9@byu.net>
23287
23288         c-stack: Expose false positives when not using libsigsegv.
23289         * modules/c-stack-tests (Files): Expand test.
23290         * tests/test-c-stack.c (main): Add means to conditionally trigger
23291         non-overflow SIGSEGV.
23292         * tests/test-c-stack2.sh: New file.
23293
23294 2008-07-14  Bruno Haible  <bruno@clisp.org>
23295
23296         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23297         Reported by Eric Blake.
23298
23299 2008-07-14  Sam Steingold  <sds@gnu.org>
23300             Bruno Haible  <bruno@clisp.org>
23301
23302         New module libsigsegv.
23303         * modules/libsigsegv: New file.
23304         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23305         modifications.
23306         * MODULES.html.sh (Signal handling): New section.
23307
23308 2008-07-14  Bruno Haible  <bruno@clisp.org>
23309
23310         * modules/unictype/ctype-* (Description): Add the word "function".
23311         Improves the resulting doc in MODULES.html.
23312
23313 2008-07-12  Ben Pfaff  <blp@gnu.org>
23314
23315         Add longlong module.
23316         * modules/longlong: New file.
23317
23318 2008-07-12  Bruno Haible  <bruno@clisp.org>
23319
23320         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23321         to empty.
23322
23323 2008-07-10  Ben Pfaff  <blp@gnu.org>
23324
23325         Add isnan module.
23326         * doc/posix-functions/isnan.texi: Mention new module.
23327         * lib/math.in.h: Define isnan macro if we have decided to replace
23328         it.
23329         * m4/isnan.m4: New file.
23330         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23331         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23332         also.
23333         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23334         redundancy.
23335         * m4/math_h.m4: Initialize and substitute variables for isnan
23336         module.
23337         * modules/isnan: New file.
23338         * modules/isnan-tests: New file.
23339         * modules/math: Add substitutions for new module.
23340         * tests/test-isnan.c: New file.
23341         * MODULES.html.sh: Mention new module.
23342
23343 2008-07-10  Ben Pfaff  <blp@gnu.org>
23344
23345         Add isnanf module.
23346         * lib/isnanf.m4: New file.
23347         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23348         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23349         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23350         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23351         * modules/isnanf: New file.
23352         * modules/isnanf-tests: New file.
23353         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23354         files.
23355         * tests/test-isnanf-nolibm.c: factored most of its contents into
23356         new file tests/test-isnanf.h.
23357         * tests/test-isnanf.h: New file.
23358         * tests/test-isnanf.c: New file.
23359         * MODULES.html.sh: Mention new module.
23360         * doc/glibc-functions/isnanf.texi: Mention new module.
23361
23362 2008-07-10  Ben Pfaff  <blp@gnu.org>
23363
23364         Add isnand module.
23365         * lib/isnand.h: New file.
23366         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23367         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23368         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23369         functionality also.
23370         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23371         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23372         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23373         * modules/isnand: New file.
23374         * modules/isnand-tests: New file.
23375         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23376         files.
23377         * tests/test-isnand-nolibm.c: factored most of its contents into
23378         new file tests/test-isnand.h.
23379         * tests/test-isnand.h: New file.
23380         * tests/test-isnand.c: New file.
23381         * MODULES.html.sh: Mention new module.
23382
23383 2008-07-10  Ben Pfaff  <blp@gnu.org>
23384
23385         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23386         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23387         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23388         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23389         * modules/isnanf-nolibm: Update references to renamed files.
23390         * modules/isnand-nolibm: Likewise.
23391         * modules/isnanf-nolibm-tests: Likewise.
23392         * modules/isnand-nolibm-tests: Likewise.
23393         * lib/frexp.c: Likewise.
23394         * lib/isfinite.c: Likewise.
23395         * lib/signbitd.c: Likewise.
23396         * lib/signbitf.c: Likewise.
23397         * lib/vasnprintf.c: Likewise.
23398         * tests/test-ceilf1.c: Likewise.
23399         * tests/test-ceilf2.c: Likewise.
23400         * tests/test-floorf1.c: Likewise.
23401         * tests/test-floorf2.c: Likewise.
23402         * tests/test-frexp.c: Likewise.
23403         * tests/test-round1.c: Likewise.
23404         * tests/test-round2.c: Likewise.
23405         * tests/test-roundf1.c: Likewise.
23406         * tests/test-strtod.c: Likewise.
23407         * tests/test-trunc1.c: Likewise.
23408         * tests/test-trunc2.c: Likewise.
23409         * tests/test-truncf1.c: Likewise.
23410         * tests/test-truncf2.c: Likewise.
23411         * NEWS: Mention the renamed header files.
23412
23413 2008-07-11  Jim Meyering  <meyering@redhat.com>
23414
23415         vc-list-files: make the last-resort awk code more portable
23416         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23417         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23418         does not support it.
23419
23420 2008-07-10  Eric Blake  <ebb9@byu.net>
23421
23422         Work with tar's bootstrap.
23423         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23424         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23425         an m4 comment.
23426
23427 2008-07-09  Jim Meyering  <meyering@redhat.com>
23428
23429         posix-shell.m4: fix typo that made this test malfunction
23430         * m4/posix-shell.m4: Remove capitalization in variable name.
23431
23432 2008-07-08  Bruno Haible  <bruno@clisp.org>
23433
23434         * m4/onceonly.m4: Update comments.
23435         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23436
23437 2008-07-04  Jim Meyering  <meyering@redhat.com>
23438
23439         * users.txt: Add vc-dwim.
23440         (bison, coreutils): Use the gitweb URL.
23441
23442 2008-07-03  Jim Meyering  <meyering@redhat.com>
23443
23444         * users.txt: Add libffcall.  From Sam Steingold.
23445
23446 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23447
23448         getdate.y: do not ignore TZ with relative day, month or year offset
23449         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23450         relative-date-handling, since otherwise, the latter would clobber the
23451         sole output (an updated Start value) of the tz-handling block.
23452         * tests/test-getdate.c: Tests for the fix
23453
23454 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23455
23456         Recognize 'foo_LIBRARIES += libgnu.a'.
23457         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23458         makefile snippet has already specified an installation location,
23459         also using '+='.
23460
23461 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23462
23463         getdate.y: factor out common actions
23464         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23465         Use them in place of open-coded actions.
23466
23467 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23468
23469         Add self-test for getdate module.
23470         * modules/getdate-tests: New file.
23471         * tests/test-getdate.c: New file.
23472
23473 2008-06-29  Bruno Haible  <bruno@clisp.org>
23474
23475         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23476         .gitignore.
23477         Reported by Sylvain Beucler <beuc@beuc.net>.
23478
23479 2008-06-29  Bruno Haible  <bruno@clisp.org>
23480
23481         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23482         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23483
23484 2008-06-29  Bruno Haible  <bruno@clisp.org>
23485
23486         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23487         EXTRA_DIST.
23488         Reported by Sylvain Beucler <beuc@beuc.net>.
23489
23490 2008-06-26  Jim Meyering  <meyering@redhat.com>
23491
23492         make several modules depend on the "open" module
23493         This provides slightly increased consistency when opening-for-write
23494         the name of a non-directory spelled with a trailing slash.
23495         * modules/chdir-safer: Likewise.
23496         * modules/chown: Likewise.
23497         * modules/clean-temp: Likewise.
23498         * modules/copy-file: Likewise.
23499         * modules/fchdir: Likewise.
23500         * modules/fcntl-safer: Likewise.
23501         * modules/pipe: Likewise.
23502         * modules/utime: Likewise.
23503         Prompted by Eric Blake and Bruno Haible.
23504
23505 2008-06-24  Andreas Schwab  <schwab@suse.de>
23506
23507         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23508         literals can be used as initializers for global variables.
23509
23510 2008-06-23  Eric Blake  <ebb9@byu.net>
23511
23512         Make gnulib-cache.m4 easier to diff.
23513         * gnulib-tool (func_import): Allow newlines when reading cached
23514         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23515
23516 2008-06-23  Bruno Haible  <bruno@clisp.org>
23517
23518         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23519         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23520         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23521         m4/signalblocking.m4.
23522         (gl_PREREQ_SIGACTION): Don't invoke it.
23523         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23524         gl_PREREQ_SIG_HANDLER_H.
23525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23526         Don't check for sigaction here.
23527
23528 2008-06-23  Bruno Haible  <bruno@clisp.org>
23529
23530         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23531         (install_handlers): Don't set the SA_RESETHAND flag.
23532
23533 2008-06-23  Bruno Haible  <bruno@clisp.org>
23534
23535         * m4/sigaction.m4: Comment fixes.
23536         * lib/signal.in.h: Likewise.
23537
23538 2008-06-23  Eric Blake  <ebb9@byu.net>
23539
23540         Fix typo.
23541         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23542
23543         Avoid SA_ namespace.
23544         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23545         Reported by Ralf Wildenhues.
23546
23547         Avoid test failure due to SA_RESTORER.
23548         * tests/test-sigaction.c (SA_MASK): New macro.
23549         (main): Avoid failing due to extension flags being set.
23550         Reported by Jim Meyering.
23551
23552         Revert use of sig-handler.h in sigprocmask.c.
23553         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23554         it requires the existence of struct sigaction.
23555         * lib/sigprocmask.c (handler_t): Restore typedef.
23556         (rpl_signal, old_handlers): Use local type.
23557
23558 2008-06-22  Bruno Haible  <bruno@clisp.org>
23559
23560         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23561         conditionally.
23562         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23563
23564 2008-06-22  Bruno Haible  <bruno@clisp.org>
23565
23566         * doc/posix-functions/siginterrupt.texi: Move note.
23567
23568         * lib/signal.in.h (SA_RESTART): New macro.
23569         * lib/sigaction.c: Update comment.
23570
23571         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23572
23573         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23574         (gl_PREREQ_SIGPROCMASK): Invoke it.
23575         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23576
23577         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23578
23579         * lib/sigprocmask.c: Update a comment.
23580
23581 2008-06-21  Eric Blake  <ebb9@byu.net>
23582
23583         Use sigaction module rather than signal().
23584         * modules/c-stack (Depends-on): Add sigaction.
23585         * modules/fatal-signal (Depends-on): Likewise.
23586         * modules/nanosleep (Depends-on): Likewise.
23587         * modules/sigprocmask (Files): Add sig-handler.h.
23588         * modules/sigaction (Files): Likewise.
23589         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23590         Eggert.
23591         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23592         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23593         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23594         (init_fatal_signals): Likewise.
23595         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23596         (siginterrupt): Delete fallback.
23597         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23598         instead.
23599         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23600         siginterrupt.
23601
23602         New module sigaction, for mingw.
23603         * modules/sigaction: New module...
23604         * modules/sigaction-tests: ...and its test.
23605         * m4/sigaction.m4: New file.
23606         * lib/sigaction.c: Likewise.
23607         * tests/test-sigaction.c: Likewise.
23608         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23609         * modules/signal (Makefile.am): Likewise.
23610         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23611         needed.
23612         * doc/posix-headers/signal.texi (signal.h): Mention provided
23613         types.
23614         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23615         that sigaction is preferable.
23616         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23617         module.
23618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23619         sigaction.
23620
23621         Improve robustness of sigprocmask by overriding signal.
23622         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23623         is in use.
23624         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23625         (SIGKILL, SIGSTOP): Provide fallbacks.
23626         (rpl_signal): Implement.
23627         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23628         signal can be called inside handlers.
23629
23630         Fix nanosleep module on mingw.
23631         * modules/nanosleep (Depends-on): Add sys_select.
23632         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23633
23634         Fix licensing of sigprocmask.
23635         * modules/raise (License): Relicense as LGPL.
23636
23637 2008-06-21  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23640         result if it contains question marks.
23641         Reported by Michael Geng <linux@michaelgeng.de>.
23642
23643 2008-06-19  Bruno Haible  <bruno@clisp.org>
23644
23645         Fix CVS-ism.
23646         * doc/gnulib.texi: Include updated-stamp.texi.
23647         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23648         (updated-stamp.texi): New rule.
23649         (gnulib.info): Depend on it.
23650         * doc/.gitignore: Add updated-stamp.texi.
23651         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23652
23653 2008-06-19  Bruno Haible  <bruno@clisp.org>
23654
23655         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23656         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23657
23658 2008-06-19  Eric Blake  <ebb9@byu.net>
23659
23660         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23661         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23662         Reported by Stepan Kasal.
23663
23664 2008-06-18  Bruno Haible  <bruno@clisp.org>
23665
23666         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23667         Reported by Eric Blake.
23668
23669 2008-06-18  Eric Blake  <ebb9@byu.net>
23670
23671         Work around cygwin 1.5.25 strsignal bug.
23672         * tests/test-strsignal.c: Allow for const char *.
23673         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23674
23675 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23676
23677         * users.txt: Update URL to article and add author/date
23678         information.
23679
23680 2008-06-17  Bruno Haible  <bruno@clisp.org>
23681
23682         New macro gl_DISABLE_THREADS.
23683         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23684         if the user did not pass --enable-threads or --disable-threads option.
23685         (gl_DISABLE_THREADS): New macro.
23686         Reported by Eric Blake <ebb9@byu.net>.
23687
23688 2008-06-17  Bruno Haible  <bruno@clisp.org>
23689
23690         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23691         when the macro ignores it.
23692         Based on a patch by Eric Blake <ebb9@byu.net>.
23693
23694 2008-06-17  Bruno Haible  <bruno@clisp.org>
23695
23696         * modules/tls (License): Change to LGPLv2+.
23697         Reported by Eric Blake.
23698
23699 2008-06-17  Eric Blake  <ebb9@byu.net>
23700
23701         Simplify c-stack prerequisites.
23702         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23704         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23705         check.
23706         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23707         <sys/resource.h>.
23708
23709         Move c-stack test into testsuite.
23710         * modules/c-stack-tests: New file.
23711         * lib/c-stack.c [DEBUG]: Move test program...
23712         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23713         fail test if sigaltstack is lacking.
23714         * tests/test-c-stack.sh: New driver file.
23715
23716 2008-06-16  Eric Blake  <ebb9@byu.net>
23717
23718         Use raise module consistently.
23719         * modules/fatal-signal (Depends-on): Add raise.
23720         * modules/sigprocmask (Depends-on): Likewise.
23721         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23722         * lib/sigprocmask.c (sigprocmask): Likewise.
23723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23724         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23725
23726         Fix compliance bug in sigpending.
23727         * lib/sigprocmask.c (sigpending): Return pending array via
23728         parameter, not return value.
23729
23730 2008-06-14  Eric Blake  <ebb9@byu.net>
23731
23732         Improve obstack-printf test code.
23733         * tests/test-obstack-printf.c (test_function): Fix comment, and
23734         simplify usage of obstack_* in macros.  Add a test for coverage.
23735         Reported by Bruno Haible.
23736
23737 2008-06-14  Bruno Haible  <bruno@clisp.org>
23738
23739         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23740         array size as a constant, not as a const variable.
23741         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23742         AC_USE_SYSTEM_EXTENSIONS.
23743         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23744         Test whether the obstack_printf function actually exists.
23745         * modules/obstack-printf (Depends-on): Add extensions.
23746         (Include): Remove obstack.h.
23747         * modules/obstack-printf-posix (Depends-on): Add extensions.
23748         (Include): Remove obstack.h.
23749
23750 2008-06-13  Eric Blake  <ebb9@byu.net>
23751
23752         Add obstack-printf and obstack-printf-posix modules.
23753         * modules/obstack-printf: New file.
23754         * modules/obstack-printf-posix: Likewise.
23755         * MODULES.html.sh (Misc): Mention them.
23756         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23757         Likewise.
23758         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23759         Likewise.
23760         * modules/stdio (Makefile.am): Accomodate new modules.
23761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23762         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23763         Declare.
23764         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23765         functions.
23766         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23767         (gl_REPLACE_OBSTACK_PRINTF): New macros
23768         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23769         * tests/test-obstack-printf.c: New file.
23770         * modules/obstack-printf-tests: Likewise.
23771         * modules/obstack-printf-posix-tests: Likewise.
23772
23773 2008-06-11  Bruno Haible  <bruno@clisp.org>
23774
23775         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23776         * lib/open.c: Include errno.h.
23777         (open): Fail when attempting to write to a file that has a trailing
23778         slash.
23779         * tests/test-open.c (main): Test against trailing slash bug.
23780         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23781
23782 2008-06-10  Bruno Haible  <bruno@clisp.org>
23783
23784         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23785         for $? to work inside the trap command, with various /bin/sh-s.
23786         * tests/test-vc-list-files-cvs.sh: Likewise.
23787
23788 2008-06-10  Bruno Haible  <bruno@clisp.org>
23789
23790         * lib/acl-internal.h: Don't include gettext.h here.
23791         * lib/set-mode-acl.c: Include gettext.h here.
23792         * lib/copy-acl.c: Likewise.
23793
23794 2008-06-10  Bruno Haible  <bruno@clisp.org>
23795
23796         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23797         * lib/wait-process.c (wait_subprocess): Likewise.
23798         * lib/execute.h (execute): Add termsigp argument.
23799         * lib/execute.c (execute): Likewise.
23800         * lib/csharpcomp.c (compile_csharp_using_pnet,
23801         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23802         * lib/csharpexec.c (execute_csharp_using_pnet,
23803         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23804         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23805         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23806         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23807         is_jikes_present): Update.
23808         * lib/javaexec.c (execute_java_class): Update.
23809         * lib/javaversion.c (execute_and_read_line): Update.
23810         * NEWS: Document the changes.
23811         Reported by Eric Blake.
23812
23813 2008-06-10  Eric Blake  <ebb9@byu.net>
23814
23815         Add missing include.
23816         * tests/test-strstr.c (includes): Add <signal.h>.
23817         * tests/test-strcasestr.c (includes): Likewise.
23818         * tests/test-memmem.c (includes): Likewise.
23819
23820 2008-06-10  Bruno Haible  <bruno@clisp.org>
23821
23822         * lib/wait-process.c (wait_subprocess): Add an assertion.
23823
23824 2008-06-10  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23827
23828 2008-06-10  Bruno Haible  <bruno@clisp.org>
23829
23830         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23831         using alarm().
23832         * tests/test-strcasestr.c (main): Likewise.
23833         * tests/test-strstr.c (main): Likewise.
23834
23835 2008-06-09  Bruno Haible  <bruno@clisp.org>
23836
23837         Work around the Solaris 10 ACE ACLs ABI change.
23838         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23839         declare if ACL_NO_TRIVIAL is present.
23840         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23841         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23842         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23843         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23844         define if ACL_NO_TRIVIAL is present.
23845         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23846         and use the current ABI.
23847         (file_has_acl): Use same #if condition as elsewhere.
23848         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23849         in use, and use the current ABI.
23850         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23851         Reported by Jim Meyering.
23852
23853 2008-06-09  Eric Blake  <ebb9@byu.net>
23854
23855         Work around environments that (stupidly) ignore SIGALRM.
23856         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23857         before using alarm().
23858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23860         Reported by Ian Beckwith <ianb@erislabs.net>.
23861
23862         Produce autobuild blurb earlier in log.
23863         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23864
23865 2008-06-09  Jim Meyering  <meyering@redhat.com>
23866         and Ondřej Vašík  <ovasik@redhat.com>
23867
23868         utimens.c: correct kernel bug work-around
23869         Ondřej Vašík found that the invalid return value of 280 indicates
23870         failure, not success, and the kernel bug we're trying to work
23871         around affects not just the utimensat call, but also the fallback
23872         futimens call.
23873         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23874         not success.
23875         [HAVE_FUTIMENS]: Use the same work-around, here.
23876
23877 2008-06-09  Jim Meyering  <meyering@redhat.com>
23878
23879         add more guards around definition of ACE_-related code
23880         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23881         ALLOW and ACE_OWNER are also defined.
23882
23883 2008-06-08  Bruno Haible  <bruno@clisp.org>
23884
23885         * lib/acl-internal.h: Add me as co-author.
23886         * lib/file-has-acl.c: Likewise.
23887         * lib/set-mode-acl.c: Likewise.
23888         * lib/copy-acl.c: Likewise.
23889
23890 2008-06-08  Bruno Haible  <bruno@clisp.org>
23891
23892         Add support for AIX ACLs.
23893         * lib/acl-internal.h (acl_nontrivial): New declaration.
23894         * lib/file-has-acl.c (acl_nontrivial): New function.
23895         (file_has_acl): Add implementation using AIX 4 ACL API.
23896         * lib/set-mode-acl.c (qset_acl): Likewise.
23897         * lib/copy-acl.c (qcopy_acl): Likewise.
23898
23899 2008-06-08  Bruno Haible  <bruno@clisp.org>
23900
23901         Add support for HP-UX ACLs.
23902         * lib/acl-internal.h (acl_nontrivial): New declaration.
23903         * lib/file-has-acl.c (acl_nontrivial): New function.
23904         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23905         * lib/set-mode-acl.c (qset_acl): Likewise.
23906         * lib/copy-acl.c (qcopy_acl): Likewise.
23907
23908 2008-06-08  Bruno Haible  <bruno@clisp.org>
23909
23910         Add support for Cygwin ACLs.
23911         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23912         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23913         the chmod_or_fchmod call.
23914         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23915
23916 2008-06-08  Bruno Haible  <bruno@clisp.org>
23917
23918         Fix bug with setuid modes in Solaris 10+ code.
23919         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23920         succeeded, when the mode contains some special bits.
23921
23922 2008-06-08  Bruno Haible  <bruno@clisp.org>
23923
23924         Add support for Solaris 7..10 ACLs.
23925         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23926         declarations.
23927         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23928         functions.
23929         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23930         * lib/set-mode-acl.c (qset_acl): Likewise.
23931         * lib/copy-acl.c (qcopy_acl): Likewise.
23932
23933 2008-06-08  Bruno Haible  <bruno@clisp.org>
23934
23935         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23936         declaration.
23937         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23938         (acl_access_nontrivial): Remove MacOS X case.
23939         (file_has_acl): Use acl_extended_nontrivial.
23940         * lib/copy-acl.c (qcopy_acl): Likewise.
23941
23942 2008-06-08  Bruno Haible  <bruno@clisp.org>
23943
23944         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23945
23946 2008-06-08  Jim Meyering  <meyering@redhat.com>
23947
23948         * modules/acl (Maintainer): Add Bruno Haible.
23949
23950 2008-06-07  Bruno Haible  <bruno@clisp.org>
23951
23952         Improve support for Tru64 ACLs.
23953         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23954         ACL on OSF/1.
23955
23956 2008-06-07  Bruno Haible  <bruno@clisp.org>
23957
23958         Add support for MacOS X ACLs.
23959         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23960         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23961         * lib/set-mode-acl.c (qset_acl): Likewise.
23962         * lib/copy-acl.c (qcopy_acl): Likewise.
23963
23964 2008-06-07  Bruno Haible  <bruno@clisp.org>
23965
23966         Fix memory leak introduced on 2008-05-22.
23967         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23968         use.
23969
23970 2008-06-07  Bruno Haible  <bruno@clisp.org>
23971
23972         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23973         to construct an empty ACL.
23974
23975 2008-06-07  Bruno Haible  <bruno@clisp.org>
23976
23977         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23978         precisely.
23979         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23980
23981 2008-06-07  Bruno Haible  <bruno@clisp.org>
23982
23983         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23984         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23985
23986 2008-06-07  Bruno Haible  <bruno@clisp.org>
23987
23988         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23989         regardless of POSIX.
23990         * doc/posix-functions/_longjmp.texi: Likewise.
23991         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23992         SystemV platform in this case.
23993
23994 2008-06-06  Eric Blake  <ebb9@byu.net>
23995
23996         Document abort() bugs.
23997         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23998
23999         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24000         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24001         sigsetjmp.
24002         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24003         siglongjmp, but only as a macro.
24004         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24005         is obsolete.
24006         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24007
24008         Tweak documentation to cover cygwin argz bugs.
24009         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24010         argz bug fix; no code change needed since no cygwin releases
24011         occurred between the last fix and the bug being tested.
24012         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24013         module and recently fixed cygwin bugs.
24014         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24015         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24016         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24017         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24018         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24019         Likewise.
24020         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24021         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24022         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24023         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24024         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24025         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24026         Likewise.
24027
24028         Avoid gcc warning on cygwin.
24029         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24030         !ACL_NO_TRIVIAL]: Avoid unused variable.
24031
24032 2008-06-05  Eric Blake  <ebb9@byu.net>
24033
24034         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24035         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24036         git-version-gen fails to come up with a version.
24037         Reported by Simon Josefsson.
24038
24039 2008-06-05  Jim Meyering  <meyering@redhat.com>
24040             Paul Eggert  <eggert@cs.ucla.edu>
24041
24042         utimens.c: work around a probable Linux kernel bug
24043         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24044         appears to be a kernel bug that causes utimensat to return 280
24045         instead of 0, indicating success.
24046
24047 2008-06-04  Bruno Haible  <bruno@clisp.org>
24048
24049         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24050         2008-06-01 commit.
24051
24052 2008-06-04  Bruno Haible  <bruno@clisp.org>
24053
24054         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24055         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24056         (file_has_acl): Use it. Save errno afterwards.
24057         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24058
24059 2008-06-03  Bruno Haible  <bruno@clisp.org>
24060
24061         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24062         draft code. Simplify #ifs.
24063         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24064         Put Solaris code after POSIX-draft code. Fix comments regarding
24065         Solaris 10, HP-UX. Mention Cygwin.
24066         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24067
24068 2008-06-03  Eric Blake  <ebb9@byu.net>
24069
24070         Provide fallback for older kernels.
24071         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24072         Provide runtime fallback if kernel lacks support.
24073         Reported by Mike Frysinger.
24074
24075 2008-06-02  Bruno Haible  <bruno@clisp.org>
24076
24077         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24078         it exists.
24079
24080 2008-06-02  Bruno Haible  <bruno@clisp.org>
24081
24082         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24083         * lib/copy-acl.c (qcopy_acl): Update comment.
24084
24085 2008-06-02  Bruno Haible  <bruno@clisp.org>
24086
24087         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24088         like ACL APIs.
24089
24090 2008-06-02  Bruno Haible  <bruno@clisp.org>
24091
24092         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24093         * tests/test-set-mode-acl.sh: Likewise.
24094         * tests/test-copy-acl.sh: Likewise.
24095         * tests/test-copy-file.sh: Likewise.
24096
24097 2008-06-02  Bruno Haible  <bruno@clisp.org>
24098
24099         * tests/test-file-has-acl.sh: Remove unused code.
24100
24101 2008-06-01  Bruno Haible  <bruno@clisp.org>
24102
24103         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24104         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24105         messages.
24106         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24107
24108 2008-06-01  Bruno Haible  <bruno@clisp.org>
24109
24110         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24111         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24112         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24113         APIs.
24114         * modules/acl-tests (configure.ac): Remove tests now contained in
24115         m4/acl.m4.
24116
24117 2008-06-02  Jim Meyering  <meyering@redhat.com>
24118
24119         announce-gen: use a better key-server host name
24120         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24121         it may be more consistently reliable.  Suggested by Werner Koch
24122         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24123
24124 2008-06-01  Bruno Haible  <bruno@clisp.org>
24125
24126         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24127         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24128
24129 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24130
24131         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24132
24133 2008-06-01  Bruno Haible  <bruno@clisp.org>
24134
24135         New ACL tests.
24136         * tests/test-file-has-acl.sh: New file.
24137         * tests/test-file-has-acl.c: New file.
24138         * tests/test-set-mode-acl.sh: New file.
24139         * tests/test-set-mode-acl.c: New file.
24140         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24141         * tests/test-copy-acl.c: New file.
24142         * modules/acl-tests: New file, based on modules/copy-file-tests.
24143         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24144         (Depends-on): Add acl-tests.
24145         (configure.ac): Remove checks.
24146         (Makefile.am): Don't create test-sameacls program here any more.
24147
24148 2008-06-01  Bruno Haible  <bruno@clisp.org>
24149
24150         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24151         * tests/test-sameacls.c: Include progname.h.
24152         (main): Invoke set_program_name. Portability fixes for MacOS X,
24153         Solaris, HP-UX.
24154
24155 2008-06-01  Bruno Haible  <bruno@clisp.org>
24156
24157         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24158         function.
24159         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24160
24161 2008-06-01  Bruno Haible  <bruno@clisp.org>
24162
24163         * modules/rpmatch (Depends-on): Add strdup.
24164
24165 2008-06-01  Bruno Haible  <bruno@clisp.org>
24166
24167         * lib/pipe.c: Include unistd-safer.h.
24168         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24169         * modules/pipe (Depends-on): Add unistd-safer.
24170
24171 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24172
24173         * modules/autobuild (configure.ac): Call AB_INIT.
24174
24175 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24176
24177         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24178         Suggested by Bruno Haible <bruno@clisp.org>.
24179
24180 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24181
24182         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24183         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24184         <bruno@clisp.org>.
24185
24186 2008-05-29  Eric Blake  <ebb9@byu.net>
24187
24188         Prefer new POSIX 200x interfaces over futimesat.
24189         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24190         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24191         when available.
24192         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24193
24194 2008-05-28  Bruno Haible  <bruno@clisp.org>
24195
24196         * modules/stpcpy (License): Change to LGPLv2+.
24197         Requested by David Lutterkort <dlutter@redhat.com>.
24198
24199 2008-05-27  Bruno Haible  <bruno@clisp.org>
24200
24201         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24202         current mingw.
24203         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24204
24205 2008-05-27  Bruno Haible  <bruno@clisp.org>
24206
24207         * modules/iconv_open (Link): New section, from module 'iconv'.
24208         * modules/striconv (Link): Likewise.
24209         * modules/striconveh (Link): Likewise.
24210         * modules/xstriconv (Link): Likewise.
24211         * modules/unicodeio (Link): Likewise.
24212         * modules/propername (Link): Likewise.
24213         Reported by Jim Meyering.
24214
24215 2008-05-26  Jim Meyering  <meyering@redhat.com>
24216
24217         sha256: do not artificially restrict buffer length to be < 2^32
24218         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24219         uint32_t to size_t.
24220         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24221         to match.
24222
24223         avoid unaligned access errors, e.g., on sparc
24224         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24225         direct access through a possibly-unaligned uint64* pointer.
24226         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24227         direct access through a possibly-unaligned uint32* pointer.
24228         Prompted by this patch from Tom "spot" Callaway:
24229         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24230
24231         sha512.c: fix typo in comment
24232         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24233
24234 2008-05-25  Bruno Haible  <bruno@clisp.org>
24235
24236         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24237         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24238         (Makefile.am): Update lib_SOURCES.
24239
24240 2008-05-25  Bruno Haible  <bruno@clisp.org>
24241
24242         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24243
24244 2008-05-25  Jim Meyering  <meyering@redhat.com>
24245
24246         useless-if-before-free: freed expr may have white-space differences
24247         * build-aux/useless-if-before-free: Recognize cases in which the
24248         freed expression differs from the tested one in embedded white
24249         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24250         $1 was used, so we can't make any regexp shy.  Improved tests now
24251         detect this.
24252
24253         useless-if-before-free: accept white space in the expression.
24254         * build-aux/useless-if-before-free: For now, any white space
24255         in the expression must be identical in the free argument.
24256
24257         useless-if-before-free: efficiency tweak
24258         * build-aux/useless-if-before-free: Make the expression-matching
24259         regexp "shy".
24260         Make the *outer* regexp shy, not the expr-matching one.
24261
24262         update code-in-comment to accept cast of free arg
24263         * build-aux/useless-if-before-free: Update regexp.
24264
24265 2008-05-25  Bruno Haible  <bruno@clisp.org>
24266
24267         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24268         * modules/copy-file-tests (Files, Makefile.am): Update.
24269         * tests/test-copy-file.c (func_test_copy): Update.
24270
24271 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24272
24273         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24274
24275 2008-05-23  Bruno Haible  <bruno@clisp.org>
24276
24277         Improve support for ACLs on OSF/1.
24278         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24279         Remove fallback for unknown flavors of ACLs.
24280
24281 2008-05-22  Bruno Haible  <bruno@clisp.org>
24282
24283         Add support for ACLs on OSF/1.
24284         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24285         replacements.
24286         (acl_free_text): New macro fallback.
24287         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24288         acl_free.
24289         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24290         acl_free_text function. Require AC_C_INLINE.
24291
24292 2008-05-22  Bruno Haible  <bruno@clisp.org>
24293
24294         Make copy_acl work on MacOS X 10.5.
24295         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24296         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24297         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24298         If MODE_INSIDE_ACL, don't assume that every system has the same text
24299         representation for ACLs as FreeBSD.
24300         * lib/copy-acl.c (copy_acl): Add support for platforms with
24301         !MODE_INSIDE_ACL.
24302         * lib/file-has-acl.c (file_has_acl): Likewise.
24303         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24304         FreeBSD, MacOS X, or IRIX, respectively.
24305
24306 2008-05-22  Bruno Haible  <bruno@clisp.org>
24307
24308         * lib/acl.h: Don't include <sys/acl.h>.
24309         (GETACLCNT): Move fallback to lib/acl-internal.h.
24310         * lib/acl-internal.h: Include <sys/acl.h> here.
24311         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24312
24313 2008-05-22  Bruno Haible  <bruno@clisp.org>
24314
24315         Split off copy_acl function to separate file.
24316         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24317         * lib/acl.c (copy_acl): Moved function to separate file.
24318         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24319         * modules/acl (Files): Add lib/copy-acl.c.
24320         (Makefiles.am): Augment lib_SOURCES.
24321
24322 2008-05-22  Bruno Haible  <bruno@clisp.org>
24323
24324         * modules/copy-file-tests: New file.
24325         * tests/test-copy-file.sh: New file.
24326         * tests/test-copy-file.c: New file.
24327         * tests/test-copy-file-sameacls.c: New file.
24328
24329 2008-05-22  Eric Blake  <ebb9@byu.net>
24330
24331         Avoid gcc warning.
24332         * tests/test-memcmp.c (main): Pass NULL indirectly.
24333
24334 2008-05-21  Bruno Haible  <bruno@clisp.org>
24335
24336         Add reference doc about ACLs.
24337         * doc/acl-resources.txt: New file.
24338         * doc/acl-cygwin.txt: New file.
24339
24340 2008-05-21  Bruno Haible  <bruno@clisp.org>
24341
24342         Avoid one more warning from gcc.
24343         * lib/vasnprintf.c (IF_LINT): Update comments.
24344         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24345
24346 2008-05-21  Jim Meyering  <meyering@redhat.com>
24347
24348         avoid a warning from gcc
24349         * lib/vasnprintf.c (IF_LINT): Define.
24350         (scale10_round_decimal_long_double):
24351         Use it to avoid a "may be used uninitialized" warning.
24352         (scale10_round_decimal_double): Likewise.
24353
24354 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24355
24356         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24357         declared.
24358
24359 2008-05-20  Bruno Haible  <bruno@clisp.org>
24360
24361         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24362         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24363
24364 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24365
24366         * modules/memcmp-tests: New file.
24367         * tests/test-memcmp.c: New file.
24368
24369 2008-05-19  Bruno Haible  <bruno@clisp.org>
24370
24371         * modules/propername (Notice, configure.ac): Put quoted "..." into
24372         --keyword option.
24373         * lib/propername.h: Update comments accordingly.
24374         Reported by Eric Blake.
24375
24376 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24377
24378         * modules/getpass-gnu (Depends-on): Add fseeko.
24379
24380 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24381
24382         * modules/base64-tests: New file.
24383
24384 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24385
24386         * lib/base64.c (base64_decode_ctx): If a decode context structure
24387         was passed in use it to ignore newlines.  If a context structure
24388         was _not_ passed in, continue to treat newlines as garbage (this
24389         is the historical behavior).  Formerly base64_decode.
24390         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24391         takes a decode context structure.
24392         * lib/base64.h (base64_decode): Macro for four-argument calls.
24393         (base64_decode_alloc): Likewise.
24394         * lib/base64.c (base64_decode_ctx): If a decode context structure
24395         was passed in use it to ignore newlines.  If a context structure
24396         was _not_ passed in, continue to treat newlines as garbage (this
24397         is the historical behavior).  Formerly base64_decode.
24398         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24399         takes a decode context structure.
24400         * lib/base64.h (base64_decode): Macro for four-argument calls.
24401         (base64_decode_alloc): Likewise.
24402
24403 2008-05-19  Jim Meyering  <meyering@redhat.com>
24404
24405         avoid a warning from gcc
24406         * lib/trim.c (IF_LINT): Define.
24407         (trim2): Use it to avoid a "may be used uninitialized" warning.
24408
24409         Fix doc typo.
24410         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24411
24412 2008-05-19  Bruno Haible  <bruno@clisp.org>
24413
24414         * doc/glibc-functions/getpass.texi: Document limits of other
24415         implementations.
24416
24417 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24418             Bruno Haible <bruno@clisp.org>
24419
24420         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24421
24422 2008-05-18  Bruno Haible  <bruno@clisp.org>
24423
24424         * modules/propername: New file, from GNU gettext.
24425         * lib/propername.h: New file, from GNU gettext.
24426         * lib/propername.c: New file, from GNU gettext.
24427         * MODULES.html.sh (Internationalization functions): Add propername.
24428
24429 2008-05-16  Jim Meyering  <meyering@redhat.com>
24430             Bruno Haible  <bruno@clisp.org>
24431
24432         Avoid some warnings from "gcc -Wshadow".
24433         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24434
24435 2008-05-15  Eric Blake  <ebb9@byu.net>
24436
24437         Extend previous patch to cygwin 1.7.0.
24438         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24439         fast implementation in cygwin >= 1.7.0.
24440         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24442
24443 2008-05-15  Bruno Haible  <bruno@clisp.org>
24444
24445         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24446         implementation in glibc >= 2.9.
24447         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24449
24450 2008-05-15  Bruno Haible  <bruno@clisp.org>
24451
24452         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24453         (Unicode string functions): Add unilbrk/*.
24454         Reported by Karl Berry.
24455
24456 2008-05-15  Eric Blake  <ebb9@byu.net>
24457
24458         Fix violation of <stdbool.h> replacement in regex.
24459         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24460         * lib/regexec.c (re_search_internal): Likewise.
24461         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24462
24463 2008-05-15  Jim Meyering  <meyering@redhat.com>
24464
24465         avoid distracting test output when git or cvs is not found
24466         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24467         * tests/test-vc-list-files-git.sh: Likewise.
24468
24469 2008-05-15  Eric Blake  <ebb9@byu.net>
24470
24471         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24472         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24473         glibc version.
24474         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24475         * doc/posix-functions/strstr.texi (strstr): Likewise.
24476         * lib/str-two-way.h (MAX): Sychronize with glibc.
24477
24478 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24479
24480         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24481         opr.ctx_type.
24482         (calc_first): Initialize constraint field.
24483         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24484         Fix grammar.
24485         (duplicate_node): Merge constraint field for all node types.
24486         (calc_eclosure_iter): Look at constraint field for all node types.
24487         * lib/regex_internal.c (create_cd_newstate): Don't look at
24488         opr.ctx_type.
24489
24490 2008-05-14  Bruno Haible  <bruno@clisp.org>
24491
24492         Help GCC to do better code generation.
24493         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24494         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24495         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24496         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24497         Declare with attribute 'malloc' if supported.
24498
24499 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24500
24501         use "echo STR|wc -c" rather than unportable "expr length STR"
24502         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24503         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24504
24505 2008-05-14  Jim Meyering  <meyering@redhat.com>
24506
24507         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24508         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24509         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24510         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24511         via Collin Lasse.
24512
24513 2008-05-14  Eric Blake  <ebb9@byu.net>
24514
24515         Avoid quadratic growth in gl_LIBSOURCES.
24516         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24517         Suggested by Bruno Haible.
24518
24519         Test xmemdup0.
24520         * modules/xmemdup0-tests: New file.
24521         * tests/test-xmemdup0.c: Likewise.
24522
24523 2008-05-13  Eric Blake  <ebb9@byu.net>
24524
24525         Split xmemdup0 into its own module.
24526         * modules/xmemdup0: New file.
24527         * lib/xmemdup0.h: Likewise.
24528         * lib/xmemdup0.c: Likewise.
24529         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24530         * lib/xalloc.h (xmemdup0): Remove.
24531         * lib/xmalloc.c (xmemdup0): Likewise.
24532
24533 2008-05-13  Eric Blake  <ebb9@byu.net>
24534             Bruno Haible  <bruno@clisp.org>
24535
24536         Reduce number of forks required during autoconf.
24537         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24538         and gl_LIBSOURCES_DIR.
24539         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24540         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24541         m4_syscmd per file.
24542         <m4_foreach_w>: Move...
24543         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24544
24545 2008-05-13  Eric Blake  <ebb9@byu.net>
24546
24547         * gnulib-tool: Fix various comment typos.
24548
24549 2008-05-12  Bruno Haible  <bruno@clisp.org>
24550
24551         Tailor the linebreaking algorithm.
24552         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24553
24554 2008-05-12  Bruno Haible  <bruno@clisp.org>
24555
24556         Update to Unicode 5.0.0.
24557         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24558         LBP_JV, LBP_JT. Redistribute values.
24559         (unilbrk_table): Change size.
24560         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24561         Unicode TR#14 rev. 22.
24562         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24563         LBP_JV, LBP_JT. Redistribute values.
24564         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24565         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24566         Update.
24567         * lib/unilbrk/lbrkprop1.h: Regenerated.
24568         * lib/unilbrk/lbrkprop2.h: Regenerated.
24569         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24570         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24571         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24572         Likewise.
24573         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24574         Likewise.
24575         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24576         result.
24577         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24578         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24579         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24580         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24581         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24582         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24583
24584 2008-05-11  Bruno Haible  <bruno@clisp.org>
24585
24586         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24587
24588 2008-05-11  Bruno Haible  <bruno@clisp.org>
24589
24590         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24591         * modules/unilbrk/gen-lbrk: New file.
24592
24593 2008-05-11  Bruno Haible  <bruno@clisp.org>
24594
24595         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24596         * m4/sha512.m4 (gl_SHA512): Likewise.
24597
24598 2008-05-11  Jim Meyering  <meyering@redhat.com>
24599
24600         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24601         * modules/crypto/sha256: New file.
24602         * modules/crypto/sha512: Likewise.
24603         * lib/sha256.c: Likewise.
24604         * lib/sha256.h: Likewise.
24605         * lib/sha512.c: Likewise.
24606         * lib/sha512.h: Likewise.
24607         * lib/u64.h: Likewise.
24608         * m4/sha256.m4: Likewise.
24609         * m4/sha512.m4: Likewise.
24610         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24611
24612 2008-05-10  Bruno Haible  <bruno@clisp.org>
24613
24614         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24615         (Input/Output <stdio.h>): Add xprintf.
24616         (Signal handling <signal.h>): Add strsignal.
24617         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24618         (Core language properties): Add func.
24619         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24620         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24621         strings.
24622         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24623         (Input/output): New section.
24624         (File system functions): Add openat-die, stat-macros.
24625         (Networking functions): Add sockets.
24626         (Unicode string functions): Add unictype/*.
24627         (Support for building libraries and executables): Add gperf.
24628         (Support for building documentation): Add agpl-3.0.
24629         (Misc): Add nocrash.
24630
24631 2008-05-10  Bruno Haible  <bruno@clisp.org>
24632
24633         * modules/unictype/gen-ctype: New file.
24634
24635 2008-05-10  Jim Meyering  <meyering@redhat.com>
24636
24637         Make chdir-safer.c more efficient on a system with no symlinks.
24638         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24639         also if ELOOP is zero.  Suggested by Bruno Haible.
24640
24641         Make chdir-safer.c slightly safer.
24642         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24643         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24644
24645         Avoid compile failure on systems without ELOOP (like mingw).
24646         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24647         Reported by Bruno Haible.
24648
24649 2008-05-10  Bruno Haible  <bruno@clisp.org>
24650
24651         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24652         (is_utf8_encoding): Use a case-insensitive comparison.
24653         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24654         streq.
24655
24656 2008-05-10  Bruno Haible  <bruno@clisp.org>
24657
24658         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24659         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24660         * lib/unilbrk/ulc-common.h (iconv_string_length,
24661         iconv_string_keeping_offsets): Remove declarations.
24662         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24663         Don't include <iconv.h>, streq.h, xsize.h.
24664         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24665         conversion.
24666         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24667         <iconv.h>, streq.h, xsize.h.
24668         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24669         conversion.
24670         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24671         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24672         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24673         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24674
24675 2008-05-10  Bruno Haible  <bruno@clisp.org>
24676
24677         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24678         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24679
24680         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24681         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24682
24683         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24684         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24685
24686         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24687         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24688
24689         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24690         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24691
24692         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24693         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24694
24695         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24696         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24697
24698         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24699         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24700
24701 2008-05-10  Bruno Haible  <bruno@clisp.org>
24702
24703         Split up 'linebreak' module.
24704         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24705         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24706         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24707         modifications.
24708         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24709         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24710         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24711         lib/linebreak.c.
24712         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24713         lib/linebreak.c.
24714         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24715         lib/linebreak.c.
24716         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24717         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24718         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24719         lib/linebreak.c.
24720         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24721         lib/linebreak.c.
24722         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24723         lib/linebreak.c.
24724         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24725         lib/linebreak.c.
24726         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24727         lib/linebreak.c.
24728         * modules/unilbrk/base: New file.
24729         * modules/unilbrk/tables: New file.
24730         * modules/unilbrk/u8-possible-linebreaks: New file.
24731         * modules/unilbrk/u16-possible-linebreaks: New file.
24732         * modules/unilbrk/u32-possible-linebreaks: New file.
24733         * modules/unilbrk/ulc-common: New file.
24734         * modules/unilbrk/ulc-possible-linebreaks: New file.
24735         * modules/unilbrk/u8-width-linebreaks: New file.
24736         * modules/unilbrk/u16-width-linebreaks: New file.
24737         * modules/unilbrk/u32-width-linebreaks: New file.
24738         * modules/unilbrk/ulc-width-linebreaks: New file.
24739         * lib/linebreak.h: Remove file.
24740         * lib/linebreak.c: Remove file.
24741         * m4/linebreak.m4: Remove file.
24742         * modules/linebreak: Remove file.
24743         * NEWS: Mention the changes.
24744
24745 2008-05-09  Eric Blake  <ebb9@byu.net>
24746
24747         Add xmemdup0.
24748         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24749         implementation.
24750         * lib/xmalloc.c (xmemdup0): New C implementation.
24751
24752 2008-05-08  Bruno Haible  <bruno@clisp.org>
24753
24754         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24755
24756 2008-05-07  Eric Blake  <ebb9@byu.net>
24757
24758         Support cross-compilation of <wctype.h>.
24759         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24760         AC_CACHE_CHECK.
24761
24762 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24763
24764         * build-aux/vc-list-files: Add support for bzr.
24765
24766 2008-05-03  Jim Meyering  <meyering@redhat.com>
24767
24768         avoid failed assertion with tight malloc
24769         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24770
24771 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24772
24773         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24774         are needed from arpa/inet.h.
24775         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24776         Reported by Bruno Haible.
24777
24778 2008-05-02  Jim Meyering  <meyering@redhat.com>
24779
24780         avoid compilation error on FreeBSD 6
24781         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24782
24783 2008-05-01  Jim Meyering  <meyering@redhat.com>
24784
24785         useless-if-before-free: correct --help's exit status description
24786         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24787         for one or more matches, etc.  Reported by Bruno Haible.
24788
24789         vc-list-files: make the stand-alone gnulib test work
24790         * modules/vc-list-files-tests (configure.ac):
24791         Define and AC_SUBST abs_aux_dir.
24792         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24793         $(abs_top_srcdir) to each script and having each of them
24794         duplicate the work of setting PATH, set PATH here, using
24795         the new variable, abs_aux_dir instead.
24796         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24797         * tests/test-vc-list-files-git.sh: Likewise.
24798         Reported by Bruno Haible.
24799
24800 2008-05-01  Bruno Haible  <bruno@clisp.org>
24801
24802         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24803         reallocation. Rename 'done' to 'found_delimiter'.
24804
24805 2008-05-01  Jim Meyering  <meyering@redhat.com>
24806
24807         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24808         * build-aux/vc-list-files: Use `...`, not $(...).
24809
24810 2008-04-30  Jim Meyering  <meyering@redhat.com>
24811
24812         add tests for vc-list-files
24813         * modules/vc-list-files-tests: New module.
24814         * tests/test-vc-list-files-cvs.sh: New file.
24815         * tests/test-vc-list-files-git.sh: New file.
24816
24817         avoid a warning from gcc
24818         * lib/getndelim2.c (IF_LINT): Define.
24819         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24820
24821         vc-list-files: work properly with build-aux/cvsu, too
24822         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24823         to all cvs-based clauses.
24824
24825         vc-list-files: work properly in the CVS+awk case, too
24826         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24827
24828         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24829         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24830         take more than one file argument, so .  Add quotes, just in case $dir
24831         ever contains a shell meta-character.  Prompted by Soren Hansen in
24832         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24833
24834 2008-04-29  Eric Blake  <ebb9@byu.net>
24835
24836         Optimize getndelim2 to use block operations when possible.
24837         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24838         freadseek, and memchr2.
24839         * lib/getndelim2.c (getndelim2): Use them for block reads.
24840
24841 2008-04-29  Bruno Haible  <bruno@clisp.org>
24842
24843         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24845         * modules/inet_ntop (Depends-on): Add extensions.
24846         * modules/inet_pton (Depends-on): Likewise.
24847         Reported by Simon Josefsson.
24848
24849 2008-04-29  Jim Meyering  <meyering@redhat.com>
24850
24851         When the is more than one match in a block, match all of them.
24852         * build-aux/useless-if-before-free: Iterate through each block
24853         until there are no more matches.
24854
24855         Fix broken useless-if-before-free script.
24856         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24857         the expression to match cast of argument to free-like function.
24858
24859 2008-04-29  Eric Blake  <ebb9@byu.net>
24860
24861         Use new header.
24862         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24863
24864 2008-04-29  Jim Meyering  <meyering@redhat.com>
24865
24866         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24867         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24868         by gnulib to exist and to declare e.g., inet_ntop.
24869         Don't include "inet_ntop.h", now removed.
24870
24871         * m4/arpa_inet_h.m4: Remove trailing blanks.
24872
24873 2008-04-29  Eric Blake  <ebb9@byu.net>
24874
24875         Silence valgrind on safe reads beyond potential array bounds.
24876         * lib/rawmemchr.valgrind: New file.
24877         * lib/strchrnul.valgrind: Likewise.
24878         * modules/rawmemchr (Files): Distribute new file.
24879         * modules/strchrnul (Files): Likewise.
24880         Suggested by Bruno Haible.
24881
24882 2008-04-29  Bruno Haible  <bruno@clisp.org>
24883
24884         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24885         (inet_ntop, inet_pton): Change portability warning's wording.
24886         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24887         Invoke gl_CHECK_NEXT_HEADERS.
24888         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24889         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24890         set ARPA_INET_H.
24891         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24892         * modules/arpa_inet (Description): No longer only for systems that
24893         lack it.
24894         (Depends-on): Add include_next.
24895         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24896         HAVE_ARPA_INET_H.
24897
24898 2008-04-29  Jim Meyering  <meyering@redhat.com>
24899
24900         * modules/mkdir (License): Re-license as LGPLv2+.
24901
24902 2008-04-29  Bruno Haible  <bruno@clisp.org>
24903
24904         * modules/rawmemchr (Maintainer): Set to Eric.
24905         * modules/strchrnul (Maintainer): Likewise.
24906
24907 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24908
24909         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24910         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24911
24912         * modules/arpa_inet (arpa/inet.h): Use them.
24913
24914 2008-04-28  Eric Blake  <ebb9@byu.net>
24915
24916         Test getndelim2.
24917         * modules/getndelim2-tests: New file.
24918         * tests/test-getndelim2.c: Likewise.
24919         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24920         stream.
24921         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24922
24923         * MODULES.html.sh: Document new module.
24924
24925 2008-04-20  Bruno Haible  <bruno@clisp.org>
24926
24927         * lib/c-stack.c (die): Use raise.
24928         * modules/c-stack (Depends-on): Add raise.
24929
24930 2008-04-28  Bruno Haible  <bruno@clisp.org>
24931
24932         Expect rpmatch to be declared.
24933         * lib/yesno.c (rpmatch): Remove declaration.
24934
24935         Declare rpmatch.
24936         * lib/stdlib.in.h (rpmatch): New declaration.
24937         * lib/rpmatch.c: Include <stdlib.h> first.
24938         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24939         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24941         HAVE_RPMATCH.
24942         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24944         (Include): Set to <stdlib.h>.
24945         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24946         HAVE_RPMATCH.
24947         * NEWS: Document the change.
24948
24949 2008-04-28  Bruno Haible  <bruno@clisp.org>
24950
24951         Change rpmatch to use nl_langinfo when appropriate.
24952         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24953         (N_): New macro.
24954         (localized_pattern): New function/macro.
24955         (try): Remove match, nomatch arguments. Copy the pattern into safe
24956         memory before caching it.
24957         (rpmatch): Use localized_pattern. Add translator comments.
24958         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24959         Suggested by Eric Blake.
24960         * modules/rpmatch (Depends-on): Add stdbool.
24961
24962 2008-04-28  Eric Blake  <ebb9@byu.net>
24963
24964         Add rawmemchr module, matching glibc.
24965         * modules/string (Makefile.am): New indicator.
24966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24967         * lib/string.in.h (rawmemchr): Declare when appropriate.
24968         * modules/rawmemchr: New file.
24969         * m4/rawmemchr.m4: Likewise.
24970         * lib/rawmemchr.c: Likewise.
24971         * modules/rawmemchr-tests: Likewise.
24972         * tests/test-rawmemchr.c: Likewise.
24973         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24974         module.
24975         * modules/strchrnul (Depends-on): Add rawmemchr.
24976         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24977
24978         Whitespace cleanup.
24979         * tests/test-strchrnul.c: Reindent.
24980         * lib/strchrnul.c: Likewise.
24981
24982         Optimize and test strchrnul.
24983         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24984         * modules/strchrnul-tests: New file.
24985         * tests/test-strchrnul.c: Likewise.
24986
24987         Remove intprops dependency.
24988         * modules/memchr (Depends-on): Remove intprops.
24989         * modules/memrchr (Depends-on): Likewise.
24990         * modules/memchr2 (Depends-on): Likewise.
24991         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24992         * lib/memrchr.c (__memrchr): Likewise.
24993         * lib/memrchr2.c (memchr2): Likewise.
24994         Reported by Simon Josefsson.
24995
24996 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24997
24998         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24999         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25000
25001 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25002
25003         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25004
25005         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25006
25007         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25008
25009         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25010         declarations.
25011         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25012
25013         * m4/inet_pton.m4: Don't check for header files.
25014
25015         * m4/inet_ntop.m4: Don't check for header files.
25016
25017 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25018
25019         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25020         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25021         trigger for cygwin).
25022         Reported by Bruno Haible  <bruno@clisp.org>.
25023
25024 2008-04-28  Bruno Haible  <bruno@clisp.org>
25025
25026         * doc/posix-functions/strdup.texi: Mention mingw problem.
25027
25028 2008-04-27  Bruno Haible  <bruno@clisp.org>
25029
25030         * modules/stat-time-tests (Depends-on): Add sleep.
25031         * tests/test-stat-time.c (force_unlink): New function.
25032         (cleanup): Use it.
25033         (test_mtime): Remove the ctime related tests.
25034         (test_ctime): New function, containing the ctime related tests.
25035         (main): Call test_ctime, except on native Windows platforms.
25036
25037 2008-04-27  Bruno Haible  <bruno@clisp.org>
25038
25039         * lib/rpmatch.c (rpmatch): Add some comments.
25040         Reported by James Youngman <jay@gnu.org>.
25041
25042 2008-04-27  Bruno Haible  <bruno@clisp.org>
25043
25044         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25045         quiet NaNs.
25046
25047 2008-04-27  Bruno Haible  <bruno@clisp.org>
25048
25049         Make test-yesno.sh work on mingw.
25050         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25051         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25052         (main): Set stdin to binary mode.
25053         * modules/yesno-tests (Depends-on): Add binary-io.
25054
25055 2008-04-27  Bruno Haible  <bruno@clisp.org>
25056
25057         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25058         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25059         argument that lie outside the IEEE 854 domain.
25060         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25061         (gl_ISFINITE): Use it.
25062         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25063
25064 2008-04-27  Bruno Haible  <bruno@clisp.org>
25065
25066         Allow local renaming in config.h.
25067         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25068
25069 2008-04-27  Bruno Haible  <bruno@clisp.org>
25070
25071         * lib/memchr.c (__memchr): Change type of 'i'.
25072         * lib/memchr2.c (memchr2): Likewise.
25073
25074 2008-04-26  Eric Blake  <ebb9@byu.net>
25075         and Bruno Haible  <bruno@clisp.org>
25076
25077         Optimize and test memrchr.
25078         * modules/memrchr (Depends-on): Add intprops.
25079         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25080         * modules/memrchr-tests: New file.
25081         * tests/test-memrchr.c: New file.
25082
25083 2008-04-26  Bruno Haible  <bruno@clisp.org>
25084
25085         Add tentative support for DragonFly BSD.
25086         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25087         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25088         fp.
25089         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25090         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25091         * lib/fpurge.c (fpurge): Likewise.
25092         * lib/freadable.c (freaadable): Likewise.
25093         * lib/freadahead.c (freadahead): Likewise.
25094         * lib/freading.c (freading): Likewise.
25095         * lib/freadptr.c (freadptr): Likewise.
25096         * lib/freadseek.c (freadptrinc): Likewise.
25097         * lib/fseeko.c (fseeko): Likewise.
25098         * lib/fseterr.c (fseterr): Likewise.
25099         * lib/fwritable.c (fwritable): Likewise.
25100         * lib/fwriting.c (fwriting): Likewise.
25101
25102 2008-04-26  Bruno Haible  <bruno@clisp.org>
25103
25104         * lib/stdio-impl.h: New file.
25105         * lib/fbufmode.c: Include stdio-impl.h.
25106         (fbufmode): Use fp_, remove redundant #defines.
25107         * lib/fflush.c: Include stdio-impl.h.
25108         (clear_ungetc_buffer): Remove redundant #defines.
25109         * lib/fpurge.c: Include stdio-impl.h.
25110         (fpurge): Remove redundant #defines.
25111         * lib/freadable.c: Include stdio-impl.h.
25112         (freadable): Remove redundant #defines.
25113         * lib/freadahead.c: Include stdio-impl.h.
25114         (freadahead): Remove redundant #defines.
25115         * lib/freading.c: Include stdio-impl.h.
25116         (freading): Remove redundant #defines.
25117         * lib/freadptr.c: Include stdio-impl.h.
25118         (freadptr): Remove redundant #defines.
25119         * lib/freadseek.c: Include stdio-impl.h.
25120         (freadptrinc): Remove redundant #defines.
25121         * lib/fseeko.c: Include stdio-impl.h.
25122         (rpl_fseeko): Remove redundant #defines.
25123         * lib/fseterr.c: Include stdio-impl.h.
25124         (fseterr): Remove redundant #defines.
25125         * lib/fwritable.c: Include stdio-impl.h.
25126         (fwritable: Remove redundant #defines.
25127         * lib/fwriting.c: Include stdio-impl.h.
25128         (fwriting): Remove redundant #defines.
25129         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25130         * modules/fflush (Files): Likewise.
25131         * modules/fpurge (Files): Likewise.
25132         * modules/freadable (Files): Likewise.
25133         * modules/freadahead (Files): Likewise.
25134         * modules/freading (Files): Likewise.
25135         * modules/freadptr (Files): Likewise.
25136         * modules/freadseek (Files): Likewise.
25137         * modules/fseeko (Files): Likewise.
25138         * modules/fseterr (Files): Likewise.
25139         * modules/fwritable (Files): Likewise.
25140         * modules/fwriting (Files): Likewise.
25141
25142 2008-04-26  Bruno Haible  <bruno@clisp.org>
25143
25144         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25145         restore_seek_optimization, update_fpos_cache): New functions, extracted
25146         from rpl_fflush.
25147         (rpl_fflush): Use them.
25148         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25149         (gl_REPLACE_FFLUSH): Use it.
25150
25151 2008-04-26  Bruno Haible  <bruno@clisp.org>
25152
25153         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25154         on Solaris.
25155         * tests/test-xstrtoimax.sh: Likewise.
25156         * tests/test-xstrtoumax.sh: Likewise.
25157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25158
25159 2008-04-26  Bruno Haible  <bruno@clisp.org>
25160
25161         * modules/memchr-tests: New file.
25162         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25163
25164 2008-04-26  Eric Blake  <ebb9@byu.net>
25165             Bruno Haible  <bruno@clisp.org>
25166
25167         * lib/memchr.c: Include intprops.h.
25168         (__memchr): Optimize parallel detection of matching bytes. Rename local
25169         variables. Add explanatory comments.
25170
25171 2008-04-26  Bruno Haible  <bruno@clisp.org>
25172
25173         Fix module 'memchr', broken since 2000-10-28.
25174         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25175
25176 2008-04-26  Bruno Haible  <bruno@clisp.org>
25177
25178         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25179         comments.
25180
25181 2008-04-25  Eric Blake  <ebb9@byu.net>
25182
25183         Use native fstatat on cygwin 1.7.0.
25184         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25185         first.
25186
25187 2008-04-23  Eric Blake  <ebb9@byu.net>
25188
25189         Improve memchr2 performance.
25190         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25191         NUL bytes.
25192         * modules/memchr2 (Depends-on): Use intprops.h.
25193
25194 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25195
25196         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25197         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25198         <blp@cs.stanford.edu>.
25199
25200 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25201
25202         * lib/arpa_inet.in.h: New file.
25203
25204         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25205         (Makefile.am): Sed in substitute header file.
25206
25207         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25208         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25209
25210         * modules/inet_ntop (configure.ac): Use
25211         gl_ARPA_INET_MODULE_INDICATOR.
25212
25213         * modules/inet_pton (configure.ac): Use
25214         gl_ARPA_INET_MODULE_INDICATOR.
25215
25216 2008-04-22  Jim Meyering  <meyering@redhat.com>
25217
25218         * modules/verify (License): Re-license as LGPLv2+.
25219
25220 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25221
25222         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25223         parameter to void* as per POSIX standard (MinGW uses char*).
25224
25225 2008-04-21  Bruno Haible  <bruno@clisp.org>
25226
25227         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25228         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25229         Define to replacements if REPLACE_ISWCNTRL is 1.
25230         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25231         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25232         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25233         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25234         what it fixes.
25235         * doc/posix-functions/iswalpha.texi: Likewise.
25236         * doc/posix-functions/iswblank.texi: Likewise.
25237         * doc/posix-functions/iswcntrl.texi: Likewise.
25238         * doc/posix-functions/iswdigit.texi: Likewise.
25239         * doc/posix-functions/iswgraph.texi: Likewise.
25240         * doc/posix-functions/iswlower.texi: Likewise.
25241         * doc/posix-functions/iswprint.texi: Likewise.
25242         * doc/posix-functions/iswpunct.texi: Likewise.
25243         * doc/posix-functions/iswspace.texi: Likewise.
25244         * doc/posix-functions/iswupper.texi: Likewise.
25245         * doc/posix-functions/iswxdigit.texi: Likewise.
25246         Reported by Alain Guibert.
25247
25248 2008-04-21  Bruno Haible  <bruno@clisp.org>
25249
25250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25251         Patch by Alain Guibert.
25252
25253 2008-04-21  Bruno Haible  <bruno@clisp.org>
25254
25255         Fix test failures on mingw.
25256         * tests/test-xstrtol.c (print_no_progname): New function.
25257         (main): Install it in error_print_progname hook.
25258         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25259         * tests/test-xstrtoimax.sh: Likewise.
25260         * tests/test-xstrtoumax.sh: Likewise.
25261
25262 2008-04-21  Bruno Haible  <bruno@clisp.org>
25263
25264         Fix test failure on mingw.
25265         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25266
25267 2008-04-21  Bruno Haible  <bruno@clisp.org>
25268
25269         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25270         Actually assign a value.
25271
25272 2008-04-20  Bruno Haible  <bruno@clisp.org>
25273
25274         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25275         take 2.
25276         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25277         'canonicalize-lgpl' module is also used.
25278         * lib/canonicalize-lgpl.c: Undo last change.
25279         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25280
25281 2008-04-20  Bruno Haible  <bruno@clisp.org>
25282
25283         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25284         config.h. Provide _mkdir based fallback for mingw.
25285         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25286         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25287         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25288         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25289         rather than defining mkdir in config.h.
25290         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25291         (gl_SYS_STAT_H_DEFAULTS): New macro.
25292         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25293         HAVE_IO_H any more.
25294         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25295         HAVE_DECL_MKDIR and HAVE_IO_H.
25296
25297 2008-04-20  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/isapipe.c: Port to native Windows platforms.
25300
25301 2008-04-20  Bruno Haible  <bruno@clisp.org>
25302
25303         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25304
25305 2008-04-21  Eric Blake  <ebb9@byu.net>
25306
25307         Work around preprocessors that don't handle UINTMAX_MAX.
25308         * lib/memchr2.c (memchr2): Avoid embedded #if.
25309         Reported by Alain Guibert, fix suggested by Bruno Haible.
25310
25311 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25312
25313         * doc/posix-functions/strftime.texi (strftime): Explain better
25314         Windows incompatibility.  Suggested by Micah Cowan
25315         <micah@cowan.name>.
25316
25317 2008-04-20  Bruno Haible  <bruno@clisp.org>
25318
25319         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25320         unistr/u8-mblen.
25321
25322 2008-04-20  Bruno Haible  <bruno@clisp.org>
25323
25324         Fix test failure on platforms with non-GNU iconv.
25325         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25326         (U_TO_U8): Use it, rather than u16_to_u8.
25327         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25328         units at the end of the input string.
25329         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25330
25331 2008-04-20  Bruno Haible  <bruno@clisp.org>
25332
25333         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25334         when the resulting length is 0.
25335         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25336
25337 2008-04-20  Bruno Haible  <bruno@clisp.org>
25338
25339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25340         works.
25341         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25342
25343 2008-04-20  Bruno Haible  <bruno@clisp.org>
25344
25345         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25346         * modules/tsearch-tests (configure.ac): Test for initstate function.
25347
25348 2008-04-20  Bruno Haible  <bruno@clisp.org>
25349
25350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25351         for nlink_t if missing.
25352         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25353
25354 2008-04-19  Bruno Haible  <bruno@clisp.org>
25355
25356         Work around snprintf bug on Linux libc5.
25357         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25359         gl_SNPRINTF_SIZE1.
25360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25361         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25362         that test failed.
25363         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25364         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25365         * modules/snprintf (Files): Add m4/printf.m4.
25366         * modules/vsnprintf (Files): Likewise.
25367         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25368         * doc/posix-functions/vsnprintf.texi: Likewise.
25369
25370 2008-04-19  Bruno Haible  <bruno@clisp.org>
25371
25372         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25373         from 0.0058 to less than 10^-7.
25374
25375 2008-04-19  Bruno Haible  <bruno@clisp.org>
25376
25377         Fix rounding when a precision is given.
25378         * lib/vasnprintf.c (is_borderline): New function.
25379         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25380         9...9x.
25381         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25382         %e, %g.
25383         * tests/test-vasprintf-posix.c (test_function): Likewise.
25384         * tests/test-snprintf-posix.h (test_function): Likewise.
25385         * tests/test-sprintf-posix.h (test_function): Likewise.
25386         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25387         * tests/test-printf-posix.h (test_function): Likewise.
25388         * tests/test-printf-posix.output: Update.
25389         Reported by John Darrington <john@darrington.wattle.id.au> via
25390         Ben Pfaff <blp@cs.stanford.edu>.
25391
25392 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25393
25394         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25395         Suggested by Bruno Haible <bruno@clisp.org>.
25396
25397 2008-04-17  Bruno Haible  <bruno@clisp.org>
25398
25399         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25400         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25401         implementation.
25402         Patch by Bruce Merry <bmerry@gmail.com>.
25403
25404 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25405
25406         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25407         doesn't work under Windows.
25408
25409 2008-04-16  Bruno Haible  <bruno@clisp.org>
25410
25411         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25412         New macros.
25413         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25414         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25415         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25416         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25417         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25418         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25419         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25420         macros.
25421         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25422         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25423         Northern Sotho, Uighur.
25424
25425 2008-04-16  Bruno Haible  <bruno@clisp.org>
25426
25427         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25428         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25429         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25430         Reported by Daniel Bergström <daniel@octocode.com>.
25431
25432 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25433             Bruno Haible  <bruno@clisp.org>
25434
25435         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25436         function.
25437         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25438         New functions, mostly extracted from gl_locale_name_default.
25439         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25440
25441 2008-04-16  Eric Blake  <ebb9@byu.net>
25442
25443         Adjust strtod detection to catch glibc 2.7 bug.
25444         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25445         Reported by John Gatewood Ham.
25446
25447 2008-04-16  Bruno Haible  <bruno@clisp.org>
25448
25449         Add tentative support for Linux libc5.
25450         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25451         * lib/fpurge.c (fpurge): Likewise.
25452         * lib/freadable.c (freadable): Likewise.
25453         * lib/freadahead.c (freadahead): Likewise.
25454         * lib/freading.c (freading): Likewise.
25455         * lib/freadptr.c (freadptr): Likewise.
25456         * lib/freadseek.c (freadptrinc): Likewise.
25457         * lib/fseeko.c (rpl_fseeko): Likewise.
25458         * lib/fseterr.c (fseterr): Likewise.
25459         * lib/fwritable.c (fwritable): Likewise.
25460         * lib/fwriting.c (fwriting): Likewise.
25461         Reported by Alain Guibert <alguibert+bts@free.fr>.
25462
25463 2008-04-15  Bruno Haible  <bruno@clisp.org>
25464
25465         * modules/mathl (configure.ac): Define module indicator.
25466
25467 2008-04-15  Bruno Haible  <bruno@clisp.org>
25468
25469         * lib/logl.c (logl): Remove unused variables.
25470
25471 2008-04-15  Bruno Haible  <bruno@clisp.org>
25472
25473         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25474         fails.
25475
25476 2008-04-15  Bruno Haible  <bruno@clisp.org>
25477
25478         * lib/trim.c (trim2): Fix argument of isspace() macro.
25479
25480 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25481
25482         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25483         to 0.
25484         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25485
25486 2008-04-14  Bruno Haible  <bruno@clisp.org>
25487
25488         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25489         AC_LANG_PROGRAM argument.
25490         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25491         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25493         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25494         * m4/math_h.m4 (gl_MATH_H): Likewise.
25495         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25497         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25498         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25499         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25500         * m4/regex.m4 (gl_REGEX): Likewise.
25501         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25502         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25504         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25505         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25507         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25509
25510 2008-04-14  Jim Meyering  <meyering@redhat.com>
25511
25512         test-strtod: fix typos: s/abs/fabs/
25513         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25514
25515 2008-04-13  Bruno Haible  <bruno@clisp.org>
25516
25517         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25518         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25519         module is also used and while not building the reloc-wrapper.
25520
25521 2008-04-13  Bruno Haible  <bruno@clisp.org>
25522
25523         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25524
25525 2008-04-13  Bruno Haible  <bruno@clisp.org>
25526
25527         Fix AIX compilation failure introduced on 2008-04-02.
25528         * tests/test-frexp.c (exp): Undefine before redefining.
25529         * tests/test-frexpl.c (exp): Likewise.
25530
25531 2008-04-13  Bruno Haible  <bruno@clisp.org>
25532
25533         Work around a HP-UX stdio bug.
25534         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25535         * tests/test-ftello.c (main): Likewise.
25536         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25537         * doc/posix-functions/ftello.texi: Likewise.
25538
25539 2008-04-13  Bruno Haible  <bruno@clisp.org>
25540
25541         Make test-signbit pass on HP-UX/hppa.
25542         * tests/test-signbit.c (minus_zerol): New variable.
25543         (test_signbitl): Use it.
25544
25545 2008-04-13  Bruno Haible  <bruno@clisp.org>
25546
25547         Make truncl work on OSF/1 4.0.
25548         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25549         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25550         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25552         HAVE_DECL_TRUNCL.
25553         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25554         HAVE_DECL_TRUNCL.
25555         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25556
25557 2008-04-13  Bruno Haible  <bruno@clisp.org>
25558
25559         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25560
25561 2008-04-13  Bruno Haible  <bruno@clisp.org>
25562
25563         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25564         expression, so as to avoid HP-UX 11 cc compiler bug.
25565
25566 2008-04-13  Bruno Haible  <bruno@clisp.org>
25567
25568         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25569
25570 2008-04-13  Bruno Haible  <bruno@clisp.org>
25571
25572         * lib/git-merge-changelog.c: Remove empty declaration outside of
25573         functions.
25574
25575 2008-04-13  Bruno Haible  <bruno@clisp.org>
25576
25577         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25578
25579 2008-04-13  Bruno Haible  <bruno@clisp.org>
25580
25581         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25582         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25584         also if it exists but lacks definitions of the SHUT_* macros.
25585         * modules/sys_socket (Description): Update.
25586         Reported by Elbert Pol <e.pol@chello.nl>.
25587
25588 2008-04-13  Bruno Haible  <bruno@clisp.org>
25589
25590         * lib/localcharset.c (OS2): Don't redefine if already defined.
25591         Reported by Elbert Pol <e.pol@chello.nl>.
25592
25593 2008-04-13  Bruno Haible  <bruno@clisp.org>
25594
25595         * lib/binary-io.h [__EMX__]: Include <io.h>.
25596         Reported by Elbert Pol <e.pol@chello.nl>.
25597
25598 2008-04-12  Bruno Haible  <bruno@clisp.org>
25599
25600         * lib/fpucw.h: Enable the definitions also for x86_64.
25601         Needed for NetBSD/x86_64.
25602         Reported by Thomas Klausner <tk@giga.or.at>.
25603
25604 2008-04-12  Bruno Haible  <bruno@clisp.org>
25605
25606         * tests/test-strtod.c: Include isnand.h.
25607         (main): Use isnand instead of isnan.
25608         Reported by Jim Meyering.
25609
25610 2008-04-12  Bruno Haible  <bruno@clisp.org>
25611
25612         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25613         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25614
25615 2008-04-12  Jim Meyering  <meyering@redhat.com>
25616
25617         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25618
25619 2008-04-12  Bruno Haible  <bruno@clisp.org>
25620
25621         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25622         Reported by Elbert Pol <e.pol@chello.nl>.
25623
25624 2008-04-12  Eric Blake  <ebb9@byu.net>
25625
25626         Work around Solaris 10 math.h bug.
25627         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25628         (gl_MATH_H_DEFAULTS): Set up default.
25629         * modules/math (Makefile.am): Replace new indicators.
25630         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25631         * tests/test-math.c (main): Test this.
25632         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25633         * doc/posix-headers/math.texi (math.h): Mention bug.
25634         Reported by Nelson H. F. Beebe and Jim Meyering.
25635
25636 2008-04-11  Bruno Haible  <bruno@clisp.org>
25637
25638         Adapt to future versions of Apple GCC.
25639         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25640         Reported by Peter O'Gorman <peter@pogma.com>.
25641
25642 2008-04-11  Bruno Haible  <bruno@clisp.org>
25643
25644         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25645
25646 2008-04-11  Bruno Haible  <bruno@clisp.org>
25647
25648         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25649
25650         * modules/getaddrinfo-tests (Makefile.am): Define
25651         test_getaddrinfo_LDADD.
25652
25653 2008-04-11  Bruno Haible  <bruno@clisp.org>
25654
25655         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25656         (init): Fix syntax error.
25657         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25658         is declared.
25659
25660 2008-04-11  Bruno Haible  <bruno@clisp.org>
25661
25662         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25663         * modules/glob (Depends-on): Add stdbool.
25664
25665 2008-04-11  Bruno Haible  <bruno@clisp.org>
25666
25667         * lib/trim.c: Include <string.h>.
25668
25669 2008-04-11  Eric Blake  <ebb9@byu.net>
25670
25671         Avoid compile failure on OS/2.
25672         * lib/regex_internal.h (internal_function): Disable optimization
25673         on OS/2 (__EMX__), where it caused compiler error.
25674         Reported by Elbert Pol.
25675
25676 2008-04-11  Bruno Haible  <bruno@clisp.org>
25677
25678         Flush the standard error stream before aborting. Needed on mingw.
25679         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25680         * tests/test-array_list.c (ASSERT): Likewise.
25681         * tests/test-array_oset.c (ASSERT): Likewise.
25682         * tests/test-avltree_list.c (ASSERT): Likewise.
25683         * tests/test-avltree_oset.c (ASSERT): Likewise.
25684         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25685         * tests/test-binary-io.c (ASSERT): Likewise.
25686         * tests/test-byteswap.c (ASSERT): Likewise.
25687         * tests/test-c-ctype.c (ASSERT): Likewise.
25688         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25689         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25690         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25691         * tests/test-c-strstr.c (ASSERT): Likewise.
25692         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25693         * tests/test-canonicalize.c (ASSERT): Likewise.
25694         * tests/test-carray_list.c (ASSERT): Likewise.
25695         * tests/test-ceilf1.c (ASSERT): Likewise.
25696         * tests/test-ceilf2.c (ASSERT): Likewise.
25697         * tests/test-ceill.c (ASSERT): Likewise.
25698         * tests/test-count-one-bits.c (ASSERT): Likewise.
25699         * tests/test-fbufmode.c (ASSERT): Likewise.
25700         * tests/test-fflush2.c (ASSERT): Likewise.
25701         * tests/test-floorf1.c (ASSERT): Likewise.
25702         * tests/test-floorf2.c (ASSERT): Likewise.
25703         * tests/test-floorl.c (ASSERT): Likewise.
25704         * tests/test-fopen.c (ASSERT): Likewise.
25705         * tests/test-fpending.c (ASSERT): Likewise.
25706         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25707         * tests/test-fpurge.c (ASSERT): Likewise.
25708         * tests/test-freadable.c (ASSERT): Likewise.
25709         * tests/test-freadahead.c (ASSERT): Likewise.
25710         * tests/test-freading.c (ASSERT): Likewise.
25711         * tests/test-freadptr.c (ASSERT): Likewise.
25712         * tests/test-freadptr2.c (ASSERT): Likewise.
25713         * tests/test-freadseek.c (ASSERT): Likewise.
25714         * tests/test-freopen.c (ASSERT): Likewise.
25715         * tests/test-frexp.c (ASSERT): Likewise.
25716         * tests/test-frexpl.c (ASSERT): Likewise.
25717         * tests/test-fseek.c (ASSERT): Likewise.
25718         * tests/test-fseeko.c (ASSERT): Likewise.
25719         * tests/test-fstrcmp.c (ASSERT): Likewise.
25720         * tests/test-ftell.c (ASSERT): Likewise.
25721         * tests/test-ftello.c (ASSERT): Likewise.
25722         * tests/test-func.c (ASSERT): Likewise.
25723         * tests/test-fwritable.c (ASSERT): Likewise.
25724         * tests/test-fwriting.c (ASSERT): Likewise.
25725         * tests/test-getdelim.c (ASSERT): Likewise.
25726         * tests/test-getline.c (ASSERT): Likewise.
25727         * tests/test-i-ring.c (ASSERT): Likewise.
25728         * tests/test-iconv-utf.c (ASSERT): Likewise.
25729         * tests/test-iconv.c (ASSERT): Likewise.
25730         * tests/test-isfinite.c (ASSERT): Likewise.
25731         * tests/test-isnand.c (ASSERT): Likewise.
25732         * tests/test-isnanf.c (ASSERT): Likewise.
25733         * tests/test-isnanl.h (ASSERT): Likewise.
25734         * tests/test-ldexpl.c (ASSERT): Likewise.
25735         * tests/test-linked_list.c (ASSERT): Likewise.
25736         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25737         * tests/test-localename.c (ASSERT): Likewise.
25738         * tests/test-lseek.c (ASSERT): Likewise.
25739         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25740         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25741         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25742         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25743         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25744         * tests/test-mbschr.c (ASSERT): Likewise.
25745         * tests/test-mbscspn.c (ASSERT): Likewise.
25746         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25747         * tests/test-mbspbrk.c (ASSERT): Likewise.
25748         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25749         * tests/test-mbsrchr.c (ASSERT): Likewise.
25750         * tests/test-mbsspn.c (ASSERT): Likewise.
25751         * tests/test-mbsstr1.c (ASSERT): Likewise.
25752         * tests/test-mbsstr2.c (ASSERT): Likewise.
25753         * tests/test-mbsstr3.c (ASSERT): Likewise.
25754         * tests/test-memchr2.c (ASSERT): Likewise.
25755         * tests/test-memmem.c (ASSERT): Likewise.
25756         * tests/test-open.c (ASSERT): Likewise.
25757         * tests/test-printf-frexp.c (ASSERT): Likewise.
25758         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25759         * tests/test-printf-posix.c (ASSERT): Likewise.
25760         * tests/test-quotearg.c (ASSERT): Likewise.
25761         * tests/test-rbtree_list.c (ASSERT): Likewise.
25762         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25763         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25764         * tests/test-round1.c (ASSERT): Likewise.
25765         * tests/test-roundf1.c (ASSERT): Likewise.
25766         * tests/test-roundl.c (ASSERT): Likewise.
25767         * tests/test-signbit.c (ASSERT): Likewise.
25768         * tests/test-sleep.c (ASSERT): Likewise.
25769         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25770         * tests/test-snprintf.c (ASSERT): Likewise.
25771         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25772         * tests/test-stat-time.c (ASSERT): Likewise.
25773         * tests/test-strcasestr.c (ASSERT): Likewise.
25774         * tests/test-strerror.c (ASSERT): Likewise.
25775         * tests/test-striconv.c (ASSERT): Likewise.
25776         * tests/test-striconveh.c (ASSERT): Likewise.
25777         * tests/test-striconveha.c (ASSERT): Likewise.
25778         * tests/test-strsignal.c (ASSERT): Likewise.
25779         * tests/test-strstr.c (ASSERT): Likewise.
25780         * tests/test-strtod.c (ASSERT): Likewise.
25781         * tests/test-trunc1.c (ASSERT): Likewise.
25782         * tests/test-trunc2.c (ASSERT): Likewise.
25783         * tests/test-truncf1.c (ASSERT): Likewise.
25784         * tests/test-truncf2.c (ASSERT): Likewise.
25785         * tests/test-truncl.c (ASSERT): Likewise.
25786         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25787         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25788         * tests/test-vasnprintf.c (ASSERT): Likewise.
25789         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25790         * tests/test-vasprintf.c (ASSERT): Likewise.
25791         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25792         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25793         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25794         * tests/test-vsnprintf.c (ASSERT): Likewise.
25795         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25796         * tests/test-wcwidth.c (ASSERT): Likewise.
25797         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25798         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25799         * tests/test-xvasprintf.c (ASSERT): Likewise.
25800         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25801         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25802         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25803         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25804         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25805         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25806         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25807         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25808         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25809         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25810         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25811         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25812         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25813         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25814         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25815         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25816         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25817         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25818         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25819         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25820         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25821         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25822         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25823         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25824         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25825         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25826         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25827         * tests/unictype/test-combining.c (ASSERT): Likewise.
25828         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25829         * tests/unictype/test-digit.c (ASSERT): Likewise.
25830         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25831         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25832         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25833         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25834         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25835         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25836         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25837         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25838         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25839         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25840         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25841         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25842         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25843         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25844         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25845         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25846         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25847         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25848         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25849         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25850         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25851         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25852         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25853         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25854         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25855         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25856         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25857         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25858         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25859         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25860         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25861         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25862         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25863         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25864         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25865         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25866         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25867         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25868         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25869         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25870         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25871         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25872         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25873         Reported by Eric Blake.
25874
25875 2008-04-11  Bruno Haible  <bruno@clisp.org>
25876
25877         * lib/wchar.in.h: Tweak comment.
25878
25879 2008-04-11  Bruno Haible  <bruno@clisp.org>
25880
25881         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25882         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25883         gl_COMMON.
25884         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25885
25886 2008-04-11  Bruno Haible  <bruno@clisp.org>
25887
25888         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25889
25890 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25891
25892         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25893         of attempting to use non-existing /dev/*random.  Based on patch
25894         from Adam Strzelecki <ono@java.pl> in
25895         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25896
25897 2008-04-08  Bruno Haible  <bruno@clisp.org>
25898
25899         Add tentative support for emx+gcc.
25900         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25901         * lib/fpurge.c (fpurge): Likewise.
25902         * lib/freadable.c (freadable): Likewise.
25903         * lib/freadahead.c (freadahead): Likewise.
25904         * lib/freading.c (freading): Likewise.
25905         * lib/freadptr.c (freadptr): Likewise.
25906         * lib/freadseek.c (freadptrinc): Likewise.
25907         * lib/fseeko.c (rpl_fseeko): Likewise.
25908         * lib/fseterr.c (fseterr): Likewise.
25909         * lib/fwritable.c (fwritable): Likewise.
25910         * lib/fwriting.c (fwriting): Likewise.
25911         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25912
25913 2008-04-09  Eric Blake  <ebb9@byu.net>
25914
25915         Avoid some autoconf warnings.
25916         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25917         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25918         * m4/afs.m4 (gl_AFS): Likewise.
25919         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25920         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25922         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25923         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25924         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25925         (AC_CHECK_DECLS_ONCE): Likewise.
25926         Rename file...
25927         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25928         gnulib-tool requires autoconf 2.59 or better.
25929         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25930
25931 2008-04-08  Eric Blake  <ebb9@byu.net>
25932
25933         Use 'git describe --match' if present (added in git 1.5.5).
25934         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25935         if possible.
25936
25937 2008-04-08  Bruno Haible  <bruno@clisp.org>
25938
25939         Add tentative support for OpenServer.
25940         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25941         _ptr, _cnt.
25942         * lib/fpurge.c (fpurge): Likewise.
25943         * lib/freadable.c (freadable): Likewise.
25944         * lib/freadahead.c (freadahead): Likewise.
25945         * lib/freading.c (freading): Likewise.
25946         * lib/freadptr.c (freadptr): Likewise.
25947         * lib/freadseek.c (freadptrinc): Likewise.
25948         * lib/fseeko.c (rpl_fseeko): Likewise.
25949         * lib/fseterr.c (fseterr): Likewise.
25950         * lib/fwritable.c (fwritable): Likewise.
25951         * lib/fwriting.c (fwriting): Likewise.
25952         Reported by Roger Cornelius <rac@tenzing.org> and
25953         Brian K. White <brian@aljex.com>.
25954
25955 2008-04-06  Jim Meyering  <meyering@redhat.com>
25956
25957         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25958
25959 2008-04-06  Bruno Haible  <bruno@clisp.org>
25960
25961         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25962         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25963         * tests/test-printf-posix.sh: Likewise.
25964         * tests/test-vfprintf-posix.sh: Likewise.
25965         * tests/test-vprintf-posix.sh: Likewise.
25966         * tests/test-xprintf-posix.sh: Likewise.
25967
25968 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25969
25970         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25971         hide error from 'ls', needed on OS/2.
25972         Report by Elbert Pol <elbert.pol@gmail.com>.
25973
25974 2008-04-04  Eric Blake  <ebb9@byu.net>
25975
25976         Make test-fseeko.c failures meaningful.
25977         * tests/test-fseeko.c: Print line number on failure.
25978         * tests/test-fseek.c: Likewise.
25979         Reported by Nelson H. F. Beebe.
25980
25981         Improve strtod bug detection check.
25982         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25983         required for Solaris 10.
25984         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25985
25986 2008-04-04  Bruno Haible  <bruno@clisp.org>
25987
25988         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25989         by m4/setenv.m4.
25990
25991 2008-04-03  Eric Blake  <ebb9@byu.net>
25992
25993         Ensure sane .version contents.
25994         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25995         version string.
25996         * build-aux/git-version-gen: Improve documentation.
25997
25998         Make GNU make output nicer.
25999         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26000         MAKECMDGOALS to enforce message for all command line targets.  Set
26001         srcdir for use in maint.mk.
26002
26003         Another maintainer tweak.
26004         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26005         a target that regenerates version.
26006
26007 2008-04-03  Jim Meyering  <meyering@redhat.com>
26008
26009         vc-list-files: don't cause coreutils "make po-check" failure
26010         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26011
26012 2008-04-03  Eric Blake  <ebb9@byu.net>
26013
26014         Allow VPATH usage of vc-list-files.
26015         * build-aux/vc-list-files (scriptversion): Add timestamp.
26016         (options): Add --help, --version, -C.
26017         (CVS): Support installed cvsu.
26018
26019 2008-04-02  Bruno Haible  <bruno@clisp.org>
26020
26021         Avoid some "statement with no effect" warnings from gcc.
26022         * tests/test-wctype.c (main): Explicitly ignore unused values.
26023         Reported by Jim Meyering.
26024
26025 2008-04-02  Jim Meyering  <meyering@redhat.com>
26026
26027         Avoid some warnings from "gcc -Wshadow".
26028         * tests/test-frexp.c (exp): Define to a different identifier.
26029         * tests/test-frexpl.c (exp): Likewise.
26030
26031 2008-04-03  Jim Meyering  <meyering@redhat.com>
26032
26033         bootstrap: remove dangling *.[ch] symlinks from lib
26034         * build-aux/bootstrap [dangling symlink removal]: Move find's
26035         -depth option to precede all others, to avoid a warning.
26036         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26037
26038 2008-04-02  Bruno Haible  <bruno@clisp.org>
26039
26040         Avoid some warnings from "gcc -Wshadow".
26041         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26042         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26043         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26044         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26045         Reported by Jim Meyering.
26046
26047 2008-04-01  Bruno Haible  <bruno@clisp.org>
26048
26049         Fix test to work on IRIX 6.5 with cc.
26050         * tests/test-math.c (numeric_equal): New function.
26051         (main): Use it.
26052
26053 2008-04-01  Bruno Haible  <bruno@clisp.org>
26054
26055         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26056
26057 2008-04-01  Bruno Haible  <bruno@clisp.org>
26058
26059         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26060         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26061         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26062         (Depends-on): Remove math.
26063
26064         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26065         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26066         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26067         (Depends-on): Remove math.
26068
26069         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26070         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26071         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26072         (Depends-on): Remove math.
26073         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26074         (Depends-on): Remove math.
26075
26076         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26077         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26078         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26079         (Depends-on): Remove math.
26080         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26081         (Depends-on): Remove math.
26082
26083         * tests/test-round1.c: Include nan.h.
26084         (main): Use NaNd instead of NAN.
26085         * modules/round-tests (Files): Add tests/nan.h.
26086
26087         * tests/test-trunc1.c: Include nan.h.
26088         (main): Use NaNd instead of NAN.
26089         * modules/trunc-tests (Files): Add tests/nan.h.
26090
26091         * tests/test-roundf1.c: Include nan.h.
26092         (main): Use NaNf instead of NAN.
26093         * modules/roundf-tests (Files): Add tests/nan.h.
26094
26095         * tests/test-truncf1.c: Include nan.h.
26096         (main): Use NaNf instead of NAN.
26097         * modules/truncf-tests (Files): Add tests/nan.h.
26098
26099         * tests/test-ceilf1.c: Include nan.h.
26100         (main): Use NaNf instead of NAN.
26101         * modules/ceilf-tests (Files): Add tests/nan.h.
26102
26103         * tests/test-floorf1.c: Include nan.h.
26104         (main): Use NaNf instead of NAN.
26105         * modules/floorf-tests (Files): Add tests/nan.h.
26106
26107         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26108         (main): Use NaNf instead of NAN.
26109         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26110
26111         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26112         (main): Use NaNd instead of NAN.
26113         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26114
26115         * tests/test-frexp.c: Include nan.h.
26116         (main): Use NaNd instead of NAN.
26117         * modules/frexp-tests (Files): Add tests/nan.h.
26118
26119         * lib/isnan.c: Don't include <math.h>.
26120         (FUNC): Don't use NAN macro.
26121         * modules/isnand-nolibm (Depends-on): Remove math.
26122         * modules/isnanf-nolibm (Depends-on): Remove math.
26123         * modules/isnanl (Depends-on): Remove math.
26124         * modules/isnanl-nolibm (Depends-on): Remove math.
26125
26126         * tests/nan.h: New file.
26127
26128 2008-04-01  Eric Blake  <ebb9@byu.net>
26129
26130         Fix typos.
26131         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26132         values to be the right type.
26133
26134         For now, cater to gnulib strtod inaccuracies.
26135         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26136         fractional results.  While not as nice from a QoI perspective, it
26137         is a quicker patch than correctly implementing decimal to binary
26138         rounding.
26139
26140 2008-03-31  Eric Blake  <ebb9@byu.net>
26141
26142         Guarantee a definition of NAN.
26143         * lib/math.in.h (NAN): Define if missing.
26144         * tests/test-math.c (main): Test it.
26145         * doc/posix-headers/math.texi (math.h): Document this.
26146         * lib/isnan.c (rpl_isnand): Use it.
26147         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26148         * tests/test-floorf1.c (NaN): Likewise.
26149         * tests/test-frexp.c (NaN): Likewise.
26150         * tests/test-isnand.c (NaN): Likewise.
26151         * tests/test-isnanf.c (NaN): Likewise.
26152         * tests/test-round1.c (NaN): Likewise.
26153         * tests/test-roundf1.c (NaN): Likewise.
26154         * tests/test-snprintf-posix.h (NaN): Likewise.
26155         * tests/test-sprintf-posix.h (NaN): Likewise.
26156         * tests/test-trunc1.c (NaN): Likewise.
26157         * tests/test-truncf1.c (NaN): Likewise.
26158         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26159         * tests/test-vasprintf-posix.c (NaN): Likewise.
26160         * modules/isnand-nolibm (Depends-on): Add math.
26161         * modules/isnanf-nolibm (Depends-on): Likewise.
26162         * modules/isnanl (Depends-on): Likewise.
26163         * modules/isnanl-nolibm (Depends-on): Likewise.
26164         * modules/snprintf-posix-tests (Depends-on): Likewise.
26165         * modules/sprintf-posix-tests (Depends-on): Likewise.
26166         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26167         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26168         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26169         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26170
26171 2008-03-31  Bruno Haible  <bruno@clisp.org>
26172
26173         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26174         * doc/posix-functions/strtod.texi: Likewise.
26175
26176 2008-03-31  Bruno Haible  <bruno@clisp.org>
26177
26178         * tests/test-strtod.c (main): Don't use C99 syntax.
26179
26180 2008-03-31  Bruno Haible  <bruno@clisp.org>
26181
26182         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26183         Reported by Eric Blake.
26184
26185 2008-03-31  Jim Meyering  <meyering@redhat.com>
26186
26187         Don't compare actual signbit return values.
26188         * tests/test-strtod.c (main): Rather, compare only their
26189         zero/non-zero nature.
26190
26191 2008-03-31  Eric Blake  <ebb9@byu.net>
26192
26193         More strtod documentation.
26194         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26195         failures as distinct bugs.
26196
26197 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26198
26199         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26200         Problem reported by Erik Benada in
26201         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26202
26203 2008-03-30  Bruno Haible  <bruno@clisp.org>
26204
26205         * tests/test-strtod.c: Add comments about which assertion fails on which
26206         platform.
26207         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26208
26209 2008-03-30  Eric Blake  <ebb9@byu.net>
26210
26211         Test signbit behavior on zeros.
26212         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26213         (test_signbitd, test_signbitl): Likewise.
26214
26215         More strtod touchups.
26216         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26217         sign of negative underflow, for now.  Use .5, not .1.
26218         * doc/posix-functions/strtod.texi (strtod): Mention these
26219         limitations.
26220         Reported by Jim Meyering.
26221
26222 2008-03-30  Bruno Haible  <bruno@clisp.org>
26223
26224         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26225         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26226
26227 2008-03-30  Bruno Haible  <bruno@clisp.org>
26228
26229         Avoid failure when attempting to return empty iconv results on some
26230         platforms.
26231         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26232         allocation, don't report ENOMEM when the resulting string is empty.
26233
26234 2008-03-30  Bruno Haible  <bruno@clisp.org>
26235
26236         Fix buffer overrun.
26237         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26238         Don't consider the width for tmp_length. Check count against tmp_length
26239         before doing the padding. Ensure enough allocation during padding.
26240
26241 2008-03-30  Eric Blake  <ebb9@byu.net>
26242
26243         strtod touchups.
26244         * lib/strtod.c (strtod): Avoid compiler warnings.
26245         Reported by Jim Meyering.
26246
26247 2008-03-30  Bruno Haible  <bruno@clisp.org>
26248
26249         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26250         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26251         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26252         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26253         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26254         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26255         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26256         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26257
26258         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26259         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26260         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26261         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26262         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26263         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26264         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26265         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26266
26267         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26268         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26269         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26270         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26271         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26272         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26273         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26274         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26275
26276         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26277         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26278
26279         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26280         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26281
26282         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26283         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26284
26285         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26287         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26288
26289         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26291         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26292
26293         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26295         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26296
26297         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26299         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26300
26301         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26302         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26304         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26305         (Depends-on): Add EOVERFLOW.
26306         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26307         (Depends-on): Add EOVERFLOW.
26308         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26309         (Depends-on): Add EOVERFLOW.
26310         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26311         (Depends-on): Add EOVERFLOW.
26312         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26313         (Depends-on): Add EOVERFLOW.
26314         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26315         (Depends-on): Add EOVERFLOW.
26316         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26317         (Depends-on): Add EOVERFLOW.
26318         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26319         (Depends-on): Add EOVERFLOW.
26320
26321         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26323         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26324
26325         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26327         * modules/snprintf (Depends-on): Add EOVERFLOW.
26328
26329         * lib/poll.c (EOVERFLOW): Remove fallback.
26330         * modules/poll (Depends-on): Add EOVERFLOW.
26331
26332         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26333         * modules/getugroups (Depends-on): Add EOVERFLOW.
26334
26335         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26336         * modules/getdelim (Depends-on): Add EOVERFLOW.
26337
26338         * lib/ftell.c (EOVERFLOW): Remove fallback.
26339         * modules/ftell (Depends-on): Add EOVERFLOW.
26340
26341         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26343         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26344
26345         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26346
26347         * modules/EOVERFLOW-tests: New file.
26348         * tests/test-EOVERFLOW.c: New file.
26349
26350         * modules/EOVERFLOW: New file.
26351         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26352
26353 2008-03-30  Bruno Haible  <bruno@clisp.org>
26354
26355         Fix bug introduced on 2007-06-10.
26356         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26357         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26358
26359 2008-03-30  Bruno Haible  <bruno@clisp.org>
26360
26361         Improve freadseek's efficiency after ungetc.
26362         * lib/freadseek.c: Include freadahead.h.
26363         (freadptrinc): New function, extracted from freadseek.
26364         (freadseek): Use it in a loop. Use freadahead to determine the number
26365         of loop iterations.
26366         * modules/freadseek (Depends-on): Add freadahead.
26367         (configure.ac): Require AC_C_INLINE.
26368
26369 2008-03-30  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/freadseek.c (freadseek): Don't ignore the return value of
26372         freadptr.
26373
26374 2008-03-29  Eric Blake  <ebb9@byu.net>
26375
26376         Add hex float support.
26377         * modules/strtod (Depends-on): Add c-ctype.
26378         (Link): Mention POW_LIB.
26379         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26380         whitespace between 'e' and exponent.
26381         * tests/test-strtod.c (main): Enable hex float tests.
26382         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26383         now provides.
26384
26385         Document various strtod bugs, with some fixes.
26386         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26387         "-0x", "inf", "nan", and hex constants.
26388         * doc/posix-functions/atof.texi (atof): Likewise.
26389         * modules/stdlib (Makefile.am): Support strtod.
26390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26391         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26392         detect additional strtod bugs.
26393         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26394         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26395         bool where appropriate.  Parse 'inf' and 'nan'.
26396         * tests/test-strtod.c: New file.
26397         * modules/strtod (Depends-on): Add stdbool, stdlib.
26398         (configure.ac): Turn on module indicator.
26399         * modules/strtod-tests: New module.
26400
26401 2008-03-29  Eric Blake  <ebb9@byu.net>
26402
26403         Fix ftell on mingw.
26404         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26405         * modules/ftell-tests (Depends-on): Add binary-io.
26406         * modules/ftello-tests (Depends-on): Likewise.
26407         * tests/test-ftell.c (main): Enhance test to cover behavior after
26408         ungetc.  Enforce binary mode.
26409         * tests/test-ftello.c (main): Likewise.
26410
26411         Pass test-freadseek on cygwin.
26412         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26413         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26414         ungetc buffer.
26415
26416         * tests/test-fflush2.c (main): Fix typo.
26417
26418 2008-03-29  Bruno Haible  <bruno@clisp.org>
26419
26420         * tests/test-fflush2.c (main): Temporarily disable the contents of
26421         this test.
26422         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26423         Reported by Eric Blake.
26424
26425 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26426
26427         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26428         (GC_SHA224_DIGEST_SIZE): Add.
26429
26430         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26431         (gc_hash_digest_length): Likewise.
26432         (gc_hash_buffer): Likewise.
26433
26434 2008-03-25  Bruno Haible  <bruno@clisp.org>
26435
26436         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26437         detail which gettext release to use.
26438         Reported by Simon Josefsson.
26439
26440 2008-03-26  Jim Meyering  <meyering@redhat.com>
26441
26442         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26443         * modules/gnumakefile (clean-GNUmakefile): Also, use
26444         test ... && ... || : syntax rather than if-then ... fi.
26445
26446         gnumakefile: Don't double-quote-expand $(VPATH) value.
26447         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26448
26449 2008-03-24  Eric Blake  <ebb9@byu.net>
26450
26451         Alter GNUmakefile to install into top directory.
26452         * modules/maintainer-makefile: Split, and add dependency...
26453         * modules/gnumakefile: to this new module.
26454         * build-aux/GNUmakefile: Move...
26455         * top/GNUmakefile: ...here.
26456         * build-aux/maint.mk: Move...
26457         * top/maint.mk: ...here.
26458         * MODULES.html.sh (Support for maintaining...): Document new
26459         module.
26460
26461 2008-03-23  Bruno Haible  <bruno@clisp.org>
26462
26463         * gnulib-tool: New options --vc-files, --no-vc-files.
26464         (func_usage): Document them.
26465         (vc_files): New variable.
26466         (func_import): Consider vc_files.
26467         (func_create_testdir): Set vc_files to empty.
26468         Suggested by Jim Meyering and Karl Berry.
26469
26470 2008-03-23  Bruno Haible  <bruno@clisp.org>
26471
26472         Fix regex compilation error on HP-UX 11.
26473         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26474         * modules/regex (Files): Add m4/mbstate_t.m4.
26475         Reported by Ton Voon <ton.voon@altinity.com>.
26476
26477 2008-03-23  Bruno Haible  <bruno@clisp.org>
26478
26479         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26480
26481 2008-03-23  Eric Blake  <ebb9@byu.net>
26482             Bruno Haible  <bruno@clisp.org>
26483
26484         Install files from top/ in the destination directory.
26485         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26486         augmentation also for the files from top/.
26487         (func_import, func_create_testdir): Rewrite file names:
26488         top/filename -> filename.
26489
26490 2008-03-23  Bruno Haible  <bruno@clisp.org>
26491
26492         Tweak "gnulib --version" output.
26493         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26494
26495 2008-03-23  Bruno Haible  <bruno@clisp.org>
26496
26497         Tweak "gnulib --version" output.
26498         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26499         rather than contents of ChangeLog, when possible.
26500
26501 2008-03-21  Eric Blake  <ebb9@byu.net>
26502
26503         More --version tweaks.
26504         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26505         date of last ChangeLog entry.
26506
26507 2008-03-21  Jim Meyering  <meyering@redhat.com>
26508
26509         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26510
26511 2008-03-20  Eric Blake  <ebb9@byu.net>
26512
26513         VPATH fix.
26514         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26515
26516 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26517
26518         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26519         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26520
26521 2008-03-20  Eric Blake  <ebb9@byu.net>
26522
26523         Sync GNUmakefile with coreutils.
26524         * build-aux/GNUmakefile (have-Makefile): Rename...
26525         (_have-Makefile): ...to this, for namespace consideration.
26526         (GNUmakefile.cfg): Include, if present.
26527         (_autoreconf): Define a default.
26528         (_is-dist-target): New rule for rebuilds to pick up intra-release
26529         version.
26530         (maint-cfg.mk): Rename...
26531         (cfg.mk): ...to this.
26532
26533 2008-03-18  Jim Meyering  <meyering@redhat.com>
26534
26535         New script and module: mktempd
26536         * MODULES.html.sh (maint+release support): Add mktempd.
26537         * build-aux/mktempd: New file.
26538         * modules/mktempd: New file.
26539
26540 2008-03-15  Jim Meyering  <meyering@redhat.com>
26541
26542         Undo last change.
26543         * lib/sha1.c, lib/md5.c: 63 != ~63.
26544         Reported by Andreas Schwab.
26545
26546         sha1.c, md5.c: Hoist a redundant expression.
26547         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26548         "ctx->buflen" only once, before calling *_process_block.
26549         * lib/md5.c (md5_process_bytes): Likewise.
26550
26551 2008-03-14  Eric Blake  <ebb9@byu.net>
26552
26553         Bump copyright year in files generated by gnulib-tool.
26554         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26555         gnulib-tool, rather than hard-coding it.
26556
26557         Fix 'gnulib-tool --version' output to work with git.
26558         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26559         (startup): ...here.
26560         (func_version): Use it to invoke git-version-gen, rather than
26561         relying on CVS keyword expansion.  Modernize wording.
26562         (cvsdatestamp, last_checkin_date, version): Kill unused
26563         variables.
26564
26565 2008-03-12  Jim Meyering  <meyering@redhat.com>
26566
26567         Recognize optional cast of the argument to free.
26568         * build-aux/useless-if-before-free: Update regexps.
26569
26570         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26571
26572 2008-03-11  Bruno Haible  <bruno@clisp.org>
26573
26574         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26575         by a single package.
26576         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26577         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26578         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26579         Reported by Sam Steingold <sds@gnu.org>.
26580
26581 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26582
26583         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26584         repositories.
26585
26586 2008-03-11  Bruno Haible  <bruno@clisp.org>
26587
26588         Avoid conflicts between local macro definitions.
26589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26590         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26591
26592 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26593             Bruno Haible  <bruno@clisp.org>
26594
26595         Make va_copy work with some version of xlc on AIX 5.1.
26596         * lib/stdarg.in.h: New file.
26597         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26598         On AIX, use a <stdarg.h> file substitute.
26599         * modules/stdarg (Files): Add lib/stdarg.in.h.
26600         (Depends-on): Add include_next.
26601         (Makefile.am): Build a stdarg.h substitute if requested.
26602         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26603
26604 2008-03-10  Bruno Haible  <bruno@clisp.org>
26605
26606         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26607         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26608         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26609
26610 2008-03-10  Bruno Haible  <bruno@clisp.org>
26611
26612         * modules/stdlib (Depends-on): Add include_next, remove
26613         absolute-header.
26614
26615 2008-03-09  Bruno Haible  <bruno@clisp.org>
26616
26617         * lib/freadahead.h (freadahead): Document more precisely.
26618         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26619         the sum of both buffer sizes.
26620         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26621         * NEWS: Document the change.
26622
26623 2008-03-09  Bruno Haible  <bruno@clisp.org>
26624
26625         Extend freadptr to return also the buffer size.
26626         * lib/freadptr.h (freadptr): Add sizep argument.
26627         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26628         (freadptr): Add sizep argument. Determine buffer size like freadahead
26629         does.
26630         * tests/test-freadptr.c: Don't include freadahead.h.
26631         (main): Adapt for new calling convention of freadptr.
26632         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26633         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26634         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26635         tests/test-freadptr2.sh.
26636         (Depends): Remove freadahead.
26637         (TESTS): Add test-freadptr2.sh.
26638         (check_PROGRAMS): Add test-freadptr2.
26639
26640 2008-03-09  Bruno Haible  <bruno@clisp.org>
26641
26642         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26643         Report and solution by Simon Josefsson.
26644
26645 2008-03-06  Bruno Haible  <bruno@clisp.org>
26646
26647         Make fflush after ungetc work on BSD platforms.
26648         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26649         * tests/test-fflush2.c: New file.
26650         * tests/test-fflush2.sh: New file.
26651         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26652         tests/test-fflush2.c.
26653         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26654         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26655
26656 2008-03-06  Eric Blake  <ebb9@byu.net>
26657
26658         Likewise for ftello.
26659         * modules/ftello (Dependencies): Add extensions.
26660         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26661
26662 2008-03-06  Bruno Haible  <bruno@clisp.org>
26663
26664         * modules/fseeko (Dependencies): Add extensions.
26665         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26666         Needed on glibc systems.
26667
26668 2008-03-06  Bruno Haible  <bruno@clisp.org>
26669
26670         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26671         email address.
26672         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26673
26674 2008-03-06  Bruno Haible  <bruno@clisp.org>
26675
26676         * users.txt: Add libgnupdf.
26677
26678 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26679
26680         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26681         (Header File Substitutes, Function Substitutes,
26682         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26683         (Build robot for gnulib): Fix typo.
26684
26685 2008-03-06  Bruno Haible  <bruno@clisp.org>
26686
26687         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26688         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26689
26690 2008-03-06  Bruno Haible  <bruno@clisp.org>
26691
26692         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26693         * doc/gnulib.texi: Include it.
26694
26695 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26696
26697         * modules/func (License): Change license to unlimited; there was
26698         no LGPL parts in the module anyway.
26699
26700 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26701
26702         * modules/__func__: Renamed to modules/func.
26703         * modules/__func__-tests: Renamed to modules/func-tests.
26704         * tests/test-__func__.c: Renamed to tests/test-func.c.
26705         * m4/__func__.m4: Renamed to m4/func.m4.
26706         * doc/gnulib.texi (__func__): Section renamed to func.
26707         Suggested by Eric Blake <ebb9@byu.net>.
26708
26709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26710
26711         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26712         about __func__.  Make example self-contained.  Suggested by Eric
26713         Blake <ebb9@byu.net>.
26714
26715         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26716         Suggested by Eric Blake <ebb9@byu.net>.
26717
26718 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26719
26720         * modules/__func__: New file.
26721         * modules/__func__-tests: New file.
26722         * tests/test-__func__.c: New file.
26723         * m4/__func__.m4: New file.
26724         * doc/gnulib.texi (__func__): Document __func__ module.
26725
26726 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26727
26728         * modules/byteswap (License): Re-license as LGPLv2+.
26729
26730 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26731
26732         * doc/Makefile: Add pdf target.
26733
26734 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26735
26736         * modules/inline (License): Use 'unlimited', since there are only
26737         *.m4 files in this module.
26738
26739 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26740             Bruno Haible  <bruno@clisp.org>
26741
26742         Add support for HP C 7.1 on OpenVMS 8.3.
26743         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26744
26745 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26746
26747         Update VMS specifics.
26748         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26749
26750 2008-03-02  Jim Meyering  <meyering@redhat.com>
26751
26752         Remove the last dependency on the "free" module.
26753         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26754         Reported by Bob Proulx.
26755
26756         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26757
26758         Remove useless "if" tests before free.  Deprecate "free" module.
26759         * doc/posix-functions/free.texi: Mention that this
26760         module is no longer useful.
26761         * modules/free (Notice): Say this module is obsolete.
26762         * modules/readutmp (Depends-on): Remove free.
26763         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26764         * lib/putenv.c (putenv): Likewise.
26765         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26766         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26767         * tests/test-c-strcasestr.c (main): Likewise.
26768         * tests/test-c-strstr.c (main): Likewise.
26769         * tests/test-mbscasestr1.c (main): Likewise.
26770         * tests/test-mbscasestr2.c (main): Likewise.
26771         * tests/test-mbsstr1.c (main): Likewise.
26772         * tests/test-mbsstr2.c (main): Likewise.
26773         * tests/test-memmem.c (main): Likewise.
26774         * tests/test-strcasestr.c (main): Likewise.
26775         * tests/test-striconv.c (main): Likewise.
26776         * tests/test-striconveh.c (main): Likewise.
26777         * tests/test-striconveha.c (main): Likewise.
26778         * tests/test-strstr.c (main): Likewise.
26779
26780         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26781
26782         bootstrap: sync from coreutils again
26783         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26784
26785 2008-03-01  Jim Meyering  <meyering@redhat.com>
26786
26787         bootstrap: sync from coreutils
26788         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26789         also when the target doesn't exist.
26790
26791 2008-03-01  Eric Blake  <ebb9@byu.net>
26792
26793         Fix bugs in last patch.
26794         * lib/memchr2.c (memchr2): Fix typo.
26795         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26796         extension.
26797         Reported by Bruce Korb.
26798
26799         New module 'memchr2'.
26800         * modules/memchr2: New file.
26801         * modules/memchr2-tests: Likewise.
26802         * lib/memchr2.h: Likewise.
26803         * lib/memchr2.c: Likewise, based on memchr.c.
26804         * tests/test-memchr2.c: New test.
26805         * MODULES.html.sh (String handling): Add memchr2.
26806
26807 2008-02-29  Bruno Haible  <bruno@clisp.org>
26808
26809         * modules/freadseek-tests: New file.
26810         * tests/test-freadseek.sh: New file.
26811         * tests/test-freadseek.c: New file.
26812
26813         New module 'freadseek'.
26814         * modules/freadseek: New file.
26815         * lib/freadseek.h: New file.
26816         * lib/freadseek.c: New file.
26817         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26818
26819 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26820
26821         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26822         wydawca.
26823
26824         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26825         program_invocation_name and program_invocation_short_name are
26826         present.
26827
26828 2008-02-28  Bruno Haible  <bruno@clisp.org>
26829
26830         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26831         * tests/test-freadptr.sh: Also test non-seekable stdin.
26832
26833 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26834
26835         * build-aux/bootstrap (source_base, m4_base)
26836         (doc_base, tests_base): New variables.
26837         (gnulib_tool_options): Do not hardcode base directories, use
26838         the above variables instead.
26839
26840 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26841
26842         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26843
26844 2008-02-28  Bruno Haible  <bruno@clisp.org>
26845
26846         * modules/freadptr-tests: New file.
26847         * tests/test-freadptr.sh: New file.
26848         * tests/test-freadptr.c: New file.
26849
26850         New module 'freadptr'.
26851         * modules/freadptr: New file.
26852         * lib/freadptr.h: New file.
26853         * lib/freadptr.c: New file.
26854         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26855
26856 2008-02-26  Karl Berry  <karl@freefriends.org>
26857
26858         Sync from Libtool:
26859         * libltdl/argz.c (argz_add, argz_count): New functions.
26860         * libltdl/argz.in.h: Declare them.
26861         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26862
26863 2008-02-22  Bruno Haible  <bruno@clisp.org>
26864
26865         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26866         is a pointer type.  Needed for HP-UX 10.
26867         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26868         * doc/posix-functions/gmtime_r.texi: Likewise.
26869         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26870
26871 2008-02-24  Bruno Haible  <bruno@clisp.org>
26872
26873         * modules/environ-tests: New file.
26874         * tests/test-environ.c: New file.
26875
26876         New module 'environ'.
26877         * modules/environ: New file.
26878         * lib/unistd.in.h (environ): New declaration.
26879         * m4/environ.m4: New file.
26880         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26881         after use.
26882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26883         HAVE_DECL_ENVIRON.
26884         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26885         HAVE_DECL_ENVIRON.
26886         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26887         wrong claim that 'environ' is missing on some systems.
26888         * modules/execute (Depends-on): Add environ.
26889         * lib/execute.c (environ): Remove fallback declaration.
26890         * modules/pipe (Depends-on): Add environ.
26891         * lib/pipe.c (environ): Remove fallback declaration.
26892         * modules/setenv (Depends-on): Add environ.
26893         * lib/setenv.c (environ): Remove fallback declaration.
26894         * modules/unsetenv (Depends-on): Add environ.
26895         * lib/unsetenv.c (environ): Remove fallback declaration.
26896         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26897         m4/environ.m4.
26898         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26899         (gl_PREREQ_UNSETENV): Likewise.
26900
26901 2008-02-24  Bruno Haible  <bruno@clisp.org>
26902
26903         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26904
26905 2008-02-20  Bob Proulx  <bob@proulx.com>
26906
26907         Enable use of older two part flavor 'git describe'.
26908         * build-aux/git-version-gen: If using the older two part flavor of
26909         git version then recreate the third part now present in the
26910         newer three part flavor of git describe.
26911
26912 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26913
26914         * lib/fts.c (fts_build): Typo correction to comment.
26915
26916 2008-02-17  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26919         generating no-op conflicts.
26920
26921 2008-02-17  Bruno Haible  <bruno@clisp.org>
26922
26923         Speed up by 10%.
26924         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26925         result_entries, rather than an index-based loop.
26926
26927 2008-02-17  Bruno Haible  <bruno@clisp.org>
26928
26929         Speed up by 25%.
26930         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26931         'hashcode_cached'.
26932         (entry_create): New function.
26933         (entry_hashcode): Use the cached hashcode if possible.
26934         (read_changelog_file, try_split_merged_entry): Use entry_create.
26935
26936 2008-02-17  Bruno Haible  <bruno@clisp.org>
26937
26938         Speed up from O(n^2) to O(n) for long ChangeLog files.
26939         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26940         (read_changelog_file): Change implementation of entries_reversed list
26941         to rbtreehash.
26942         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26943
26944 2008-02-17  Bruno Haible  <bruno@clisp.org>
26945
26946         New option --split-merged-entry.
26947         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26948         (find_paragraph_end, try_split_merged_entry): New functions.
26949         (long_options): Add option --split-merged-entry.
26950         (usage): Document option --split-merged-entry.
26951         (main): Implement option --split-merged-entry.
26952         Reported by Eric Blake.
26953
26954 2008-02-17  Bruno Haible  <bruno@clisp.org>
26955
26956         * lib/git-merge-changelog.c: Include c-strstr.h.
26957         (main): Support the "git pull --rebase" situation.
26958         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26959         Reported by Eric Blake.
26960
26961 2008-02-16  Eric Blake  <ebb9@byu.net>
26962
26963         Avoid doubling \ in common case of "c-maybe" quoting style.
26964         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26965         eliding outer quotes.
26966         * lib/quotearg.h: Document this.
26967         * tests/test-quotearg.c (result_strings, inputs, results_g)
26968         (flag_results, locale_results): Test it by adding a new string to
26969         each test group.
26970         (compare_strings): Test new string.
26971
26972 2008-02-13  Eric Blake  <ebb9@byu.net>
26973
26974         Avoid trigraph quoting in default output.
26975         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26976         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26977         unless explicitly requested.
26978         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26979
26980 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26981
26982         Don't rely on signed integer overflowing to negative value.
26983         * lib/getugroups.c (getugroups): Include <limits.h>.
26984         Instead, compare against INT_MAX, and increment only if the test passes.
26985
26986 2008-02-13  Jim Meyering  <meyering@redhat.com>
26987         and Eric Blake  <ebb9@byu.net>
26988
26989         Avoid shadowing warning and compile errors on Linux.
26990         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26991         forwarding macros on Linux.
26992         (dcgettext): Define a stub, for Linux.
26993         (results_g, main): Avoid warnings.
26994
26995 2008-02-12  Eric Blake  <ebb9@byu.net>
26996
26997         Silence warning in last patch.
26998         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26999
27000         Quotearg part 4: add tests, fix c-maybe colon quoting.
27001         * lib/quotearg.h: Improve documentation.
27002         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27003         escapes when adding outer quotes.  When quoting trigraphs, use
27004         valid C notation.  When quoting NUL, omit extra characters if next
27005         character is not digit.  Alter prototype.
27006         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27007         callers.
27008         * modules/quotearg-tests: New module.
27009         * tests/test-quotearg.c: New test.
27010
27011 2008-02-07  Eric Blake  <ebb9@byu.net>
27012
27013         Quotearg part 3: add flag to control outer quote elision.
27014         * lib/quotearg.h (c_maybe_quoting_style): New style.
27015         (enum quoting_flags): Better documentation of flags.
27016         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27017         c-maybe style.
27018         (quotearg_buffer_restyled): Handle new flag to elide outer
27019         quotes.
27020
27021         Quotearg part 2: add flag that can control NUL elision.
27022         * lib/quotearg.h (set_quoting_flags): New prototype.
27023         * lib/quotearg.c (struct quoting_options): Add flag field.
27024         (set_quoting_flags): New function.
27025         (quotearg_buffer_restyled): Add flags parameter.
27026         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27027         (quotearg_n_options): Set the flag, since length cannot be
27028         returned.
27029         (quoting_options_from_style): Default flags correctly.
27030
27031         Quotearg part 1: more wrappers, restore quotearg_char state.
27032         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27033         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27034         (quotearg_colon_mem): New wrappers.
27035         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27036         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27037         functions.
27038         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27039         (quotearg_colon_mem): New functions.
27040
27041 2008-02-11  Bruno Haible  <bruno@clisp.org>
27042
27043         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27044         library in the current directory: it does not work with parallel make.
27045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27046
27047 2008-02-11  Bruno Haible  <bruno@clisp.org>
27048
27049         * .gitattributes: New file.
27050
27051 2008-02-11  Jim Meyering  <meyering@redhat.com>
27052
27053         useless-if-before-free: Fix reversed exit values.
27054         * build-aux/useless-if-before-free: Use correct values
27055         for EXIT_MATCH and EXIT_NO_MATCH.
27056
27057         * build-aux/useless-if-before-free: Close stdout carefully.
27058
27059 2008-02-10  Bruno Haible  <bruno@clisp.org>
27060
27061         New module 'git-merge-changelog'.
27062         * modules/git-merge-changelog: New file.
27063         * lib/git-merge-changelog.c: New file.
27064
27065 2008-02-10  Jim Meyering  <meyering@redhat.com>
27066
27067         useless-if-before-free: New option: --list (-l).
27068
27069         useless-if-before-free: Don't exit immediately upon open failure.
27070         * build-aux/useless-if-before-free: Exit 2 for errors.
27071         Upon failure to open a file, don't exit immediately.
27072         Rather, just warn and continue with any remaining files.
27073
27074 2008-02-10  Bruno Haible  <bruno@clisp.org>
27075
27076         New abstract list operation 'node_set_value'.
27077         * lib/gl_list.h (gl_list_node_set_value): New function.
27078         (struct gl_list_implementation): New field node_set_value.
27079         * lib/gl_list.c (gl_list_node_set_value): New function.
27080         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27081         (gl_array_list_implementation): Update.
27082         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27083         (gl_carray_list_implementation): Update.
27084         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27085         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27086         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27087         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27088         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27089         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27090         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27091         Update.
27092         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27093         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27094         (gl_sublist_list_implementation): Update.
27095
27096 2008-02-10  Bruno Haible  <bruno@clisp.org>
27097
27098         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27099         Needed when ELEMENT is #defined to 'some_type *'.
27100
27101 2008-02-10  Jim Meyering  <meyering@redhat.com>
27102
27103         New script and module: useless-if-before-free
27104         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27105         * build-aux/useless-if-before-free: New file.
27106         * modules/useless-if-before-free: New file.
27107
27108         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27109
27110         xstrtol_error: Fix typo.
27111         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27112         s/exit_failure/exit_status/.
27113
27114 2008-02-09  Jim Meyering  <meyering@redhat.com>
27115
27116         New script and module: gitlog-to-changelog
27117         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27118         * modules/gitlog-to-changelog: New file.
27119         * build-aux/gitlog-to-changelog: New file.
27120
27121 2008-02-08  Jim Meyering  <meyering@redhat.com>
27122
27123         Avoid two "parameter unused" warnings.
27124         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27125         Mark "st" as used.
27126
27127         Use "git COMMAND", not "git-COMMAND".
27128         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27129         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27130         * build-aux/git-version-gen: Use "git status", not "git-status".
27131
27132 2008-02-07  Bruno Haible  <bruno@clisp.org>
27133
27134         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27135         Avoids a crash on Windows Vista.
27136         Reported by Adam Strzelecki <ono@java.pl> via
27137         Simon Josefsson <simon@josefsson.org>.
27138
27139 2008-02-06  Bruno Haible  <bruno@clisp.org>
27140
27141         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27142         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27143         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27145         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27146         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27147         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27148         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27150         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27151         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27152         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27153         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27154         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27155         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27156         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27157         left-adjust flag.
27158         * tests/test-snprintf-posix.h (test_function): Likewise.
27159         * tests/test-sprintf-posix.h (test_function): Likewise.
27160         * tests/test-vasprintf-posix.c (test_function): Likewise.
27161         * doc/posix-functions/fprintf.texi: Update.
27162         * doc/posix-functions/printf.texi: Update.
27163         * doc/posix-functions/snprintf.texi: Update.
27164         * doc/posix-functions/sprintf.texi: Update.
27165         * doc/posix-functions/vfprintf.texi: Update.
27166         * doc/posix-functions/vprintf.texi: Update.
27167         * doc/posix-functions/vsnprintf.texi: Update.
27168         * doc/posix-functions/vsprintf.texi: Update.
27169         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27170
27171 2008-02-06  Bruno Haible  <bruno@clisp.org>
27172
27173         Fix bug introduced on 2008-01-26.
27174         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27175
27176 2008-02-06  Bruno Haible  <bruno@clisp.org>
27177
27178         Fix bug introduced on 2007-06-10.
27179         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27180         !NEED_PRINTF_FLAG_ZERO.
27181
27182 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27183
27184         getloadavg: use libperfstat on AIX5
27185         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27186
27187 2008-02-03  Bruno Haible  <bruno@clisp.org>
27188
27189         * lib/diffseq.h: Add comments about required #includes.
27190         Reported by Michael Biggs <gnulib@doubleplum.net>.
27191
27192 2008-02-01  Bruno Haible  <bruno@clisp.org>
27193
27194         * users.txt: Add gnuit.
27195
27196 2008-01-31  Bruno Haible  <bruno@clisp.org>
27197
27198         * lib/md4.c (set_uint32): Mark as inline.
27199         * lib/md5.c (set_uint32): Likewise.
27200         * lib/sha1.c (set_uint32): Likewise.
27201         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27202         * m4/md5.m4 (gl_MD5): Likewise.
27203         * m4/sha1.m4 (gl_SHA1): Likewise.
27204
27205 2008-01-31  Jim Meyering  <meyering@redhat.com>
27206
27207         Use "sizeof VAR", rather than a literal "4".
27208         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27209         * lib/md4.c (md4_read_ctx): Likewise.
27210         * lib/sha1.c (sha1_read_ctx): Likewise.
27211
27212 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27213
27214         * tests/test-sha1.c: New file, based on test-md5.c.
27215
27216         * modules/crypto/sha1-tests: New file.
27217
27218 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27219
27220         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27221
27222 2008-01-31  Jim Meyering  <meyering@redhat.com>
27223
27224         Prefer "sizeof v" over the equivalent "4".
27225         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27226         * lib/md5.c (set_uint32): Likewise.
27227         * lib/sha1.c (set_uint32): Likewise.
27228
27229 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27230
27231         * lib/sha1.c (set_uint32): Mark function as static.
27232
27233 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27234
27235         md2: clarify comments to say that alignment is not required.
27236         * lib/md2.h: Remove warning about alignment in comment.
27237         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27238         never been required.
27239
27240 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27241
27242         md4: adapt alignment constraint fix from sha1.
27243         * lib/md4.c (set_uint32): New function, from sha1.c
27244         (md4_read_ctx): Use it.
27245         (md4_finish_ctx): Doc fix.
27246         * lib/md4.h: Doc fix.
27247
27248 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27249
27250         md5: adapt alignment constraint fix from sha1.
27251         * lib/md5.c (set_uint32): New function, from sha1.c
27252         (md5_read_ctx): Use it.
27253         (md5_finish_ctx): Doc fix.
27254         * lib/md5.h: Doc fix.
27255
27256 2008-01-30  Peter Palfrader  <weasel@debian.org>
27257
27258         sha1: remove the result buffer alignment constraint
27259         * lib/sha1.c (set_uint32): New function.
27260         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27261         constraint.
27262         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27263         * lib/sha1.h: Likewise.
27264
27265 2008-01-30  Andreas Schwab  <schwab@suse.de>
27266             Bruno Haible  <bruno@clisp.org>
27267
27268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27269         correct definition of LDBL_MIN_EXP.
27270
27271 2008-01-30  Karl Berry  <karl@gnu.org>
27272
27273         * config/srclist-update: try to preserve x bit on updates.
27274         * config/srclistvars.sh: update for karl.
27275
27276 2008-01-29  Jim Meyering  <meyering@redhat.com>
27277
27278         vasnprintf.c: Avoid warning about unused label
27279         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27280         "overflow" label definition and associated code with the
27281         same cpp condition that guards the sole use of that label.
27282
27283 2008-01-26  Bruno Haible  <bruno@clisp.org>
27284
27285         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27286         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27287         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27288         * lib/isnanl-nolibm.h (isnanl): Likewise.
27289         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27290
27291 2008-01-26  Bruno Haible  <bruno@clisp.org>
27292
27293         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27294         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27295
27296 2008-01-26  Bruno Haible  <bruno@clisp.org>
27297
27298         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27299         GCC >= 4.0 built-in.
27300         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27301
27302 2008-01-26  Bruno Haible  <bruno@clisp.org>
27303
27304         Rename isnan, applicable to 'double' only, to isnand.
27305         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27306         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27307         (configure.ac): Update.
27308         (Include): Replace "isnan.h" with "isnand.h".
27309         * m4/isnand.m4: Renamed from m4/isnan.m4.
27310         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27311         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27312         instead of isnan.c.
27313         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27314         instead of HAVE_ISNAN_IN_LIBC.
27315         (isnand): Renamed from isnan.
27316         * lib/isnand.c: New file.
27317         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27318         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27319         (Makefile.am): Update.
27320         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27321         Include isnand.h instead of isnan.h.
27322         (main): Test isnand instead of isnan.
27323         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27324         isnan-nolibm.
27325         * modules/frexp (Depends-on): Likewise.
27326         * modules/frexp-tests (Depends-on): Likewise.
27327         * modules/frexp-nolibm (Depends-on): Likewise.
27328         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27329         * modules/isfinite (Depends-on): Likewise.
27330         * modules/round-tests (Depends-on): Likewise.
27331         * modules/signbit (Depends-on): Likewise.
27332         * modules/signbit-tests (Depends-on): Likewise.
27333         * modules/snprintf-posix (Depends-on): Likewise.
27334         * modules/sprintf-posix (Depends-on): Likewise.
27335         * modules/trunc-tests (Depends-on): Likewise.
27336         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27337         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27338         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27339         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27340         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27341         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27342         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27343         * modules/vasnprintf-posix (Depends-on): Likewise.
27344         * modules/vasprintf-posix (Depends-on): Likewise.
27345         * modules/vfprintf-posix (Depends-on): Likewise.
27346         * modules/vsnprintf-posix (Depends-on): Likewise.
27347         * modules/vsprintf-posix (Depends-on): Likewise.
27348         * lib/frexp.c: Include isnand.h instead of isnan.h.
27349         (ISNAN): Set to isnand instead of isnan.
27350         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27351         (gl_isfinited): Use isnand instead of isnan.
27352         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27353         (gl_signbitd): Use isnand instead of isnan.
27354         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27355         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27356         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27357         (main): Use isnand instead of isnan.
27358         * tests/test-round1.c: Include isnand.h.
27359         (main): Use isnand instead of isnan.
27360         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27361         (ISNAN): Set to isnand instead of isnan.
27362         * tests/test-trunc1.c: Include isnand.h.
27363         (main): Use isnand instead of isnan.
27364         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27365         (equal): Use isnand instead of isnan.
27366         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27367         isnand-nolibm.
27368         * NEWS: Mention the change.
27369
27370 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27371             Bruno Haible  <bruno@clisp.org>
27372
27373         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27374         the GCC builtins for signbits are present and set
27375         REPLACE_SIGNBIT_USING_GCC if so.
27376         * lib/math.in.h (signbit): Define using GCC builtins if
27377         REPLACE_SIGNBIT_USING_GCC is set.
27378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27379         REPLACE_SIGNBIT_USING_GCC.
27380         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27381
27382 2008-01-25  Jim Meyering  <meyering@redhat.com>
27383
27384         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27385         * lib/poll.c: Include <config.h>, not "config.h".
27386         * tests/test-getaddrinfo.c: Likewise.
27387
27388 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27389
27390         * modules/sockets-tests: New file.
27391
27392 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27393
27394         * modules/sockets: New module, can be used to call WSA_Startup and
27395         WSA_Cleanup when needed.
27396
27397         * lib/sockets.h, lib/sockets.c: New files.
27398
27399         * m4/sockets.m4: New file.
27400
27401         * tests/test-sockets.c: New file.
27402
27403 2008-01-19  Bruno Haible  <bruno@clisp.org>
27404
27405         * doc/posix-headers: Renamed from doc/headers.
27406         * doc/posix-functions: Renamed from doc/functions.
27407         * doc/gnulib.texi: Update.
27408
27409 2008-01-19  Bruno Haible  <bruno@clisp.org>
27410
27411         * doc/glibc-functions/strcasestr.texi: Include contents of
27412         doc/functions/strcasestr.texi, fixing the list of platforms.
27413         * doc/functions/strcasestr.texi: Remove file.
27414
27415 2008-01-19  Bruno Haible  <bruno@clisp.org>
27416
27417         * doc/glibc-functions/memmem.texi: Include contents of
27418         doc/functions/memmem.texi.
27419         * doc/functions/memmem.texi: Remove file.
27420
27421 2008-01-18  Bruno Haible  <bruno@clisp.org>
27422
27423         * doc/glibc-functions/*.texi: New files.
27424         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27425         to use the new files.
27426
27427 2008-01-17  Bruno Haible  <bruno@clisp.org>
27428
27429         * tests/test-gethostname.c (main): Fix printf statement.
27430
27431 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27432
27433         * modules/gethostname-tests: New file.
27434
27435         * tests/test-gethostname.c: New file.
27436
27437 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27438
27439         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27440         used by the UNAME case.  Reported by Bruno Haible
27441         <bruno@clisp.org>.
27442
27443 2008-01-17  Eric Blake  <ebb9@byu.net>
27444
27445         Convert c-strcasestr to be more efficient.
27446         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27447         (Depends-on): Add c-strcase, remove malloca, strnlen.
27448         * tests/test-c-strcasestr.c (main): Enhance test.
27449         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27450
27451 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27452
27453         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27454         Use it in creating po/Makevars.
27455
27456 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27457
27458         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27459         Applications that requires it should initialize libgcrypt
27460         manually.
27461
27462 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27463
27464         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27465
27466 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27467
27468         Fix problem with getdate on mingw32 reported by Simon Josefsson
27469         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27470         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27471         tzname", when deciding whether to declare tzname.
27472         * lib/strftime.c (tzname): Likewise.
27473
27474 2008-01-15  Bruno Haible  <bruno@clisp.org>
27475
27476         Work around a MacOS X 10.5 bug in frexpl().
27477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27478         * doc/functions/frexpl.texi: Document the bug.
27479         Reported by Elias Pipping <pipping@gentoo.org>.
27480
27481 2008-01-14  Eric Blake  <ebb9@byu.net>
27482
27483         Touch up previous patch.
27484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27485         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27486
27487         Convert strcasestr module to use Two-Way algorithm.
27488         * modules/strcasestr-simple: New module, based on the old
27489         strcasestr, but with Two-Way rather than KMP.
27490         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27491         * lib/string.in.h (rpl_strcasestr): Declare.
27492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27493         performance.
27494         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27495         * modules/string (Makefile.am): Support strcasestr.
27496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27497         * modules/strcasestr-tests (Depends-on): Check for alarm.
27498         * tests/test-strcasestr.c: Augment test.
27499         * lib/str-two-way.h: Clean up stray macro.
27500         * NEWS: Document new module.
27501         * MODULES.html.sh (string handling): Likewise.
27502         * doc/functions/strcasestr.texi: New file.
27503         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27504         here, since it is not a POSIX function.
27505
27506 2008-01-14  Colin Watson  <cjwatson@debian.org>
27507             Bruno Haible  <bruno@clisp.org>
27508
27509         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27510         works fine; if not, set REPLACE_STRSIGNAL.
27511         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27513         REPLACE_STRSIGNAL.
27514         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27515         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27516         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27517
27518 2008-01-14  Bruno Haible  <bruno@clisp.org>
27519
27520         * modules/strsignal (Include): Change to <string.h>.
27521
27522 2008-01-14  Colin Watson  <cjwatson@debian.org>
27523
27524         * modules/argp (Notice): Add a notice recommending to change
27525         XGETTEXT_OPTIONS.
27526         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27527
27528 2008-01-13  Colin Watson  <cjwatson@debian.org>
27529
27530         * modules/strsignal-tests: New file.
27531         * tests/test-strsignal.c: New file.
27532
27533         * lib/strsignal.c: New file, from glibc with modifications.
27534         * lib/siglist.h: New file, from glibc with modifications.
27535         * lib/string.in.h (strsignal): New declaration.
27536         * m4/strsignal.m4: New file.
27537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27538         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27539         * modules/strsignal: New file.
27540         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27541         HAVE_DECL_STRSIGNAL.
27542
27543 2008-01-13  Bruno Haible  <bruno@clisp.org>
27544
27545         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27546         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27549
27550 2008-01-13  Bruno Haible  <bruno@clisp.org>
27551
27552         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27553         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27554         * lib/argp.h (__attribute__): Likewise.
27555         * lib/c-stack.c (__attribute__): Likewise.
27556         * lib/error.h (__attribute__): Likewise.
27557         * lib/fts.c (__attribute__): Likewise.
27558         * lib/openat.h (__attribute__): Likewise.
27559         * lib/stdio.in.h (__attribute__): Likewise.
27560         * lib/string.in.h (__attribute__): Likewise.
27561         * lib/utimens.c (__attribute__): Likewise.
27562         * lib/vasnprintf.h (__attribute__): Likewise.
27563         * lib/xalloc.h (__attribute__): Likewise.
27564         * lib/xprintf.h (__attribute__): Likewise.
27565         * lib/xstrtol.h (__attribute__): Likewise.
27566         * lib/xvasprintf.h (__attribute__): Likewise.
27567
27568 2008-01-12  Bruno Haible  <bruno@clisp.org>
27569
27570         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27571         * doc/glibc-headers/a.out.texi: New file.
27572         * doc/glibc-headers/aliases.texi: New file.
27573         * doc/glibc-headers/alloca.texi: New file.
27574         * doc/glibc-headers/ar.texi: New file.
27575         * doc/glibc-headers/argp.texi: New file.
27576         * doc/glibc-headers/argz.texi: New file.
27577         * doc/glibc-headers/byteswap.texi: New file.
27578         * doc/glibc-headers/crypt.texi: New file.
27579         * doc/glibc-headers/endian.texi: New file.
27580         * doc/glibc-headers/envz.texi: New file.
27581         * doc/glibc-headers/err.texi: New file.
27582         * doc/glibc-headers/error.texi: New file.
27583         * doc/glibc-headers/execinfo.texi: New file.
27584         * doc/glibc-headers/fpu_control.texi: New file.
27585         * doc/glibc-headers/fstab.texi: New file.
27586         * doc/glibc-headers/fts.texi: New file.
27587         * doc/glibc-headers/getopt.texi: New file.
27588         * doc/glibc-headers/ieee754.texi: New file.
27589         * doc/glibc-headers/ifaddrs.texi: New file.
27590         * doc/glibc-headers/libintl.texi: New file.
27591         * doc/glibc-headers/mcheck.texi: New file.
27592         * doc/glibc-headers/mntent.texi: New file.
27593         * doc/glibc-headers/obstack.texi: New file.
27594         * doc/glibc-headers/paths.texi: New file.
27595         * doc/glibc-headers/printf.texi: New file.
27596         * doc/glibc-headers/pty.texi: New file.
27597         * doc/glibc-headers/resolv.texi: New file.
27598         * doc/glibc-headers/shadow.texi: New file.
27599         * doc/glibc-headers/sysexits.texi: New file.
27600         * doc/glibc-headers/ttyent.texi: New file.
27601
27602 2008-01-12  Jim Meyering  <meyering@redhat.com>
27603
27604         announce-gen: emit Gnulib's git-based version string.
27605         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27606         New option --gnulib-version=V, where V is expected to be
27607         the output of running git describe in the gnulib directory.
27608         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27609         not useful, and plan to stop publishing an xdelta file with each
27610         coreutils release.
27611
27612         * build-aux/announce-gen: Also check for lzma-compressed files.
27613
27614 2008-01-11  Bruno Haible  <bruno@clisp.org>
27615
27616         * tests/test-memmem.c (main): Increase maximum allowed time.
27617         * tests/test-strstr.c (main): Likewise.
27618
27619 2008-01-11  Bruno Haible  <bruno@clisp.org>
27620
27621         * doc/functions/memmem.texi: Add more precisions about platforms.
27622         * doc/functions/strstr.texi: Likewise.
27623
27624 2008-01-10  Eric Blake  <ebb9@byu.net>
27625
27626         * m4/strstr.m4: Delete cruft from copy-n-paste.
27627         Reported by Bruno Haible.
27628
27629 2008-01-10  Bruno Haible  <bruno@clisp.org>
27630
27631         Make c-strstr rely on strstr.
27632         * lib/c-strstr.c: Don't include str-kmp.h.
27633         (c_strstr): Define in terms of strstr.
27634         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27635         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27636
27637 2008-01-10  Bruno Haible  <bruno@clisp.org>
27638
27639         * doc/gnulib.texi (String Functions in C Locale): New section.
27640         * doc/c-ctype.texi: New file.
27641         * doc/c-strcase.texi: New file.
27642         * doc/c-strcaseeq.texi: New file.
27643         * doc/c-strcasestr.texi: New file.
27644         * doc/c-strstr.texi: New file.
27645         * doc/c-strtod.texi: New file.
27646         * doc/c-strtold.texi: New file.
27647
27648 2008-01-10  Eric Blake  <ebb9@byu.net>
27649
27650         * lib/relocatable.h: Fix a comment.
27651
27652 2008-01-10  Eric Blake  <ebb9@byu.net>
27653
27654         Share two-way algorithm.
27655         * lib/str-two-way.h: New file, merged from...
27656         * lib/memmem.c: ...here...
27657         * lib/strstr.c: ...and here.
27658         * modules/memmem (Files): Use it.
27659         * modules/strstr (Files): Likewise.
27660
27661         Avoid quadratic strstr implementations.
27662         * lib/strstr.c: New file.
27663         * m4/strstr.m4: Likewise.
27664         * modules/strstr: Likewise.
27665         * modules/strstr-tests: Likewise.
27666         * tests/test-strstr.c: Likewise.
27667         * lib/string.in.h (rpl_strstr): Declare.
27668         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27670         * modules/string (Makefile.am): Likewise.
27671         * MODULES.html.sh (string handling): Mention new module.
27672         * doc/functions/strstr.texi (strstr): Document the bug.
27673
27674 2008-01-10  Bruno Haible  <bruno@clisp.org>
27675
27676         * lib/relocatable.h (relocate): State whether result is freshly
27677         allocated or not.
27678         * lib/relocatable.c (relocate): Return a freshly allocated string
27679         instead of a pointer to a privately held string.
27680         Reported by Sylvain Beucler <beuc@gnu.org>.
27681
27682 2008-01-10  Colin Watson  <cjwatson@debian.org>
27683
27684         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27685         s/S_ISNLK/S_ISLNK/.
27686
27687 2008-01-09  Bruno Haible  <bruno@clisp.org>
27688
27689         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27690         and other files.
27691         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27692         if it's only a guess.
27693         * modules/memmem: Simplify by depending on memmem-simple.
27694
27695 2008-01-09  Bruno Haible  <bruno@clisp.org>
27696
27697         Work around OpenBSD 4.0 tdelete() bug.
27698         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27699         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27700         macros and don't redefine the enum values.
27701         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27702         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27703         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27704
27705 2008-01-09  Bruno Haible  <bruno@clisp.org>
27706
27707         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27708         (main): Don't perform the tests if setlocale did not install a UTF-8
27709         locale. Needed on OpenBSD 4.0.
27710         * modules/wcwidth-tests (Depends-on): Add localcharset.
27711
27712 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27713
27714         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27715         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27716         * NEWS: announce this.
27717         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27718
27719 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27720         and Eric Blake  <ebb9@byu.net>
27721
27722         Add memmem-simple module.
27723         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27724         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27725         * modules/memmem-simple: New file.
27726         * modules/memmem (Description): Tweak.
27727         * MODULES.html.sh (string handling): Mention new module.
27728         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27729         addressed by memmem-simple.
27730         * NEWS: Document the difference.
27731
27732 2008-01-09  Eric Blake  <ebb9@byu.net>
27733
27734         Give gcc some memmem optimization hints.
27735         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27736         (strcasestr): Declare as pure.
27737         * modules/memmem (Maintainer): Claim my implementation.
27738
27739 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27740
27741         Support AIX 6.1 and higher.
27742         * build-aux/config.libpath: Likewise.
27743         * build-aux/config.rpath: Likewise.
27744
27745 2008-01-08  Jim Meyering  <meyering@redhat.com>
27746             Bruno Haible  <bruno@clisp.org>
27747
27748         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27749         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27750         Reported by Peter Fales in
27751         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27752
27753 2008-01-08  Bruno Haible  <bruno@clisp.org>
27754
27755         * modules/unictype/category-of (Depends-on): Add
27756         unictype/category-none.
27757         * modules/unictype/category-and-tests (Depends-on): Add
27758         unictype/category-{L,N,Lu,Nd}.
27759         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27760         * modules/unictype/category-or-tests (Depends-on): Add
27761         unictype/category-{L,N}.
27762         * modules/unictype/category-name-tests (Depends-on): Add
27763         unictype/category-{Z,Nl}.
27764         Reported by Simon Josefsson.
27765
27766 2008-01-08  Bruno Haible  <bruno@clisp.org>
27767
27768         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27769         convention better.
27770         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27771         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27772         Reported by Peter Miller <millerp@canb.auug.org.au>.
27773
27774 2008-01-08  Eric Blake  <ebb9@byu.net>
27775
27776         Rewrite memmem to guarantee linear complexity without malloc.
27777         * lib/memmem.c (memmem): Use Two-Way rather than
27778         Knuth-Morris-Pratt, to allow O(1) space usage.
27779         (critical_factorization, two_way_short_needle)
27780         (two_way_long_needle): New functions.
27781         (knuth_morris_pratt): Delete.
27782         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27783         Add stdint.
27784         * tests/test-memmem.c (main): Add tests for periodic needle and
27785         sublinear performance.
27786         * doc/functions/memmem.texi (memmem): Document other deficiencies
27787         in cygwin and older glibc.
27788
27789 2008-01-08  Bruno Haible  <bruno@clisp.org>
27790
27791         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27792         augmentation.
27793
27794 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27795
27796         Add a configure time option: --disable-acl.
27797         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27798         AC_ARG_ENABLE(acl).
27799
27800 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27801
27802         * tests/test-localename.c: Don't include obsolete "setenv.h".
27803
27804         * modules/localename-tests (Depends-on): Need unsetenv.
27805
27806 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27807
27808         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27809
27810 2008-01-06  Colin Watson  <cjwatson@debian.org>
27811
27812         * users.txt: Add man-db.
27813
27814 2008-01-07  Bruno Haible  <bruno@clisp.org>
27815
27816         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27817         previous section name.
27818
27819 2008-01-07  Bruno Haible  <bruno@clisp.org>
27820
27821         * lib/progname.c (set_program_name): Don't strip off a leading
27822         "lt-" prefix outside a .libs directory.
27823         Suggested by Paul Eggert.
27824
27825 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27826             Bruno Haible  <bruno@clisp.org>
27827
27828         Improve memory cleanup in 'relocatable' module.
27829         * lib/relocatable.h (compute_curr_prefix): Change return type to
27830         'char *'.
27831         * lib/relocatable.c (compute_curr_prefix): Change return type to
27832         'char *'. Free curr_installdir after use.
27833         (relocate): Free curr_prefix_better after use.
27834         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27835
27836 2008-01-01  Bruno Haible  <bruno@clisp.org>
27837
27838         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27839         failure on older glibc systems.
27840         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27841
27842 2008-01-05  Eric Blake  <ebb9@byu.net>
27843
27844         Avoid quadratic system memmem.
27845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27846         Reported by Ralf Wildenhues.
27847
27848         Fix memmem test for mingw.
27849         * modules/memmem-tests (configure.ac): Check for alarm.
27850         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27851         it.
27852         * doc/functions/memmem.texi: New file.
27853         * doc/gnulib.texi (Function Substitutes): Add memmem.
27854         Reported by Bruno Haible.
27855
27856 2008-01-04  Bruno Haible  <bruno@clisp.org>
27857
27858         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27859         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27860         gl_HEADER_STRING_H_DEFAULTS.
27861
27862 2008-01-04  Eric Blake  <ebb9@byu.net>
27863
27864         Shorten duration of memmem test.
27865         * tests/test-memmem.c (main): Use alarm to declare failure if test
27866         is taking too long.
27867         Reported by Ralf Wildenhues.
27868
27869 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27870
27871         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27872         string, needed by strerror.
27873
27874 2008-01-03  Colin Watson  <cjwatson@debian.org>
27875             Bruno Haible  <bruno@clisp.org>
27876
27877         * doc/gnulib-tool.texi (Localization): New section.
27878
27879 2008-01-02  Bruno Haible  <bruno@clisp.org>
27880
27881         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27882         variables to 'unsigned char *' type.
27883         Reported by Paul Eggert.
27884
27885 2008-01-02  Jim Meyering  <jim@meyering.net>
27886
27887         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27888
27889 2007-12-31  Jim Meyering  <jim@meyering.net>
27890
27891         Avoid use of private FTS type name.
27892         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27893
27894 2007-12-30  Karl Berry  <karl@gnu.org>
27895
27896         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27897         work around defect in Texinfo and/or the standalone Info browser.
27898
27899 2007-12-30  Bruno Haible  <bruno@clisp.org>
27900
27901         Unify 5 copies of the KMP code.
27902         * lib/str-kmp.h: New file.
27903         * lib/c-strcasestr.c: Include str-kmp.h.
27904         (knuth_morris_pratt): Remove function.
27905         (c_strcasestr): Update.
27906         * lib/c-strstr.c: Include str-kmp.h.
27907         (knuth_morris_pratt): Remove function.
27908         (c_strcasestr): Update.
27909         * lib/mbscasestr.c: Include str-kmp.h.
27910         (knuth_morris_pratt_unibyte): Remove function.
27911         * lib/mbsstr.c: Include str-kmp.h.
27912         (knuth_morris_pratt_unibyte): Remove function.
27913         * lib/strcasestr.c: Include str-kmp.h.
27914         (knuth_morris_pratt): Remove function.
27915         (strcasestr): Update.
27916         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27917         * modules/c-strstr (Files): Likewise.
27918         * modules/mbscasestr (Files): Likewise.
27919         * modules/mbsstr (Files): Likewise.
27920         * modules/strcasestr (Files): Likewise.
27921         Suggested by Paul Eggert.
27922
27923 2007-12-30  Bruno Haible  <bruno@clisp.org>
27924
27925         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27926         defined.
27927
27928 2007-12-30  Bruno Haible  <bruno@clisp.org>
27929
27930         * lib/xmalloca.h: Include xalloc.h.
27931         (xnmalloca): New macro.
27932
27933 2007-12-30  Bruno Haible  <bruno@clisp.org>
27934
27935         * lib/malloca.h (nmalloca): New macro.
27936         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27937         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27938         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27939         knuth_morris_pratt_multibyte): Likewise.
27940         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27941         knuth_morris_pratt_multibyte): Likewise.
27942         * lib/memmem.c (knuth_morris_pratt): Likewise.
27943         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27944
27945 2007-12-25  Bruno Haible  <bruno@clisp.org>
27946
27947         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27948         * lib/glob.c: Don't include openat.h.
27949         (link_exists2_p): Add back the code that deals with the
27950         !GLOB_ALTDIRFUNC case.
27951         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27952         let it do the filename concatenation.
27953         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27954         * modules/glob (Depends-on): Remove openat.
27955
27956 2007-12-31  Bruno Haible  <bruno@clisp.org>
27957
27958         * modules/dirfd (License): Change to LGPLv2+.
27959         Approved by Jim Meyering.
27960
27961 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27962
27963         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27964         when multiplying M by sizeof (size_t).
27965
27966 2007-12-10  Martin Lambers  <marlam@marlam.de>
27967
27968         Override getpagesize on mingw.
27969         * lib/getpagesize.c: New file.
27970         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27971         * modules/getpagesize (Files): Add lib/getpagesize.c.
27972         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27974         REPLACE_GETPAGESIZE.
27975         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27976
27977 2007-12-25  Bruno Haible  <bruno@clisp.org>
27978
27979         * modules/localcharset (Notice): New field.
27980         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27981         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27982
27983 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27984             Bruno Haible  <bruno@clisp.org>
27985
27986         Avoid using the syntax symbol() in formatted documentation.
27987         * MODULES.html.sh (func_module): When replacing symbol() with a
27988         hyperlink, remove the parentheses. Show an error if some remain.
27989         Recognize and render the '...' syntax.
27990         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27991         Rework. Add paragraph about GCC's inlining.
27992         * doc/alloca.texi: Likewise.
27993         * doc/error.texi: Remove parentheses from symbol reference.
27994         * doc/gnulib-intro.texi: Likewise.
27995         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27996         * modules/fnmatch (Description): Reword to say "the ... function".
27997         * modules/full-read (Description): Likewise.
27998         * modules/full-write (Description): Likewise.
27999         * modules/safe-read (Description): Likewise.
28000         * modules/safe-write (Description): Likewise.
28001         * modules/strchrnul (Description): Likewise.
28002         * modules/trim (Description): Likewise.
28003         * modules/error (Description): Remove parentheses from symbol
28004         references.
28005         * modules/verror (Description): Likewise.
28006         Reported by Karl Berry.
28007
28008 2007-12-25  Bruno Haible  <bruno@clisp.org>
28009
28010         Fixup after 2007-10-16 commit.
28011         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28012
28013 2007-12-24  Bruno Haible  <bruno@clisp.org>
28014
28015         Make --enable-relocatable work with DESTDIR.
28016         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28017         to compute installdir from destprog.
28018         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28019         also set the RELOC_DESTDIR variable.
28020         Reported by Левашев Иван <octagram@bluebottle.com>.
28021
28022 2007-12-24  Bruno Haible  <bruno@clisp.org>
28023
28024         Fix link error due to xalloc_die().
28025         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28026         of xreadlink.
28027         * lib/relocwrapper.c: Update comments.
28028         * build-aux/install-reloc: Remove xreadlink.c from file list.
28029         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28030         xreadlink.c.
28031         Reported by Левашев Иван <octagram@bluebottle.com>.
28032
28033 2007-12-24  Bruno Haible  <bruno@clisp.org>
28034
28035         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28036         * lib/setenv.h: Remove file.
28037         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28038         lib/setenv.h.
28039         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28040         (Depends-on): Add stdlib.
28041         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28042         gl_FUNC_UNSETENV.
28043         (Include): Replace setenv.h with <stdlib.h>.
28044         * modules/unsetenv: New file.
28045         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28046         * lib/unsetenv.c: Include <stdlib.h> first.
28047         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28048         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28049         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28050         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28051         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28052         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28054         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28055         * doc/functions/unsetenv.texi: Update.
28056         * modules/xsetenv (Depends-on): Add unsetenv.
28057         * modules/getdate (Depends-on): Likewise.
28058         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28059         * lib/xsetenv.c: Don't include setenv.h.
28060         * lib/getdate.y: Likewise.
28061         * lib/relocwrapper.c: Likewise.
28062         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28063         (Depends-on): Add stdlib.
28064         * NEWS: Mention the changes.
28065         Reported by Левашев Иван <octagram@bluebottle.com>.
28066
28067 2007-12-23  Bruno Haible  <bruno@clisp.org>
28068
28069         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28070         indentation.
28071
28072 2007-12-23  Bruno Haible  <bruno@clisp.org>
28073
28074         * lib/c-strcasestr.c: Add more comments.
28075         * lib/c-strstr.c: Likewise.
28076         * lib/mbscasestr.c: Likewise.
28077         * lib/mbsstr.c: Likewise.
28078         * lib/strcasestr.c: Likewise.
28079         * lib/memmem.c: Likewise.
28080
28081 2007-12-23  Bruno Haible  <bruno@clisp.org>
28082
28083         * tests/test-memmem.c: Include <string.h> first.
28084
28085 2007-12-22  Bruno Haible  <bruno@clisp.org>
28086
28087         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28088         the contents of $testsbase.
28089         Reported by Ralf Wildenhues.
28090
28091 2007-12-22  Bruno Haible  <bruno@clisp.org>
28092
28093         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28094         two variables local_ldadd_before, local_ldadd_last.
28095
28096 2007-12-20  Eric Blake  <ebb9@byu.net>
28097
28098         Work around circular library issue when cross-compiling.
28099         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28100         that progname.o does not need to pull in rpl_memcmp.
28101
28102 2007-12-19  Eric Blake  <ebb9@byu.net>
28103
28104         Fix memmem to avoid O(n^2) worst-case complexity.
28105         * lib/memmem.c (knuth_morris_pratt): New function.
28106         (memmem): Use it if first few naive iterations fail.
28107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28108         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28109         * modules/memchr (License): Likewise.
28110         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28111         malloca.
28112         * tests/test-memmem.c: Rewrite, borrowing ideas from
28113         test-mbsstr1.c; the old version wouldn't even compile!
28114         * modules/memmem-tests: New file.
28115         * lib/string.in.h (rpl_memmem): Add declaration.
28116         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28118         REPLACE_MEMMEM.
28119
28120 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28121
28122         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28123         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28124         before any system include files, and undef after them all.  This
28125         should fix a problem on VMS reported by John E. Malmberg in
28126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28127
28128 2007-12-17  Eric Blake  <ebb9@byu.net>
28129
28130         Revert addition of verify, for BSD/OS.
28131         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28132         can't handle large files, for the sake of obsolete platforms.
28133         * modules/fseeko (Depends-on): Remove verify.
28134         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28135         * doc/functions/ftello.texi (ftello): Likewise.
28136         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28137         Reported by Larry Jones.
28138
28139 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28140
28141         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28142         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28143
28144 2007-12-17  Jim Meyering  <meyering@redhat.com>
28145
28146         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28147         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28148         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28149         * modules/getcwd (Depends-on): Add openat.
28150         Reported by Petr Salinger.
28151
28152 2007-12-17  Bruno Haible  <bruno@clisp.org>
28153
28154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28155         avoid a segmentation fault of the configure test on x86_64 systems.
28156
28157 2007-12-15  Jim Meyering  <meyering@redhat.com>
28158
28159         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28160
28161 2007-12-13  Eric Blake  <ebb9@byu.net>
28162
28163         Another fseek test.
28164         * tests/test-fseek.c (main): Also test ungetc handling.
28165         * tests/test-fseeko.c (main): Likewise.
28166         * modules/fseeko (Depends-on): Add verify.
28167         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28168         large.
28169         Reported by Larry Jones.
28170
28171         Fix fseeko on mingw.
28172         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28173         seek.
28174
28175         Beef up fseek tests.
28176         * tests/test-fseek.c (main): Also test eof handling.
28177         * tests/test-fseeko.c (main): Likewise.
28178         Reported by Larry Jones.
28179
28180 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28181
28182         Fix fseeko on BSD-based platforms.
28183         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28184         successful seek.
28185
28186 2007-12-12  Eric Blake  <ebb9@byu.net>
28187
28188         Allow circular dependency of separate libtests.a
28189         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28190         when use_libtests.
28191
28192 2007-12-11  Eric Blake  <ebb9@byu.net>
28193
28194         Fix bug with -0.0L in previous patch.
28195         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28196         * tests/test-isnan.c (main): Also test on zeroes.
28197         * tests/test-isnanf.c (main): Likewise.
28198         * tests/test-isnanl.h (main): Likewise.
28199
28200         Detect pseudo-denormals on x86 even when cross-compiling.
28201         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28202         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28203         invalid bit patterns that happen to satisfy ==.
28204
28205         Avoid link failures with separate libtests.a.
28206         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28207         last, to satisfy circular dependencies.
28208
28209 2007-12-11  Eric Blake  <ebb9@byu.net>
28210         and Bruno Haible  <bruno@clisp.org>
28211
28212         Fix OpenBSD 4.0 <float.h> handling of long double.
28213         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28214         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28215         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28216
28217 2007-12-11  Jim Meyering  <meyering@redhat.com>
28218
28219         * users.txt: Add libvirt.
28220
28221         Support versions of autoconf prior to 2.59c.
28222         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28223         if it is not already defined.
28224
28225 2007-12-09  Bruno Haible  <bruno@clisp.org>
28226
28227         Let 'gnulib-tool --import' collect sources needed for the tests in
28228         tests/ rather than in lib/.
28229         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28230         argument. If true, add rules to generate libtests.a, and put libtests.a
28231         into $(LDADD). Consider source files in subdirectories and set
28232         uses_subdirs.
28233         (func_emit_initmacro_start, func_emit_initmacro_end,
28234         func_emit_initmacro_done): Pass all arguments explicitly.
28235         (func_import): Determine two module lists main_modules,
28236         testsrelated_modules. Determine use_libtests. Determine two variables
28237         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28238         instead of just sed_transform_lib_file. Determine two variables
28239         main_files and testsrelated_files. Compute 'files' as the union of
28240         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28241         func_add_or_update. In the generated gnulib-comp.m4, collect the
28242         object files for tests/ in different variables than those for lib/.
28243         Substitute LIBTESTS_LIBDEPS.
28244         (func_create_testdir): Combine the uses_subdirs results from
28245         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28246
28247 2007-12-09  Bruno Haible  <bruno@clisp.org>
28248
28249         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28250         the build-aux directory.
28251
28252 2007-12-09  Bruno Haible  <bruno@clisp.org>
28253
28254         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28255         introduced on 2006-09-09.
28256
28257 2007-12-07  Jim Meyering  <meyering@redhat.com>
28258
28259         Let these macros work also with autoconf-2.59.
28260         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28261         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28263
28264 2007-12-06  Jim Meyering  <meyering@redhat.com>
28265
28266         Avoid a configure-time syntax error in gl_FUNC_ACL.
28267         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28268         function in each branch, before testing the cache variable.
28269
28270 2007-12-04  Eric Blake  <ebb9@byu.net>
28271
28272         Make scripts executable.
28273         * build-aux/config.guess: Add execute permissions.
28274         * build-aux/config.sub: Likewise.
28275         * build-aux/gendocs.sh: Likewise.
28276
28277         Fix frexp on mingw.
28278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28279         cross-compiling.
28280         * doc/functions/frexp.texi (frexp): Document the bug.
28281
28282         Make cygwin fseeko check more reliable.
28283         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28284         version numbers, rather than unrelated feature check.
28285         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28286         * doc/functions/ftello.texi (ftello): Likewise.
28287         Reported by Bruno Haible.
28288
28289         * m4/strerror.m4: Bump version number.
28290
28291 2007-12-03  Bruno Haible  <bruno@clisp.org>
28292
28293         * doc/functions/mprotect.texi: Mention the mingw problem.
28294
28295 2007-12-03  Eric Blake  <ebb9@byu.net>
28296
28297         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28298         REPLACE_STRERROR is initialized before this macro.
28299
28300 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28301
28302         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28303         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28304         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28305         put -lsec in even for programs other than 'ls'.  This fixes a problem
28306         for gettext reported by Bruno Haible in
28307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28308         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28309         Add support for Solaris 10.  This isn't efficient, but should get the
28310         job done for now.
28311
28312 2007-12-03  James Youngman  <jay@gnu.org>
28313
28314         * doc/regexprops-generic.texi: change "an close-group" to "a
28315         close-group" and "illegal" to "not allowed".
28316
28317 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28318
28319         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28320         pr_byname.h. Needed for the rare case when the maintainer has done
28321         "make maintainer-clean" in the source directory and then attempts a
28322         build outside the source directory.
28323         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28324         scripts_byname.h.
28325
28326 2007-12-02  Martin Lambers <marlam@marlam.de>
28327             Bruno Haible  <bruno@clisp.org>
28328
28329         * lib/getpagesize.h: Remove file.
28330         * lib/unistd.in.h: Include declaration of getpagesize here.
28331         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28332         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28333         HAVE_SYS_PARAM_H.
28334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28335         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28336         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28337         (Depends-on): Add unistd.
28338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28339         (Include): Use <unistd.h> instead of getpagesize.h.
28340         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28341         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28342         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28343         gl_GETPAGESIZE invocation, already handled by module dependency.
28344         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28345
28346 2007-12-02  Bruno Haible  <bruno@clisp.org>
28347
28348         * modules/strings-tests: New file.
28349         * tests/test-strings.c: New file.
28350
28351         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28352         * lib/strings.in.h: New file.
28353         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28354         * m4/strings_h.m4: New file.
28355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28356         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28357         * modules/strings: New file.
28358         * modules/string (Makefile.am): Update.
28359         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28360         Reported by Karl Berry.
28361
28362 2007-12-01  Eric Blake  <ebb9@byu.net>
28363
28364         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28365         accomodate fix in cygwin 1.5.25.
28366
28367 2007-12-01  Jim Meyering  <meyering@redhat.com>
28368
28369         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28370         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28371         that would inhibit utf8-optimization of a regexp containing line-
28372         or buffer-anchors, e.g., `^', `$'.
28373
28374 2007-11-30  Bruno Haible  <bruno@clisp.org>
28375
28376         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28377         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28378         glthread_recursive_lock_init.
28379         * lib/lock.c (glthread_recursive_lock_init)
28380         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28381         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28382
28383 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28384
28385         New function qset_acl, like set_acl but with syscall semantics.
28386         * lib/acl.h (qset_acl): New decl.
28387         * lib/acl.c (qset_acl): New function.
28388         (set_acl): Use new function.  Use more-consistent diagnostics.
28389
28390 2007-11-28  Jim Meyering  <meyering@redhat.com>
28391
28392         * modules/physmem (License): Change from GPL to LGPLv2+.
28393
28394 2007-11-26  Bruno Haible  <bruno@clisp.org>
28395
28396         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28397         'long double' type has excess precision.
28398         Reported by Jim Meyering in
28399         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28400
28401 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28402
28403         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28404         Sync from <http://gnu.org/licenses>.
28405         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28406         with license text from same location.
28407         * doc/maintain.texi, doc/standards.texi:  Sync from
28408         <http://savannah.gnu.org/projects/gnustandards>.
28409
28410 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28411         and Jim Meyering  <meyering@redhat.com>
28412
28413         Adjust getdate' grammar to accept a slightly more regular language.
28414         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28415         Before, the former was rejected.
28416         * lib/getdate.y (digits_to_date_time): New function, factored
28417         out of ...
28418         (number): ...here.  Just call digits_to_date_time.
28419         (hybrid): New non-terminal to handle an <unsigned number,
28420         signed relative offset> sequence consistently.
28421
28422 2007-11-18  Jim Meyering  <meyering@redhat.com>
28423
28424         Pull my changes from coreutils:
28425         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28426         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28427         use of $gnulib_tool_option_extras, so that it's separated from the
28428         preceding argument.
28429
28430         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28431         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28432         parent destination directories before copying a file into place.
28433
28434 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28435
28436         bootstrap: work also with 4-argument variant of AC_INIT
28437         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28438
28439 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28440
28441         Port test-getaddrinfo to Solaris.
28442         Problem reported by Bruno Haible in
28443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28444         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28445         explanation of setting 'hints'.
28446         Don't reject an implementation merely because it returns EAI_SERVICE.
28447         (EAI_SERVICE): Define to 0 if not defined.
28448
28449 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28450
28451         The license of gnu-make and posix-shell is now "GPLed build tool".
28452         * modules/gnu-make (License): Likewise.
28453         * modules/posix-shell (License): Likewise.
28454
28455         New module posix-shell, for determining a POSIX shell
28456         or perhaps something that is close enough to a POSIX shell.
28457         * m4/posix-shell.m4: New file.
28458         * modules/posix-shell: New file.
28459
28460         * MODULES.html.sh: Mention new module.
28461
28462         New module gnu-make, for determining whether we're using GNU Make.
28463         * m4/gnu-make.m4: New file.
28464         * modules/gnu-make: New file.
28465         * MODULES.html.sh: Mention new module.
28466
28467 2007-11-14  Jim Meyering  <meyering@redhat.com>
28468
28469         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28470         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28471         use this macro to create a function _definition_.
28472         Remove useless "#undef ARGMATCH_DIE".
28473
28474 2007-11-14  Bruno Haible  <bruno@clisp.org>
28475
28476         * lib/config.charset: Update for OpenBSD 4.1.
28477         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28478
28479 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28480
28481         Document 64-bit #if problems in stdint.texi.
28482         * doc/headers/stdint.texi (stdint.h): Mention problems with
28483         64-bit-#if, and how to work around them.
28484
28485         Don't insist on 'long long int' support in the preprocessor.  It
28486         breaks too many things.  For example, PRIdMAX still uses a 'long
28487         long int' format with the latest Sun compiler, even though
28488         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28489         preprocessor problem.  This causes the latest coreutils to dump
28490         core on Solaris 10 sparc with the Sun C compiler.
28491         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28492         the troublesome expressions at configure-time, not at #if-time.
28493         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28494         preprocessor.
28495         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28496         compile-time C checks, done at 'configure'-time.
28497         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28498         * modules/inttypes (Makefile): Substitute the new symbols that
28499         gl_INTTYPES_H now generates.
28500         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28501
28502 2007-11-12  Bruno Haible  <bruno@clisp.org>
28503
28504         Tests for Unicode character classification functions.
28505
28506         * modules/unictype/bidicategory-byname-tests: New file.
28507         * modules/unictype/bidicategory-name-tests: New file.
28508         * modules/unictype/bidicategory-of-tests: New file.
28509         * modules/unictype/bidicategory-test-tests: New file.
28510         * modules/unictype/block-list-tests: New file.
28511         * modules/unictype/block-of-tests: New file.
28512         * modules/unictype/block-test-tests: New file.
28513         * modules/unictype/category-C-tests: New file.
28514         * modules/unictype/category-Cc-tests: New file.
28515         * modules/unictype/category-Cf-tests: New file.
28516         * modules/unictype/category-Cn-tests: New file.
28517         * modules/unictype/category-Co-tests: New file.
28518         * modules/unictype/category-Cs-tests: New file.
28519         * modules/unictype/category-L-tests: New file.
28520         * modules/unictype/category-Ll-tests: New file.
28521         * modules/unictype/category-Lm-tests: New file.
28522         * modules/unictype/category-Lo-tests: New file.
28523         * modules/unictype/category-Lt-tests: New file.
28524         * modules/unictype/category-Lu-tests: New file.
28525         * modules/unictype/category-M-tests: New file.
28526         * modules/unictype/category-Mc-tests: New file.
28527         * modules/unictype/category-Me-tests: New file.
28528         * modules/unictype/category-Mn-tests: New file.
28529         * modules/unictype/category-N-tests: New file.
28530         * modules/unictype/category-Nd-tests: New file.
28531         * modules/unictype/category-Nl-tests: New file.
28532         * modules/unictype/category-No-tests: New file.
28533         * modules/unictype/category-P-tests: New file.
28534         * modules/unictype/category-Pc-tests: New file.
28535         * modules/unictype/category-Pd-tests: New file.
28536         * modules/unictype/category-Pe-tests: New file.
28537         * modules/unictype/category-Pf-tests: New file.
28538         * modules/unictype/category-Pi-tests: New file.
28539         * modules/unictype/category-Po-tests: New file.
28540         * modules/unictype/category-Ps-tests: New file.
28541         * modules/unictype/category-S-tests: New file.
28542         * modules/unictype/category-Sc-tests: New file.
28543         * modules/unictype/category-Sk-tests: New file.
28544         * modules/unictype/category-Sm-tests: New file.
28545         * modules/unictype/category-So-tests: New file.
28546         * modules/unictype/category-Z-tests: New file.
28547         * modules/unictype/category-Zl-tests: New file.
28548         * modules/unictype/category-Zp-tests: New file.
28549         * modules/unictype/category-Zs-tests: New file.
28550         * modules/unictype/category-and-not-tests: New file.
28551         * modules/unictype/category-and-tests: New file.
28552         * modules/unictype/category-byname-tests: New file.
28553         * modules/unictype/category-name-tests: New file.
28554         * modules/unictype/category-none-tests: New file.
28555         * modules/unictype/category-of-tests: New file.
28556         * modules/unictype/category-or-tests: New file.
28557         * modules/unictype/category-test-withtable-tests: New file.
28558         * modules/unictype/combining-class-tests: New file.
28559         * modules/unictype/ctype-alnum-tests: New file.
28560         * modules/unictype/ctype-alpha-tests: New file.
28561         * modules/unictype/ctype-blank-tests: New file.
28562         * modules/unictype/ctype-cntrl-tests: New file.
28563         * modules/unictype/ctype-digit-tests: New file.
28564         * modules/unictype/ctype-graph-tests: New file.
28565         * modules/unictype/ctype-lower-tests: New file.
28566         * modules/unictype/ctype-print-tests: New file.
28567         * modules/unictype/ctype-punct-tests: New file.
28568         * modules/unictype/ctype-space-tests: New file.
28569         * modules/unictype/ctype-upper-tests: New file.
28570         * modules/unictype/ctype-xdigit-tests: New file.
28571         * modules/unictype/decimal-digit-tests: New file.
28572         * modules/unictype/digit-tests: New file.
28573         * modules/unictype/mirror-tests: New file.
28574         * modules/unictype/numeric-tests: New file.
28575         * modules/unictype/property-alphabetic-tests: New file.
28576         * modules/unictype/property-ascii-hex-digit-tests: New file.
28577         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28578         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28579         * modules/unictype/property-bidi-block-separator-tests: New file.
28580         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28581         * modules/unictype/property-bidi-common-separator-tests: New file.
28582         * modules/unictype/property-bidi-control-tests: New file.
28583         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28584         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28585         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28586         * modules/unictype/property-bidi-european-digit-tests: New file.
28587         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28588         * modules/unictype/property-bidi-left-to-right-tests: New file.
28589         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28590         * modules/unictype/property-bidi-other-neutral-tests: New file.
28591         * modules/unictype/property-bidi-pdf-tests: New file.
28592         * modules/unictype/property-bidi-segment-separator-tests: New file.
28593         * modules/unictype/property-bidi-whitespace-tests: New file.
28594         * modules/unictype/property-byname-tests: New file.
28595         * modules/unictype/property-combining-tests: New file.
28596         * modules/unictype/property-composite-tests: New file.
28597         * modules/unictype/property-currency-symbol-tests: New file.
28598         * modules/unictype/property-dash-tests: New file.
28599         * modules/unictype/property-decimal-digit-tests: New file.
28600         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28601         * modules/unictype/property-deprecated-tests: New file.
28602         * modules/unictype/property-diacritic-tests: New file.
28603         * modules/unictype/property-extender-tests: New file.
28604         * modules/unictype/property-format-control-tests: New file.
28605         * modules/unictype/property-grapheme-base-tests: New file.
28606         * modules/unictype/property-grapheme-extend-tests: New file.
28607         * modules/unictype/property-grapheme-link-tests: New file.
28608         * modules/unictype/property-hex-digit-tests: New file.
28609         * modules/unictype/property-hyphen-tests: New file.
28610         * modules/unictype/property-id-continue-tests: New file.
28611         * modules/unictype/property-id-start-tests: New file.
28612         * modules/unictype/property-ideographic-tests: New file.
28613         * modules/unictype/property-ids-binary-operator-tests: New file.
28614         * modules/unictype/property-ids-trinary-operator-tests: New file.
28615         * modules/unictype/property-ignorable-control-tests: New file.
28616         * modules/unictype/property-iso-control-tests: New file.
28617         * modules/unictype/property-join-control-tests: New file.
28618         * modules/unictype/property-left-of-pair-tests: New file.
28619         * modules/unictype/property-line-separator-tests: New file.
28620         * modules/unictype/property-logical-order-exception-tests: New file.
28621         * modules/unictype/property-lowercase-tests: New file.
28622         * modules/unictype/property-math-tests: New file.
28623         * modules/unictype/property-non-break-tests: New file.
28624         * modules/unictype/property-not-a-character-tests: New file.
28625         * modules/unictype/property-numeric-tests: New file.
28626         * modules/unictype/property-other-alphabetic-tests: New file.
28627         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28628         * modules/unictype/property-other-grapheme-extend-tests: New file.
28629         * modules/unictype/property-other-id-continue-tests: New file.
28630         * modules/unictype/property-other-id-start-tests: New file.
28631         * modules/unictype/property-other-lowercase-tests: New file.
28632         * modules/unictype/property-other-math-tests: New file.
28633         * modules/unictype/property-other-uppercase-tests: New file.
28634         * modules/unictype/property-paired-punctuation-tests: New file.
28635         * modules/unictype/property-paragraph-separator-tests: New file.
28636         * modules/unictype/property-pattern-syntax-tests: New file.
28637         * modules/unictype/property-pattern-white-space-tests: New file.
28638         * modules/unictype/property-private-use-tests: New file.
28639         * modules/unictype/property-punctuation-tests: New file.
28640         * modules/unictype/property-quotation-mark-tests: New file.
28641         * modules/unictype/property-radical-tests: New file.
28642         * modules/unictype/property-sentence-terminal-tests: New file.
28643         * modules/unictype/property-soft-dotted-tests: New file.
28644         * modules/unictype/property-space-tests: New file.
28645         * modules/unictype/property-terminal-punctuation-tests: New file.
28646         * modules/unictype/property-test-tests: New file.
28647         * modules/unictype/property-titlecase-tests: New file.
28648         * modules/unictype/property-unassigned-code-value-tests: New file.
28649         * modules/unictype/property-unified-ideograph-tests: New file.
28650         * modules/unictype/property-uppercase-tests: New file.
28651         * modules/unictype/property-variation-selector-tests: New file.
28652         * modules/unictype/property-white-space-tests: New file.
28653         * modules/unictype/property-xid-continue-tests: New file.
28654         * modules/unictype/property-xid-start-tests: New file.
28655         * modules/unictype/property-zero-width-tests: New file.
28656         * modules/unictype/scripts-tests: New file.
28657         * modules/unictype/syntax-c-ident-tests: New file.
28658         * modules/unictype/syntax-c-whitespace-tests: New file.
28659         * modules/unictype/syntax-java-ident-tests: New file.
28660         * modules/unictype/syntax-java-whitespace-tests: New file.
28661         * tests/unictype/test-bidi_byname.c: New file.
28662         * tests/unictype/test-bidi_name.c: New file.
28663         * tests/unictype/test-bidi_of.c: New file.
28664         * tests/unictype/test-bidi_test.c: New file.
28665         * tests/unictype/test-block_list.c: New file.
28666         * tests/unictype/test-block_of.c: New file.
28667         * tests/unictype/test-block_test.c: New file.
28668         * tests/unictype/test-categ_and.c: New file.
28669         * tests/unictype/test-categ_and_not.c: New file.
28670         * tests/unictype/test-categ_byname.c: New file.
28671         * tests/unictype/test-categ_name.c: New file.
28672         * tests/unictype/test-categ_none.c: New file.
28673         * tests/unictype/test-categ_of.c: New file.
28674         * tests/unictype/test-categ_or.c: New file.
28675         * tests/unictype/test-categ_test_withtable.c: New file.
28676         * tests/unictype/test-combining.c: New file.
28677         * tests/unictype/test-decdigit.c: New file.
28678         * tests/unictype/test-digit.c: New file.
28679         * tests/unictype/test-mirror.c: New file.
28680         * tests/unictype/test-numeric.c: New file.
28681         * tests/unictype/test-pr_byname.c: New file.
28682         * tests/unictype/test-pr_test.c: New file.
28683         * tests/unictype/test-predicate-part1.h: New file.
28684         * tests/unictype/test-predicate-part2.h: New file.
28685         * tests/unictype/test-scripts.c: New file.
28686         * tests/unictype/test-sy_c_ident.c: New file.
28687         * tests/unictype/test-sy_java_ident.c: New file.
28688
28689         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28690         for Unicode 5.0.0.
28691         * tests/unictype/test-categ_Cc.c: Likewise.
28692         * tests/unictype/test-categ_Cf.c: Likewise.
28693         * tests/unictype/test-categ_Cn.c: Likewise.
28694         * tests/unictype/test-categ_Co.c: Likewise.
28695         * tests/unictype/test-categ_Cs.c: Likewise.
28696         * tests/unictype/test-categ_L.c: Likewise.
28697         * tests/unictype/test-categ_Ll.c: Likewise.
28698         * tests/unictype/test-categ_Lm.c: Likewise.
28699         * tests/unictype/test-categ_Lo.c: Likewise.
28700         * tests/unictype/test-categ_Lt.c: Likewise.
28701         * tests/unictype/test-categ_Lu.c: Likewise.
28702         * tests/unictype/test-categ_M.c: Likewise.
28703         * tests/unictype/test-categ_Mc.c: Likewise.
28704         * tests/unictype/test-categ_Me.c: Likewise.
28705         * tests/unictype/test-categ_Mn.c: Likewise.
28706         * tests/unictype/test-categ_N.c: Likewise.
28707         * tests/unictype/test-categ_Nd.c: Likewise.
28708         * tests/unictype/test-categ_Nl.c: Likewise.
28709         * tests/unictype/test-categ_No.c: Likewise.
28710         * tests/unictype/test-categ_P.c: Likewise.
28711         * tests/unictype/test-categ_Pc.c: Likewise.
28712         * tests/unictype/test-categ_Pd.c: Likewise.
28713         * tests/unictype/test-categ_Pe.c: Likewise.
28714         * tests/unictype/test-categ_Pf.c: Likewise.
28715         * tests/unictype/test-categ_Pi.c: Likewise.
28716         * tests/unictype/test-categ_Po.c: Likewise.
28717         * tests/unictype/test-categ_Ps.c: Likewise.
28718         * tests/unictype/test-categ_S.c: Likewise.
28719         * tests/unictype/test-categ_Sc.c: Likewise.
28720         * tests/unictype/test-categ_Sk.c: Likewise.
28721         * tests/unictype/test-categ_Sm.c: Likewise.
28722         * tests/unictype/test-categ_So.c: Likewise.
28723         * tests/unictype/test-categ_Z.c: Likewise.
28724         * tests/unictype/test-categ_Zl.c: Likewise.
28725         * tests/unictype/test-categ_Zp.c: Likewise.
28726         * tests/unictype/test-categ_Zs.c: Likewise.
28727         * tests/unictype/test-ctype_alnum.c: Likewise.
28728         * tests/unictype/test-ctype_alpha.c: Likewise.
28729         * tests/unictype/test-ctype_blank.c: Likewise.
28730         * tests/unictype/test-ctype_cntrl.c: Likewise.
28731         * tests/unictype/test-ctype_digit.c: Likewise.
28732         * tests/unictype/test-ctype_graph.c: Likewise.
28733         * tests/unictype/test-ctype_lower.c: Likewise.
28734         * tests/unictype/test-ctype_print.c: Likewise.
28735         * tests/unictype/test-ctype_punct.c: Likewise.
28736         * tests/unictype/test-ctype_space.c: Likewise.
28737         * tests/unictype/test-ctype_upper.c: Likewise.
28738         * tests/unictype/test-ctype_xdigit.c: Likewise.
28739         * tests/unictype/test-decdigit.h: Likewise.
28740         * tests/unictype/test-digit.h: Likewise.
28741         * tests/unictype/test-numeric.h: Likewise.
28742         * tests/unictype/test-pr_alphabetic.c: Likewise.
28743         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28744         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28745         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28746         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28747         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28748         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28749         * tests/unictype/test-pr_bidi_control.c: Likewise.
28750         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28751         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28752         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28753         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28754         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28755         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28756         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28757         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28758         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28759         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28760         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28761         * tests/unictype/test-pr_combining.c: Likewise.
28762         * tests/unictype/test-pr_composite.c: Likewise.
28763         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28764         * tests/unictype/test-pr_dash.c: Likewise.
28765         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28766         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28767         * tests/unictype/test-pr_deprecated.c: Likewise.
28768         * tests/unictype/test-pr_diacritic.c: Likewise.
28769         * tests/unictype/test-pr_extender.c: Likewise.
28770         * tests/unictype/test-pr_format_control.c: Likewise.
28771         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28772         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28773         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28774         * tests/unictype/test-pr_hex_digit.c: Likewise.
28775         * tests/unictype/test-pr_hyphen.c: Likewise.
28776         * tests/unictype/test-pr_id_continue.c: Likewise.
28777         * tests/unictype/test-pr_id_start.c: Likewise.
28778         * tests/unictype/test-pr_ideographic.c: Likewise.
28779         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28780         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28781         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28782         * tests/unictype/test-pr_iso_control.c: Likewise.
28783         * tests/unictype/test-pr_join_control.c: Likewise.
28784         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28785         * tests/unictype/test-pr_line_separator.c: Likewise.
28786         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28787         * tests/unictype/test-pr_lowercase.c: Likewise.
28788         * tests/unictype/test-pr_math.c: Likewise.
28789         * tests/unictype/test-pr_non_break.c: Likewise.
28790         * tests/unictype/test-pr_not_a_character.c: Likewise.
28791         * tests/unictype/test-pr_numeric.c: Likewise.
28792         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28793         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28794         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28795         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28796         * tests/unictype/test-pr_other_id_start.c: Likewise.
28797         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28798         * tests/unictype/test-pr_other_math.c: Likewise.
28799         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28800         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28801         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28802         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28803         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28804         * tests/unictype/test-pr_private_use.c: Likewise.
28805         * tests/unictype/test-pr_punctuation.c: Likewise.
28806         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28807         * tests/unictype/test-pr_radical.c: Likewise.
28808         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28809         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28810         * tests/unictype/test-pr_space.c: Likewise.
28811         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28812         * tests/unictype/test-pr_titlecase.c: Likewise.
28813         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28814         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28815         * tests/unictype/test-pr_uppercase.c: Likewise.
28816         * tests/unictype/test-pr_variation_selector.c: Likewise.
28817         * tests/unictype/test-pr_white_space.c: Likewise.
28818         * tests/unictype/test-pr_xid_continue.c: Likewise.
28819         * tests/unictype/test-pr_xid_start.c: Likewise.
28820         * tests/unictype/test-pr_zero_width.c: Likewise.
28821         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28822         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28823
28824 2007-11-12  Bruno Haible  <bruno@clisp.org>
28825
28826         Unicode character classification functions.
28827         * lib/unictype.h: New file.
28828         * modules/unictype/base: New file.
28829         * modules/unictype/category-L: New file.
28830         * modules/unictype/category-Lu: New file.
28831         * modules/unictype/category-Ll: New file.
28832         * modules/unictype/category-Lt: New file.
28833         * modules/unictype/category-Lm: New file.
28834         * modules/unictype/category-Lo: New file.
28835         * modules/unictype/category-M: New file.
28836         * modules/unictype/category-Mn: New file.
28837         * modules/unictype/category-Mc: New file.
28838         * modules/unictype/category-Me: New file.
28839         * modules/unictype/category-N: New file.
28840         * modules/unictype/category-Nd: New file.
28841         * modules/unictype/category-Nl: New file.
28842         * modules/unictype/category-No: New file.
28843         * modules/unictype/category-P: New file.
28844         * modules/unictype/category-Pc: New file.
28845         * modules/unictype/category-Pd: New file.
28846         * modules/unictype/category-Ps: New file.
28847         * modules/unictype/category-Pe: New file.
28848         * modules/unictype/category-Pi: New file.
28849         * modules/unictype/category-Pf: New file.
28850         * modules/unictype/category-Po: New file.
28851         * modules/unictype/category-S: New file.
28852         * modules/unictype/category-Sm: New file.
28853         * modules/unictype/category-Sc: New file.
28854         * modules/unictype/category-Sk: New file.
28855         * modules/unictype/category-So: New file.
28856         * modules/unictype/category-Z: New file.
28857         * modules/unictype/category-Zs: New file.
28858         * modules/unictype/category-Zl: New file.
28859         * modules/unictype/category-Zp: New file.
28860         * modules/unictype/category-C: New file.
28861         * modules/unictype/category-Cc: New file.
28862         * modules/unictype/category-Cf: New file.
28863         * modules/unictype/category-Cs: New file.
28864         * modules/unictype/category-Co: New file.
28865         * modules/unictype/category-Cn: New file.
28866         * modules/unictype/category-or: New file.
28867         * modules/unictype/category-of: New file.
28868         * modules/unictype/category-test: New file.
28869         * modules/unictype/category-test-withtable: New file.
28870         * modules/unictype/category-byname: New file.
28871         * modules/unictype/category-none: New file.
28872         * modules/unictype/category-and: New file.
28873         * modules/unictype/category-and-not: New file.
28874         * modules/unictype/category-name: New file.
28875         * modules/unictype/combining-class: New file.
28876         * modules/unictype/category-all: New file.
28877         * modules/unictype/bidicategory-all: New file.
28878         * modules/unictype/bidicategory-byname: New file.
28879         * modules/unictype/bidicategory-name: New file.
28880         * modules/unictype/bidicategory-of: New file.
28881         * modules/unictype/bidicategory-test: New file.
28882         * modules/unictype/decimal-digit: New file.
28883         * modules/unictype/digit: New file.
28884         * modules/unictype/numeric: New file.
28885         * modules/unictype/mirror: New file.
28886         * modules/unictype/property-white-space: New file.
28887         * modules/unictype/property-alphabetic: New file.
28888         * modules/unictype/property-other-alphabetic: New file.
28889         * modules/unictype/property-not-a-character: New file.
28890         * modules/unictype/property-default-ignorable-code-point: New file.
28891         * modules/unictype/property-other-default-ignorable-code-point: New
28892         file.
28893         * modules/unictype/property-deprecated: New file.
28894         * modules/unictype/property-logical-order-exception: New file.
28895         * modules/unictype/property-variation-selector: New file.
28896         * modules/unictype/property-private-use: New file.
28897         * modules/unictype/property-unassigned-code-value: New file.
28898         * modules/unictype/property-uppercase: New file.
28899         * modules/unictype/property-other-uppercase: New file.
28900         * modules/unictype/property-lowercase: New file.
28901         * modules/unictype/property-other-lowercase: New file.
28902         * modules/unictype/property-titlecase: New file.
28903         * modules/unictype/property-soft-dotted: New file.
28904         * modules/unictype/property-id-start: New file.
28905         * modules/unictype/property-other-id-start: New file.
28906         * modules/unictype/property-id-continue: New file.
28907         * modules/unictype/property-other-id-continue: New file.
28908         * modules/unictype/property-xid-start: New file.
28909         * modules/unictype/property-xid-continue: New file.
28910         * modules/unictype/property-pattern-white-space: New file.
28911         * modules/unictype/property-pattern-syntax: New file.
28912         * modules/unictype/property-join-control: New file.
28913         * modules/unictype/property-grapheme-base: New file.
28914         * modules/unictype/property-grapheme-extend: New file.
28915         * modules/unictype/property-other-grapheme-extend: New file.
28916         * modules/unictype/property-grapheme-link: New file.
28917         * modules/unictype/property-bidi-control: New file.
28918         * modules/unictype/property-bidi-left-to-right: New file.
28919         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28920         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28921         * modules/unictype/property-bidi-european-digit: New file.
28922         * modules/unictype/property-bidi-eur-num-separator: New file.
28923         * modules/unictype/property-bidi-eur-num-terminator: New file.
28924         * modules/unictype/property-bidi-arabic-digit: New file.
28925         * modules/unictype/property-bidi-common-separator: New file.
28926         * modules/unictype/property-bidi-block-separator: New file.
28927         * modules/unictype/property-bidi-segment-separator: New file.
28928         * modules/unictype/property-bidi-whitespace: New file.
28929         * modules/unictype/property-bidi-non-spacing-mark: New file.
28930         * modules/unictype/property-bidi-boundary-neutral: New file.
28931         * modules/unictype/property-bidi-pdf: New file.
28932         * modules/unictype/property-bidi-embedding-or-override: New file.
28933         * modules/unictype/property-bidi-other-neutral: New file.
28934         * modules/unictype/property-hex-digit: New file.
28935         * modules/unictype/property-ascii-hex-digit: New file.
28936         * modules/unictype/property-ideographic: New file.
28937         * modules/unictype/property-unified-ideograph: New file.
28938         * modules/unictype/property-radical: New file.
28939         * modules/unictype/property-ids-binary-operator: New file.
28940         * modules/unictype/property-ids-trinary-operator: New file.
28941         * modules/unictype/property-zero-width: New file.
28942         * modules/unictype/property-space: New file.
28943         * modules/unictype/property-non-break: New file.
28944         * modules/unictype/property-iso-control: New file.
28945         * modules/unictype/property-format-control: New file.
28946         * modules/unictype/property-dash: New file.
28947         * modules/unictype/property-hyphen: New file.
28948         * modules/unictype/property-punctuation: New file.
28949         * modules/unictype/property-line-separator: New file.
28950         * modules/unictype/property-paragraph-separator: New file.
28951         * modules/unictype/property-quotation-mark: New file.
28952         * modules/unictype/property-sentence-terminal: New file.
28953         * modules/unictype/property-terminal-punctuation: New file.
28954         * modules/unictype/property-currency-symbol: New file.
28955         * modules/unictype/property-math: New file.
28956         * modules/unictype/property-other-math: New file.
28957         * modules/unictype/property-paired-punctuation: New file.
28958         * modules/unictype/property-left-of-pair: New file.
28959         * modules/unictype/property-combining: New file.
28960         * modules/unictype/property-composite: New file.
28961         * modules/unictype/property-decimal-digit: New file.
28962         * modules/unictype/property-numeric: New file.
28963         * modules/unictype/property-diacritic: New file.
28964         * modules/unictype/property-extender: New file.
28965         * modules/unictype/property-ignorable-control: New file.
28966         * modules/unictype/property-test: New file.
28967         * modules/unictype/property-byname: New file.
28968         * modules/unictype/property-all: New file.
28969         * modules/unictype/scripts: New file.
28970         * modules/unictype/scripts-all: New file.
28971         * modules/unictype/block-of: New file.
28972         * modules/unictype/block-test: New file.
28973         * modules/unictype/block-list: New file.
28974         * modules/unictype/block-all: New file.
28975         * modules/unictype/syntax-c-whitespace: New file.
28976         * modules/unictype/syntax-java-whitespace: New file.
28977         * modules/unictype/syntax-c-ident: New file.
28978         * modules/unictype/syntax-java-ident: New file.
28979         * modules/unictype/ctype-alnum: New file.
28980         * modules/unictype/ctype-alpha: New file.
28981         * modules/unictype/ctype-cntrl: New file.
28982         * modules/unictype/ctype-digit: New file.
28983         * modules/unictype/ctype-graph: New file.
28984         * modules/unictype/ctype-lower: New file.
28985         * modules/unictype/ctype-print: New file.
28986         * modules/unictype/ctype-punct: New file.
28987         * modules/unictype/ctype-space: New file.
28988         * modules/unictype/ctype-upper: New file.
28989         * modules/unictype/ctype-xdigit: New file.
28990         * modules/unictype/ctype-blank: New file.
28991         * lib/unictype/bidi_byname.c: New file.
28992         * lib/unictype/bidi_name.c: New file.
28993         * lib/unictype/bidi_of.c: New file.
28994         * lib/unictype/bidi_test.c: New file.
28995         * lib/unictype/bitmap.h: New file.
28996         * lib/unictype/block_test.c: New file.
28997         * lib/unictype/blocks.c: New file.
28998         * lib/unictype/categ_C.c: New file.
28999         * lib/unictype/categ_Cc.c: New file.
29000         * lib/unictype/categ_Cf.c: New file.
29001         * lib/unictype/categ_Cn.c: New file.
29002         * lib/unictype/categ_Co.c: New file.
29003         * lib/unictype/categ_Cs.c: New file.
29004         * lib/unictype/categ_L.c: New file.
29005         * lib/unictype/categ_Ll.c: New file.
29006         * lib/unictype/categ_Lm.c: New file.
29007         * lib/unictype/categ_Lo.c: New file.
29008         * lib/unictype/categ_Lt.c: New file.
29009         * lib/unictype/categ_Lu.c: New file.
29010         * lib/unictype/categ_M.c: New file.
29011         * lib/unictype/categ_Mc.c: New file.
29012         * lib/unictype/categ_Me.c: New file.
29013         * lib/unictype/categ_Mn.c: New file.
29014         * lib/unictype/categ_N.c: New file.
29015         * lib/unictype/categ_Nd.c: New file.
29016         * lib/unictype/categ_Nl.c: New file.
29017         * lib/unictype/categ_No.c: New file.
29018         * lib/unictype/categ_P.c: New file.
29019         * lib/unictype/categ_Pc.c: New file.
29020         * lib/unictype/categ_Pd.c: New file.
29021         * lib/unictype/categ_Pe.c: New file.
29022         * lib/unictype/categ_Pf.c: New file.
29023         * lib/unictype/categ_Pi.c: New file.
29024         * lib/unictype/categ_Po.c: New file.
29025         * lib/unictype/categ_Ps.c: New file.
29026         * lib/unictype/categ_S.c: New file.
29027         * lib/unictype/categ_Sc.c: New file.
29028         * lib/unictype/categ_Sk.c: New file.
29029         * lib/unictype/categ_Sm.c: New file.
29030         * lib/unictype/categ_So.c: New file.
29031         * lib/unictype/categ_Z.c: New file.
29032         * lib/unictype/categ_Zl.c: New file.
29033         * lib/unictype/categ_Zp.c: New file.
29034         * lib/unictype/categ_Zs.c: New file.
29035         * lib/unictype/categ_and.c: New file.
29036         * lib/unictype/categ_and_not.c: New file.
29037         * lib/unictype/categ_byname.c: New file.
29038         * lib/unictype/categ_name.c: New file.
29039         * lib/unictype/categ_none.c: New file.
29040         * lib/unictype/categ_of.c: New file.
29041         * lib/unictype/categ_or.c: New file.
29042         * lib/unictype/categ_test.c: New file.
29043         * lib/unictype/combining.c: New file.
29044         * lib/unictype/ctype_alnum.c: New file.
29045         * lib/unictype/ctype_alpha.c: New file.
29046         * lib/unictype/ctype_blank.c: New file.
29047         * lib/unictype/ctype_cntrl.c: New file.
29048         * lib/unictype/ctype_digit.c: New file.
29049         * lib/unictype/ctype_graph.c: New file.
29050         * lib/unictype/ctype_lower.c: New file.
29051         * lib/unictype/ctype_print.c: New file.
29052         * lib/unictype/ctype_punct.c: New file.
29053         * lib/unictype/ctype_space.c: New file.
29054         * lib/unictype/ctype_upper.c: New file.
29055         * lib/unictype/ctype_xdigit.c: New file.
29056         * lib/unictype/decdigit.c: New file.
29057         * lib/unictype/digit.c: New file.
29058         * lib/unictype/identsyntaxmap.h: New file.
29059         * lib/unictype/mirror.c: New file.
29060         * lib/unictype/numeric.c: New file.
29061         * lib/unictype/pr_alphabetic.c: New file.
29062         * lib/unictype/pr_ascii_hex_digit.c: New file.
29063         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29064         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29065         * lib/unictype/pr_bidi_block_separator.c: New file.
29066         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29067         * lib/unictype/pr_bidi_common_separator.c: New file.
29068         * lib/unictype/pr_bidi_control.c: New file.
29069         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29070         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29071         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29072         * lib/unictype/pr_bidi_european_digit.c: New file.
29073         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29074         * lib/unictype/pr_bidi_left_to_right.c: New file.
29075         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29076         * lib/unictype/pr_bidi_other_neutral.c: New file.
29077         * lib/unictype/pr_bidi_pdf.c: New file.
29078         * lib/unictype/pr_bidi_segment_separator.c: New file.
29079         * lib/unictype/pr_bidi_whitespace.c: New file.
29080         * lib/unictype/pr_byname.c: New file.
29081         * lib/unictype/pr_byname.gperf: New file.
29082         * lib/unictype/pr_combining.c: New file.
29083         * lib/unictype/pr_composite.c: New file.
29084         * lib/unictype/pr_currency_symbol.c: New file.
29085         * lib/unictype/pr_dash.c: New file.
29086         * lib/unictype/pr_decimal_digit.c: New file.
29087         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29088         * lib/unictype/pr_deprecated.c: New file.
29089         * lib/unictype/pr_diacritic.c: New file.
29090         * lib/unictype/pr_extender.c: New file.
29091         * lib/unictype/pr_format_control.c: New file.
29092         * lib/unictype/pr_grapheme_base.c: New file.
29093         * lib/unictype/pr_grapheme_extend.c: New file.
29094         * lib/unictype/pr_grapheme_link.c: New file.
29095         * lib/unictype/pr_hex_digit.c: New file.
29096         * lib/unictype/pr_hyphen.c: New file.
29097         * lib/unictype/pr_id_continue.c: New file.
29098         * lib/unictype/pr_id_start.c: New file.
29099         * lib/unictype/pr_ideographic.c: New file.
29100         * lib/unictype/pr_ids_binary_operator.c: New file.
29101         * lib/unictype/pr_ids_trinary_operator.c: New file.
29102         * lib/unictype/pr_ignorable_control.c: New file.
29103         * lib/unictype/pr_iso_control.c: New file.
29104         * lib/unictype/pr_join_control.c: New file.
29105         * lib/unictype/pr_left_of_pair.c: New file.
29106         * lib/unictype/pr_line_separator.c: New file.
29107         * lib/unictype/pr_logical_order_exception.c: New file.
29108         * lib/unictype/pr_lowercase.c: New file.
29109         * lib/unictype/pr_math.c: New file.
29110         * lib/unictype/pr_non_break.c: New file.
29111         * lib/unictype/pr_not_a_character.c: New file.
29112         * lib/unictype/pr_numeric.c: New file.
29113         * lib/unictype/pr_other_alphabetic.c: New file.
29114         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29115         * lib/unictype/pr_other_grapheme_extend.c: New file.
29116         * lib/unictype/pr_other_id_continue.c: New file.
29117         * lib/unictype/pr_other_id_start.c: New file.
29118         * lib/unictype/pr_other_lowercase.c: New file.
29119         * lib/unictype/pr_other_math.c: New file.
29120         * lib/unictype/pr_other_uppercase.c: New file.
29121         * lib/unictype/pr_paired_punctuation.c: New file.
29122         * lib/unictype/pr_paragraph_separator.c: New file.
29123         * lib/unictype/pr_pattern_syntax.c: New file.
29124         * lib/unictype/pr_pattern_white_space.c: New file.
29125         * lib/unictype/pr_private_use.c: New file.
29126         * lib/unictype/pr_punctuation.c: New file.
29127         * lib/unictype/pr_quotation_mark.c: New file.
29128         * lib/unictype/pr_radical.c: New file.
29129         * lib/unictype/pr_sentence_terminal.c: New file.
29130         * lib/unictype/pr_soft_dotted.c: New file.
29131         * lib/unictype/pr_space.c: New file.
29132         * lib/unictype/pr_terminal_punctuation.c: New file.
29133         * lib/unictype/pr_test.c: New file.
29134         * lib/unictype/pr_titlecase.c: New file.
29135         * lib/unictype/pr_unassigned_code_value.c: New file.
29136         * lib/unictype/pr_unified_ideograph.c: New file.
29137         * lib/unictype/pr_uppercase.c: New file.
29138         * lib/unictype/pr_variation_selector.c: New file.
29139         * lib/unictype/pr_white_space.c: New file.
29140         * lib/unictype/pr_xid_continue.c: New file.
29141         * lib/unictype/pr_xid_start.c: New file.
29142         * lib/unictype/pr_zero_width.c: New file.
29143         * lib/unictype/scripts.c: New file.
29144         * lib/unictype/sy_c_ident.c: New file.
29145         * lib/unictype/sy_c_whitespace.c: New file.
29146         * lib/unictype/sy_java_ident.c: New file.
29147         * lib/unictype/sy_java_whitespace.c: New file.
29148
29149         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29150         Unicode 5.0.0.
29151         * lib/unictype/blocks.h: Likewise.
29152         * lib/unictype/categ_C.h: Likewise.
29153         * lib/unictype/categ_Cc.h: Likewise.
29154         * lib/unictype/categ_Cf.h: Likewise.
29155         * lib/unictype/categ_Cn.h: Likewise.
29156         * lib/unictype/categ_Co.h: Likewise.
29157         * lib/unictype/categ_Cs.h: Likewise.
29158         * lib/unictype/categ_L.h: Likewise.
29159         * lib/unictype/categ_Ll.h: Likewise.
29160         * lib/unictype/categ_Lm.h: Likewise.
29161         * lib/unictype/categ_Lo.h: Likewise.
29162         * lib/unictype/categ_Lt.h: Likewise.
29163         * lib/unictype/categ_Lu.h: Likewise.
29164         * lib/unictype/categ_M.h: Likewise.
29165         * lib/unictype/categ_Mc.h: Likewise.
29166         * lib/unictype/categ_Me.h: Likewise.
29167         * lib/unictype/categ_Mn.h: Likewise.
29168         * lib/unictype/categ_N.h: Likewise.
29169         * lib/unictype/categ_Nd.h: Likewise.
29170         * lib/unictype/categ_Nl.h: Likewise.
29171         * lib/unictype/categ_No.h: Likewise.
29172         * lib/unictype/categ_P.h: Likewise.
29173         * lib/unictype/categ_Pc.h: Likewise.
29174         * lib/unictype/categ_Pd.h: Likewise.
29175         * lib/unictype/categ_Pe.h: Likewise.
29176         * lib/unictype/categ_Pf.h: Likewise.
29177         * lib/unictype/categ_Pi.h: Likewise.
29178         * lib/unictype/categ_Po.h: Likewise.
29179         * lib/unictype/categ_Ps.h: Likewise.
29180         * lib/unictype/categ_S.h: Likewise.
29181         * lib/unictype/categ_Sc.h: Likewise.
29182         * lib/unictype/categ_Sk.h: Likewise.
29183         * lib/unictype/categ_Sm.h: Likewise.
29184         * lib/unictype/categ_So.h: Likewise.
29185         * lib/unictype/categ_Z.h: Likewise.
29186         * lib/unictype/categ_Zl.h: Likewise.
29187         * lib/unictype/categ_Zp.h: Likewise.
29188         * lib/unictype/categ_Zs.h: Likewise.
29189         * lib/unictype/categ_of.h: Likewise.
29190         * lib/unictype/combining.h: Likewise.
29191         * lib/unictype/ctype_alnum.h: Likewise.
29192         * lib/unictype/ctype_alpha.h: Likewise.
29193         * lib/unictype/ctype_blank.h: Likewise.
29194         * lib/unictype/ctype_cntrl.h: Likewise.
29195         * lib/unictype/ctype_digit.h: Likewise.
29196         * lib/unictype/ctype_graph.h: Likewise.
29197         * lib/unictype/ctype_lower.h: Likewise.
29198         * lib/unictype/ctype_print.h: Likewise.
29199         * lib/unictype/ctype_punct.h: Likewise.
29200         * lib/unictype/ctype_space.h: Likewise.
29201         * lib/unictype/ctype_upper.h: Likewise.
29202         * lib/unictype/ctype_xdigit.h: Likewise.
29203         * lib/unictype/decdigit.h: Likewise.
29204         * lib/unictype/digit.h: Likewise.
29205         * lib/unictype/mirror.h: Likewise.
29206         * lib/unictype/numeric.h: Likewise.
29207         * lib/unictype/pr_alphabetic.h: Likewise.
29208         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29209         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29210         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29211         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29212         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29213         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29214         * lib/unictype/pr_bidi_control.h: Likewise.
29215         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29216         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29217         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29218         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29219         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29220         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29221         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29222         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29223         * lib/unictype/pr_bidi_pdf.h: Likewise.
29224         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29225         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29226         * lib/unictype/pr_combining.h: Likewise.
29227         * lib/unictype/pr_composite.h: Likewise.
29228         * lib/unictype/pr_currency_symbol.h: Likewise.
29229         * lib/unictype/pr_dash.h: Likewise.
29230         * lib/unictype/pr_decimal_digit.h: Likewise.
29231         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29232         * lib/unictype/pr_deprecated.h: Likewise.
29233         * lib/unictype/pr_diacritic.h: Likewise.
29234         * lib/unictype/pr_extender.h: Likewise.
29235         * lib/unictype/pr_format_control.h: Likewise.
29236         * lib/unictype/pr_grapheme_base.h: Likewise.
29237         * lib/unictype/pr_grapheme_extend.h: Likewise.
29238         * lib/unictype/pr_grapheme_link.h: Likewise.
29239         * lib/unictype/pr_hex_digit.h: Likewise.
29240         * lib/unictype/pr_hyphen.h: Likewise.
29241         * lib/unictype/pr_id_continue.h: Likewise.
29242         * lib/unictype/pr_id_start.h: Likewise.
29243         * lib/unictype/pr_ideographic.h: Likewise.
29244         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29245         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29246         * lib/unictype/pr_ignorable_control.h: Likewise.
29247         * lib/unictype/pr_iso_control.h: Likewise.
29248         * lib/unictype/pr_join_control.h: Likewise.
29249         * lib/unictype/pr_left_of_pair.h: Likewise.
29250         * lib/unictype/pr_line_separator.h: Likewise.
29251         * lib/unictype/pr_logical_order_exception.h: Likewise.
29252         * lib/unictype/pr_lowercase.h: Likewise.
29253         * lib/unictype/pr_math.h: Likewise.
29254         * lib/unictype/pr_non_break.h: Likewise.
29255         * lib/unictype/pr_not_a_character.h: Likewise.
29256         * lib/unictype/pr_numeric.h: Likewise.
29257         * lib/unictype/pr_other_alphabetic.h: Likewise.
29258         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29259         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29260         * lib/unictype/pr_other_id_continue.h: Likewise.
29261         * lib/unictype/pr_other_id_start.h: Likewise.
29262         * lib/unictype/pr_other_lowercase.h: Likewise.
29263         * lib/unictype/pr_other_math.h: Likewise.
29264         * lib/unictype/pr_other_uppercase.h: Likewise.
29265         * lib/unictype/pr_paired_punctuation.h: Likewise.
29266         * lib/unictype/pr_paragraph_separator.h: Likewise.
29267         * lib/unictype/pr_pattern_syntax.h: Likewise.
29268         * lib/unictype/pr_pattern_white_space.h: Likewise.
29269         * lib/unictype/pr_private_use.h: Likewise.
29270         * lib/unictype/pr_punctuation.h: Likewise.
29271         * lib/unictype/pr_quotation_mark.h: Likewise.
29272         * lib/unictype/pr_radical.h: Likewise.
29273         * lib/unictype/pr_sentence_terminal.h: Likewise.
29274         * lib/unictype/pr_soft_dotted.h: Likewise.
29275         * lib/unictype/pr_space.h: Likewise.
29276         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29277         * lib/unictype/pr_titlecase.h: Likewise.
29278         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29279         * lib/unictype/pr_unified_ideograph.h: Likewise.
29280         * lib/unictype/pr_uppercase.h: Likewise.
29281         * lib/unictype/pr_variation_selector.h: Likewise.
29282         * lib/unictype/pr_white_space.h: Likewise.
29283         * lib/unictype/pr_xid_continue.h: Likewise.
29284         * lib/unictype/pr_xid_start.h: Likewise.
29285         * lib/unictype/pr_zero_width.h: Likewise.
29286         * lib/unictype/scripts.h: Likewise.
29287         * lib/unictype/scripts_byname.gperf: Likewise.
29288         * lib/unictype/sy_c_ident.h: Likewise.
29289         * lib/unictype/sy_c_whitespace.h: Likewise.
29290         * lib/unictype/sy_java_ident.h: Likewise.
29291         * lib/unictype/sy_java_whitespace.h: Likewise.
29292
29293         * lib/unictype/Makefile: New file.
29294         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29295         glibc.
29296         * lib/unictype/3level.h: New file, copied from glibc.
29297         * lib/unictype/3levelbit.h: New file.
29298
29299 2007-11-11  Bruno Haible  <bruno@clisp.org>
29300
29301         * modules/gperf: New file.
29302         * modules/iconv_open (Depends-on): Add it.
29303         (Makefile.am): Remove the GPERF definition.
29304
29305 2007-11-11  Bruno Haible  <bruno@clisp.org>
29306
29307         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29308         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29309
29310 2007-11-11  Bruno Haible  <bruno@clisp.org>
29311
29312         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29313         (usage): Remove function.
29314
29315 2007-11-11  Bruno Haible  <bruno@clisp.org>
29316
29317         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29318         gl_FUNC_CEILF_LIBS.
29319         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29320         gl_FUNC_CEIL_LIBS.
29321         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29322         gl_FUNC_CEILL_LIBS.
29323         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29324         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29325         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29326
29327 2007-11-11  Bruno Haible  <bruno@clisp.org>
29328
29329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29330         roundf were declared but do not exist on functions.
29331         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29332         roundl were declared but do not exist on functions.
29333         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29334         HAVE_FLOORL_AND_CEILL, respectively.
29335         Needed for Sun C on Solaris 10.
29336
29337 2007-11-11  Bruno Haible  <bruno@clisp.org>
29338
29339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29340         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29341         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29342         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29343         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29344         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29345         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29346         HAVE_DECL_ROUNDF.
29347         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29348         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29350         of HAVE_DECL_ROUND*.
29351         * modules/math (Makefile.am): Update.
29352
29353 2007-11-10  Bruno Haible  <bruno@clisp.org>
29354
29355         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29356         ptrdiff_t as m4/intl.m4.
29357
29358 2007-11-10  Jim Meyering  <meyering@redhat.com>
29359
29360         Avoid link failure for the argmatch test.
29361         * tests/test-argmatch.c (usage): Define function to avoid a link
29362         failure: argmatch_die requires a usage function.
29363
29364 2007-11-09  Bruno Haible  <bruno@clisp.org>
29365
29366         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29367         * doc/functions/vsnprintf.texi: Likewise.
29368         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29369         with a size argument < 2.
29370
29371 2007-11-09  Bruno Haible  <bruno@clisp.org>
29372
29373         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29374         buffer. Fixes an inefficiency introduced on 2007-11-03.
29375
29376 2007-11-09  Bruno Haible  <bruno@clisp.org>
29377
29378         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29379         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29380
29381 2007-11-08  Jim Meyering  <meyering@redhat.com>
29382
29383         Change cache variable name prefix "jm_" to "gl_" everywhere.
29384         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29385         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29386         * m4/uptime.m4: s/gl_/jm_/
29387
29388 2007-11-07  Bruno Haible  <bruno@clisp.org>
29389
29390         Update to GNU gettext 0.17.
29391         * m4/intl.m4: Update to GNU gettext 0.17.
29392         * m4/po.m4: Likewise.
29393         * modules/gettext (Files): Remove m4/ulonglong.m4.
29394         (configure.ac): Require gettext infrastructure from version 0.17.
29395
29396 2007-11-06  Bruno Haible  <bruno@clisp.org>
29397
29398         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29399         symbolic values are not defined in a public header.
29400         * lib/freadable.c (freadable) [QNX]: Likewise.
29401         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29402         * lib/freading.c (freading) [QNX]: Likewise.
29403         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29404         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29405         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29406         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29407         Reported by Alain Magloire.
29408
29409         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29410
29411 2007-11-05  Bruno Haible  <bruno@clisp.org>
29412
29413         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29414         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29415         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29416         Reported by Eric Blake.
29417
29418 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29419             Bruno Haible  <bruno@clisp.org>
29420
29421         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29422         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29423         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29424         (malloc): Undefine also before including <stdlib.h>.
29425         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29426         Needed on OSF/1 4.0.
29427
29428 2007-11-05  Jim Meyering  <meyering@redhat.com>
29429
29430         git-version-gen: sync from coreutils.
29431         * build-aux/git-version-gen: Add comments.
29432         Change the first '-' to '.' in the snapshot version string,
29433         e.g., 6.9-377-08144 -> 6.9.377-08144
29434         Remove first parameter.
29435         Don't declare a version "-dirty" merely because a time
29436         stamp has changed.
29437
29438 2007-11-04  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/lock.h: Protect all macro definitions containing an 'if'
29441         statement through a "do { ... } while (0)".
29442         * lib/tls.h: Likewise.
29443
29444 2007-11-04  Bruno Haible  <bruno@clisp.org>
29445
29446         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29447
29448 2007-11-04  Bruno Haible  <bruno@clisp.org>
29449
29450         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29451         * modules/fprintf-posix (Depends-on): Add nocrash.
29452         * modules/snprintf-posix (Depends-on): Likewise.
29453         * modules/sprintf-posix (Depends-on): Likewise.
29454         * modules/vasnprintf-posix (Depends-on): Likewise.
29455         * modules/vasprintf-posix (Depends-on): Likewise.
29456         * modules/vfprintf-posix (Depends-on): Likewise.
29457         * modules/vsnprintf-posix (Depends-on): Likewise.
29458         * modules/vsprintf-posix (Depends-on): Likewise.
29459         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29460         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29461         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29462         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29463         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29464         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29465         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29466
29467 2007-11-04  Bruno Haible  <bruno@clisp.org>
29468
29469         * modules/nocrash: New file.
29470         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29471         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29472
29473 2007-11-04  Bruno Haible  <bruno@clisp.org>
29474
29475         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29476         precision handling.
29477         * tests/test-vasprintf-posix.c (test_function): Likewise.
29478         * tests/test-snprintf-posix.h (test_function): Likewise.
29479         * tests/test-sprintf-posix.h (test_function): Likewise.
29480
29481         Fix *printf behaviour for large precisions on mingw and BeOS.
29482         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29483         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29485         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29487         gl_PRINTF_PRECISION and test its result. Invoke
29488         gl_PREREQ_VASNPRINTF_PRECISION.
29489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29492         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29493         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29496         * doc/functions/fprintf.texi: Update.
29497         * doc/functions/printf.texi: Update.
29498         * doc/functions/snprintf.texi: Update.
29499         * doc/functions/sprintf.texi: Update.
29500         * doc/functions/vfprintf.texi: Update.
29501         * doc/functions/vprintf.texi: Update.
29502         * doc/functions/vsnprintf.texi: Update.
29503         * doc/functions/vsprintf.texi: Update.
29504
29505 2007-11-04  Bruno Haible  <bruno@clisp.org>
29506
29507         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29508
29509 2007-11-04  Bruno Haible  <bruno@clisp.org>
29510
29511         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29512         Reported by Sylvain Beucler <beuc@gnu.org>.
29513
29514 2007-11-03  Bruno Haible  <bruno@clisp.org>
29515
29516         * tests/test-fprintf-posix2.sh: New file.
29517         * tests/test-fprintf-posix2.c: New file.
29518         * modules/fprintf-posix-tests (Files): Add them.
29519         (TESTS): Add test-fprintf-posix2.sh.
29520         (configure.ac): Check for getrlimit and setrlimit.
29521         (check_PROGRAMS): Add test-fprintf-posix2.
29522
29523         * tests/test-printf-posix2.sh: New file.
29524         * tests/test-printf-posix2.c: New file.
29525         * modules/printf-posix-tests (Files): Add them.
29526         (TESTS): Add test-printf-posix2.sh.
29527         (configure.ac): Check for getrlimit and setrlimit.
29528         (check_PROGRAMS): Add test-printf-posix2.
29529
29530         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29531         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29532         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29533         (decode_double): New function, copied from decode_long_double.
29534         (scale10_round_decimal_decoded): New function, extracted from
29535         scale10_round_decimal_long_double.
29536         (scale10_round_decimal_long_double): Use it.
29537         (scale10_round_decimal_double): New function.
29538         (floorlog10): New function.
29539         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29541         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29543         gl_PRINTF_ENOMEM and test its result. Invoke
29544         gl_PREREQ_VASNPRINTF_ENOMEM.
29545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29552         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29553         * modules/snprintf-posix (Depends-on): Likewise.
29554         * modules/sprintf-posix (Depends-on): Likewise.
29555         * modules/vasnprintf-posix (Depends-on): Likewise.
29556         * modules/vasprintf-posix (Depends-on): Likewise.
29557         * modules/vfprintf-posix (Depends-on): Likewise.
29558         * modules/vsnprintf-posix (Depends-on): Likewise.
29559         * modules/vsprintf-posix (Depends-on): Likewise.
29560         * doc/functions/fprintf.texi: Update.
29561         * doc/functions/printf.texi: Update.
29562         * doc/functions/snprintf.texi: Update.
29563         * doc/functions/sprintf.texi: Update.
29564         * doc/functions/vfprintf.texi: Update.
29565         * doc/functions/vprintf.texi: Update.
29566         * doc/functions/vsnprintf.texi: Update.
29567         * doc/functions/vsprintf.texi: Update.
29568
29569 2007-11-03  Bruno Haible  <bruno@clisp.org>
29570
29571         * modules/frexp-nolibm-tests: New file.
29572
29573         * modules/frexp-nolibm: New file.
29574         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29575
29576 2007-11-03  Bruno Haible  <bruno@clisp.org>
29577
29578         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29579         value is C99 compliant.
29580         Needed for OSF/1 5.1.
29581
29582 2007-11-03  Bruno Haible  <bruno@clisp.org>
29583
29584         Fix out-of-memory handling of vasnprintf.
29585         * lib/printf-parse.c: Include <errno.h>.
29586         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29587         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29588         is already set.
29589
29590 2007-11-02  Eric Blake  <ebb9@byu.net>
29591
29592         Fix tests on cygwin.
29593         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29594
29595 2007-11-01  Bruno Haible  <bruno@clisp.org>
29596
29597         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29598         warning.
29599         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29600         needed for POSIX compatibility.
29601
29602 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29603
29604         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29605         for compatibility with GNU.
29606
29607 2007-11-01  Bruno Haible  <bruno@clisp.org>
29608
29609         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29610         (putenv): Renamed from rpl_putenv. Change argument type from
29611         'const char *' to 'char *'.
29612         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29613         of defining putenv in config.h, just set REPLACE_PUTENV.
29614         * modules/putenv (Depends-on): Add stdlib.
29615         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29616         (Include): Use <stdlib.h>.
29617         * lib/stdlib.in.h (putenv): New declaration.
29618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29619         REPLACE_PUTENV.
29620         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29621         REPLACE_PUTENV.
29622         Needed for MacOS X 10.5.0.
29623         Reported by Peter O'Gorman <peter@pogma.com>.
29624
29625 2007-11-01  Jim Meyering  <meyering@redhat.com>
29626
29627         Treat an empty date string exactly like "0".
29628         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29629         if the remaining date string (to be parsed) is empty, use "0".
29630         Reported by Mischa Molhoek and discussed in this thread:
29631         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29632
29633 2007-10-31  Bruno Haible  <bruno@clisp.org>
29634
29635         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29636         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29637         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29638         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29639         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29640         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29641
29642 2007-10-31  Bruno Haible  <bruno@clisp.org>
29643
29644         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29645         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29646         (AC_TYPE_LONG_LONG_INT): Use it.
29647         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29648         it as well.
29649         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29650         to m4/longlong.m4.
29651         * modules/stdint (Files): Remove m4/ulonglong.m4.
29652         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29653         m4/ulonglong.m4.
29654         * modules/strtoumax (Files): Likewise.
29655
29656 2007-10-30  Bruno Haible  <bruno@clisp.org>
29657
29658         * modules/xvasprintf-posix: New file.
29659         Suggested by Eric Blake.
29660
29661 2007-10-30  Bruno Haible  <bruno@clisp.org>
29662
29663         * modules/xprintf-posix-tests: New file.
29664         * tests/test-xprintf-posix.sh: New file.
29665         * tests/test-xprintf-posix.c: New file.
29666         * tests/test-xfprintf-posix.c: New file.
29667
29668         * modules/xprintf-posix: New file.
29669
29670 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29671
29672         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29673         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29674         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29675
29676 2007-10-29  Bruno Haible  <bruno@clisp.org>
29677
29678         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29679         contain the special marker '_cv_'.
29680         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29681         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29682         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29683         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29684         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29685         Reported by Ralf Wildenhues.
29686
29687 2007-10-29  Bruno Haible  <bruno@clisp.org>
29688
29689         * gnulib-tool (func_import): When --lgpl is not specified, set
29690         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29691         GPLv3.
29692         Reported by Simon Josefsson.
29693
29694 2007-10-28  Bruno Haible  <bruno@clisp.org>
29695
29696         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29697         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29698         HAVE_DECL_ISFINITE.
29699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29700         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29701         HAVE_DECL_ISFINITE.
29702
29703 2007-10-28  Bruno Haible  <bruno@clisp.org>
29704
29705         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29706         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29707
29708 2007-10-28  Bruno Haible  <bruno@clisp.org>
29709
29710         Fix link errors with Sun C 5.0 on Solaris 10.
29711         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29712         function is declared but not present in the compiler's libm.
29713         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29714         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29715         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29716         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29717         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29718         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29719         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29721         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29722         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29723         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29724         HAVE_DECL_FLOORL.
29725
29726 2007-10-28  Bruno Haible  <bruno@clisp.org>
29727
29728         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29729         gl_FUNC_FLOORL. Cache the result.
29730         (gl_FUNC_FLOORL): Use it.
29731         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29732         gl_FUNC_CEILL. Cache the result.
29733         (gl_FUNC_CEILL): Use it.
29734
29735         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29736         gl_FUNC_FLOOR. Cache the result.
29737         (gl_FUNC_FLOOR): Use it.
29738         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29739         gl_FUNC_CEIL. Cache the result.
29740         (gl_FUNC_CEIL): Use it.
29741
29742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29743         gl_FUNC_FLOORF. Cache the result.
29744         (gl_FUNC_FLOORF): Use it.
29745         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29746         gl_FUNC_CEILF. Cache the result.
29747         (gl_FUNC_CEILF): Use it.
29748
29749 2007-10-28  Bruno Haible  <bruno@clisp.org>
29750
29751         * gnulib-tool: Allow specifying the LGPL version number through
29752         --lgpl=2 or --lgpl=3.
29753         (func_usage): Document --lgpl with argument.
29754         Handle --lgpl=... arguments.
29755         (func_import): Recognize also gl_LGPL calls with an argument. When
29756         --lgpl=2 is used and the module's license is just LGPL, report an
29757         error. Set sed_transform_lib_file according to the lgpl variable. In
29758         the generated files, use --lgpl or gl_LGPL invocations with argument,
29759         if necessary.
29760         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29761         an LGPv2+ license.
29762         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29763         gl_LGPL macro.
29764
29765 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29766             Bruno Haible  <bruno@clisp.org>
29767
29768         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29769         (u16_uctomb_aux): Likewise.
29770         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29771         !HAVE_INLINE.
29772         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29773
29774 2007-10-28  Bruno Haible  <bruno@clisp.org>
29775
29776         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29777         Invoke AM_GETTEXT_OPTION if it exists.
29778         * modules/vasprintf: Likewise.
29779         * modules/verror: Likewise.
29780         * modules/xprintf: Likewise.
29781         * modules/xvasprintf: Likewise.
29782
29783 2007-10-27  Ben Pfaff  <blp@gnu.org>
29784
29785         * lib/math.in.h: Define isfinite macro and prototypes for
29786         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29787         implementations.
29788         * m4/math_h.m4: New substitutions for isfinite module.
29789         * lib/isfinite.c: New file.
29790         * m4/isfinite.m4: New file.
29791         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29792         * modules/isfinite: New file.
29793         * modules/isfinite-tests: New file.
29794         * tests/tests-isfinite.c: New file.
29795         * doc/functions/isfinite.texi: Mention isfinite module.
29796         * MODULES.html.sh: Mention new module.
29797
29798 2007-10-27  Ben Pfaff  <blp@gnu.org>
29799
29800         Ralf Wildenhues reported that Tru64 4.0D declares the round
29801         functions but does not have definitions.
29802         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29803         cannot be found in any library, set the output variable to
29804         "missing" instead of "".
29805         * m4/round.m4: Also use our substitute if we cannot find round in
29806         any library, even if it is declared.
29807         * m4/roundf.m4: Likewise for roundf.
29808         * m4/roundl.m4: Likewise for roundl.
29809         * lib/math.in.h: Undefine roundf, round, roundl before defining
29810         their replacements, to allow for hypothetical systems where these
29811         may be defined as macros but not available in libraries.
29812
29813 2007-10-27  Bruno Haible  <bruno@clisp.org>
29814
29815         * doc/gnulib.texi: Invoke @firstparagraphindent.
29816         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29817         changes in gnulib.
29818         (Source changes): New section.
29819
29820 2007-10-26  Bruno Haible  <bruno@clisp.org>
29821
29822         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29823         borrowed from autoconf.
29824
29825 2007-10-26  Bruno Haible  <bruno@clisp.org>
29826
29827         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29828         strerror returned the empty string. Needed on HP-UX 11.00.
29829
29830 2007-10-24  Micah Cowan  <micah@cowan.name>
29831
29832         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29833         * build-aux/bootstrap: Remove support for now-unnecessary option,
29834         --cvs-user, and envvars CVS_USER, CVS_RSH.
29835
29836 2007-10-24  Jim Meyering  <meyering@redhat.com>
29837
29838         Avoid diagnostics from sha1sum when there is no cached checksum.
29839         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29840         if the po.s1 file hasn't been created yet.
29841
29842         * build-aux/bootstrap: Sync from coreutils:
29843         2007-10-24  Jim Meyering  <meyering@redhat.com>
29844         Get gnulib from the git repository, not from an obsolete cvs one.
29845         * build-aux/bootstrap: Suggestion from Micah Cowan.
29846         2007-10-04  Jim Meyering  <jim@meyering.net>
29847         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29848         (update_po_files): Work also when there are no .po files in po/.
29849
29850 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29851
29852         * README: Append ".git" to git and cg examples.
29853         Problem reported by Benoit Sigoure.
29854
29855 2007-10-23  Micah Cowan  <micah@cowan.name>
29856
29857         * users.txt: Add wget.
29858
29859 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29860
29861         Fix linking of some unistdio tests on FreeBSD.
29862         * modules/unistdio/u16-vsnprintf-tests
29863         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29864         * modules/unistdio/u16-vsprintf-tests
29865         (test_u16_vsnprintf1_LDADD): Likewise.
29866         * modules/unistdio/u32-vsnprintf-tests
29867         (test_u32_vsnprintf1_LDADD): Likewise.
29868         * modules/unistdio/u32-vsprintf-tests
29869         (test_u32_vsprintf1_LDADD): Likewise.
29870         * modules/unistdio/u8-vsnprintf-tests
29871         (test_u8_vsnprintf1_LDADD): Likewise.
29872         * modules/unistdio/u8-vsprintf-tests
29873         (test_u8_vsprintf1_LDADD): Likewise.
29874         * modules/unistdio/ulc-vsnprintf-tests
29875         (test_ulc_vsnprintf1_LDADD): Likewise.
29876         * modules/unistdio/ulc-vsprintf-tests
29877         (test_ulc_vsprintf1_LDADD): Likewise.
29878
29879         Fix linking of some uniconv tests on FreeBSD.
29880         * modules/uniconv/u16-conv-from-enc-tests
29881         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29882         * modules/uniconv/u16-conv-to-enc-tests
29883         (test_u16_conv_to_enc_LDADD): Likewise.
29884         * modules/uniconv/u16-strconv-from-enc-tests
29885         (test_u16_strconv_from_enc_LDADD): Likewise.
29886         * modules/uniconv/u16-strconv-to-enc-tests
29887         (test_u16_strconv_to_enc_LDADD): Likewise.
29888         * modules/uniconv/u32-conv-from-enc-tests
29889         (test_u32_conv_from_enc_LDADD): Likewise.
29890         * modules/uniconv/u32-conv-to-enc-tests
29891         (test_u32_conv_to_enc_LDADD): Likewise.
29892         * modules/uniconv/u32-strconv-from-enc-tests
29893         (test_u32_strconv_from_enc_LDADD): Likewise.
29894         * modules/uniconv/u32-strconv-to-enc-tests
29895         (test_u32_strconv_to_enc_LDADD): Likewise.
29896         * modules/uniconv/u8-conv-from-enc-tests
29897         (test_u8_conv_from_enc_LDADD): Likewise.
29898         * modules/uniconv/u8-conv-to-enc-tests
29899         (test_u8_conv_to_enc_LDADD): Likewise.
29900         * modules/uniconv/u8-strconv-from-enc-tests
29901         (test_u8_strconv_from_enc_LDADD): Likewise.
29902         * modules/uniconv/u8-strconv-to-enc-tests
29903         (test_u8_strconv_to_enc_LDADD): Likewise.
29904
29905 2007-10-22  Bruno Haible  <bruno@clisp.org>
29906
29907         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29908         size.
29909
29910 2007-10-22  Eric Blake  <ebb9@byu.net>
29911
29912         Tweak x*printf documentation.
29913         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29914         variable name and comments.
29915         Suggested by Bruno Haible.
29916
29917 2007-10-22  Bruno Haible  <bruno@clisp.org>
29918
29919         * lib/acl.c (copy_acl): Fix file name in comment.
29920
29921 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29922
29923         Fix Tru64 problem with stdbool.h.
29924         * lib/stdbool.in.h (false, true):
29925         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29926         Don't declare as an enum in this situation; it runs afoul of Tru64.
29927         Problem reported by Steven M. Schweda in
29928         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29929
29930 2007-10-22  Eric Blake  <ebb9@byu.net>
29931
29932         Also wrap vf?printf.
29933         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29934         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29935         (xvprintf, xvfprintf): New functions.
29936
29937 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29938
29939         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29940         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29941
29942         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29943         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29944
29945 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29946
29947         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29948         by Bruno Haible.
29949
29950 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29951
29952         * lib/getloadavg.c
29953         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29954         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29955
29956         * tests/test-i-ring.c: Work for C89.
29957
29958 2007-10-22  Bruno Haible  <bruno@clisp.org>
29959
29960         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29961         -1u, in preprocessor expression, so that we don't test for the bug
29962         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29964
29965 2007-10-22  Eric Blake  <ebb9@byu.net>
29966
29967         * tests/test-yesno.sh: Silence stderr during test.
29968
29969 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29970
29971         * modules/crypto/gc-camellia: New file.
29972
29973         * m4/gc-camellia.m4: New file.
29974
29975         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29976
29977         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29978
29979 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29980
29981         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29982         --help to stdout.  Reported by sms@antinode.org (Steven
29983         M. Schweda).
29984
29985 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29986
29987         * users.txt: Fix link to libksba.
29988
29989 2007-10-21  Ben Pfaff  <blp@gnu.org>
29990
29991         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29992         round.c roundf implementation that depends on floorf and ceilf to
29993         be tested unconditionally.
29994
29995 2007-10-21  Ben Pfaff  <blp@gnu.org>
29996
29997         * m4/check-libm-func.m4: Removed.
29998         * m4/check-math-lib.m4: New file.
29999         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30000         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30001         definition and lack of AC_LIBOBJ([roundf]).
30002         * m4/roundl.m4: Ditto, and similarly for roundl.
30003         * modules/round: Reference new m4 file.
30004         * modules/roundf: Ditto.
30005         * modules/roundl: Ditto.
30006         * tests/test-round2.c (main): Use ROUND instead of round.
30007         Bug report from Bruno Haible.
30008
30009 2007-10-21  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30012         context.
30013
30014 2007-10-21  Bruno Haible  <bruno@clisp.org>
30015
30016         * tests/test-wcwidth.c (main): Allow negative result for some control
30017         characters.
30018
30019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30020         Needed on OSF/1 5.1.
30021
30022 2007-10-21  Bruno Haible  <bruno@clisp.org>
30023
30024         * tests/test-floorf1.c: Include isnanf.h.
30025         (main): Use isnanf() instead of isnan().
30026         * tests/test-ceilf1.c: Include isnanf.h.
30027         (main): Use isnanf() instead of isnan().
30028         * tests/test-truncf1.c: Include isnanf.h.
30029         (main): Use isnanf() instead of isnan().
30030         * tests/test-roundf1.c: Include isnanf.h.
30031         (main): Use isnanf() instead of isnan().
30032
30033 2007-10-21  Eric Blake  <ebb9@byu.net>
30034
30035         * users.txt: Update URL for m4.
30036
30037 2007-10-21  Bruno Haible  <bruno@clisp.org>
30038
30039         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30040
30041 2007-10-21  Bruno Haible  <bruno@clisp.org>
30042
30043         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30044         Git's management files if the CVS files are not present.
30045
30046 2007-10-20  Bruno Haible  <bruno@clisp.org>
30047
30048         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30049         gcc-3.4.x.
30050
30051 2007-10-20  Ben Pfaff  <blp@gnu.org>
30052
30053         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30054         implementations.
30055         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30056         * lib/round.c: New file.
30057         * lib/roundf.c: New file.
30058         * lib/roundl.c: New file.
30059         * m4/round.m4: New file.
30060         * m4/roundf.m4: New file.
30061         * m4/roundl.m4: New file.
30062         * m4/check-libm-func-m4: New file.
30063         * modules/math: Replace round, roundf, roundl related @VARS@ in
30064         math.in.h.
30065         * modules/round: New file.
30066         * modules/round-tests: New file.
30067         * modules/roundf: New file.
30068         * modules/roundf-tests: New file.
30069         * modules/roundl: New file.
30070         * modules/roundl-tests: New file.
30071         * tests/test-round1.c: New file.
30072         * tests/test-round2.c: New file.
30073         * tests/test-roundf1.c: New file.
30074         * tests/test-roundf2.c: New file.
30075         * tests/test-roundl.c: New file.
30076         * doc/functions/round.texi: Mention round module.
30077         * doc/functions/roundf.texi: Mention roundf module.
30078         * doc/functions/roundl.texi: Mention roundl module.
30079         * MODULES.html.sh: Mention new modules.
30080         Thanks to Bruno Haible for suggestions.
30081
30082 2007-10-20  Jim Meyering  <meyering@redhat.com>
30083
30084         * lib/xprintf.c: Include <config.h> unconditionally.
30085
30086         Change xprintf's license to GPL.
30087         * modules/xprintf (License): s/LGPL/GPL/, since this module
30088         depends on modules (exit and exitfail) which are GPL.
30089         Suggestion from Bruno Haible.
30090
30091         xprintf fixes.
30092         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30093         Use a clearer diagnostic.
30094         Patch from Bruno Haible.
30095
30096 2007-10-20  Bruno Haible  <bruno@clisp.org>
30097
30098         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30099         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30100         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30101
30102 2007-10-20  Bruno Haible  <bruno@clisp.org>
30103
30104         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30105         precision in the comparison result > x - 1 or similar.
30106         * tests/test-ceilf2.c (correct_result_p): Likewise.
30107         * tests/test-truncf2.c (correct_result_p): Likewise.
30108         * tests/test-trunc2.c (correct_result_p): Likewise.
30109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30110
30111 2007-10-20  Bruno Haible  <bruno@clisp.org>
30112
30113         * modules/ceil: New file.
30114         * m4/ceil.m4: New file.
30115         * doc/functions/ceil.texi: Mention the 'ceil' module.
30116
30117 2007-10-20  Bruno Haible  <bruno@clisp.org>
30118
30119         * modules/floor: New file.
30120         * m4/floor.m4: New file.
30121         * doc/functions/floor.texi: Mention the 'floor' module.
30122
30123 2007-10-20  Bruno Haible  <bruno@clisp.org>
30124
30125         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30126         of %a.
30127         * modules/floorf-tests (Depends-on): Likewise.
30128         * modules/truncf-tests (Depends-on): Likewise.
30129         * modules/trunc-tests (Depends-on): Likewise.
30130         Reported by Ben Pfaff.
30131
30132 2007-10-19  Jim Meyering  <meyering@redhat.com>
30133
30134         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30135         Don't bother testing specific errno values.  Just test ferror.
30136
30137         New module: xprintf
30138         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30139
30140 2007-10-19  Bruno Haible  <bruno@clisp.org>
30141
30142         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30143         syntax.
30144         * modules/javaexec (Makefile.am): Likewise.
30145         * modules/relocatable-prog (Makefile.am): Likewise.
30146         Suggested by Jim Meyering.
30147
30148 2007-10-18  Bruno Haible  <bruno@clisp.org>
30149
30150         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30151         Reported by Jim Meyering.
30152
30153 2007-10-18  Eric Blake  <ebb9@byu.net>
30154
30155         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30156
30157 2007-10-18  Bruno Haible  <bruno@clisp.org>
30158
30159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30160         the format string into writable memory. Needed in Fortify conditions.
30161
30162 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30163             Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30166         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30167         * modules/trim (Depends-on): Add mbchar.
30168         (configure.ac): Add gl_FUNC_MBRTOWC.
30169         (Makefile.am): Augment lib_SOURCES.
30170
30171 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30172
30173         Modify glob.c to use fstatat and dirfd, to simplify it.
30174         Suggested by Eric Blake.
30175         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30176         Don't include <stdbool.h>; not used.
30177         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30178         (link_exists_p): Simplify implementation, since we can now assume
30179         dirfd and fstatat.
30180         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30181
30182 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30183
30184         * gnulib-tool (func_get_dependencies): Fix sed script to
30185         match only tests.
30186
30187 2007-10-17  Bruno Haible  <bruno@clisp.org>
30188
30189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30190         allow locale names without encoding suffix.
30191         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30192         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30193
30194 2007-10-16  Bruno Haible  <bruno@clisp.org>
30195
30196         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30197         * lib/getgroups.c (getgroups): Likewise.
30198         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30199
30200 2007-10-16  Bruno Haible  <bruno@clisp.org>
30201
30202         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30203         * modules/malloc-posix (License): Likewise.
30204         * modules/realloc-posix (License): Likewise.
30205         * modules/calloc-posix (License): Likewise.
30206         * modules/intprops (License): Change from GPL to LGPL, with
30207         Paul Eggert's approval.
30208
30209 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30210
30211         Merge glibc changes into lib/glob.c.
30212
30213         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30214         2007-10-15 04:59:03 UTC.  Here are the changes:
30215
30216         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30217
30218         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30219
30220         * lib/glob.c: Add some branch prediction throughout.
30221
30222         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30223
30224         [BZ #5103]
30225         * lib/glob.c (glob): Recognize patterns starting \/.
30226
30227         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30228
30229         [BZ #3996]
30230         * lib/glob.c (attribute_hidden): Define if not defined.
30231         (glob): Unescape dirname, filename or username when needed and not
30232         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30233         is NULL.  Handle unescaped [ in pattern without closing ].
30234         Don't pass GLOB_CHECK down to recursive glob for directories.
30235         (__glob_pattern_type): New function.
30236         (__glob_pattern_p): Implement using __glob_pattern_type.
30237         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30238         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30239         Remove unreachable code.
30240
30241         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30242
30243         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30244         explain why there are no leaks.
30245
30246         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30247
30248         [BZ #3253]
30249         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30250         time, rather allocate increasingly bigger arrays of pointers, if
30251         possible with alloca, if too large with malloc.
30252
30253 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30254
30255         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30256         Problem reported by H.Merijn Brand in
30257         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30258         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30259         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30260
30261 2007-10-15  Bruno Haible  <bruno@clisp.org>
30262
30263         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30264         with explicit rpl_ prefix.
30265         * lib/fopen.c (fopen): Likewise.
30266         * lib/freopen.c (freopen): Likewise.
30267         * lib/iconv.c (iconv): Likewise.
30268         * lib/iconv_close.c (iconv_close): Likewise.
30269
30270 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30271
30272         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30273
30274 2007-10-15  Bruno Haible  <bruno@clisp.org>
30275
30276         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30277         <stddef.h> instead of <stdlib.h> since we only need NULL.
30278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30279
30280 2007-10-15  Bruno Haible  <bruno@clisp.org>
30281
30282         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30283         Replace paragraph talking about LIBOBJS.
30284         Reported by Colin Watson <cjwatson@debian.org>.
30285
30286 2007-10-15  Bruno Haible  <bruno@clisp.org>
30287
30288         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30289         <stdlib.h> before using NULL.
30290
30291 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30292
30293         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30294         Reported by Albert Chin <china@thewrittenword.com>.
30295
30296 2007-10-14  Bruno Haible  <bruno@clisp.org>
30297
30298         * modules/iconv_open-utf-tests: New file.
30299         * tests/test-iconv-utf.c: New file.
30300
30301         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30302         * modules/iconv_open-utf: New file.
30303         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30304         (iconv, iconv_close): New declarations.
30305         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30306         be defined.
30307         (iconv_open): Add special handling of conversion between UTF-8 and
30308         UTF-{16,32}{BE,LE}.
30309         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30310         * lib/iconv_close.c: New file.
30311         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30312         gl_FUNC_ICONV_OPEN.
30313         (gl_FUNC_ICONV_OPEN): Use it.
30314         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30315         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30316         and REPLACE_ICONV_UTF.
30317         * modules/iconv_open (Depends-on): Add c-strcase.
30318         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30319         ICONV_CONST.
30320         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30321
30322 2007-10-13  Albert Chin  <china@thewrittenword.com>
30323             Bruno Haible  <bruno@clisp.org>
30324
30325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30326         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30327
30328 2007-10-13  Bruno Haible  <bruno@clisp.org>
30329
30330         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30331         defined, use the ISO C99 inline semantics.
30332         * lib/argp.h (ARGP_EI): Likewise.
30333
30334 2007-10-13  Bruno Haible  <bruno@clisp.org>
30335
30336         Handle 'inline' change in gcc 4.3.0.
30337         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30338         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30339         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30340         argp_fmtstream_point): Disable 'extern' declaration if the function
30341         definition is going to be provided inline.
30342         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30343         semantics, not the ISO C99 inline semantics.
30344         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30345         'extern' declaration if the function definition is going to be provided
30346         inline.
30347         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30348         the GNU C inline semantics, not the ISO C99 inline semantics. With
30349         GCC 4.2, avoid a warning.
30350
30351 2007-10-13  Bruno Haible  <bruno@clisp.org>
30352
30353         * lib/freading.h (freading): Enable the use of __freading for
30354         glibc >= 2.7.
30355         * lib/freading.c (freading): Likewise.
30356
30357 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30358
30359         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30360         "warning: C99 inline functions are not supported; using GNU89".
30361
30362 2007-10-12  Bruno Haible  <bruno@clisp.org>
30363
30364         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30365         of 2.
30366         * tests/test-ceilf2.c: New file.
30367         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30368
30369         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30370         * modules/ceilf-tests: Update.
30371
30372 2007-10-12  Bruno Haible  <bruno@clisp.org>
30373
30374         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30375         of 2.
30376         * tests/test-floorf2.c: New file.
30377         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30378
30379         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30380         * modules/floorf-tests: Update.
30381
30382 2007-10-12  Bruno Haible  <bruno@clisp.org>
30383
30384         * tests/test-trunc2.c: New file.
30385         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30386
30387         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30388         * modules/trunc-tests: Update.
30389
30390 2007-10-12  Bruno Haible  <bruno@clisp.org>
30391
30392         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30393         of 2.
30394         * tests/test-truncf2.c: New file.
30395         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30396
30397         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30398         * modules/truncf-tests: Update.
30399
30400 2007-10-11  Eric Blake  <ebb9@byu.net>
30401
30402         Don't claim strerror is broken on Interix.
30403         * doc/functions/strerror.texi (strerror): Known broken systems are
30404         now Solaris 8, and not Interix.
30405         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30406         Interix on cross-compile.
30407         Reported by Martin Koeppe in
30408         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30409
30410 2007-10-11  Bruno Haible  <bruno@clisp.org>
30411
30412         * modules/i-ring-tests: New file.
30413         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30414         instead of assert.
30415
30416 2007-10-11  Bruno Haible  <bruno@clisp.org>
30417
30418         * modules/filenamecat-tests: New file.
30419         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30420         * lib/filenamecat.c: Remove test code.
30421
30422 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30423
30424         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30425
30426         * lib/strerror.c: Include <string.h> always, to test interface,
30427         and to remove the need for the dummy.
30428         Include intprops.h to compute width instead of doing it ourselves
30429         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30430         (strerror): Define it to return NULL if there's no system strerror.
30431         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30432         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30433         ancient pre-strerror Unix systems well any more.  Saying "unknown
30434         system error" is enough.
30435         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30436         simpler strerror.c implementation.
30437         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30438         Simplify the tests to reflect the simpler strerror implementation.
30439         * modules/strerror (Depends-on): Add intprops.
30440
30441 2007-10-09  Eric Blake  <ebb9@byu.net>
30442
30443         Silence test-fpending.
30444         * modules/fpending-tests (Files): Add wrapper script.
30445         * tests/test-fpending.sh: New file.
30446
30447 2007-10-09  Bruno Haible  <bruno@clisp.org>
30448
30449         * MODULES.html.sh (func_module): Don't create a hyperlink for
30450         function names like 'printf_frexp'.
30451         (Misc): Add crc, memxor.
30452         (Characteristics of floating types): New section.
30453         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30454         isnanf-nolibm, signbit, trunc, truncf, truncl.
30455         (Enhancements for ISO C 99 functions): New subsection Input/output.
30456         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30457         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30458         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30459         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30460         (Enhancements for POSIX:2001 functions): Add chdir-long.
30461         (File system functions): Add areadlink, chdir-safer, read-file.
30462         Remove cycle-check.
30463         (File system as inode set): New section.
30464         (Date and time): Add gethrxtime.
30465         (Multithreading): Add openmp.
30466         (Internationalization functions): Add localename.
30467         (Unicode string functions): Add unistr/u*-mbsnlen.
30468         (Support for maintaining and releasing projects): Add git-version-gen.
30469         (Lone files): Remove directories.
30470
30471 2007-10-08  Ben Pfaff  <blp@gnu.org>
30472
30473         * lib/xmalloca.h: Fix typo in comment.
30474
30475 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30478         when avoiding problems with integer overflow.  Use a portable test
30479         instead.
30480
30481 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30482
30483         * modules/dummy (License): Change to LGPLv2+.
30484         * modules/float (License): Likewise
30485         * modules/realloc (License): Likewise
30486         * modules/stdlib (License): Likewise
30487
30488 2007-10-07  Bruno Haible  <bruno@clisp.org>
30489
30490         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30491         * floor.c (TWO_MANT_DIG): Likewise.
30492         * ceil.c (TWO_MANT_DIG): Likewise.
30493         Reported by Ben Pfaff.
30494
30495 2007-10-07  Bruno Haible  <bruno@clisp.org>
30496
30497         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30498         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30499         * lib/frexp.c (FUNC): Likewise.
30500         * lib/printf-frexp.h (printf_frexp): Likewise.
30501         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30502         * lib/printf-frexp.c (FUNC): Likewise.
30503         Suggested by Jim Meyering.
30504
30505 2007-10-07  Jim Meyering  <meyering@redhat.com>
30506
30507         Make xnanosleep's integer overflow test more robust.
30508         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30509         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30510
30511 2007-10-07  Bruno Haible  <bruno@clisp.org>
30512
30513         * NEWS: Mention the license change.
30514
30515         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30516         abbreviations in the modules files.
30517
30518         Change copyright notice from GPLv2+ to GPLv3+.
30519         * README: Change copyright notice.
30520         * MODULES.html.sh: Likewise.
30521         * build-aux/bootstrap.conf: Likewise.
30522         * build-aux/config.libpath: Likewise.
30523         * build-aux/csharpcomp.sh.in: Likewise.
30524         * build-aux/csharpexec.sh.in: Likewise.
30525         * build-aux/install-reloc: Likewise.
30526         * build-aux/javacomp.sh.in: Likewise.
30527         * build-aux/javaexec.sh.in: Likewise.
30528         * build-aux/ldd.sh.in: Likewise.
30529         * build-aux/reloc-ldflags: Likewise.
30530         * build-aux/relocatable.sh.in: Likewise.
30531         * build-aux/x-to-1.in: Likewise.
30532         * check-module: Likewise.
30533         * config/srclistvars.sh: Likewise.
30534         * gnulib-tool: Likewise.
30535         * lib/acl-internal.h: Likewise.
30536         * lib/acl.c: Likewise.
30537         * lib/acl.h: Likewise.
30538         * lib/acl_entries.c: Likewise.
30539         * lib/areadlink-with-size.c: Likewise.
30540         * lib/areadlink.c: Likewise.
30541         * lib/areadlink.h: Likewise.
30542         * lib/argmatch.c: Likewise.
30543         * lib/argmatch.h: Likewise.
30544         * lib/argp-ba.c: Likewise.
30545         * lib/argp-eexst.c: Likewise.
30546         * lib/argp-fmtstream.c: Likewise.
30547         * lib/argp-fmtstream.h: Likewise.
30548         * lib/argp-fs-xinl.c: Likewise.
30549         * lib/argp-help.c: Likewise.
30550         * lib/argp-namefrob.h: Likewise.
30551         * lib/argp-parse.c: Likewise.
30552         * lib/argp-pin.c: Likewise.
30553         * lib/argp-pv.c: Likewise.
30554         * lib/argp-pvh.c: Likewise.
30555         * lib/argp-xinl.c: Likewise.
30556         * lib/argp.h: Likewise.
30557         * lib/at-func.c: Likewise.
30558         * lib/atanl.c: Likewise.
30559         * lib/backupfile.c: Likewise.
30560         * lib/backupfile.h: Likewise.
30561         * lib/basename.c: Likewise.
30562         * lib/binary-io.h: Likewise.
30563         * lib/byteswap.in.h: Likewise.
30564         * lib/c-stack.c: Likewise.
30565         * lib/c-stack.h: Likewise.
30566         * lib/c-strcasestr.c: Likewise.
30567         * lib/c-strcasestr.h: Likewise.
30568         * lib/c-strstr.c: Likewise.
30569         * lib/c-strstr.h: Likewise.
30570         * lib/c-strtod.c: Likewise.
30571         * lib/calloc.c: Likewise.
30572         * lib/canon-host.c: Likewise.
30573         * lib/canon-host.h: Likewise.
30574         * lib/canonicalize-lgpl.c: Likewise.
30575         * lib/canonicalize.c: Likewise.
30576         * lib/canonicalize.h: Likewise.
30577         * lib/ceil.c: Likewise.
30578         * lib/ceilf.c: Likewise.
30579         * lib/ceill.c: Likewise.
30580         * lib/chdir-long.c: Likewise.
30581         * lib/chdir-long.h: Likewise.
30582         * lib/chdir-safer.c: Likewise.
30583         * lib/chdir-safer.h: Likewise.
30584         * lib/chown.c: Likewise.
30585         * lib/classpath.c: Likewise.
30586         * lib/classpath.h: Likewise.
30587         * lib/clean-temp.c: Likewise.
30588         * lib/clean-temp.h: Likewise.
30589         * lib/cloexec.c: Likewise.
30590         * lib/close-stream.c: Likewise.
30591         * lib/closein.c: Likewise.
30592         * lib/closein.h: Likewise.
30593         * lib/closeout.c: Likewise.
30594         * lib/closeout.h: Likewise.
30595         * lib/concat-filename.c: Likewise.
30596         * lib/copy-file.c: Likewise.
30597         * lib/copy-file.h: Likewise.
30598         * lib/count-one-bits.h: Likewise.
30599         * lib/crc.c: Likewise.
30600         * lib/crc.h: Likewise.
30601         * lib/creat-safer.c: Likewise.
30602         * lib/csharpcomp.c: Likewise.
30603         * lib/csharpcomp.h: Likewise.
30604         * lib/csharpexec.c: Likewise.
30605         * lib/csharpexec.h: Likewise.
30606         * lib/cycle-check.c: Likewise.
30607         * lib/cycle-check.h: Likewise.
30608         * lib/diacrit.c: Likewise.
30609         * lib/diacrit.h: Likewise.
30610         * lib/diffseq.h: Likewise.
30611         * lib/dirchownmod.c: Likewise.
30612         * lib/dirent.in.h: Likewise.
30613         * lib/dirfd.c: Likewise.
30614         * lib/dirfd.h: Likewise.
30615         * lib/dirname.c: Likewise.
30616         * lib/dirname.h: Likewise.
30617         * lib/dummy.c: Likewise.
30618         * lib/dup-safer.c: Likewise.
30619         * lib/dup2.c: Likewise.
30620         * lib/eealloc.h: Likewise.
30621         * lib/error.c: Likewise.
30622         * lib/error.h: Likewise.
30623         * lib/euidaccess.c: Likewise.
30624         * lib/exclude.c: Likewise.
30625         * lib/exclude.h: Likewise.
30626         * lib/execute.c: Likewise.
30627         * lib/execute.h: Likewise.
30628         * lib/exitfail.c: Likewise.
30629         * lib/exitfail.h: Likewise.
30630         * lib/expl.c: Likewise.
30631         * lib/fatal-signal.c: Likewise.
30632         * lib/fatal-signal.h: Likewise.
30633         * lib/fbufmode.c: Likewise.
30634         * lib/fbufmode.h: Likewise.
30635         * lib/fchdir.c: Likewise.
30636         * lib/fchmodat.c: Likewise.
30637         * lib/fchownat.c: Likewise.
30638         * lib/fcntl--.h: Likewise.
30639         * lib/fcntl-safer.h: Likewise.
30640         * lib/fcntl.in.h: Likewise.
30641         * lib/fd-safer.c: Likewise.
30642         * lib/fflush.c: Likewise.
30643         * lib/file-has-acl.c: Likewise.
30644         * lib/file-set.c: Likewise.
30645         * lib/file-type.c: Likewise.
30646         * lib/file-type.h: Likewise.
30647         * lib/fileblocks.c: Likewise.
30648         * lib/filemode.c: Likewise.
30649         * lib/filemode.h: Likewise.
30650         * lib/filename.h: Likewise.
30651         * lib/filenamecat.c: Likewise.
30652         * lib/filenamecat.h: Likewise.
30653         * lib/findprog.c: Likewise.
30654         * lib/findprog.h: Likewise.
30655         * lib/float.in.h: Likewise.
30656         * lib/floor.c: Likewise.
30657         * lib/floorf.c: Likewise.
30658         * lib/floorl.c: Likewise.
30659         * lib/fopen-safer.c: Likewise.
30660         * lib/fopen.c: Likewise.
30661         * lib/fpending.c: Likewise.
30662         * lib/fpending.h: Likewise.
30663         * lib/fprintf.c: Likewise.
30664         * lib/fprintftime.h: Likewise.
30665         * lib/fpucw.h: Likewise.
30666         * lib/fpurge.c: Likewise.
30667         * lib/fpurge.h: Likewise.
30668         * lib/freadable.c: Likewise.
30669         * lib/freadable.h: Likewise.
30670         * lib/freadahead.c: Likewise.
30671         * lib/freadahead.h: Likewise.
30672         * lib/freading.c: Likewise.
30673         * lib/freading.h: Likewise.
30674         * lib/free.c: Likewise.
30675         * lib/freopen.c: Likewise.
30676         * lib/frexp.c: Likewise.
30677         * lib/frexpl.c: Likewise.
30678         * lib/fseek.c: Likewise.
30679         * lib/fseterr.c: Likewise.
30680         * lib/fseterr.h: Likewise.
30681         * lib/fstatat.c: Likewise.
30682         * lib/fstrcmp.c: Likewise.
30683         * lib/fstrcmp.h: Likewise.
30684         * lib/fsusage.c: Likewise.
30685         * lib/fsusage.h: Likewise.
30686         * lib/ftell.c: Likewise.
30687         * lib/ftello.c: Likewise.
30688         * lib/fts-cycle.c: Likewise.
30689         * lib/fts.c: Likewise.
30690         * lib/fts_.h: Likewise.
30691         * lib/full-read.c: Likewise.
30692         * lib/full-read.h: Likewise.
30693         * lib/full-write.c: Likewise.
30694         * lib/full-write.h: Likewise.
30695         * lib/fwritable.c: Likewise.
30696         * lib/fwritable.h: Likewise.
30697         * lib/fwriteerror.c: Likewise.
30698         * lib/fwriteerror.h: Likewise.
30699         * lib/fwriting.c: Likewise.
30700         * lib/fwriting.h: Likewise.
30701         * lib/gcd.c: Likewise.
30702         * lib/gcd.h: Likewise.
30703         * lib/getcwd.c: Likewise.
30704         * lib/getdate.h: Likewise.
30705         * lib/getdate.y: Likewise.
30706         * lib/getdomainname.c: Likewise.
30707         * lib/getdomainname.h: Likewise.
30708         * lib/getgroups.c: Likewise.
30709         * lib/gethostname.c: Likewise.
30710         * lib/gethrxtime.c: Likewise.
30711         * lib/gethrxtime.h: Likewise.
30712         * lib/getloadavg.c: Likewise.
30713         * lib/getndelim2.c: Likewise.
30714         * lib/getndelim2.h: Likewise.
30715         * lib/getnline.c: Likewise.
30716         * lib/getnline.h: Likewise.
30717         * lib/getopt.c: Likewise.
30718         * lib/getopt.in.h: Likewise.
30719         * lib/getopt1.c: Likewise.
30720         * lib/getopt_int.h: Likewise.
30721         * lib/getpagesize.h: Likewise.
30722         * lib/getsubopt.c: Likewise.
30723         * lib/gettime.c: Likewise.
30724         * lib/getugroups.c: Likewise.
30725         * lib/getugroups.h: Likewise.
30726         * lib/getusershell.c: Likewise.
30727         * lib/gl_anyavltree_list1.h: Likewise.
30728         * lib/gl_anyavltree_list2.h: Likewise.
30729         * lib/gl_anyhash_list1.h: Likewise.
30730         * lib/gl_anyhash_list2.h: Likewise.
30731         * lib/gl_anylinked_list1.h: Likewise.
30732         * lib/gl_anylinked_list2.h: Likewise.
30733         * lib/gl_anyrbtree_list1.h: Likewise.
30734         * lib/gl_anyrbtree_list2.h: Likewise.
30735         * lib/gl_anytree_list1.h: Likewise.
30736         * lib/gl_anytree_list2.h: Likewise.
30737         * lib/gl_anytree_oset.h: Likewise.
30738         * lib/gl_anytreehash_list1.h: Likewise.
30739         * lib/gl_anytreehash_list2.h: Likewise.
30740         * lib/gl_array_list.c: Likewise.
30741         * lib/gl_array_list.h: Likewise.
30742         * lib/gl_array_oset.c: Likewise.
30743         * lib/gl_array_oset.h: Likewise.
30744         * lib/gl_avltree_list.c: Likewise.
30745         * lib/gl_avltree_list.h: Likewise.
30746         * lib/gl_avltree_oset.c: Likewise.
30747         * lib/gl_avltree_oset.h: Likewise.
30748         * lib/gl_avltreehash_list.c: Likewise.
30749         * lib/gl_avltreehash_list.h: Likewise.
30750         * lib/gl_carray_list.c: Likewise.
30751         * lib/gl_carray_list.h: Likewise.
30752         * lib/gl_linked_list.c: Likewise.
30753         * lib/gl_linked_list.h: Likewise.
30754         * lib/gl_linkedhash_list.c: Likewise.
30755         * lib/gl_linkedhash_list.h: Likewise.
30756         * lib/gl_list.c: Likewise.
30757         * lib/gl_list.h: Likewise.
30758         * lib/gl_oset.c: Likewise.
30759         * lib/gl_oset.h: Likewise.
30760         * lib/gl_rbtree_list.c: Likewise.
30761         * lib/gl_rbtree_list.h: Likewise.
30762         * lib/gl_rbtree_oset.c: Likewise.
30763         * lib/gl_rbtree_oset.h: Likewise.
30764         * lib/gl_rbtreehash_list.c: Likewise.
30765         * lib/gl_rbtreehash_list.h: Likewise.
30766         * lib/gl_sublist.c: Likewise.
30767         * lib/gl_sublist.h: Likewise.
30768         * lib/group-member.c: Likewise.
30769         * lib/group-member.h: Likewise.
30770         * lib/hard-locale.c: Likewise.
30771         * lib/hard-locale.h: Likewise.
30772         * lib/hash-pjw.c: Likewise.
30773         * lib/hash-pjw.h: Likewise.
30774         * lib/hash-triple.c: Likewise.
30775         * lib/hash.c: Likewise.
30776         * lib/hash.h: Likewise.
30777         * lib/human.c: Likewise.
30778         * lib/human.h: Likewise.
30779         * lib/i-ring.c: Likewise.
30780         * lib/i-ring.h: Likewise.
30781         * lib/idcache.c: Likewise.
30782         * lib/imaxabs.c: Likewise.
30783         * lib/imaxdiv.c: Likewise.
30784         * lib/inet_pton.c: Likewise.
30785         * lib/inet_pton.h: Likewise.
30786         * lib/intprops.h: Likewise.
30787         * lib/inttostr.c: Likewise.
30788         * lib/inttostr.h: Likewise.
30789         * lib/inttypes.in.h: Likewise.
30790         * lib/isapipe.c: Likewise.
30791         * lib/isdir.c: Likewise.
30792         * lib/isnan.c: Likewise.
30793         * lib/isnan.h: Likewise.
30794         * lib/isnanf.c: Likewise.
30795         * lib/isnanf.h: Likewise.
30796         * lib/isnanl-nolibm.h: Likewise.
30797         * lib/isnanl.c: Likewise.
30798         * lib/isnanl.h: Likewise.
30799         * lib/javacomp.c: Likewise.
30800         * lib/javacomp.h: Likewise.
30801         * lib/javaexec.c: Likewise.
30802         * lib/javaexec.h: Likewise.
30803         * lib/javaversion.c: Likewise.
30804         * lib/javaversion.h: Likewise.
30805         * lib/javaversion.java: Likewise.
30806         * lib/lbrkprop.h: Likewise.
30807         * lib/lchmod.h: Likewise.
30808         * lib/lchown.c: Likewise.
30809         * lib/ldexpl.c: Likewise.
30810         * lib/linebreak.c: Likewise.
30811         * lib/linebreak.h: Likewise.
30812         * lib/linebuffer.c: Likewise.
30813         * lib/linebuffer.h: Likewise.
30814         * lib/locale.in.h: Likewise.
30815         * lib/logl.c: Likewise.
30816         * lib/long-options.c: Likewise.
30817         * lib/long-options.h: Likewise.
30818         * lib/lstat.c: Likewise.
30819         * lib/lstat.h: Likewise.
30820         * lib/math.in.h: Likewise.
30821         * lib/mbchar.c: Likewise.
30822         * lib/mbchar.h: Likewise.
30823         * lib/mbfile.h: Likewise.
30824         * lib/mbiter.h: Likewise.
30825         * lib/mbscasecmp.c: Likewise.
30826         * lib/mbscasestr.c: Likewise.
30827         * lib/mbschr.c: Likewise.
30828         * lib/mbscspn.c: Likewise.
30829         * lib/mbslen.c: Likewise.
30830         * lib/mbsncasecmp.c: Likewise.
30831         * lib/mbsnlen.c: Likewise.
30832         * lib/mbspbrk.c: Likewise.
30833         * lib/mbspcasecmp.c: Likewise.
30834         * lib/mbsrchr.c: Likewise.
30835         * lib/mbssep.c: Likewise.
30836         * lib/mbsspn.c: Likewise.
30837         * lib/mbsstr.c: Likewise.
30838         * lib/mbstok_r.c: Likewise.
30839         * lib/mbswidth.c: Likewise.
30840         * lib/mbswidth.h: Likewise.
30841         * lib/mbuiter.h: Likewise.
30842         * lib/memcasecmp.c: Likewise.
30843         * lib/memcasecmp.h: Likewise.
30844         * lib/memchr.c: Likewise.
30845         * lib/memcmp.c: Likewise.
30846         * lib/memcoll.c: Likewise.
30847         * lib/memcoll.h: Likewise.
30848         * lib/memcpy.c: Likewise.
30849         * lib/memrchr.c: Likewise.
30850         * lib/mkancesdirs.c: Likewise.
30851         * lib/mkdir-p.c: Likewise.
30852         * lib/mkdir-p.h: Likewise.
30853         * lib/mkdir.c: Likewise.
30854         * lib/mkdirat.c: Likewise.
30855         * lib/mkdtemp.c: Likewise.
30856         * lib/mkstemp-safer.c: Likewise.
30857         * lib/mkstemp.c: Likewise.
30858         * lib/modechange.c: Likewise.
30859         * lib/modechange.h: Likewise.
30860         * lib/mountlist.c: Likewise.
30861         * lib/mountlist.h: Likewise.
30862         * lib/mpsort.c: Likewise.
30863         * lib/nanosleep.c: Likewise.
30864         * lib/obstack.c: Likewise.
30865         * lib/obstack.h: Likewise.
30866         * lib/open-safer.c: Likewise.
30867         * lib/open.c: Likewise.
30868         * lib/openat-die.c: Likewise.
30869         * lib/openat-priv.h: Likewise.
30870         * lib/openat-proc.c: Likewise.
30871         * lib/openat.c: Likewise.
30872         * lib/openat.h: Likewise.
30873         * lib/pagealign_alloc.c: Likewise.
30874         * lib/pagealign_alloc.h: Likewise.
30875         * lib/physmem.c: Likewise.
30876         * lib/physmem.h: Likewise.
30877         * lib/pipe-safer.c: Likewise.
30878         * lib/pipe.c: Likewise.
30879         * lib/pipe.h: Likewise.
30880         * lib/posixtm.c: Likewise.
30881         * lib/posixtm.h: Likewise.
30882         * lib/posixver.c: Likewise.
30883         * lib/printf-frexp.c: Likewise.
30884         * lib/printf-frexp.h: Likewise.
30885         * lib/printf-frexpl.c: Likewise.
30886         * lib/printf-frexpl.h: Likewise.
30887         * lib/printf.c: Likewise.
30888         * lib/progname.c: Likewise.
30889         * lib/progname.h: Likewise.
30890         * lib/progreloc.c: Likewise.
30891         * lib/putenv.c: Likewise.
30892         * lib/quote.c: Likewise.
30893         * lib/quote.h: Likewise.
30894         * lib/quotearg.c: Likewise.
30895         * lib/quotearg.h: Likewise.
30896         * lib/raise.c: Likewise.
30897         * lib/readline.c: Likewise.
30898         * lib/readline.h: Likewise.
30899         * lib/readlink.c: Likewise.
30900         * lib/readtokens.c: Likewise.
30901         * lib/readtokens.h: Likewise.
30902         * lib/readtokens0.c: Likewise.
30903         * lib/readtokens0.h: Likewise.
30904         * lib/readutmp.c: Likewise.
30905         * lib/readutmp.h: Likewise.
30906         * lib/realloc.c: Likewise.
30907         * lib/relocwrapper.c: Likewise.
30908         * lib/rename-dest-slash.c: Likewise.
30909         * lib/rename.c: Likewise.
30910         * lib/rmdir.c: Likewise.
30911         * lib/rpmatch.c: Likewise.
30912         * lib/safe-read.c: Likewise.
30913         * lib/safe-read.h: Likewise.
30914         * lib/safe-write.c: Likewise.
30915         * lib/safe-write.h: Likewise.
30916         * lib/same-inode.h: Likewise.
30917         * lib/same.c: Likewise.
30918         * lib/same.h: Likewise.
30919         * lib/save-cwd.c: Likewise.
30920         * lib/save-cwd.h: Likewise.
30921         * lib/savedir.c: Likewise.
30922         * lib/savedir.h: Likewise.
30923         * lib/savewd.c: Likewise.
30924         * lib/savewd.h: Likewise.
30925         * lib/search.in.h: Likewise.
30926         * lib/setenv.c: Likewise.
30927         * lib/setenv.h: Likewise.
30928         * lib/settime.c: Likewise.
30929         * lib/sh-quote.c: Likewise.
30930         * lib/sh-quote.h: Likewise.
30931         * lib/sig2str.c: Likewise.
30932         * lib/sig2str.h: Likewise.
30933         * lib/signal.in.h: Likewise.
30934         * lib/signbitd.c: Likewise.
30935         * lib/signbitf.c: Likewise.
30936         * lib/signbitl.c: Likewise.
30937         * lib/sigprocmask.c: Likewise.
30938         * lib/sincosl.c: Likewise.
30939         * lib/sleep.c: Likewise.
30940         * lib/sprintf.c: Likewise.
30941         * lib/sqrtl.c: Likewise.
30942         * lib/stat-time.h: Likewise.
30943         * lib/stdio--.h: Likewise.
30944         * lib/stdio-safer.h: Likewise.
30945         * lib/stdlib--.h: Likewise.
30946         * lib/stdlib-safer.h: Likewise.
30947         * lib/stdlib.in.h: Likewise.
30948         * lib/stpcpy.c: Likewise.
30949         * lib/stpncpy.c: Likewise.
30950         * lib/strchrnul.c: Likewise.
30951         * lib/strcspn.c: Likewise.
30952         * lib/strerror.c: Likewise.
30953         * lib/strftime.c: Likewise.
30954         * lib/strftime.h: Likewise.
30955         * lib/striconveh.c: Likewise.
30956         * lib/striconveh.h: Likewise.
30957         * lib/striconveha.c: Likewise.
30958         * lib/striconveha.h: Likewise.
30959         * lib/stripslash.c: Likewise.
30960         * lib/strnlen1.c: Likewise.
30961         * lib/strnlen1.h: Likewise.
30962         * lib/strtod.c: Likewise.
30963         * lib/strtoimax.c: Likewise.
30964         * lib/strtok_r.c: Likewise.
30965         * lib/strtol.c: Likewise.
30966         * lib/strtoll.c: Likewise.
30967         * lib/strtoul.c: Likewise.
30968         * lib/strtoull.c: Likewise.
30969         * lib/sysexits.in.h: Likewise.
30970         * lib/tempname.c: Likewise.
30971         * lib/tempname.h: Likewise.
30972         * lib/timespec.h: Likewise.
30973         * lib/tls.c: Likewise.
30974         * lib/tls.h: Likewise.
30975         * lib/tmpdir.c: Likewise.
30976         * lib/tmpdir.h: Likewise.
30977         * lib/tmpfile-safer.c: Likewise.
30978         * lib/tmpfile.c: Likewise.
30979         * lib/trigl.c: Likewise.
30980         * lib/trigl.h: Likewise.
30981         * lib/trim.c: Likewise.
30982         * lib/trim.h: Likewise.
30983         * lib/trunc.c: Likewise.
30984         * lib/truncf.c: Likewise.
30985         * lib/truncl.c: Likewise.
30986         * lib/tsearch.c: Likewise.
30987         * lib/unicodeio.c: Likewise.
30988         * lib/unicodeio.h: Likewise.
30989         * lib/unistd--.h: Likewise.
30990         * lib/unistd-safer.h: Likewise.
30991         * lib/unistdio/ulc-fprintf.c: Likewise.
30992         * lib/unistdio/ulc-vfprintf.c: Likewise.
30993         * lib/unlinkdir.c: Likewise.
30994         * lib/unlinkdir.h: Likewise.
30995         * lib/unlocked-io.h: Likewise.
30996         * lib/unsetenv.c: Likewise.
30997         * lib/userspec.c: Likewise.
30998         * lib/utime.c: Likewise.
30999         * lib/utimecmp.c: Likewise.
31000         * lib/utimecmp.h: Likewise.
31001         * lib/utimens.c: Likewise.
31002         * lib/verify.h: Likewise.
31003         * lib/verror.c: Likewise.
31004         * lib/verror.h: Likewise.
31005         * lib/version-etc-fsf.c: Likewise.
31006         * lib/version-etc.c: Likewise.
31007         * lib/version-etc.h: Likewise.
31008         * lib/vfprintf.c: Likewise.
31009         * lib/vprintf.c: Likewise.
31010         * lib/vsprintf.c: Likewise.
31011         * lib/w32spawn.h: Likewise.
31012         * lib/wait-process.c: Likewise.
31013         * lib/wait-process.h: Likewise.
31014         * lib/wcwidth.c: Likewise.
31015         * lib/write-any-file.c: Likewise.
31016         * lib/xalloc-die.c: Likewise.
31017         * lib/xalloc.h: Likewise.
31018         * lib/xasprintf.c: Likewise.
31019         * lib/xgetcwd.c: Likewise.
31020         * lib/xgetcwd.h: Likewise.
31021         * lib/xgetdomainname.c: Likewise.
31022         * lib/xgetdomainname.h: Likewise.
31023         * lib/xgethostname.c: Likewise.
31024         * lib/xmalloc.c: Likewise.
31025         * lib/xmalloca.c: Likewise.
31026         * lib/xmalloca.h: Likewise.
31027         * lib/xmemcoll.c: Likewise.
31028         * lib/xnanosleep.c: Likewise.
31029         * lib/xreadlink.c: Likewise.
31030         * lib/xreadlink.h: Likewise.
31031         * lib/xsetenv.c: Likewise.
31032         * lib/xsetenv.h: Likewise.
31033         * lib/xstriconv.c: Likewise.
31034         * lib/xstriconv.h: Likewise.
31035         * lib/xstrndup.c: Likewise.
31036         * lib/xstrndup.h: Likewise.
31037         * lib/xstrtod.c: Likewise.
31038         * lib/xstrtod.h: Likewise.
31039         * lib/xstrtol-error.c: Likewise.
31040         * lib/xstrtol.c: Likewise.
31041         * lib/xstrtol.h: Likewise.
31042         * lib/xtime.h: Likewise.
31043         * lib/xvasprintf.c: Likewise.
31044         * lib/xvasprintf.h: Likewise.
31045         * lib/yesno.c: Likewise.
31046         * lib/yesno.h: Likewise.
31047         * posix-modules: Likewise.
31048         * tests/test-alloca-opt.c: Likewise.
31049         * tests/test-arcfour.c: Likewise.
31050         * tests/test-arctwo.c: Likewise.
31051         * tests/test-argmatch.c: Likewise.
31052         * tests/test-argp-2.sh: Likewise.
31053         * tests/test-argp.c: Likewise.
31054         * tests/test-arpa_inet.c: Likewise.
31055         * tests/test-array_list.c: Likewise.
31056         * tests/test-array_oset.c: Likewise.
31057         * tests/test-atexit.c: Likewise.
31058         * tests/test-avltree_list.c: Likewise.
31059         * tests/test-avltree_oset.c: Likewise.
31060         * tests/test-avltreehash_list.c: Likewise.
31061         * tests/test-base64.c: Likewise.
31062         * tests/test-binary-io.c: Likewise.
31063         * tests/test-byteswap.c: Likewise.
31064         * tests/test-c-ctype.c: Likewise.
31065         * tests/test-c-strcasecmp.c: Likewise.
31066         * tests/test-c-strcasestr.c: Likewise.
31067         * tests/test-c-strncasecmp.c: Likewise.
31068         * tests/test-c-strstr.c: Likewise.
31069         * tests/test-canonicalize-lgpl.c: Likewise.
31070         * tests/test-canonicalize.c: Likewise.
31071         * tests/test-carray_list.c: Likewise.
31072         * tests/test-ceilf.c: Likewise.
31073         * tests/test-ceill.c: Likewise.
31074         * tests/test-count-one-bits.c: Likewise.
31075         * tests/test-crc.c: Likewise.
31076         * tests/test-dirname.c: Likewise.
31077         * tests/test-fbufmode.c: Likewise.
31078         * tests/test-fcntl.c: Likewise.
31079         * tests/test-fflush.c: Likewise.
31080         * tests/test-floorf.c: Likewise.
31081         * tests/test-floorl.c: Likewise.
31082         * tests/test-fopen.c: Likewise.
31083         * tests/test-fprintf-posix.c: Likewise.
31084         * tests/test-fprintf-posix.h: Likewise.
31085         * tests/test-fpurge.c: Likewise.
31086         * tests/test-freadable.c: Likewise.
31087         * tests/test-freadahead.c: Likewise.
31088         * tests/test-freading.c: Likewise.
31089         * tests/test-freopen.c: Likewise.
31090         * tests/test-frexp.c: Likewise.
31091         * tests/test-frexpl.c: Likewise.
31092         * tests/test-fseek.c: Likewise.
31093         * tests/test-fseeko.c: Likewise.
31094         * tests/test-fseterr.c: Likewise.
31095         * tests/test-fstrcmp.c: Likewise.
31096         * tests/test-ftell.c: Likewise.
31097         * tests/test-ftello.c: Likewise.
31098         * tests/test-fwritable.c: Likewise.
31099         * tests/test-fwriting.c: Likewise.
31100         * tests/test-getaddrinfo.c: Likewise.
31101         * tests/test-getpass.c: Likewise.
31102         * tests/test-gettimeofday.c: Likewise.
31103         * tests/test-hmac-md5.c: Likewise.
31104         * tests/test-hmac-sha1.c: Likewise.
31105         * tests/test-iconv.c: Likewise.
31106         * tests/test-iconvme.c: Likewise.
31107         * tests/test-inttypes.c: Likewise.
31108         * tests/test-isnan.c: Likewise.
31109         * tests/test-isnanf.c: Likewise.
31110         * tests/test-isnanl-nolibm.c: Likewise.
31111         * tests/test-isnanl.c: Likewise.
31112         * tests/test-isnanl.h: Likewise.
31113         * tests/test-ldexpl.c: Likewise.
31114         * tests/test-linked_list.c: Likewise.
31115         * tests/test-linkedhash_list.c: Likewise.
31116         * tests/test-locale.c: Likewise.
31117         * tests/test-localename.c: Likewise.
31118         * tests/test-lock.c: Likewise.
31119         * tests/test-lseek.c: Likewise.
31120         * tests/test-malloca.c: Likewise.
31121         * tests/test-math.c: Likewise.
31122         * tests/test-mbscasecmp.c: Likewise.
31123         * tests/test-mbscasestr1.c: Likewise.
31124         * tests/test-mbscasestr2.c: Likewise.
31125         * tests/test-mbscasestr3.c: Likewise.
31126         * tests/test-mbscasestr4.c: Likewise.
31127         * tests/test-mbschr.c: Likewise.
31128         * tests/test-mbscspn.c: Likewise.
31129         * tests/test-mbsncasecmp.c: Likewise.
31130         * tests/test-mbspbrk.c: Likewise.
31131         * tests/test-mbspcasecmp.c: Likewise.
31132         * tests/test-mbsrchr.c: Likewise.
31133         * tests/test-mbsspn.c: Likewise.
31134         * tests/test-mbsstr1.c: Likewise.
31135         * tests/test-mbsstr2.c: Likewise.
31136         * tests/test-mbsstr3.c: Likewise.
31137         * tests/test-md5.c: Likewise.
31138         * tests/test-memmem.c: Likewise.
31139         * tests/test-netinet_in.c: Likewise.
31140         * tests/test-open.c: Likewise.
31141         * tests/test-printf-frexp.c: Likewise.
31142         * tests/test-printf-frexpl.c: Likewise.
31143         * tests/test-printf-posix.c: Likewise.
31144         * tests/test-printf-posix.h: Likewise.
31145         * tests/test-rbtree_list.c: Likewise.
31146         * tests/test-rbtree_oset.c: Likewise.
31147         * tests/test-rbtreehash_list.c: Likewise.
31148         * tests/test-read-file.c: Likewise.
31149         * tests/test-rijndael.c: Likewise.
31150         * tests/test-search.c: Likewise.
31151         * tests/test-signbit.c: Likewise.
31152         * tests/test-sleep.c: Likewise.
31153         * tests/test-snprintf-posix.c: Likewise.
31154         * tests/test-snprintf-posix.h: Likewise.
31155         * tests/test-snprintf.c: Likewise.
31156         * tests/test-sprintf-posix.c: Likewise.
31157         * tests/test-sprintf-posix.h: Likewise.
31158         * tests/test-stat-time.c: Likewise.
31159         * tests/test-stdbool.c: Likewise.
31160         * tests/test-stdint.c: Likewise.
31161         * tests/test-stdio.c: Likewise.
31162         * tests/test-stdlib.c: Likewise.
31163         * tests/test-stpncpy.c: Likewise.
31164         * tests/test-strcasestr.c: Likewise.
31165         * tests/test-striconv.c: Likewise.
31166         * tests/test-striconveh.c: Likewise.
31167         * tests/test-striconveha.c: Likewise.
31168         * tests/test-string.c: Likewise.
31169         * tests/test-sys_select.c: Likewise.
31170         * tests/test-sys_socket.c: Likewise.
31171         * tests/test-sys_stat.c: Likewise.
31172         * tests/test-sys_time.c: Likewise.
31173         * tests/test-sysexits.c: Likewise.
31174         * tests/test-time.c: Likewise.
31175         * tests/test-tls.c: Likewise.
31176         * tests/test-trunc.c: Likewise.
31177         * tests/test-truncf.c: Likewise.
31178         * tests/test-truncl.c: Likewise.
31179         * tests/test-unistd.c: Likewise.
31180         * tests/test-vasnprintf-posix.c: Likewise.
31181         * tests/test-vasnprintf-posix2.c: Likewise.
31182         * tests/test-vasnprintf.c: Likewise.
31183         * tests/test-vasprintf-posix.c: Likewise.
31184         * tests/test-vasprintf.c: Likewise.
31185         * tests/test-verify.c: Likewise.
31186         * tests/test-vfprintf-posix.c: Likewise.
31187         * tests/test-vprintf-posix.c: Likewise.
31188         * tests/test-vsnprintf-posix.c: Likewise.
31189         * tests/test-vsnprintf.c: Likewise.
31190         * tests/test-vsprintf-posix.c: Likewise.
31191         * tests/test-wchar.c: Likewise.
31192         * tests/test-wctype.c: Likewise.
31193         * tests/test-wcwidth.c: Likewise.
31194         * tests/test-xstrtol.c: Likewise.
31195         * tests/test-xvasprintf.c: Likewise.
31196         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31197         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31198         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31199         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31200         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31201         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31202         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31203         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31204         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31205         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31206         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31207         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31208         * tests/uniname/test-uninames.c: Likewise.
31209         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31210         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31211         * tests/unistdio/test-u16-printf1.h: Likewise.
31212         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31213         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31214         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31215         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31216         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31217         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31218         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31219         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31220         * tests/unistdio/test-u32-printf1.h: Likewise.
31221         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31222         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31223         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31224         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31225         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31226         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31227         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31228         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31229         * tests/unistdio/test-u8-printf1.h: Likewise.
31230         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31231         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31232         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31233         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31234         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31235         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31236         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31237         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31238         * tests/unistdio/test-ulc-printf1.h: Likewise.
31239         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31240         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31241         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31242         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31243         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31244         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31245         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31246         * tests/uniwidth/test-u16-width.c: Likewise.
31247         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31248         * tests/uniwidth/test-u32-width.c: Likewise.
31249         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31250         * tests/uniwidth/test-u8-width.c: Likewise.
31251         * tests/uniwidth/test-uc_width.c: Likewise.
31252         * config/srclist-update: Likewise.
31253         (fixlicense): Update to GPLv3+.
31254
31255         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31256         * tests/test-tsearch.c: Change copyright notice.
31257
31258         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31259         * lib/c-strcaseeq.h: Change copyright notice.
31260         * lib/streq.h: Likewise.
31261         * lib/uniconv.h: Likewise.
31262         * lib/uniconv/u-conv-from-enc.h: Likewise.
31263         * lib/uniconv/u-conv-to-enc.h: Likewise.
31264         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31265         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31266         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31267         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31268         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31269         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31270         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31271         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31272         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31273         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31274         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31275         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31276         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31277         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31278         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31279         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31280         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31281         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31282         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31283         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31284         * lib/uniname.h: Likewise.
31285         * lib/uniname/uniname.c: Likewise.
31286         * lib/unistdio.h: Likewise.
31287         * lib/unistdio/u-asnprintf.h: Likewise.
31288         * lib/unistdio/u-asprintf.h: Likewise.
31289         * lib/unistdio/u-printf-args.c: Likewise.
31290         * lib/unistdio/u-printf-args.h: Likewise.
31291         * lib/unistdio/u-printf-parse.h: Likewise.
31292         * lib/unistdio/u-snprintf.h: Likewise.
31293         * lib/unistdio/u-sprintf.h: Likewise.
31294         * lib/unistdio/u-vasprintf.h: Likewise.
31295         * lib/unistdio/u-vsnprintf.h: Likewise.
31296         * lib/unistdio/u-vsprintf.h: Likewise.
31297         * lib/unistdio/u16-asnprintf.c: Likewise.
31298         * lib/unistdio/u16-asprintf.c: Likewise.
31299         * lib/unistdio/u16-printf-parse.c: Likewise.
31300         * lib/unistdio/u16-snprintf.c: Likewise.
31301         * lib/unistdio/u16-sprintf.c: Likewise.
31302         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31303         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31304         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31305         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31306         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31307         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31308         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31309         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31310         * lib/unistdio/u16-vasnprintf.c: Likewise.
31311         * lib/unistdio/u16-vasprintf.c: Likewise.
31312         * lib/unistdio/u16-vsnprintf.c: Likewise.
31313         * lib/unistdio/u16-vsprintf.c: Likewise.
31314         * lib/unistdio/u32-asnprintf.c: Likewise.
31315         * lib/unistdio/u32-asprintf.c: Likewise.
31316         * lib/unistdio/u32-printf-parse.c: Likewise.
31317         * lib/unistdio/u32-snprintf.c: Likewise.
31318         * lib/unistdio/u32-sprintf.c: Likewise.
31319         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31320         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31321         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31322         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31323         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31324         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31325         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31326         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31327         * lib/unistdio/u32-vasnprintf.c: Likewise.
31328         * lib/unistdio/u32-vasprintf.c: Likewise.
31329         * lib/unistdio/u32-vsnprintf.c: Likewise.
31330         * lib/unistdio/u32-vsprintf.c: Likewise.
31331         * lib/unistdio/u8-asnprintf.c: Likewise.
31332         * lib/unistdio/u8-asprintf.c: Likewise.
31333         * lib/unistdio/u8-printf-parse.c: Likewise.
31334         * lib/unistdio/u8-snprintf.c: Likewise.
31335         * lib/unistdio/u8-sprintf.c: Likewise.
31336         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31337         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31338         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31339         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31340         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31341         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31342         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31343         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31344         * lib/unistdio/u8-vasnprintf.c: Likewise.
31345         * lib/unistdio/u8-vasprintf.c: Likewise.
31346         * lib/unistdio/u8-vsnprintf.c: Likewise.
31347         * lib/unistdio/u8-vsprintf.c: Likewise.
31348         * lib/unistdio/ulc-asnprintf.c: Likewise.
31349         * lib/unistdio/ulc-asprintf.c: Likewise.
31350         * lib/unistdio/ulc-printf-parse.c: Likewise.
31351         * lib/unistdio/ulc-snprintf.c: Likewise.
31352         * lib/unistdio/ulc-sprintf.c: Likewise.
31353         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31354         * lib/unistdio/ulc-vasprintf.c: Likewise.
31355         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31356         * lib/unistdio/ulc-vsprintf.c: Likewise.
31357         * lib/unistr.h: Likewise.
31358         * lib/unistr/u-cpy-alloc.h: Likewise.
31359         * lib/unistr/u-cpy.h: Likewise.
31360         * lib/unistr/u-endswith.h: Likewise.
31361         * lib/unistr/u-move.h: Likewise.
31362         * lib/unistr/u-set.h: Likewise.
31363         * lib/unistr/u-startswith.h: Likewise.
31364         * lib/unistr/u-stpcpy.h: Likewise.
31365         * lib/unistr/u-stpncpy.h: Likewise.
31366         * lib/unistr/u-strcat.h: Likewise.
31367         * lib/unistr/u-strcpy.h: Likewise.
31368         * lib/unistr/u-strcspn.h: Likewise.
31369         * lib/unistr/u-strdup.h: Likewise.
31370         * lib/unistr/u-strlen.h: Likewise.
31371         * lib/unistr/u-strncat.h: Likewise.
31372         * lib/unistr/u-strncpy.h: Likewise.
31373         * lib/unistr/u-strnlen.h: Likewise.
31374         * lib/unistr/u-strpbrk.h: Likewise.
31375         * lib/unistr/u-strspn.h: Likewise.
31376         * lib/unistr/u-strstr.h: Likewise.
31377         * lib/unistr/u-strtok.h: Likewise.
31378         * lib/unistr/u16-check.c: Likewise.
31379         * lib/unistr/u16-chr.c: Likewise.
31380         * lib/unistr/u16-cmp.c: Likewise.
31381         * lib/unistr/u16-cpy-alloc.c: Likewise.
31382         * lib/unistr/u16-cpy.c: Likewise.
31383         * lib/unistr/u16-endswith.c: Likewise.
31384         * lib/unistr/u16-mblen.c: Likewise.
31385         * lib/unistr/u16-mbsnlen.c: Likewise.
31386         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31388         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31389         * lib/unistr/u16-mbtouc.c: Likewise.
31390         * lib/unistr/u16-mbtoucr.c: Likewise.
31391         * lib/unistr/u16-move.c: Likewise.
31392         * lib/unistr/u16-next.c: Likewise.
31393         * lib/unistr/u16-prev.c: Likewise.
31394         * lib/unistr/u16-set.c: Likewise.
31395         * lib/unistr/u16-startswith.c: Likewise.
31396         * lib/unistr/u16-stpcpy.c: Likewise.
31397         * lib/unistr/u16-stpncpy.c: Likewise.
31398         * lib/unistr/u16-strcat.c: Likewise.
31399         * lib/unistr/u16-strchr.c: Likewise.
31400         * lib/unistr/u16-strcmp.c: Likewise.
31401         * lib/unistr/u16-strcpy.c: Likewise.
31402         * lib/unistr/u16-strcspn.c: Likewise.
31403         * lib/unistr/u16-strdup.c: Likewise.
31404         * lib/unistr/u16-strlen.c: Likewise.
31405         * lib/unistr/u16-strmblen.c: Likewise.
31406         * lib/unistr/u16-strmbtouc.c: Likewise.
31407         * lib/unistr/u16-strncat.c: Likewise.
31408         * lib/unistr/u16-strncmp.c: Likewise.
31409         * lib/unistr/u16-strncpy.c: Likewise.
31410         * lib/unistr/u16-strnlen.c: Likewise.
31411         * lib/unistr/u16-strpbrk.c: Likewise.
31412         * lib/unistr/u16-strrchr.c: Likewise.
31413         * lib/unistr/u16-strspn.c: Likewise.
31414         * lib/unistr/u16-strstr.c: Likewise.
31415         * lib/unistr/u16-strtok.c: Likewise.
31416         * lib/unistr/u16-to-u32.c: Likewise.
31417         * lib/unistr/u16-to-u8.c: Likewise.
31418         * lib/unistr/u16-uctomb-aux.c: Likewise.
31419         * lib/unistr/u16-uctomb.c: Likewise.
31420         * lib/unistr/u32-check.c: Likewise.
31421         * lib/unistr/u32-chr.c: Likewise.
31422         * lib/unistr/u32-cmp.c: Likewise.
31423         * lib/unistr/u32-cpy-alloc.c: Likewise.
31424         * lib/unistr/u32-cpy.c: Likewise.
31425         * lib/unistr/u32-endswith.c: Likewise.
31426         * lib/unistr/u32-mblen.c: Likewise.
31427         * lib/unistr/u32-mbsnlen.c: Likewise.
31428         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31429         * lib/unistr/u32-mbtouc.c: Likewise.
31430         * lib/unistr/u32-mbtoucr.c: Likewise.
31431         * lib/unistr/u32-move.c: Likewise.
31432         * lib/unistr/u32-next.c: Likewise.
31433         * lib/unistr/u32-prev.c: Likewise.
31434         * lib/unistr/u32-set.c: Likewise.
31435         * lib/unistr/u32-startswith.c: Likewise.
31436         * lib/unistr/u32-stpcpy.c: Likewise.
31437         * lib/unistr/u32-stpncpy.c: Likewise.
31438         * lib/unistr/u32-strcat.c: Likewise.
31439         * lib/unistr/u32-strchr.c: Likewise.
31440         * lib/unistr/u32-strcmp.c: Likewise.
31441         * lib/unistr/u32-strcpy.c: Likewise.
31442         * lib/unistr/u32-strcspn.c: Likewise.
31443         * lib/unistr/u32-strdup.c: Likewise.
31444         * lib/unistr/u32-strlen.c: Likewise.
31445         * lib/unistr/u32-strmblen.c: Likewise.
31446         * lib/unistr/u32-strmbtouc.c: Likewise.
31447         * lib/unistr/u32-strncat.c: Likewise.
31448         * lib/unistr/u32-strncmp.c: Likewise.
31449         * lib/unistr/u32-strncpy.c: Likewise.
31450         * lib/unistr/u32-strnlen.c: Likewise.
31451         * lib/unistr/u32-strpbrk.c: Likewise.
31452         * lib/unistr/u32-strrchr.c: Likewise.
31453         * lib/unistr/u32-strspn.c: Likewise.
31454         * lib/unistr/u32-strstr.c: Likewise.
31455         * lib/unistr/u32-strtok.c: Likewise.
31456         * lib/unistr/u32-to-u16.c: Likewise.
31457         * lib/unistr/u32-to-u8.c: Likewise.
31458         * lib/unistr/u32-uctomb.c: Likewise.
31459         * lib/unistr/u8-check.c: Likewise.
31460         * lib/unistr/u8-chr.c: Likewise.
31461         * lib/unistr/u8-cmp.c: Likewise.
31462         * lib/unistr/u8-cpy-alloc.c: Likewise.
31463         * lib/unistr/u8-cpy.c: Likewise.
31464         * lib/unistr/u8-endswith.c: Likewise.
31465         * lib/unistr/u8-mblen.c: Likewise.
31466         * lib/unistr/u8-mbsnlen.c: Likewise.
31467         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31468         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31469         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31470         * lib/unistr/u8-mbtouc.c: Likewise.
31471         * lib/unistr/u8-mbtoucr.c: Likewise.
31472         * lib/unistr/u8-move.c: Likewise.
31473         * lib/unistr/u8-next.c: Likewise.
31474         * lib/unistr/u8-prev.c: Likewise.
31475         * lib/unistr/u8-set.c: Likewise.
31476         * lib/unistr/u8-startswith.c: Likewise.
31477         * lib/unistr/u8-stpcpy.c: Likewise.
31478         * lib/unistr/u8-stpncpy.c: Likewise.
31479         * lib/unistr/u8-strcat.c: Likewise.
31480         * lib/unistr/u8-strchr.c: Likewise.
31481         * lib/unistr/u8-strcmp.c: Likewise.
31482         * lib/unistr/u8-strcpy.c: Likewise.
31483         * lib/unistr/u8-strcspn.c: Likewise.
31484         * lib/unistr/u8-strdup.c: Likewise.
31485         * lib/unistr/u8-strlen.c: Likewise.
31486         * lib/unistr/u8-strmblen.c: Likewise.
31487         * lib/unistr/u8-strmbtouc.c: Likewise.
31488         * lib/unistr/u8-strncat.c: Likewise.
31489         * lib/unistr/u8-strncmp.c: Likewise.
31490         * lib/unistr/u8-strncpy.c: Likewise.
31491         * lib/unistr/u8-strnlen.c: Likewise.
31492         * lib/unistr/u8-strpbrk.c: Likewise.
31493         * lib/unistr/u8-strrchr.c: Likewise.
31494         * lib/unistr/u8-strspn.c: Likewise.
31495         * lib/unistr/u8-strstr.c: Likewise.
31496         * lib/unistr/u8-strtok.c: Likewise.
31497         * lib/unistr/u8-to-u16.c: Likewise.
31498         * lib/unistr/u8-to-u32.c: Likewise.
31499         * lib/unistr/u8-uctomb-aux.c: Likewise.
31500         * lib/unistr/u8-uctomb.c: Likewise.
31501         * lib/unitypes.h: Likewise.
31502         * lib/uniwidth.h: Likewise.
31503         * lib/uniwidth/cjk.h: Likewise.
31504         * lib/uniwidth/u16-strwidth.c: Likewise.
31505         * lib/uniwidth/u16-width.c: Likewise.
31506         * lib/uniwidth/u32-strwidth.c: Likewise.
31507         * lib/uniwidth/u32-width.c: Likewise.
31508         * lib/uniwidth/u8-strwidth.c: Likewise.
31509         * lib/uniwidth/u8-width.c: Likewise.
31510         * lib/uniwidth/width.c: Likewise.
31511
31512 2007-10-07  Bruno Haible  <bruno@clisp.org>
31513
31514         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31515         The file is still under LGPL (see modules/inttypes).
31516
31517 2007-10-06  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/trunc (Dependencies): Add 'extensions'.
31520         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31521         Reported by Ben Pfaff <blp@gnu.org>.
31522
31523 2007-10-06  Bruno Haible  <bruno@clisp.org>
31524
31525         * modules/freopen-tests: New file.
31526         * tests/test-freopen.c: New file.
31527
31528         * modules/fopen-tests: New file.
31529         * tests/test-fopen.c: New file.
31530
31531         * modules/fopen: New file.
31532         * lib/fopen.c: New file.
31533         * m4/fopen.m4: New file.
31534         * modules/freopen: New file.
31535         * lib/freopen.c: New file.
31536         * m4/freopen.m4: New file.
31537         * lib/stdio.in.h (fopen, freopen): New declarations.
31538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31539         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31540         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31541         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31542         * doc/functions/fopen.texi: Mention the 'fopen' module.
31543         * doc/functions/freopen.texi: Mention the 'freopen' module.
31544
31545 2007-10-06  Bruno Haible  <bruno@clisp.org>
31546
31547         * modules/open-tests: New file.
31548         * tests/test-open.c: New file.
31549
31550         * modules/open: New file.
31551         * lib/open.c: New file.
31552         * m4/open.m4: New file.
31553         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31554         lib/open.c does.
31555         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31556         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31557         macros.
31558         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31559         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31560         REPLACE_OPEN.
31561         * doc/functions/open.texi: Mention the 'open' module.
31562
31563 2007-10-04  Bruno Haible  <bruno@clisp.org>
31564
31565         * modules/ceill-tests: New file.
31566         * tests/test-ceill.c: New file.
31567
31568         * modules/ceill: New file.
31569         * lib/ceill.c: Replace entire file.
31570         * m4/ceill.m4: New file.
31571         * lib/math.in.h (ceill): Replace declaration.
31572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31573         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31574         * doc/functions/ceill.texi: Mention the 'ceill' module.
31575         * modules/mathl (Files): Remove lib/ceill.c.
31576         (Depends-on): Add ceill.
31577
31578 2007-10-04  Bruno Haible  <bruno@clisp.org>
31579
31580         * modules/ceilf-tests: New file.
31581         * tests/test-ceilf.c: New file.
31582
31583         * modules/ceilf: New file.
31584         * lib/ceil.c: New file.
31585         * lib/ceilf.c: New file.
31586         * m4/ceilf.m4: New file.
31587         * lib/math.in.h (ceilf): New declaration.
31588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31589         HAVE_DECL_CEILF.
31590         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31591         HAVE_DECL_CEILF.
31592         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31593
31594 2007-10-04  Bruno Haible  <bruno@clisp.org>
31595
31596         * modules/floorl-tests: New file.
31597         * tests/test-floorl.c: New file.
31598
31599         * modules/floorl: New file.
31600         * lib/floorl.c: Replace entire file.
31601         * m4/floorl.m4: New file.
31602         * lib/math.in.h (floorl): Replace declaration.
31603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31604         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31605         * doc/functions/floorl.texi: Mention the 'floorl' module.
31606         * modules/mathl (Files): Remove lib/floorl.c.
31607         (Depends-on): Add floorl.
31608
31609 2007-10-04  Bruno Haible  <bruno@clisp.org>
31610
31611         * modules/floorf-tests: New file.
31612         * tests/test-floorf.c: New file.
31613
31614         * modules/floorf: New file.
31615         * lib/floor.c: New file.
31616         * lib/floorf.c: New file.
31617         * m4/floorf.m4: New file.
31618         * lib/math.in.h (floorf): New declaration.
31619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31620         HAVE_DECL_FLOORF.
31621         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31622         HAVE_DECL_FLOORF.
31623         * doc/functions/floorf.texi: Mention the 'floorf' module.
31624
31625 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31626             Bruno Haible  <bruno@clisp.org>
31627
31628         Advertise for the Git server instead of the CVS server.
31629         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31630         repository instead of the CVS one.
31631         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31632         about all VCS systems generically.
31633         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31634
31635 2007-10-04  Bruno Haible  <bruno@clisp.org>
31636
31637         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31638         means.
31639         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31640
31641 2007-10-04  Bruno Haible  <bruno@clisp.org>
31642
31643         * modules/truncl-tests: New file.
31644         * tests/test-truncl.c: New file.
31645
31646         * modules/truncl: New file.
31647         * lib/truncl.c: New file.
31648         * m4/truncl.m4: New file.
31649         * lib/math.in.h (truncl): New declaration.
31650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31651         HAVE_DECL_TRUNCL.
31652         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31653         HAVE_DECL_TRUNCL.
31654         * doc/functions/truncl.texi: Mention the 'truncl' module.
31655
31656 2007-10-04  Bruno Haible  <bruno@clisp.org>
31657
31658         * modules/truncf-tests: New file.
31659         * tests/test-truncf.c: New file.
31660
31661         * modules/truncf: New file.
31662         * lib/trunc.c: Make paramerizable through USE_* macros.
31663         * lib/truncf.c: New file.
31664         * m4/truncf.m4: New file.
31665         * lib/math.in.h (truncf): New declaration.
31666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31667         HAVE_DECL_TRUNCF.
31668         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31669         HAVE_DECL_TRUNCF.
31670         * doc/functions/truncf.texi: Mention the 'truncf' module.
31671
31672 2007-10-03  Bruno Haible  <bruno@clisp.org>
31673
31674         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31675         augmentation also for tests modules.
31676         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31677         * modules/atexit-tests (Makefile.am): Likewise.
31678         * modules/binary-io-tests (Makefile.am): Likewise.
31679         * modules/c-strcase-tests (Makefile.am): Likewise.
31680         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31681         * modules/canonicalize-tests (Makefile.am): Likewise.
31682         * modules/closein-tests (Makefile.am): Likewise.
31683         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31684         * modules/freadahead-tests (Makefile.am): Likewise.
31685         * modules/fseek-tests (Makefile.am): Likewise.
31686         * modules/fseeko-tests (Makefile.am): Likewise.
31687         * modules/ftell-tests (Makefile.am): Likewise.
31688         * modules/ftello-tests (Makefile.am): Likewise.
31689         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31690         * modules/isnanl-tests (Makefile.am): Likewise.
31691         * modules/lseek-tests (Makefile.am): Likewise.
31692         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31693         * modules/mbscasestr-tests (Makefile.am): Likewise.
31694         * modules/mbschr-tests (Makefile.am): Likewise.
31695         * modules/mbscspn-tests (Makefile.am): Likewise.
31696         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31697         * modules/mbspbrk-tests (Makefile.am): Likewise.
31698         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31699         * modules/mbsrchr-tests (Makefile.am): Likewise.
31700         * modules/mbsspn-tests (Makefile.am): Likewise.
31701         * modules/mbsstr-tests (Makefile.am): Likewise.
31702         * modules/printf-posix-tests (Makefile.am): Likewise.
31703         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31704         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31705         * modules/tsearch-tests (Makefile.am): Likewise.
31706         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31707         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31708         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31709         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31710         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31711         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31712         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31713         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31714         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31715         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31716         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31717         * modules/xstrtol-tests (Makefile.am): Likewise.
31718         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31719         * modules/yesno-tests (Makefile.am): Likewise.
31720
31721 2007-10-03  Bruno Haible  <bruno@clisp.org>
31722
31723         * modules/trunc-tests: New file.
31724         * tests/test-trunc.c: New file.
31725
31726         * modules/trunc: New file.
31727         * lib/trunc.c: New file.
31728         * m4/trunc.m4: New file.
31729         * lib/math.in.h (trunc): New declaration.
31730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31731         HAVE_DECL_TRUNC.
31732         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31733         HAVE_DECL_TRUNC.
31734         * doc/functions/trunc.texi: Mention the 'trunc' module.
31735
31736 2007-10-03  Bruno Haible  <bruno@clisp.org>
31737
31738         * tests/test-fpending.c: New file, mostly copied
31739         from coreutils/lib/t-fpending.c.
31740         * modules/fpending-tests: New file.
31741
31742 2007-10-03  Bruno Haible  <bruno@clisp.org>
31743
31744         Port the stdio extensions to QNX (untested).
31745         * lib/fseterr.c (fseterr): Add support for QNX.
31746         * lib/fbufmode.c (fbufmode): Likewise.
31747         * lib/freadable.c (freadable): Likewise.
31748         * lib/fwritable.c (fwritable): Likewise.
31749         * lib/freading.c (freading): Likewise.
31750         * lib/fwriting.c (fwriting): Likewise.
31751         * lib/freadahead.c (freadahed): Likewise.
31752         * lib/fpurge.c (fpurge): Likewise.
31753         * lib/fseeko.c (rpl_fseeko): Likewise.
31754
31755 2007-10-03  Bruno Haible  <bruno@clisp.org>
31756             Jim Meyering  <jim@meyering.net>
31757             Eric Blake  <ebb9@byu.net>
31758
31759         * doc/relocatable.texi: Use @command instead of @program.
31760
31761 2007-10-02  Jim Meyering  <jim@meyering.net>
31762
31763         Perform one more "_.h" -> ".in.h" substitution.
31764         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31765         instead of unistd_.h here, too.
31766
31767 2007-10-01  Bruno Haible  <bruno@clisp.org>
31768
31769         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31770         Needed for the alloca-opt module.
31771
31772 2007-09-30  Bruno Haible  <bruno@clisp.org>
31773
31774         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31775         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31776         alloca_.h.
31777         * lib/argz.in.h: Renamed from lib/argz_.h.
31778         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31779         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31780         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31781         byteswap_.h.
31782         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31783         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31784         dirent_.h.
31785         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31786         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31787         fcntl_.h.
31788         * lib/float.in.h: Renamed from lib/float_.h.
31789         * modules/float (Files, Makefile.am): Use float.in.h instead of
31790         float_.h.
31791         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31792         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31793         fnmatch_.h.
31794         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31795         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31796         getopt_.h.
31797         * lib/glob.in.h: Renamed from lib/glob_.h.
31798         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31799         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31800         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31801         iconv_.h.
31802         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31803         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31804         inttypes_.h.
31805         * lib/locale.in.h: Renamed from lib/locale_.h.
31806         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31807         locale_.h.
31808         * lib/math.in.h: Renamed from lib/math_.h.
31809         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31810         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31811         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31812         of netinet_in_.h. Add dependency.
31813         * lib/poll.in.h: Renamed from lib/poll_.h.
31814         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31815         * lib/search.in.h: Renamed from lib/search_.h.
31816         * modules/search (Files, Makefile.am): Use search.in.h instead of
31817         search_.h.
31818         * lib/signal.in.h: Renamed from lib/signal_.h.
31819         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31820         _signal.h.
31821         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31822         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31823         stdbool_.h.
31824         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31825         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31826         stdint_.h.
31827         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31828         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31829         stdio_.h.
31830         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31831         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31832         stdlib_.h.
31833         * lib/string.in.h: Renamed from lib/string_.h.
31834         * modules/string (Files, Makefile.am): Use string.in.h instead of
31835         string_.h.
31836         * doc/gnulib-tool.texi (Initial import): Update.
31837         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31838         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31839         of sys_select_.h. Add dependency.
31840         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31841         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31842         of sys_socket_.h.
31843         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31844         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31845         sys_stat_.h.
31846         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31847         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31848         sys_time_.h.
31849         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31850         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31851         sysexits_.h.
31852         * lib/time.in.h: Renamed from lib/time_.h.
31853         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31854         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31855         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31856         unistd_.h.
31857         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31858         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31859         wchar_.h.
31860         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31861         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31862         wctype_.h.
31863         * build-aux/bootstrap (slurp): Update.
31864         * lib/.cppi-disable: Update.
31865
31866 2007-09-30  Bruno Haible  <bruno@clisp.org>
31867
31868         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31869         Needed on BeOS.
31870
31871 2007-09-30  Bruno Haible  <bruno@clisp.org>
31872
31873         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31874
31875 2007-09-29  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31878
31879 2007-09-29  Bruno Haible  <bruno@clisp.org>
31880
31881         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31882         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31883         * build-aux/install-reloc: Compile also areadlink.c.
31884         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31885
31886 2007-09-29  Bruno Haible  <bruno@clisp.org>
31887
31888         * gnulib-tool (func_emit_initmacro_done): Indentation.
31889
31890 2007-09-29  Bruno Haible  <bruno@clisp.org>
31891
31892         * README: Add CVS checkout update instructions.
31893         Info from Bob Proulx <bob@proulx.com>.
31894
31895 2007-09-28  Eric Blake  <ebb9@byu.net>
31896
31897         Provide move-if-change.
31898         * build-aux/move-if-change: New file, based on best practice
31899         rather than any canonical upstream location.
31900
31901 2007-09-28  Jim Meyering  <jim@meyering.net>
31902
31903         Fix canonicalize loop-detection corner case.
31904         Do not attempt to stat the symlink values stored via seen_triple.
31905         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31906         on linux-2.6.18, (but not 2.6.22).
31907         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31908         triple_compare.  The former compares dev,ino,filename, while the latter
31909         would actually stat dirname(filename) when dev and ino were equal.
31910         * lib/hash-triple.c: Install <string.h>.
31911         (STREQ): Define.
31912         (triple_compare_ino_str): New function.
31913         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31914
31915 2007-09-28  Eric Blake  <ebb9@byu.net>
31916
31917         Enforce that AC_REPLACE_FUNCS files exist.
31918         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31919         override check for typos.
31920
31921         Fix test-closein on Solaris 10.
31922         * tests/test-closein.c (main): Don't assume stdin can be inherited
31923         closed on all systems.
31924         * tests/test-closein.sh: Likewise.
31925         Reported by Piotr Tarnowski.
31926
31927 2007-09-28  Jim Meyering  <jim@meyering.net>
31928
31929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31930
31931 2007-09-27  Jim Meyering  <jim@meyering.net>
31932
31933         canonicalize: Avoid a false-positive cycle failure.
31934         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31935         Sort.  Remove cycle-check.
31936         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31937         not cycle-check.h.
31938         (seen_triple): New function.
31939         (canonicalize_filename_mode): Use it instead of cycle-check.
31940         * tests/test-canonicalize.c: Add a test for this bug.
31941         * tests/test-canonicalize.sh: Set up and run the test.
31942
31943         New module, file-set, from coreutils.
31944         * modules/file-set: Define it.
31945         * lib/file-set.c, lib/file-set.h: Implement.
31946
31947         New module, hash-triple, from coreutils.
31948         * modules/hash-triple: Define it.
31949         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31950
31951 2007-09-25  Eric Blake  <ebb9@byu.net>
31952
31953         Fix strerror on Interix.
31954         * lib/string_.h (strerror): Declare replacement.
31955         * doc/functions/strerror.texi (strerror): Document the Interix
31956         shortcoming.
31957         * modules/string (Makefile.am): Support new hooks.
31958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31959         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31960         gl_FUNC_STRERROR_SEPARATE.
31961         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31962         * lib/strerror.c (rpl_strerror): Provide replacement.
31963         * modules/strerror (Depends-on): Add string.
31964         (configure.ac): Detect use of module.
31965         * tests/test-strerror.c: New file.
31966         * modules/strerror-tests: New test module.
31967         * modules/argp (Depends-on): Add strerror.
31968         * modules/error (Depends-on): Likewise.
31969         Reported by Martin Koeppe.
31970
31971 2007-09-24  Bruno Haible  <bruno@clisp.org>
31972
31973         * README: Update git instructions.
31974
31975 2007-09-24  Eric Blake  <ebb9@byu.net>
31976
31977         Revert fpending breakage from 2007-09-08.
31978         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31979         __fpending.c.
31980
31981 2007-09-24  Jim Meyering  <jim@meyering.net>
31982
31983         filenamecat.c: Add a test.
31984         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31985         showing how the function works when DIR is the empty string.
31986
31987 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31988
31989         * tests/test-canonicalize.sh: Turn on executable bit.
31990
31991 2007-09-19  Eric Blake  <ebb9@byu.net>
31992
31993         * README: Update CVS instructions.
31994
31995 2007-09-18  Bruno Haible  <bruno@clisp.org>
31996
31997         * modules/areadlink: New file.
31998         * lib/areadlink.h (areadlink): New declaration.
31999         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32000
32001 2007-09-17  Jim Meyering  <jim@meyering.net>
32002
32003         * lib/savewd.c (ESTALE) [!defined]: Define.
32004         Reported to be required on Interix by Martin Koeppe.
32005
32006 2007-09-17  Bruno Haible  <bruno@clisp.org>
32007
32008         * gnulib-tool (func_version): Use $version.
32009
32010 2007-09-16  Bruno Haible  <bruno@clisp.org>
32011
32012         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32013         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32014         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32015         Reported by Greg Schafer <gschafer@zip.com.au>.
32016
32017 2007-09-15  Bruno Haible  <bruno@clisp.org>
32018
32019         * gnulib-tool (sed): Try a little harder to make bash understand the
32020         alias.
32021         Reported by Bruce Korb <bruce.korb@gmail.com>.
32022
32023 2007-09-13  Eric Blake  <ebb9@byu.net>
32024
32025         * ChangeLog: Remove conflict markers.
32026
32027 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32028
32029         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32030         Reported by Bruno Haible <bruno@clisp.org>.
32031
32032 2007-09-12  Bruno Haible  <bruno@clisp.org>
32033
32034         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32035         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32036         is not defined.
32037
32038 2007-09-12  Eric Blake  <ebb9@byu.net>
32039
32040         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32042         Autoconf definition.
32043         * modules/euidaccess (Depends-on): Add extensions, for
32044         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32045         * modules/fnmatch (Depends-on): Likewise.
32046         * modules/getaddrinfo (Depends-on): Likewise.
32047         * modules/getdelim (Depends-on): Likewise.
32048         * modules/getline (Depends-on): Likewise.
32049         * modules/getsubopt (Depends-on): Likewise.
32050         * modules/gettext (Depends-on): Likewise.
32051         * modules/group-member (Depends-on): Likewise.
32052         * modules/mbchar (Depends-on): Likewise.
32053         * modules/memmem (Depends-on): Likewise.
32054         * modules/mempcpy (Depends-on): Likewise.
32055         * modules/memrchr (Depends-on): Likewise.
32056         * modules/pagealign_alloc (Depends-on): Likewise.
32057         * modules/readutmp (Depends-on): Likewise.
32058         * modules/stpcpy (Depends-on): Likewise.
32059         * modules/stpncpy (Depends-on): Likewise.
32060         * modules/strchrnul (Depends-on): Likewise.
32061         * modules/strndup (Depends-on): Likewise.
32062         * modules/strsep (Depends-on): Likewise.
32063         * modules/strverscmp (Depends-on): Likewise.
32064         * modules/vasprintf (Depends-on): Likewise.
32065         * modules/wcwidth (Depends-on): Likewise.
32066         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32067         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32068         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32071         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32072         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32073         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32074         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32075         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32077         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32078         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32079         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32080         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32081         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32082         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32083         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32084         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32085         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32086         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32088         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32089         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32090         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32092         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32093         so that lock.m4 can be used in gettext without extensions module.
32094
32095 2007-09-11  Bruno Haible  <bruno@clisp.org>
32096
32097         * m4/isc-posix.m4: Remove file.
32098         Suggested by Eric Blake.
32099
32100 2007-09-11  Eric Blake  <ebb9@byu.net>
32101
32102         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32103
32104 2007-09-10  Bruno Haible  <bruno@clisp.org>
32105
32106         * posix-modules: Fix typo in error message.
32107         Reported by Matt <mkraai@beckman.com>.
32108
32109 2007-09-09  Bruno Haible  <bruno@clisp.org>
32110
32111         * doc/functions/getdelim.texi: Update list of platforms lacking the
32112         function.
32113         * doc/functions/getline.texi: Likewise.
32114
32115 2007-09-09  Jim Meyering  <jim@meyering.net>
32116
32117         * lib/hash.c (hash_initialize): Detect calloc failure.
32118         Reported by Bruno Haible.
32119
32120 2007-09-09  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32123         malloc or realloc fails.
32124
32125 2007-09-09  Bruno Haible  <bruno@clisp.org>
32126
32127         * modules/getcwd (Depends-on): Add malloc-posix.
32128         * modules/glob (Depends-on): Likewise.
32129         * modules/putenv (Depends-on): Likewise.
32130         * modules/strdup (Depends-on): Likewise.
32131         * modules/getdelim (Depends-on): Add realloc-posix.
32132         * modules/read-file (Depends-on): Likewise.
32133
32134 2007-09-09  Bruno Haible  <bruno@clisp.org>
32135
32136         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32137         (gl_FUNC_MALLOC_POSIX): Require it.
32138         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32139         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32140         * modules/realloc (Files): Add m4/malloc.m4.
32141         * modules/calloc (Files): Likewise.
32142
32143 2007-09-09  Bruno Haible  <bruno@clisp.org>
32144
32145         * modules/malloc-posix: New file.
32146         * modules/malloc (Depends-on): Add malloc-posix.
32147         * lib/malloc.c: Include errno.h.
32148         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32149         and a POSIX-compatible malloc into a single function. Set ENOMEM
32150         when returning NULL.
32151         * m4/malloc.m4: New file.
32152         * doc/functions/malloc.texi: Mention the malloc-posix module.
32153         * lib/stdlib_.h (malloc): New declaration.
32154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32155         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32156         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32157         and HAVE_MALLOC_POSIX.
32158
32159 2007-09-09  Bruno Haible  <bruno@clisp.org>
32160
32161         * modules/realloc-posix: New file.
32162         * modules/realloc (Depends-on): Add realloc-posix.
32163         * lib/realloc.c: Include errno.h.
32164         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32165         and a POSIX-compatible realloc into a single function. Set ENOMEM
32166         when returning NULL.
32167         * m4/realloc.m4: New file.
32168         * doc/functions/realloc.texi: Mention the realloc-posix module.
32169         * lib/stdlib_.h (realloc): New declaration.
32170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32171         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32172         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32173         and HAVE_REALLOC_POSIX.
32174
32175 2007-09-09  Bruno Haible  <bruno@clisp.org>
32176
32177         * modules/calloc-posix: New file.
32178         * modules/calloc (Depends-on): Add calloc-posix.
32179         * lib/calloc.c: Include errno.h.
32180         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32181         and a POSIX-compatible calloc into a single function. Set ENOMEM
32182         when returning NULL.
32183         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32184         * doc/functions/calloc.texi: Mention the calloc-posix module.
32185         * lib/stdlib_.h (calloc): New declaration.
32186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32187         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32188         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32189         and HAVE_CALLOC_POSIX.
32190
32191 2007-09-09  Bruno Haible  <bruno@clisp.org>
32192
32193         Allow for modules to show an arbitrary notice.
32194         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32195         * gnulib-tool: New option --extract-notice.
32196         (func_usage): Document it.
32197         (sed_extract_prog): Update.
32198         (func_get_notice): New function.
32199         (func_modules_notice): New function.
32200         (func_import, func_create_testdir): Invoke it.
32201         Suggested by Jim Meyering.
32202
32203 2007-09-09  Bruno Haible  <bruno@clisp.org>
32204
32205         * gnulib-tool: New options --verbose, --quiet.
32206         (func_usage): Document them.
32207         (verbose): New variable.
32208         (func_execute_command): New function.
32209         (func_import): Don't show the module list and the file list if
32210         $verbose < 0.
32211         (func_create_testdir): Likewise. Use func_execute_command.
32212         (func_create_megatestdir): Use func_execute_command.
32213
32214 2007-09-08  Bruno Haible  <bruno@clisp.org>
32215
32216         * gnulib-tool (func_import): Prefer rsync over wget when available,
32217         for fetching the PO files.
32218
32219 2007-09-08  Bruno Haible  <bruno@clisp.org>
32220
32221         * posix-modules: New file. Portions copied from gnulib-tool.
32222         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32223
32224 2007-09-08  Jim Meyering  <jim@meyering.net>
32225
32226         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32227         * lib/fpending.h: Rename from __fpending.h.
32228         * lib/fpending.c: Rename from __fpending.c.
32229         Include "fpending.h", not "__fpending.h".
32230         * lib/__fpending.h, lib/__fpending.c: Remove files.
32231         * modules/fpending (Files): Reflect new file names.
32232         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32233
32234 2007-09-08  Bruno Haible  <bruno@clisp.org>
32235
32236         * m4/inttypes-h.m4: Remove stub file.
32237
32238 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32239
32240         * doc/headers/stdint.texi: Discuss #include_next issue.
32241
32242 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32243
32244         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32245
32246 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32247
32248         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32249         in variable name.
32250
32251 2007-09-03  Jim Meyering  <jim@meyering.net>
32252
32253         New module: git-version-gen.
32254         * modules/git-version-gen: New file.
32255
32256         Import changes from coreutils for bootstrap script.
32257
32258         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32259
32260         bootstrap: uses rsync to download the .po files
32261         * build-aux/bootstrap (po_download_command_format): New global.
32262         (download_po_files): Use rsync.
32263         (update_po_files): Don't remove .po files after download,
32264         so future rsync runs can take advantage of the copies.
32265
32266         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32267
32268         Solve the unnecessary-.po-file-regeneration problem once and for all.
32269         * build-aux/bootstrap (download_po_files): New function, renamed from
32270         get_translations.  Now, downloads, but doesn't update LINGUAS.
32271         (update_po_files): New function.
32272
32273         bootstrap: Ignore more.
32274         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32275         uniwidth to e.g., lib/.gitignore.
32276         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32277
32278         * build-aux/bootstrap: New setting: vc_ignore.
32279         (insert_sorted_if_absent): Create $file if absent.
32280         Adapt to new, possibly empty, list: $vc_ignore.
32281
32282         bootstrap: generate more ignorable names
32283         * build-aux/bootstrap (slurp): When generating ignorable names,
32284         also map .sin to .sed, .gperf to .c, and .y to .c.
32285
32286 2007-09-03  Jim Meyering  <jim@meyering.net>
32287
32288         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32289         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32290
32291 2007-09-02  Bruno Haible  <bruno@clisp.org>
32292
32293         Fix mis-recognition of 'mcs' on QNX 6.
32294         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32295         output contains the string "Mono".
32296         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32297         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32298
32299 2007-09-01  Bruno Haible  <bruno@clisp.org>
32300
32301         Fix collision between uniwidth/* and linebreak modules.
32302         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32303         u32_width): Remove declarations.
32304         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32305         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32306         streq3, streq2, streq1, streq0): Remove functions.
32307         (STREQ): Remove macro.
32308         (is_cjk_encoding): Remove function.
32309         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32310         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32311         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32312         * NEWS: Document the change.
32313
32314 2007-09-01  Bruno Haible  <bruno@clisp.org>
32315
32316         * lib/streq.h: Add double-inclusion guard.
32317
32318 2007-09-01  Karl Berry  <karl@gnu.org>
32319
32320         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32321
32322 2007-08-28  Jim Meyering  <jim@meyering.net>
32323
32324         Rename mreadlink_with_size to areadlink_with_size.
32325         * NEWS: Document the change.
32326         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32327         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32328         * lib/mreadlink.h: Rename this to...
32329         * lib/areadlink.h: ...this.
32330         * modules/mreadlink-with-size: Rename this to...
32331         * modules/areadlink-with-size: ...this.
32332         * lib/canonicalize.c: Reflect the renaming.
32333         * modules/canonicalize: Likewise.
32334
32335 2007-08-26  Bruno Haible  <bruno@clisp.org>
32336
32337         * gnulib-tool (func_import): When deciding which files to remove,
32338         consider also dangling symbolic links.
32339         Reported by Eric Blake.
32340
32341 2007-08-26  Bruno Haible  <bruno@clisp.org>
32342
32343         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32344
32345 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32346
32347         * lib/readline.c: Don't include getline.h, the prototype is now
32348         found in stdio.h.
32349
32350 2007-08-23  Jim Meyering  <jim@meyering.net>
32351
32352         Getdelim touchup.
32353         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32354         around the funlockfile call, since funlockfile never sets errno.
32355         Don't set errno upon failed realloc.
32356
32357 2007-08-22  Eric Blake  <ebb9@byu.net>
32358
32359         Getline touchups.
32360         * lib/getdelim.c (getdelim): Revert regression that required *n to
32361         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32362         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32363         getdelim, rather than whether implementation is missing.
32364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32365         * lib/stdio_.h (getline): Also declare if replacement is
32366         required.
32367         * doc/functions/getdelim.texi: New file.
32368         * doc/functions/getline.texi: Likewise.
32369         * doc/gnulib.texi (Function Substitutes): Add new files.
32370         Reported by Bruno Haible.
32371
32372 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32373
32374         * users.txt: Add Guile.
32375
32376 2007-08-22  Eric Blake  <ebb9@byu.net>
32377
32378         * tests/test-getdelim.c (main): Use remove, not unlink.
32379         * tests/test-getline.c (main): Likewise.
32380
32381         Move getline and getdelim into stdio.h, per POSIX 200x.
32382         * modules/getline (Files): Remove getline.h.
32383         (Depends-on): Add stdio.
32384         (configure.ac): Add module indicator.
32385         * modules/getdelim (Files): Remove getdelim.h.
32386         (Depends-on): Add stdio.
32387         (configure.ac): Add module indicator.
32388         * modules/stdio (Makefile.am): Work with new indicators.
32389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32390         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32392         * lib/getdelim.h: Delete.
32393         * lib/getline.h: Delete.
32394         * lib/stdio_.h (getdelim, getline): Declare.
32395         * modules/getdelim-tests: New module.
32396         * modules/getline-tests: Likewise.
32397         * tests/test-getdelim.c: New file.
32398         * tests/test-getline.c: Likewise.
32399         * NEWS: Document the change.
32400         * lib/getline.c: Update choice of header.
32401         * lib/csharpcomp.c: Likewise.
32402         * lib/getpass.c: Likewise.
32403         * lib/javacomp.c: Likewise.
32404         * lib/javaversion.c: Likewise.
32405         * lib/yesno.c: Likewise.
32406         * lib/getdelim.c: Likewise.
32407         (getdelim): Set errno on failure, and avoid memory leak.
32408
32409 2007-08-19  Bruno Haible  <bruno@clisp.org>
32410
32411         * modules/closein (Depends-on): Add freadahead.
32412         * lib/closein.c: Include freadahead.h.
32413         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32414         is zero.
32415
32416 2007-08-19  Bruno Haible  <bruno@clisp.org>
32417
32418         * modules/freadahead-tests: New file.
32419         * tests/test-freadahead.sh: New file.
32420         * tests/test-freadahead.c: New file.
32421
32422         * modules/freadahead: New file.
32423         * lib/freadahead.h: New file.
32424         * lib/freadahead.c: New file.
32425         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32426         fbufmode, fpurge, freadable, fwritable.
32427
32428 2007-08-19  Eric Blake  <ebb9@byu.net>
32429
32430         Test yesno in combination with closein.
32431         * lib/yesno.c (yesno): Document use of stdin.
32432         * modules/yesno-tests (Files): New module.
32433         * tests/test-yesno.c (main): New file.
32434         * tests/test-yesno.sh: Likewise.
32435
32436 2007-08-19  Bruno Haible  <bruno@clisp.org>
32437
32438         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32439         * lib/fseeko.c (rpl_fseeko): Likewise.
32440         * lib/fseterr.c (fseterr): Likewise.
32441
32442 2007-08-19  Bruno Haible  <bruno@clisp.org>
32443
32444         * tests/test-lseek.c (main): Disable a test for BeOS.
32445         * doc/functions/lseek.texi: Document the BeOS bug.
32446
32447 2007-08-19  Bruno Haible  <bruno@clisp.org>
32448             Eric Blake  <ebb9@byu.net>
32449
32450         * lib/lseek.c: Include <sys/stat.h>.
32451         (rpl_lseek): Add workaround code also for Unix platforms.
32452         Needed for BeOS.
32453         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32454         * doc/functions/lseek.texi: Document BeOS definiency.
32455
32456 2007-08-18  Bruno Haible  <bruno@clisp.org>
32457
32458         * modules/fstrcmp-tests: New file.
32459         * tests/test-fstrcmp.c: New file.
32460
32461 2007-08-18  Bruno Haible  <bruno@clisp.org>
32462
32463         * modules/fstrcmp: New file, from GNU gettext with modifications.
32464         * lib/fstrcmp.h: New file, from GNU gettext.
32465         * lib/fstrcmp.c: New file, from GNU gettext.
32466         * MODULES.html.sh (String handling): Add fstrcmp.
32467
32468 2007-08-18  Bruno Haible  <bruno@clisp.org>
32469
32470         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32471         'bool'.
32472         (diag, compareseq): Remove const from the ctxt argument.
32473         (USE_HEURISTIC): Undefine at the end.
32474
32475 2007-08-18  Jim Meyering  <jim@meyering.net>
32476
32477         New file: lib/idcache.h
32478         * NEWS: Mention the addition.
32479         * modules/idcache (Files): Add lib/idcache.h
32480         * lib/idcache.c: Include "idcache.h".
32481         Don't include <sys/types.h>.
32482         Add a FIXME comment.
32483         Move file-scoped "static" declarations to the top.
32484         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32485
32486 2007-08-17  Bruno Haible  <bruno@clisp.org>
32487         and Paul Eggert  <eggert@cs.ucla.edu>
32488
32489         * MODULES.html.sh: Add diffseq.
32490         * modules/diffseq: New file.
32491         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32492         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32493
32494 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32495
32496         Import changes from coreutils for bootstrap script.
32497
32498         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32499
32500         * build-aux/bootstrap (slurp): Work even in environments where
32501         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32502         current code does not slurp files whose names start with ".", and
32503         this looks like it might be a troublesome area.
32504
32505         2007-07-11  Jim Meyering  <jim@meyering.net>
32506
32507         If there's a GPL vN copyright comment, require that N == 3.
32508
32509         2007-07-08  Jim Meyering  <jim@meyering.net>
32510
32511         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32512         * build-aux/bootstrap (mam_template): Move definition out of loop.
32513
32514         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32515
32516         * build-aux/bootstrap (symlink_to_dir): Rename function from
32517         symlink_to_gnulib.  Add a directory parameter.  Update all
32518         callers.
32519         (cp_mark_as_generated): Also check for -- and link to -- files in
32520         gl/.
32521
32522         2007-07-08  Jim Meyering  <jim@meyering.net>
32523
32524         Adapt to deeper hierarchy in gnulib.
32525         * build-aux/bootstrap (symlink_to_dir): If the destination
32526         directory doesn't exist, create it. This is required at least for
32527         "lib/uniwidth/cjk.h".
32528
32529         2007-05-15  Jim Meyering  <jim@meyering.net>
32530
32531         * build-aux/bootstrap: Now that generated Makefile.am files
32532         are no longer under version control, they must be created at
32533         bootstrap time.
32534
32535 2007-08-14  Ben Pfaff  <blp@gnu.org>
32536
32537         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32538
32539 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32540
32541         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32542         given the changes below.
32543         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32544         even on hosts that have padding bits beyond the supported 64.
32545
32546 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32547
32548         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32549         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32550         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32551         depends on it.
32552         (xstrtol_error): Remove.
32553         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32554         but with a different signature.
32555         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32556         * lib/xstrtol-error.c: Include exitfail.h.
32557         (xstrtol_fatal): New function, with a different signature from the
32558         old xstrtol_error, so that the caller need not worry about passing
32559         in an exit status, or about storage management of the option argument.
32560         (xstrtol_error): Now a static function.  Redo signature to
32561         implement xstrtol_fatal.  Output the correct number of hyphens in
32562         front of the option so that the caller need not worry about
32563         storage management.
32564         (N_): New macro.
32565         (_): Remove; not used now.
32566         * modules/xstrtol: Depend on getopt.
32567         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32568         of old STRTOL_FATAL_ERROR macro.
32569         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32570         of test program.
32571         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32572         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32573
32574 2007-08-08  Eric Blake  <ebb9@byu.net>
32575
32576         * lib/xstrtol-error.c: Add missing include.
32577
32578         Move xstrtol messages into gnulib domain, when --pobase is used.
32579         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32580         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32581         * modules/xstrtol (Files): Distribute new file.
32582         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32583         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32584         * tests/test-xstrtol.c: ...into new file.
32585         * tests/test-xstrtoul.c: Also test xstrtoul.
32586         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32587         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32588         * tests/test-xstrtol.sh: Drive the tests.
32589         * tests/test-xstrtoimax.sh: Likewise.
32590         * tests/test-xstrtoumax.sh: Likewise.
32591         * modules/xstrtol-tests: New module.
32592         * modules/xstrtoimax-tests: Likewise.
32593         * modules/xstrtoumax-tests: Likewise.
32594
32595 2007-08-08  Jim Meyering  <jim@meyering.net>
32596
32597         New function: mfile_name_concat.
32598         * lib/filenamecat.c (mfile_name_concat): New function, just like
32599         file_name_concat, but return NULL upon failure rather than exiting
32600         with a diagnostic.
32601         * lib/filenamecat.h: Declare it.
32602
32603 2007-08-07  Bruno Haible  <bruno@clisp.org>
32604
32605         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32606         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32607         warning from gcc.
32608         Reported by Eric Blake.
32609
32610 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32611
32612         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32613         * modules/crypto/arcfour (License): Likewise.
32614         * modules/crypto/des-tests (License): Likewise.
32615         * modules/crypto/gc-arctwo-tests (License): Likewise.
32616         * modules/crypto/gc-des-tests (License): Likewise.
32617         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32618         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32619         * modules/crypto/gc-md2-tests (License): Likewise.
32620         * modules/crypto/gc-md4-tests (License): Likewise.
32621         * modules/crypto/gc-md5-tests (License): Likewise.
32622         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32623         * modules/crypto/gc-rijndael-tests (License): Likewise.
32624         * modules/crypto/gc-sha1-tests (License): Likewise.
32625         * modules/crypto/gc-tests (License): Likewise.
32626         * modules/crypto/hmac-md5 (License): Likewise.
32627         * modules/crypto/hmac-sha1 (License): Likewise.
32628         * modules/crypto/md2-tests (License): Likewise.
32629         * modules/crypto/md4-tests (License): Likewise.
32630         * modules/crypto/md5 (License): Likewise.
32631         * modules/crypto/rijndael (License): Likewise.
32632         * modules/crypto/sha1 (License): Likewise.
32633         * modules/memxor (License): Likewise.
32634
32635 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32636         and Bruno Haible  <bruno@clisp.org>
32637
32638         * NEWS: Describe interface changes to human, xstrtol.
32639         * lib/human.h: Include <xstrtol.h>.
32640         (human_options): Return enum strtol_error, not int.  Remove
32641         bool arg; take int * instead.
32642         * lib/human.c: Don't include "gettext.h".
32643         (_): Remove; no longer used.
32644         Don't include <xstrtol.h>, since human.h does it.
32645         (human_options): Adjust to abovementioned interface changes.
32646         Do not report error to stderr; that's now the caller's
32647         responsibility.
32648         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32649         interface change.
32650         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32651         Str, Argument_type_string.  All uses changed.  Put " argument"
32652         in diagnostics to make them clearer.  Change wording of suffix
32653         message for clarity.
32654         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32655         Argument_type_string.
32656         (STRTOL_FATAL_WARN): Remove; no longer used.
32657         * modules/human (Depends-on): Remove gettext-h.
32658
32659 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32660
32661         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32662
32663 2007-07-31  Bruno Haible  <bruno@clisp.org>
32664
32665         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32666         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32667         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32668
32669 2007-07-31  Bruno Haible  <bruno@clisp.org>
32670
32671         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32672         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32673
32674 2007-07-30  Bruno Haible  <bruno@clisp.org>
32675
32676         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32677         * modules/c-ctype (License): Likewise.
32678         * modules/c-strcase (License): Likewise.
32679         * modules/check-version (License): Likewise.
32680         * modules/iconv (License): Likewise.
32681         * modules/iconv_open (License): Likewise.
32682         * modules/read-file (License): Likewise.
32683         * modules/striconv (License): Likewise.
32684         * modules/strverscmp (License): Likewise.
32685         * modules/vasprintf (License): Likewise.
32686         * modules/crypto/des (License): Likewise.
32687         * modules/crypto/gc (License): Likewise.
32688         * modules/crypto/gc-arcfour (License): Likewise.
32689         * modules/crypto/gc-arctwo (License): Likewise.
32690         * modules/crypto/gc-des (License): Likewise.
32691         * modules/crypto/gc-hmac-md5 (License): Likewise.
32692         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32693         * modules/crypto/gc-md2 (License): Likewise.
32694         * modules/crypto/gc-md4 (License): Likewise.
32695         * modules/crypto/gc-md5 (License): Likewise.
32696         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32697         * modules/crypto/gc-random (License): Likewise.
32698         * modules/crypto/gc-rijndael (License): Likewise.
32699         * modules/crypto/gc-sha1 (License): Likewise.
32700         * modules/crypto/md2 (License): Likewise.
32701         * modules/crypto/md4 (License): Likewise.
32702
32703 2007-07-30  Jim Meyering  <jim@meyering.net>
32704
32705         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32706         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32707         it has valid stat data.  This bug would cause du not to count the
32708         sizes of inaccessible directories.
32709         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32710         in <http://bugzilla.redhat.com/250077>.
32711
32712 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32713             Bruno Haible  <bruno@clisp.org>
32714
32715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32716         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32717         #include_next, gives a diagnostic about it, but reports no error in
32718         the exit code.
32719         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32720
32721 2007-07-24  Ben Pfaff  <blp@gnu.org>
32722
32723         Improve name: "count-one-bits" is better than "popcount".
32724         * MODULES.html.sh: Update name.
32725         * lib/popcount.h: Renamed lib/count-one-bits.h.
32726         (popcount): Renamed count_one_bits.
32727         (popcountl): Renamed count_one_bits_l.
32728         (popcountll): Renamed count_one_bits_ll.
32729         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32730         * modules/popcount: Renamed module/count-one-bits.
32731         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32732         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32733
32734 2007-07-23  Ben Pfaff  <blp@gnu.org>
32735
32736         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32737         better code generation, and add U to large constants to avoid
32738         warnings, in non-GCC case.
32739         Suggested by Bruno Haible.
32740
32741 2007-07-23  Ben Pfaff  <blp@gnu.org>
32742
32743         * lib/popcount.h: Use verify_true instead of if...abort.
32744         * modules/popcount: Depend on verify module.
32745         Suggested by Jim Meyering.
32746
32747 2007-07-23  Bruno Haible  <bruno@clisp.org>
32748
32749         * gnulib-tool (func_import): Create a .cvsignore file also when the
32750         directory is not yet in CVS but the toplevel directory is. When
32751         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32752         Reported by Karl Berry.
32753
32754 2007-07-22  Ben Pfaff  <blp@gnu.org>
32755
32756         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32757         case.
32758         Suggested by Eric Blake.
32759
32760 2007-07-22  Ben Pfaff  <blp@gnu.org>
32761
32762         New module: popcount.
32763         * MODULES.html.sh: Add popcount.
32764         * modules/popcount: New file.
32765         * modules/popcount-tests: New file.
32766         * tests/test-popcount.c: New file.
32767         * lib/popcount.h: New file.
32768         * m4/popcount.m4: New file.
32769
32770 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32771
32772         * build-aux/announce-gen: Update to GPLv3.
32773
32774         * build-aux/config.guess: Update from config.
32775
32776 2007-07-21  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32779         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32780
32781 2007-07-20  Jim Meyering  <jim@meyering.net>
32782
32783         * check-module: Diagnose a self-dependency.
32784
32785 2007-07-19  Bruno Haible  <bruno@clisp.org>
32786
32787         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32788         empty.
32789         Reported by Eric Blake.
32790
32791 2007-07-18  Bruno Haible  <bruno@clisp.org>
32792
32793         * gnulib-tool: New options --po-base, --po-domain.
32794         (func_usage): Document them.
32795         (pobase, po_domain): New variables.
32796         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32797         DEFAULT_TEXT_DOMAIN.
32798         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32799         (func_import): Consider pobase and po_domain. Create a po/ directory.
32800         (func_create_testdir): Set pobase and po_domain to empty.
32801         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32802         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32803
32804 2007-07-18  Bruno Haible  <bruno@clisp.org>
32805
32806         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32807         EXTRA_DIST augmentation for files in build-aux/.
32808
32809 2007-07-16  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32812         * modules/getdelim (License): Likewise.
32813
32814 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32815
32816         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32817         * modules/d-type (License): Likewise.
32818         * modules/extensions (License): Likewise.
32819         * modules/fnmatch (License): Likewise.
32820         * modules/fseeko (License): Likewise.
32821         * modules/getaddrinfo (License): Likewise.
32822         * modules/getline (License): Likewise.
32823         * modules/getlogin_r (License): Likewise.
32824         * modules/getpass (License): Likewise.
32825         * modules/gettimeofday (License): Likewise.
32826         * modules/glob (License): Likewise.
32827         * modules/inet_ntop (License): Likewise.
32828         * modules/malloc (License): Likewise.
32829         * modules/malloca (License): Likewise.
32830         * modules/memmem (License): Likewise.
32831         * modules/mempcpy (License): Likewise.
32832         * modules/memset (License): Likewise.
32833         * modules/minmax (License): Likewise.
32834         * modules/mktime (License): Likewise.
32835         * modules/netinet_in (License): Likewise.
32836         * modules/pathmax (License): Likewise.
32837         * modules/poll (License): Likewise.
32838         * modules/regex (License): Likewise.
32839         * modules/snprintf (License): Likewise.
32840         * modules/stdbool (License): Likewise.
32841         * modules/stdint (License): Likewise.
32842         * modules/stdio (License): Likewise.
32843         * modules/strcase (License): Likewise.
32844         * modules/strcasestr (License): Likewise.
32845         * modules/strdup (License): Likewise.
32846         * modules/string (License): Likewise.
32847         * modules/strndup (License): Likewise.
32848         * modules/strnlen (License): Likewise.
32849         * modules/strpbrk (License): Likewise.
32850         * modules/strptime (License): Likewise.
32851         * modules/strsep (License): Likewise.
32852         * modules/sys_select (License): Likewise.
32853         * modules/sys_socket (License): Likewise.
32854         * modules/sys_stat (License): Likewise.
32855         * modules/sys_time (License): Likewise.
32856         * modules/time (License): Likewise.
32857         * modules/time_r (License): Likewise.
32858         * modules/timegm (License): Likewise.
32859         * modules/unistd (License): Likewise.
32860         * modules/vsnprintf (License): Likewise.
32861         * modules/wctype (License): Likewise.
32862
32863 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32864
32865         * modules/argz (License): LGPLv2+.
32866
32867 2007-07-15  Karl Berry  <karl@gnu.org>
32868
32869         * doc/gnulib.texi: revise node structure per new fdl.texi.
32870
32871 2007-07-14  Bruno Haible  <bruno@clisp.org>
32872
32873         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32874         the output file.
32875         * lib/uniname/uninames.h: Regenerated.
32876
32877 2007-07-14  Karl Berry  <karl@gnu.org>
32878
32879         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32880         omitting sectioning and index commands.
32881
32882 2007-07-13  Bruno Haible  <bruno@clisp.org>
32883
32884         New gnulib-tool option --more-symlinks.
32885         * gnulib-tool (func_usage): Document --more-symlinks.
32886         (do_copyrights): New variable.
32887         Recognize option --more-symlinks.
32888         (func_import): Don't add a copyright notice transform to
32889         sed_transform_lib_file if do_copyrights is empty.
32890
32891 2007-07-13  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/vasnprintf.c (decimal_point_char): Define also if
32894         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32895         && !NEED_PRINTF_DIRECTIVE_A.
32896         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32897         Gary V. Vaughan <gary@gnu.org>.
32898
32899 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32900
32901         * lib/inttypes_.h: Undo previous change, since it was fixed
32902         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32903
32904 2007-07-13  Bruno Haible  <bruno@clisp.org>
32905
32906         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32907         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32908
32909 2007-07-13  Jim Meyering  <jim@meyering.net>
32910
32911         df: Don't fail for Tru64's "file-on-file mount".
32912         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32913         so we fall through and use statfs instead.  Details here:
32914         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32915         Reported by Albert Chin.
32916
32917 2007-07-13  Bruno Haible  <bruno@clisp.org>
32918
32919         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32920         * modules/configmake (License): Likewise.
32921         * modules/gettext (License): Likewise.
32922         * modules/gettext-h (License): Likewise.
32923         * modules/include_next (License): Likewise.
32924         * modules/link-warning (License): Likewise.
32925         * modules/localcharset (License): Likewise.
32926         * modules/localename (License): Likewise.
32927         * modules/lock (License): Likewise.
32928         * modules/relocatable-lib-lgpl (License): Likewise.
32929         * modules/size_max (License): Likewise.
32930         * modules/vasnprintf (License): Likewise.
32931         * modules/wchar (License): Likewise.
32932         * modules/xsize (License): Likewise.
32933
32934 2007-07-13  Bruno Haible  <bruno@clisp.org>
32935
32936         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32937         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32938
32939 2007-07-12  Bruno Haible  <bruno@clisp.org>
32940
32941         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32942         in the modules files.
32943
32944 2007-07-11  Karl Berry  <karl@gnu.org>
32945
32946         * MODULES.html.sh (func_module): use
32947          sed -e '\|^'"${includefile}"'$|d'
32948          instead of /.../d, to avoid errors on $includefile's containing /.
32949
32950 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32951
32952         * gnulib-tool (func_import): Avoid duplication of --avoid
32953         statements
32954         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32955         names to `_' in variable names.
32956
32957 2007-07-10  Eric Blake  <ebb9@byu.net>
32958
32959         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32960         * NEWS: Document this change.
32961
32962 2007-07-08  Bruno Haible  <bruno@clisp.org>
32963
32964         Update to Unicode 5.0.
32965         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32966         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32967         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32968         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32969         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32970         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32971         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32972         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32973         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32974         U+10A3F, U+1D242..U+1D244.
32975         (nonspacing_table_ind): Update.
32976         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32977         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32978
32979 2007-07-08  Bruno Haible  <bruno@clisp.org>
32980
32981         Update to Unicode 5.0.
32982         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32983         code transform. Extend the name index field of unicode_name_to_code and
32984         unicode_code_to_name from 16 to 24 bits.
32985         * lib/uniname/uniname.c (unicode_character_name,
32986         unicode_name_character): Add the range 0x12xxx to the code transform.
32987         * lib/uniname/uninames.h: Regenerated.
32988         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32989
32990 2007-07-07  Bruno Haible  <bruno@clisp.org>
32991
32992         * modules/wcwidth-tests: New file.
32993         * tests/test-wcwidth.c: New file.
32994
32995         Work around MacOS X wcwidth() bug.
32996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32997         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32998         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32999         original wcwidth in non-UTF-8 locales.
33000         * modules/wcwidth (Depends-on): Add localcharset, streq,
33001         uniwidth/width.
33002         * doc/functions/wcwidth.texi: Update.
33003
33004 2007-07-07  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33007         (wcwidth): New declaration.
33008         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33009         macros.
33010         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33011         here. Prepare for creating <wchar.h> unconditionally.
33012         * modules/wchar (Depends-on): Add link-warning.
33013         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33014         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33015         * lib/wcwidth.h: Remove file.
33016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33017         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33018         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33019         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33020         (Include): Replace wcwidth.h with <wchar.h>.
33021         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33022         * lib/mbchar.h: Don't include wcwidth.h.
33023         * lib/mbswidth.c: Likewise.
33024         * NEWS: Mention the change.
33025
33026 2007-07-07  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33029         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33030         definition with an external declaration.
33031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33032         defined as a function. Remove AC_C_INLINE requirement.
33033         * modules/wcwidth (Files): Add lib/wcwidth.c.
33034         (Makefile.am): Remove redundant statement.
33035
33036 2007-07-07  Bruno Haible  <bruno@clisp.org>
33037
33038         * MODULES.html.sh (Unicode string functions): Add the new modules.
33039
33040         * tests/uniwidth/test-u32-strwidth.c: New file.
33041         * modules/uniwidth/u32-strwidth-tests: New file.
33042
33043         * lib/uniwidth/u32-strwidth.c: New file.
33044         * modules/uniwidth/u32-strwidth: New file.
33045
33046         * tests/uniwidth/test-u16-strwidth.c: New file.
33047         * modules/uniwidth/u16-strwidth-tests: New file.
33048
33049         * lib/uniwidth/u16-strwidth.c: New file.
33050         * modules/uniwidth/u16-strwidth: New file.
33051
33052         * tests/uniwidth/test-u8-strwidth.c: New file.
33053         * modules/uniwidth/u8-strwidth-tests: New file.
33054
33055         * lib/uniwidth/u8-strwidth.c: New file.
33056         * modules/uniwidth/u8-strwidth: New file.
33057
33058         * tests/uniwidth/test-u32-width.c: New file.
33059         * modules/uniwidth/u32-width-tests: New file.
33060
33061         * lib/uniwidth/u32-width.c: New file.
33062         * modules/uniwidth/u32-width: New file.
33063
33064         * tests/uniwidth/test-u16-width.c: New file.
33065         * modules/uniwidth/u16-width-tests: New file.
33066
33067         * lib/uniwidth/u16-width.c: New file.
33068         * modules/uniwidth/u16-width: New file.
33069
33070         * tests/uniwidth/test-u8-width.c: New file.
33071         * modules/uniwidth/u8-width-tests: New file.
33072
33073         * lib/uniwidth/u8-width.c: New file.
33074         * modules/uniwidth/u8-width: New file.
33075
33076         * tests/uniwidth/test-uc_width.c: New file.
33077         * modules/uniwidth/width-tests: New file.
33078
33079         * lib/uniwidth/width.c: New file, from GNU libiconv.
33080         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33081         * modules/uniwidth/width: New file.
33082
33083         * lib/uniwidth.h: New file, from GNU libiconv.
33084         * modules/uniwidth/base: New file.
33085
33086 2007-07-07  Bruno Haible  <bruno@clisp.org>
33087
33088         * lib/uniname.h: New file, from GNU gettext.
33089         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33090         * lib/uniname/uninames.h: New file, from GNU gettext.
33091         * lib/uniname/uniname.c: New file, from GNU gettext.
33092         * tests/uniname/test-uninames.sh: New file.
33093         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33094         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33095         * modules/uniname/base: New file.
33096         * modules/uniname/uniname: New file.
33097         * modules/uniname/uniname-tests: New file.
33098         * MODULES.html.sh (Unicode string functions): Add the new modules.
33099
33100 2007-07-06  Bruno Haible  <bruno@clisp.org>
33101
33102         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33103
33104 2007-07-06  Bruno Haible  <bruno@clisp.org>
33105
33106         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33107         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33108         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33109         include <sys/time.h>.
33110         Reported by Eric Blake.
33111
33112 2007-07-06  Eric Blake  <ebb9@byu.net>
33113
33114         Fix testing canonicalize on cygwin.
33115         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33116         Revert patch from 2007-06-19.
33117         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33118         canonicalize module is also in use.
33119         * tests/test-canonicalize.c: New file.
33120         * tests/test-canonicalize.sh: Likewise.
33121         * modules/canonicalize-tests: Likewise.
33122
33123 2007-07-06  Jim Meyering  <jim@meyering.net>
33124
33125         * lib/getugroups.c (getugroups): Detect getgrent failure.
33126         Adjust comment to reflect reality: this function may return -1.
33127
33128 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33129
33130         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33131         the new TP address.
33132         (usage): Fix typo
33133         (gnulib_mk): New variable.
33134
33135 2007-07-05  Jim Meyering  <jim@meyering.net>
33136
33137         Don't let endgrent clobber errno, no matter how improbable.
33138         * lib/getugroups.c (getugroups): Save and restore errno around
33139         endgrent call.
33140
33141         Close the group DB even when failing with 2^31 or more members.
33142         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33143
33144 2007-07-04  Jim Meyering  <jim@meyering.net>
33145
33146         * lib/getugroups.h: New file.
33147         * lib/getugroups.c: Include "getugroups.h".
33148         Remove uses of "register" keyword.
33149         Move local variable, "cp", down into scope where used.
33150         Give "username" parameter the "const" attribute.
33151         * modules/getugroups (Files): Add lib/getugroups.h
33152
33153 2007-07-04  Karl Berry  <karl@gnu.org>
33154
33155         * MODULES.html.sh (func_all_modules): Complete rename of
33156         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33157
33158 2007-07-02  Bruno Haible  <bruno@clisp.org>
33159
33160         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33161         mode, when inttypes.h comes from gnulib.
33162         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33163
33164 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33165
33166         * NEWS: Mention lgpl module name change.
33167
33168         * modules/lgpl-2.1: Renamed from lgpl.
33169
33170         * NEWS: Mention gpl module name change.
33171
33172         * modules/gpl-3.0: New file, based on gpl-2.0.
33173
33174         * modules/gpl-2.0: Renamed from gpl.
33175
33176         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33177         doc/gpl-2.0.texi.
33178
33179 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33180
33181         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33182         #define __STDC_LIMIT_MACROS temporarily while including
33183         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33184         Problem reported by Joel E. Denny in
33185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33186
33187 2007-07-01  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/unistdio.h: New file.
33190         * lib/unistdio/u-asnprintf.h: New file.
33191         * lib/unistdio/u-asprintf.h: New file.
33192         * lib/unistdio/u-printf-args.c: New file.
33193         * lib/unistdio/u-printf-args.h: New file.
33194         * lib/unistdio/u-printf-parse.h: New file.
33195         * lib/unistdio/u-snprintf.h: New file.
33196         * lib/unistdio/u-sprintf.h: New file.
33197         * lib/unistdio/u-vasprintf.h: New file.
33198         * lib/unistdio/u-vsnprintf.h: New file.
33199         * lib/unistdio/u-vsprintf.h: New file.
33200         * lib/unistdio/ulc-asnprintf.c: New file.
33201         * lib/unistdio/ulc-asprintf.c: New file.
33202         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33203         * lib/unistdio/ulc-printf-parse.c: New file.
33204         * lib/unistdio/ulc-snprintf.c: New file.
33205         * lib/unistdio/ulc-sprintf.c: New file.
33206         * lib/unistdio/ulc-vasnprintf.c: New file.
33207         * lib/unistdio/ulc-vasprintf.c: New file.
33208         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33209         * lib/unistdio/ulc-vsnprintf.c: New file.
33210         * lib/unistdio/ulc-vsprintf.c: New file.
33211         * lib/unistdio/u8-asnprintf.c: New file.
33212         * lib/unistdio/u8-asprintf.c: New file.
33213         * lib/unistdio/u8-printf-parse.c: New file.
33214         * lib/unistdio/u8-snprintf.c: New file.
33215         * lib/unistdio/u8-sprintf.c: New file.
33216         * lib/unistdio/u8-vasnprintf.c: New file.
33217         * lib/unistdio/u8-vasprintf.c: New file.
33218         * lib/unistdio/u8-vsnprintf.c: New file.
33219         * lib/unistdio/u8-vsprintf.c: New file.
33220         * lib/unistdio/u8-u8-asnprintf.c: New file.
33221         * lib/unistdio/u8-u8-asprintf.c: New file.
33222         * lib/unistdio/u8-u8-snprintf.c: New file.
33223         * lib/unistdio/u8-u8-sprintf.c: New file.
33224         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33225         * lib/unistdio/u8-u8-vasprintf.c: New file.
33226         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33227         * lib/unistdio/u8-u8-vsprintf.c: New file.
33228         * lib/unistdio/u16-asnprintf.c: New file.
33229         * lib/unistdio/u16-asprintf.c: New file.
33230         * lib/unistdio/u16-printf-parse.c: New file.
33231         * lib/unistdio/u16-snprintf.c: New file.
33232         * lib/unistdio/u16-sprintf.c: New file.
33233         * lib/unistdio/u16-vasnprintf.c: New file.
33234         * lib/unistdio/u16-vasprintf.c: New file.
33235         * lib/unistdio/u16-vsnprintf.c: New file.
33236         * lib/unistdio/u16-vsprintf.c: New file.
33237         * lib/unistdio/u16-u16-asnprintf.c: New file.
33238         * lib/unistdio/u16-u16-asprintf.c: New file.
33239         * lib/unistdio/u16-u16-snprintf.c: New file.
33240         * lib/unistdio/u16-u16-sprintf.c: New file.
33241         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33242         * lib/unistdio/u16-u16-vasprintf.c: New file.
33243         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33244         * lib/unistdio/u16-u16-vsprintf.c: New file.
33245         * lib/unistdio/u32-asnprintf.c: New file.
33246         * lib/unistdio/u32-asprintf.c: New file.
33247         * lib/unistdio/u32-printf-parse.c: New file.
33248         * lib/unistdio/u32-snprintf.c: New file.
33249         * lib/unistdio/u32-sprintf.c: New file.
33250         * lib/unistdio/u32-vasnprintf.c: New file.
33251         * lib/unistdio/u32-vasprintf.c: New file.
33252         * lib/unistdio/u32-vsnprintf.c: New file.
33253         * lib/unistdio/u32-vsprintf.c: New file.
33254         * lib/unistdio/u32-u32-asnprintf.c: New file.
33255         * lib/unistdio/u32-u32-asprintf.c: New file.
33256         * lib/unistdio/u32-u32-snprintf.c: New file.
33257         * lib/unistdio/u32-u32-sprintf.c: New file.
33258         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33259         * lib/unistdio/u32-u32-vasprintf.c: New file.
33260         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33261         * lib/unistdio/u32-u32-vsprintf.c: New file.
33262         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33263         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33264         * tests/unistdio/test-ulc-printf1.h: New file.
33265         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33266         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33267         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33268         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33269         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33270         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33271         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33272         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33273         * tests/unistdio/test-u8-asnprintf1.c: New file.
33274         * tests/unistdio/test-u8-asnprintf1.h: New file.
33275         * tests/unistdio/test-u8-printf1.h: New file.
33276         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33277         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33278         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33279         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33280         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33281         * tests/unistdio/test-u8-vasprintf1.c: New file.
33282         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33283         * tests/unistdio/test-u8-vsprintf1.c: New file.
33284         * tests/unistdio/test-u16-asnprintf1.c: New file.
33285         * tests/unistdio/test-u16-asnprintf1.h: New file.
33286         * tests/unistdio/test-u16-printf1.h: New file.
33287         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33288         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33289         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33290         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33291         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33292         * tests/unistdio/test-u16-vasprintf1.c: New file.
33293         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33294         * tests/unistdio/test-u16-vsprintf1.c: New file.
33295         * tests/unistdio/test-u32-asnprintf1.c: New file.
33296         * tests/unistdio/test-u32-asnprintf1.h: New file.
33297         * tests/unistdio/test-u32-printf1.h: New file.
33298         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33299         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33300         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33301         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33302         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33303         * tests/unistdio/test-u32-vasprintf1.c: New file.
33304         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33305         * tests/unistdio/test-u32-vsprintf1.c: New file.
33306         * modules/unistdio/base: New file.
33307         * modules/unistdio/u-printf-args: New file.
33308         * modules/unistdio/ulc-asnprintf: New file.
33309         * modules/unistdio/ulc-asprintf: New file.
33310         * modules/unistdio/ulc-fprintf: New file.
33311         * modules/unistdio/ulc-printf-parse: New file.
33312         * modules/unistdio/ulc-snprintf: New file.
33313         * modules/unistdio/ulc-sprintf: New file.
33314         * modules/unistdio/ulc-vasnprintf: New file.
33315         * modules/unistdio/ulc-vasprintf: New file.
33316         * modules/unistdio/ulc-vfprintf: New file.
33317         * modules/unistdio/ulc-vsnprintf: New file.
33318         * modules/unistdio/ulc-vsprintf: New file.
33319         * modules/unistdio/u8-asnprintf: New file.
33320         * modules/unistdio/u8-asprintf: New file.
33321         * modules/unistdio/u8-printf-parse: New file.
33322         * modules/unistdio/u8-snprintf: New file.
33323         * modules/unistdio/u8-sprintf: New file.
33324         * modules/unistdio/u8-vasnprintf: New file.
33325         * modules/unistdio/u8-vasprintf: New file.
33326         * modules/unistdio/u8-vsnprintf: New file.
33327         * modules/unistdio/u8-vsprintf: New file.
33328         * modules/unistdio/u8-u8-asnprintf: New file.
33329         * modules/unistdio/u8-u8-asprintf: New file.
33330         * modules/unistdio/u8-u8-snprintf: New file.
33331         * modules/unistdio/u8-u8-sprintf: New file.
33332         * modules/unistdio/u8-u8-vasnprintf: New file.
33333         * modules/unistdio/u8-u8-vasprintf: New file.
33334         * modules/unistdio/u8-u8-vsnprintf: New file.
33335         * modules/unistdio/u8-u8-vsprintf: New file.
33336         * modules/unistdio/u16-asnprintf: New file.
33337         * modules/unistdio/u16-asprintf: New file.
33338         * modules/unistdio/u16-printf-parse: New file.
33339         * modules/unistdio/u16-snprintf: New file.
33340         * modules/unistdio/u16-sprintf: New file.
33341         * modules/unistdio/u16-vasnprintf: New file.
33342         * modules/unistdio/u16-vasprintf: New file.
33343         * modules/unistdio/u16-vsnprintf: New file.
33344         * modules/unistdio/u16-vsprintf: New file.
33345         * modules/unistdio/u16-u16-asnprintf: New file.
33346         * modules/unistdio/u16-u16-asprintf: New file.
33347         * modules/unistdio/u16-u16-snprintf: New file.
33348         * modules/unistdio/u16-u16-sprintf: New file.
33349         * modules/unistdio/u16-u16-vasnprintf: New file.
33350         * modules/unistdio/u16-u16-vasprintf: New file.
33351         * modules/unistdio/u16-u16-vsnprintf: New file.
33352         * modules/unistdio/u16-u16-vsprintf: New file.
33353         * modules/unistdio/u32-asnprintf: New file.
33354         * modules/unistdio/u32-asprintf: New file.
33355         * modules/unistdio/u32-printf-parse: New file.
33356         * modules/unistdio/u32-snprintf: New file.
33357         * modules/unistdio/u32-sprintf: New file.
33358         * modules/unistdio/u32-vasnprintf: New file.
33359         * modules/unistdio/u32-vasprintf: New file.
33360         * modules/unistdio/u32-vsnprintf: New file.
33361         * modules/unistdio/u32-vsprintf: New file.
33362         * modules/unistdio/u32-u32-asnprintf: New file.
33363         * modules/unistdio/u32-u32-asprintf: New file.
33364         * modules/unistdio/u32-u32-snprintf: New file.
33365         * modules/unistdio/u32-u32-sprintf: New file.
33366         * modules/unistdio/u32-u32-vasnprintf: New file.
33367         * modules/unistdio/u32-u32-vasprintf: New file.
33368         * modules/unistdio/u32-u32-vsnprintf: New file.
33369         * modules/unistdio/u32-u32-vsprintf: New file.
33370         * modules/unistdio/ulc-asnprintf-tests: New file.
33371         * modules/unistdio/ulc-vasnprintf-tests: New file.
33372         * modules/unistdio/ulc-vasprintf-tests: New file.
33373         * modules/unistdio/ulc-vsnprintf-tests: New file.
33374         * modules/unistdio/ulc-vsprintf-tests: New file.
33375         * modules/unistdio/u8-asnprintf-tests: New file.
33376         * modules/unistdio/u8-vasnprintf-tests: New file.
33377         * modules/unistdio/u8-vasprintf-tests: New file.
33378         * modules/unistdio/u8-vsnprintf-tests: New file.
33379         * modules/unistdio/u8-vsprintf-tests: New file.
33380         * modules/unistdio/u16-asnprintf-tests: New file.
33381         * modules/unistdio/u16-vasnprintf-tests: New file.
33382         * modules/unistdio/u16-vasprintf-tests: New file.
33383         * modules/unistdio/u16-vsnprintf-tests: New file.
33384         * modules/unistdio/u16-vsprintf-tests: New file.
33385         * modules/unistdio/u32-asnprintf-tests: New file.
33386         * modules/unistdio/u32-vasnprintf-tests: New file.
33387         * modules/unistdio/u32-vasprintf-tests: New file.
33388         * modules/unistdio/u32-vsnprintf-tests: New file.
33389         * modules/unistdio/u32-vsprintf-tests: New file.
33390         * MODULES.html.sh (Unicode string functions): Add the new modules.
33391
33392 2007-07-01  Bruno Haible  <bruno@clisp.org>
33393
33394         * lib/sprintf.c (sprintf): Limit the available length estimation,
33395         to avoid address wraparound.
33396         * lib/vsprintf.c (vsprintf): Likewise.
33397         * modules/sprintf-posix (Dependencies): Add stdint.
33398         * modules/vsprintf-posix (Dependencies): Likewise.
33399
33400 2007-07-01  Bruno Haible  <bruno@clisp.org>
33401
33402         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33403         Windows PATH as well. Conservative double-quoting. Comments.
33404
33405 2007-07-01  Bruno Haible  <bruno@clisp.org>
33406             Eric Blake  <ebb9@byu.net>
33407             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33408
33409         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33410         empty components in $PATH, denoting '.'.
33411
33412 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33413
33414         * gnulib-tool: Fix indentation.
33415         (func_create_megatestdir): Likewise.
33416         Report by Bruno Haible.
33417
33418 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33419
33420         Sync from Automake.
33421         * build-aux/gnupload: Fix shell portability issues with for loops.
33422         Report by Karl Berry.
33423
33424 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33425
33426         * build-aux/maint.mk (POURL): Use translationproject.org.
33427
33428 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33429             Bruno Haible  <bruno@clisp.org>
33430
33431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33432         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33433         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33434         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33435         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33436
33437 2007-06-27  Bruno Haible  <bruno@clisp.org>
33438
33439         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33440         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33441
33442 2007-06-26  Karl Berry  <karl@gnu.org>
33443
33444         * MODULES.html.sh: remove xreadlink-with-size.
33445
33446 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33447
33448         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33449         method that I hope also handles the double-include problem noted
33450         by Bruno Haible in
33451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33452
33453 2007-06-23  Bruno Haible  <bruno@clisp.org>
33454
33455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33456         Don't let the 'mostlyclean' target fail if the last subdirectory could
33457         not be removed.
33458         Reported by Karl Berry.
33459
33460 2007-06-23  Bruno Haible  <bruno@clisp.org>
33461
33462         * gnulib-tool (echo): Add a speedier workaround for ksh.
33463         * tests/test-echo.sh: Likewise.
33464
33465 2007-06-23  Bruno Haible  <bruno@clisp.org>
33466
33467         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33468         * tests/test-echo.sh: Likewise.
33469
33470 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33471
33472         * gnulib-tool (IFS): Initialize early, so we don't set it to
33473         empty later.
33474         (self_abspathname): Rewrite algorithm to set it, reindent.
33475         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33476         (func_create_megatestdir): Merge some sed scripts.
33477
33478 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33479
33480         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33481         exposed by Sun Studio 11 cc on Solaris 8.
33482
33483 2007-06-22  Bruno Haible  <bruno@clisp.org>
33484
33485         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33486         backslashes.
33487         * tests/test-echo.sh: New file.
33488
33489 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33490
33491         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33492         simplify `sed_replace_build_aux' scripts, they are portable but
33493         echoing them with `echo' is not.
33494         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33495
33496 2007-06-21  Karl Berry  <karl@gnu.org>
33497
33498         * config/srclist.txt: guess we can't handle the licenses via
33499         srclist at the moment.
33500
33501 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33502
33503         * MODULES.html.sh: Add include_next.
33504         * modules/include_next: New file.
33505
33506 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33507
33508         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33509         INCLUDE_NEXT.
33510         (gl_CHECK_NEXT_HEADERS): New macro.
33511         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33512         the obsolescent gl_ABSOLUTE_HEADER.
33513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33514         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33515         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33516         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33517         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33518         * m4/math_h.m4 (gl_MATH_H): Likewise.
33519         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33520         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33521         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33522         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33523         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33524         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33525         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33528         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33530         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33531         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33532         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33533         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33534         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33535         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33536         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33537         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33538         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33539         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33540         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33541         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33542         * lib/float_.h: Likewise.
33543         * lib/inttypes_.h: Likewise.
33544         * lib/math_.h: Likewise.
33545         * lib/search_.h: Likewise.
33546         * lib/signal_.h: Likewise.
33547         * lib/stdint_.h: Likewise.
33548         * lib/stdio_.h: Likewise.
33549         * lib/stdlib_.h: Likewise.
33550         * lib/string_.h: Likewise.
33551         * lib/sys_stat_.h: Likewise.
33552         * lib/sys_time_.h: Likewise.
33553         * lib/time_.h: Likewise.
33554         * lib/unistd_.h: Likewise.
33555         * lib/wchar_.h: Likewise.
33556         * lib/wctype_.h: Likewise.
33557         * lib/dirent_.h: Likewise.
33558         * lib/iconv_.h: Likewise.
33559         * lib/locale_.h: Likewise.
33560         * lib/netinet_in_.h: Likewise.
33561         * lib/sys_select_.h: Likewise.
33562         * lib/sys_socket_.h: Likewise.
33563         * lib/sysexits_.h: Likewise.
33564         * modules/fcntl (Depends-on): Depend on include_next, not
33565         absolute_header.
33566         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33567         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33568         * modules/fchdir: Likewise.
33569         * modules/float: Likewise.
33570         * modules/iconv_open: Likewise.
33571         * modules/inttypes: Likewise.
33572         * modules/locale: Likewise.
33573         * modules/math: Likewise.
33574         * modules/netinet_in: Likewise.
33575         * modules/search: Likewise.
33576         * modules/signal: Likewise.
33577         * modules/stdint: Likewise.
33578         * modules/stdio: Likewise.
33579         * modules/stdlib: Likewise.
33580         * modules/string: Likewise.
33581         * modules/sys_select: Likewise.
33582         * modules/sys_socket: Likewise.
33583         * modules/sys_stat: Likewise.
33584         * modules/sys_time: Likewise.
33585         * modules/sysexits: Likewise.
33586         * modules/time: Likewise.
33587         * modules/unistd: Likewise.
33588         * modules/wchar: Likewise.
33589         * modules/wctype: Likewise.
33590         * modules/sys_stat: Change maintainer to "all".
33591         * modules/unistd: Likewise.
33592
33593 2007-06-20  Karl Berry  <karl@gnu.org>
33594
33595         * config/srclist.txt: track www changes in license files.
33596
33597 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33598
33599         * build-aux/bootstrap: Remove stray dot.
33600         Make sure build_aux settings are honored when linking
33601         gnulib_extra_files.
33602
33603 2007-06-19  Eric Blake  <ebb9@byu.net>
33604
33605         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33606         Allow compilation on cygwin.
33607
33608 2007-06-19  Jim Meyering  <jim@meyering.net>
33609
33610         xreadlink-with-size: Remove module.  No longer used.
33611         Ex-callers now use xreadlink or mreadlink-with-size.
33612         * modules/xreadlink-with-size: Remove module.
33613         * lib/xreadlink-with-size.c: Remove file.
33614         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33615         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33616         just before the function definition *is* accurate.
33617
33618         Eliminate one way canonicalize_filename_mode could exit.
33619         * lib/canonicalize.c (canonicalize_filename_mode):
33620         Use mreadlink_with_size, not xreadlink_with_size.
33621
33622 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33623
33624         Detect porting problems to FreeBSD/arm, which has time_t wider than
33625         long int.  Original problem reported for GNU diff by Xin Li in
33626         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33627         * modules/getdate (Depends-on): Add intprops, verify.
33628         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33629         is an integer type no wider than long int.
33630
33631 2007-06-18  Jim Meyering  <jim@meyering.net>
33632
33633         New module: mreadlink-with-size.
33634         * MODULES.html.sh: Add mreadlink-with-size.
33635         * modules/mreadlink-with-size: New module
33636         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33637         not xreadlink-with-size.
33638         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33639
33640 2007-06-16  Bruno Haible  <bruno@clisp.org>
33641
33642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33643         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33644         Reported by Gary V. Vaughan <gary@gnu.org>.
33645
33646 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33647
33648         Revamp lchown so that it lives in unistd.h where it belongs.
33649         * lib/lchown.h: Remove.
33650         * lib/dirchownmod.c: Don't include lib/lchown.h.
33651         * lib/fchownat.c: Likewise.
33652         * lib/openat.c: Likewise.
33653         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33654         does not follow symlinks.
33655         (EOPNOTSUPP): Define if not defined.
33656         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33657         is defined to 0.
33658         (lchown): New decl.
33659         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33660         Do not check for lchown decl.
33661         Set REPLACE_LCHOWN.
33662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33663         REPLACE_LCHOWN.
33664         * modules/chown: Make it clear it follows symlinks.
33665         * modules/lchown: Make it clear it doesn't follow symlinks.
33666         (Files): Remove lib/lchown.h
33667         (Depends-on): Add unistd.
33668         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33669         (Include): Include <unistd.h>, not "lchown.h".
33670         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33671         REPLACE_LCHOWN.
33672
33673 2007-06-15  Jim Meyering  <jim@meyering.net>
33674
33675         Change license (GPL to LGPL) of fsusage and dependents.
33676         * modules/fsusage (License): Change to LGPL.
33677         * modules/full-read (License): Likewise.
33678         * modules/full-write (License): Likewise.
33679         * modules/safe-read (License): Likewise.
33680         * modules/safe-write (License): Likewise.
33681
33682 2007-06-14  Ben Pfaff  <blp@gnu.org>
33683
33684         Missing part of allocsa -> malloca transition.
33685         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33686         gl_MALLOCA.
33687
33688 2007-06-12  Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33691         to ia64, x86_64, i386.
33692         Reported by Eric Blake.
33693
33694 2007-06-12  Bruno Haible  <bruno@clisp.org>
33695
33696         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33697         cross-compiling to x86_64.
33698
33699 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33700
33701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33702         glitch reported by Ralf Wildenhues in
33703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33704
33705         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33706         Vin Shelton.
33707
33708 2007-06-11  Bruno Haible  <bruno@clisp.org>
33709
33710         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33711         replacement string.
33712         Reported by Eric Blake.
33713
33714 2007-06-10  Bruno Haible  <bruno@clisp.org>
33715
33716         Prepare vasnprintf code for use with Unicode strings.
33717         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33718         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33719         TYPE_U32_STRING.
33720         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33721         a_u32_string variants.
33722         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33723         * lib/printf-args.c: Don't include config.h and the specification
33724         header if PRINTF_FETCHARGS is already defined.
33725         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33726         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33727         TYPE_U16_STRING, TYPE_U32_STRING.
33728         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33729         u16_directive, u16_directives, u32_directive, u32_directives): New
33730         types.
33731         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33732         New declarations.
33733         * lib/printf-parse.c: Don't include config.h and the specification
33734         header if PRINTF_PARSE is already defined. Eliminate the set of
33735         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33736         them now. Include c-ctype.h.
33737         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33738         directive and CHAR_T_ONLY_ASCII.
33739         * lib/vasnprintf.c: Don't include config.h and the specification header
33740         if VASNPRINTF is already defined.
33741         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33742         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33743         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33744         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33745         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33746         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33747         code accordingly.
33748         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33749         pad_ourselves also in this case, with the 'c' and 's' directives, and
33750         with a different notion of "width".
33751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33752
33753 2007-06-10  Bruno Haible  <bruno@clisp.org>
33754
33755         * modules/unistr/u32-mbsnlen: New file.
33756         * lib/unistr/u32-mbsnlen.c: New file.
33757
33758         * modules/unistr/u16-mbsnlen: New file.
33759         * lib/unistr/u16-mbsnlen.c: New file.
33760
33761         * modules/unistr/u8-mbsnlen: New file.
33762         * lib/unistr/u8-mbsnlen.c: New file.
33763
33764         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33765         declarations.
33766
33767 2007-06-10  Bruno Haible  <bruno@clisp.org>
33768
33769         * lib/string_.h (mbsnlen): New declaration.
33770         * lib/mbsnlen.c: New file.
33771         * m4/mbsnlen.m4: New file.
33772         * modules/mbsnlen: New file.
33773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33774         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33775         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33776
33777 2007-06-10  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33780
33781 2007-06-10  Bruno Haible  <bruno@clisp.org>
33782
33783         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33784         * lib/mbuiter.h: Likewise.
33785
33786 2007-06-10  Bruno Haible  <bruno@clisp.org>
33787
33788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33789         declaration.
33790
33791 2007-06-10  Karl Berry  <karl@gnu.org>
33792
33793         * config/srclist.txt: remove gettext entries, Bruno prefers
33794         to update individually.
33795
33796 2007-06-10  Bruno Haible  <bruno@clisp.org>
33797
33798         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33799         'maxlen'. Ensure only length + width bytes are allocated, not
33800         length + 1 + width.
33801
33802 2007-06-09  Bruno Haible  <bruno@clisp.org>
33803
33804         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33805         (CHAR_T): Remove macro.
33806         (VASNPRINTF): Update.
33807
33808 2007-06-09  Bruno Haible  <bruno@clisp.org>
33809
33810         * MODULES.html.sh (Unicode string functions): Add the new modules.
33811
33812         * modules/uniconv/u32-conv-to-enc: New file.
33813         * lib/uniconv/u32-conv-to-enc.c: New file.
33814         * modules/uniconv/u32-conv-to-enc-tests: New file.
33815         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33816
33817         * modules/uniconv/u16-conv-to-enc: New file.
33818         * lib/uniconv/u16-conv-to-enc.c: New file.
33819         * lib/uniconv/u-conv-to-enc.h: New file.
33820         * modules/uniconv/u16-conv-to-enc-tests: New file.
33821         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33822
33823         * modules/uniconv/u8-conv-to-enc: New file.
33824         * lib/uniconv/u8-conv-to-enc.c: New file.
33825         * modules/uniconv/u8-conv-to-enc-tests: New file.
33826         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33827
33828         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33829         u32_conv_to_encoding): New declarations.
33830
33831 2007-06-09  Bruno Haible  <bruno@clisp.org>
33832
33833         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33834
33835 2007-06-09  Bruno Haible  <bruno@clisp.org>
33836
33837         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33838         * modules/malloca: Renamed from modules/allocsa, updated.
33839         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33840         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33841         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33842         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33843         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33844         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33845         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33846         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33847         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33848         * modules/c-strcasestr (Depends-on): Update.
33849         * lib/c-strcasestr.c: Update.
33850         * modules/c-strstr (Depends-on): Update.
33851         * lib/c-strstr.c: Update.
33852         * modules/canonicalize-lgpl (Depends-on): Update.
33853         * lib/canonicalize-lgpl.c: Update.
33854         * modules/clean-temp (Depends-on): Update.
33855         * lib/clean-temp.c: Update.
33856         * modules/csharpcomp (Depends-on): Update.
33857         * lib/csharpcomp.c: Update.
33858         * modules/csharpexec (Depends-on): Update.
33859         * lib/csharpexec.c: Update.
33860         * modules/javacomp (Depends-on): Update.
33861         * lib/javacomp.c: Update.
33862         * modules/javaexec (Depends-on): Update.
33863         * lib/javaexec.c: Update.
33864         * modules/mbscasestr (Depends-on): Update.
33865         * lib/mbscasestr.c: Update.
33866         * modules/mbsstr (Depends-on): Update.
33867         * lib/mbsstr.c: Update.
33868         * modules/setenv (Depends-on): Update.
33869         * lib/setenv.c: Update.
33870         * modules/strcasestr (Depends-on): Update.
33871         * lib/strcasestr.c: Update.
33872         * modules/striconveha (Depends-on): Update.
33873         * lib/striconveha.c: Update.
33874         * modules/relocatable-prog-wrapper (Files): Update.
33875         * lib/relocwrapper.c: Update.
33876         * build-aux/install-reloc: Update.
33877         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33878
33879 2007-06-08  Bruno Haible  <bruno@clisp.org>
33880
33881         Port to uClibc.
33882         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33883         * lib/fpurge.c (fpurge): Likewise.
33884         * lib/freading.c (freading): Likewise.
33885         * lib/fseeko.c (rpl_fseeko): Likewise.
33886         * lib/fseterr.c (fseterr): Likewise.
33887         * lib/fwriting.c (fwriting): Likewise.
33888         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33889
33890 2007-06-08  Bruno Haible  <bruno@clisp.org>
33891
33892         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33893         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33894         * modules/gettext (Files): Add m4/intlmacosx.m4.
33895
33896 2007-06-07  Bruno Haible  <bruno@clisp.org>
33897
33898         * modules/localename-tests: New file.
33899         * tests/test-localename.c: New file.
33900
33901         New module 'localename'.
33902         * lib/localename.h: New file.
33903         * lib/localename.c: New file, from GNU gettext.
33904         * m4/localename.m4: New file.
33905         * modules/localename: New file.
33906
33907 2007-06-07  Bruno Haible  <bruno@clisp.org>
33908
33909         Work around the lack of <wchar.h> on some builds of uClibc.
33910         * doc/headers/wchar.texi: Update.
33911         * lib/wchar_.h: Include <wchar.h> only if it exists.
33912         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33913         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33914         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33915         doesn't exist.
33916         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33917         * modules/mbfile (Depends-on): Add wchar.
33918         * modules/mbiter (Depends-on): Likewise.
33919         * modules/mbuiter (Depends-on): Likewise.
33920         Reported by Simon Josefsson.
33921
33922 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33923
33924         Work around problem reported by Steven M. Schweda in
33925         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33926         Tru64 5.1B with the Compaq compiler environment installed declares
33927         an 'isblank' function but does not define it in the C library.
33928         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33929         * lib/regex_internal.h (isblank): Likewise.
33930         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33931         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33932
33933 2007-06-05  Bruno Haible  <bruno@clisp.org>
33934
33935         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33936         ia64.
33937         * modules/printf-safe: New file.
33938         * modules/fprintf-posix (Depends-on): Add printf-safe.
33939         * modules/printf-posix (Depends-on): Likewise.
33940         * modules/snprintf-posix (Depends-on): Likewise.
33941         * modules/sprintf-posix (Depends-on): Likewise.
33942         * modules/vasnprintf-posix (Depends-on): Likewise.
33943         * modules/vasprintf-posix (Depends-on): Likewise.
33944         * modules/vfprintf-posix (Depends-on): Likewise.
33945         * modules/vprintf-posix (Depends-on): Likewise.
33946         * modules/vsnprintf-posix (Depends-on): Likewise.
33947         * modules/vsprintf-posix (Depends-on): Likewise.
33948         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33949         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33950         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33951         "no" on i386, x86_64, ia64.
33952         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33953         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33954         on i386, x86_64, ia64.
33955         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33956         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33957         on i386, x86_64, ia64.
33958         * tests/test-vasnprintf-posix.c: Include float.h.
33959         (LDBL80_WORDS): New macro.
33960         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33961         on i386, x86_64, ia64.
33962         * tests/test-vasprintf-posix.c: Include float.h.
33963         (LDBL80_WORDS): New macro.
33964         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33965         on i386, x86_64, ia64.
33966         * tests/test-snprintf-posix.c: Include float.h.
33967         * tests/test-sprintf-posix.c: Likewise.
33968         * tests/test-vsnprintf-posix.c: Likewise.
33969         * tests/test-vsprintf-posix.c: Likewise.
33970
33971 2007-06-05  Bruno Haible  <bruno@clisp.org>
33972
33973         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33974         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33975         non-IEEE numbers on i386, x86_64, ia64.
33976         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33977         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33978         * tests/test-isnanl.h: Include float.h.
33979         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33980
33981 2007-06-05  Bruno Haible  <bruno@clisp.org>
33982
33983         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33984         also the %a / %A. Handle the %a / %A code before this extra handling.
33985
33986 2007-06-05  Bruno Haible  <bruno@clisp.org>
33987
33988         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33989         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33990
33991 2007-06-05  Bruno Haible  <bruno@clisp.org>
33992
33993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33994         typo in variable name.
33995
33996 2007-06-05  Eric Blake  <ebb9@byu.net>
33997
33998         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33999         Reported by Simon Josefsson.
34000
34001 2007-06-04  Bruno Haible  <bruno@clisp.org>
34002
34003         Avoid test failures on some PowerPC platforms.
34004         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34005         Define differently for PowerPC.
34006         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34007         Reported by Gary V. Vaughan <gary@gnu.org>.
34008
34009 2007-06-02  Bruno Haible  <bruno@clisp.org>
34010
34011         Fix test-stdint failure on FreeBSD/ia64.
34012         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34013         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34014         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34015         * doc/headers/stdint.texi: Update.
34016
34017 2007-06-01  Bruno Haible  <bruno@clisp.org>
34018
34019         * tests/test-binary-io.c (main): Pass a third argument to open().
34020         Reported by Gary V. Vaughan <gary@gnu.org>.
34021
34022 2007-06-01  Bruno Haible  <bruno@clisp.org>
34023
34024         * doc/functions/frexpl.texi: Update for mingw.
34025
34026 2007-06-01  Bruno Haible  <bruno@clisp.org>
34027
34028         * tests/test-lseek.c (main): Disable test of errno for invalid third
34029         argument.
34030         * doc/functions/lseek.texi: Update.
34031         Reported by Gary V. Vaughan <gary@gnu.org>.
34032
34033 2007-05-28  Bruno Haible  <bruno@clisp.org>
34034
34035         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34036
34037 2007-05-31  Eric Blake  <ebb9@byu.net>
34038
34039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34040         cross compiling.
34041
34042 2007-05-30  Eric Blake  <ebb9@byu.net>
34043         and Bruno Haible  <bruno@clisp.org>
34044
34045         Work around mingw test failures exposed by m4-1.4.9b.
34046         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34047         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34048         moment.
34049
34050 2007-05-30  Bruno Haible  <bruno@clisp.org>
34051
34052         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34053         assuming that they are closed. Needed on HP-UX 11.
34054
34055 2007-05-29  Bruno Haible  <bruno@clisp.org>
34056
34057         Fix a problem with #include_next.
34058         * lib/dirent_.h: Split the double-inclusion guard.
34059         * lib/fcntl_.h: Likewise.
34060         * lib/float_.h: Likewise.
34061         * lib/iconv_.h: Likewise.
34062         * lib/inttypes_.h: Likewise.
34063         * lib/locale_.h: Likewise.
34064         * lib/math_.h: Likewise.
34065         * lib/netinet_in_.h: Likewise.
34066         * lib/search_.h: Likewise.
34067         * lib/signal_.h: Likewise.
34068         * lib/stdint_.h: Likewise.
34069         * lib/stdio_.h: Likewise.
34070         * lib/stdlib_.h: Likewise.
34071         * lib/string_.h: Likewise.
34072         * lib/sys_select_.h: Likewise.
34073         * lib/sys_socket_.h: Likewise.
34074         * lib/sys_stat_.h: Likewise.
34075         * lib/sys_time_.h: Likewise.
34076         * lib/sysexits_.h: Likewise.
34077         * lib/time_.h: Likewise.
34078         * lib/unistd_.h: Likewise.
34079         * lib/wchar_.h: Likewise.
34080         * lib/wctype_.h: Likewise.
34081
34082 2007-05-29  Bruno Haible  <bruno@clisp.org>
34083
34084         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34085         for the moment.
34086
34087 2007-05-29  Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34090         invocation.
34091         Reported by Eric Blake.
34092
34093 2007-05-29  Bruno Haible  <bruno@clisp.org>
34094
34095         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34096         compiling case.
34097
34098 2007-05-29  Eric Blake  <ebb9@byu.net>
34099             Bruno Haible  <bruno@clisp.org>
34100
34101         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34102         cross compiles.
34103
34104 2007-05-28  Eric Blake  <ebb9@byu.net>
34105
34106         * modules/closein-tests (test_closein_LDADD): Support test on
34107         cygwin with libtool.
34108
34109 2007-05-28  Bruno Haible  <bruno@clisp.org>
34110
34111         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34112         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34113         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34114         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34115         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34116         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34117         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34118         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34119         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34120
34121 2007-05-28  Eric Blake  <ebb9@byu.net>
34122
34123         Unconditionally include <config.h> in unit tests.
34124         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34125         * tests/test-allocsa.c, tests/test-arcfour.c,
34126         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34127         tests/test-array_list.c, tests/test-array_oset.c,
34128         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34129         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34130         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34131         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34132         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34133         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34134         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34135         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34136         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34137         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34138         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34139         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34140         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34141         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34142         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34143         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34144         test-md5.c, test-memmem.c, test-printf-posix.c,
34145         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34146         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34147         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34148         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34149         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34150         test-vasnprintf-posix2.c, test-vasnprintf.c,
34151         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34152         test-vfprintf-posix.c, test-vprintf-posix.c,
34153         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34154         test-xvasprintf.c: Likewise.
34155
34156 2007-05-28  Bruno Haible  <bruno@clisp.org>
34157
34158         * gnulib-tool (func_import): Remember the --with-tests command-line
34159         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34160         Reported by Eric Blake.
34161
34162 2007-05-28  Bruno Haible  <bruno@clisp.org>
34163
34164         * modules/ftell-tests: New file.
34165         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34166         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34167
34168         * lib/ftell.c: New file.
34169         * modules/ftell: New file.
34170         * m4/ftell.m4: New file.
34171         * doc/functions/ftell.texi: Update.
34172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34173         REPLACE_FTELL.
34174         * lib/stdio_.h (rpl_ftell): New declaration.
34175         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34176         REPLACE_FTELL.
34177
34178 2007-05-28  Eric Blake  <ebb9@byu.net>
34179
34180         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34181
34182 2007-05-28  Bruno Haible  <bruno@clisp.org>
34183
34184         * modules/fseek-tests: New file.
34185         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34186         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34187
34188         * lib/fseek.c: New file.
34189         * modules/fseek: New file.
34190         * m4/fseek.m4: New file.
34191         * doc/functions/fseek.texi: Update.
34192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34193         REPLACE_FSEEK.
34194         * lib/stdio_.h (rpl_fseek): New declaration.
34195         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34196         REPLACE_FSEEK.
34197
34198 2007-05-28  Bruno Haible  <bruno@clisp.org>
34199
34200         * lib/stdio_.h (fflush): More comments.
34201
34202 2007-05-28  Bruno Haible  <bruno@clisp.org>
34203
34204         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34205         runtime test.
34206
34207 2007-05-28  Eric Blake  <ebb9@byu.net>
34208
34209         Improve lseek module.
34210         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34211         * lib/unistd_.h (lseek): Scale back link warning message.
34212         * tests/test-lseek.c: Beef up test.
34213         * tests/test-lseek.sh: Exercise more facets of lseek.
34214         Reported by Bruno Haible.
34215
34216 2007-05-28  Bruno Haible  <bruno@clisp.org>
34217
34218         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34219         to define.
34220
34221 2007-05-27  Bruno Haible  <bruno@clisp.org>
34222
34223         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34224
34225 2007-05-27  Bruno Haible  <bruno@clisp.org>
34226
34227         * modules/openmp: New file.
34228         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34229         Noah Misch.
34230
34231 2007-05-26  Bruno Haible  <bruno@clisp.org>
34232
34233         * modules/chdir-long (Depends-on): Add fchdir.
34234         * modules/chdir-safer (Depends-on): Likewise.
34235         * modules/fts (Depends-on): Likewise.
34236         * modules/fts-lgpl (Depends-on): Likewise.
34237         * modules/openat (Depends-on): Likewise.
34238         * modules/savewd (Depends-on): Likewise.
34239
34240 2007-05-24  Eric Blake  <ebb9@byu.net>
34241
34242         Fix lseek on mingw.
34243         * modules/lseek: New module.
34244         * m4/lseek.m4: New file.
34245         * lib/lseek.c: New file.
34246         * modules/lseek-tests: New file.
34247         * tests/test-lseek.c: New file.
34248         * tests/test-lseek.sh: New file.
34249         * MODULES.html.sh: Document lseek module.
34250         * modules/fflush (Depends-on): Add lseek, fseeko.
34251         * modules/fseeko (Depends-on): Likewise.
34252         * modules/ftello (Depends-on): Likewise.
34253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34254         broken.
34255         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34256         broken.
34257         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34258         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34259         * lib/ftello.c (rpl_ftello): Likewise.
34260         * tests/test-fseeko.c (main): Test this.
34261         * tests/test-fseeko.sh: Likewise.
34262         * tests/test-ftello.c (main): Likewise.
34263         * tests/test-ftello.sh: Likewise.
34264         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34265         implies replacing fseek.
34266         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34267         HAVE_FTELLO.
34268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34269         * modules/unistd (Makefile.am): Likewise.
34270         * lib/unistd_.h (lseek): Declare a replacement.
34271         * doc/functions/lseek.texi (lseek): Document this fix.
34272         * doc/functions/fseek.texi (fseek): Likewise.
34273         * doc/functions/ftell.texi (ftell): Likewise.
34274
34275 2007-05-24  Bruno Haible  <bruno@clisp.org>
34276
34277         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34278         in the printed representation of a NaN.
34279         * tests/test-vasprintf-posix.c (test_function): Likewise.
34280         * tests/test-snprintf-posix.h (test_function): Likewise.
34281         * tests/test-sprintf-posix.h (test_function): Likewise.
34282         Reported by Eric Blake.
34283
34284 2007-05-23  Eric Blake  <ebb9@byu.net>
34285
34286         Fix fseeko/ftello on cygwin 1.5.24.
34287         * doc/functions/fseeko.texi (fseeko): Document the fix.
34288         * doc/functions/ftello.texi (ftello): Document the fix.
34289         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34290         * doc/functions/stdout.text (stdout): New file.
34291         * doc/functions/stderr.text (stderr): New file.
34292         * doc/gnulib.texi (Function Substitutes): Use new files.
34293         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34294         prior to 1.7.0.
34295         * tests/test-ftello.c (main): Likewise for ftello.
34296         * tests/test-fseeko.sh: New file.
34297         * tests/test-ftello.sh: New file.
34298         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34299         with seekable stdin.
34300         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34302         (gl_REPLACE_FSEEKO): New macro.
34303         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34304         * modules/fseeko (Files): Distribute fseeko.c.
34305         * modules/ftello (Files): Distribute ftello.c.
34306         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34307         mode.
34308         * lib/ftello.c (rpl_ftello): New file.
34309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34310         fseeko, ftello.
34311         (gl_STDIN_LARGE_OFFSET): New macro.
34312         * modules/stdio (Makefile.am): Perform the replacement.
34313         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34314
34315 2007-05-23  Bruno Haible  <bruno@clisp.org>
34316
34317         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34318         GNULIB_POSIXCHECK is defined.
34319
34320 2007-05-21  Bruno Haible  <bruno@clisp.org>
34321
34322         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34323         Check also the output for NaN arguments. When cross-compiling, guess
34324         no on IRIX.
34325         * lib/vasnprintf.c: Update comments.
34326         * tests/test-vasnprintf-posix.c (strisnan): New function.
34327         (test_function): Use it.
34328         * tests/test-vasprintf-posix.c (strisnan): New function.
34329         (test_function): Use it.
34330         * tests/test-snprintf-posix.h (strisnan): New function.
34331         (test_function): Use it.
34332         * tests/test-sprintf-posix.h (strisnan): New function.
34333         (test_function): Use it.
34334         Reported by Eric Blake.
34335
34336 2007-05-20  Bruno Haible  <bruno@clisp.org>
34337
34338         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34339         numbers that fails on BeOS.
34340         * doc/functions/frexpl.texi: Update.
34341
34342 2007-05-20  Jim Meyering  <jim@meyering.net>
34343
34344         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34345         forced upon us by glibc-2.6.
34346
34347 2007-05-20  Bruno Haible  <bruno@clisp.org>
34348
34349         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34350         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34351         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34352         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34353         NEED_PRINTF_INFINITE.
34354         (is_infinitel): New function.
34355         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34357         gl_PREREQ_VASNPRINTF_INFINITE.
34358         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34360         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34361         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34362         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34363         gl_PREREQ_VASNPRINTF_INFINITE.
34364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34368         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34369         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34371         * doc/functions/fprintf.texi: Update.
34372         * doc/functions/printf.texi: Update.
34373         * doc/functions/snprintf.texi: Update.
34374         * doc/functions/sprintf.texi: Update.
34375         * doc/functions/vfprintf.texi: Update.
34376         * doc/functions/vprintf.texi: Update.
34377         * doc/functions/vsnprintf.texi: Update.
34378         * doc/functions/vsprintf.texi: Update.
34379
34380 2007-05-20  Bruno Haible  <bruno@clisp.org>
34381
34382         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34383         was not found in libc.
34384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34385
34386 2007-05-20  Bruno Haible  <bruno@clisp.org>
34387
34388         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34389         printed as "-nan" instead of "nan".
34390         * tests/test-vasprintf-posix.c (test_function): Likewise.
34391         * tests/test-snprintf-posix.h (test_function): Likewise.
34392         * tests/test-sprintf-posix.h (test_function): Likewise.
34393         Needed for HP-UX 11.
34394
34395 2007-05-20  Jim Meyering  <jim@meyering.net>
34396
34397         Fix buggy test for the fchownat-deref bug.
34398         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34399         symlink required for the run-test.  Without it, this test would
34400         always declare that fchownat doesn't work, and client code would
34401         unnecessarily use the replacement function with fixed libc.
34402         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34403         Reported by Greg Schafer.
34404
34405 2007-05-19  Bruno Haible  <bruno@clisp.org>
34406
34407         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34408         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34409         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34410         Needed for IRIX 6.5 and Solaris 2.5.1.
34411
34412 2007-05-19  Bruno Haible  <bruno@clisp.org>
34413
34414         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34415         (test_function): Skip tests involving -0.0 on platforms where
34416         -0.0 = 0.0.
34417         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34418         (test_function): Skip tests involving -0.0 on platforms where
34419         -0.0 = 0.0.
34420         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34421         (test_function): Skip tests involving -0.0 on platforms where
34422         -0.0 = 0.0.
34423         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34424         (test_function): Skip tests involving -0.0 on platforms where
34425         -0.0 = 0.0.
34426         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34427         tests.
34428         * tests/test-printf-posix.h (test_function): Likewise.
34429         * tests/test-printf-posix.output: Remove all -0.0 related results.
34430         Needed for IRIX 6.5.
34431
34432 2007-05-19  Bruno Haible  <bruno@clisp.org>
34433
34434         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34435         printed as "nan0x7fffffff" instead of "nan".
34436         * tests/test-vasprintf-posix.c (test_function): Likewise.
34437         * tests/test-snprintf-posix.h (test_function): Likewise.
34438         * tests/test-sprintf-posix.h (test_function): Likewise.
34439         * tests/test-fprintf-posix.h (NaN): Remove macro.
34440         (test_function): Remove all NaN related tests.
34441         * tests/test-printf-posix.h (NaN): Remove macro.
34442         (test_function): Remove all NaN related tests.
34443         * tests/test-printf-posix.output: Remove all NaN related results.
34444         Needed for IRIX 6.5.
34445
34446 2007-05-19  Bruno Haible  <bruno@clisp.org>
34447
34448         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34450
34451 2007-05-19  Bruno Haible  <bruno@clisp.org>
34452
34453         * lib/float_.h: New file.
34454         * m4/float_h.m4: New file.
34455         * modules/float: New file.
34456         * modules/isnanl (Dependencies): Add float.
34457         * modules/isnanl-nolibm (Dependencies): Likewise.
34458         * modules/mathl (Dependencies): Likewise.
34459         * modules/printf-frexpl (Dependencies): Likewise.
34460         * modules/signbit (Dependencies): Likewise.
34461         * modules/vasnprintf (Dependencies): Likewise.
34462         * doc/headers/float.texi: Update.
34463
34464 2007-05-19  Jim Meyering  <jim@meyering.net>
34465
34466         * lib/utimens.c (gl_futimens): Rename from futimens,
34467         now that glibc-2.6 declares futimens.
34468         * lib/utimens.h: Likewise.
34469
34470 2007-05-19  Bruno Haible  <bruno@clisp.org>
34471
34472         Avoid test failures on mingw.
34473         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34474         * tests/test-printf-posix.sh: Likewise.
34475         * tests/test-vfprintf-posix.sh: Likewise.
34476         * tests/test-vprintf-posix.sh: Likewise.
34477
34478 2007-05-19  Bruno Haible  <bruno@clisp.org>
34479
34480         Fix *printf result for NaN, Inf, -0.0 on mingw.
34481         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34482         * lib/vasnprintf.c: Include math.h and isnan.h.
34483         (is_infinite_or_zero): New function.
34484         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34485         values in the %f, %F, %e, %E, %g, %G directives.
34486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34488         gl_PRINTF_INFINITE and test its result. Invoke
34489         gl_PREREQ_VASNPRINTF_INFINITE.
34490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34497         * doc/functions/fprintf.texi: Update.
34498         * doc/functions/printf.texi: Update.
34499         * doc/functions/snprintf.texi: Update.
34500         * doc/functions/sprintf.texi: Update.
34501         * doc/functions/vfprintf.texi: Update.
34502         * doc/functions/vprintf.texi: Update.
34503         * doc/functions/vsnprintf.texi: Update.
34504         * doc/functions/vsprintf.texi: Update.
34505
34506 2007-05-19  Bruno Haible  <bruno@clisp.org>
34507
34508         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34509         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34510         Instead of multiplying with 10^k, set extra_zeroes to k.
34511         (scale10_round_long_double): Remove function.
34512
34513 2007-05-18  Bruno Haible  <bruno@clisp.org>
34514
34515         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34516         introduced on 2007-05-06.
34517
34518 2007-05-18  Bruno Haible  <bruno@clisp.org>
34519
34520         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34521         %g directives.
34522         * tests/test-vasprintf-posix.c (test_function): Likewise.
34523         * tests/test-snprintf-posix.h (test_function): Likewise.
34524         * tests/test-sprintf-posix.h (test_function): Likewise.
34525
34526 2007-05-18  Bruno Haible  <bruno@clisp.org>
34527
34528         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34529         (strmatch): New function.
34530         (test_function): Test the %f directive on numbers of various exponents.
34531         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34532         (strmatch): New function.
34533         (test_function): Test the %f directive on numbers of various exponents.
34534         * tests/test-snprintf-posix.h (strmatch): New function.
34535         (test_function): Test the %f directive on numbers of various exponents.
34536         * tests/test-sprintf-posix.h (strmatch): New function.
34537         (test_function): Test the %f directive on numbers of various exponents.
34538         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34539         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34540         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34541         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34542
34543 2007-05-18  Bruno Haible  <bruno@clisp.org>
34544
34545         Add support for 'long double' number output.
34546         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34547         * lib/vasnprintf.c: Include math.h and float+.h.
34548         (mp_limb_t): New type.
34549         (GMP_LIMB_BITS): New macro.
34550         (mp_twolimb_t): New type.
34551         (GMP_TWOLIMB_BITS): New macro.
34552         (mpn_t): New type.
34553         (multiply, divide, convert_to_decimal, decode_long_double,
34554         scale10_round_long_double, scale10_round_decimal_long_double,
34555         floorlog10l): New functions.
34556         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34557         for the %f, %F, %e, %E, %g, %G directives.
34558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34560         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34561         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34569         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34570         * modules/snprintf-posix (Depends-on): Likewise.
34571         * modules/sprintf-posix (Depends-on): Likewise.
34572         * modules/vasnprintf-posix (Depends-on): Likewise.
34573         * modules/vasprintf-posix (Depends-on): Likewise.
34574         * modules/vfprintf-posix (Depends-on): Likewise.
34575         * modules/vsnprintf-posix (Depends-on): Likewise.
34576         * modules/vsprintf-posix (Depends-on): Likewise.
34577         * modules/vasnprintf (Files): Add lib/float+.h.
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-18  Bruno Haible  <bruno@clisp.org>
34588
34589         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34590
34591 2007-05-18  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34594         for printing 64-bit integers. Needed for mingw.
34595
34596 2007-05-18  Bruno Haible  <bruno@clisp.org>
34597
34598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34599         gl_FUNC_FREXPL_WORKS.
34600         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34601
34602 2007-05-18  Bruno Haible  <bruno@clisp.org>
34603
34604         * modules/frexpl-nolibm-tests: New file.
34605
34606         * modules/frexpl-nolibm: New file.
34607         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34608
34609 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34610
34611         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34612         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34613         GCC 4.2, which otherwise issues a lot of warnings.
34614         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34615         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34616         Likewise.
34617         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34618         * modules/iconv_open (iconv.h): Likewise.
34619         * modules/locale (locale.h): Likewise.
34620         * modules/netinet_in (netinet/in.h): Likewise.
34621         * modules/sys_select (sys_select.h): Likewise.
34622         * modules/sys_socket (sys/socket.h): Likewise.
34623         * modules/sys_stat (sys/stat.h): Likewise.
34624         * modules/sysexits (sysexits.h): Likewise.
34625         * modules/unistd (unistd.h): Likewise.
34626
34627 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34628
34629         * modules/closein-tests (Makefile.am): Distribute
34630         `test-closein.sh'.
34631
34632 2007-05-17  Bruno Haible  <bruno@clisp.org>
34633
34634         * tests/test-printf-posix.output: Renamed from
34635         tests/test-fprintf-posix.out.
34636         * modules/fprintf-posix-tests: Update.
34637         * modules/printf-posix-tests: Update.
34638         * modules/vfprintf-posix-tests: Update.
34639         * modules/vprintf-posix-tests: Update.
34640         * tests/test-fprintf-posix.sh: Update.
34641         * tests/test-printf-posix.sh: Update.
34642         * tests/test-vfprintf-posix.sh: Update.
34643         * tests/test-vprintf-posix.sh: Update.
34644         Reported by Ralf Wildenhues.
34645
34646 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34647
34648         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34649         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34650         GCC 4.2, which otherwise issues a lot of warnings.
34651         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34652         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34653         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34654         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34655         it should no longer be needed.
34656         * lib/string_.h: Likewise.
34657         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34658         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34659         * modules/inttypes (inttypes.h): Likewise.
34660         * modules/math (math.h): Likewise.
34661         * modules/search (search.h): Likewise.
34662         * modules/signal (signal.h): Likewise.
34663         * modules/stdint (stdint.h): Likewise.
34664         * modules/stdio (stdio.h): Likewise.
34665         * modules/stdlib (stdlib.h): Likewise.
34666         * modules/string (string.h): Likewise.
34667         * modules/sys_time (sys/time.h): Likewise.
34668         * modules/time (time.h): Likewise.
34669         * modules/wchar (wchar.h): Likewise.
34670         * modules/wctype (wtype.h): Likewise.
34671
34672 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34673
34674         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34675
34676 2007-05-13  Bruno Haible  <bruno@clisp.org>
34677
34678         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34679         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34680         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34681         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34682         (gl_PREREQ_STRTOK_R): Don't require it here.
34683
34684 2007-05-13  Bruno Haible  <bruno@clisp.org>
34685
34686         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34687         when used in C++ mode.
34688
34689 2007-05-12  Bruno Haible  <bruno@clisp.org>
34690
34691         * lib/linebuffer.h: Tweak doc.
34692         * lib/linebuffer.c: Likewise.
34693
34694 2007-05-12  James Youngman  <jay@gnu.org>
34695
34696         * lib/linebuffer.c (readlinebuffer_delim): New function,
34697         like readlinebuffer, but use a caller-specified delimiter.
34698         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34699         as the delimiter.
34700         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34701
34702 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34703
34704         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34705         * modules/openat (Files): Remove openat-die.c.
34706         (Depends-on): Add openat-die.
34707         * modules/openat-die: New module.
34708
34709 2007-05-06  Bruno Haible  <bruno@clisp.org>
34710
34711         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34712         Update with info about Cygwin.
34713         * doc/functions/fprintf.texi: Update.
34714         * doc/functions/printf.texi: Update.
34715         * doc/functions/snprintf.texi: Update.
34716         * doc/functions/sprintf.texi: Update.
34717         * doc/functions/vfprintf.texi: Update.
34718         * doc/functions/vprintf.texi: Update.
34719         * doc/functions/vsnprintf.texi: Update.
34720         * doc/functions/vsprintf.texi: Update.
34721         Reported by Eric Blake.
34722
34723 2007-05-06  Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34726         padding ourselves for the floating-point directives.
34727         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34730         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34731         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34739         * tests/test-snprintf-posix.h (test_function): Also check the width
34740         and some flags in the %f directive.
34741         * tests/test-sprintf-posix.h (test_function): Likewise.
34742         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34743         * tests/test-vasprintf-posix.c (test_function): Likewise.
34744         * doc/functions/fprintf.texi: Update.
34745         * doc/functions/printf.texi: Update.
34746         * doc/functions/snprintf.texi: Update.
34747         * doc/functions/sprintf.texi: Update.
34748         * doc/functions/vfprintf.texi: Update.
34749         * doc/functions/vprintf.texi: Update.
34750         * doc/functions/vsnprintf.texi: Update.
34751         * doc/functions/vsprintf.texi: Update.
34752
34753 2007-05-06  Bruno Haible  <bruno@clisp.org>
34754
34755         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34756         pass the ' flag character to sprintf or snprintf.
34757         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34760         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34761         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34764         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34765         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34766         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34768         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34769         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34770         flag.
34771         * tests/test-sprintf-posix.h (test_function): Likewise.
34772         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34773         * tests/test-vasprintf-posix.c (test_function): Likewise.
34774         * doc/functions/fprintf.texi: Update.
34775         * doc/functions/printf.texi: Update.
34776         * doc/functions/snprintf.texi: Update.
34777         * doc/functions/sprintf.texi: Update.
34778         * doc/functions/vfprintf.texi: Update.
34779         * doc/functions/vprintf.texi: Update.
34780         * doc/functions/vsnprintf.texi: Update.
34781         * doc/functions/vsprintf.texi: Update.
34782
34783 2007-05-01  Bruno Haible  <bruno@clisp.org>
34784
34785         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34786
34787 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34788
34789         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34790         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34791
34792 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34793
34794         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34795         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34797
34798 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34799
34800         * lib/argp-help.c (struct hol_entry): New member `ord'.
34801         (HOL_ENTRY_PTRCMP): Use ord for comparison
34802         (hol_sort): Initialize ord.
34803
34804 2007-05-01  Bruno Haible  <bruno@clisp.org>
34805
34806         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34807         Reported by Eric Blake.
34808         * doc/gnulib.texi (Function Substitutes): Update.
34809
34810 2007-05-01  Bruno Haible  <bruno@clisp.org>
34811
34812         * doc/functions.texi: Remove file, now redundant through
34813         doc/functions/*.texi.
34814
34815 2007-05-01  Bruno Haible  <bruno@clisp.org>
34816
34817         * modules/argp (Depends-on): Add sleep.
34818
34819 2007-05-01  Bruno Haible  <bruno@clisp.org>
34820
34821         * modules/sleep-tests: New file.
34822         * tests/test-sleep.c: New file.
34823
34824         * modules/sleep: New file.
34825         * lib/sleep.c: New file.
34826         * m4/sleep.m4: New file.
34827         * lib/unistd_.h (sleep): New declaration.
34828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34829         HAVE_SLEEP.
34830         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34831         * doc/functions/sleep.texi: Document the sleep module.
34832
34833 2007-05-01  Bruno Haible  <bruno@clisp.org>
34834
34835         * lib/sigprocmask.h: Remove file.
34836         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34837         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34838         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34839         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34840         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34841         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34842         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34843         HAVE_SIGSET_T as a shell variable.
34844         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34845         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34846         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34847         (Depends-on): Add signal. Remove verify.
34848         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34849         (Include): Mention <signal.h> instead of sigprocmask.h.
34850         * NEWS: Mention the change.
34851         * lib/fatal-signal.c: Don't include sigprocmask.h.
34852
34853 2007-05-01  Bruno Haible  <bruno@clisp.org>
34854
34855         * modules/signal: New file.
34856         * lib/signal_.h: New file.
34857         * m4/signal_h.m4: New file.
34858
34859 2007-05-01  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34862         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34863         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34864         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34865
34866 2007-05-01  Bruno Haible  <bruno@clisp.org>
34867
34868         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34869         configure time.
34870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34871         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34872         * modules/sys_stat (Makefile.am): Substitute their values into
34873         sys/stat.h.
34874
34875 2007-05-01  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34878         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34879         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34880
34881 2007-05-01  Bruno Haible  <bruno@clisp.org>
34882
34883         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34884         'assert' module here.
34885
34886 2007-05-01  Bruno Haible  <bruno@clisp.org>
34887
34888         * doc/functions/*.texi: New files.
34889         * doc/functions/google-ranking.txt: New file.
34890         * doc/gnulib.texi (Function Substitutes): New chapter.
34891         (ctime, inet_ntoa): Remove sections.
34892         * doc/ctime.texi: Remove file.
34893         * doc/inet_ntoa.texi: Remove file.
34894         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34895         dependencies.
34896         (%.info): New rule, specifying a --reference-limit.
34897
34898 2007-05-01  Bruno Haible  <bruno@clisp.org>
34899
34900         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34901
34902 2007-05-01  Bruno Haible  <bruno@clisp.org>
34903
34904         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34905         the portability of 'mkdir' to mingw systems.
34906
34907 2007-05-01  Bruno Haible  <bruno@clisp.org>
34908
34909         * doc/headers/google-ranking.txt: New file.
34910
34911 2007-04-30  Eric Blake  <ebb9@byu.net>
34912
34913         Prefer fseeko to fseek.
34914         * modules/getpass (Depends-on): Add fseeko.
34915         * lib/getpass.c (getpass): Use fseeko, not fseek.
34916
34917 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34918
34919         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34920         assumes the sorting is stable, while most qsort implementations
34921         are not.  Use argument addresses to ensure they never compare as
34922         equal.
34923
34924         * tests/test-argp-2.sh (usage-indent test): Fix output
34925         (func_compare): Restore diff options
34926         * tests/test-argp.c: Restore #include "progname.h"
34927
34928 2007-04-29  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34932         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34934         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34935         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34936         (TESTS, check_PROGRAMS): Add test-snprintf.
34937         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34938         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34939         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34940         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34941         assertions that fail on HP-UX, OSF/1, or IRIX.
34942         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34943
34944 2007-04-29  Bruno Haible  <bruno@clisp.org>
34945
34946         * MODULES.html.sh (posix_functions): Remove 'contents'.
34947
34948 2007-04-29  Karl Berry  <karl@gnu.org>
34949
34950         * config/srclist.txt (gendocs_template_min): new entry.
34951
34952 2007-04-29  Bruno Haible  <bruno@clisp.org>
34953
34954         Work around fpurge bug on BSD systems.
34955         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34956         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34957         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34958         fpurge to rpl_fpurge if the system already has this function.
34959         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34960         the case where the system already has this function. Correct invariants
34961         on BSD systems.
34962         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34963         BSD systems.
34964
34965 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34966
34967         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34968         proposed by Sven Verdoolaege.
34969
34970         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34971         options.
34972         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34973         (usage and help tests): Update
34974
34975 2007-04-29  Bruno Haible  <bruno@clisp.org>
34976
34977         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34978         Print more information in case of failure. Disable a test on BeOS.
34979
34980 2007-04-29  Bruno Haible  <bruno@clisp.org>
34981
34982         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34983         This helps debugging on systems on which no gdb is available.
34984
34985 2007-04-29  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/freading.h: Improve comments.
34988         * lib/fwriting.h: Likewise.
34989         * tests/test-freading.c (main): Don't check freading immediately after
34990         repositioning. Needed for glibc.
34991
34992 2007-04-29  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/freading.c (freading): Trivial simplification.
34995
34996 2007-04-28  Bruno Haible  <bruno@clisp.org>
34997
34998         * tests/test-fwriting.c (main): Also test the interaction between
34999         fflush and fwriting.
35000         * modules/fwriting-tests (Depends-on): Add fflush.
35001
35002         * tests/test-freading.c (main): Also test the interaction between
35003         fflush and freading.
35004         * modules/freading-tests (Depends-on): Add fflush.
35005
35006 2007-04-28  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35009         fseeko and ftello.
35010         Suggested by Eric Blake.
35011
35012 2007-04-28  Jim Meyering  <jim@meyering.net>
35013
35014         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35015         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35016         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35017
35018 2007-04-27  Eric Blake  <ebb9@byu.net>
35019
35020         * doc/headers/assert.texi (assert.h): Document assert module use.
35021
35022 2007-04-27  Bruno Haible  <bruno@clisp.org>
35023
35024         * doc/headers/*.texi: New files.
35025         * doc/gnulib.texi (Header File Substitutes): New chapter.
35026         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35027         dependencies.
35028         (standards.info ,standards.html, standards.dvi): Update dependencies.
35029         (mostlyclean, clean): New targets.
35030
35031 2007-04-27  Bruno Haible  <bruno@clisp.org>
35032
35033         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35034         * modules/sysexits (Files, Makefile.am): Update.
35035
35036         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35037         * modules/sys_socket (Files, Makefile.am): Update.
35038
35039         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35040         * modules/sys_stat (Files, Makefile.am): Update.
35041
35042 2007-04-27  Eric Blake  <ebb9@byu.net>
35043
35044         * lib/freading.h: Improve comments.
35045         * lib/fwriting.h: Likewise.
35046         * lib/fflush.c: Likewise.
35047
35048         Fix closein for mingw.
35049         * modules/closein-tests: Add tests for closein.
35050         * tests/test-closein.c: New file.
35051         * tests/test-closein.sh: Likewise.
35052         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35053         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35054
35055 2007-04-27  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35058         version is < 6.
35059         * lib/math_.h [__DECC]: Likewise.
35060         * lib/stdio_.h [__DECC]: Likewise.
35061         * lib/stdlib_.h [__DECC]: Likewise.
35062         * lib/string_.h [__DECC]: Likewise.
35063         * lib/time_.h [__DECC]: Likewise.
35064         * lib/wchar_.h [__DECC]: Likewise.
35065         * lib/wctype_.h [__DECC]: Likewise.
35066
35067 2007-04-27  Bruno Haible  <bruno@clisp.org>
35068
35069         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35070
35071 2007-04-27  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/fflush.c: Add comments.
35074         * modules/fpurge-tests (Depends-on): Add fflush.
35075         * modules/freadable-tests (Depends-on): Likewise.
35076         * modules/fwritable-tests (Depends-on): Likewise.
35077
35078 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35079
35080         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35081         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35082         Report by Bruno Haible <bruno@clisp.org>.
35083
35084 2007-04-26  Eric Blake  <ebb9@byu.net>
35085
35086         Fix fflush on mingw.
35087         * modules/fflush (Depends-on): Add freading.
35088         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35089         but unread data.
35090
35091 2007-04-26  Eric Blake  <ebb9@byu.net>
35092         and Bruno Haible  <bruno@clisp.org>
35093
35094         Implement freading and fwriting.
35095         * lib/freading.c: New file.
35096         * lib/freading.h: Likewise.
35097         * m4/freading.m4: Likewise.
35098         * modules/freading: Likewise.
35099         * modules/freading-tests: Likewise.
35100         * tests/test-freading.c: Likewise.
35101         * lib/fwriting.c: New file.
35102         * lib/fwriting.h: Likewise.
35103         * m4/fwriting.m4: Likewise.
35104         * modules/fwriting: Likewise.
35105         * modules/fwriting-tests: Likewise.
35106         * tests/test-fwriting.c: Likewise.
35107         * MODULES.html.sh (File stream based Input/Output): Mention them.
35108
35109 2007-04-26  Bruno Haible  <bruno@clisp.org>
35110
35111         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35112         'long' when we assume it.
35113         Suggested by Eric Blake.
35114
35115 2007-04-26  Bruno Haible  <bruno@clisp.org>
35116
35117         Ensure fseeko, ftello are declared on glibc systems.
35118         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35119         * modules/fseeko (configure.ac-early): Likewise.
35120         * modules/ftello (configure.ac-early): Likewise.
35121         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35122         AC_FUNC_FSEEKO for this.
35123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35124         (gl_CHECK_FSEEKO): Remove macro.
35125
35126 2007-04-26  Bruno Haible  <bruno@clisp.org>
35127
35128         * tests/test-fflush.c (main): Also check the ftell result after
35129         fflush and fseek/fseeko.
35130         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35131         file descriptor position cache in the stream.
35132         * lib/fseeko.c (rpl_fseeko): Likewise.
35133
35134 2007-04-26  Bruno Haible  <bruno@clisp.org>
35135
35136         * modules/fflush-tests (Depends-on): Add fseeko.
35137
35138 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35139             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35140
35141         * lib/argz_.h: ensure error_t definition is obtained in same
35142         mechanism system argz.h would have.
35143         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35144         argz facilities are known bad.  Err on the side of caution if
35145         cross-compiling.
35146
35147 2007-04-25  Eric Blake  <ebb9@byu.net>
35148
35149         * lib/fpurge.c (includes): Use stdlib.h for free.
35150         * tests/test-fflush.c (main): Also test fflush-fseeko.
35151
35152 2007-04-25  Bruno Haible  <bruno@clisp.org>
35153
35154         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35155         * lib/fseeko.c: New file.
35156         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35157         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35158         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35159         gl_FUNC_FSEEKO.
35160         (gl_FUNC_FSEEKO): Invoke it.
35161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35162         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35163         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35164
35165 2007-04-25  Bruno Haible  <bruno@clisp.org>
35166
35167         * modules/fflush (Depends-on): Add ftello.
35168
35169 2007-04-25  Bruno Haible  <bruno@clisp.org>
35170
35171         * modules/ftello-tests: New file.
35172         * tests/test-ftello.c: New file.
35173
35174         * modules/ftello: New file.
35175         * m4/ftello.m4: New file.
35176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35177         HAVE_FTELLO.
35178         * lib/stdio_.h (ftello): New declaration.
35179         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35180         HAVE_FTELLO.
35181
35182 2007-04-25  Bruno Haible  <bruno@clisp.org>
35183
35184         * modules/fseeko-tests: New file.
35185         * tests/test-fseeko.c: New file.
35186
35187         * modules/fseeko: New file.
35188         * m4/fseeko.m4: New file.
35189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35190         HAVE_FSEEKO.
35191         * lib/stdio_.h (fseeko): New declaration.
35192         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35193         HAVE_FSEEKO.
35194
35195 2007-04-25  Bruno Haible  <bruno@clisp.org>
35196
35197         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35198
35199 2007-04-25  Bruno Haible  <bruno@clisp.org>
35200
35201         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35202         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35203         * tests/test-unistd.c: Likewise.
35204         * tests/test-fcntl.c: Likewise.
35205
35206 2007-04-23  Eric Blake  <ebb9@byu.net>
35207
35208         * lib/fflush.c: Fix missing include.
35209         Reported by Bruno Haible.
35210
35211 2007-04-23  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35214         Reported by Eric Blake.
35215
35216 2007-04-23  Bruno Haible  <bruno@clisp.org>
35217
35218         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35219
35220 2007-04-23  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35223
35224 2007-04-23  Bruno Haible  <bruno@clisp.org>
35225
35226         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35227         Needed on HP-UX 11.
35228
35229 2007-04-16  Eric Blake  <ebb9@byu.net>
35230
35231         Make fflush rely on fpurge.
35232         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35233         open coding all variants.
35234         * modules/fflush (Depends-on): Add fpurge and unistd.
35235         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35236         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35237
35238         Fix --with-tests compilation on cygwin.
35239         * modules/argmatch-tests (Makefile.am): List gnulib library first
35240         in LDADD.
35241         * modules/argp-tests (Makefile.am): Likewise.
35242         * modules/array-list-tests (Makefile.am): Likewise.
35243         * modules/array-oset-tests (Makefile.am): Likewise.
35244         * modules/avltree-list-tests (Makefile.am): Likewise.
35245         * modules/avltree-oset-tests (Makefile.am): Likewise.
35246         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35247         * modules/carray-list-tests (Makefile.am): Likewise.
35248         * modules/dirname-tests (Makefile.am): Likewise.
35249         * modules/frexp-tests (Makefile.am): Likewise.
35250         * modules/isnanl-tests (Makefile.am): Likewise.
35251         * modules/linked-list-tests (Makefile.am): Likewise.
35252         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35253         * modules/lock-tests (Makefile.am): Likewise.
35254         * modules/rbtree-list-tests (Makefile.am): Likewise.
35255         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35256         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35257         * modules/tls-tests (Makefile.am): Likewise.
35258         * modules/tsearch-tests (Makefile.am): Likewise.
35259         * modules/xvasprintf-tests (Makefile.am): Likewise.
35260
35261         Fix fpurge for cygwin.
35262         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35263         value.
35264         * modules/fpurge-tests (Depends-on): Clean up trash.
35265
35266 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35267
35268         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35269
35270         * m4/autobuild.m4: Re-indent.
35271
35272 2007-04-13  Bruno Haible  <bruno@clisp.org>
35273
35274         * modules/fpurge-tests: New file.
35275         * tests/test-fpurge.c: New file.
35276
35277         * modules/fpurge: New file.
35278         * lib/fpurge.h: New file.
35279         * lib/fpurge.c: New file.
35280         * m4/fpurge.m4: New file.
35281
35282 2007-04-13  Bruno Haible  <bruno@clisp.org>
35283
35284         * modules/fbufmode-tests: New file.
35285         * tests/test-fbufmode.c: New file.
35286
35287         * modules/fbufmode: New file.
35288         * lib/fbufmode.h: New file.
35289         * lib/fbufmode.c: New file.
35290         * m4/fbufmode.m4: New file.
35291
35292 2007-04-13  Bruno Haible  <bruno@clisp.org>
35293
35294         * modules/fwritable-tests: New file.
35295         * tests/test-fwritable.c: New file.
35296
35297         * modules/fwritable: New file.
35298         * lib/fwritable.h: New file.
35299         * lib/fwritable.c: New file.
35300         * m4/fwritable.m4: New file.
35301
35302 2007-04-13  Bruno Haible  <bruno@clisp.org>
35303
35304         * modules/freadable-tests: New file.
35305         * tests/test-freadable.c: New file.
35306
35307         * modules/freadable: New file.
35308         * lib/freadable.h: New file.
35309         * lib/freadable.c: New file.
35310         * m4/freadable.m4: New file.
35311
35312 2007-04-13  Bruno Haible  <bruno@clisp.org>
35313
35314         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35315         MOSTLYCLEANFILES.
35316
35317 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35318
35319         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35320         gzip bootstrap.conf to avoid dragging in i18n machinery.
35321         (gnulib_tool_option): Use it.
35322
35323 2007-04-13  Bruno Haible  <bruno@clisp.org>
35324
35325         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35326         %F directives.
35327         * tests/test-vasprintf-posix.c (test_function): Likewise.
35328         * tests/test-snprintf-posix.h (test_function): Likewise.
35329         * tests/test-sprintf-posix.h (test_function): Likewise.
35330         * tests/test-fprintf-posix.h (test_function): Likewise.
35331         * tests/test-printf-posix.h (test_function): Likewise.
35332         * tests/test-fprintf-posix.out: Likewise.
35333
35334 2007-04-13  Bruno Haible  <bruno@clisp.org>
35335
35336         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35337         * modules/tls-tests (configure.ac): Likewise.
35338         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35339
35340 2007-04-13  Bruno Haible  <bruno@clisp.org>
35341
35342         * lib/tls.c (glthread_tls_get): Fix return type.
35343         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35344
35345 2007-04-12  Eric Blake  <ebb9@byu.net>
35346
35347         * modules/gettime (Depends-on): Remove gettime.
35348         Reported by Dmitry V. Levin.
35349
35350 2007-04-12  Bruno Haible  <bruno@clisp.org>
35351
35352         * modules/fflush (Include): Mention <stdio.h>.
35353         * modules/strtoimax (Include): Mention <inttypes.h>.
35354         * modules/strtoumax (Include): Likewise.
35355
35356 2007-04-12  Eric Blake  <ebb9@byu.net>
35357
35358         * .cvsignore: New file.
35359         * .gitignore: Likewise.
35360
35361 2007-04-12  Bruno Haible  <bruno@clisp.org>
35362
35363         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35364         not before, since $(LDADD) often contains libgnu.a.
35365         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35366         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35367         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35368         Needed on Cygwin.
35369
35370 2007-04-12  Eric Blake  <ebb9@byu.net>
35371
35372         Work around glibc's failure to flush stdin on fclose.
35373         * lib/closein.c (close_stdin): Flush stdin before closing.
35374
35375         Work around glibc's failure to reset seekable stdin on exit.
35376         * modules/closein: New module.
35377         * lib/closein.c: New file.
35378         * lib/closein.h: Likewise.
35379         * m4/closein.m4: Likewise.
35380         * MODULES.html.sh (File stream based Input/Output): Document it.
35381
35382 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35383
35384         * gnulib-tool: Rename generated 'autobuild' script to
35385         'do-autobuild' in --create-megatestdir output.
35386
35387         * doc/gnulib.texi (Build robot for gnulib): Fix.
35388
35389 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35390
35391         * modules/sysexits (Depends-on): Add absolute-header.
35392
35393 2007-04-12  Eric Blake  <ebb9@byu.net>
35394
35395         No need to preserve errno on success.
35396         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35397         Reported by Bruno Haible.
35398
35399 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35400
35401         * MODULES.html.sh (Support for maintaining and releasing
35402         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35403
35404 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35405
35406         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35407
35408 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35409
35410         * modules/autobuild: New module.
35411
35412         * m4/autobuild.m4: New file.
35413
35414 2007-04-11  Bruno Haible  <bruno@clisp.org>
35415
35416         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35417         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35421         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35422         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35424         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35425         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35442         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35443         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35444         Reported by Eric Blake.
35445
35446 2007-04-11  Bruno Haible  <bruno@clisp.org>
35447
35448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35449
35450 2007-04-10  Bruno Haible  <bruno@clisp.org>
35451
35452         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35453         for NaN and Infinity. Needed on FreeBSD 6.1.
35454         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35455         regarding results for "%010a" of Infinity and NaN.
35456         * tests/test-vasprintf-posix.c (test_function): Likewise.
35457         * tests/test-snprintf-posix.h (test_function): Likewise.
35458         * tests/test-sprintf-posix.h (test_function): Likewise.
35459         * tests/test-fprintf-posix.h (test_function): Likewise.
35460         * tests/test-printf-posix.h (test_function): Likewise.
35461         * tests/test-fprintf-posix.out: Likewise.
35462
35463 2007-04-10  Bruno Haible  <bruno@clisp.org>
35464
35465         * modules/locale-tests: New file.
35466         * tests/test-locale.c: New file.
35467
35468         * modules/locale: New file.
35469         * lib/locale_.h: New file.
35470         * m4/locale_h.m4: New file.
35471
35472 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35473             Bruno Haible  <bruno@clisp.org>
35474
35475         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35476         be determined, test for availability of the copysignf, copysign,
35477         copysignl functions.
35478         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35479         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35480         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35481
35482 2007-04-09  Eric Blake  <ebb9@byu.net>
35483
35484         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35485         * modules/stdio (Makefile.am): Support fflush.
35486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35487         * modules/fflush: New file.
35488         * lib/fflush.c: Likewise.
35489         * m4/fflush.m4: Likewise.
35490         * modules/fflush-tests: New test.
35491         * tests/test-fflush.c: Likewise.
35492         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35493
35494 2007-04-06  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35497         (VASNPRINTF): Use signbit for faster determination whether to print a
35498         minus sign.
35499         * modules/vasnprintf (Files): Remove lib/float+.h.
35500         * modules/fprintf-posix (Depends-on): Add signbit.
35501         * modules/snprintf-posix (Depends-on): Likewise.
35502         * modules/sprintf-posix (Depends-on): Likewise.
35503         * modules/vasnprintf-posix (Depends-on): Likewise.
35504         * modules/vasprintf-posix (Depends-on): Likewise.
35505         * modules/vfprintf-posix (Depends-on): Likewise.
35506         * modules/vsnprintf-posix (Depends-on): Likewise.
35507         * modules/vsprintf-posix (Depends-on): Likewise.
35508
35509 2007-04-06  Bruno Haible  <bruno@clisp.org>
35510
35511         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35512         * tests/test-frexpl.c (main): Likewise.
35513         * tests/test-ldexpl.c (main): Likewise.
35514         * modules/frexp-tests (Depends-on): Add signbit.
35515         * modules/frexpl-tests (Depdends-on): Likewise.
35516         * modules/ldexpl-tests (Depdends-on): Likewise.
35517
35518 2007-04-06  Bruno Haible  <bruno@clisp.org>
35519
35520         * modules/signbit-tests: New file.
35521         * tests/test-signbit.c: New file.
35522
35523         * modules/signbit: New file.
35524         * lib/signbitf.c: New file.
35525         * lib/signbitd.c: New file.
35526         * lib/signbitl.c: New file.
35527         * m4/signbit.m4: New file.
35528         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35529         (signbit): New macro.
35530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35531         REPLACE_SIGNBIT.
35532         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35533         REPLACE_FREXPL into math.h.
35534
35535 2007-04-06  Bruno Haible  <bruno@clisp.org>
35536
35537         * modules/isnanf-nolibm-tests: New file.
35538         * tests/test-isnanf.c: New file.
35539
35540         * modules/isnanf-nolibm: New file.
35541         * lib/isnanf.h: New file.
35542         * lib/isnanf.c: New file.
35543         * lib/isnan.c: Consider the USE_FLOAT macro.
35544         * m4/isnanf.m4: New file.
35545
35546 2007-04-06  Bruno Haible  <bruno@clisp.org>
35547
35548         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35549         (Link): New section.
35550
35551         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35552
35553 2007-04-06  Bruno Haible  <bruno@clisp.org>
35554
35555         Assume the 'long double' type.
35556         * m4/longdouble.m4: Remove file.
35557         * config/srclist.txt: Don't mention longdouble.m4.
35558         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35559         * lib/float+.h: Likewise.
35560         * lib/frexp.c: Likewise.
35561         * lib/printf-args.h: Likewise.
35562         * lib/printf-args.c: Likewise.
35563         * lib/printf-frexp.c: Likewise.
35564         * lib/printf-parse.c: Likewise.
35565         * lib/vasnprintf.c: Likewise.
35566         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35567         * m4/intl.m4: Likewise.
35568         * m4/isnanl.m4: Likewise.
35569         * m4/printf.m4: Likewise.
35570         * m4/printf-frexpl.m4: Likewise.
35571         * m4/vasnprintf.m4: Likewise.
35572         * modules/allocsa (Files): Remove m4/longdouble.m4.
35573         * modules/gettext (Files): Likewise.
35574         * modules/relocatable-prog-wrapper (Files): Likewise.
35575         * modules/vasnprintf (Files): Likewise.
35576         * modules/isnanl (Files): Likewise.
35577         (Include): Simplify.
35578         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35579         (Include): Simplify.
35580         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35581         (Include): Simplify.
35582         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35583         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35584         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35585         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35586         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35587         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35588         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35589         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35590         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35591         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35592         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35593         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35594         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35595         * tests/test-isnanl.c: Likewise.
35596         * tests/test-snprintf-posix.h: Likewise.
35597         * tests/test-sprintf-posix.h: Likewise.
35598         * tests/test-vasnprintf-posix.c: Likewise.
35599         * tests/test-vasnprintf-posix2.c: Likewise.
35600         * tests/test-vasprintf-posix.c: Likewise.
35601
35602 2007-04-06  Bruno Haible  <bruno@clisp.org>
35603
35604         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35605         * lib/math_.h [__DECC]: Include the overridden include file through
35606         #include_next, outside the double-inclusion guard.
35607         * lib/stdio_.h [__DECC]: Likewise.
35608         * lib/stdlib_.h [__DECC]: Likewise.
35609         * lib/string_.h [__DECC]: Likewise.
35610         * lib/time_.h [__DECC]: Likewise.
35611         * lib/wchar_.h [__DECC]: Likewise.
35612         * lib/wctype_.h [__DECC]: Likewise.
35613         * lib/inttypes_.h [__DECC]: Likewise.
35614         Reported by Albert Chin <china@thewrittenword.com> in
35615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35616
35617 2007-04-04  Eric Blake  <ebb9@byu.net>
35618
35619         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35620         1.5.x.
35621
35622 2007-04-04  Bruno Haible  <bruno@clisp.org>
35623
35624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35625         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35626
35627 2007-04-04  Bruno Haible  <bruno@clisp.org>
35628
35629         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35630         results for "%010a" of Infinity and NaN.
35631         * tests/test-vasprintf-posix.c (test_function): Likewise.
35632         * tests/test-snprintf-posix.h (test_function): Likewise.
35633         * tests/test-sprintf-posix.h (test_function): Likewise.
35634         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35635         * tests/test-printf-posix.h (test_function): Likewise.
35636         * tests/test-fprintf-posix.out: Update.
35637         Needed for FreeBSD 6.1.
35638
35639 2007-04-04  Bruno Haible  <bruno@clisp.org>
35640
35641         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35642         directly used by the gnulib modules nor by gnulib-tool.
35643
35644 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35645
35646         * DEPENDENCIES: Give overall description of version dependency
35647         desirability.  Use more-typical names for apps.
35648         Add shell, coreutils, diffutils, grep, tar, gzip.
35649
35650 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35651
35652         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35653
35654 2007-04-04  Karl Berry  <karl@gnu.org>
35655
35656         * MODULES.html.sh (func_module): missing '.
35657
35658 2007-04-03  Bruno Haible  <bruno@clisp.org>
35659
35660         * modules/argmatch-tests (Makefile.am): New variable
35661         test_argmatch_LDADD.
35662         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35663         * modules/array-list-tests (Makefile.am): New variable
35664         test_array_list_LDADD.
35665         * modules/array-oset-tests (Makefile.am): New variable
35666         test_array_oset_LDADD.
35667         * modules/avltree-list-tests (Makefile.am): New variable
35668         test_avltree_list_LDADD.
35669         * modules/avltree-oset-tests (Makefile.am): New variable
35670         test_avltree_oset_LDADD.
35671         * modules/avltreehash-list-tests (Makefile.am): New variable
35672         test_avltreehash_list_LDADD.
35673         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35674         test_canonicalize_lgpl_LDADD.
35675         * modules/carray-list-tests (Makefile.am): New variable
35676         test_carray_list_LDADD.
35677         * modules/dirname-tests (Makefile.am): New variable
35678         test_dirname_LDADD.
35679         * modules/linked-list-tests (Makefile.am): New variable
35680         test_linked_list_LDADD.
35681         * modules/linkedhash-list-tests (Makefile.am): New variable
35682         test_linkedhash_list_LDADD.
35683         * modules/rbtree-list-tests (Makefile.am): New variable
35684         test_rbtree_list_LDADD.
35685         * modules/rbtree-oset-tests (Makefile.am): New variable
35686         test_rbtree_oset_LDADD.
35687         * modules/rbtreehash-list-tests (Makefile.am): New variable
35688         test_rbtreehash_list_LDADD.
35689         * modules/xvasprintf-tests (Makefile.am): New variable
35690         test_xvasprintf_LDADD.
35691         Reported by Eric Blake.
35692
35693 2007-04-03  Eric Blake  <ebb9@byu.net>
35694
35695         * DEPENDENCIES: Weaken m4 requirements.
35696
35697 2007-04-03  Bruno Haible  <bruno@clisp.org>
35698
35699         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35700         * modules/isnanl-tests (configure.ac): Likewise.
35701
35702 2007-04-03  Ben Pfaff  <blp@gnu.org>
35703
35704         * modules/iconv_open: Add $(srcdir)/ to source directory
35705         references in Makefile fragments that call gperf, to fix VPATH
35706         builds.
35707
35708 2007-04-03  Bruno Haible  <bruno@clisp.org>
35709
35710         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35711         * lib/ldexpl.c: Undo last change.
35712
35713 2007-04-03  Bruno Haible  <bruno@clisp.org>
35714
35715         * modules/printf-frexpl (Depends-on): Undo last change.
35716         (Files): Add m4/ldexpl.m4.
35717
35718 2007-04-03  Bruno Haible  <bruno@clisp.org>
35719
35720         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35721         * modules/isnanl (Link): New section.
35722
35723         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35724         * modules/frexp (Link): New section.
35725
35726         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35727         * modules/frexpl (Link): New section.
35728
35729         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35730         * modules/ldexpl (Link): New section.
35731
35732 2007-04-03  Bruno Haible  <bruno@clisp.org>
35733
35734         * modules/TEMPLATE-EXTENDED: New file.
35735         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35736
35737 2007-04-03  Bruno Haible  <bruno@clisp.org>
35738
35739         * DEPENDENCIES: New file.
35740         Suggested by Simon Josefsson.
35741
35742 2007-04-03  Bruno Haible  <bruno@clisp.org>
35743
35744         * doc/gnulib.texi: Escape @.
35745
35746 2007-04-03  James Youngman  <jay@gnu.org>
35747         and Paul Eggert  <eggert@cs.ucla.edu>
35748
35749         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35750         birthtime on all systems that have birthtime, not just those which
35751         use st_birthtimensec rather than st_birthtim.  Putting zero in
35752         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35753         that the birth time is not available for files on an NFS mount.
35754
35755 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35756
35757         * modules/memxor: Move back from crypto/, suggested by Bruno.
35758         * modules/crypto/hmac-sha1: Fix memxor dependency.
35759
35760         * modules/crypto/gc: Moved from ../.
35761
35762 2007-04-02  Eric Blake  <ebb9@byu.net>
35763
35764         * lib/ldexpl.c (includes): Avoid libm.
35765
35766         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35767
35768 2007-04-02  Bruno Haible  <bruno@clisp.org>
35769
35770         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35771         on IRIX.
35772
35773 2007-04-02  Bruno Haible  <bruno@clisp.org>
35774
35775         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35776         x86 or x86_64 platforms running MacOS X.
35777         Reported by Ryan Schmidt <@ryandesign.com>.
35778
35779 2007-04-02  Bruno Haible  <bruno@clisp.org>
35780
35781         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35782         i386.
35783
35784 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35785
35786         * modules/crypto/arcfour: Moved from ../.
35787         * modules/crypto/arcfour-tests: Moved from ../.
35788         * modules/crypto/arctwo: Moved from ../.
35789         * modules/crypto/arctwo-tests: Moved from ../.
35790         * modules/crypto/des: Moved from ../.
35791         * modules/crypto/des-tests: Moved from ../.
35792         * modules/crypto/gc-arcfour: Moved from ../.
35793         * modules/crypto/gc-arcfour-tests: Moved from ../.
35794         * modules/crypto/gc-arctwo: Moved from ../.
35795         * modules/crypto/gc-arctwo-tests: Moved from ../.
35796         * modules/crypto/gc-des: Moved from ../.
35797         * modules/crypto/gc-des-tests: Moved from ../.
35798         * modules/crypto/gc-hmac-md5: Moved from ../.
35799         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35800         * modules/crypto/gc-hmac-sha1: Moved from ../.
35801         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35802         * modules/crypto/gc-md2: Moved from ../.
35803         * modules/crypto/gc-md2-tests: Moved from ../.
35804         * modules/crypto/gc-md4: Moved from ../.
35805         * modules/crypto/gc-md4-tests: Moved from ../.
35806         * modules/crypto/gc-md5: Moved from ../.
35807         * modules/crypto/gc-md5-tests: Moved from ../.
35808         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35809         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35810         * modules/crypto/gc-random: Moved from ../.
35811         * modules/crypto/gc-rijndael: Moved from ../.
35812         * modules/crypto/gc-rijndael-tests: Moved from ../.
35813         * modules/crypto/gc-sha1: Moved from ../.
35814         * modules/crypto/gc-sha1-tests: Moved from ../.
35815         * modules/crypto/gc-tests: Moved from ../.
35816         * modules/crypto/hmac-md5: Moved from ../.
35817         * modules/crypto/hmac-md5-tests: Moved from ../.
35818         * modules/crypto/hmac-sha1: Moved from ../.
35819         * modules/crypto/hmac-sha1-tests: Moved from ../.
35820         * modules/crypto/md2: Moved from ../.
35821         * modules/crypto/md2-tests: Moved from ../.
35822         * modules/crypto/md4: Moved from ../.
35823         * modules/crypto/md4-tests: Moved from ../.
35824         * modules/crypto/md5: Moved from ../.
35825         * modules/crypto/md5-tests: Moved from ../.
35826         * modules/crypto/memxor: Moved from ../.
35827         * modules/crypto/rijndael: Moved from ../.
35828         * modules/crypto/rijndael-tests: Moved from ../.
35829         * modules/crypto/sha1: Moved from ../.
35830
35831 2007-03-30  James Youngman  <jay@gnu.org>
35832
35833         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35834         rename() to change the ctime of a file (because ctime is unaffected
35835         by rename on jfs2 on AIX 5.1).
35836         (main): Start by doing cleanup, in case a previous run failed leaving
35837         test files behind.
35838
35839 2007-03-31  Bruno Haible  <bruno@clisp.org>
35840
35841         Support old proprietary implementations of iconv.
35842         * modules/iconv_open: New file.
35843         * lib/iconv_.h: New file.
35844         * m4/iconv_h.m4: New file.
35845         * lib/iconv_open.c: New file.
35846         * lib/iconv_open-aix.gperf: New file.
35847         * lib/iconv_open-hpux.gperf: New file.
35848         * lib/iconv_open-irix.gperf: New file.
35849         * lib/iconv_open-osf.gperf: New file.
35850         * m4/iconv_open.m4: New file.
35851         * modules/linebreak (Depends-on): Add iconv_open.
35852         * modules/striconv (Depends-on): Likewise.
35853         * modules/striconveh (Depends-on): Likewise.
35854         * modules/unicodeio (Depends-on): Likewise.
35855         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35856         (iconv_t)(-1).
35857         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35858         conversion if cd is (iconv_t)(-1).
35859         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35860         is not possible.
35861
35862 2007-03-31  Bruno Haible  <bruno@clisp.org>
35863
35864         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35865         work on Solaris either. Protect also second use of "autodetect_jp".
35866
35867 2007-03-31  Bruno Haible  <bruno@clisp.org>
35868
35869         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35870         the function is not present.
35871
35872 2007-03-31  Bruno Haible  <bruno@clisp.org>
35873
35874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35875         the function is not present.
35876
35877 2007-03-31  Bruno Haible  <bruno@clisp.org>
35878
35879         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35880         a bug in HP-UX iconv_open().
35881
35882 2007-03-31  Bruno Haible  <bruno@clisp.org>
35883
35884         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35885         (Mathematics <math.h>): New section, add fpieee.
35886         (Input/output <stdio.h>): Add fseterr.
35887         (Mathematics <math.h>): New section, add printf-frexp.
35888         (Container data structures): Add sublist.
35889         (Core language properties): Add fpucw, inline.
35890         (Functions for greatest-width integer types <inttypes.h>): Add
35891         imaxabs, imaxdiv, inttypes.
35892         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35893         isnanl-nolibm, ldexp.
35894         (Mathematics <math.h>): New section, add printf-frexpl.
35895         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35896         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35897         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35898         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35899         (Unicode string functions): Add unistr/u*-mbtoucr.
35900         (Java): Add javacomp-script, javaexec-script.
35901         (C#): Add csharpcomp-script, csharpexec-script.
35902         (Support for building libraries and executables): Add havelib,
35903         relocatable-*.
35904         (Support for maintaining and releasing projects): Renamed from
35905         'Support for maintaining and release projects'. Add announce-gen.
35906
35907 2007-03-31  Bruno Haible  <bruno@clisp.org>
35908
35909         * README: Talk primarily about git.
35910         (git and CVS): Renamed from CVS.
35911         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35912         gnulib is available through git.
35913         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35914
35915 2007-03-30  Bruno Haible  <bruno@clisp.org>
35916
35917         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35918         * lib/poll_.h: Likewise.
35919         * lib/stat_.h: Likewise.
35920         * lib/sys_time_.h: Likewise.
35921         * lib/sysexit_.h: Likewise.
35922         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35923         * lib/stdbool_.h: Likewise.
35924         * lib/byteswap_.h: Add double-inclusion guard.
35925
35926 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35927
35928         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35929
35930 2007-03-30  Karl Berry  <karl@gnu.org>
35931
35932         * config/srclist-update: double space after USA in the license
35933         substitution, since that's how it's usually (?) written.
35934
35935 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35936
35937         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35938         reported by Bruno Haible.
35939
35940 2007-03-29  Bruno Haible  <bruno@clisp.org>
35941
35942         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35943         a bug in AIX iconv().
35944
35945 2007-03-29  Bruno Haible  <bruno@clisp.org>
35946
35947         * modules/ldexpl-tests: New file.
35948         * tests/test-ldexpl.c: New file.
35949
35950 2007-03-29  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/ldexpl.c: Include fpucw.h.
35953         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35954         multiplication.
35955         * modules/ldexpl (Depends-on): Add fpucw.
35956
35957 2007-03-29  Bruno Haible  <bruno@clisp.org>
35958
35959         * modules/ldexpl: New file.
35960         * m4/ldexpl.m4: New file.
35961         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35962         set.
35963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35964         REPLACE_LDEXPL.
35965         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35966         REPLACE_LDEXPL.
35967         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35968         gl_FUNC_LDEXPL_WORKS.
35969         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35970         * modules/mathl (Files): Remove lib/ldexpl.c.
35971         (Depends-on): Add ldexpl.
35972
35973 2007-03-29  Bruno Haible  <bruno@clisp.org>
35974
35975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35976
35977 2007-03-29  Bruno Haible  <bruno@clisp.org>
35978
35979         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35980         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35981         and possibly also HP-UX.
35982         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35983         work on AIX, IRIX, HP-UX, OSF/1.
35984         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35985         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35986         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35987         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35988         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35989         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35990
35991 2007-03-29  Bruno Haible  <bruno@clisp.org>
35992
35993         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35994
35995 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35996
35997         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35998         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35999
36000 2007-03-29  Eric Blake  <ebb9@byu.net>
36001
36002         * lib/acl-internal.h: Remove redundant include.
36003         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36004         Cygwin when a file is locked.
36005
36006 2007-03-29  Bruno Haible  <bruno@clisp.org>
36007
36008         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36009         file.
36010         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36011
36012 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36013
36014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36015         try to remove a parent directory if the child couldn't be removed
36016         (except for the first rmdir, which could fail because the child
36017         doesn't exist).  Problem reported by Jeff Blaine in
36018         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36019
36020 2007-03-28  Bruno Haible  <bruno@clisp.org>
36021
36022         * lib/striconveh.c (utf8conv_carefully): New function.
36023         (mem_cd_iconveh_internal): Invoke it.
36024
36025 2007-03-28  Bruno Haible  <bruno@clisp.org>
36026
36027         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36028         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36029         input.
36030         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36031         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36032         unistr/u8-uctomb.
36033
36034 2007-03-28  Bruno Haible  <bruno@clisp.org>
36035
36036         * modules/unistr/u8-mbtoucr: New file.
36037         * lib/unistr/u8-mbtoucr.c: New file.
36038         * modules/unistr/u16-mbtoucr: New file.
36039         * lib/unistr/u16-mbtoucr.c: New file.
36040         * modules/unistr/u16-mbtoucr: New file.
36041         * lib/unistr/u16-mbtoucr.c: New file.
36042         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36043
36044 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36045             Bruno Haible  <bruno@clisp.org>
36046
36047         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36048         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36049         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36050
36051         * m4/stdio_h.m4: Add stubs for vasprintf too.
36052
36053         * modules/stdio: Support vasprintf in sed command.
36054
36055         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36056         vasprintf.h.  Add stdio module indicator.
36057
36058         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36059         vasprintf.h.
36060
36061         * lib/vasprintf.h: File removed.
36062
36063         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36064         * lib/vasprintf.c: Ditto.
36065         * lib/xvasprintf.c: Ditto.
36066         * tests/test-vasprintf-posix.c: Ditto.
36067         * tests/test-vasprintf.c: Ditto.
36068
36069 2007-03-27  Bruno Haible  <bruno@clisp.org>
36070
36071         Make vasnprintf multithread-safe.
36072         * lib/vasnprintf.c (decimal_point_char): New function.
36073         (VASNPRINTF): Use it.
36074         Suggested by Simon Josefsson.
36075
36076 2007-03-27  Eric Blake  <ebb9@byu.net>
36077
36078         Support sub-second birthtime on cygwin.
36079         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36080         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36081         (get_stat_birthtime): Also work with st_birthtim.
36082
36083 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36084
36085         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36086         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36087         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36088         (get_stat_birthtime_ns): Simplify compile-time tests.
36089         (get_stat_birthtime): Change the API to look like
36090         get_stat_mtime etc., except return a negative tv_nsec on error.
36091         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36092         Don't check for "spare" fields.
36093         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36094         or for struct stat.st_birthtime, as these tests aren't used.
36095         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36096
36097 2007-03-27  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/stat-time.h: Include <sys/stat.h>.
36100
36101 2007-03-27  James Youngman  <jay@gnu.org>
36102
36103         * lib/stat-time.h (get_stat_birthtime): New function for
36104           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36105         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36106           and its variants.
36107         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36108         * modules/stat-time-test: New file.
36109         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36110
36111 2007-03-26  Bruno Haible  <bruno@clisp.org>
36112
36113         Better support of signalling NaNs.
36114         * lib/atanl.c: Include isnanl.h.
36115         (atanl): Perform test for NaN at the beginning of the function and
36116         through a call to isnanl.
36117         * lib/cosl.c: Include isnanl.h.
36118         (cosl): Perform test for NaN at the beginning of the function and
36119         through a call to isnanl.
36120         * lib/ldexpl.c: Include isnanl.h.
36121         (ldexpl): Perform test for NaN through a call to isnanl.
36122         * lib/logl.c: Include isnanl.h.
36123         (logl): Perform test for NaN at the beginning of the function and
36124         through a call to isnanl.
36125         * lib/sinl.c: Include isnanl.h.
36126         (sinl): Perform test for NaN at the beginning of the function and
36127         through a call to isnanl.
36128         * lib/sqrtl.c: Include isnanl.h.
36129         (sqrtl): Perform test for NaN at the beginning of the function and
36130         through a call to isnanl.
36131         * lib/tanl.c: Include isnanl.h.
36132         (tanl): Perform test for NaN at the beginning of the function and
36133         through a call to isnanl.
36134         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36135         * modules/mathl (Depends-on): Add isnanl.
36136
36137 2007-03-26  Eric Blake  <ebb9@byu.net>
36138
36139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36140         regression in logic sense of previous patch.
36141
36142 2007-03-26  Bruno Haible  <bruno@clisp.org>
36143
36144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36145         unportable shell command "if ! ...".
36146         Reported by Ralf Wildenhues.
36147
36148 2007-03-25  Bruno Haible  <bruno@clisp.org>
36149
36150         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36151         <sysexits.h> file, and only add EX_CONFIG.
36152         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36153         absolute file name and whether it is sufficient. Substitute also
36154         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36155         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36156         ABSOLUTE_SYSEXITS_H into sysexits.h.
36157
36158 2007-03-25  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36161         hints is NULL.
36162
36163 2007-03-25  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36166         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36167
36168 2007-03-25  Bruno Haible  <bruno@clisp.org>
36169
36170         * lib/vasnprintf.c: Include langinfo.h.
36171         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36172         multithread-safe.
36173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36174         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36182         Reported by Simon Josefsson.
36183
36184 2007-03-25  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36187         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36188         * modules/vasnprintf (Depends-on): Add stdint.
36189
36190 2007-03-25  Bruno Haible  <bruno@clisp.org>
36191
36192         * modules/fpieee: New file.
36193         * m4/fpieee.m4: New file.
36194         * modules/isnan-nolibm (Depends-on): Add fpieee.
36195         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36196         * modules/isnanl (Depends-on): Add fpieee.
36197
36198 2007-03-25  Bruno Haible  <bruno@clisp.org>
36199
36200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36201
36202 2007-03-25  Bruno Haible  <bruno@clisp.org>
36203
36204         Avoid test failures on IRIX 6.5.
36205         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36206         (main): Use it.
36207         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36208         macros.
36209         (main): Use them.
36210
36211 2007-03-25  Bruno Haible  <bruno@clisp.org>
36212
36213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36214         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36215         exists but doesn't work.
36216         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36217         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36219         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36220
36221 2007-03-25  Bruno Haible  <bruno@clisp.org>
36222
36223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36224         returns inf. Needed on IRIX 6.5.
36225
36226 2007-03-25  Bruno Haible  <bruno@clisp.org>
36227
36228         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36229         (main): Use isnanl instead of x != x idiom.
36230         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36231
36232         * tests/test-frexp.c: Include isnan.h.
36233         (main): Use isnan instead of x != x idiom.
36234         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36235
36236 2007-03-25  Bruno Haible  <bruno@clisp.org>
36237
36238         * tests/test-frexp.c (NaN): New function/macro.
36239         (main): Use it instead of 0.0 / 0.0.
36240         * tests/test-isnan.c (NaN): New function/macro.
36241         (main): Use it instead of 0.0 / 0.0.
36242         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36243         (test_function): Use it instead of 0.0 / 0.0.
36244         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36245         (test_function): Use it instead of 0.0 / 0.0.
36246         * tests/test-snprintf-posix.h (NaN): New function/macro.
36247         (test_function): Use it instead of 0.0 / 0.0.
36248         * tests/test-sprintf-posix.h (NaN): New function/macro.
36249         (test_function): Use it instead of 0.0 / 0.0.
36250         * tests/test-fprintf-posix.h (NaN): New function/macro.
36251         (test_function): Use it instead of 0.0 / 0.0.
36252         * tests/test-printf-posix.h (NaN): New function/macro.
36253         (test_function): Use it instead of 0.0 / 0.0.
36254
36255         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36256
36257 2007-03-25  Bruno Haible  <bruno@clisp.org>
36258
36259         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36260
36261 2007-03-25  Bruno Haible  <bruno@clisp.org>
36262
36263         * lib/regexec.c (merge_state_with_log): Make static.
36264
36265 2007-03-25  Bruno Haible  <bruno@clisp.org>
36266
36267         * lib/trigl.c (kernel_rem_pio2): Make static.
36268
36269 2007-03-25  Bruno Haible  <bruno@clisp.org>
36270
36271         * lib/sincosl.c (sincosl_table): Make static.
36272
36273 2007-03-25  Bruno Haible  <bruno@clisp.org>
36274
36275         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36276         if the compiler does not support C99.
36277
36278 2007-03-25  Bruno Haible  <bruno@clisp.org>
36279
36280         * modules/time (Makefile.am): Ensure all rule action lines start with a
36281         tab.
36282
36283 2007-03-24  Bruno Haible  <bruno@clisp.org>
36284
36285         * modules/tsearch-tests: New file.
36286         * tests/test-tsearch.sh: New file.
36287         * tests/test-tsearch.c: New file, mostly copied from glibc.
36288
36289         * modules/search-tests: New file.
36290         * tests/test-search.c: New file.
36291
36292         * modules/search: New file.
36293         * lib/search_.h: New file, incorporating lib/tsearch.h.
36294         * m4/search_h.m4: New file.
36295         * lib/tsearch.h: Remove file.
36296         * lib/tsearch.c: Include search.h instead of tsearch.h.
36297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36298         HAVE_TSEARCH.
36299         * modules/tsearch (Files): Remove lib/tsearch.h.
36300         (Depends-on): Add search.
36301         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36302         (Include): Change tsearch.h into search.h.
36303
36304 2007-03-24  Bruno Haible  <bruno@clisp.org>
36305
36306         * modules/fpucw: New file.
36307         * lib/fpucw.h: New file.
36308         * lib/frexp.c: Include fpucw.h.
36309         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36310         (FUNC): Use them.
36311         * lib/printf-frexp.c: Include fpucw.h.
36312         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36313         (FUNC): Use them.
36314         * lib/vasnprintf.c: Include fpucw.h.
36315         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36316         'long double' calculations.
36317         * tests/test-frexpl.c: Include fpucw.h.
36318         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36319         * tests/test-printf-frexpl.c: Include fpucw.h.
36320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36321         * modules/frexpl (Depends-on): Add fpucw.
36322         * modules/printf-frexpl (Depends-on): Likewise.
36323         * modules/fprintf-posix (Depends-on): Likewise.
36324         * modules/snprintf-posix (Depends-on): Likewise.
36325         * modules/sprintf-posix (Depends-on): Likewise.
36326         * modules/vasnprintf-posix (Depends-on): Likewise.
36327         * modules/vasprintf-posix (Depends-on): Likewise.
36328         * modules/vfprintf-posix (Depends-on): Likewise.
36329         * modules/vsnprintf-posix (Depends-on): Likewise.
36330         * modules/vsprintf-posix (Depends-on): Likewise.
36331         * modules/frexpl-tests (Depends-on): Likewise.
36332         * modules/printf-frexpl-tests (Depends-on): Likewise.
36333
36334 2007-03-24  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/float+.h: New file.
36337         * lib/isnan.c: Include float+.h.
36338         (SIZE): New macro.
36339         (FUNC): Compare only SIZE bytes of the value.
36340         * lib/vasnprintf.c: Include float+.h.
36341         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36342         SIZEOF_LDBL or SIZEOF_DBL bytes.
36343         * modules/isnan-nolibm (Files): Add lib/float+.h.
36344         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36345         * modules/isnanl (Files): Add lib/float+.h.
36346         * modules/vasnprintf (Files): Add lib/float+.h.
36347
36348 2007-03-24  Bruno Haible  <bruno@clisp.org>
36349
36350         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36351         include isnanl-nolibm.h.
36352
36353 2007-03-24  Bruno Haible  <bruno@clisp.org>
36354
36355         * tests/test-read-file.c (main): Don't produce spurious output for
36356         expected situations. Make the test fail if it encountered unexpected
36357         results.
36358
36359 2007-03-24  Bruno Haible  <bruno@clisp.org>
36360
36361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36362         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36363
36364 2007-03-24  Bruno Haible  <bruno@clisp.org>
36365
36366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36367
36368 2007-03-24  Bruno Haible  <bruno@clisp.org>
36369
36370         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36371         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36372
36373         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36374         * modules/utf8-ucs4: Turn into a symbolic link to module
36375         unistr/u8-mbtouc.
36376
36377         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36378         utf8-ucs4-unsafe.
36379         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36380         unistr/u8-mbtouc-unsafe.
36381
36382         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36383         * modules/utf16-ucs4: Turn into a symbolic link to module
36384         unistr/u16-mbtouc.
36385
36386         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36387         utf16-ucs4-unsafe.
36388         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36389         unistr/u16-mbtouc-unsafe.
36390
36391         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36392         * modules/ucs4-utf8: Turn into a symbolic link to module
36393         unistr/u8-ubtomb.
36394
36395         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36396         * modules/ucs4-utf16: Turn into a symbolic link to module
36397         unistr/u16-ubtomb.
36398
36399 2007-03-24  Bruno Haible  <bruno@clisp.org>
36400
36401         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36402         Enable the function only if HAVE_INLINE.
36403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36404         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36405         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36406         Enable the function only if HAVE_INLINE.
36407         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36408         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36409         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36410         Enable the function only if HAVE_INLINE.
36411         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36412         Enable the function only if HAVE_INLINE.
36413         * modules/utf8-ucs4: Update.
36414         * modules/utf8-ucs4-unsafe: Update.
36415         * modules/utf16-ucs4: Update.
36416         * modules/utf16-ucs4-unsafe: Update.
36417         * modules/ucs4-utf8: Update.
36418         * modules/ucs4-utf16: Update.
36419
36420 2007-03-24  Bruno Haible  <bruno@clisp.org>
36421
36422         * lib/utf8-ucs4.h: Remove file.
36423         * lib/utf8-ucs4-unsafe.h: Remove file.
36424         * lib/utf16-ucs4.h: Remove file.
36425         * lib/utf16-ucs4-unsafe.h: Remove file.
36426         * lib/ucs4-utf8.h: Remove file.
36427         * lib/ucs4-utf16.h: Remove file.
36428         * lib/unistr.h: Include their previous contents.
36429         * m4/utf-ucs4.m4: Remove file.
36430         * m4/ucs4-utf.m4: Remove file.
36431         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36432         (Depends-on): Add unistr/base.
36433         (configure.ac): Remove gl_UTF_UCS4.
36434         (Makefile.am): Update.
36435         (Include): Change to unistr.h.
36436         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36437         (Depends-on): Add unistr/base.
36438         (configure.ac): Remove gl_UTF_UCS4.
36439         (Makefile.am): Update.
36440         (Include): Change to unistr.h.
36441         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36442         (Depends-on): Add unistr/base.
36443         (configure.ac): Remove gl_UTF_UCS4.
36444         (Makefile.am): Update.
36445         (Include): Change to unistr.h.
36446         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36447         (Depends-on): Add unistr/base.
36448         (configure.ac): Remove gl_UTF_UCS4.
36449         (Makefile.am): Update.
36450         (Include): Change to unistr.h.
36451         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36452         (Depends-on): Add unistr/base.
36453         (configure.ac): Remove gl_UCS4_UTF.
36454         (Makefile.am): Update.
36455         (Include): Change to unistr.h.
36456         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36457         (Depends-on): Add unistr/base.
36458         (configure.ac): Remove gl_UCS4_UTF.
36459         (Makefile.am): Update.
36460         (Include): Change to unistr.h.
36461         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36462         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36463         utf8-ucs4-unsafe.h.
36464         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36465         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36466         utf16-ucs4-unsafe.h.
36467         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36468         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36469         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36470         * lib/unistr/u8-strchr.c: Likewise.
36471         * lib/unistr/u8-strrchr.c: Likewise.
36472         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36473         * lib/unistr/u16-strchr.c: Likewise.
36474         * lib/unistr/u16-strrchr.c: Likewise.
36475         * lib/striconveh.c: Update.
36476         * lib/linebreak.c: Update.
36477
36478 2007-03-24  Bruno Haible  <bruno@clisp.org>
36479
36480         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36481         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36482
36483 2007-03-22  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36486
36487 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36488
36489         * MODULES.html.sh (File system functions): New module write-any-file.
36490         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36491         * m4/write-any-file.m4: New files.
36492
36493 2007-03-23  Eric Blake  <ebb9@byu.net>
36494
36495         * gnulib-tool: Rearrange space-tab sequences, since some editors
36496         like to eat them.
36497
36498 2007-03-23  Eric Blake  <ebb9@byu.net>
36499
36500         * lib/version-etc.c (version_etc_va): Update license wording to
36501         be more concise.  Recommended by Richard Stallman.
36502
36503 2007-03-22  Bruno Haible  <bruno@clisp.org>
36504
36505         * lib/poll.c (MSG_PEEK): New fallback definition.
36506
36507 2007-03-22  Bruno Haible  <bruno@clisp.org>
36508
36509         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36510         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36511         (main): Update.
36512         Fixes a compilation error on BeOS.
36513
36514 2007-03-22  Bruno Haible  <bruno@clisp.org>
36515
36516         * modules/frexpl-tests: New file.
36517         * tests/test-frexpl.c: New file.
36518
36519         * modules/frexpl: New file.
36520         * m4/frexpl.m4: New file.
36521         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36522         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36524         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36525         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36527
36528 2007-03-22  Bruno Haible  <bruno@clisp.org>
36529
36530         * lib/frexpl.c: Share code with lib/frexp.c.
36531         * modules/mathl (Files): Add lib/frexp.c.
36532         (Depends-on): Add isnanl-nolibm.
36533
36534 2007-03-22  Bruno Haible  <bruno@clisp.org>
36535
36536         * modules/printf-frexp (Files): Add m4/frexp.m4.
36537         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36538         only if the found frexp function actually works.
36539
36540 2007-03-22  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/frexp.c: Remove older implementation that uses divisions.
36543
36544 2007-03-21  Bruno Haible  <bruno@clisp.org>
36545
36546         * modules/frexp-tests: New file.
36547         * tests/test-frexp.c: New file.
36548
36549         * modules/frexp: New file.
36550         * lib/frexp.c: New file.
36551         * m4/frexp.m4: New file.
36552         * lib/math_.h (frexp): New declaration.
36553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36554         REPLACE_FREXP.
36555         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36556
36557 2007-03-21  Bruno Haible  <bruno@clisp.org>
36558
36559         * modules/isnanl-tests: New file.
36560         * tests/test-isnanl.c: New file.
36561
36562         * modules/isnanl: New file.
36563         * lib/isnanl.h: New file.
36564         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36565         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36566         gl_FUNC_ISNANL_WORKS.
36567         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36568         New macros.
36569
36570 2007-03-21  Bruno Haible  <bruno@clisp.org>
36571
36572         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36573         lib/isnanl.h.
36574         (Include): Update.
36575         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36576         * lib/vasnprintf.c: Update.
36577         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36578         tests/test-isnanl.h, remove tests/test-isnanl.c.
36579         (Makefile.am): Update.
36580         * tests/test-isnanl-nolibm.c: New file.
36581         * tests/test-isnanl.h: New file.
36582         * tests/test-isnanl.c: Remove file.
36583
36584 2007-03-21  Jim Meyering  <jim@meyering.net>
36585
36586         When trying to open ".", treat ESTALE like EACCES.
36587         * lib/savewd.c (savewd_save): Resort to forking not just upon
36588         failure with EACCES, but also when errno is ESTALE.
36589
36590 2007-03-20  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36593         Needed on AIX 5.1. Reported by Matthew Woehlke.
36594
36595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36596
36597         Suggestions by Bruno Haible:
36598         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36599         our own.
36600         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36601         * modules/acl (Depends-on): Add gettext.
36602
36603 2007-03-19  Bruno Haible  <bruno@clisp.org>
36604
36605         * modules/iconvme: Remove file.
36606         * lib/iconvme.h: Remove file.
36607         * lib/iconvme.c: Remove file.
36608         * m4/iconvme.m4: Remove file.
36609
36610 2007-03-19  Bruno Haible  <bruno@clisp.org>
36611
36612         * doc/relocatable-maint.texi: Break long shell script line.
36613         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36614
36615 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36616
36617         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36618         handle file_has_acl.
36619         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36620         * lib/acl.c: Move header inclusions and related macro defns into
36621         lib/acl-internal.h.
36622         (S_ISLNK): Remove defn, since that's now done for us.
36623         (file_has_acl): Move to lib/file-has-acl.c.
36624         Call acl_trivial if available.  This is the crucial part of the fix.
36625         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36626         shared within the library.  Rewrite a bit, partly to make it compatible
36627         with the GNU coding style.
36628         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36629         Remove unnecessary double-quotes.
36630         Don't test for acl_to_text; the build will catch that.
36631         Replace acl_entries if it doesn't exist and it is needed.
36632         Check for -lsec and acl_trivial (as used on Solaris 10).
36633         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36634         lib/file-has-acl.c.
36635         (Depends-on): Add sys_stat, for S_ISLNK.
36636
36637 2007-03-19  Ben Pfaff  <blp@gnu.org>
36638
36639         * doc/gnulib.texi: Fix typos.
36640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36641
36642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36643
36644         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36645         If size is zero here, buf must be zero.
36646
36647 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36648
36649         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36650         <bruno@clisp.org>.
36651
36652 2007-03-18  Bruno Haible  <bruno@clisp.org>
36653
36654         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36655         Suggested by Eric Blake.
36656
36657 2007-03-18  Ben Pfaff  <blp@gnu.org>
36658
36659         * doc/relocatable.texi: Recommend using as prefix a directory
36660         that does not exist and will never be created.  Based on
36661         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36662         and others.
36663
36664 2007-03-17  Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/fchownat.c: Include lchown.h.
36667
36668 2007-03-17  Bruno Haible  <bruno@clisp.org>
36669
36670         Fix endless loop when the given allocated size was > INT_MAX.
36671         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36672         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36673         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36674         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36675         * lib/sprintf.c (sprintf): Likewise.
36676
36677 2007-03-17  Bruno Haible  <bruno@clisp.org>
36678
36679         * tests/test-argp-2.sh (func_compare): Output a context diff.
36680
36681 2007-03-17  Bruno Haible  <bruno@clisp.org>
36682
36683         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36684         locale's decimal-point character.
36685
36686 2007-03-17  Bruno Haible  <bruno@clisp.org>
36687
36688         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36689         before comparing it. Needed because on some platforms (e.g. x86) a
36690         'long double' occupies less bytes than sizeof (long double).
36691
36692 2007-03-17  Bruno Haible  <bruno@clisp.org>
36693
36694         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36695         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36696         * tests/test-getaddrinfo.c (simple): Likewise.
36697         * tests/test-read-file.c (main): Likewise.
36698
36699 2007-03-17  Bruno Haible  <bruno@clisp.org>
36700
36701         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36702
36703 2007-03-17  Bruno Haible  <bruno@clisp.org>
36704
36705         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36706         unused variable.
36707
36708 2007-03-17  Bruno Haible  <bruno@clisp.org>
36709
36710         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36711         * tests/test-c-strncasecmp.c: Likewise.
36712
36713 2007-03-17  Bruno Haible  <bruno@clisp.org>
36714
36715         * modules/stdlib (Depends-on): Add unistd.
36716         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36717         Needed for MacOS X 10.3.
36718
36719 2007-03-17  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36722
36723 2007-03-17  Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36726
36727 2007-03-17  Bruno Haible  <bruno@clisp.org>
36728
36729         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36730         to reflect files copied from gnulib (with or without modifications).
36731         Suggested by Jim Meyering.
36732
36733 2007-03-17  Eric Blake  <ebb9@byu.net>
36734
36735         * NEWS: Document stdlib change from 2007-02-18.
36736
36737 2007-03-17  Jim Meyering  <jim@meyering.net>
36738
36739         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36740         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36741         someone uses a name containing shell meta-characters.
36742         Reported by Alfred M. Szmidt.
36743
36744         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36745
36746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36747
36748         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36749         and copy gettext configuration files only if configure.ac contains
36750         a use of AM_GNU_GETTEXT_VERSION.
36751
36752 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36753
36754         * build-aux/bootstrap (gnulib_name): New variable.
36755         (gnulib_tool_options): Use it.
36756
36757 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36758
36759         * tests/test-des.c: Use new namespace.
36760
36761 2007-03-15  Bruno Haible  <bruno@clisp.org>
36762
36763         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36764         Reported by James Youngman <jay@gnu.org>.
36765
36766 2007-03-15  Bruno Haible  <bruno@clisp.org>
36767
36768         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36769         declared prototype. Needed with cc on OSF/1 5.1.
36770
36771 2007-03-15  Bruno Haible  <bruno@clisp.org>
36772
36773         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36774         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36775         (struct gl_list_implementation): Add dispose_fn argument to the
36776         'create_empty', 'create' methods.
36777         (struct gl_list_impl_base): Add field 'dispose_fn'.
36778         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36779         argument.
36780         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36781         dispose_fn argument.
36782         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36783         dispose_fn on the dropped values.
36784         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36785         dispose_fn argument.
36786         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36787         dropped values.
36788         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36789         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36790         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36792         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36793         argument.
36794         (gl_tree_list_free): Call dispose_fn on the dropped values.
36795         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36796         the dropped values.
36797         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36798         Add dispose_fn argument.
36799         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36800         Call dispose_fn on the dropped values.
36801         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36802         Add dispose_fn argument.
36803         (gl_sublist_create): Initialize the 'dispose_fn' field.
36804         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36805         * tests/test-array_list.c (main): Update.
36806         * tests/test-carray_list.c (main): Update.
36807         * tests/test-avltree_list.c (main): Update.
36808         * tests/test-rbtree_list.c (main): Update.
36809         * tests/test-avltreehash_list.c (main): Update.
36810         * tests/test-rbtreehash_list.c (main): Update.
36811         * tests/test-linked_list.c (main): Update.
36812         * tests/test-linkedhash_list.c (main): Update.
36813         * tests/test-array_oset.c (main): Update.
36814
36815 2007-03-15  Bruno Haible  <bruno@clisp.org>
36816
36817         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36818         (gl_oset_create_empty): Add dispose_fn argument.
36819         (struct gl_oset_implementation): Add dispose_fn argument to
36820         'create_empty' method.
36821         (struct gl_oset_impl_base): Add dispose_fn field.
36822         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36823         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36824         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36825         values.
36826         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36827         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36828         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36829         dropped value.
36830         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36831         dropped value.
36832         * tests/test-array_oset.c (main): Update.
36833         * tests/test-avltree_oset.c (main): Update.
36834         * tests/test-rbtree_oset.c (main): Update.
36835         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36836
36837 2007-03-13  Bruno Haible  <bruno@clisp.org>
36838
36839         * tests/test-stdbool.c (i): Update after last patch.
36840
36841 2007-03-12  Bruno Haible  <bruno@clisp.org>
36842
36843         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36844         the iswprint macro. Needed on Solaris 2.5.1.
36845
36846 2007-03-12  Bruno Haible  <bruno@clisp.org>
36847
36848         * tests/test-printf-frexp.c (main): Declare x as volatile.
36849
36850 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36851
36852         * doc/gnulib.texi (Build robot for gnulib): New section.
36853
36854 2007-03-12  Jim Meyering  <jim@meyering.net>
36855
36856         * build-aux/bootstrap: New file.
36857         * build-aux/bootstrap.conf: New file, from coreutils.
36858
36859 2007-03-11  Bruno Haible  <bruno@clisp.org>
36860
36861         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36862
36863 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36864
36865         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36866         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36867         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36868
36869 2007-03-11  Bruno Haible  <bruno@clisp.org>
36870
36871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36872         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36873
36874 2007-03-11  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36877         formula. Needed for SunPRO C 5.0.
36878
36879 2007-03-11  Bruno Haible  <bruno@clisp.org>
36880
36881         * modules/long-options (Depends-on): Add getopt.
36882
36883 2007-03-11  Bruno Haible  <bruno@clisp.org>
36884
36885         * modules/modechange (Depends-on): Add stdbool.
36886
36887 2007-03-11  Bruno Haible  <bruno@clisp.org>
36888
36889         * modules/i-ring (Depends-on): Add stdbool.
36890
36891 2007-03-11  Bruno Haible  <bruno@clisp.org>
36892
36893         * modules/gc-des (Depends-on): Add stdbool.
36894
36895 2007-03-11  Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36898
36899 2007-03-11  Bruno Haible  <bruno@clisp.org>
36900
36901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36902
36903 2007-03-11  Bruno Haible  <bruno@clisp.org>
36904
36905         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36906
36907 2007-03-11  Bruno Haible  <bruno@clisp.org>
36908
36909         * lib/vasnprintf.c (sprintf): Undefine.
36910
36911 2007-03-11  Bruno Haible  <bruno@clisp.org>
36912
36913         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36914         initializers in SunPRO C and Compaq C compilers.
36915
36916 2007-03-11  Bruno Haible  <bruno@clisp.org>
36917
36918         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36919         decrementing code ANSI C compliant.
36920
36921 2007-03-11  Bruno Haible  <bruno@clisp.org>
36922
36923         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36924         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36925
36926 2007-03-11  Bruno Haible  <bruno@clisp.org>
36927
36928         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36929         <stdbool.h> substitute doesn't pass.
36930
36931 2007-03-11  Bruno Haible  <bruno@clisp.org>
36932
36933         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36934
36935 2007-03-11  Bruno Haible  <bruno@clisp.org>
36936
36937         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36938         script, for submission to autobuild.josefsson.org.
36939
36940 2007-03-10  Bruno Haible  <bruno@clisp.org>
36941
36942         * modules/canonicalize-lgpl-tests: New file.
36943         * tests/test-canonicalize-lgpl.sh: New file.
36944         * tests/test-canonicalize-lgpl.c: New file.
36945
36946         * modules/c-strcase-tests: New file.
36947         * tests/test-c-strcase.sh: New file.
36948         * tests/test-c-strcasecmp.c: New file.
36949         * tests/test-c-strncasecmp.c: New file.
36950
36951         * modules/atexit-tests: New file.
36952         * tests/test-atexit.sh: New file.
36953         * tests/test-atexit.c: New file.
36954
36955 2007-03-10  Bruno Haible  <bruno@clisp.org>
36956
36957         * tests/test-binary-io.sh: Use temporary filenames that are not so
36958         likely to clash with those of other tests (in a parallel make).
36959         * tests/test-binary-io.c: Likewise.
36960
36961 2007-03-10  Bruno Haible  <bruno@clisp.org>
36962
36963         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36964         fallback; use #error instead.
36965         Suggested by Simon Josefsson.
36966
36967 2007-03-10  Bruno Haible  <bruno@clisp.org>
36968
36969         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36970         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36971         first and the last.
36972
36973 2007-03-10  Bruno Haible  <bruno@clisp.org>
36974
36975         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36976
36977 2007-03-10  Bruno Haible  <bruno@clisp.org>
36978
36979         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36980         "make distcheck".
36981         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36982         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36983         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36984
36985 2007-03-10  Bruno Haible  <bruno@clisp.org>
36986
36987         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36988         variable.
36989         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36990         variable.
36991
36992 2007-03-09  Eric Blake  <ebb9@byu.net>
36993         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36994
36995         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36996         types are not being provided by gnulib.
36997         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36998         types are supported.
36999
37000 2007-03-10  Bruno Haible  <bruno@clisp.org>
37001
37002         * lib/stdio_.h (__attribute__): New macro.
37003         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37004         vsprintf): Specify __attribute__ __format__ for GCC.
37005         Suggested by Eric Blake.
37006
37007 2007-03-09  Bruno Haible  <bruno@clisp.org>
37008
37009         * modules/printf-posix-tests: New file.
37010         * tests/test-printf-posix.sh: New file.
37011         * tests/test-printf-posix.c: New file.
37012
37013         * modules/printf-posix: New file.
37014         * lib/printf.c: New file.
37015         * m4/printf-posix-rpl.m4: New file.
37016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37017         REPLACE_PRINTF.
37018         * lib/stdio_.h (printf): New declaration.
37019         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37020         ____strfmon____): New macros.
37021         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37022         REPLACE_PRINTF.
37023
37024 2007-03-09  Bruno Haible  <bruno@clisp.org>
37025
37026         * tests/test-vasnprintf-posix2.sh: New file.
37027         * tests/test-vasnprintf-posix2.c: New file.
37028         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37029         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37030         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37031
37032         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37033         a locale dependent decimal point, rather than always '.'.
37034
37035 2007-03-09  Eric Blake  <ebb9@byu.net>
37036
37037         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37038         spite of platforms like Tandem/NSK that define it to -1.
37039
37040 2007-03-08  Bruno Haible  <bruno@clisp.org>
37041
37042         * modules/vprintf-posix-tests: New file.
37043         * tests/test-vprintf-posix.sh: New file.
37044         * tests/test-vprintf-posix.c: New file.
37045         * tests/test-printf-posix.h: New file.
37046
37047         * modules/vprintf-posix: New file.
37048         * lib/vprintf.c: New file.
37049         * m4/vprintf-posix.m4: New file.
37050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37051         REPLACE_VPRINTF.
37052         * lib/stdio_.h (vprintf): New declaration.
37053         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37054         REPLACE_VPRINTF.
37055
37056 2007-03-08  Bruno Haible  <bruno@clisp.org>
37057
37058         * modules/fprintf-posix-tests: New file.
37059         * tests/test-fprintf-posix.sh: New file.
37060         * tests/test-fprintf-posix.c: New file.
37061
37062         * modules/fprintf-posix: New file.
37063         * lib/fprintf.c: New file.
37064         * m4/fprintf-posix.m4: New file.
37065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37066         REPLACE_FPRINTF.
37067         * lib/stdio_.h (fprintf): New declaration.
37068         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37069         REPLACE_FPRINTF.
37070
37071 2007-03-08  Bruno Haible  <bruno@clisp.org>
37072
37073         * modules/vfprintf-posix-tests: New file.
37074         * tests/test-vfprintf-posix.sh: New file.
37075         * tests/test-vfprintf-posix.c: New file.
37076         * tests/test-fprintf-posix.h: New file.
37077         * tests/test-fprintf-posix.out: New file.
37078
37079         * modules/vfprintf-posix: New file.
37080         * lib/vfprintf.c: New file.
37081         * m4/vfprintf-posix.m4: New file.
37082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37083         REPLACE_VFPRINTF.
37084         * lib/stdio_.h (vfprintf): New declaration.
37085         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37086         REPLACE_VFPRINTF.
37087
37088 2007-03-08  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37091
37092 2007-03-08  Bruno Haible  <bruno@clisp.org>
37093
37094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37095         instead of 'expr' invocations.
37096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37101         Suggested by Paul Eggert.
37102
37103 2007-03-08  Bruno Haible  <bruno@clisp.org>
37104
37105         * modules/fseterr-tests: New file.
37106         * tests/test-fseterr.c: New file.
37107
37108         * modules/fseterr: New file.
37109         * lib/fseterr.h: New file.
37110         * lib/fseterr.c: New file.
37111
37112 2007-03-08  Bruno Haible  <bruno@clisp.org>
37113
37114         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37115         * lib/getopt_.h: Likewise.
37116         * lib/mbswidth.h: Likewise.
37117         * lib/setenv.h: Likewise.
37118         * lib/vasnprintf.h: Likewise.
37119         * lib/vasprintf.h: Likewise.
37120         * lib/verror.h: Likewise.
37121         * lib/xsetenv.h: Likewise.
37122         * lib/xvasprintf.h: Likewise.
37123
37124 2007-03-08  Jim Meyering  <jim@meyering.net>
37125
37126         * users.txt: Add parted.
37127
37128         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37129
37130 2007-03-07  Bruno Haible  <bruno@clisp.org>
37131
37132         * m4/printf.m4: Make the shell script snippets copy&pastable.
37133
37134 2007-03-02  Bruno Haible  <bruno@clisp.org>
37135
37136         * lib/netinet_in_.h: New file.
37137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37138         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37139         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37140         (Depends-on): Add absolute-header.
37141         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37142         into netinet/in.h.
37143
37144 2007-03-03  Bruno Haible  <bruno@clisp.org>
37145
37146         * lib/sys_select_.h: New file.
37147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37148         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37149         * modules/sys_select (Files): Add lib/sys_select_.h.
37150         (Depends-on): Add absolute-header.
37151         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37152         into sys/select.h.
37153
37154 2007-03-02  Bruno Haible  <bruno@clisp.org>
37155
37156         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37157         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37158         values.
37159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37160         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37161         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37162         * modules/sys_socket (Depends-on): Add absolute-header.
37163         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37164         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37165         (Include): Remove requirement of inclusion of <sys/types.h>.
37166
37167 2007-03-02  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/byteswap_.h (bswap_32): Fix formula.
37170
37171 2007-03-06  Bruno Haible  <bruno@clisp.org>
37172
37173         * modules/sprintf-posix-tests: New file.
37174         * tests/test-sprintf-posix.c: New file.
37175
37176         * modules/sprintf-posix: New file.
37177         * lib/sprintf.c: New file.
37178         * m4/sprintf-posix.m4: New file.
37179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37180         REPLACE_SPRINTF.
37181         * lib/stdio_.h (sprintf): New declaration.
37182         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37183         REPLACE_SPRINTF.
37184
37185 2007-03-06  Bruno Haible  <bruno@clisp.org>
37186
37187         * modules/vsprintf-posix-tests: New file.
37188         * tests/test-vsprintf-posix.c: New file.
37189         * tests/test-sprintf-posix.h: New file.
37190
37191         * modules/vsprintf-posix: New file.
37192         * lib/vsprintf.c: New file.
37193         * m4/vsprintf-posix.m4: New file.
37194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37195         REPLACE_VSPRINTF.
37196         * lib/stdio_.h (vsprintf): New declaration.
37197         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37198         REPLACE_VSPRINTF.
37199
37200 2007-03-06  Bruno Haible  <bruno@clisp.org>
37201
37202         * modules/vsnprintf (Depend-on): Remove minmax.
37203
37204 2007-03-06  Bruno Haible  <bruno@clisp.org>
37205
37206         * modules/snprintf-posix-tests: New file.
37207         * tests/test-snprintf-posix.c: New file.
37208
37209         * modules/snprintf-posix: New file.
37210         * m4/snprintf-posix.m4: New file.
37211         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37212         gl_FUNC_SNPRINTF.
37213         (gl_FUNC_SNPRINTF): Invoke it.
37214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37215         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37216         is set.
37217         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37218
37219 2007-03-06  Bruno Haible  <bruno@clisp.org>
37220
37221         * modules/vsnprintf-posix-tests: New file.
37222         * tests/test-vsnprintf-posix.c: New file.
37223         * tests/test-snprintf-posix.h: New file.
37224
37225         * modules/vsnprintf-posix: New file.
37226         * m4/vsnprintf-posix.m4: New file.
37227         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37228         gl_FUNC_VSNPRINTF.
37229         (gl_FUNC_VSNPRINTF): Invoke it.
37230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37231         * lib/stdio_.h (vsnprintf): Define as a replacement if
37232         REPLACE_VSNPRINTF is set.
37233         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37234
37235 2007-03-06  Bruno Haible  <bruno@clisp.org>
37236
37237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37239
37240 2007-03-06  Bruno Haible  <bruno@clisp.org>
37241
37242         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37243         (asinl): Declare also if HAVE_DECL_ASINL is set.
37244         (atanl): Declare also if HAVE_DECL_ATANL is set.
37245         (ceill): Declare also if HAVE_DECL_CEILL is set.
37246         (cosl): Declare also if HAVE_DECL_COSL is set.
37247         (expl): Declare also if HAVE_DECL_EXPL is set.
37248         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37249         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37250         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37251         (logl): Declare also if HAVE_DECL_LOGL is set.
37252         (sinl): Declare also if HAVE_DECL_SINL is set.
37253         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37254         (tanl): Declare also if HAVE_DECL_TANL is set.
37255         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37257         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37258         declaration of frexpl, ldexpl.
37259         * modules/printf-frexpl (Depends-on): Add math.
37260         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37261
37262 2007-03-05  Bruno Haible  <bruno@clisp.org>
37263
37264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37265         frexpl and ldexpl are declared.
37266         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37267
37268 2007-03-05  Bruno Haible  <bruno@clisp.org>
37269
37270         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37271         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37272
37273 2007-03-05  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/stdio_.h: Include <stddef.h>.
37276
37277 2007-03-05  Bruno Haible  <bruno@clisp.org>
37278
37279         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37280
37281 2007-03-05  Bruno Haible  <bruno@clisp.org>
37282
37283         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37284         NetBSD 4, from Ralf Wildenhues.
37285
37286 2007-03-04  Bruno Haible  <bruno@clisp.org>
37287
37288         * lib/vasprintf.h: Update #if logic for the case when the functions
37289         exist but are overridden.
37290
37291 2007-03-04  Bruno Haible  <bruno@clisp.org>
37292
37293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37294         implementations: glibc-2.4 and MacOS X 10.3.
37295         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37296         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37297         * tests/test-vasprintf-posix.c (test_function): Likewise.
37298
37299 2007-03-04  Bruno Haible  <bruno@clisp.org>
37300
37301         * modules/vasprintf-posix-tests: New file.
37302         * tests/test-vasprintf-posix.c: New file.
37303
37304         * modules/vasprintf-posix: New file.
37305         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37306         defined.
37307         * m4/vasprintf-posix.m4: New file.
37308         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37309         gl_FUNC_VASPRINTF.
37310         (gl_FUNC_VASPRINTF): Invoke it.
37311         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37312         here.
37313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37314
37315 2007-03-04  Bruno Haible  <bruno@clisp.org>
37316
37317         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37318         REPLACE_GETTIMEOFDAY.
37319         * modules/sys_time (Makefile.am): Likewise.
37320         * m4/sys_time_h.m4: Likewise.
37321         * m4/gettimeofday.m4: Likewise.
37322
37323 2007-03-04  Bruno Haible  <bruno@clisp.org>
37324
37325         * modules/vasnprintf-posix-tests: New file.
37326         * tests/test-vasnprintf-posix.c: New file.
37327
37328         * modules/vasnprintf-posix: New file.
37329         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37330         printf-frexpl.h.
37331         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37332         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37333         REPLACE_VASNPRINTF is defined.
37334         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37335         gl_FUNC_VASNPRINTF.
37336         (gl_FUNC_VASNPRINTF): Invoke it.
37337         * m4/vasnprintf-posix.m4: New file.
37338         * m4/printf.m4: New file.
37339
37340 2007-03-04  Bruno Haible  <bruno@clisp.org>
37341
37342         Compile progreloc.c only if --enable-relocatable is specified.
37343         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37344         if --enable-relocatable was specified.
37345         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37346         lib_SOURCES.
37347
37348 2007-03-04  Jim Meyering  <jim@meyering.net>
37349
37350         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37351         Use it consistently, rather than enumerating errno constants.
37352
37353 2007-03-04  Bruno Haible  <bruno@clisp.org>
37354
37355         * modules/xvasprintf-tests: New file.
37356         * tests/test-xvasprintf.c: New file.
37357
37358         * modules/vasprintf-tests: New file.
37359         * tests/test-vasprintf.c: New file.
37360
37361         * modules/vasnprintf-tests: New file.
37362         * tests/test-vasnprintf.c: New file.
37363
37364         * modules/vsnprintf-tests: New file.
37365         * tests/test-vsnprintf.c: New file.
37366
37367         * modules/snprintf-tests: New file.
37368         * tests/test-snprintf.c: New file.
37369
37370 2007-03-04  Bruno Haible  <bruno@clisp.org>
37371
37372         Compile relocatable.c only if --enable-relocatable is specified.
37373         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37374         gl_RELOCATABLE_LIBRARY.
37375         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37376         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37377         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37378         gl_RELOCATABLE_LIBRARY.
37379         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37380         (Makefile.am): Remove lib_SOURCES.
37381         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37382         gl_RELOCATABLE_LIBRARY.
37383         (Makefile.am): Remove lib_SOURCES.
37384         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37385         always.
37386         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37387         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37388
37389 2007-03-04  Bruno Haible  <bruno@clisp.org>
37390
37391         * modules/argmatch-tests: New file.
37392         * tests/test-argmatch.c: New file.
37393
37394         * tests/test-allocsa.c (main): Halve the number of loop runs.
37395
37396         * modules/alloca-opt-tests: New file.
37397         * tests/test-alloca-opt.c: New file.
37398
37399 2007-03-04  Jim Meyering  <jim@meyering.net>
37400
37401         Work around difference between Linux ACLs and Solaris 10 ZFS.
37402         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37403         for EINVAL.
37404
37405 2007-03-03  Bruno Haible  <bruno@clisp.org>
37406
37407         * modules/relocatable-prog (Depends-on): Add back progreloc's
37408         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37409
37410 2007-03-03  Bruno Haible  <bruno@clisp.org>
37411
37412         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37413         * modules/relocatable-lib: New file.
37414
37415 2007-03-03  Bruno Haible  <bruno@clisp.org>
37416
37417         * modules/relocatable-prog: Renamed from modules/relocatable.
37418         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37419
37420 2007-03-03  Bruno Haible  <bruno@clisp.org>
37421
37422         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37423         m4/relocatable-lib.m4.
37424         (Depends-on): Remove 'relocatable'.
37425         (configure.ac): Add gl_RELOCATABLE_NOP.
37426
37427 2007-03-03  Bruno Haible  <bruno@clisp.org>
37428
37429         * modules/relocatable-prog-wrapper: New file.
37430         * modules/relocatable (Depends-on): Add it. Remove all other
37431         dependencies except progname.
37432         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37433
37434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37435         (gl_FUNC_STRERROR): Nop.
37436         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37437
37438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37439         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37440
37441         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37442         (gl_FUNC_READLINK): Update.
37443
37444         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37445
37446 2007-03-03  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37449         * modules/xreadlink (Depends-on): Add unistd.
37450         * modules/xreadlink-with-size (Depends-on): Likewise.
37451
37452 2007-03-03  Bruno Haible  <bruno@clisp.org>
37453
37454         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37455         extracted from gt_FUNC_SETENV.
37456         (gt_FUNC_SETENV): Remove macro.
37457         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37458         remove gt_FUNC_SETENV.
37459
37460 2007-03-03  Bruno Haible  <bruno@clisp.org>
37461
37462         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37463         ENABLE_RELOCATABLE here.
37464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37465
37466 2007-03-03  Bruno Haible  <bruno@clisp.org>
37467
37468         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37469         * tests/test-rbtreehash_list.c: Include progname.h.
37470         (main): Call set_program_name.
37471
37472         * modules/rbtree-oset-tests (Depends-on): Add progname.
37473         * tests/test-rbtree_oset.c: Include progname.h.
37474         (main): Call set_program_name.
37475
37476         * modules/rbtree-list-tests (Depends-on): Add progname.
37477         * tests/test-rbtree_list.c: Include progname.h.
37478         (main): Call set_program_name.
37479
37480         * modules/linked-list-tests (Depends-on): Add progname.
37481         * tests/test-linked_list.c: Include progname.h.
37482         (main): Call set_program_name.
37483
37484 2007-03-03  Bruno Haible  <bruno@clisp.org>
37485
37486         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37487         All uses of __restrict changed to _Restrict_.
37488         * lib/glob_.h (__restrict): Remove macro.
37489
37490 2007-03-02  Bruno Haible  <bruno@clisp.org>
37491
37492         * modules/gettext (configure.ac): Require gettext infrastructure
37493         from version 0.16.1.
37494
37495 2007-03-02  Bruno Haible  <bruno@clisp.org>
37496
37497         * modules/linkedhash-list-tests (Depends-on): Add progname.
37498         * tests/test-linkedhash_list.c: Include progname.h.
37499         (main): Call set_program_name.
37500
37501         * modules/carray-list-tests (Depends-on): Add progname.
37502         * tests/test-carray_list.c: Include progname.h.
37503         (main): Call set_program_name.
37504
37505         * modules/avltreehash-list-tests (Depends-on): Add progname.
37506         * tests/test-avltreehash_list.c: Include progname.h.
37507         (main): Call set_program_name.
37508
37509         * modules/avltree-oset-tests (Depends-on): Add progname.
37510         * tests/test-avltree_oset.c: Include progname.h.
37511         (main): Call set_program_name.
37512
37513         * modules/avltree-list-tests (Depends-on): Add progname.
37514         * tests/test-avltree_list.c: Include progname.h.
37515         (main): Call set_program_name.
37516
37517         * modules/array-oset-tests (Depends-on): Add progname.
37518         * tests/test-array_oset.c: Include progname.h.
37519         (main): Call set_program_name.
37520
37521         * modules/array-list-tests (Depends-on): Add progname.
37522         * tests/test-array_list.c: Include progname.h.
37523         (main): Call set_program_name.
37524
37525         * modules/argp-tests (Depends-on): Add progname.
37526         * tests/test-argp.c: Include argp.h first. Include progname.h.
37527         (main): Call set_program_name.
37528
37529 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37530
37531         * doc/gnulib-tool.texi (Initial import): Reword description of
37532         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37533         limited effect even if defined after the first system include.
37534
37535 2007-03-01  Bruno Haible  <bruno@clisp.org>
37536
37537         * build-aux/config.libpath: Update to libtool-1.5.22.
37538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37539
37540 2007-03-01  Bruno Haible  <bruno@clisp.org>
37541
37542         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37543         foo_CFLAGS.
37544         Reported by Ralf Wildenhues.
37545
37546 2007-03-01  Bruno Haible  <bruno@clisp.org>
37547
37548         * build-aux/install-reloc: Remove object files left over by some
37549         compilers.
37550         Reported by Ralf Wildenhues.
37551
37552 2007-03-01  Bruno Haible  <bruno@clisp.org>
37553
37554         * build-aux/install-reloc: Break long lines.
37555
37556 2007-03-01  Bruno Haible  <bruno@clisp.org>
37557
37558         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37559         Reported by Ralf Wildenhues.
37560
37561 2007-03-01  Bruno Haible  <bruno@clisp.org>
37562
37563         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37564         include ordering constraints.
37565
37566 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37567
37568         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37570         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37571         as another example.
37572         * lib/time_.h: Fix misspelling.
37573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37574         Require gl_HEADER_TIME_H_DEFAULTS.
37575         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37576         * m4/time_r.m4 (gl_TIME_R): Likewise.
37577         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37578
37579 2007-03-01  Bruno Haible  <bruno@clisp.org>
37580
37581         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37582         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37583
37584 2007-03-01  Jim Meyering  <jim@meyering.net>
37585
37586         * modules/xreadlink (Maintainer): Add my name.
37587         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37588
37589 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37590             Bruno Haible  <bruno@clisp.org>
37591
37592         * build-aux/install-reloc: Compile also c-ctype.c.
37593         * build-aux/relocatable.sh.in: New file.
37594         * doc/relocatable.texi: New file.
37595         * doc/relocatable-maint.texi: New file.
37596         * doc/gnulib.texi: Include relocatable-maint.texi.
37597         * lib/progreloc.c: Include unistd.h unconditionally.
37598         * lib/relocwrapper.c: Include unistd.h unconditionally.
37599         Include c-ctype.h.
37600         (add_dotbin): Use c_tolower.
37601         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37602         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37603         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37604         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37605         to m4/relocatable-lib.m4.
37606         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37607         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37608         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37609         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37610         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37611         * modules/relocatable: New file.
37612         * modules/relocatable-lib: New file.
37613         * modules/relocatable-script: New file.
37614
37615 2007-02-28  Bruno Haible  <bruno@clisp.org>
37616
37617         Import --enable-relocatable infrastructure.
37618         * build-aux/config.libpath: New file, from GNU gettext.
37619         * build-aux/install-reloc: New file, from GNU gettext.
37620         * build-aux/reloc-ldflags: New file, from GNU gettext.
37621         * lib/relocatable.h: New file, from GNU gettext.
37622         * lib/relocatable.c: New file, from GNU gettext.
37623         * lib/relocwrapper.c: New file, from GNU gettext.
37624         * m4/relocatable.m4: New file, from GNU gettext.
37625
37626 2007-02-28  Bruno Haible  <bruno@clisp.org>
37627
37628         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37629
37630         * modules/xreadlink: New file, from GNU gettext with modifications.
37631         * lib/xreadlink.c: New file, from GNU gettext.
37632         * lib/xreadlink.h: Add comments.
37633         (xreadlink): New declaration.
37634
37635         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37636         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37637         lib/xreadlink-with-size.c.
37638         (configure.ac): Remove gl_XREADLINK invocation.
37639         (Makefile.am): Augment lib_SOURCES.
37640         * m4/xreadlink.m4: Remove file.
37641         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37642         (xreadlink_with_size): Renamed from xreadink.
37643         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37644         * modules/canonicalize (Depends-on): Replace xreadlink with
37645         xreadlink-with-size.
37646         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37647
37648 2007-02-25  Jim Meyering  <jim@meyering.net>
37649
37650         * build-aux/announce-gen: When complaining about excess arguments,
37651         list them.
37652
37653 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37654
37655         * README: Document signed integer overflow situation more
37656         accurately.
37657
37658 2007-02-25  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37661         'a' or 'A' conversion.
37662
37663 2007-02-25  Bruno Haible  <bruno@clisp.org>
37664
37665         * modules/filename: Renamed from modules/pathname.
37666         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37667         lib/concatpath.c with lib/concat-filename.c.
37668         (Makefile.am): Update.
37669         (Include): Replace pathname.h with filename.h.
37670         * lib/filename.h: Renamed from lib/pathname.h.
37671         (concatenated_filename): Renamed from concatenated_pathname.
37672         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37673         (concatenated_filename): Renamed from concatenated_pathname.
37674         * lib/findprog.c: Include filename.h instead of pathname.h.
37675         (find_in_path): Update.
37676         * lib/javacomp.c: Include filename.h instead of pathname.h.
37677         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37678         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37679         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37680         is_oldgcj_14_13_usable, is_javac_usable): Update.
37681         * lib/javaexec.c: Include filename.h instead of pathname.h.
37682         (execute_java_class): Update.
37683         * modules/findprog: Update.
37684         * modules/javacomp: Update.
37685         * modules/javaexec: Update.
37686         * MODULES.html.sh (File system functions): Add 'filename', remove
37687         'pathname'.
37688
37689 2007-02-25  Bruno Haible  <bruno@clisp.org>
37690
37691         * modules/printf-frexpl-tests: New file.
37692         * tests/test-printf-frexpl.c: New file.
37693
37694         * modules/printf-frexpl: New file.
37695         * lib/printf-frexpl.h: New file.
37696         * lib/printf-frexpl.c: New file.
37697         * m4/printf-frexpl.m4: New file.
37698
37699 2007-02-25  Bruno Haible  <bruno@clisp.org>
37700
37701         * modules/printf-frexp-tests: New file.
37702         * tests/test-printf-frexp.c: New file.
37703
37704         * modules/printf-frexp: New file.
37705         * lib/printf-frexp.h: New file.
37706         * lib/printf-frexp.c: New file.
37707         * m4/printf-frexp.m4: New file.
37708
37709 2007-02-25  Bruno Haible  <bruno@clisp.org>
37710
37711         Assume automake >= 1.10 for the tests.
37712         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37713         * modules/arctwo-tests: Likewise.
37714         * modules/argp-tests: Likewise.
37715         * modules/avltree-list-tests: Likewise.
37716         * modules/avltree-oset-tests: Likewise.
37717         * modules/avltreehash-list-tests: Likewise.
37718         * modules/carray-list-tests: Likewise.
37719         * modules/crc-tests: Likewise.
37720         * modules/des-tests: Likewise.
37721         * modules/gc-arcfour-tests: Likewise.
37722         * modules/gc-arctwo-tests: Likewise.
37723         * modules/gc-des-tests: Likewise.
37724         * modules/gc-hmac-md5-tests: Likewise.
37725         * modules/gc-hmac-sha1-tests: Likewise.
37726         * modules/gc-md2-tests: Likewise.
37727         * modules/gc-md4-tests: Likewise.
37728         * modules/gc-md5-tests: Likewise.
37729         * modules/gc-pbkdf2-sha1-tests: Likewise.
37730         * modules/gc-rijndael-tests: Likewise.
37731         * modules/gc-sha1-tests: Likewise.
37732         * modules/gc-tests: Likewise.
37733         * modules/getaddrinfo-tests: Likewise.
37734         * modules/hmac-md5-tests: Likewise.
37735         * modules/hmac-sha1-tests: Likewise.
37736         * modules/linked-list-tests: Likewise.
37737         * modules/linkedhash-list-tests: Likewise.
37738         * modules/lock-tests: Likewise.
37739         * modules/md2-tests: Likewise.
37740         * modules/md4-tests: Likewise.
37741         * modules/md5-tests: Likewise.
37742         * modules/rbtree-list-tests: Likewise.
37743         * modules/rbtree-oset-tests: Likewise.
37744         * modules/rbtreehash-list-tests: Likewise.
37745         * modules/read-file-tests: Likewise.
37746         * modules/rijndael-tests: Likewise.
37747         * modules/stdint-tests: Likewise.
37748         * modules/tls-tests: Likewise.
37749
37750 2007-02-24  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37753         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37754         function; instead check whether isnan with a double argument links.
37755         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37756         function; instead check whether isnan with a 'long double' argument
37757         links.
37758         Reported by Eric Blake <ebb9@byu.net>.
37759
37760 2007-02-24  Bruno Haible  <bruno@clisp.org>
37761
37762         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37763         defined.
37764         * lib/isnanl.c: Remove all code. Just include isnan.c.
37765         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37766
37767 2007-02-25  Jim Meyering  <jim@meyering.net>
37768
37769         Avoid conflicting types for 'unsetenv' on FreeBSD.
37770         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37771         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37772         in stdlib.h.
37773
37774 2007-02-24  Bruno Haible  <bruno@clisp.org>
37775
37776         * modules/isnanl-nolibm-tests: New file.
37777         * tests/test-isnanl.c: New file.
37778
37779         * modules/isnanl-nolibm: New file.
37780         * lib/isnanl.h: New file.
37781         * lib/isnanl.c: New file.
37782         * m4/isnanl.m4: New file.
37783
37784 2007-02-24  Bruno Haible  <bruno@clisp.org>
37785
37786         * modules/isnan-nolibm-tests: New file.
37787         * tests/test-isnan.c: New file.
37788
37789         * modules/isnan-nolibm: New file.
37790         * lib/isnan.h: New file.
37791         * lib/isnan.c: New file.
37792         * m4/isnan.m4: New file.
37793
37794 2007-02-24  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37797         assume that an exponent fits in 20 bits.
37798
37799 2007-02-24  Jim Meyering  <jim@meyering.net>
37800
37801         * m4/regex.m4: Update the description of the configure-time option,
37802         --without-included-regex, to state accurately what the defaults are,
37803         and perhaps to give people an idea why using this option is risky.
37804
37805 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37806
37807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37808         loops on small arguments.  This attempts to avoid the problem
37809         Bruno Haible reported for AIX 4.3.2 in
37810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37811
37812 2007-02-23  Bruno Haible  <bruno@clisp.org>
37813
37814         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37815         Needed for help2man.
37816
37817 2007-02-23  Karl Berry  <karl@gnu.org>
37818
37819         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37820         exists, foo.h should be cvs-ignored, not committed.
37821
37822 2007-02-23  Eric Blake  <ebb9@byu.net>
37823
37824         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37825         * lib/stat-time.h (includes): Likewise.
37826         * lib/utimecmp.c (includes): Likewise.
37827         * lib/utimens.h (includes): Likewise.
37828         * lib/getdate.y (includes): Also include "timespec.h" for use
37829         internal to the module.
37830         * modules/utimens (Depends-on): Revert yesterday's patch.
37831         * modules/nanosleep (Depends-on): Add missing dependency.
37832
37833 2007-02-22  Bruno Haible  <bruno@clisp.org>
37834
37835         * lib/glob.c: Don't include getlogin_r.h.
37836
37837 2007-02-22  Jim Meyering  <jim@meyering.net>
37838
37839         * modules/utimens (Depends-on): Add timespec, required for
37840         utimens.h's inclusion of timespec.h.
37841
37842 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37843
37844         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37845         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37846         Schwab in
37847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37848         I'll try to think of a better way to fix the Solaris problem.
37849
37850         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37851         like glibc; on Solaris 10, it fails with errno == EINVAL.
37852         POSIX says the behavior is unspecified if the first argument is NULL,
37853         so play it safe and never pass NULL to the system getcwd.
37854
37855 2007-02-21  Jim Meyering  <jim@meyering.net>
37856
37857         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37858         of gettimeofday.  It would conflict with the one now always
37859         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37860         an IRIX 6.5 build failure.
37861
37862 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37863
37864         Minor fixups to port to Solaris 10 with Sun C 5.8.
37865         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37866         * modules/getcwd (Depends-on): Add dirfd.
37867         * lib/putenv.c (putenv): #undef it.
37868         (rpl_putenv): New decl.
37869         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37870
37871 2007-02-20  Bruno Haible  <bruno@clisp.org>
37872
37873         * modules/stdio-tests: New file.
37874         * tests/test-stdio.c: New file.
37875
37876         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37877         (Depends-on): Add stdio.
37878         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37879         (Include): Use <stdio.h> instead of vsnprintf.h.
37880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37881         HAVE_DECL_VSNPRINTF.
37882         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37883
37884         * modules/snprintf (Files): Remove lib/snprintf.h.
37885         (Depends-on): Add stdio.
37886         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37887         (Include): Use <stdio.h> instead of snprintf.h.
37888         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37889         HAVE_DECL_SNPRINTF.
37890         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37891         * lib/getaddrinfo.c: Likewise.
37892
37893         * modules/stdio: New file.
37894         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37895         * lib/snprintf.h: Remove file.
37896         * lib/vsnprintf.h: Remove file.
37897         * lib/.cppi-disable: Remove snprintf.h.
37898         * m4/stdio_h.m4: New file.
37899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37900
37901 2007-02-20  Jim Meyering  <jim@meyering.net>
37902
37903         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37904         used by e.g., mingw.  From Bruno Haible.
37905
37906 2007-02-19  Bruno Haible  <bruno@clisp.org>
37907
37908         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37909         warnings.
37910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37911
37912 2007-02-19  Bruno Haible  <bruno@clisp.org>
37913
37914         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37915         from mingw users.
37916
37917 2007-02-19  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37920         warnings.
37921         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37922
37923 2007-02-19  Jim Meyering  <jim@meyering.net>
37924
37925         Don't use FD after a successful "fdopendir (fd)".
37926         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37927         Reset it by calling dirfd on the just-obtained DIR*.
37928
37929         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37930         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37931
37932 2007-02-18  Bruno Haible  <bruno@clisp.org>
37933
37934         * lib/readlink.c: Include <unistd.h>.
37935         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37936         HAVE_READLINK.
37937         * modules/readlink (Depends-on): Add unistd.
37938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37939         (Include): Add <unistd.h>.
37940
37941         * lib/getlogin_r.h: Remove file.
37942         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37943         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37944         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37945         HAVE_DECL_GETLOGIN_R.
37946         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37947         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37948         (Include): Use <unistd.h> instead of getlogin_r.h.
37949
37950         * lib/getcwd.h: Remove file.
37951         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37952         * lib/xgetcwd.c: Likewise.
37953         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37954         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37955         * modules/getcwd (Files): Remove lib/getcwd.h.
37956         (Depends-on): Add unistd.
37957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37958         (Include): Use <unistd.h> instad of getcwd.h.
37959
37960         * lib/ftruncate.c: Include <unistd.h> first.
37961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37962         Set HAVE_FTRUNCATE.
37963         * modules/ftruncate (Depends-on): Add unistd.
37964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37965
37966         * lib/fchdir.c: Include <unistd.h> first.
37967         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37969         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37970         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37971         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37972
37973         * lib/dup2.c: Include <unistd.h> first.
37974         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37975         HAVE_DUP2.
37976         * modules/dup2 (Depends-on): Add unistd.
37977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37978
37979         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37980         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37981         REPLACE_CHOWN. Don't define chown as a macro here.
37982         * modules/chown (Depends-on): Add unistd.
37983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37984
37985         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37986         Add definition for GL_LINK_WARNING.
37987         (chown, dup2): New declarations.
37988         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37989         link warning.
37990         (ftruncate): New declaration.
37991         (getcwd): New declaration, taken from old getcwd.h.
37992         (getlogin_r): New declaration, taken from old getlogin_r.h.
37993         (readlink): New declaration.
37994         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37995         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37996         (gl_PREREQ_UNISTD): Remove macro.
37997         (gl_UNISTD_MODULE_INDICATOR): New macro.
37998         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37999         many new variables. Don't set UNISTD_H.
38000         * modules/unistd (Description): Change.
38001         (Depends-on): Add link-warning.
38002         (configure.ac): Update.
38003         (Makefile.am): Create unistd.h always. Substitute many new variables
38004         into it.
38005
38006 2007-02-18  Bruno Haible  <bruno@clisp.org>
38007
38008         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38009         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38010         HAVE_GETSUBOPT.
38011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38012         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38013         * lib/getsubopt.h: Remove file.
38014         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38015         (Depends-on): Add stdlib.
38016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38017         (Includes): Use <stdlib.h> instead of getsubopt.h.
38018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38019         Set HAVE_GETSUBOPT.
38020         * lib/getsubopt.c: Don't include getsubopt.h.
38021
38022 2007-02-18  Bruno Haible  <bruno@clisp.org>
38023
38024         * modules/fchdir (Depends-on): Add dup2.
38025
38026 2007-02-18  Bruno Haible  <bruno@clisp.org>
38027
38028         * lib/stdlib_.h: Handle glibc's special invocation convention
38029         specially.
38030
38031 2007-02-18  Bruno Haible  <bruno@clisp.org>
38032
38033         * modules/stdlib-tests: New file.
38034         * tests/test-stdlib.c: New file.
38035
38036         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38037         (Depends-on): Add stdlib.
38038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38039         (Includes): Use <stdlib.h> instead of mkstemp.h.
38040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38041         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38042         * lib/mkstemp.c: Don't include mkstemp.h.
38043         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38044         * lib/stdlib--.h: Don't include mkstemp.h.
38045
38046         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38047         (Depends-on): Add stdlib.
38048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38049         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38050         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38051         HAVE_MKDTEMP.
38052         * lib/mkdtemp.c: Don't include mkdtemp.h.
38053         * lib/clean-temp.c: Don't include mkdtemp.h.
38054
38055         * modules/exit (Files): Remove lib/exit.h.
38056         (Depends-on): Add stdlib.
38057         (Makefile.am): Remove lib_SOURCES.
38058         (Include): Use <stdlib.h> instead of exit.h.
38059         * lib/argmatch.c: Don't include exit.h.
38060         * lib/execute.c: Likewise.
38061         * lib/pagealign_alloc.c: Likewise.
38062         * lib/pipe.c: Likewise.
38063         * lib/wait-process.c: Likewise.
38064         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38065         * lib/exitfail.c: Likewise.
38066         * lib/savewd.c: Likewise.
38067         * lib/xsetenv.c: Likewise.
38068
38069         * modules/stdlib: New file.
38070         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38071         and extra comments about mkstemp().
38072         * lib/exit.h: Remove file.
38073         * lib/mkdtemp.h: Remove file.
38074         * lib/mkstemp.h: Remove file.
38075         * m4/stdlib_h.m4: New file.
38076         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38077
38078 2007-02-18  Bruno Haible  <bruno@clisp.org>
38079
38080         * modules/math-tests: New file.
38081         * tests/test-math.c: New file.
38082
38083         * modules/math: New file.
38084         * modules/mathl (Files): Remove lib/mathl.h.
38085         (Depends-on): Add math.
38086         (Makefile.am): Don't mention mathl.h.
38087         (Include): Use <math.h> instead of mathl.h.
38088         * lib/math_.h: New file.
38089         * lib/mathl.h: Remove file.
38090         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38091         mathl.h.
38092         * lib/asinl.c: Likewise.
38093         * lib/atanl.c: Likewise.
38094         * lib/ceill.c: Likewise.
38095         * lib/cosl.c: Likewise.
38096         * lib/expl.c: Likewise.
38097         * lib/floorl.c: Likewise.
38098         * lib/frexpl.c: Likewise.
38099         * lib/ldexpl.c: Likewise.
38100         * lib/logl.c: Likewise.
38101         * lib/sincosl.c: Likewise.
38102         * lib/sinl.c: Likewise.
38103         * lib/sqrtl.c: Likewise.
38104         * lib/tanl.c: Likewise.
38105         * lib/trigl.c: Likewise.
38106         * m4/math_h.m4: New file.
38107         * MODULES.html.sh (Mathematics): Add math.
38108
38109 2007-02-17  Bruno Haible  <bruno@clisp.org>
38110
38111         * modules/wctype-tests: New file.
38112         * tests/test-wctype.c: New file.
38113
38114         * modules/wchar-tests: New file.
38115         * tests/test-wchar.c: New file.
38116
38117         * modules/unistd-tests: New file.
38118         * tests/test-unistd.c: New file.
38119
38120         * modules/time-tests: New file.
38121         * tests/test-time.c: New file.
38122
38123         * modules/sysexits-tests: New file.
38124         * tests/test-sysexits.c: New file.
38125
38126         * modules/sys_time-tests: New file.
38127         * tests/test-sys_time.c: New file.
38128
38129         * modules/sys_stat-tests: New file.
38130         * tests/test-sys_stat.c: New file.
38131
38132         * modules/sys_socket-tests: New file.
38133         * tests/test-sys_socket.c: New file.
38134
38135         * modules/sys_select-tests: New file.
38136         * tests/test-sys_select.c: New file.
38137
38138         * modules/string-tests: New file.
38139         * tests/test-string.c: New file.
38140
38141         * modules/stdbool-tests: New file.
38142         * tests/test-stdbool.c: New file.
38143
38144         * modules/netinet_in-tests: New file.
38145         * tests/test-netinet_in.c: New file.
38146
38147         * modules/inttypes-tests: New file.
38148         * tests/test-inttypes.c: New file.
38149
38150         * modules/fcntl-tests: New file.
38151         * tests/test-fcntl.c: New file.
38152
38153         * modules/byteswap-tests: New file.
38154         * tests/test-byteswap.c: New file.
38155
38156         * modules/arpa_inet-tests: New file.
38157         * tests/test-arpa_inet.c: New file.
38158
38159 2007-02-17  Bruno Haible  <bruno@clisp.org>
38160
38161         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38162         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38163         if the corresponding module is not enabled. Emit link warnings if
38164         the function is used nevertheless.
38165         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38166         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38167         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38168         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38169         * modules/inttypes (Depends-on): Add link-warning.
38170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38171         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38172         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38173         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38174         * modules/imaxdiv (configure.ac): Likewise.
38175         * modules/strtoimax (configure.ac): Likewise.
38176         * modules/strtoumax (configure.ac): Likewise.
38177
38178 2007-02-17  Bruno Haible  <bruno@clisp.org>
38179
38180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38181         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38182         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38183         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38184
38185 2007-02-17  Bruno Haible  <bruno@clisp.org>
38186
38187         * modules/link-warning: New file.
38188         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38189         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38190         * modules/string (Depends-on): Add link-warning.
38191         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38192         string.h.
38193         * MODULES.html.sh (Support for building libraries and executables): Add
38194         link-warning.
38195
38196 2007-02-17  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38199         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38200         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38201         long lines.
38202
38203 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38204             Bruno Haible  <bruno@clisp.org>
38205
38206         * modules/tmpfile: New file.
38207         * lib/tmpfile.c: New file.
38208         * m4/tmpfile.m4: New file.
38209         * MODULES.html.sh (func_all_modules): New section "Input/output".
38210
38211 2007-02-15  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38214         (supports_delete_on_close): New function.
38215         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38216
38217 2007-02-14  Bruno Haible  <bruno@clisp.org>
38218
38219         * modules/mbspcasecmp-tests: New file.
38220         * tests/test-mbspcasecmp.sh: New file.
38221         * tests/test-mbspcasecmp.c: New file.
38222
38223         New module mbspcasecmp.
38224         * modules/mbspcasecmp: New file.
38225         * lib/mbspcasecmp.c: New file.
38226         * lib/string_.h (strncasecmp): Change warning message.
38227         (mbspcasecmp): New declaration.
38228         * m4/mbspcasecmp.m4: New file.
38229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38230         GNULIB_MBSPCASECMP.
38231         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38232         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38233
38234 2007-02-14  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/mbsncasecmp-tests: New file.
38237         * tests/test-mbsncasecmp.sh: New file.
38238         * tests/test-mbsncasecmp.c: New file.
38239
38240         New module mbsncasecmp.
38241         * modules/mbsncasecmp: New file.
38242         * lib/mbsncasecmp.c: New file.
38243         * lib/string_.h (mbsncasecmp): New declaration.
38244         * m4/mbsncasecmp.m4: New file.
38245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38246         GNULIB_MBSNCASECMP.
38247         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38248         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38249
38250 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38251
38252         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38253         Verify that it doesn't overlap with our flags.
38254         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38255         do not have the desired effect in multibyte locales; instead, use
38256         mbscasecmp.
38257         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38258         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38259         we don't require GNU fnmatch ourselves (if our users require it, they
38260         should do so explicitly).
38261
38262         Fix regex code so it doesn't rely on strcasecmp.
38263         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38264         Otherwise, include gnulib's langinfo.h.
38265         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38266         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38267         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38268         * modules/regex (FILES): Remove m4/codeset.m4.
38269         (Depends-on): Add localcharset.  Remove strcase.
38270
38271 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38272
38273         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38274         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38275
38276 2007-02-13  Bruno Haible  <bruno@clisp.org>
38277
38278         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38280
38281 2007-02-12  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38284         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38285         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38286         time warning rather than a link error.
38287
38288 2007-02-12  Bruno Haible  <bruno@clisp.org>
38289
38290         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38293
38294 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38295
38296         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38297         args, not 2.
38298
38299 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38300
38301         New module 'time', so that apps can include <time.h> as per
38302         POSIX and GNU instead of separate include files like time_r.h
38303         and timegm.h.  This implementation tries out a simpler approach
38304         for replacing decls in standard include files (as compared to
38305         the string module), somewhat as an experiment.
38306
38307         * config/srclist.txt: Comment out mktime.c for now.
38308         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38309         since it doesn't apply any more.  Use generic wording instead.
38310         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38311         'time'.
38312         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38313         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38314         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38315         Don't include <sys/types.h>; no longer needed since we assume C89.
38316         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38317         * lib/strftime.c: Likewise.
38318         * lib/time_r.c: Likewise.
38319         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38320         * lib/nanosleep.c: Include <time.h> first, to check interface.
38321         * lib/strptime.c: Likewise.
38322         * lib/time_r.c: Likewise.
38323         * lib/timegm.c: Likewise.
38324         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38325         needed.
38326         * lib/timegm.c: Don't include timegm.h; no longer needed.
38327         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38328         time.h now handles any problems in that area.
38329         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38330         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38331         that time.h defines struct timespec.
38332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38333         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38334         handles that.
38335         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38336         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38337         needed.  Set REPLACE_LOCALTIME.
38338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38339         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38340         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38341         nanosleep; time_h.m4 now does that.  Don't require
38342         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38343         module handles this now.
38344         * modules/getdate (Depends-on): Remove timespec.  Add time.
38345         * modules/nanosleep (Depends-on): Likewise.
38346         * modules/stat-time (Depends-on): Likewise.
38347         * modules/nanosleep (Include): Include time.h, not timespec.h.
38348         * modules/strptime (Files): Remove lib/strptime.h.
38349         (Depends-on): Add extensions, time.
38350         (Include): Include time.h, not strptime.h.
38351         * modules/time_r (Files): Remove lib/time_r.h.
38352         (Depends-on): Add time.
38353         (Include): Include time.h, not time_r.h.
38354         * modules/timegm: Likewise.
38355         * modules/timespec (Description): Now does timespec-related decls
38356         of our own, instead of struct timespec itself.
38357         (Depends-on): Add time; remove extensions.
38358         (Maintainer): Add self.
38359         * modules/utimecmp (Depends-on): Add time; remove timespec.
38360         * modules/utimens (Depends-on): Likewise.
38361         * modules/xnanosleep (Depends-on): Likewise.
38362
38363 2007-02-11  Bruno Haible  <bruno@clisp.org>
38364
38365         * lib/c-strstr.c: Include allocsa.h.
38366         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38367         * lib/c-strcasestr.c: Include allocsa.h.
38368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38369         * lib/strcasestr.c: Include allocsa.h.
38370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38371         * lib/mbsstr.c: Include allocsa.h.
38372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38373         allocsa/freesa instead of malloc/free.
38374         * lib/mbscasestr.c: Include allocsa.h.
38375         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38376         allocsa/freesa instead of malloc/free.
38377         * modules/c-strstr (Depends-on): Add allocsa.
38378         * modules/c-strcasestr (Depends-on): Likewise.
38379         * modules/strcasestr (Depends-on): Likewise.
38380         * modules/mbsstr (Depends-on): Likewise.
38381         * modules/mbscasestr (Depends-on): Likewise.
38382
38383 2007-02-11  Bruno Haible  <bruno@clisp.org>
38384
38385         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38386
38387         * modules/mbsspn-tests: New file.
38388         * tests/test-mbsspn.sh: New file.
38389         * tests/test-mbsspn.c: New file.
38390
38391 2007-02-11  Bruno Haible  <bruno@clisp.org>
38392
38393         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38394
38395         * modules/mbspbrk-tests: New file.
38396         * tests/test-mbspbrk.sh: New file.
38397         * tests/test-mbspbrk.c: New file.
38398
38399 2007-02-11  Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38402         unneeded cast.
38403
38404         * modules/mbscspn-tests: New file.
38405         * tests/test-mbscspn.sh: New file.
38406         * tests/test-mbscspn.c: New file.
38407
38408 2007-02-11  Bruno Haible  <bruno@clisp.org>
38409
38410         * modules/mbscasecmp-tests: New file.
38411         * tests/test-mbscasecmp.sh: New file.
38412         * tests/test-mbscasecmp.c: New file.
38413
38414 2007-02-11  Bruno Haible  <bruno@clisp.org>
38415
38416         Ensure O(n) worst-case complexity of mbscasestr.
38417         * lib/mbscasestr.c: Include stdbool.h.
38418         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38419         functions.
38420         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38421         the bookkeeping indicates that it's worth it.
38422         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38423
38424         * modules/mbscasestr-tests: New file.
38425         * tests/test-mbscasestr1.c: New file.
38426         * tests/test-mbscasestr2.sh: New file.
38427         * tests/test-mbscasestr2.c: New file.
38428         * tests/test-mbscasestr3.sh: New file.
38429         * tests/test-mbscasestr3.c: New file.
38430         * tests/test-mbscasestr4.sh: New file.
38431         * tests/test-mbscasestr4.c: New file.
38432         * m4/locale-tr.m4: New file.
38433
38434 2007-02-11  Bruno Haible  <bruno@clisp.org>
38435
38436         Ensure O(n) worst-case complexity of mbsstr.
38437         * lib/mbsstr.c: Include stdbool.h.
38438         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38439         functions.
38440         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38441         bookkeeping indicates that it's worth it.
38442         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38443
38444         * modules/mbsstr-tests: New file.
38445         * tests/test-mbsstr1.c: New file.
38446         * tests/test-mbsstr2.sh: New file.
38447         * tests/test-mbsstr2.c: New file.
38448         * tests/test-mbsstr3.sh: New file.
38449         * tests/test-mbsstr3.c: New file.
38450         * m4/locale-fr.m4: New file.
38451
38452 2007-02-11  Bruno Haible  <bruno@clisp.org>
38453
38454         * lib/mbsrchr.c (mbsrchr): Fix bug.
38455
38456         * modules/mbsrchr-tests: New file.
38457         * tests/test-mbsrchr.sh: New file.
38458         * tests/test-mbsrchr.c: New file.
38459
38460 2007-02-11  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/mbschr.c (mbschr): Fix bug.
38463
38464         * modules/mbschr-tests: New file.
38465         * tests/test-mbschr.sh: New file.
38466         * tests/test-mbschr.c: New file.
38467         * m4/locale-zh.m4: New file.
38468
38469 2007-02-11  Bruno Haible  <bruno@clisp.org>
38470
38471         Support for copying multibyte string iterators.
38472         * lib/mbiter.h: Include <string.h>.
38473         (mbiter_multi_copy): New function.
38474         (mbi_copy): New macro.
38475         * lib/mbuiter.h: Include <string.h>.
38476         (mbuiter_multi_copy): New function.
38477         (mbui_copy): New macro.
38478
38479 2007-02-11  Bruno Haible  <bruno@clisp.org>
38480
38481         New module mbslen.
38482         * modules/mbslen: New file.
38483         * lib/mbslen.c: New file.
38484         * lib/string_.h (mbslen): New declaration.
38485         * m4/mbslen.m4: New file.
38486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38487         GNULIB_MBSLEN.
38488         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38489         * MODULES.html.sh (Internationalization functions): Add mbslen.
38490
38491 2007-02-11  Bruno Haible  <bruno@clisp.org>
38492
38493         Ensure O(n) worst-case complexity of strcasestr substitute.
38494         * lib/strcasestr.c: Include stdbool.h.
38495         (knuth_morris_pratt): New function.
38496         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38497         bookkeeping indicates that it's worth it.
38498         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38499
38500         * modules/strcasestr-tests: New file.
38501         * tests/test-strcasestr.c: New file.
38502
38503 2007-02-11  Bruno Haible  <bruno@clisp.org>
38504
38505         Ensure O(n) worst-case complexity of c_strcasestr.
38506         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38507         (knuth_morris_pratt): New function.
38508         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38509         the bookkeeping indicates that it's worth it.
38510         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38511
38512         * modules/c-strcasestr-tests: New file.
38513         * tests/test-c-strcasestr.c: New file.
38514
38515 2007-02-11  Bruno Haible  <bruno@clisp.org>
38516
38517         Ensure O(n) worst-case complexity of c_strstr.
38518         * lib/c-strstr.c: Include stdbool.h, string.h.
38519         (knuth_morris_pratt): New function.
38520         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38521         bookkeeping indicates that it's worth it.
38522         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38523
38524         * lib/c-strstr.c: Complete rewrite for maintainability.
38525
38526         * modules/c-strstr-tests: New file.
38527         * tests/test-c-strstr.c: New file.
38528
38529 2007-02-11  Bruno Haible  <bruno@clisp.org>
38530
38531         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38532         5.2.1 and earlier, whereby \055 was treated just like the range
38533         delimiter '-'.
38534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38535
38536 2007-02-08  Bruno Haible  <bruno@clisp.org>
38537
38538         * modules/regex (Depends-on): Add stdbool.
38539         Reported by Dalibor Topic <robilad@kaffe.org>.
38540
38541 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38542
38543         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38544         Prefer returning from main to exiting from it.
38545         Remove unnecessary parens after sizeof.
38546
38547 2007-02-05  Bruno Haible  <bruno@clisp.org>
38548
38549         New module mbssep.
38550         * modules/mbssep: New file.
38551         * lib/mbssep.c: New file.
38552         * lib/string_.h (strsep): Add a conditional link warning.
38553         (mbssep): New declaration.
38554         * m4/mbssep.m4: New file.
38555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38556         GNULIB_MBSSEP.
38557         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38558         * MODULES.html.sh (Internationalization functions): Add mbssep.
38559
38560 2007-02-05  Bruno Haible  <bruno@clisp.org>
38561
38562         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38563         Optimize search in case of 1 delimiter.
38564
38565 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38566
38567         * lib/acl.h: Include sys/types.h before sys/acl.h.
38568
38569 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38570
38571         Merge upstream fix for glibc bugzilla #3957:
38572
38573         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38574
38575         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38576         bit for RE_HAT_LISTS_NOT_NEWLINE.
38577         (build_charclass_op): Remove bogus comment.
38578
38579 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38580
38581         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38582
38583 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38584
38585         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38586         * lib/memmem.c [!defined _LIBC]: Include config.h.
38587
38588 2007-02-04  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38591         warning message.
38592
38593 2007-02-04  Bruno Haible  <bruno@clisp.org>
38594
38595         New module mbstok_r.
38596         * modules/mbstok_r: New file.
38597         * lib/mbstok_r.c: New file.
38598         * lib/string_.h (strtok_r): Change argument names to match the
38599         comments. Add a conditional link warning.
38600         (mbstok_r): New declaration.
38601         * m4/mbstok_r.m4: New file.
38602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38603         GNULIB_MBSTOK_R.
38604         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38605         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38606
38607 2007-02-04  Bruno Haible  <bruno@clisp.org>
38608
38609         New module mbsspn.
38610         * modules/mbsspn: New file.
38611         * lib/mbsspn.c: New file.
38612         * lib/string_.h (strspn): Add a conditional link warning.
38613         (mbsspn): New declaration.
38614         * m4/mbsspn.m4: New file.
38615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38616         GNULIB_MBSSPN.
38617         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38618         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38619
38620 2007-02-04  Bruno Haible  <bruno@clisp.org>
38621
38622         New module mbspbrk.
38623         * modules/mbspbrk: New file.
38624         * lib/mbspbrk.c: New file.
38625         * lib/string_.h (strpbrk): Add a conditional link warning.
38626         (mbspbrk): New declaration.
38627         * m4/mbspbrk.m4: New file.
38628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38629         GNULIB_MBSPBRK.
38630         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38631         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38632
38633 2007-02-04  Bruno Haible  <bruno@clisp.org>
38634
38635         New module mbscspn.
38636         * modules/mbscspn: New file.
38637         * lib/mbscspn.c: New file.
38638         * lib/string_.h (strcspn): Add a conditional link warning.
38639         (mbscspn): New declaration.
38640         * m4/mbscspn.m4: New file.
38641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38642         GNULIB_MBSCSPN.
38643         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38644         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38645
38646 2007-02-04  Bruno Haible  <bruno@clisp.org>
38647
38648         New module mbscasestr, reduced goal of strcasestr.
38649         * modules/mbscasestr: New file.
38650         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38651         (mbscasestr): Renamed from strcasestr.
38652         * lib/strcasestr.c: Don't include mbuiter.h.
38653         (strcasestr): Remove support for multibyte locales.
38654         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38655         Change the conditional link warning.
38656         (mbscasestr): New declaration.
38657         * m4/mbscasestr.m4: New file.
38658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38659         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38660         REPLACE_STRCASESTR.
38661         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38663         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38665         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38666         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38667         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38668         (Depends-on): Remove mbuiter.
38669         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38670
38671 2007-02-04  Bruno Haible  <bruno@clisp.org>
38672
38673         Simplify handling of strncasecmp.
38674         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38675         the conditional link warning.
38676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38677         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38679         * modules/strcase (configure.ac): Don't invoke
38680         gl_STRING_MODULE_INDICATOR.
38681         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38682
38683 2007-02-04  Bruno Haible  <bruno@clisp.org>
38684
38685         New module mbscasecmp, reduced goal of strcasecmp.
38686         * modules/mbscasecmp: New file.
38687         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38688         (mbscasecmp): Renamed from strcasecmp.
38689         * lib/strcasecmp.c: Don't include mbuiter.h.
38690         (strcasecmp): Remove support for multibyte locales.
38691         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38692         Change the conditional link warning.
38693         (mbscasecmp): New declaration.
38694         * m4/mbscasecmp.m4: New file.
38695         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38696         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38697         REPLACE_STRCASECMP.
38698         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38700         GNULIB_MBSCASECMP.
38701         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38702         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38703         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38704         (Depends-on): Remove mbuiter.
38705         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38706
38707 2007-02-04  Bruno Haible  <bruno@clisp.org>
38708
38709         New module mbsstr. Remove module strstr.
38710         * modules/mbsstr: New file.
38711         * modules/strstr: Remove file.
38712         * lib/mbsstr.c: Renamed from lib/strstr.c.
38713         (mbsstr): Renamed from strstr.
38714         * lib/string_.h (strstr): Remove declaration. Change the conditional
38715         link warning.
38716         (mbsstr): New declaration.
38717         * m4/mbsstr.m4: New file.
38718         * m4/strstr.m4: Remove file.
38719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38720         REPLACE_STRSTR.
38721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38722         Don't initialize GNULIB_STRSTR.
38723         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38724         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38725         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38726         (Support for systems lacking ANSI C 89): Remove strstr.
38727
38728 2007-02-04  Bruno Haible  <bruno@clisp.org>
38729
38730         New module mbsrchr.
38731         * modules/mbsrchr: New file.
38732         * lib/mbsrchr.c: New file.
38733         * lib/string_.h (strrchr): Add a conditional link warning.
38734         (mbsrchr): New declaration.
38735         * m4/mbsrchr.m4: New file.
38736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38737         GNULIB_MBSRCHR.
38738         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38739         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38740
38741 2007-02-04  Bruno Haible  <bruno@clisp.org>
38742
38743         New module mbschr.
38744         * modules/mbschr: New file.
38745         * lib/mbschr.c: New file.
38746         * lib/string_.h (strchr): Add a conditional link warning.
38747         (mbschr): New declaration.
38748         * m4/mbschr.m4: New file.
38749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38750         GNULIB_MBSCHR.
38751         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38752         * MODULES.html.sh (Internationalization functions): Add mbschr.
38753
38754 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38755
38756         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38757
38758         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38759
38760 2007-02-04  Bruno Haible  <bruno@clisp.org>
38761
38762         New module description section 'configure.ac-early'.
38763         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38764         (func_get_autoconf_early_snippet): New function.
38765         (func_import, func_create_testdir): Use it. Remove special cases for
38766         modules 'extensions' and 'lock'.
38767         * modules/extensions (configure.ac-early): Require
38768         gl_USE_SYSTEM_EXTENSIONS.
38769         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38770
38771 2007-02-04  Bruno Haible  <bruno@clisp.org>
38772
38773         Make use of gcj-4.3's -fsource and -ftarget option.
38774         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38775         and if so try the options -fsource and -ftarget.
38776         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38777         source_version, ftarget_option, target_version arguments.
38778         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38779         (is_envjavac_oldgcj_14_14_usable): Renamed from
38780         is_envjavac_gcj_14_14_usable.
38781         (is_envjavac_oldgcj_14_13_usable): Renamed from
38782         is_envjavac_gcj_14_13_usable.
38783         (is_gcj_present): Update.
38784         (is_gcj_43, is_gcj43_usable): New functions.
38785         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38786         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38787         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38788         try the options -fsource and -ftarget.
38789
38790 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38791
38792         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38793         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38794         larger value.
38795
38796 2007-02-03  Jim Meyering  <jim@meyering.net>
38797
38798         Give tools a better chance to allocate space for very large buffers.
38799         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38800
38801         Make pwd and readlink work also when run with an unreadable parent dir
38802         on systems with openat support.
38803         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38804         provided getcwd function, even when we have openat support.
38805         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38806
38807 2007-02-02  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38811         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38812         portability problems if one of these functions is only used on specific
38813         platforms.
38814         Reported by Paul Eggert.
38815
38816 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38817
38818         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38819         is causing more trouble than it's curing.
38820         * lib/regex_internal.h (__mempcpy): Remove.
38821         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38822         (and make the code a tad smaller to boot).
38823         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38824
38825 2007-02-02  Jim Meyering  <jim@meyering.net>
38826
38827         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38828         section, not in the Makefile.am: one.
38829
38830 2007-02-02  Eric Blake  <ebb9@byu.net>
38831
38832         * lib/strchrnul.c: Always include config.h first.
38833
38834         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38835         gnulib strstr is not necessary here.
38836
38837 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38838
38839         * m4/socklen.m4: Fix typo.
38840
38841 2007-02-02  Eric Blake  <ebb9@byu.net>
38842
38843         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38844         * modules/netinet_in (Makefile.am): Likewise.
38845
38846 2007-02-01  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/string_.h (GL_LINK_WARNING): New macro.
38849         (strcasecmp, strstr, strcasestr): If provided by the system,
38850         conditionally define as a macro that leads to a warning instead of to
38851         an error.
38852         (strncasecmp): Conditionally define as a macro that leads to a warning.
38853
38854 2007-02-01  Karl Berry  <karl@gnu.org>
38855
38856         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38857
38858 2007-02-01  Bruno Haible  <bruno@clisp.org>
38859
38860         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38861         renamings.
38862
38863 2007-02-01  Eric Blake  <ebb9@byu.net>
38864
38865         * modules/regex (Depends-on): Revert dependence on mempcpy.
38866         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38867         module's definition of mempcpy.
38868         Reported by Paul Eggert.
38869
38870 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38871
38872         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38873         the symbol XYZ before redefining it.  This fixes a problem with
38874         programs that don't use XYZ, when compiled on systems that define
38875         XYZ to something else.
38876
38877 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38878
38879         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38880         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38881         writeable to group or other and (2) is intended to have a special
38882         mode bit that is set or cleared.  In such a case, the directory
38883         should be neither group- nor other-writeable until the special
38884         mode bits are right.
38885
38886 2007-01-31  Eric Blake  <ebb9@byu.net>
38887
38888         * modules/mountlist (Depends-on): Add strstr.
38889
38890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38891         bug.
38892         * modules/string (Makefile.am): Remove redundant replacement.
38893         * modules/regex (Depends-on): Add mempcpy.
38894
38895 2007-01-31  Bruno Haible  <bruno@clisp.org>
38896
38897         New module description field 'Link'.
38898         * gnulib-tool (func_usage): Document --extract-link-directive.
38899         (sed_extract_prog): Recognize 'Link' directive.
38900         (func_get_link_directive): New function.
38901         (func_import): Show summary of link directives.
38902         Handle --extract-link-directive option.
38903         * modules/acl (Link): New section.
38904         * modules/clock-time (Link): New section.
38905         * modules/euidaccess (Link): New section.
38906         * modules/gettext (Link): New section.
38907         * modules/iconv (Link): New section.
38908         * modules/lock (Link): New section.
38909         * modules/nanosleep (Link): New section.
38910         * modules/readline (Link): New section.
38911
38912 2007-01-27  Bruno Haible  <bruno@clisp.org>
38913
38914         Enforce the use of gnulib modules for unportable <string.h> functions.
38915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38916         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38917         (gl_HEADER_STRING_H_BODY): Require it.
38918         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38919         the symbol XYZ to one that gives a link error.
38920         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38921         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38922         * modules/mempcpy (configure.ac): Likewise.
38923         * modules/memrchr (configure.ac): Likewise.
38924         * modules/stpcpy (configure.ac): Likewise.
38925         * modules/stpncpy (configure.ac): Likewise.
38926         * modules/strcase (configure.ac): Likewise.
38927         * modules/strcasestr (configure.ac): Likewise.
38928         * modules/strchrnul (configure.ac): Likewise.
38929         * modules/strdup (configure.ac): Likewise.
38930         * modules/strndup (configure.ac): Likewise.
38931         * modules/strnlen (configure.ac): Likewise.
38932         * modules/strpbrk (configure.ac): Likewise.
38933         * modules/strsep (configure.ac): Likewise.
38934         * modules/strstr (configure.ac): Likewise.
38935         * modules/strtok_r (configure.ac): Likewise.
38936
38937 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38938
38939         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38940
38941 2007-01-30  Jim Meyering  <jim@meyering.net>
38942
38943         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38944
38945 2007-01-29  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38948         * lib/execute.c: Likewise.
38949         * lib/pipe.c: Likewise.
38950         * lib/printf-args.h: Likewise.
38951         * lib/printf-args.c: Likewise.
38952         * lib/printf-parse.c: Likewise.
38953         * lib/vasnprintf.c: Likewise.
38954
38955 2007-01-29  Eric Blake  <ebb9@byu.net>
38956
38957         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38958         declaration.
38959
38960 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38961
38962         * lib/strptime.h (strptime): Use 'restrict' for args where
38963         POSIX requires this.
38964         * lib/strptime.c (strptime): Likewise.
38965         Change license notice from LGPL to GPL, since gnulib-tool will
38966         change this as needed.
38967         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38968         defined.
38969         Include "strptime.h" first, to check interface.
38970         Do not #undef _LIBC and _NL_CURRENT.
38971         Do not include <stdlib.h>; no longer needed.
38972         Include "time_r.h" and declare ptime_locale_status
38973         only if _LIBC is not defined.
38974         (__P): Remove unused macro.
38975         (match_string): Bring back glibc version, but use it only if _LIBC
38976         is defined.
38977         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38978         Remove unnecessary assertion and abort() call.
38979         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38980         * m4/strptime.m4: Fix serial number comment.
38981         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38982         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38983         (Depends-on): Add time_r.
38984
38985 2007-01-29  Bruno Haible  <bruno@clisp.org>
38986
38987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38988         strptime.
38989         * modules/strptime (Depends-on): Add stdbool.
38990         * lib/strptime.h: Include <time.h> always. Add comments.
38991
38992 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38993
38994         * modules/strptime: New file.
38995         * lib/strptime.h: New file.
38996         * lib/strptime.c: New file.
38997         * m4/strptime.m4: New file.
38998
38999 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39000
39001         * MODULES.html.sh: New module mpsort.
39002         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39003
39004         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39005         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39007         All uses changed.
39008         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39009         All uses changed.
39010         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39011         to _Restrict_.
39012         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39013         the parameter matches the prototype.
39014
39015 2007-01-28  Jim Meyering  <jim@meyering.net>
39016
39017         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39018         sys/time.h here, reverting that part of the previous patch:
39019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39020
39021 2007-01-28  Bruno Haible  <bruno@clisp.org>
39022
39023         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39024         value of $(SYS_TIME_H).
39025         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39026         remove it conditionally, too. [added by Jim Meyering]
39027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39030         GETTIMEOFDAY_REPLACEMENT to 1.
39031
39032 2007-01-28  Bruno Haible  <bruno@clisp.org>
39033
39034         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39035         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39037         Set UNISTD_H instead of UNISTD_H2.
39038         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39039
39040 2007-01-28  Bruno Haible  <bruno@clisp.org>
39041
39042         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39043         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39044
39045 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39046
39047         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39048         (func_create_testdir): Ensure C locale for `grep' and `tr'
39049         character ranges.
39050         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39051         ACLOCAL_AMFLAGS parsing state machine.
39052
39053 2007-01-27  Bruno Haible  <bruno@clisp.org>
39054
39055         * modules/unistr/base: Update.
39056
39057 2007-01-27  Bruno Haible  <bruno@clisp.org>
39058
39059         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39060         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39061         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39062         modules/unistr/u32-mbtouc.
39063         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39064         * lib/unistr.h: Update.
39065         * lib/linebreak.c: Update.
39066         * modules/unistr/u32-mbtouc: Renamed from
39067         modules/unistr/u32-mbtouc-safe.
39068         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39069         * lib/unistr.h: Update.
39070         * lib/unistr/u32-to-u8.c: Update.
39071         * lib/unistr/u32-to-u16.c: Update.
39072
39073 2007-01-27  Bruno Haible  <bruno@clisp.org>
39074
39075         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39076         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39077         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39078         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39079         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39080         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39081         modules/unistr/u16-mbtouc.
39082         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39083         * lib/unistr.h: Update.
39084         * lib/linebreak.c: Update.
39085         * modules/linebreak: Update.
39086         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39087         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39088         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39089         * modules/unistr/u16-mbtouc: Renamed from
39090         modules/unistr/u16-mbtouc-safe.
39091         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39092         * lib/unistr.h: Update.
39093         * lib/unistr/u16-to-u8.c: Update.
39094         * modules/unistr/u16-to-u8: Update.
39095         * lib/unistr/u16-to-u32.c: Update.
39096         * modules/unistr/u16-to-u32: Update.
39097
39098 2007-01-27  Bruno Haible  <bruno@clisp.org>
39099
39100         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39101         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39102         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39103         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39104         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39105         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39106         modules/unistr/u8-mbtouc.
39107         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39108         * lib/unistr.h: Update.
39109         * lib/striconveh.c: Update.
39110         * modules/striconveh: Update.
39111         * lib/linebreak.c: Update.
39112         * modules/linebreak: Update.
39113         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39114         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39115         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39116         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39117         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39118         * lib/unistr.h: Update.
39119         * lib/striconveh.c: Update.
39120         * modules/striconveh: Update.
39121         * lib/unistr/u8-to-u16.c: Update.
39122         * modules/unistr/u8-to-u16: Update.
39123         * lib/unistr/u8-to-u32.c: Update.
39124         * modules/unistr/u8-to-u32: Update.
39125
39126 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39127
39128         Sync from Libtool.
39129         * lib/argz.c: Do not include strings.h nor memory.h, include
39130         string.h unconditionally.  Patch by Simon Josefsson.
39131
39132 2007-01-27  Bruno Haible  <bruno@clisp.org>
39133
39134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39135         from gl_HEADER_STRING_H_BODY.
39136         (gl_HEADER_STRING_H_BODY): Require it.
39137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39145         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39148         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39149         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39150         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39152
39153 2007-01-27  Bruno Haible  <bruno@clisp.org>
39154
39155         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39156         check_PROGRAMS into noinst_PROGRAMS.
39157         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39158         check_PROGRAMS in this case.
39159         (func_import): Set for_test to false.
39160         (func_create_testdir): Set for_test to true.
39161
39162 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39163             Bruno Haible  <bruno@clisp.org>
39164
39165         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39166         (Depends-on): Add string.
39167         (Includes): Use <string.h> instead of strcasestr.h.
39168         * modules/string (Makefile.am): Also substitute the value of
39169         REPLACE_STRCASESTR.
39170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39171         assume strcasestr is declared in <string.h> not <strings.h>. Also
39172         set REPLACE_STRCASESTR.
39173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39174         REPLACE_STRCASESTR.
39175         * lib/strcasestr.h: Remove file.
39176         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39177         * lib/string_.h (strcasestr): New declaration.
39178
39179 2007-01-27  Bruno Haible  <bruno@clisp.org>
39180
39181         * lib/string_.h: Use 'extern'.
39182
39183 2007-01-27  Jim Meyering  <jim@meyering.net>
39184
39185         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39186         of set-but-not-used local, "q".
39187
39188         * lib/mempcpy.c: Include <config.h> before <string.h>.
39189         This fixes a compilation error on HP-UX, due to the system's
39190         "restrict"-using mempcpy prototype.
39191
39192 2007-01-26  Bruno Haible  <bruno@clisp.org>
39193
39194         Small optimization.
39195         * lib/javacomp.c: Include c-strstr.h.
39196          (is_envjavac_gcj): Use c_strstr instead of strstr.
39197         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39198
39199 2007-01-26  Bruno Haible  <bruno@clisp.org>
39200
39201         * MODULES.html.sh (Unicode string functions): Add the new modules.
39202
39203         * modules/uniconv/u32-strconv-to-locale: New file.
39204         * lib/uniconv/u32-strconv-to-locale.c: New file.
39205
39206         * modules/uniconv/u16-strconv-to-locale: New file.
39207         * lib/uniconv/u16-strconv-to-locale.c: New file.
39208
39209         * modules/uniconv/u8-strconv-to-locale: New file.
39210         * lib/uniconv/u8-strconv-to-locale.c: New file.
39211
39212         * modules/uniconv/u32-strconv-from-locale: New file.
39213         * lib/uniconv/u32-strconv-from-locale.c: New file.
39214
39215         * modules/uniconv/u16-strconv-from-locale: New file.
39216         * lib/uniconv/u16-strconv-from-locale.c: New file.
39217
39218         * modules/uniconv/u8-strconv-from-locale: New file.
39219         * lib/uniconv/u8-strconv-from-locale.c: New file.
39220
39221         * modules/uniconv/u32-strconv-to-enc: New file.
39222         * lib/uniconv/u32-strconv-to-enc.c: New file.
39223         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39224         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39225
39226         * modules/uniconv/u16-strconv-to-enc: New file.
39227         * lib/uniconv/u16-strconv-to-enc.c: New file.
39228         * lib/uniconv/u-strconv-to-enc.h: New file.
39229         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39230         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39231
39232         * modules/uniconv/u8-strconv-to-enc: New file.
39233         * lib/uniconv/u8-strconv-to-enc.c: New file.
39234         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39235         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39236
39237         * modules/uniconv/u32-strconv-from-enc: New file.
39238         * lib/uniconv/u32-strconv-from-enc.c: New file.
39239         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39240         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39241
39242         * modules/uniconv/u16-strconv-from-enc: New file.
39243         * lib/uniconv/u16-strconv-from-enc.c: New file.
39244         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39245         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39246
39247         * modules/uniconv/u8-strconv-from-enc: New file.
39248         * lib/uniconv/u8-strconv-from-enc.c: New file.
39249         * lib/uniconv/u-strconv-from-enc.h: New file.
39250         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39251         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39252
39253         * modules/uniconv/u32-conv-from-enc: New file.
39254         * lib/uniconv/u32-conv-from-enc.c: New file.
39255         * modules/uniconv/u32-conv-from-enc-tests: New file.
39256         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39257
39258         * modules/uniconv/u16-conv-from-enc: New file.
39259         * lib/uniconv/u16-conv-from-enc.c: New file.
39260         * lib/uniconv/u-conv-from-enc.h: New file.
39261         * modules/uniconv/u16-conv-from-enc-tests: New file.
39262         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39263
39264         * modules/uniconv/u8-conv-from-enc: New file.
39265         * lib/uniconv/u8-conv-from-enc.c: New file.
39266         * modules/uniconv/u8-conv-from-enc-tests: New file.
39267         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39268
39269         * modules/uniconv/base: New file.
39270         * lib/uniconv.h: New file.
39271
39272 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39273
39274         * doc/gnulib-tool.texi (Initial import): Update to match current
39275         behavior with strdup module.
39276         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39277         * lib/memmem.h: Remove; all uses removed.  This is now done
39278         by <string.h>.
39279         * lib/mempcpy.h: Likewise.
39280         * lib/memrchr.h: Likewise.
39281         * lib/stpcpy.h: Likewise.
39282         * lib/stpncpy.h: Likewise.
39283         * lib/strcase.h: Likewise.
39284         * lib/strchrnul.h: Likewise.
39285         * lib/strdup.h: Likewise.
39286         * lib/strndup.h: Likewise.
39287         * lib/strnlen.h: Likewise.
39288         * lib/strpbrk.h: Likewise.
39289         * lib/strsep.h: Likewise.
39290         * lib/strstr.h: Likewise.
39291         * lib/strtok_r.h: Likewise.
39292         * lib/string_.h: New file.
39293         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39294         Rely on <string.h> instead.
39295         * lib/canon-host.c: Likewise.
39296         * lib/chdir-long.c: Likewise.
39297         * lib/concatpath.c: Likewise.
39298         * lib/exclude.c: Likewise.
39299         * lib/fchdir.c: Likewise.
39300         * lib/getaddrinfo.c: Likewise.
39301         * lib/getcwd.c: Likewise.
39302         * lib/getsubopt.c: Likewise.
39303         * lib/glob.c: Likewise.
39304         * lib/hard-locale.c: Likewise.
39305         * lib/iconvme.c: Likewise.
39306         * lib/javacomp.c: Likewise.
39307         * lib/mempcpy.c: Likewise.
39308         * lib/memrchr.c: Likewise.
39309         * lib/regex_internal.h: Likewise.
39310         * lib/stpncpy.c: Likewise.
39311         * lib/strcasecmp.c: Likewise.
39312         * lib/strchrnul.c: Likewise.
39313         * lib/strdup.c: Likewise.
39314         * lib/striconv.c: Likewise.
39315         * lib/striconveh.c: Likewise.
39316         * lib/striconveha.c: Likewise.
39317         * lib/strncasecmp.c: Likewise.
39318         * lib/strndup.c: Likewise.
39319         * lib/strnlen.c: Likewise.
39320         * lib/strsep.c: Likewise.
39321         * lib/strstr.c: Likewise.
39322         * lib/strtok_r.c: Likewise.
39323         * lib/userspec.c: Likewise.
39324         * lib/w32spawn.h: Likewise.
39325         * lib/xstrndup.c: Likewise.
39326         * lib/mountlist.c (strstr): Remove decl.
39327         * m4/string_h.m4: New file.
39328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39329         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39331         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39332         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39333         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39334         Set REPLACE_STRCASECMP if necessary.
39335         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39337         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39339         HAVE_DECL_STRDUP if necessary.
39340         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39341         since gl_FUNC_STRNDUP does that now.
39342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39343         Check for decl here...
39344         (gl_PREREQ_STRNLEN): ... not here.
39345         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39346         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39347         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39349         necessary.
39350         * modules/string: New file.
39351         * modules/memmem (Files): Remove special-purpose include file.
39352         (Depends-on): Add string.
39353         (Include): Include <string.h>, not the removed file.
39354         * modules/mempcpy: Likewise.
39355         * modules/memrchr: Likewise.
39356         * modules/stpcpy: Likewise.
39357         * modules/stpncpy: Likewise.
39358         * modules/strcase: Likewise.
39359         * modules/strchrnul: Likewise.
39360         * modules/strdup: Likewise.
39361         * modules/strndup: Likewise.
39362         * modules/strnlen: Likewise.
39363         * modules/strpbrk: Likewise.
39364         * modules/strsep: Likewise.
39365         * modules/strstr: Likewise.
39366         * modules/strtok_r: Likewise.
39367         * tests/test-dirname.c: Don't include "strdup.h", since
39368         <string.h> now suffices.
39369         * tests/test-memmem.c: Don't include "memmem.h", since
39370         <string.h> now suffices.
39371
39372 2007-01-25  Bruno Haible  <bruno@clisp.org>
39373
39374         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39375         *resultp is 0.
39376
39377         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39378         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39379         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39380         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39381
39382         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39383         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39384         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39385         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39386         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39387         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39388
39389 2007-01-24  Bruno Haible  <bruno@clisp.org>
39390
39391         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39393         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39394         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39395         gl_FUNC_FTS_CORE.
39396         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39397         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39399         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39400         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39401         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39402         gl_FUNC_FCHOWNAT.
39403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39404         gl_FUNC_STRFTIME.
39405         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39406         Reported by Ralf Wildenhues.
39407
39408 2007-01-24  Bruno Haible  <bruno@clisp.org>
39409
39410         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39411         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39412         gl_GETADDRINFO.
39413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39414         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39415         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39416
39417 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39418
39419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39420         Don't use 'exit'; just return from 'main'.
39421         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39422
39423         * lib/fnmatch_.h: Readjust white space and comments to match
39424         glibc, to avoid spurious diffs.
39425
39426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39427
39428         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39429         2004-12-01 change by Jakub Jelinek, since this code won't compile
39430         if !LIBC.  Problem reported by Bob Proulx.
39431
39432 2007-01-23  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/striconveh.c: Include c-strcaseeq.h.
39435         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39436         * modules/striconveh (Depends-on): Add c-strcaseeq.
39437
39438 2007-01-23  Bruno Haible  <bruno@clisp.org>
39439
39440         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39441
39442         * modules/c-strcaseeq: New file.
39443         * lib/c-strcaseeq.h: New file.
39444
39445         * modules/streq: New file.
39446         * lib/streq.h: New file.
39447
39448 2007-01-23  Bruno Haible  <bruno@clisp.org>
39449
39450         * modules/striconveha-tests: New file.
39451         * tests/test-striconveha.c: New file.
39452
39453         * lib/striconveha.h: Include <stdbool.h>.
39454         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39455         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39456         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39457         (mem_iconveha): New function.
39458         (str_iconveha_notranslit): Renamed from str_iconveha.
39459         (str_iconveha): New function.
39460         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39461         c-strcase.
39462
39463 2007-01-23  Bruno Haible  <bruno@clisp.org>
39464
39465         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39466         encodings without forgiving before trying any encoding with handler.
39467         (str_iconveha): Try all encodings without forgiving before trying any
39468         encoding with handler.
39469
39470 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39471
39472         Import the following changes from libc.
39473
39474         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39475
39476         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39477
39478         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39479
39480         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39481         normal_bracket label.
39482
39483         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39484
39485         [BZ #361]
39486         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39487         to normal_bracket after fetching the next character.
39488
39489 2007-01-22  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39492         argument.
39493         * lib/striconveh.c (iconv_carefully_1): New function.
39494         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39495         argument.
39496         (str_cd_iconveh): Update.
39497         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39498         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39499         * tests/test-striconveh.c (MAGIC): New macro.
39500         (new_offsets): New function.
39501         (main): Test call with and without offsets.
39502
39503 2007-01-22  Bruno Haible  <bruno@clisp.org>
39504
39505         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39506         * modules/sys_select (Makefile.am): Likewise.
39507         * modules/sys_socket (Makefile.am): Likewise.
39508         * modules/sys_time (Makefile.am): Likewise.
39509
39510 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39511
39512         * modules/gettimeofday (License): Change from GPL to LGPL, since
39513         gettimeofday is a library function.
39514
39515 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39516
39517         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39518
39519 2007-01-21  Bruno Haible  <bruno@clisp.org>
39520
39521         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39522
39523 2007-01-21  Bruno Haible  <bruno@clisp.org>
39524
39525         * modules/striconveha: New file.
39526         * lib/striconveha.h: New file.
39527         * lib/striconveha.c: New file.
39528         * MODULES.html.sh (Internationalization functions): Add striconveha.
39529         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39530         string.
39531         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39532
39533 2007-01-21  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39536         * lib/striconveh.c (str_iconveh): Likewise.
39537
39538 2007-01-21  Bruno Haible  <bruno@clisp.org>
39539
39540         * lib/striconveh.h (mem_iconveh): New declaration.
39541         * lib/striconveh.c (mem_iconveh): New function.
39542         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39543
39544 2007-01-21  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39547
39548         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39549         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39550         original result buffer.
39551         (str_cd_iconveh): Update.
39552         * tests/test-striconveh.c (main): Update.
39553
39554         * lib/striconv.h (mem_cd_iconv): Change specification.
39555         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39556         result buffer.
39557         (str_cd_iconv): Update.
39558         * tests/test-striconv.c (main): Update.
39559
39560 2007-01-21  Bruno Haible  <bruno@clisp.org>
39561
39562         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39563
39564 2007-01-20  Jim Meyering  <jim@meyering.net>
39565
39566         * lib/userspec.c (parse_with_separator): If a user or group string
39567         starts with "+", skip the corresponding name-to-ID look-up, since
39568         such a look-up must fail: user and group names may not include "+".
39569
39570 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39571
39572         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39573         since we now assume the sys_time module.
39574         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39575         check for sys/time.h; no longer needed.
39576         * modules/poll (Depends-on): Depend on sys_time.
39577
39578 2007-01-18  Bruno Haible  <bruno@clisp.org>
39579
39580         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39582
39583         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39584         gettimeofday.
39585
39586         * tests/test-gettimeofday.c: Include <time.h>.
39587         (dummy): Remove variable.
39588
39589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39590         gl_HEADER_SYS_TIME_H.
39591         (gl_HEADER_SYS_TIME_H): New macro.
39592
39593         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39594         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39596         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39597         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39599         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39600         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39601         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39602         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39603         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39604
39605         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39606         last change; it caused a compilation error when cross-compiling to
39607         Cygwin.
39608
39609 2007-01-18  Jim Meyering  <jim@meyering.net>
39610
39611         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39612         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39613         than the race-prone "test -d sys || mkdir sys".
39614         (configure.ac): Use AC_PROG_MKDIR_P.
39615         * modules/sys_select: Likewise.
39616         * modules/sys_socket: Likewise.
39617         * modules/sys_time: Likewise.
39618
39619 2007-01-18  Eric Blake  <ebb9@byu.net>
39620
39621         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39622         replace gettimeofday.
39623         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39624         name, to avoid infinite recursion.
39625
39626 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39627
39628         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39629         module sys_time.
39630         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39631         assume timespec.h defines struct timeval.
39632         * lib/settime.c: Likewise.
39633         * lib/utimens.c: Likewise.
39634         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39635         since we now assume the gettimeofday module.
39636         * lib/tempname.c (__gen_tempname): Likewise.
39637         * lib/gettimeofday.h: Remove.
39638         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39639         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39640         Include <time.h>, for 'time()'.
39641         (localtime_buffer_addr): Also use this workaround if
39642         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39643         to simplify the uses.  All uses changed.
39644         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39645         that #undef is inside {}, and 'const' follows type name consistently.
39646         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39647         (gettimeofday): Do not use the maximum possible value for
39648         tv->tv_usec, since that might break usages other than ls.c.
39649         Instead, we'll leave ls.c alone.  This undoes today's patch
39650         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39651         we've never observed the problem but might as well keep the
39652         canary.
39653         * lib/nanosleep.c: Include timespec.h first, for interface check.
39654         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39655         now assume the sys_time module.
39656         * lib/tempname.c: Likewise.
39657         * lib/timespec.h: Likewise.
39658         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39659         needed.
39660         * lib/strftime.c: Likewise.
39661         * lib/timespec.h: Likewise.
39662         * lib/posixtm.c: Include posixtm.h first, for interface check.
39663         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39664         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39665         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39666         * lib/sys_time_.h: New file.
39667         * lib/timespec.h (struct timespec): Use long int, not long.
39668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39669         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39670         Remove obsolescent call to AC_HEADER_TIME.
39671         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39674         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39675         Likewise.
39676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39677         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39679         into the sys_time module.  Check for gettimeofday just once.
39680         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39681         for gettimeofday signature to just check the signature.  Merely
39682         compile it, since linking doesn't test signature.  Improve test for
39683         whether gettimeofday.o is actually needed.
39684         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39685         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39686         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39687         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39688         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39689         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39690         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39691         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39692         than worrying about sys/time.h.
39693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39694         Don't bother worrying about TIME_WITH_SYS_TIME.
39695         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39696         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39697         * m4/sys_time_h.m4: New file.
39698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39699         Don't include sys/time.h.  Return from main rather than exiting.
39700         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39701         all uses changed.
39702         * modules/gethrxtime (Depends-on): Add sys_time.
39703         * modules/gettime (Depends-on): Likewise.
39704         * modules/gettimeofday (Depends-on): Likewise.
39705         * modules/nanosleep (Depends-on): Likewise.
39706         * modules/settime (Depends-on): Likewise.
39707         * modules/tempname (Depends-on): Likewise.
39708         * modules/utimens (Depends-on): Likewise.
39709         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39710         (Include:) Change back to <sys/time.h>.
39711         (Maintainer:) Add self.
39712         * modules/sys_time: New file.
39713         * modules/tempname (Depends-on): Add gettimeofday.
39714         * tests/test-gettimeofday.c: Include <sys/time.h>
39715         rather than gettimeofday.h.
39716
39717 2007-01-17  Bruno Haible  <bruno@clisp.org>
39718
39719         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39720         the license default to GPL.
39721         (func_create_testdir): Don't complain if a module is LGPL and its
39722         tests module depends on GPLed modules.
39723
39724 2007-01-17  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/gettimeofday.c (gettimeofday): Add code for the case
39727         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39728         maximum possible value for tv->tv_usec, rather than the minimum one.
39729
39730 2005-10-08  Martin Lambers  <marlam@marlam.de>
39731 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39732 2007-01-16  Bruno Haible  <bruno@clisp.org>
39733
39734         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39735         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39736         gl_FUNC_GETTIMEOFDAY.
39737         (Include): Add gettimeofday.h.
39738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39739         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39740         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39741         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39742         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39743         * lib/gettimeofday.h: New file.
39744         * lib/gettimeofday.c: Include <sys/timeb.h>.
39745         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39746         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39747         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39748         fall back on time().
39749
39750         * tests/test-gettimeofday.c: New file.
39751         * modules/gettimeofday-tests: New file.
39752
39753 2007-01-16  Eric Blake  <ebb9@byu.net>
39754
39755         * modules/fnmatch (Depends-on): Depend on wchar.
39756         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39757         * m4/fnmatch.m4: Likewise.
39758         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39759         * m4/mbchar.m4: Likewise.
39760         * modules/mbswidth (Depends-on): Depend on wchar.
39761         * lib/mbswidth.c: Assume <wchar.h>.
39762         * m4/mbswidth.m4: Likewise.
39763         * modules/quotearg (Depends-on): Depend on wchar.
39764         * lib/quotearg.c: Assume <wchar.h>.
39765         * m4/quotearg.m4: Likewise.
39766         * modules/regex (Depends-on): Depend on wchar.
39767         * lib/regex_internal.h: Assume <wchar.h>.
39768         * m4/regex.m4: Likewise.
39769         * modules/stdint (Depends-on): Depend on wchar.
39770         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39771         * m4/stdint.m4: Likewise.
39772         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39773         * modules/strftime (Depends-on): Depend on wchar.
39774         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39775         * modules/strtol (Depends-on): Depend on wchar.
39776         * lib/strtol.c: Assume <wchar.h>.
39777         * modules/wcwidth (Depends-on): Depend on wchar.
39778         * lib/wcwidth.h: Assume <wchar.h>.
39779         * m4/wcwidth.m4: Likewise.
39780
39781 2007-01-16  Bruno Haible  <bruno@clisp.org>
39782
39783         * modules/csharpexec-script: New, created from...
39784         * modules/csharpexec: ... this.
39785
39786 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39787
39788         * modules/javaexec-script: New, created from...
39789         * modules/javaexec: ... this.
39790
39791 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39792
39793         * modules/poll (Dependencies): Add sys_select.
39794
39795 2007-01-15  Jim Meyering  <jim@meyering.net>
39796
39797         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39798         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39799         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39800         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39801
39802 2007-01-15  Bruno Haible  <bruno@clisp.org>
39803
39804         * modules/striconveh: New file.
39805         * lib/striconveh.h: New file.
39806         * lib/striconveh.c: New file.
39807         * MODULES.html.sh (Internationalization functions): Add striconveh.
39808
39809         * modules/striconveh-tests: New file.
39810         * tests/test-striconveh.c: New file.
39811
39812 2007-01-15  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39815         not from GNU libiconv or GNU libc.
39816
39817 2007-01-15  Bruno Haible  <bruno@clisp.org>
39818
39819         * doc/gnulib-intro.texi (Copyright): Explain the different license
39820         terms for module descriptions, autoconf macros, tests, documentation.
39821
39822 2007-01-14  Bruno Haible  <bruno@clisp.org>
39823
39824         * modules/striconv-tests: New file.
39825         * tests/test-striconv.c: New file.
39826
39827 2007-01-14  Bruno Haible  <bruno@clisp.org>
39828
39829         * modules/iconv-tests: New file.
39830         * tests/test-iconv.c: New file.
39831
39832 2007-01-14  Bruno Haible  <bruno@clisp.org>
39833
39834         * gnulib-tool (func_get_license): For test modules, use the license of
39835         the main module.
39836
39837 2007-01-14  Bruno Haible  <bruno@clisp.org>
39838
39839         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39840         if iconv is found to exist.
39841
39842 2007-01-14  Bruno Haible  <bruno@clisp.org>
39843
39844         * modules/c-ctype-tests: New file.
39845         * tests/test-c-ctype.c: New file.
39846
39847 2007-01-14  Bruno Haible  <bruno@clisp.org>
39848
39849         * modules/binary-io-tests: New file.
39850         * tests/test-binary-io.sh: New file.
39851         * tests/test-binary-io.c: New file.
39852
39853 2007-01-14  Bruno Haible  <bruno@clisp.org>
39854
39855         * modules/array-oset-tests: New file.
39856         * tests/test-array_oset.c: New file.
39857
39858 2007-01-14  Bruno Haible  <bruno@clisp.org>
39859
39860         * modules/array-list-tests: New file.
39861         * tests/test-array_list.c: New file.
39862
39863 2007-01-14  Bruno Haible  <bruno@clisp.org>
39864
39865         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39866         and make.
39867         Reported by Simon Josefsson in
39868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39869
39870 2007-01-14  Bruno Haible  <bruno@clisp.org>
39871
39872         * modules/allocsa-tests: New file.
39873         * tests/test-allocsa.c: New file.
39874
39875 2007-01-14  Bruno Haible  <bruno@clisp.org>
39876
39877         * modules/fchdir (Depends-on): Add absolute-header.
39878         * modules/unistd (Depends-on): Likewise.
39879
39880 2006-12-30  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/fchdir: New file.
39883         * modules/unistd (Files): Add lib/unistd_.h.
39884         (Makefile.am): Generate unistd.h from unistd_.h.
39885         * lib/fchdir.c: New file.
39886         * lib/dirent_.h: New file.
39887         * lib/unistd_.h: New file.
39888         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39889         * m4/fchdir.m4: New file.
39890         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39891         (gl_HEADER_UNISTD): Invoke it.
39892         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39893         function.
39894         * lib/backupfile.c (opendir, closedir): Undefine.
39895         * lib/chown.c (open, close): Undefine.
39896         * lib/clean-temp.c (open, close): Undefine.
39897         * lib/copy-file.c (open, close): Undefine.
39898         * lib/execute.c (open, close): Undefine.
39899         * lib/fsusage.c (open, close): Undefine.
39900         * lib/gc-gnulib.c (open, close): Undefine.
39901         * lib/getcwd.c (opendir, closedir): Undefine.
39902         * lib/glob.c (opendir, closedir): Undefine.
39903         * lib/javacomp.c (open, close): Undefine.
39904         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39905         * lib/openat-proc.c (open, close): Undefine.
39906         * lib/pagealign_alloc.c (open, close): Undefine.
39907         * lib/pipe.c (open, close): Undefine.
39908         * lib/progreloc.c (open, close): Undefine.
39909         * lib/savedir.c (opendir, closedir): Undefine.
39910         * lib/utime.c (open, close): Undefine.
39911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39912
39913 2007-01-10  Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39916
39917 2007-01-12  Eric Blake  <ebb9@byu.net>
39918
39919         Provide a robust <wchar.h>.  Further simplifications are now
39920         possible in other modules, but not included here.
39921         * modules/wchar: New module.
39922         * m4/wchar.m4: New file.
39923         * lib/wchar_.h: Likewise.
39924         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39925         of the new module.
39926         * MODULES.html.sh (Extended multibyte and wide character utilities):
39927         New section.
39928
39929 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39930
39931         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39932         to a reasonable default for memory allocation.
39933         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39934         file system that reports garbage st_size values for symlinks.
39935         Problem reported by Liyang Hu.
39936
39937 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39938
39939         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39940         Emacs .#* auto-save files).
39941
39942 2007-01-11  Bruno Haible  <bruno@clisp.org>
39943
39944         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39945         directory.
39946
39947 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         Use @...@ consistently in lib/wctype_.h.
39950         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39951         on it being set to 1 or 0.
39952         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39953         go back to AC_SUBSTing it.
39954         * modules/wctype (Makefile.am): Undo previous change.
39955
39956 2007-01-10  Eric Blake  <ebb9@byu.net>
39957
39958         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39959         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39960         * modules/wctype (Makefile.am): Likewise.
39961         Reported by Chris McGuire.
39962
39963 2007-01-10  Jim Meyering  <jim@meyering.net>
39964
39965         fts.c: a small readability/maintainability improvement
39966         * lib/fts.c (fts_read): Make this code slightly more readable and
39967         maintainable by hoisting the "sp->fts_cur = p" assignments to
39968         immediately follow the statements that set P.  Derived from
39969         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39970
39971 2007-01-10  Eric Blake  <ebb9@byu.net>
39972
39973         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39974         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39976         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39977         Reported by Chris McGuire.
39978
39979 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39980
39981         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39982         in sed script.
39983
39984 2007-01-09  Bruno Haible  <bruno@clisp.org>
39985
39986         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39987         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39988         variables.
39989         (func_module): Use them.
39990
39991 2007-01-09  Bruno Haible  <bruno@clisp.org>
39992
39993         * modules/unistr/base: New file.
39994         * lib/unistr.h: New file.
39995
39996         * modules/unistr/u8-to-u16: New file.
39997         * lib/unistr/u8-to-u16.c: New file.
39998
39999         * modules/unistr/u8-to-u32: New file.
40000         * lib/unistr/u8-to-u32.c: New file.
40001
40002         * modules/unistr/u16-to-u8: New file.
40003         * lib/unistr/u16-to-u8.c: New file.
40004
40005         * modules/unistr/u16-to-u32: New file.
40006         * lib/unistr/u16-to-u32.c: New file.
40007
40008         * modules/unistr/u32-to-u8: New file.
40009         * lib/unistr/u32-to-u8.c: New file.
40010
40011         * modules/unistr/u32-to-u16: New file.
40012         * lib/unistr/u32-to-u16.c: New file.
40013
40014         * modules/unistr/u8-check: New file.
40015         * modules/unistr/u16-check: New file.
40016         * modules/unistr/u32-check: New file.
40017         * lib/unistr/u8-check.c: New file.
40018         * lib/unistr/u16-check.c: New file.
40019         * lib/unistr/u32-check.c: New file.
40020
40021         * modules/unistr/u8-chr: New file.
40022         * modules/unistr/u16-chr: New file.
40023         * modules/unistr/u32-chr: New file.
40024         * lib/unistr/u8-chr.c: New file.
40025         * lib/unistr/u16-chr.c: New file.
40026         * lib/unistr/u32-chr.c: New file.
40027
40028         * modules/unistr/u8-cmp: New file.
40029         * modules/unistr/u16-cmp: New file.
40030         * modules/unistr/u32-cmp: New file.
40031         * lib/unistr/u8-cmp.c: New file.
40032         * lib/unistr/u16-cmp.c: New file.
40033         * lib/unistr/u32-cmp.c: New file.
40034
40035         * modules/unistr/u8-cpy: New file.
40036         * modules/unistr/u16-cpy: New file.
40037         * modules/unistr/u32-cpy: New file.
40038         * lib/unistr/u8-cpy.c: New file.
40039         * lib/unistr/u16-cpy.c: New file.
40040         * lib/unistr/u32-cpy.c: New file.
40041         * lib/unistr/u-cpy.h: New file.
40042
40043         * modules/unistr/u8-cpy-alloc: New file.
40044         * modules/unistr/u16-cpy-alloc: New file.
40045         * modules/unistr/u32-cpy-alloc: New file.
40046         * lib/unistr/u8-cpy-alloc.c: New file.
40047         * lib/unistr/u16-cpy-alloc.c: New file.
40048         * lib/unistr/u32-cpy-alloc.c: New file.
40049         * lib/unistr/u-cpy-alloc.h: New file.
40050
40051         * modules/unistr/u8-endswith: New file.
40052         * modules/unistr/u16-endswith: New file.
40053         * modules/unistr/u32-endswith: New file.
40054         * lib/unistr/u8-endswith.c: New file.
40055         * lib/unistr/u16-endswith.c: New file.
40056         * lib/unistr/u32-endswith.c: New file.
40057         * lib/unistr/u-endswith.h: New file.
40058
40059         * modules/unistr/u8-mblen: New file.
40060         * modules/unistr/u16-mblen: New file.
40061         * modules/unistr/u32-mblen: New file.
40062         * lib/unistr/u8-mblen.c: New file.
40063         * lib/unistr/u16-mblen.c: New file.
40064         * lib/unistr/u32-mblen.c: New file.
40065
40066         * modules/unistr/u8-mbtouc: New file.
40067         * modules/unistr/u16-mbtouc: New file.
40068         * modules/unistr/u32-mbtouc: New file.
40069         * lib/unistr/u8-mbtouc.c: New file.
40070         * lib/unistr/u16-mbtouc.c: New file.
40071         * lib/unistr/u32-mbtouc.c: New file.
40072
40073         * modules/unistr/u8-mbtouc-safe: New file.
40074         * modules/unistr/u16-mbtouc-safe: New file.
40075         * modules/unistr/u32-mbtouc-safe: New file.
40076         * lib/unistr/u8-mbtouc-safe.c: New file.
40077         * lib/unistr/u16-mbtouc-safe.c: New file.
40078         * lib/unistr/u32-mbtouc-safe.c: New file.
40079
40080         * modules/unistr/u8-move: New file.
40081         * modules/unistr/u16-move: New file.
40082         * modules/unistr/u32-move: New file.
40083         * lib/unistr/u8-move.c: New file.
40084         * lib/unistr/u16-move.c: New file.
40085         * lib/unistr/u32-move.c: New file.
40086         * lib/unistr/u-move.h: New file.
40087
40088         * modules/unistr/u8-next: New file.
40089         * modules/unistr/u16-next: New file.
40090         * modules/unistr/u32-next: New file.
40091         * lib/unistr/u8-next.c: New file.
40092         * lib/unistr/u16-next.c: New file.
40093         * lib/unistr/u32-next.c: New file.
40094
40095         * modules/unistr/u8-prev: New file.
40096         * modules/unistr/u16-prev: New file.
40097         * modules/unistr/u32-prev: New file.
40098         * lib/unistr/u8-prev.c: New file.
40099         * lib/unistr/u16-prev.c: New file.
40100         * lib/unistr/u32-prev.c: New file.
40101
40102         * modules/unistr/u8-set: New file.
40103         * modules/unistr/u16-set: New file.
40104         * modules/unistr/u32-set: New file.
40105         * lib/unistr/u8-set.c: New file.
40106         * lib/unistr/u16-set.c: New file.
40107         * lib/unistr/u32-set.c: New file.
40108         * lib/unistr/u-set.h: New file.
40109
40110         * modules/unistr/u8-startswith: New file.
40111         * modules/unistr/u16-startswith: New file.
40112         * modules/unistr/u32-startswith: New file.
40113         * lib/unistr/u8-startswith.c: New file.
40114         * lib/unistr/u16-startswith.c: New file.
40115         * lib/unistr/u32-startswith.c: New file.
40116         * lib/unistr/u-startswith.h: New file.
40117
40118         * modules/unistr/u8-stpcpy: New file.
40119         * modules/unistr/u16-stpcpy: New file.
40120         * modules/unistr/u32-stpcpy: New file.
40121         * lib/unistr/u8-stpcpy.c: New file.
40122         * lib/unistr/u16-stpcpy.c: New file.
40123         * lib/unistr/u32-stpcpy.c: New file.
40124         * lib/unistr/u-stpcpy.h: New file.
40125
40126         * modules/unistr/u8-stpncpy: New file.
40127         * modules/unistr/u16-stpncpy: New file.
40128         * modules/unistr/u32-stpncpy: New file.
40129         * lib/unistr/u8-stpncpy.c: New file.
40130         * lib/unistr/u16-stpncpy.c: New file.
40131         * lib/unistr/u32-stpncpy.c: New file.
40132         * lib/unistr/u-stpncpy.h: New file.
40133
40134         * modules/unistr/u8-strcat: New file.
40135         * modules/unistr/u16-strcat: New file.
40136         * modules/unistr/u32-strcat: New file.
40137         * lib/unistr/u8-strcat.c: New file.
40138         * lib/unistr/u16-strcat.c: New file.
40139         * lib/unistr/u32-strcat.c: New file.
40140         * lib/unistr/u-strcat.h: New file.
40141
40142         * modules/unistr/u8-strchr: New file.
40143         * modules/unistr/u16-strchr: New file.
40144         * modules/unistr/u32-strchr: New file.
40145         * lib/unistr/u8-strchr.c: New file.
40146         * lib/unistr/u16-strchr.c: New file.
40147         * lib/unistr/u32-strchr.c: New file.
40148
40149         * modules/unistr/u8-strcmp: New file.
40150         * modules/unistr/u16-strcmp: New file.
40151         * modules/unistr/u32-strcmp: New file.
40152         * lib/unistr/u8-strcmp.c: New file.
40153         * lib/unistr/u16-strcmp.c: New file.
40154         * lib/unistr/u32-strcmp.c: New file.
40155
40156         * modules/unistr/u8-strcpy: New file.
40157         * modules/unistr/u16-strcpy: New file.
40158         * modules/unistr/u32-strcpy: New file.
40159         * lib/unistr/u8-strcpy.c: New file.
40160         * lib/unistr/u16-strcpy.c: New file.
40161         * lib/unistr/u32-strcpy.c: New file.
40162         * lib/unistr/u-strcpy.h: New file.
40163
40164         * modules/unistr/u8-strcspn: New file.
40165         * modules/unistr/u16-strcspn: New file.
40166         * modules/unistr/u32-strcspn: New file.
40167         * lib/unistr/u8-strcspn.c: New file.
40168         * lib/unistr/u16-strcspn.c: New file.
40169         * lib/unistr/u32-strcspn.c: New file.
40170         * lib/unistr/u-strcspn.h: New file.
40171
40172         * modules/unistr/u8-strdup: New file.
40173         * modules/unistr/u16-strdup: New file.
40174         * modules/unistr/u32-strdup: New file.
40175         * lib/unistr/u8-strdup.c: New file.
40176         * lib/unistr/u16-strdup.c: New file.
40177         * lib/unistr/u32-strdup.c: New file.
40178         * lib/unistr/u-strdup.h: New file.
40179
40180         * modules/unistr/u8-strlen: New file.
40181         * modules/unistr/u16-strlen: New file.
40182         * modules/unistr/u32-strlen: New file.
40183         * lib/unistr/u8-strlen.c: New file.
40184         * lib/unistr/u16-strlen.c: New file.
40185         * lib/unistr/u32-strlen.c: New file.
40186         * lib/unistr/u-strlen.h: New file.
40187
40188         * modules/unistr/u8-strmblen: New file.
40189         * modules/unistr/u16-strmblen: New file.
40190         * modules/unistr/u32-strmblen: New file.
40191         * lib/unistr/u8-strmblen.c: New file.
40192         * lib/unistr/u16-strmblen.c: New file.
40193         * lib/unistr/u32-strmblen.c: New file.
40194
40195         * modules/unistr/u8-strmbtouc: New file.
40196         * modules/unistr/u16-strmbtouc: New file.
40197         * modules/unistr/u32-strmbtouc: New file.
40198         * lib/unistr/u8-strmbtouc.c: New file.
40199         * lib/unistr/u16-strmbtouc.c: New file.
40200         * lib/unistr/u32-strmbtouc.c: New file.
40201
40202         * modules/unistr/u8-strncat: New file.
40203         * modules/unistr/u16-strncat: New file.
40204         * modules/unistr/u32-strncat: New file.
40205         * lib/unistr/u8-strncat.c: New file.
40206         * lib/unistr/u16-strncat.c: New file.
40207         * lib/unistr/u32-strncat.c: New file.
40208         * lib/unistr/u-strncat.h: New file.
40209
40210         * modules/unistr/u8-strncmp: New file.
40211         * modules/unistr/u16-strncmp: New file.
40212         * modules/unistr/u32-strncmp: New file.
40213         * lib/unistr/u8-strncmp.c: New file.
40214         * lib/unistr/u16-strncmp.c: New file.
40215         * lib/unistr/u32-strncmp.c: New file.
40216
40217         * modules/unistr/u8-strncpy: New file.
40218         * modules/unistr/u16-strncpy: New file.
40219         * modules/unistr/u32-strncpy: New file.
40220         * lib/unistr/u8-strncpy.c: New file.
40221         * lib/unistr/u16-strncpy.c: New file.
40222         * lib/unistr/u32-strncpy.c: New file.
40223         * lib/unistr/u-strncpy.h: New file.
40224
40225         * modules/unistr/u8-strnlen: New file.
40226         * modules/unistr/u16-strnlen: New file.
40227         * modules/unistr/u32-strnlen: New file.
40228         * lib/unistr/u8-strnlen.c: New file.
40229         * lib/unistr/u16-strnlen.c: New file.
40230         * lib/unistr/u32-strnlen.c: New file.
40231         * lib/unistr/u-strnlen.h: New file.
40232
40233         * modules/unistr/u8-strpbrk: New file.
40234         * modules/unistr/u16-strpbrk: New file.
40235         * modules/unistr/u32-strpbrk: New file.
40236         * lib/unistr/u8-strpbrk.c: New file.
40237         * lib/unistr/u16-strpbrk.c: New file.
40238         * lib/unistr/u32-strpbrk.c: New file.
40239         * lib/unistr/u-strpbrk.h: New file.
40240
40241         * modules/unistr/u8-strrchr: New file.
40242         * modules/unistr/u16-strrchr: New file.
40243         * modules/unistr/u32-strrchr: New file.
40244         * lib/unistr/u8-strrchr.c: New file.
40245         * lib/unistr/u16-strrchr.c: New file.
40246         * lib/unistr/u32-strrchr.c: New file.
40247
40248         * modules/unistr/u8-strspn: New file.
40249         * modules/unistr/u16-strspn: New file.
40250         * modules/unistr/u32-strspn: New file.
40251         * lib/unistr/u8-strspn.c: New file.
40252         * lib/unistr/u16-strspn.c: New file.
40253         * lib/unistr/u32-strspn.c: New file.
40254         * lib/unistr/u-strspn.h: New file.
40255
40256         * modules/unistr/u8-strstr: New file.
40257         * modules/unistr/u16-strstr: New file.
40258         * modules/unistr/u32-strstr: New file.
40259         * lib/unistr/u8-strstr.c: New file.
40260         * lib/unistr/u16-strstr.c: New file.
40261         * lib/unistr/u32-strstr.c: New file.
40262         * lib/unistr/u-strstr.h: New file.
40263
40264         * modules/unistr/u8-strtok: New file.
40265         * modules/unistr/u16-strtok: New file.
40266         * modules/unistr/u32-strtok: New file.
40267         * lib/unistr/u8-strtok.c: New file.
40268         * lib/unistr/u16-strtok.c: New file.
40269         * lib/unistr/u32-strtok.c: New file.
40270         * lib/unistr/u-strtok.h: New file.
40271
40272         * modules/unistr/u8-uctomb: New file.
40273         * modules/unistr/u16-uctomb: New file.
40274         * modules/unistr/u32-uctomb: New file.
40275         * lib/unistr/u8-uctomb.c: New file.
40276         * lib/unistr/u16-uctomb.c: New file.
40277         * lib/unistr/u32-uctomb.c: New file.
40278
40279         * MODULES.html.sh (Unicode string functions): Add the new modules.
40280
40281 2007-01-08  Bruno Haible  <bruno@clisp.org>
40282
40283         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40284         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40285         subdirectories.
40286
40287 2007-01-08  Karl Berry  <karl@gnu.org>
40288
40289         * doc/error.texi: mention that main() fns must set program_name
40290         when progname is used.
40291
40292 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40293
40294         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40295         WCTYPE_H is empty, for the benefit of builds from non-distclean
40296         directories.  Problem reported by Eric Blake in
40297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40298
40299 2007-01-08  Bruno Haible  <bruno@clisp.org>
40300
40301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40302         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40303         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40304         PROVIDE_CANONICALIZE_FILENAME_MODE.
40305         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40306
40307 2007-01-08  Bruno Haible  <bruno@clisp.org>
40308
40309         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40310         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40311         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40312         * lib/fts.c: Likewise.
40313         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40314
40315 2006-12-25  Bruno Haible  <bruno@clisp.org>
40316
40317         * modules/utf8-ucs4-safe: New file.
40318         * lib/utf8-ucs4-safe.h: New file.
40319         * lib/unistr/utf8-ucs4-safe.c: New file.
40320
40321         * modules/utf16-ucs4-safe: New file.
40322         * lib/utf16-ucs4-safe.h: New file.
40323         * lib/unistr/utf16-ucs4-safe.c: New file.
40324
40325         * MODULES.html.sh (Unicode string functions): Add the new modules.
40326
40327 2007-01-08  Bruno Haible  <bruno@clisp.org>
40328
40329         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40330         (Depends-on): Add unitypes.
40331         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40332         (u8_mbtouc_aux): Move out to separate file.
40333         (u8_mbtouc): Use ucs4_t, uint8_t types.
40334         * lib/unistr/utf8-ucs4.c: New file.
40335
40336         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40337         (Depends-on): Add unitypes.
40338         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40339         (u16_mbtouc_aux): Move out to separate file.
40340         (u16_mbtouc): Use ucs4_t, uint16_t types.
40341         * lib/unistr/utf16-ucs4.c: New file.
40342
40343         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40344         (Depends-on): Add unitypes.
40345         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40346         (u8_uctomb_aux): Move out to separate file.
40347         (u8_uctomb): Use ucs4_t, uint8_t types.
40348         * lib/unistr/ucs4-utf8.c: New file.
40349
40350         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40351         (Depends-on): Add unitypes.
40352         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40353         (u16_uctomb_aux): Move out to separate file.
40354         (u16_uctomb): Use ucs4_t, uint16_t types.
40355         * lib/unistr/ucs4-utf16.c: New file.
40356
40357 2006-12-25  Bruno Haible  <bruno@clisp.org>
40358
40359         * modules/unitypes: New file.
40360         * lib/unitypes.h: New file.
40361         * MODULES.html.sh (func_all_modules): New section "Unicode string
40362         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40363         this section. Add unitypes.
40364
40365 2007-01-08  Bruno Haible  <bruno@clisp.org>
40366
40367         Avoid variable names that conflict with those from libtool.
40368         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40369         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40370         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40371         library_names_spec to acl_library_names_spec, hardcode_* to
40372         acl_hardcode_*.
40373         Reported by Ralf Wildenhues.
40374
40375 2007-01-08  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40378         definition.
40379         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40380         definition.
40381         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40382         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40383         definition.
40384         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40385         definition.
40386         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40387         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40388         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40389         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40390         definition.
40391         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40392         definition.
40393         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40394         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40395         GC_USE_<algorithm>.
40396         * lib/gc-libgcrypt.c: Likewise.
40397         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40398         * modules/gc-arctwo (configure.ac): Likewise.
40399         * modules/gc-des (configure.ac): Likewise.
40400         * modules/gc-hmac-md5 (configure.ac): Likewise.
40401         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40402         * modules/gc-md2 (configure.ac): Likewise.
40403         * modules/gc-md4 (configure.ac): Likewise.
40404         * modules/gc-md5 (configure.ac): Likewise.
40405         * modules/gc-random (configure.ac): Likewise.
40406         * modules/gc-rijndael (configure.ac): Likewise.
40407         * modules/gc-sha1 (configure.ac): Likewise.
40408
40409 2007-01-08  Bruno Haible  <bruno@clisp.org>
40410
40411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40412         macro definition.
40413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40414         definition.
40415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40416         definition.
40417         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40418         * modules/fcntl-safer (configure.ac): Likewise.
40419         * modules/fopen-safer (configure.ac): Likewise.
40420         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40421         GNULIB_FWRITEERROR macro definition.
40422
40423 2007-01-08  Bruno Haible  <bruno@clisp.org>
40424
40425         * m4/gnulib-common.m4: New file.
40426         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40427         (func_get_filelist): Add m4/gnulib-common.m4.
40428
40429 2007-01-08  Bruno Haible  <bruno@clisp.org>
40430
40431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40432         command.
40433
40434 2007-01-08  Jim Meyering  <jim@meyering.net>
40435
40436         Use a more robust test for a "can't happen" condition.
40437         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40438         narrowed the st_size value.  Presuming the "can't happen" condition
40439         is true, that narrowing could conceivably convert an invalid st_size
40440         value into a valid one.  Instead, use a change based on Matthew
40441         Woehlke's original patch.
40442
40443         Slight readability improvement: use an assert-like macro
40444         in place of literal "abort ()" uses.
40445         * lib/fts.c (fts_assert): Define.
40446         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40447         Use this macro instead of a bare 'abort'.
40448
40449 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40450
40451         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40452         simply work around them.
40453         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40455         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40456         declaring.
40457         Don't bother to define as macros, since the standard doesn't require it.
40458         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40459         longer worry about IRIX 5.3.
40460         (HAVE_WCTYPE_CTMP_BUG): Remove.
40461
40462 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40465         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40466         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40467         Problems reported by Georg Schwarz for IRIX 5.3.
40468
40469         * gnulib-tool (autoconf_minversion): Take the maximum version number
40470         found, not the minimum.  Problem reported by James Youngman.
40471
40472 2007-01-03  Karl Berry  <karl@gnu.org>
40473
40474         * doc/error.texi: new file, explaining interaction with progname.
40475         * doc/gnulib.texi: include it.  Update copyright.
40476
40477 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40478
40479         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40480         AC_CANONICAL_HOST, to improve autobuild outputs.
40481
40482 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40483             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40484
40485         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40486         sockets, server sockets, and other file descriptors.  Count errors
40487         to compute the return value.  Reorder the code a bit to be easier
40488         to follow.  Don't set event bits that were not requested (except
40489         POLLERR and POLLHUP).
40490
40491 2007-01-01  Bruno Haible  <bruno@clisp.org>
40492
40493         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40494
40495 2007-01-03  Jim Meyering  <jim@meyering.net>
40496
40497         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40498
40499 2007-01-02  Bruno Haible  <bruno@clisp.org>
40500
40501         * modules/settime (Include): Require timespec.h.
40502         * modules/nanosleep (Include): Likewise.
40503
40504 2007-01-01  Bruno Haible  <bruno@clisp.org>
40505
40506         * gnulib-tool (func_emit_copyright_notice): Bump year.
40507         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40508
40509 2007-01-01  Bruno Haible  <bruno@clisp.org>
40510
40511         Improve support for OpenBSD.
40512         * build-aux/config.rpath (libname_spec): Export.
40513         (library_names_spec): New variable. Export.
40514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40515         library_names_spec from the config.rpath output. Locate shared library
40516         through the name pattern in library_names_spec.
40517
40518 2007-01-01  Eric Blake  <ebb9@byu.net>
40519
40520         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40521
40522 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40523
40524         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40525         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40526         assume the C locale, and avoid an "eval" that could cause trouble.
40527         Problem with SORT reported by Bob Proulx.
40528
40529         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40530         Define.  Trivial patch from Henning Nielsen Lund, originally
40531         sent to bug-grep@gnu.org today.
40532
40533 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40534
40535         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40536         struct stat.  Problem reported by Henning Nielsen Lund.
40537         * lib/acl.c: Include acl.h first, to check interface.  Don't
40538         bother to include sys/types.h and sys/stat.h again.
40539
40540 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40541
40542         Import the following change from libc; problem reported by
40543         Sven Verdoolaege.
40544
40545         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40546
40547         [BZ #1373]
40548         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40549
40550 2006-12-28  Jim Meyering  <jim@meyering.net>
40551
40552         * build-aux/announce-gen: Do not assume that the package
40553         builds any of tar.gz, tar.bz2, and .xdelta files.
40554         Suggestion from Simon Josefsson.
40555
40556 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40557
40558         * modules/announce-gen: New file.
40559
40560 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40561
40562         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40563         handles its gotchas now.
40564         * lib/mbswidth.c: Likewise.
40565         * lib/wcwidth.h: Likewise.
40566         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40567         and iswcntrl; the wctype module does this stuff now.
40568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40570         * modules/mbchar (Depends-on): Add wctype.
40571         * modules/mbswidth (Depends-on): Likewise.
40572         * modules/wcwidth (Depends-on): Likewise.
40573
40574 2006-12-27  Eric Blake  <ebb9@byu.net>
40575
40576         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40577         module uses more than what <wctype.h> is required to provide.
40578
40579 2006-12-26  Eric Blake  <ebb9@byu.net>
40580
40581         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40582
40583 2006-12-26  Eric Blake  <ebb9@byu.net>
40584
40585         * modules/absolute-header: New module.
40586         * modules/fcntl (Depends-on): Depend on it.
40587         * modules/inttypes (Depends-on): Likewise.
40588         * modules/stdint (Depends-on): Likewise.
40589         * modules/sys_stat (Depends-on): Likewise.
40590         * modules/wctype (Depends-on): Likewise.
40591         * MODULES.html.sh (Support for building libraries and
40592         executables): Document it.
40593
40594 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40595
40596         * gnulib-tool (SED): Remove, undoing previous change.
40597         The problem was that it broke coreutils on Solaris, because
40598         "sed --posix" leaked into a makefile.
40599         (sed): New alias, if 'alias' and GNU sed.
40600
40601 2006-12-24  Jim Meyering  <jim@meyering.net>
40602
40603         Work around an fchownat bug in glibc-2.4:
40604         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40605         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40606         in spite of the -P option.
40607         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40608         New macros.
40609         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40610         * modules/openat (Files): Add lib/fchownat.c.
40611         * lib/openat.c (fchownat): Don't define here.  Move to...
40612         * lib/fchownat.c: ...this new file.
40613
40614 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40615
40616         Fix bug reported by Bruno Haible in
40617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40618         where quotearg.c didn't compile on Mac OS X 10.2 because it
40619         lacks <wchar.h> and wint_t.
40620         * lib/wctype_.h (__wctype_wint_t): New type.
40621         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40622         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40623         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40624         Arg is now of type __wctype_wint_t, not wint_t.
40625         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40626         substitute HAVE_WINT_T.
40627         * modules/wctype (Files): Add m4/wint_t.m4.
40628         (wctype.h): Substitute HAVE_WINT_T.
40629
40630 2006-12-23  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40633
40634 2006-12-23  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40637         S_ISLNK.
40638         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40639         mingw.
40640
40641 2006-12-22  Bruno Haible  <bruno@clisp.org>
40642
40643         * lib/copy-file.c: Include acl.h.
40644         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40645         Close the file descriptors only after being done with copy_acl.
40646         * modules/copy-file (Depends-on): Add acl.
40647
40648 2006-12-22  Bruno Haible  <bruno@clisp.org>
40649
40650         * gnulib-tool (SED): New variable.
40651         Use $SED instead of sed everywhere.
40652
40653 2006-12-22  Bruno Haible  <bruno@clisp.org>
40654
40655         * modules/no-c++: New file.
40656         * m4/no-c++.m4: New file.
40657         * MODULES.html.sh (Support for building libraries and executables):
40658         Add no-c++.
40659
40660 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40661
40662         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40663         Include <limits.h>, and use its INT_MAX to rewrite the
40664         j loop so that it does not overflow 'int'.  Problem reported by
40665         Ralf Wildenhues in
40666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40667         Play it safe by shifting left by 1 rather than multiplying by 2,
40668         as GCC is less likely to optimize this away when the value
40669         is signed (when it assumes overflow leads to undefined behavior).
40670         Also, don't assume time_t uses two's complement.
40671
40672 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40673
40674         * MODULES.html.sh: New module wctype.
40675         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40676         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40677         <wctype.h>, since the new wctype module should fix this.
40678         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40679         the wctype module should arrange for it.
40680         * lib/regex_internal.h: Likewise.
40681         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40682         since the wctype module should handle this now.
40683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40684         * modules/fnmatch (Depends-on): Add wctype.
40685         * modules/quotearg (Depends-on): Likewise.
40686         * modules/regex (Depends-on): Likewise.
40687
40688 2006-12-19  Bruno Haible  <bruno@clisp.org>
40689
40690         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40691         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40692
40693 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40694
40695         * modules/savewd (Depends-on): Fix dependency on fcntl.
40696
40697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40698
40699         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40700         conforms to C99, rather than relying on the user's environment
40701         setting of STDINT_H.
40702
40703 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40704         and Eric Blake  <ebb9@byu.net>
40705
40706         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40707         This is more consistent with the other defines here.
40708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40709         Port to z/OS.  Problem reported by Paul Gilmartin.
40710         Change local vars to use gl_ prefix rather than ac_.
40711         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40712         with other defines.
40713         * modules/double-slash-root: New module.
40714         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40715         (Depends-on): Add double-slash-root.
40716         * MODULES.html.sh (File system functions): Mention new module.
40717
40718 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40719
40720         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40721         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40722         This is for the benefit of gzip, which doesn't do i18n.
40723
40724 2006-12-12  Jim Meyering  <jim@meyering.net>
40725
40726         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40727         Reported by Andreas Schwab <schwab@suse.de>.
40728
40729 2006-12-12  Bruno Haible  <bruno@clisp.org>
40730
40731         Merge these changes.
40732         2006-09-05  Bruno Haible  <bruno@clisp.org>
40733         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40734         iconv_alloc succeeded.
40735         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40736         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40737         test for " && dest " at the end - dest is always != NULL there. Call
40738         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40739         with 2xNULL arguments, also to flush the state storage. Handle the
40740         IRIX iconv behaviour. Realloc the final result, to throw away unused
40741         memory.
40742
40743 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40744
40745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40746         and fchmodat unconditionally, since glibc 2.4 has them.
40747         Problem reported by Arkadiusz Miskiewicz.
40748
40749 2006-12-10  Bruno Haible  <bruno@clisp.org>
40750
40751         * gnulib-tool (func_import): Show the include files only for those
40752         modules that are copied and specified.
40753         Reported by Karl Berry.
40754
40755 2006-12-08  Jim Meyering  <jim@meyering.net>
40756
40757         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40758         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40759
40760         * build-aux/announce-gen: Add two new options, both optional:
40761         --bootstrap-tools=TOOL_LIST
40762               a comma-separated list of tools, e.g.,
40763               autoconf,automake,bison,gnulib
40764         --gnulib-snapshot-date=DATE
40765               if gnulib is in the bootstrap tool list,
40766               then report this as the snapshot date.
40767               If not specified, use the current date/time.
40768               If you specify a date here, be sure it's UTC.
40769
40770 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40771
40772         * tests/test-argp-2.sh: Fix test to match actual output.
40773         (func_compare): Fix sed script to be portable.
40774
40775 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40776
40777         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40778         workaround for this case.  It is not autoconfigured now; offhand
40779         it's hard to see how to autoconfigure it.
40780
40781 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40782
40783         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40784         a directory that is about to be chowned.  Such a directory's
40785         initial file permissions should permit the owner only and this
40786         should not be changed until after the chown, since the group and
40787         other bits would be incorrect if they granted permission before
40788         the chown.
40789
40790         Fix porting problem for iswctype reported by Georg Schwarz in:
40791         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40793         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40795         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40796
40797 2006-12-03  Jim Meyering  <jim@meyering.net>
40798
40799         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40800         p->fts_statp may not yet be defined.
40801         (fts_read): Instead, set it in the caller, once p->fts_statp is
40802         sure to be defined, and corresponds to a top-level directory.
40803         This bug made du -x fail.  Here's the coreutils test case:
40804         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40805         Reported by Mike Frysinger.
40806
40807 2006-12-01  Jim Meyering  <jim@meyering.net>
40808
40809         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40810         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40811         Reported by Simon Josefsson.
40812
40813 2006-11-30  Jim Meyering  <jim@meyering.net>
40814
40815         * m4/warning.m4: Use the all-permissive copyright notice
40816         recommended by RMS (rather than LGPL).
40817         * m4/vararrays.m4: Likewise.
40818         * m4/flexmember.m4: Likewise.
40819
40820 2006-11-29  Bruno Haible  <bruno@clisp.org>
40821
40822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40823         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40824         using +=.
40825         Reported by Simon Josefsson <simon@josefsson.org>.
40826
40827 2006-11-28  James Youngman <jay@gnu.org>
40828
40829         * README: Advise users that they might find the bug-gnulib@gnu.org
40830         and autotools-announce@gnu.org mailing lists useful.
40831
40832 2006-11-28  Bruno Haible  <bruno@clisp.org>
40833
40834         * m4/ptrdiff_max.m4: Remove file.
40835
40836 2006-11-21  Bruno Haible  <bruno@clisp.org>
40837
40838         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40839         _AC_COMPUTE_INT.
40840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40841         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40842         _AC_COMPUTE_INT.
40843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40844         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40845         _AC_COMPUTE_INT.
40846         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40847
40848 2006-11-28  Jim Meyering  <jim@meyering.net>
40849
40850         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40851         warning from "gcc -Wshadow" about shadowing the builtin.
40852
40853 2006-11-27  Bruno Haible  <bruno@clisp.org>
40854
40855         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40856         _AC_COMPUTE_INT.
40857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40858
40859 2006-11-27  Bruno Haible  <bruno@clisp.org>
40860             Paul Eggert  <eggert@cs.ucla.edu>
40861
40862         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40863
40864 2006-11-26  Bruno Haible  <bruno@clisp.org>
40865
40866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40867         noinst_LTLIBRARIES.
40868
40869 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40870             Bruno Haible  <bruno@clisp.org>
40871
40872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40873         if compiling with "gcc -ansi".
40874
40875 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40876
40877         Fix some incompatibilities with gcc -ansi -pedantic.
40878         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40879         if compiling pedantically with GCC, unless it's C99 or later.
40880         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40881         it mishandles gcc -ansi -pedantic as well.
40882         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40883         if gcc -pedantic.
40884         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40885         initializers for struct if -pedantic, unless it's C99 or later.
40886
40887 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40888
40889         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40890         Don't close an fd more than once. Identical atimes indicate
40891         success, not failure.
40892
40893 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40894
40895         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40896
40897 2006-11-23  Jim Meyering  <jim@meyering.net>
40898
40899         * build-aux/announce-gen: New file.  From coreutils.
40900
40901 2006-11-22  Jim Meyering  <jim@meyering.net>
40902
40903         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40904         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40905         (fts_read): Use a temporary to narrow the overused st_size member
40906         before using it in a switch statement.  Reported by Matthew Woehlke.
40907
40908         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40910
40911 2006-11-20  Bruno Haible  <bruno@clisp.org>
40912
40913         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40914         changequote instead of pairs of brackets.
40915         Reported by Andreas Schwab <schwab@suse.de>.
40916
40917 2006-11-21  Jim Meyering  <jim@meyering.net>
40918
40919         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40920         so as to remain compatible with older compilers.
40921         Patch from Michael Deutschmann.
40922
40923 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40924
40925         * MODULES.html.sh (File system functions): Add openat.
40926
40927         * lib/openat.h (rpl_fstatat): New macro, if
40928         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40929         (fstatat): Define to rpl_fstatat under the same conditions,
40930         unless COMPILING_FSTATAT.
40931         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40932         seems to have the bug.
40933         * lib/fstatat.c: New file.
40934         * modules/openat (Files): Add it.
40935
40936 2006-11-20  Bruno Haible  <bruno@clisp.org>
40937
40938         * Makefile: New file.
40939
40940 2006-11-20  Jim Meyering  <jim@meyering.net>
40941
40942         The beginnings of syntax-related checks for gnulib.
40943         * lib/Makefile: New file.
40944         * lib/t-idcache: New script.  Ensure that the two halves of
40945         idcache.c stay in sync.
40946
40947         * lib/idcache.c: Adjust comments in user- and group- portions to
40948         be more accurate, and to be consistent with one another.
40949
40950 2006-11-20  Jim Meyering  <jim@meyering.net>
40951
40952         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40953         continue using the flexible array member (thus, this module performs
40954         half as many malloc calls), with the addition that...
40955         (getgroup, getuser): Consistently record a non-match via an empty
40956         "name" string, and map an empty string match to a NULL return value.
40957         * modules/idcache (Depends-on): Re-add flexmember.
40958
40959         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40960         (getuidbyname, getgroup, getgidbyname): Likewise.
40961
40962         Use cleaner syntax: NULL rather than 0.
40963         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40964
40965 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40966
40967         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40968         It mishandled the case where the group was missing.
40969         Problem reported by Greg Schafer.
40970         * modules/idcache: Likewise.
40971
40972 2006-11-18  Jim Meyering  <jim@meyering.net>
40973
40974         * check-module (%exempt_header): Add exception for some
40975         conditionally-included headers.
40976
40977         * modules/i-ring (Depends-on): Add verify.
40978         (License): Change to LGPL.
40979
40980 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40981
40982         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40983         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40984         and inttostr.h.  Use snprintf rather than uinttostr, so that
40985         LGPLed code doesn't depend on GPLed.
40986
40987 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40988
40989         * modules/inline (License): Change from GPL to LGPL.
40990
40991 2006-11-17  Jim Meyering  <jim@meyering.net>
40992
40993         * modules/d-type (License): Switch to LGPL.
40994
40995 2006-11-15  Bruno Haible  <bruno@clisp.org>
40996
40997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40998
40999 2006-11-15  Eric Blake  <ebb9@byu.net>
41000
41001         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41002         the module dependency.
41003
41004 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41005             Bruno Haible  <bruno@clisp.org>
41006
41007         * gnulib-tool (func_create_testdir): Add license consistency check.
41008
41009 2006-11-15  Eric Blake  <ebb9@byu.net>
41010
41011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41012         random "(cached)" in configure output.
41013
41014 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41015
41016         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41017         test for conforming inttypes.h is both announced and cached.
41018
41019         * MODULES.html.sh (seen_modules, seen_files): New variables.
41020         (func_module): Rewrite to use a few less gnulib-tool and sed
41021         invocations.  Avoid a couple of quadratic algorithms for ...
41022         (missed_modules, missed_files): ... these, with ...
41023         (func_append, func_tmpdir): ... these new functions, from
41024         gnulib-tool.  Analogously, install traps for cleanup.
41025
41026         * tests/test-gc.c (main): Remove unused variables.
41027         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41028
41029 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41030
41031         * modules/inttostr (License): Change to LGPL.
41032
41033 2006-11-14  Eric Blake  <ebb9@byu.net>
41034
41035         * modules/tempname (License): Change to LGPL.
41036
41037 2006-11-14  Eric Blake  <ebb9@byu.net>
41038
41039         * doc/functions.texi (Function Portability): *printf functions on
41040         Cygwin now understand all POSIX size specifiers.
41041
41042 2006-11-14  Bruno Haible  <bruno@clisp.org>
41043
41044         * modules/c-ctype (License): Change to LGPL.
41045
41046 2006-11-12  Bruno Haible  <bruno@clisp.org>
41047
41048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41049         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41050         for GNOME libraries, for which the include files are installed in
41051         subdirectories of $prefix/include.
41052
41053 2006-11-12  Bruno Haible  <bruno@clisp.org>
41054
41055         * m4/lib-link.m4: Require at least autoconf-2.54.
41056         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41057         name to underscores for the --with option.
41058
41059 2006-11-13  Bruno Haible  <bruno@clisp.org>
41060
41061         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41062         the tests directory.
41063         Reported by Ralf Wildenhues.
41064
41065 2006-11-13  Bruno Haible  <bruno@clisp.org>
41066
41067         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41068         (func_emit_initmacro_end): Undo the override here.
41069         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41070         Works around the famous automake error in coreutils.
41071
41072 2006-11-13  Eric Blake  <ebb9@byu.net>
41073
41074         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41075         element, not its node.
41076
41077 2006-11-12  Bruno Haible  <bruno@clisp.org>
41078
41079         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41080         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41081
41082 2006-11-12  Bruno Haible  <bruno@clisp.org>
41083
41084         * gnulib-tool: New option --local-symlink.
41085         (func_usage): Document it.
41086         (lsymbolic): New variable.
41087         (func_import, func_create_testdir): If --symlink was not specified,
41088         test whether --local-symlink was specified and the file comes from
41089         the local_gnulib_dir.
41090
41091 2006-11-12  Bruno Haible  <bruno@clisp.org>
41092
41093         * gnulib-tool (func_ln): New function.
41094         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41095
41096 2006-11-12  Bruno Haible  <bruno@clisp.org>
41097
41098         Finish support for source files in subdirectories.
41099         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41100         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41101         AUTOMAKE_OPTIONS.
41102         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41103
41104 2006-11-12  Bruno Haible  <bruno@clisp.org>
41105
41106         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41107         EXTRA_lib_SOURCES augmentation.
41108         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41109
41110 2006-11-12  Jim Meyering  <jim@meyering.net>
41111
41112         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41113         file descriptors.  This also averts a failure on systems with
41114         native openat support when a traversed directory lacks "x" access.
41115         * lib/fts_.h: Include "i-ring.h"
41116         (struct FTS) [fts_fd_ring]: New member.
41117         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41118         (FCHDIR): Add parentheses.
41119         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41120         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41121         When descending, rather than simply closing the previous
41122         fts_cwd_fd value, push that file descriptor onto the ring.
41123         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41124         (fts_open): Initialize the new fd_ring member.
41125         (fts_close): Clear the ring.
41126         (fts_safe_changedir): When possible, use our new fd_ring to skip
41127         the diropen and fstat and dev/ino comparison that would normally
41128         accompany a virtual `chdir ("..")'.
41129
41130         * modules/fts (Depends-on): Add i-ring.
41131         * modules/i-ring: New module.
41132         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41133         * m4/i-ring.m4: New file.
41134
41135 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41136
41137         * gnulib-tool (func_create_testdir): Fix replacement of
41138         `build-aux' in configure.ac.  Run autotools in gltests
41139         subdirectory.
41140         (func_create_testdir, func_create_megatestdir, test): There is
41141         no need for '--force' in most autotool invocations in a new
41142         tree.  Actually fail the whole test if any of the tools, or the
41143         configure or make stages fail.
41144
41145         Sync from Automake.
41146         * build-aux/gnupload: Revert last change.  Add pointer to upload
41147         instructions of the GNU Maintenance Instructions.
41148         Suggestion by Karl Berry.
41149
41150 2006-11-10  Jim Meyering  <jim@meyering.net>
41151
41152         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41153
41154 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41155
41156         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41157         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41158         (bind_textdomain_codeset) [! ENABLE_NLS]:
41159         Evaluate all the arguments.  That way, callers get compatible behavior
41160         if the arguments have side effects.  Also, it avoids some GCC
41161         diagnostics in some cases; Joel E. Denny reported problems when Bison
41162         was configured with --enable-gcc-warnigs.
41163
41164 2006-11-10  Jim Meyering  <jim@meyering.net>
41165
41166         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41167         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41168         account.
41169
41170 2006-11-10  Jim Meyering  <jim@meyering.net>
41171
41172         * modules/inline: New file/module.
41173         * modules/xalloc (Files): Remove m4/inline.m4.
41174         (Depends-on): Add inline, instead.
41175         * modules/oset: Likewise.
41176         * modules/list: Likewise.
41177
41178 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41179
41180         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41181         Problem reported by Matthew Woehlke.
41182
41183 2006-11-09  Bruno Haible  <bruno@clisp.org>
41184
41185         * lib/tempname.c (gen_tempname): Remove variant that invokes
41186         __gen_tempname.
41187         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41188         __gen_tempname.
41189
41190 2006-11-08  Bruno Haible  <bruno@clisp.org>
41191
41192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41193         to 'yes' instead of 'cross-compiling'.
41194
41195 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41196
41197         * lib/quotearg.h (quotearg_free): New decl.
41198         * lib/quotearg.c (quotearg_free): New function.
41199         (slot0, nslots, slotvec0, slotvec):
41200         Now file-scope so that quotearg_free can get at them.
41201
41202 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41203
41204         Sync from Automake.
41205         * build-aux/gnupload: Add missing 'gnu' to example URL.
41206         Report by Karl Berry.
41207
41208 2006-11-08  Bruno Haible  <bruno@clisp.org>
41209
41210         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41211         Suggested by Paul Eggert.
41212
41213 2006-11-08  Jim Meyering  <jim@meyering.net>
41214
41215         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41216         It's already included if !_LIBC.
41217         (fts_safe_changedir): Add a comment.
41218
41219 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41220
41221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41222         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41223         Matthew Woehlke.
41224
41225         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41226         definitions up, to avoid colliding with change below.
41227         (static_inline) [HAVE_INLINE]: New macro.
41228         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41229         Provide extern decls when !HAVE_INLINE.  Do not define unless
41230         static_inline is defined, either by us or by xmalloc.c.  Use
41231         static_inline rather than static inline.
41232         (XCALLOC): Optimize sizeof(T) = 1 case.
41233         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41234
41235 2006-11-07  Bruno Haible  <bruno@clisp.org>
41236
41237         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41239         AC_C_INLINE.
41240         * modules/xalloc (Files): Add m4/inline.m4.
41241
41242 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41243
41244         * README: Fix typo.
41245         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41246         (Miscellanous Notes): ...from this.
41247
41248 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41249
41250         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41251         Mention that offsetof should be used instead of sizeof.
41252         From Bruno Haible.
41253
41254 2006-11-07  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41257
41258 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41259
41260         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41261         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41262         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41263         (gl_tree_add_before, gl_tree_add_after):
41264         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41265         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41266         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41268         (gl_linked_add_after, gl_linked_add_at): Likewise.
41269         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41270         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41271         (gl_tree_add_before, gl_tree_add_after): Likewise.
41272         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41273         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41274         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41275
41276 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41277
41278         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41279
41280 2006-11-06  Bruno Haible  <bruno@clisp.org>
41281
41282         * m4/inline.m4: New file.
41283         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41284         * modules/list (Files): Add m4/inline.m4.
41285         * modules/oset (Files): Likewise.
41286
41287 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41288
41289         * lib/idcache.c: Include <stddef.h>, for offsetof.
41290         (struct userid.name): Change from char * to a flexible array member.
41291         All uses changed.
41292         * modules/idcache (Depends-on): Add flexmember.
41293
41294         * MODULES.html.sh (Core language properties): New module flexmember.
41295         * modules/flexmember, m4/flexmember.m4: New files.
41296
41297         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41298         inline functions that are identical with the old xnmalloc_inline,
41299         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41300         that we can avoid some unnecessary integer multiplications and
41301         divisions in the common case where the element size is known at
41302         compile time.
41303         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41304         needed.
41305         (xnboundedmalloc): Remove.
41306         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41307         arguments, for consistency with rest of this header.
41308         (xcharalloc): Rewrite using XNMALLOC.
41309         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41310         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41311         versions have been moved to lib/xalloc.h and renamed to be the
41312         non-*_inline versions.
41313         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41314         and xnrealloc functions, since those functions are now inline and
41315         now call us.
41316         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41317         renaming described above.
41318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41319         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41320         captures the dependency in AC_C_INLINE.
41321
41322         New module canonicalize-lgpl, proposed by Charles Wilson in
41323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41324         with a few small changes afterwards.
41325         * MODULES.html.sh (File system functions): New module
41326         canonicalize-lgpl.
41327         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41328         and canonicalize_file_name.
41329         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41330         * modules/canonicalize-lgpl: New files.
41331
41332 2006-11-05  Bruno Haible  <bruno@clisp.org>
41333
41334         * gnulib-tool (func_import, func_create_testdir): Create directories
41335         also for files in subdirectories of lib/.
41336
41337 2006-11-05  Bruno Haible  <bruno@clisp.org>
41338
41339         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41340         ANSI C compliant.
41341
41342 2006-11-03  Bruno Haible  <bruno@clisp.org>
41343
41344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41345         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41346         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41347         (xnboundedmalloc): New inline function.
41348         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41349         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41350         xmalloc.
41351         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41352         xmalloc.
41353         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41354         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41355         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41356         xmalloc.
41357         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41358         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41359         xmalloc.
41360         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41361         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41362         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41363         xmalloc.
41364         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41365         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41366         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41367         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41368         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41369         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41370         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41371
41372 2006-11-03  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/c-ctype.h [C++]: Define functions without name mangling.
41375         * lib/fwriteerror.h [C++]: Likewise.
41376         * lib/gcd.h [C++]: Likewise.
41377         * lib/linebreak.h [C++]: Likewise.
41378
41379 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41380
41381         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41382         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41383         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41385         Check for functions and headers just once.
41386         Check for declaration of canonicalize_file_name.
41387         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41388
41389 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41390
41391         * gnulib-tool (func_import): Fix typo in actioncmd.
41392
41393 2006-11-02  Bruno Haible  <bruno@clisp.org>
41394
41395         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41396         newline sequence in the Makefile.am snippet as a space, like "make"
41397         does.
41398         Reported by Roger Persson <perrog@gmail.com>.
41399
41400 2006-11-01  Bruno Haible  <bruno@clisp.org>
41401
41402         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41403         already declared in <string.h>.
41404         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41405
41406 2006-11-01  Bruno Haible  <bruno@clisp.org>
41407
41408         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41409         * lib/strcase.h: Include <string.h>.
41410         (strcasecmp): Define to rpl_strcasecmp here.
41411
41412 2006-11-01  Bruno Haible  <bruno@clisp.org>
41413
41414         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41415
41416 2006-11-01  Eric Blake  <ebb9@byu.net>
41417
41418         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41419
41420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41421
41422 2006-10-29  Bruno Haible  <bruno@clisp.org>
41423
41424         Make it compile in C++ mode.
41425         * lib/full-write.c (full_rw): Add a cast.
41426
41427 2006-11-01  Bruno Haible  <bruno@clisp.org>
41428
41429         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41430         be POSIX compliant.
41431         Reported by Roger Persson <perrog@gmail.com>.
41432
41433 2006-11-01  Eric Blake  <ebb9@byu.net>
41434
41435         * lib/getopt_.h: Fix comments.
41436
41437 2006-10-31  Eric Blake  <ebb9@byu.net>
41438
41439         * modules/tmpdir (Depends-on): Add sys_stat.
41440         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41441         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41442         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41443         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41444         tempname.
41445
41446 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41447
41448         Avoid some C++ diagnostics reported by Bruno Haible.
41449         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41450         xmalloc.
41451         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41452         (struct slotvec): Move to top level.
41453         (quotearg_n_options): Rewrite to avoid xmalloc.
41454         * lib/xalloc.h (xcharalloc): New function.
41455         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41456         [defined __cplusplus]: Add function template that provides result
41457         type propagation.  This part of the change is from Bruno Haible.
41458
41459 2006-10-29  Bruno Haible  <bruno@clisp.org>
41460
41461         Make it compile in C++ mode.
41462         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41463         * lib/strnlen1.c (strnlen1): Cast memchr result.
41464         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41465         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41466         (create_temp_dir): Rename local variable 'template'.
41467         (compile_csharp_using_sscli): Add cast.
41468         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41469         * lib/findprog.c (find_in_path): Likewise.
41470         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41471         * lib/wait-process.c (register_slave_subprocess): Likewise.
41472
41473 2006-10-22  Bruno Haible  <bruno@clisp.org>
41474
41475         * modules/tsearch: New file.
41476         * lib/tsearch.h: New file.
41477         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41478         * m4/tsearch.m4: New file.
41479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41480
41481 2006-10-29  Eric Blake  <ebb9@byu.net>
41482
41483         * lib/arcfour.c: Assume config.h.
41484         * lib/arctwo.c: Likewise.
41485         * lib/base64.c: Likewise.
41486         * lib/check-version.c: Likewise.
41487         * lib/crc.c: Likewise.
41488         * lib/des.c: Likewise.
41489         * lib/gc-gnulib.c: Likewise.
41490         * lib/gc-libgcrypt.c: Likewise.
41491         * lib/gc-pbkdf2-sha1.c: Likewise.
41492         * lib/getaddrinfo.c: Likewise.
41493         * lib/getdelim.c: Likewise.
41494         * lib/getline.c: Likewise.
41495         * lib/hmac-md5.c: Likewise.
41496         * lib/hmac-sha1.c: Likewise.
41497         * lib/iconvme.c: Likewise.
41498         * lib/md2.c: Likewise.
41499         * lib/md4.c: Likewise.
41500         * lib/memxor.c: Likewise.
41501         * lib/read-file.c: Likewise.
41502         * lib/readline.c: Likewise.
41503         * lib/rijndael-alg-fst.c: Likewise.
41504         * lib/rijndael-api-fst.c: Likewise.
41505         * lib/xgetdomainname.c: Likewise.
41506
41507 2006-10-28  Eric Blake  <ebb9@byu.net>
41508
41509         * lib/xstrndup.c: Assume config.h.
41510
41511 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41512
41513         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41514         stat-macros.h is now for our own macros, whereas stat_h is for
41515         macros in the <sys/stat.h> name space.
41516         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41517         (STAT_MACROS_H): Remove.
41518         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41519         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41520         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41521         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41522         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41523         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41524         Move these macros to ...
41525         * lib/stat_.h: here.  Don't include stat-macros.h.
41526         * lib/canonicalize.c: Don't include stat-macros.h.
41527         * lib/chown.c: Likewise.
41528         * lib/euidaccess.c: Likewise.
41529         * lib/file-type.c: Likewise.
41530         * lib/filemode.c: Likewise.
41531         * lib/glob.c: Likewise.
41532         * lib/isapipe.c: Likewise.
41533         * lib/lchown.c: Likewise.
41534         * lib/lstat.c: Likewise.
41535         * lib/mkdir-p.c: Likewise.
41536         * lib/rmdir.c: Likewise.
41537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41539         unless mkdir isn't declared, to speed up 'configure'.
41540         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41541         would define all the S_* symbols.
41542         * modules/canonicalize (Depends-on):
41543         Depend on sys_stat, not stat-macros.
41544         * modules/chown: Likewise.
41545         * modules/euidaccess: Likewise.
41546         * modules/filemode: Likewise.
41547         * modules/file-type: Likewise.
41548         * modules/glob: Likewise.
41549         * modules/isapipe: Likewise.
41550         * modules/lchown: Likewise.
41551         * modules/lstat: Likewise.
41552         * modules/mkancesdirs: Likewise.
41553         * modules/rmdir: Likewise.
41554         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41555         * modules/modechange: Likewise.
41556         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41557         (configure.ac): Remove gl_STAT_MACROS.
41558         * modules/sys_stat (Depends-on): Remove stat-macros.
41559
41560 2006-10-27  Bruno Haible  <bruno@clisp.org>
41561
41562         * m4/signed.m4: Remove file.
41563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41564         invocation.
41565         * modules/vasnprintf (Files): Remove m4/signed.m4.
41566
41567 2006-10-27  Bruno Haible  <bruno@clisp.org>
41568
41569         Update to GNU gettext 0.16.
41570         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41571         m4/inttypes-h.m4, m4/signed.m4.
41572         * m4/gettext.m4: Update to GNU gettext 0.16.
41573         * m4/intl.m4: New file, from GNU gettext.
41574         * m4/intldir.m4: New file, from GNU gettext.
41575         * config/srclist.txt: Update
41576
41577 2006-10-27  Eric Blake  <ebb9@byu.net>
41578
41579         * MODULES.html.sh: Document tempname.
41580         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41581         dependencies.
41582         (Files): Move lib/tempname.c...
41583         * modules/tempname: ...to this new module.
41584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41585         (gl_PREREQ_TEMPNAME): Move...
41586         * m4/tempname.m4: ...to this new file.
41587         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41588         * modules/sys_stat (Depends-on): Add stat-macros.
41589         * lib/stat_.h (includes): Pick up stat macros.
41590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41591         if stat macros are broken.
41592         * lib/tempname.c (includes): No need to include "stat-macros.h".
41593         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41594         (direxists, __path_search) [!_LIBC]: Don't compile these in
41595         gnulib; the tmpdir module covers that.
41596         * lib/tempname.h: New file.
41597
41598 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41599
41600         * COPYING: Explain how gnulib-tool converts licence headers.
41601         Almost all wording by Eric Blake.
41602
41603 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41604
41605         * lib/mbchar.h (is_basic_table): Make read-only.
41606         * lib/mbchar.c (is_basic_table): Likewise.
41607         Reported by John Darrington.
41608
41609 2006-10-25  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/progname.h (set_program_name): Undefine before defining.
41612
41613 2006-10-25  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41616         false for non-gcc C++ compilers.
41617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41618
41619 2006-10-24  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41622         iconv implementations like Irix iconv.
41623
41624 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41625
41626         * modules/vararrays: New file.
41627         * m4/vararrays.m4: New file, taken from diffutils.
41628         * MODULES.html.sh: New module vararrays.
41629
41630 2006-10-24  Karl Berry  <karl@gnu.org>
41631
41632         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41633         Don't call GNU Unix.
41634
41635 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41636
41637         * users.txt: Add Libtool.
41638
41639         Sync from Libtool:
41640
41641         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41642
41643         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41644         to gnulib's policy of including config.h unconditionally.
41645
41646 2006-10-24  Bruno Haible  <bruno@clisp.org>
41647
41648         * modules/wcwidth (Files): Add m4/wint_t.m4.
41649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41650         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41651
41652 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41653
41654         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41655         to pacify GCC with some -W flags enabled.  Problem reported by
41656         Bruno Haible.
41657
41658 2006-10-24  Jim Meyering  <jim@meyering.net>
41659
41660         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41661         Reported by Karl Berry.
41662
41663 2006-10-23  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41666
41667 2006-10-24  Bruno Haible  <bruno@clisp.org>
41668
41669         * lib/gl_list.h: Use C comment style, not C++ comment style.
41670
41671 2006-10-23  Eric Blake  <ebb9@byu.net>
41672
41673         * lib/getaddrinfo.c (includes): Add missing include.
41674
41675 2006-10-23  Bruno Haible  <bruno@clisp.org>
41676             Paul Eggert  <eggert@cs.ucla.edu>
41677
41678         Ability to rename obstack_free.
41679         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41680         obstack_free.
41681         (obstack_free): Invoke the __obstack_free macro.
41682         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41683
41684 2006-10-23  Bruno Haible  <bruno@clisp.org>
41685             Paul Eggert  <eggert@cs.ucla.edu>
41686
41687         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41688         __argc, __argv from the declaration. (They are defined as macros on
41689         mingw.)
41690
41691 2006-10-22  Bruno Haible  <bruno@clisp.org>
41692
41693         * doc/gnulib-intro.texi: New file.
41694         * doc/gnulib.texi: Include it.
41695
41696 2006-10-21  Bruno Haible  <bruno@clisp.org>
41697
41698         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41699         "Introduction", "Miscellanous Notes", "Particular Modules".
41700
41701 2006-10-21  Bruno Haible  <bruno@clisp.org>
41702
41703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41704         Change mostlyclean-local rule to avoid sh syntax error from bash
41705         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41706
41707 2006-10-23  Jim Meyering  <jim@meyering.net>
41708
41709         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41710         in place of snprintf.
41711
41712         * modules/inttostr (Files): Add lib/uinttostr.c.
41713         * lib/uinttostr.c (inttostr): New file/function.
41714         * lib/inttostr.h (uinttostr): Declare.
41715         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41716         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41717         Add uinttostr.
41718         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41719
41720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41721
41722         * lib/canonicalize.c (ELOOP): Define if not already defined.
41723         Problem reported by Bruno Haible in
41724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41725
41726 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41727
41728         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41729         Problem reported by Perry Smith and Ville Laurikari.
41730
41731         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41732         uses.
41733
41734 2006-10-19  Bruno Haible  <bruno@clisp.org>
41735
41736         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41737         for mingw.
41738
41739 2006-10-19  Bruno Haible  <bruno@clisp.org>
41740
41741         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41742         Needed for mingw.
41743
41744 2006-10-19  Bruno Haible  <bruno@clisp.org>
41745
41746         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41747
41748 2006-10-19  Bruno Haible  <bruno@clisp.org>
41749
41750         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41751         it.
41752
41753 2006-10-19  Bruno Haible  <bruno@clisp.org>
41754
41755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41756         invocation.
41757
41758 2006-10-19  Bruno Haible  <bruno@clisp.org>
41759
41760         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41761         mountlist by default.
41762
41763 2006-10-16  Bruno Haible  <bruno@clisp.org>
41764
41765         * lib/c-strstr.c: Include c-strstr.h.
41766
41767 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41768
41769         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41770         in a slash.
41771
41772 2006-10-18  Bruno Haible  <bruno@clisp.org>
41773
41774         * lib/lock.h [C++]: Wrap definitions in extern "C".
41775
41776 2006-10-18  Bruno Haible  <bruno@clisp.org>
41777
41778         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41779         gl_LIBOBJS list.
41780
41781 2006-10-18  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41784
41785 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41786
41787         * lib/xstrtol.h: Include gettext.h.
41788         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41789         Problem reported by Eric Blake.
41790         * modules/xstrtol (Depends-on): Add gettext-h.
41791
41792 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41793
41794         * lib/strftime.c (advance): New macro.
41795         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41796         incomplete type, so you can't add 0 to it.  Problem and patch
41797         reported by Eelco Dolstra for dietlibc.
41798
41799 2006-10-18  Jim Meyering  <jim@meyering.net>
41800
41801         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41802         type for a local, and rename it: s/up/user_proc/.
41803
41804 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41805
41806         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41807         READ_UTMP_USER_PROCESS.
41808         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41809
41810 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41811
41812         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41813         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41814
41815 2006-10-17  Eric Blake  <ebb9@byu.net>
41816
41817         * lib/sigprocmask.c (sigprocmask): Fix typo.
41818
41819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41820
41821         * modules/clean-temp (Makefile.am): Don't add to make output...
41822         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41823         config.h.
41824
41825 2006-10-17  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41828         differently if DEFAULT_TEXT_DOMAIN is set.
41829
41830 2006-10-16  Bruno Haible  <bruno@clisp.org>
41831
41832         * lib/clean-temp.c: Include fwriteerror.h.
41833
41834 2006-10-16  Bruno Haible  <bruno@clisp.org>
41835
41836         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41837
41838 2006-10-16  Bruno Haible  <bruno@clisp.org>
41839
41840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41841         * lib/sigprocmask.h: Include <sys/types.h>.
41842         (sigset_t): Use the system's definition if present.
41843
41844 2006-10-17  Eric Blake  <ebb9@byu.net>
41845
41846         * lib/xvasprintf.c (includes): Assume config.h.
41847         * lib/xasprintf.c (includes): Likewise.
41848
41849 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41850
41851         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41852         at least as wide as intmax_t.
41853
41854 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41855
41856         (Imported from Automake.)
41857         * build-aux/gnupload: Update to version 1.1 of directive file.
41858
41859 2006-10-16  Eric Blake  <ebb9@byu.net>
41860
41861         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41862         match Automake 1.10a.
41863
41864 2006-10-14  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/sigprocmask: New file.
41867         * lib/sigprocmask.h: New file.
41868         * lib/sigprocmask.c: New file.
41869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41870         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41871         request sigprocmask.o.
41872         (gl_PREREQ_SIGPROCMASK): New macro.
41873         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41874         (Depends-on): Add sigprocmask.
41875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41876         gt_SIGNALBLOCKING. Test for 'raise' only once.
41877         * lib/fatal-signal.c: Include sigprocmask.h.
41878         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41879         unblock_fatal_signals): Define always.
41880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41881         sigprocmask.
41882
41883 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41884
41885         Sync from Automake.
41886         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41887         which incorrectly sets the mode of an existing destination
41888         directory.  In some cases the unpatched install-sh could do the
41889         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41890         system.  We hope this is rare in practice, but it's clearly worth
41891         fixing.  Problem reported by Alex Unleashed in
41892         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41893         Also, don't bother to check for -m bugs unless we're using -m;
41894         suggested by Stepan Kasal.
41895
41896 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41897
41898         Sync from Automake.
41899         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41900         `-c' flag, so they appear at the same position as in %FASTDEP%
41901         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41902         which ignores unknown options only after the first non-option.
41903         Bug report against M4 by Nelson H. F. Beebe.
41904
41905 2006-10-13  Jim Meyering  <jim@meyering.net>
41906
41907         Fix a bug in yesterday's change.
41908         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41909         p->fts_statp->st_dev would be used uninitialized.
41910         Ensures that we always call fts_stat on the very first entry.
41911         Miklos Szeredi reported that find -xdev stopped working.
41912
41913 2006-10-12  Bruno Haible  <bruno@clisp.org>
41914
41915         * gnulib-tool (func_get_automake_snippet): Append an automatically
41916         computed EXTRA_DIST augmentation.
41917         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41918         * modules/alloca-opt (Makefile.am): Likewise.
41919         * modules/allocsa (Makefile.am): Likewise.
41920         * modules/arcfour (Makefile.am): Likewise.
41921         * modules/arctwo (Makefile.am): Likewise.
41922         * modules/argmatch (Makefile.am): Likewise.
41923         * modules/argz (Makefile.am): Likewise.
41924         * modules/atexit (Makefile.am): Likewise.
41925         * modules/backupfile (Makefile.am): Likewise.
41926         * modules/byteswap (Makefile.am): Likewise.
41927         * modules/c-strtod (Makefile.am): Likewise.
41928         * modules/c-strtold (Makefile.am): Likewise.
41929         * modules/calloc (Makefile.am): Likewise.
41930         * modules/canon-host (Makefile.am): Likewise.
41931         * modules/canonicalize (Makefile.am): Likewise.
41932         * modules/chdir-long (Makefile.am): Likewise.
41933         * modules/chdir-safer (Makefile.am): Likewise.
41934         * modules/check-version (Makefile.am): Likewise.
41935         * modules/chown (Makefile.am): Likewise.
41936         * modules/cloexec (Makefile.am): Likewise.
41937         * modules/close-stream (Makefile.am): Likewise.
41938         * modules/closeout (Makefile.am): Likewise.
41939         * modules/crc (Makefile.am): Likewise.
41940         * modules/csharpexec (Makefile.am): Likewise.
41941         * modules/cycle-check (Makefile.am): Likewise.
41942         * modules/des (Makefile.am): Likewise.
41943         * modules/dev-ino (Makefile.am): Likewise.
41944         * modules/dirfd (Makefile.am): Likewise.
41945         * modules/dirname (Makefile.am): Likewise.
41946         * modules/dup2 (Makefile.am): Likewise.
41947         * modules/eealloc (Makefile.am): Likewise.
41948         * modules/error (Makefile.am): Likewise.
41949         * modules/euidaccess (Makefile.am): Likewise.
41950         * modules/exclude (Makefile.am): Likewise.
41951         * modules/exitfail (Makefile.am): Likewise.
41952         * modules/fcntl-safer (Makefile.am): Likewise.
41953         * modules/fcntl (Makefile.am): Likewise.
41954         * modules/file-type (Makefile.am): Likewise.
41955         * modules/fileblocks (Makefile.am): Likewise.
41956         * modules/filemode (Makefile.am): Likewise.
41957         * modules/filenamecat (Makefile.am): Likewise.
41958         * modules/fnmatch (Makefile.am): Likewise.
41959         * modules/fopen-safer (Makefile.am): Likewise.
41960         * modules/fpending (Makefile.am): Likewise.
41961         * modules/fprintftime (Makefile.am): Likewise.
41962         * modules/free (Makefile.am): Likewise.
41963         * modules/fsusage (Makefile.am): Likewise.
41964         * modules/ftruncate (Makefile.am): Likewise.
41965         * modules/fts (Makefile.am): Likewise.
41966         * modules/gc-arcfour (Makefile.am): Likewise.
41967         * modules/gc-des (Makefile.am): Likewise.
41968         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41969         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41970         * modules/gc-md4 (Makefile.am): Likewise.
41971         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41972         * modules/gc-sha1 (Makefile.am): Likewise.
41973         * modules/gc (Makefile.am): Likewise.
41974         * modules/getaddrinfo (Makefile.am): Likewise.
41975         * modules/getcwd (Makefile.am): Likewise.
41976         * modules/getdelim (Makefile.am): Likewise.
41977         * modules/getdomainname (Makefile.am): Likewise.
41978         * modules/getgroups (Makefile.am): Likewise.
41979         * modules/gethostname (Makefile.am): Likewise.
41980         * modules/gethrxtime (Makefile.am): Likewise.
41981         * modules/getline (Makefile.am): Likewise.
41982         * modules/getloadavg (Makefile.am): Likewise.
41983         * modules/getlogin_r (Makefile.am): Likewise.
41984         * modules/getndelim2 (Makefile.am): Likewise.
41985         * modules/getopt (Makefile.am): Likewise.
41986         * modules/getpagesize (Makefile.am): Likewise.
41987         * modules/getpass-gnu (Makefile.am): Likewise.
41988         * modules/getpass (Makefile.am): Likewise.
41989         * modules/getsubopt (Makefile.am): Likewise.
41990         * modules/gettime (Makefile.am): Likewise.
41991         * modules/gettimeofday (Makefile.am): Likewise.
41992         * modules/getugroups (Makefile.am): Likewise.
41993         * modules/getusershell (Makefile.am): Likewise.
41994         * modules/glob (Makefile.am): Likewise.
41995         * modules/group-member (Makefile.am): Likewise.
41996         * modules/hard-locale (Makefile.am): Likewise.
41997         * modules/hash (Makefile.am): Likewise.
41998         * modules/hmac-md5 (Makefile.am): Likewise.
41999         * modules/hmac-sha1 (Makefile.am): Likewise.
42000         * modules/human (Makefile.am): Likewise.
42001         * modules/idcache (Makefile.am): Likewise.
42002         * modules/imaxabs (Makefile.am): Likewise.
42003         * modules/imaxdiv (Makefile.am): Likewise.
42004         * modules/inet_ntop (Makefile.am): Likewise.
42005         * modules/inet_pton (Makefile.am): Likewise.
42006         * modules/intprops (Makefile.am): Likewise.
42007         * modules/inttostr (Makefile.am): Likewise.
42008         * modules/inttypes (Makefile.am): Likewise.
42009         * modules/isapipe (Makefile.am): Likewise.
42010         * modules/javaversion (Makefile.am): Likewise.
42011         * modules/lchmod (Makefile.am): Likewise.
42012         * modules/lchown (Makefile.am): Likewise.
42013         * modules/localcharset (Makefile.am): Likewise.
42014         * modules/long-options (Makefile.am): Likewise.
42015         * modules/lstat (Makefile.am): Likewise.
42016         * modules/malloc (Makefile.am): Likewise.
42017         * modules/mathl (Makefile.am): Likewise.
42018         * modules/mbchar (Makefile.am): Likewise.
42019         * modules/md2 (Makefile.am): Likewise.
42020         * modules/md4 (Makefile.am): Likewise.
42021         * modules/md5 (Makefile.am): Likewise.
42022         * modules/memcasecmp (Makefile.am): Likewise.
42023         * modules/memchr (Makefile.am): Likewise.
42024         * modules/memcmp (Makefile.am): Likewise.
42025         * modules/memcoll (Makefile.am): Likewise.
42026         * modules/memcpy (Makefile.am): Likewise.
42027         * modules/memmem (Makefile.am): Likewise.
42028         * modules/memmove (Makefile.am): Likewise.
42029         * modules/mempcpy (Makefile.am): Likewise.
42030         * modules/memrchr (Makefile.am): Likewise.
42031         * modules/memset (Makefile.am): Likewise.
42032         * modules/memxor (Makefile.am): Likewise.
42033         * modules/mkancesdirs (Makefile.am): Likewise.
42034         * modules/mkdir-p (Makefile.am): Likewise.
42035         * modules/mkdir (Makefile.am): Likewise.
42036         * modules/mkdtemp (Makefile.am): Likewise.
42037         * modules/mkstemp (Makefile.am): Likewise.
42038         * modules/mktime (Makefile.am): Likewise.
42039         * modules/modechange (Makefile.am): Likewise.
42040         * modules/mountlist (Makefile.am): Likewise.
42041         * modules/nanosleep (Makefile.am): Likewise.
42042         * modules/obstack (Makefile.am): Likewise.
42043         * modules/openat (Makefile.am): Likewise.
42044         * modules/pagealign_alloc (Makefile.am): Likewise.
42045         * modules/pathmax (Makefile.am): Likewise.
42046         * modules/physmem (Makefile.am): Likewise.
42047         * modules/poll (Makefile.am): Likewise.
42048         * modules/posixtm (Makefile.am): Likewise.
42049         * modules/posixver (Makefile.am): Likewise.
42050         * modules/putenv (Makefile.am): Likewise.
42051         * modules/quote (Makefile.am): Likewise.
42052         * modules/quotearg (Makefile.am): Likewise.
42053         * modules/raise (Makefile.am): Likewise.
42054         * modules/read-file (Makefile.am): Likewise.
42055         * modules/readline (Makefile.am): Likewise.
42056         * modules/readlink (Makefile.am): Likewise.
42057         * modules/readtokens (Makefile.am): Likewise.
42058         * modules/readutmp (Makefile.am): Likewise.
42059         * modules/realloc (Makefile.am): Likewise.
42060         * modules/regex (Makefile.am): Likewise.
42061         * modules/rename-dest-slash (Makefile.am): Likewise.
42062         * modules/rename (Makefile.am): Likewise.
42063         * modules/rijndael (Makefile.am): Likewise.
42064         * modules/rmdir (Makefile.am): Likewise.
42065         * modules/rpmatch (Makefile.am): Likewise.
42066         * modules/safe-read (Makefile.am): Likewise.
42067         * modules/safe-write (Makefile.am): Likewise.
42068         * modules/same-inode (Makefile.am): Likewise.
42069         * modules/same (Makefile.am): Likewise.
42070         * modules/save-cwd (Makefile.am): Likewise.
42071         * modules/savedir (Makefile.am): Likewise.
42072         * modules/setenv (Makefile.am): Likewise.
42073         * modules/settime (Makefile.am): Likewise.
42074         * modules/sha1 (Makefile.am): Likewise.
42075         * modules/sig2str (Makefile.am): Likewise.
42076         * modules/snprintf (Makefile.am): Likewise.
42077         * modules/stat-macros (Makefile.am): Likewise.
42078         * modules/stat-time (Makefile.am): Likewise.
42079         * modules/stdbool (Makefile.am): Likewise.
42080         * modules/stdint (Makefile.am): Likewise.
42081         * modules/stdlib-safer (Makefile.am): Likewise.
42082         * modules/stpcpy (Makefile.am): Likewise.
42083         * modules/stpncpy (Makefile.am): Likewise.
42084         * modules/strcase (Makefile.am): Likewise.
42085         * modules/strcasestr (Makefile.am): Likewise.
42086         * modules/strchrnul (Makefile.am): Likewise.
42087         * modules/strcspn (Makefile.am): Likewise.
42088         * modules/strdup (Makefile.am): Likewise.
42089         * modules/strerror (Makefile.am): Likewise.
42090         * modules/strftime (Makefile.am): Likewise.
42091         * modules/strndup (Makefile.am): Likewise.
42092         * modules/strnlen (Makefile.am): Likewise.
42093         * modules/strpbrk (Makefile.am): Likewise.
42094         * modules/strsep (Makefile.am): Likewise.
42095         * modules/strstr (Makefile.am): Likewise.
42096         * modules/strtod (Makefile.am): Likewise.
42097         * modules/strtoimax (Makefile.am): Likewise.
42098         * modules/strtok_r (Makefile.am): Likewise.
42099         * modules/strtol (Makefile.am): Likewise.
42100         * modules/strtoll (Makefile.am): Likewise.
42101         * modules/strtoul (Makefile.am): Likewise.
42102         * modules/strtoull (Makefile.am): Likewise.
42103         * modules/strtoumax (Makefile.am): Likewise.
42104         * modules/strverscmp (Makefile.am): Likewise.
42105         * modules/sys_socket (Makefile.am): Likewise.
42106         * modules/sys_stat (Makefile.am): Likewise.
42107         * modules/sysexits (Makefile.am): Likewise.
42108         * modules/time_r (Makefile.am): Likewise.
42109         * modules/timegm (Makefile.am): Likewise.
42110         * modules/timespec (Makefile.am): Likewise.
42111         * modules/tmpfile-safer (Makefile.am): Likewise.
42112         * modules/trim (Makefile.am): Likewise.
42113         * modules/unistd-safer (Makefile.am): Likewise.
42114         * modules/unlinkdir (Makefile.am): Likewise.
42115         * modules/unlocked-io (Makefile.am): Likewise.
42116         * modules/userspec (Makefile.am): Likewise.
42117         * modules/utime (Makefile.am): Likewise.
42118         * modules/utimecmp (Makefile.am): Likewise.
42119         * modules/utimens (Makefile.am): Likewise.
42120         * modules/vasnprintf (Makefile.am): Likewise.
42121         * modules/vasprintf (Makefile.am): Likewise.
42122         * modules/vsnprintf (Makefile.am): Likewise.
42123         * modules/xalloc (Makefile.am): Likewise.
42124         * modules/xgetcwd (Makefile.am): Likewise.
42125         * modules/xnanosleep (Makefile.am): Likewise.
42126         * modules/xreadlink (Makefile.am): Likewise.
42127         * modules/xstrtod (Makefile.am): Likewise.
42128         * modules/xstrtol (Makefile.am): Likewise.
42129         * modules/xstrtold (Makefile.am): Likewise.
42130         * modules/yesno (Makefile.am): Likewise.
42131         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42132
42133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42134
42135         * modules/error (Makefile.am): Distribute files through
42136         EXTRA_DIST, not lib_SOURCES.
42137
42138 2006-10-12  Eric Blake  <ebb9@byu.net>
42139
42140         * modules/error (Makefile.am): Distribute files in /lib.
42141         * modules/obstack (Makefile.am): Likewise.
42142
42143 2006-10-12  Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/acl (Makefile.am): Distribute all files in lib/ through
42146         EXTRA_DIST.
42147         * modules/arcfour (Makefile.am): Likewise.
42148         * modules/arctwo (Makefile.am): Likewise.
42149         * modules/argmatch (Makefile.am): Likewise.
42150         * modules/argz (Makefile.am): Likewise.
42151         * modules/atexit (Makefile.am): Likewise.
42152         * modules/backupfile (Makefile.am): Likewise.
42153         * modules/c-strtod (Makefile.am): Likewise.
42154         * modules/c-strtold (Makefile.am): Likewise.
42155         * modules/calloc (Makefile.am): Likewise.
42156         * modules/canon-host (Makefile.am): Likewise.
42157         * modules/canonicalize (Makefile.am): Likewise.
42158         * modules/chdir-long (Makefile.am): Likewise.
42159         * modules/chdir-safer (Makefile.am): Likewise.
42160         * modules/check-version (Makefile.am): Likewise.
42161         * modules/chown (Makefile.am): Likewise.
42162         * modules/cloexec (Makefile.am): Likewise.
42163         * modules/close-stream (Makefile.am): Likewise.
42164         * modules/closeout (Makefile.am): Likewise.
42165         * modules/crc (Makefile.am): Likewise.
42166         * modules/cycle-check (Makefile.am): Likewise.
42167         * modules/des (Makefile.am): Likewise.
42168         * modules/dirfd (Makefile.am): Likewise.
42169         * modules/dirname (Makefile.am): Likewise.
42170         * modules/dup2 (Makefile.am): Likewise.
42171         * modules/euidaccess (Makefile.am): Likewise.
42172         * modules/exclude (Makefile.am): Likewise.
42173         * modules/exitfail (Makefile.am): Likewise.
42174         * modules/fcntl-safer (Makefile.am): Likewise.
42175         * modules/file-type (Makefile.am): Likewise.
42176         * modules/fileblocks (Makefile.am): Likewise.
42177         * modules/filemode (Makefile.am): Likewise.
42178         * modules/filenamecat (Makefile.am): Likewise.
42179         * modules/fnmatch (Makefile.am): Likewise.
42180         * modules/fopen-safer (Makefile.am): Likewise.
42181         * modules/fpending (Makefile.am): Likewise.
42182         * modules/fprintftime (Makefile.am): Likewise.
42183         * modules/free (Makefile.am): Likewise.
42184         * modules/fsusage (Makefile.am): Likewise.
42185         * modules/ftruncate (Makefile.am): Likewise.
42186         * modules/fts (Makefile.am): Likewise.
42187         * modules/gc (Makefile.am): Likewise.
42188         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42189         * modules/getaddrinfo (Makefile.am): Likewise.
42190         * modules/getcwd (Makefile.am): Likewise.
42191         * modules/getdelim (Makefile.am): Likewise.
42192         * modules/getdomainname (Makefile.am): Likewise.
42193         * modules/getgroups (Makefile.am): Likewise.
42194         * modules/gethostname (Makefile.am): Likewise.
42195         * modules/gethrxtime (Makefile.am): Likewise.
42196         * modules/getline (Makefile.am): Likewise.
42197         * modules/getloadavg (Makefile.am): Likewise.
42198         * modules/getlogin_r (Makefile.am): Likewise.
42199         * modules/getopt (Makefile.am): Likewise.
42200         * modules/getpass (Makefile.am): Likewise.
42201         * modules/getpass-gnu (Makefile.am): Likewise.
42202         * modules/getsubopt (Makefile.am): Likewise.
42203         * modules/gettime (Makefile.am): Likewise.
42204         * modules/gettimeofday (Makefile.am): Likewise.
42205         * modules/getugroups (Makefile.am): Likewise.
42206         * modules/getusershell (Makefile.am): Likewise.
42207         * modules/glob (Makefile.am): Likewise.
42208         * modules/group-member (Makefile.am): Likewise.
42209         * modules/hard-locale (Makefile.am): Likewise.
42210         * modules/hash (Makefile.am): Likewise.
42211         * modules/hmac-md5 (Makefile.am): Likewise.
42212         * modules/hmac-sha1 (Makefile.am): Likewise.
42213         * modules/human (Makefile.am): Likewise.
42214         * modules/idcache (Makefile.am): Likewise.
42215         * modules/imaxabs (Makefile.am): Likewise.
42216         * modules/imaxdiv (Makefile.am): Likewise.
42217         * modules/inet_ntop (Makefile.am): Likewise.
42218         * modules/inet_pton (Makefile.am): Likewise.
42219         * modules/inttostr (Makefile.am): Likewise.
42220         * modules/isapipe (Makefile.am): Likewise.
42221         * modules/lchown (Makefile.am): Likewise.
42222         * modules/long-options (Makefile.am): Likewise.
42223         * modules/lstat (Makefile.am): Likewise.
42224         * modules/malloc (Makefile.am): Likewise.
42225         * modules/mathl (Makefile.am): Likewise.
42226         * modules/mbchar (Makefile.am): Likewise.
42227         * modules/md2 (Makefile.am): Likewise.
42228         * modules/md4 (Makefile.am): Likewise.
42229         * modules/md5 (Makefile.am): Likewise.
42230         * modules/memcasecmp (Makefile.am): Likewise.
42231         * modules/memchr (Makefile.am): Likewise.
42232         * modules/memcmp (Makefile.am): Likewise.
42233         * modules/memcoll (Makefile.am): Likewise.
42234         * modules/memcpy (Makefile.am): Likewise.
42235         * modules/memmem (Makefile.am): Likewise.
42236         * modules/memmove (Makefile.am): Likewise.
42237         * modules/mempcpy (Makefile.am): Likewise.
42238         * modules/memrchr (Makefile.am): Likewise.
42239         * modules/memset (Makefile.am): Likewise.
42240         * modules/memxor (Makefile.am): Likewise.
42241         * modules/mkancesdirs (Makefile.am): Likewise.
42242         * modules/mkdir (Makefile.am): Likewise.
42243         * modules/mkdir-p (Makefile.am): Likewise.
42244         * modules/mkdtemp (Makefile.am): Likewise.
42245         * modules/mkstemp (Makefile.am): Likewise.
42246         * modules/mktime (Makefile.am): Likewise.
42247         * modules/modechange (Makefile.am): Likewise.
42248         * modules/mountlist (Makefile.am): Likewise.
42249         * modules/nanosleep (Makefile.am): Likewise.
42250         * modules/openat (Makefile.am): Likewise.
42251         * modules/pagealign_alloc (Makefile.am): Likewise.
42252         * modules/physmem (Makefile.am): Likewise.
42253         * modules/poll (Makefile.am): Likewise.
42254         * modules/posixtm (Makefile.am): Likewise.
42255         * modules/posixver (Makefile.am): Likewise.
42256         * modules/putenv (Makefile.am): Likewise.
42257         * modules/quote (Makefile.am): Likewise.
42258         * modules/quotearg (Makefile.am): Likewise.
42259         * modules/raise (Makefile.am): Likewise.
42260         * modules/read-file (Makefile.am): Likewise.
42261         * modules/readline (Makefile.am): Likewise.
42262         * modules/readlink (Makefile.am): Likewise.
42263         * modules/readtokens (Makefile.am): Likewise.
42264         * modules/readutmp (Makefile.am): Likewise.
42265         * modules/realloc (Makefile.am): Likewise.
42266         * modules/regex (Makefile.am): Likewise.
42267         * modules/rename (Makefile.am): Likewise.
42268         * modules/rename-dest-slash (Makefile.am): Likewise.
42269         * modules/rijndael (Makefile.am): Likewise.
42270         * modules/rmdir (Makefile.am): Likewise.
42271         * modules/rpmatch (Makefile.am): Likewise.
42272         * modules/safe-read (Makefile.am): Likewise.
42273         * modules/safe-write (Makefile.am): Likewise.
42274         * modules/same (Makefile.am): Likewise.
42275         * modules/save-cwd (Makefile.am): Likewise.
42276         * modules/savedir (Makefile.am): Likewise.
42277         * modules/setenv (Makefile.am): Likewise.
42278         * modules/settime (Makefile.am): Likewise.
42279         * modules/sha1 (Makefile.am): Likewise.
42280         * modules/sig2str (Makefile.am): Likewise.
42281         * modules/snprintf (Makefile.am): Likewise.
42282         * modules/stdlib-safer (Makefile.am): Likewise.
42283         * modules/stpcpy (Makefile.am): Likewise.
42284         * modules/stpncpy (Makefile.am): Likewise.
42285         * modules/strcase (Makefile.am): Likewise.
42286         * modules/strcasestr (Makefile.am): Likewise.
42287         * modules/strchrnul (Makefile.am): Likewise.
42288         * modules/strcspn (Makefile.am): Likewise.
42289         * modules/strdup (Makefile.am): Likewise.
42290         * modules/strerror (Makefile.am): Likewise.
42291         * modules/strftime (Makefile.am): Likewise.
42292         * modules/strndup (Makefile.am): Likewise.
42293         * modules/strnlen (Makefile.am): Likewise.
42294         * modules/strpbrk (Makefile.am): Likewise.
42295         * modules/strsep (Makefile.am): Likewise.
42296         * modules/strstr (Makefile.am): Likewise.
42297         * modules/strtod (Makefile.am): Likewise.
42298         * modules/strtoimax (Makefile.am): Likewise.
42299         * modules/strtok_r (Makefile.am): Likewise.
42300         * modules/strtol (Makefile.am): Likewise.
42301         * modules/strtoll (Makefile.am): Likewise.
42302         * modules/strtoul (Makefile.am): Likewise.
42303         * modules/strtoull (Makefile.am): Likewise.
42304         * modules/strtoumax (Makefile.am): Likewise.
42305         * modules/strverscmp (Makefile.am): Likewise.
42306         * modules/time_r (Makefile.am): Likewise.
42307         * modules/timegm (Makefile.am): Likewise.
42308         * modules/tmpfile-safer (Makefile.am): Likewise.
42309         * modules/unistd-safer (Makefile.am): Likewise.
42310         * modules/unlinkdir (Makefile.am): Likewise.
42311         * modules/userspec (Makefile.am): Likewise.
42312         * modules/utime (Makefile.am): Likewise.
42313         * modules/utimecmp (Makefile.am): Likewise.
42314         * modules/utimens (Makefile.am): Likewise.
42315         * modules/vasnprintf (Makefile.am): Likewise.
42316         * modules/vasprintf (Makefile.am): Likewise.
42317         * modules/vsnprintf (Makefile.am): Likewise.
42318         * modules/xalloc (Makefile.am): Likewise.
42319         * modules/xgetcwd (Makefile.am): Likewise.
42320         * modules/xnanosleep (Makefile.am): Likewise.
42321         * modules/xreadlink (Makefile.am): Likewise.
42322         * modules/xstrtod (Makefile.am): Likewise.
42323         * modules/xstrtol (Makefile.am): Likewise.
42324         * modules/xstrtold (Makefile.am): Likewise.
42325         * modules/yesno (Makefile.am): Likewise.
42326
42327 2006-10-12  Jim Meyering  <jim@meyering.net>
42328
42329         * m4/getloadavg.m4: Revert the change below.
42330
42331         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42332         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42333         fail with a symlink, which is what coreutils' ./bootstrap now
42334         creates by default.
42335
42336 2006-10-12  Bruno Haible  <bruno@clisp.org>
42337
42338         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42339         mingw.
42340         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42341         MSVC and mingw explicitly.
42342
42343 2006-10-11  Simon Josefsson  <jas@extundo.com>
42344             Bruno Haible  <bruno@clisp.org>
42345
42346         Add support for multiple gnulib-tool invocations in the scope of a
42347         single configure.ac file.
42348         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42349         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42350         with the same contents as the _LIBADD variable.
42351         (func_emit_initmacro_start, func_emit_initmacro_end,
42352         func_emit_initmacro_done): New functions.
42353         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42354         gl_LIBOBJS and gl_LTLIBOBJS.
42355
42356 2006-10-11  Bruno Haible  <bruno@clisp.org>
42357
42358         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42359         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42360         autoreconf. Instead, invoke autopoint explicitly but move back the
42361         *.m4 files from gnulib.
42362
42363 2006-10-11  Bruno Haible  <bruno@clisp.org>
42364
42365         * gnulib-tool (func_usage): Make module names after --create-testdir
42366         optional.
42367         (func_create_testdir): If no module was specified, use nearly all
42368         modules.
42369
42370 2006-10-12  Jim Meyering  <jim@meyering.net>
42371
42372         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42373         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42374         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42375         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42376         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42377         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42378         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42379         (fts_set_stat_required): New function.
42380         (fts_open): Defer the calls to fts_stat, if possible or requested.
42381         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42382         into fts_stat itself.
42383         (fts_read): Perform any required (deferred) fts_stat call.
42384         (fts_build): Likewise, for the directory we're about to open and read.
42385         In the readdir loop, carefully decide whether each entry will require
42386         an eventual call to fts_stat, using dirent.d_type info if available.
42387         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42388         a command line argument into this function.  Update all callers.
42389         Map a return value of FTS_DOT to FTS_D for a command line argument.
42390         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42391         Thanks to Miklos Szeredi for his tenacity and for the initial
42392         bug report about "find" failing on a FUSE-based file system.
42393
42394         * lib/fts.c (fts_open): Use consistent indentation.
42395
42396 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42397
42398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42399         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42400         reported by Jim Meyering.  All uses of cache variables renamed
42401         to match Autoconf's.
42402         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42403         the other one.
42404
42405         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42406         Fix misspelling in diagnostic.
42407
42408 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42409
42410         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42411         defined.  Problem reported by Matthew Woehlke.
42412
42413         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42414         Add support for Tandem NonStop R series.
42415         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42416         Use new macro.
42417
42418         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42419         (has_trailing_slash): Omit size arg; all callers changed.
42420         Omit 'inline', since it doesn't help performance and we'd
42421         need to configure it.
42422         Don't count //, ///, etc. as having a trailing slash.
42423         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42424         (rpl_rename_dest_slash): On failure, use rename's errno rather
42425         than (in some cases) an incorrect or junk errno.
42426         Simplify code by removing need to compute length; this does
42427         cause it to make two passes instead of one over the file name,
42428         but it's worth it.
42429
42430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42431         change, since Autoconf's version may no longer be appropriate now
42432         that we are using CVS Autoconf's version.  Add support for Tandem.
42433
42434 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42435             Bruno Haible  <bruno@clisp.org>
42436
42437         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42438         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42440         gl_AC_TYPE_LONG_LONG.
42441
42442         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42443         instead of HAVE_LONG_LONG.
42444         * lib/printf-args.c (printf_fetchargs): Likewise.
42445         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42446         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42447         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42448         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42449         gl_AC_TYPE_LONG_LONG.
42450
42451 2006-10-11  Bruno Haible  <bruno@clisp.org>
42452
42453         * m4/longlong.m4: Add comments.
42454         * m4/ulonglong.m4: Likewise.
42455
42456 2006-10-10  Bruno Haible  <bruno@clisp.org>
42457
42458         Make it possible to #define stpcpy, strdup to aliases.
42459         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42460         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42461
42462 2006-10-10  Bruno Haible  <bruno@clisp.org>
42463
42464         Make it possible to #define gcd to an alias.
42465         * lib/gcd.c: Include config.h.
42466
42467 2006-10-10  Bruno Haible  <bruno@clisp.org>
42468
42469         Make it possible to #define c_isascii to an alias.
42470         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42471         defined. Undefine the macros before defining them, to avoid gcc
42472         warnings.
42473         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42474         define NO_C_CTYPE_MACROS early.
42475
42476 2006-10-10  Bruno Haible  <bruno@clisp.org>
42477
42478         Make it possible to #define set_program_name to an alias.
42479         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42480         ENABLE_RELOCATABLE early.
42481
42482 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42483
42484         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42485         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42486         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42487         More generally, don't assume that 64-bit signed int is available
42488         if unsigned int is, and vice versa.
42489         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42490         unsigned symbols, not on their signed counterparts.
42491         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42492         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42493         (UINT64_C, UINTMAX_C):
42494         Likewise.
42495         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42496         unsigned counterparts.
42497         (Have_long_long, Unsigned): New macros.
42498         (Int): Renamed from INT.
42499         (strtoimax): Use the new macros.
42500         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42501         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42502         * modules/inttypes (inttypes.h): Substitute
42503         HAVE_UNSIGNED_LONG_LONG_INT.
42504         * modules/stdint (stdint.h): Likewise.
42505         (Files): Add m4/ulonglong.m4.
42506
42507 2006-10-10  Bruno Haible  <bruno@clisp.org>
42508
42509         Fix a gcc -Wshadow warning.
42510         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42511         to 'bucket'.
42512         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42513         gl_linked_indexof_from_to): Likewise.
42514         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42515         Likewise.
42516         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42517         Likewise.
42518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42519         Reported by Eric Blake.
42520
42521 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42522
42523         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42524         for NetBSD.  Problem reported by Bruno Haible.
42525
42526 2006-10-09  Jim Meyering  <jim@meyering.net>
42527
42528         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42529         Patch from Bruno Haible.
42530
42531 2006-10-09  Jim Meyering  <jim@meyering.net>
42532
42533         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42534         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42535         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42536
42537 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42538
42539         Don't include <config.h> twice; this doesn't work in some cases,
42540         e.g., when config.h has "#define intmax_t long long int" and
42541         we include <config.h>, <inttypes.h>, <config.h> in that order.
42542         Problem reported by Matthew Woehlke in:
42543         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42544         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42545         * lib/fts-cycle.c: Don't include config.h.
42546         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42547         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42548         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42549         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42550         inttypes.h.
42551         * lib/xstrtoumax.c: Likewise.
42552         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42553         __strtol and the like, so that this module is more like its siblings.
42554         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42555         Remove; no longer needed now that we assume gnulib inttypes.h.
42556
42557 2006-10-08  Bruno Haible  <bruno@clisp.org>
42558
42559         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42560         option.
42561
42562 2006-10-07  Jim Meyering  <jim@meyering.net>
42563
42564         * modules/inttypes (inttypes.h): Revert what seems to have been
42565         an inadvertent part of today's change: use "|", not "/" in the
42566         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42567
42568 2006-10-07  Bruno Haible  <bruno@clisp.org>
42569
42570         * modules/sublist: New file.
42571
42572 2006-10-07  Bruno Haible  <bruno@clisp.org>
42573
42574         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42575         * modules/argz (argz.h): Likewise.
42576         * modules/arpa_inet (arpa/inet.h): Likewise.
42577         * modules/byteswap (byteswap.h): Likewise.
42578         * modules/configmake (configmake.h): Likewise.
42579         * modules/fcntl (fcntl.h): Likewise.
42580         * modules/fnmatch (fnmatch.h): Likewise.
42581         * modules/getopt (getopt.h): Likewise.
42582         * modules/glob (glob.h): Likewise.
42583         * modules/inttypes (inttypes.h): Likewise.
42584         * modules/netinet_in (netinet/in.h): Likewise.
42585         * modules/poll (poll.h): Likewise.
42586         * modules/stdbool (stdbool.h): Likewise.
42587         * modules/stdint (stdint.h): Likewise.
42588         * modules/sys_select (sys/select.h): Likewise.
42589         * modules/sys_socket (sys/socket.h): Likewise.
42590         * modules/sys_stat (sys/stat.h): Likewise.
42591         * modules/sysexits (sysexits.h): Likewise.
42592         * modules/unistd (unistd.h): Likewise.
42593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42594         Add a "DO NOT EDIT" comment to the generated file.
42595         (func_import): Likewise for gnulib-comp.m4.
42596
42597 2006-10-07  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/gl_sublist.h: New file.
42600         * lib/gl_sublist.c: New file.
42601
42602 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42605         name (relative to the original working directory) and the file
42606         name component (relative to the temporary working directory).  All
42607         callers changed.
42608         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42609         * lib/mkdir-p.c (make_dir_parents): Likewise.
42610         * lib/mkdir-p.h (make_dir_parents): Likewise.
42611
42612 2006-10-06  Eric Blake  <ebb9@byu.net>
42613
42614         Define several macros for use by the clean-temp module.
42615         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42618
42619         * lib/clean-temp.h (close_stream_temp): New declaration.
42620         * lib/clean-temp.c (includes): Pull in headers according to what
42621         other modules are in use.
42622         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42623
42624 2006-10-06  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42627         instead of fopen, fwriteerror.
42628
42629 2006-10-06  Bruno Haible  <bruno@clisp.org>
42630
42631         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42632         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42633         int.
42634         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42635         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42636         Return an error indicator.
42637         Suggested by Eric Blake.
42638
42639 2006-10-06  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42642         Reported by Eric Blake.
42643
42644 2006-10-06  Bruno Haible  <bruno@clisp.org>
42645
42646         * modules/closeout (Description): Mention stderr too.
42647
42648 2006-10-06  Bruno Haible  <bruno@clisp.org>
42649         and Paul Eggert  <eggert@cs.ucla.edu>
42650
42651         * lib/closeout.c (close_stdout): Also close stderr.
42652         * lib/closeout.h: Update comment.
42653
42654 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42655
42656         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42657         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42658         * lib/dirchownmod.c: Include lchown.h.
42659         * lib/lchown.c: Don't include files that lchown.h now includes.
42660         Don't declare chown, since lchown.h now does that.
42661         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42662         (lchown): Define to rpl_chown if lchown is declared but
42663         does not exist.  Declare using a prototype if lchown is not
42664         declared.  Add a copyright notice.
42665         * lib/mkstemp.h: Include <unistd.h>.
42666         * lib/openat.c: Include lchown.h.
42667
42668         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42669         we now test for that separately.
42670         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42671         rather than O_NOFOLLOW, when testing whether it's possible to
42672         avoid a race condition reliably.
42673         * lib/savewd.c (savewd_chdir): Likewise.
42674
42675         Remove macros that are no longer needed now that stdint.h is
42676         reliable.
42677         * lib/fsusage.c (UINTMAX_MAX): Remove.
42678         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42679         * lib/utimecmp.c (SIZE_MAX): Remove.
42680
42681         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42682
42683         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42684         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42685         O_NOATIME works.
42686
42687 2006-10-05  Bruno Haible  <bruno@clisp.org>
42688
42689         * lib/gl_list.h (gl_sortedlist_search_from_to,
42690         gl_sortedlist_indexof_from_to): New declarations.
42691         (gl_list_implementation): New fields sortedlist_search_from_to,
42692         sortedlist_indexof_from_to.
42693         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42694         inline functions.
42695         * lib/gl_list.c (gl_sortedlist_search_from_to,
42696         gl_sortedlist_indexof_from_to): New functions.
42697         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42698         function.
42699         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42700         (gl_array_sortedlist_search_from_to): New function.
42701         (gl_array_list_implementation): Update.
42702         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42703         function.
42704         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42705         (gl_carray_sortedlist_search_from_to): New function.
42706         (gl_carray_list_implementation): Update.
42707         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42708         gl_linked_sortedlist_indexof_from_to): New functions.
42709         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42710         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42711         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42712         gl_tree_sortedlist_indexof_from_to): New functions.
42713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42714         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42715         Update.
42716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42717         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42718         Update.
42719
42720 2006-10-05  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42723         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42724         (struct gl_list_implementation): Add fields search_from_to,
42725         indexof_from_to. Remove fields search, indexof.
42726         (gl_list_search): Use the search_from_to method.
42727         (gl_list_search_from, gl_list_search_from_to): New functions.
42728         (gl_list_indexof): Use the indexof_from_to method.
42729         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42730         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42731         (gl_list_search_from, gl_list_search_from_to): New functions.
42732         (gl_list_indexof): Use the indexof_from_to method.
42733         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42734         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42735         gl_array_indexof. Add start_index, end_index arguments.
42736         (gl_array_search_from_to): Renamed from gl_array_search. Add
42737         start_index, end_index arguments.
42738         (gl_array_remove, gl_array_list_implementation): Update.
42739         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42740         gl_carray_indexof. Add start_index, end_index arguments.
42741         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42742         start_index, end_index arguments.
42743         (gl_carray_remove, gl_carray_list_implementation): Update.
42744         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42745         gl_linked_search. Add start_index, end_index arguments.
42746         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42747         start_index, end_index arguments.
42748         (gl_linked_remove): Update.
42749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42751         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42752         field to 'size_t'.
42753         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42754         gl_tree_search. Add start_index, end_index arguments.
42755         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42756         start_index, end_index arguments.
42757         (gl_tree_remove): Update.
42758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42760         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42761         function.
42762         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42763         gl_tree_search. Add start_index, end_index arguments.
42764         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42765         start_index, end_index arguments.
42766         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42767         Update.
42768         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42769
42770 2006-10-05  Bruno Haible  <bruno@clisp.org>
42771
42772         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42773
42774         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42775         fwriteerror_temp): New declarations.
42776         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42777         (descriptors): New variable.
42778         (cleanup): First, close the descriptors.
42779         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42780         fclose_temp, fwriteerror_temp): New functions.
42781
42782 2006-10-04  Jim Meyering  <jim@meyering.net>
42783
42784         * lib/fts.c (fts_open): Tiny comment change.
42785
42786 2006-10-04  Bruno Haible  <bruno@clisp.org>
42787
42788         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42789         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42790         gl_LOCK_BODY.
42791         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42792         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42793         gl_LOCK_EARLY_BODY.
42794         (gl_LOCK): Require gl_LOCK_BODY.
42795
42796 2006-10-04  Bruno Haible  <bruno@clisp.org>
42797
42798         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42799         (gl_oset_search_atleast): New declaration.
42800         (struct gl_oset_implementation): Add field 'search_atleast'.
42801         (gl_oset_search_atleast): New inline function.
42802         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42803         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42804         (gl_array_oset_implementation): Update.
42805         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42806         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42807         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42808
42809 2006-10-04  Bruno Haible  <bruno@clisp.org>
42810
42811         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42812
42813 2006-10-03  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42816         from gl_avltreehash_list_implementation.
42817
42818 2006-10-03  Bruno Haible  <bruno@clisp.org>
42819
42820         * lib/gl_oset.c (gl_oset_add): Fix return type.
42821
42822 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42823
42824         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42825
42826 2006-10-02  Eric Blake  <ebb9@byu.net>
42827
42828         * modules/strnlen (Depends-on): Add extensions.
42829
42830 2006-10-02  Eric Blake  <ebb9@byu.net>
42831
42832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42833         definition in 2.60+.
42834
42835 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42836
42837         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42838         checks.
42839
42840 2006-10-02  Bruno Haible  <bruno@clisp.org>
42841
42842         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42843         to the AUTOMAKE_OPTIONS.
42844         Reported by Jim Meyering.
42845
42846 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42847
42848         Work around bug in Solaris 10 /proc file system:
42849         /proc/self/fd/NNN/.. isn't the parent directory of
42850         the directory whose file descriptor is NNN.  This needs to
42851         be worked around at run time, not compile time, since a
42852         program might be built on Solaris 8, where things work, and
42853         run on Solaris 10.
42854         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42855         to use the following interface instead:
42856         (OPENAT_BUFFER_SIZE): New macro.
42857         (openat_proc_name): New function.
42858         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42859         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42860         Likewise.
42861         * lib/openat-proc.c: New file.
42862         * modules/openat (Files): Add lib/openat-proc.c.
42863         (Depends-on): Add same-inode, stdbool.
42864         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42865
42866 2006-09-29  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42869         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42870         argument. Set stdout_closed before testing for ferror, not after.
42871         (fwriteerror, fwriteerror_no_ebadf): New functions.
42872
42873 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42874
42875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42876
42877 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42878
42879         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42880         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42881
42882 2006-09-28  Jim Meyering  <jim@meyering.net>
42883
42884         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42885         Include <unistd.h>.
42886
42887 2006-09-28  Bruno Haible  <bruno@clisp.org>
42888
42889         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42890         * modules/linkedhash-list (Depends-on): Likewise.
42891         * modules/rbtreehash-list (Depends-on): Likewise.
42892
42893 2006-09-28  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/strndup.h: Simplify the redefinition of strndup.
42896         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42898
42899 2006-09-28  Bruno Haible  <bruno@clisp.org>
42900
42901         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42902         * lib/gl_linkedhash_list.c: Likewise.
42903         * lib/gl_rbtreehash_list.c: Likewise.
42904
42905 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42906
42907         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42908         getaddrinfo.
42909
42910         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42911         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42912         it causes <stdio_ext.h> to cause a compile-time error.
42913         Problem reported by Nelson H. F. Beebe.
42914         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42915         of HAVE_DECL___PENDING.
42916
42917         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42919         declaration.
42920
42921 2006-09-27  Jim Meyering  <jim@meyering.net>
42922
42923         This file could end up with a definition for a function
42924         named __strndup, rather than rpl_strndup on a system with
42925         incomplete weak_alias support.
42926         * lib/strndup.c (strndup): Rename from __strndup.
42927         Remove #defines that used to map __strndup to strndup.
42928         Don't use K&R prototypes.
42929         Remove LIBC-related code, since this file is not sync'd with glibc.
42930         * lib/strndup.h: Revamp, accordingly.
42931         * m4/strndup.m4: Modernize.
42932
42933 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42934
42935         * modules/savewd (Depends-on): Add 'raise'.
42936         * lib/savewd.c: Include <signal.h>, for 'raise'.
42937
42938 2006-09-26  Jim Meyering  <jim@meyering.net>
42939
42940         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42941         when we detect Darwin 8.7.0's acl_get_file bug.
42942         Rearrange to perform the new (below) run-test while $LIBS
42943         contains any acl-related library.  Set USE_ACL at the end.
42944         (gl_ACL_GET_FILE): New function.
42945
42946 2006-09-26  Eric Blake  <ebb9@byu.net>
42947
42948         * lib/verror.c: Include <config.h> unconditionally.
42949
42950 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42951
42952         * modules/clock-time (Maintainer): Add self.
42953         * modules/getlogin_r (Depends-on): Add extensions.
42954
42955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42956
42957         * modules/clock-time: New module.
42958         * modules/nanosleep (Depends-on): Add clock-time.
42959         * modules/gethrxtime (Depends-on): Likewise.
42960         * modules/gettime (Depends-on): Likewise.
42961         * modules/settime (Depends-on): Likewise.
42962
42963         * modules/fts-lgpl: Depend on openat.
42964         * modules/mkancesdirs: Depend on savewd.
42965         * modules/mkdir-p: Likewise.
42966
42967 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42968
42969         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42970
42971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42972         `gl_have_arbitrary_file_name_length_limit' to
42973         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42974         actually works between configure runs.
42975
42976 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42977             Bruno Haible  <bruno@clisp.org>
42978
42979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42980
42981 2006-09-25  Jim Meyering  <jim@meyering.net>
42982
42983         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42984         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42985
42986 2006-09-25  Eric Blake  <ebb9@byu.net>
42987
42988         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42989         exec's in 2006-09-18 patch when shuffling fds.
42990
42991 2006-09-25  Bruno Haible  <bruno@clisp.org>
42992
42993         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42994         Reported by Jim Meyering.
42995
42996 2006-09-24  Jim Meyering  <jim@meyering.net>
42997
42998         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42999         compare a pointer against a literal "0".  That caused failures with
43000         at least HP-UX's hpcc.
43001
43002 2006-09-22  Simon Josefsson  <jas@extundo.com>
43003
43004         * modules/gc-sha1:
43005         * modules/gc-md4:
43006         * modules/gc-hmac-sha1:
43007         * modules/gc-hmac-md5:
43008         * modules/gc-des:
43009         * modules/gc-arcfour: Distribute more files.
43010
43011 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43012
43013         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43014         (gl_linked_iterator_from_to): Initialize struct completely.
43015         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43016         (gl_tree_iterator_from_to): Likewise
43017         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43018         * lib/gl_array_list.c [lint] (gl_array_iterator)
43019         (gl_array_iterator_from_to): Likewise.
43020         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43021         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43022         (gl_carray_iterator_from_to): Likewise.
43023
43024         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43025         * lib/md4.c (md4_process_block): Remove unused variable.
43026         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43027         parentheses for clarity.
43028
43029 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43030
43031         * modules/bison-i18n (Depends-on): Add gettext.
43032
43033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43034
43035         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43036         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43037         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43038         also add missing comma that caused broken test.
43039         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43040         stdlib.h, for `abort'.
43041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43042         variables.
43043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43044         include unistd.h if present, for `rmdir'.
43045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43046         variables.
43047         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43048         in the process include standard headers for prototypes.
43049         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43050         gets declared on GNU/Linux.
43051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43052         unistd.h, for `rmdir'.
43053         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43054
43055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43056         always true.
43057         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43058
43059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43060
43061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43062
43063         * gnulib-tool (func_version): Create output all at once.  This
43064         may help avoid triggering unnecessary SIGPIPEs, and at any
43065         rate it doesn't hurt.
43066
43067 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43068             Bruno Haible  <bruno@clisp.org>
43069
43070         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43071         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43072         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43073
43074         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43075         (gl_FUNC_VASPRINTF): Invoke it.
43076
43077 2006-09-22  Bruno Haible  <bruno@clisp.org>
43078
43079         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43080         getloadavg.c as first argument.
43081
43082 2006-09-22  Bruno Haible  <bruno@clisp.org>
43083
43084         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43085         at the beginning of the gl_INIT macro.
43086         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43087         gl_GETLOADAVG.
43088
43089 2006-09-22  Bruno Haible  <bruno@clisp.org>
43090
43091         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43092         module.
43093         Suggested by Ralf Wildenhues.
43094
43095 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43096
43097         Import this patch from libc:
43098
43099         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43100
43101         * lib/regex_internal.c (re_string_reconstruct): Handle
43102         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43103         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43104         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43105         re_string_context_at.
43106
43107         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43108         now requires it.
43109         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43110         gl_REGEX now does it for us.
43111         (gl_REGEX): Add test taken from
43112         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43113
43114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43115         Check that large offsets work.  Modernize Autoconf usages.
43116         Prefer "yes" to mean a good thing rather than a bad.
43117         Don't put "#define mkstemp" in config.h, as this might interfere
43118         with standard system headers that "#define mkstemp mkstemp64".
43119
43120         * modules/mkstemp (Depends-on): Add extensions, so that
43121         mkstemp is visible on some platforms.
43122         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43123         (Include): Change to "mkstemp.h" from <stdlib.h>.
43124         (Files): Add mkstemp.h.
43125
43126         * lib/mkstemp.h: New file, since some standard headers
43127         #define mkstemp.
43128         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43129         Include "mkstemp.h".
43130         Make the _LIBC code resemble glibc original more,
43131         e.g., use K&R style.
43132         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43133         (mkstemp): Remove, since mkstemp.h does this for us.
43134         * lib/stdlib--.h: Include mkstemp.h.
43135
43136         Import this patch from libc:
43137
43138         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43139
43140         * lib/tempname.c (__gen_tempname): Change attempts_min
43141         into a macro.  Use preprocessor to decide how to initialize
43142         attempts [Coverity CID 67].
43143
43144 2006-09-20  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/mkdtemp.c: Import from libc.
43147         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43148                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43149                 attempts_min into a macro.  Use preprocessor to decide how to
43150                 initialize attempts [Coverity CID 67].
43151         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43152                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43153                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43154
43155 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43156
43157         * gnulib-tool (func_exit): New function, to allow to pass the
43158         exit status portably through the trap.  Use everywhere.
43159         (--help, --version): Signal a write error.
43160         (trap): catch SIGPIPE, for write errors.
43161         Exit at the end of the trap, with the correct exit status.
43162
43163 2006-09-19  Karl Berry  <karl@gnu.org>
43164
43165         * doc/gnulib.texi: note about the license texinfo files.
43166
43167 2006-09-19  Eric Blake  <ebb9@byu.net>
43168
43169         * gnulib-tool: Avoid space-tab.
43170
43171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43172
43173         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43174         that prevented coreutils 6.1 from building.  Problem reported
43175         by Petter Reinholdtsen.
43176
43177 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43178
43179         * gnulib-tool (avoidlist): Fix typo that broke options like
43180         --avoid=lock that are used by coreutils bootstrap.
43181
43182 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43183
43184         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43185         more systematically.
43186
43187 2006-09-18  Jim Meyering  <jim@meyering.net>
43188
43189         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43190
43191 2006-09-18  Bruno Haible  <bruno@clisp.org>
43192
43193         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43194
43195 2006-09-18  Bruno Haible  <bruno@clisp.org>
43196
43197         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43198         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43199         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43200         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43201         * m4/gettext.m4: Require autoconf >= 2.52.
43202         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43203         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43204         of gl_cv_header_inttypes_h.
43205
43206 2006-09-18  Bruno Haible  <bruno@clisp.org>
43207
43208         * lib/javaversion.c: Include configmake.h.
43209
43210 2006-09-18  Bruno Haible  <bruno@clisp.org>
43211
43212         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43213         avoid that the while loops be executed in a subshell.
43214
43215 2006-09-18  Bruno Haible  <bruno@clisp.org>
43216
43217         * MODULES.html.sh (func_module): Break long lines.
43218         Suggested by Bruce Korb <bkorb@gnu.org>.
43219
43220 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43221
43222         Speed up by a factor of 1.12.
43223         * gnulib-tool (nl): New variable.
43224         (func_import): Rewrite include directive extraction to only read each
43225         directive once.
43226
43227 2006-09-17  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/javaversion (Makefile.am): Remove DEFS setting.
43230         (Depends-on): Add configmake, for PKGDATADIR definition.
43231
43232 2006-09-17  Bruno Haible  <bruno@clisp.org>
43233
43234         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43235
43236 2006-09-17  Bruno Haible  <bruno@clisp.org>
43237
43238         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43239         (func_modules_transitive_closure, func_modules_add_dummy,
43240         func_modules_to_filelist, func_import, func_create_testdir,
43241         func_create_megatestdir, ...): Use it wherever possible.
43242         Suggested by Ralf Wildenhues.
43243
43244 2006-09-16  Karl Berry  <karl@gnu.org>
43245
43246         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43247         to avoid sectioning errors.
43248         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43249         [ifinfo]: blank line after @center-ed titles.
43250         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43251         Spell FSF address consistently with others.
43252         (These changes approved by rms.)
43253
43254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43255
43256         Speed up by a factor of 1.61.
43257         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43258         already checked module names again.
43259
43260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43261
43262         Speed up by a factor of 1.13.
43263         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43264         for new_files, and the input to func_add_or_update.
43265
43266 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43267
43268         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43269         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43270
43271 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43272
43273         * modules/mkancesdirs (Depends-on): Add fcntl.
43274         * modules/savewd: New file.
43275         * MODULES.html.sh (File system functions): Add savewd.
43276
43277         * modules/configmake (Makefile.am): Add support for the
43278         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43279
43280 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43281
43282         * m4/savewd.m4: New file.
43283
43284 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43285
43286         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43287         (dirchownmod): New arg FD.  All callers changed.
43288         Use FD rather than opening the directory ourself, as opening is
43289         now the caller's responsibility.
43290         * lib/dirchownmod.h: Likewise.
43291         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43292         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43293         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43294         (test_dir): Remove.
43295         (mkancesdirs): Return length of prefix of FILE that has already
43296         been made, or -2 if there is a child doing the work.  Redo
43297         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43298         ".", and treat ".." specially since it might stray back into
43299         already-created areas.  Use a subprocess if necessary.  New arg
43300         WD; all users changed.  MAKE_DIR function should now return 1
43301         if it creates a directory that is not readable.  Return -2 if
43302         a child process is spun off.
43303         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43304         Adjust signature to match code.
43305         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43306         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43307         all users changed.
43308         * lib/savewd.c, lib/savewd.h: New files.
43309
43310 2006-09-15  Jim Meyering  <jim@meyering.net>
43311
43312         * modules/rename-dest-slash: New module.
43313         * MODULES.html.sh (posix_compat): Add it here.
43314
43315         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43316
43317 2006-09-15  Jim Meyering  <jim@meyering.net>
43318
43319         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43320         file.
43321
43322         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43323
43324 2006-09-15  Jim Meyering  <jim@meyering.net>
43325
43326         * lib/rename-dest-slash.c (has_trailing_slash): Use
43327         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43328         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43329         test before testing whether SRC is a directory.
43330         Suggestions from Bruno Haible.
43331
43332         Avoid a warning about an unused variable.
43333         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43334         into the #ifdef block where it's used.
43335
43336         * lib/rename-dest-slash.c: New file.
43337
43338 2006-09-14  Bruno Haible  <bruno@clisp.org>
43339
43340         * lib/allocsa.c: Include <config.h> unconditionally.
43341         * lib/asnprintf.c: Likewise.
43342         * lib/asprintf.c: Likewise.
43343         * lib/c-strcasecmp.c: Likewise.
43344         * lib/c-strcasestr.c: Likewise.
43345         * lib/c-strncasecmp.c: Likewise.
43346         * lib/c-strstr.c: Likewise.
43347         * lib/classpath.c: Likewise.
43348         * lib/clean-temp.c: Likewise.
43349         * lib/concatpath.c: Likewise.
43350         * lib/copy-file.c: Likewise.
43351         * lib/csharpcomp.c: Likewise.
43352         * lib/csharpexec.c: Likewise.
43353         * lib/execute.c: Likewise.
43354         * lib/fatal-signal.c: Likewise.
43355         * lib/findprog.c: Likewise.
43356         * lib/fwriteerror.c: Likewise.
43357         * lib/gl_array_list.c: Likewise.
43358         * lib/gl_array_oset.c: Likewise.
43359         * lib/gl_avltree_list.c: Likewise.
43360         * lib/gl_avltree_oset.c: Likewise.
43361         * lib/gl_avltreehash_list.c: Likewise.
43362         * lib/gl_carray_list.c: Likewise.
43363         * lib/gl_linked_list.c: Likewise.
43364         * lib/gl_linkedhash_list.c: Likewise.
43365         * lib/gl_list.c: Likewise.
43366         * lib/gl_oset.c: Likewise.
43367         * lib/gl_rbtree_list.c: Likewise.
43368         * lib/gl_rbtree_oset.c: Likewise.
43369         * lib/gl_rbtreehash_list.c: Likewise.
43370         * lib/imaxabs.c: Likewise.
43371         * lib/imaxdiv.c: Likewise.
43372         * lib/javacomp.c: Likewise.
43373         * lib/javaexec.c: Likewise.
43374         * lib/javaversion.c: Likewise.
43375         * lib/linebreak.c: Likewise.
43376         * lib/localcharset.c: Likewise.
43377         * lib/lock.c: Likewise.
43378         * lib/mbchar.c: Likewise.
43379         * lib/mbswidth.c: Likewise.
43380         * lib/mkdtemp.c: Likewise.
43381         * lib/pipe.c: Likewise.
43382         * lib/printf-args.c: Likewise.
43383         * lib/printf-parse.c: Likewise.
43384         * lib/progname.c: Likewise.
43385         * lib/progreloc.c: Likewise.
43386         * lib/readlink.c: Likewise.
43387         * lib/sh-quote.c: Likewise.
43388         * lib/stpcpy.c: Likewise.
43389         * lib/stpncpy.c: Likewise.
43390         * lib/strcasecmp.c: Likewise.
43391         * lib/strcasestr.c: Likewise.
43392         * lib/strcspn.c: Likewise.
43393         * lib/striconv.c: Likewise.
43394         * lib/strncasecmp.c: Likewise.
43395         * lib/strnlen1.c: Likewise.
43396         * lib/strstr.c: Likewise.
43397         * lib/strtok_r.c: Likewise.
43398         * lib/tls.c: Likewise.
43399         * lib/tmpdir.c: Likewise.
43400         * lib/unicodeio.c: Likewise.
43401         * lib/unsetenv.c: Likewise.
43402         * lib/vasnprintf.c: Likewise.
43403         * lib/vasprintf.c: Likewise.
43404         * lib/wait-process.c: Likewise.
43405         * lib/xallocsa.c: Likewise.
43406         * lib/xsetenv.c: Likewise.
43407         * lib/xstriconv.c: Likewise.
43408
43409 2006-09-13  Simon Josefsson  <jas@extundo.com>
43410
43411         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43412         that internally, suggested by Ralf Wildenhues
43413         <Ralf.Wildenhues@gmx.de>.
43414
43415 2006-09-13  Simon Josefsson  <jas@extundo.com>
43416
43417         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43418         @LIBOBJS@.
43419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43420
43421 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43422
43423         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43424         longer worry about uses that don't define HAVE_CONFIG_H.
43425         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43426         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43427         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43428         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43429         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43430         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43431         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43432         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43433         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43434         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43435         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43436         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43437         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43438         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43439         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43440         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43441         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43442         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43443         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43444         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43445         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43446         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43447         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43448         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43449         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43450         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43451         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43452         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43453         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43454         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43455         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43456         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43457         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43458         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43459         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43460         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43461         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43462         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43463         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43464         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43465         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43466         Likewise.
43467
43468 2006-09-13  Eric Blake  <ebb9@byu.net>
43469
43470         * lib/getopt.c: Fix typo in last commit.
43471
43472 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43473
43474         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43475         dgettext.
43476
43477 2006-09-12  Jim Meyering  <jim@meyering.net>
43478
43479         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43480         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43481         Reported by Nelson H. F. Beebe.
43482
43483 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43484
43485         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43486         program_invocation_name and program_invocation_short_name are
43487         initialized.
43488         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43489         and program_invocation_short_name to argp.h, so they are visible
43490         to user programs.
43491         * lib/argp.h: Likewise
43492
43493 2006-09-10  Bruno Haible  <bruno@clisp.org>
43494
43495         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43496         m4/inttypes_h.m4, m4/uintmax_t.m4.
43497
43498 2006-09-10  Bruno Haible  <bruno@clisp.org>
43499
43500         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43501         gl_AC_TYPE_UINTMAX_T.
43502
43503 2006-09-10  Bruno Haible  <bruno@clisp.org>
43504
43505         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43506
43507 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43508
43509         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43510         convention.  Text proposed by Bruno Haible.
43511         (struct argp_option): Document the use of N_() wrappers.
43512
43513         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43514         '\v', and translate the two parts separately, instead of feeding
43515         the whole string to gettext.  This allows to exclude
43516         '\v' from the strings visible to the translator by writing doc
43517         strings as N_("..") "\v" N_("..").
43518
43519 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43520
43521         * config/srclist.txt: Undo latest change; the bug was fixed.
43522
43523 2006-09-09  Bruno Haible  <bruno@clisp.org>
43524
43525         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43526         assignments if building a library without libtool.
43527         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43528         in func_emit_lib_Makefile_am.
43529         (func_import): When building a static library libfoo.a, arrange to
43530         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43531         (func_create_testdir): Likewise.
43532         * modules/gc (configure.ac, Makefile.am): If building statically,
43533         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43534         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43535         * modules/striconv (configure.ac, Makefile.am): Likewise.
43536         Based on a suggestion by Ralf Wildenhues.
43537
43538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43539
43540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43541         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43542         Also:
43543
43544         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43545         Add year_2050_test to catch glibc bug 2821
43546         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43547
43548         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43549         Prefer #ifdef to #if.
43550
43551         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43552         Return from 'main' instead of calling 'exit'.
43553
43554 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43557         returned the maximum time_t value rather than (time_t) -1.
43558         Problem originally reported by William Bardwell
43559         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43560
43561         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43562         Moved to here ...
43563         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43564         ... from here.
43565
43566 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43567
43568         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43569         2821 is fixed.
43570
43571 2006-09-08  Jim Meyering  <jim@meyering.net>
43572
43573         Don't make generated files read-only.  That would bother too many
43574         people.  However, do retain the ability to work when targets are
43575         read-only: remove the destination and temporary files before writing
43576         them (when generated via sed or echo), or by using the -f option for
43577         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43578         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43579         * modules/byteswap, modules/configmake, modules/fcntl:
43580         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43581         * modules/localcharset, modules/netinet_in, modules/poll:
43582         * modules/stdbool, modules/stdint, modules/sys_select:
43583         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43584
43585 2006-09-08  Jim Meyering  <jim@meyering.net>
43586
43587         Avoid new build failure on FreeBSD 6.0.
43588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43589         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43590         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43591
43592 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43593
43594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43595
43596 2006-09-07  Jim Meyering  <jim@meyering.net>
43597
43598         Fix global typo in last change: use chmod u-w, not chmod u-x.
43599         Spotted by Paul Eggert and Bruce Korb.
43600         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43601         * modules/byteswap, modules/configmake, modules/fcntl:
43602         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43603         * modules/localcharset, modules/netinet_in, modules/poll:
43604         * modules/stdbool, modules/stdint, modules/sys_select:
43605         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43606
43607 2006-09-06  Jim Meyering  <jim@meyering.net>
43608
43609         Make generated files be read-only.
43610         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43611         Ensure that each generated file is now read-only.
43612         * modules/argz: Likewise.
43613         * modules/arpa_inet: Likewise.
43614         * modules/byteswap: Likewise.
43615         * modules/configmake: Likewise.
43616         * modules/fcntl: Likewise.
43617         * modules/fnmatch: Likewise.
43618         * modules/getopt: Likewise.
43619         * modules/glob: Likewise.
43620         * modules/inttypes: Likewise.
43621         * modules/netinet_in: Likewise.
43622         * modules/poll: Likewise.
43623         * modules/stdbool: Likewise.
43624         * modules/stdint: Likewise.
43625         * modules/sys_select: Likewise.
43626         * modules/sys_socket: Likewise.
43627         * modules/sys_stat: Likewise.
43628         * modules/sysexits: Likewise.
43629         * modules/localcharset: Same as above, but continue using temporary
43630         file named "t-$@" (why different?) rather than the "$@-t" used
43631         everywhere else.
43632
43633         * modules/sysexits (Makefile.am): Replace literal occurrences
43634         of "sysexit.h" more readable, and more consistent, "$@".
43635
43636 2006-09-06  Bruno Haible  <bruno@clisp.org>
43637
43638         * modules/striconv: New file.
43639         * modules/xstriconv: New file.
43640         * MODULES.html.sh (Internationalization functions): Add striconv,
43641         xstriconv.
43642
43643 2006-09-06  Bruno Haible  <bruno@clisp.org>
43644
43645         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43646         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43647         not using libtool correctly.
43648
43649 2006-09-06  Bruno Haible  <bruno@clisp.org>
43650
43651         * lib/striconv.h: New file.
43652         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43653         iconvstring.c.
43654         * lib/xstriconv.h: New file.
43655         * lib/xstriconv.c: New file.
43656
43657 2006-09-06  Bruno Haible  <bruno@clisp.org>
43658
43659         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43660         lib_..._LDFLAGS.
43661
43662 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43663
43664         * lib/argz_.h: Sync from Libtool.
43665
43666         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43667                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43668
43669         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43670
43671 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43672
43673         * modules/trim: New file.
43674
43675 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43676
43677         * lib/trim.h: New file.
43678         * lib/trim.c: New file.
43679
43680 2006-09-05  Bruno Haible  <bruno@clisp.org>
43681
43682         * MODULES.html.sh (String handling): Add trim.
43683
43684 2006-09-04  Karl Berry  <karl@gnu.org>
43685
43686         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43687         until next release.
43688
43689 2006-09-03  Bruno Haible  <bruno@clisp.org>
43690
43691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43692         correctly.
43693
43694 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43695
43696         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43697         not gl_GETLOADAVG.  Omit unneeded semicolons.
43698         Problems reported by Ralf Wildenhues in
43699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43700         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43701         at the end, which is the usual gnulib style.
43702
43703         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43704         of doing all the work ourselves.
43705         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43706         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43707
43708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43709
43710         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43711         Problem reported by Ralf Wildenhues in
43712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43713
43714         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43715         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43716
43717 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43718
43719         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43720         yesterday's patch by changing test -n to test -z.
43721
43722 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43723
43724         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43725         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43726         the former is now obsolescent.
43727
43728         * modules/chdir-long (Depends-on): Add fcntl.
43729
43730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43731
43732         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43733         obsolescent, and programs should use gnulib instead.
43734         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43735         but with prefixes changed.
43736
43737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43738
43739         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43740         or stdbool.h, because they might not exist while configuring.
43741
43742         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43743         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43744         does that for us.
43745         (O_DIRECTORY): Remove.
43746
43747 2006-08-31  Eric Blake  <ebb9@byu.net>
43748
43749         * gnulib-tool: Don't let emacs change spaces to TAB.
43750
43751 2006-08-31  Bruno Haible  <bruno@clisp.org>
43752
43753         * gnulib-tool: When calling func_import more than once, do it in a
43754         subshell.
43755         Reported by Eric Blake <ebb9@byu.net>.
43756
43757 2006-08-31  Bruno Haible  <bruno@clisp.org>
43758
43759         * gnulib-tool (nl): Remove variable.
43760         (sed_transform_lib_file): Use more robust test for config-h module.
43761         (func_import): Fix typo in 2006-08-25 patch.
43762
43763 2006-08-31  Bruno Haible  <bruno@clisp.org>
43764
43765         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43766         specified, augment Makefile.am variables instead of assigning them.
43767
43768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43769
43770         Work around a bug in both the Linux and SunOS 64-bit kernels:
43771         nanosleep mishandles sleeps for longer than 2**31 seconds.
43772         Problem reported by Frank v Waveren in
43773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43775         Check for nanosleep bug.
43776         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43777
43778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43779
43780         Work around a bug in both the Linux and SunOS 64-bit kernels:
43781         nanosleep mishandles sleeps for longer than 2**31 seconds.
43782         Problem reported by Frank v Waveren in
43783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43784         * lib/nanosleep.c (BILLION): New constant.
43785         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43786         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43787         implementation.
43788
43789 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43790
43791         * modules/nanosleep (Depends-on): Add gettime.
43792
43793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43794         and Simon Josefsson  <jas@extundo.com>
43795         and Oskar Liljeblad  <oskar@osk.mine.nu>
43796
43797         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43798         * gnulib-tool (func_import): New license type 'unmodifiable license
43799         text'.
43800         * modules/fdl: Use it.  Longer description.
43801         * module/gpl, module/lgpl: New files.
43802
43803 2006-08-30  Jim Meyering  <jim@meyering.net>
43804
43805         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43806         shadowing the parameter.
43807
43808 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43809
43810         Sync from Libtool:
43811
43812         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43813
43814         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43815         sharing with gnulib.  Report by Eric Blake.
43816
43817 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43818
43819         * modules/isapipe: New file.
43820         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43821
43822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43823
43824         * modules/configmake (Makefile.am): Add a comment, and omit
43825         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43826         by Bruno Haible.
43827
43828 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43829
43830         * m4/isapipe.m4: New file.
43831
43832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43833
43834         * lib/isapipe.c, lib/isapipe.h: New files.
43835
43836 2006-08-29  Jim Meyering  <jim@meyering.net>
43837
43838         * modules/configmake (Makefile.am): Make configmake.h depend on
43839         Makefile.  Otherwise, a stale configmake.h could hang around.
43840
43841 2006-08-29  Eric Blake  <ebb9@byu.net>
43842
43843         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43844         resolution of upstream bug 3044.
43845
43846 2006-08-29  Bruno Haible  <bruno@clisp.org>
43847
43848         * modules/localcharset (Depends-on): Add configmake.
43849         (Makefile.am): Remove setting of LIBDIR through DEFS.
43850
43851 2006-08-29  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43854         defined.
43855
43856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43857
43858         * modules/fcntl: New file.
43859         * modules/chdir-safer (Depends-on): Add fcntl.
43860         * modules/fts: Likewise.
43861         * modules/mkdir-p: Likewise.
43862
43863         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43864         This undoes the most recent change, since we're now addressing the
43865         problem in a different way.
43866
43867         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43868         into output, since the output might be called Makefile.am even
43869         if $makefile_name is something different.
43870         (func_import): Use $makefile_am rather than
43871         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43872         empty.
43873
43874         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43875
43876 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43877
43878         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43879         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43880         recent change to stdint.m4, since we're now addressing the problem in a
43881         different way.
43882
43883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43884
43885         * m4/fcntl_h.m4: New file.
43886
43887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43888
43889         * lib/fcntl_.h: New file.
43890         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43891         the fcntl module.
43892         * lib/dirchownmod.c: Likewise.
43893         * lib/fts.c: Likewise.
43894
43895         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43896         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43897         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43898         just before including <inttypes.h>, to avoid circular inclusion.
43899
43900 2006-08-28  Jim Meyering  <jim@meyering.net>
43901
43902         * doc/visibility.texi: Actually read and correct the grammar of the
43903         sentence affected by yesterday's change.
43904
43905 2006-08-28  Eric Blake  <ebb9@byu.net>
43906
43907         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43908         needs wrapper.
43909
43910 2006-08-28  Eric Blake  <ebb9@byu.net>
43911
43912         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43913
43914 2006-08-28  Eric Blake  <ebb9@byu.net>
43915
43916         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43917
43918 2006-08-28  Bruno Haible  <bruno@clisp.org>
43919
43920         * modules/c-strstr: New file, from GNU gettext.
43921         * MODULES.html.sh (String handling): Add c-strstr.
43922
43923 2006-08-28  Bruno Haible  <bruno@clisp.org>
43924
43925         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43926         macros.
43927         Reported by Eric Blake.
43928
43929 2006-08-28  Bruno Haible  <bruno@clisp.org>
43930
43931         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43932         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43933         * lib/vasprintf.c: Include errno.h, limits.h.
43934         (EOVERFLOW): New fallback definition.
43935         (vasprintf): Test here whether the string length is > INT_MAX.
43936         * lib/vsnprintf.c: Include errno.h, limits.h.
43937         (EOVERFLOW): New fallback definition.
43938         (vsnprintf): Fix bug when generated string was too long for the buffer.
43939         Test here whether the string length is > INT_MAX.
43940
43941 2006-08-28  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/inttypes_.h (SCNX*): Remove definitions.
43944         Reported by Eric Blake.
43945
43946 2006-08-28  Bruno Haible  <bruno@clisp.org>
43947
43948         * lib/c-strstr.h: New file, from GNU gettext.
43949         * lib/c-strstr.c: New file, from GNU gettext.
43950
43951 2006-08-28  Bruno Haible  <bruno@clisp.org>
43952
43953         * gnulib-tool: Reorder some statements.
43954
43955 2006-08-28  Bruno Haible  <bruno@clisp.org>
43956
43957         * gnulib-tool: New option --makefile-name.
43958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43959         $makefile_name.
43960         (func_import): Write $makefile_name to the cache file, and read it from
43961         there unless explicitly specified. Use $makefile_name as file name
43962         instead of Makefile.am. Adjust the recommendations accordingly.
43963
43964 2006-08-28  Bruno Haible  <bruno@clisp.org>
43965
43966         * gnulib-tool (func_verify_module): Check against misapplying patch.
43967
43968 2006-08-28  Bruno Haible  <bruno@clisp.org>
43969
43970         * gnulib-tool (func_relativize, func_relconcat): New functions.
43971         Give an error if --local-dir is given with --update.
43972         Remove trailing slashes from $local_gnulib_dir.
43973         (func_import): Store the relativized $local_gnulib_dir in
43974         gnulib-cache.m4, and read it from there if not specified explicitly.
43975
43976 2006-08-28  Bruno Haible  <bruno@clisp.org>
43977
43978         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43979         is the current directory. Respect also $local_gnulib_dir.
43980
43981 2006-08-28  Bruno Haible  <bruno@clisp.org>
43982             Simon Josefsson  <jas@extundo.com>
43983
43984         BeOS portability.
43985         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43986
43987 2006-08-27  Jim Meyering  <jim@meyering.net>
43988
43989         * doc/visibility.texi: Remove duplicate word: "pointer".
43990
43991 2006-08-26  Bruno Haible  <bruno@clisp.org>
43992
43993         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43994         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43995         (Makefile.am): Create inttypes.h from inttypes_.h.
43996         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43997
43998         * modules/imaxabs: New file.
43999
44000         * modules/imaxdiv: New file.
44001
44002 2006-08-26  Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/inttypes.m4: New file.
44005         * m4/_inttypes_h.m4: Remove file.
44006         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44007         PRI_MACROS_BROKEN.
44008         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44009
44010         * m4/imaxabs.m4: New file.
44011
44012         * m4/imaxdiv.m4: New file.
44013
44014 2006-08-26  Bruno Haible  <bruno@clisp.org>
44015
44016         * lib/inttypes_.h: New file.
44017         * lib/inttypes.h: Remove file.
44018         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44019
44020         * lib/imaxabs.c: New file.
44021
44022         * lib/imaxdiv.c: New file.
44023
44024 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44025
44026         New config-h module, so that "make" output needn't be cluttered
44027         by -DHAVE_CONFIG_H.
44028         * MODULES.html.sh (Support for building libraries and executables):
44029         Add config-h.
44030         * modules/config-h: New file.
44031         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44032         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44033         the config-h module is used.
44034
44035         New configmake module, so that "make" output needn't be cluttered
44036         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44037         * MODULES.html.sh (Support for building libraries and executables):
44038         Add configmake.
44039         * modules/configmake: New file.
44040
44041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44042
44043         * m4/config-h.m4: New file.
44044
44045 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44046
44047         * config/srclist.txt: Add elisp-comp.
44048
44049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44050
44051         * MODULES.html.sh (Support for building libraries and executables):
44052         Add elisp-comp.
44053         * build-aux/elisp-comp: New file.
44054         * modules/elisp-comp: New file.
44055
44056 2006-08-24  Bruno Haible  <bruno@clisp.org>
44057
44058         * gnulib-tool (func_create_testdir): Use non-default values of
44059         sourcebase and m4base.
44060
44061 2006-08-24  Bruno Haible  <bruno@clisp.org>
44062
44063         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44064         HTML structure.
44065
44066 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44067
44068         * modules/openat (Depends-on): Add lchown.
44069
44070 2006-08-23  Bruno Haible  <bruno@clisp.org>
44071
44072         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44073         of gl_LOCK_EARLY instead of gl_LOCK.
44074
44075 2006-08-23  Bruno Haible  <bruno@clisp.org>
44076
44077         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44078         on OSF/1 to no.
44079         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44080
44081 2006-08-23  Bruno Haible  <bruno@clisp.org>
44082
44083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44084         as unusable.
44085
44086         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44087         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44088         (gl_LOCK): New macro.
44089
44090 2006-08-22  Simon Josefsson  <jas@extundo.com>
44091
44092         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44093         to md5 module.
44094
44095 2006-08-22  Simon Josefsson  <jas@extundo.com>
44096
44097         * MODULES.html.sh: Add "Support for maintaining and release
44098         projects".
44099
44100         * build-aux/gnupload: New file, from coreutils.
44101
44102 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44103
44104         Avoid the need for AC_LIBSOURCES in m4 macros.
44105         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44106         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44107         * modules/check-version (EXTRA_DIST): Add check-version.h.
44108         * modules/crc (EXTRA_DIST): Add crc.h.
44109         * modules/des (EXTRA_DIST): Add des.h.
44110         * modules/gc (EXTRA_DIST): Add gc.h.
44111         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44112         * modules/getline (EXTRA_DIST): Add getline.h.
44113         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44114         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44115         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44116         * modules/md2 (EXTRA_DIST): Add md2.h.
44117         * modules/md4 (EXTRA_DIST): Add md4.h.
44118         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44119         * modules/read-file (EXTRA_DIST): Add read-file.h.
44120         * modules/readline (EXTRA_DIST): Add readline.h.
44121         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44122         rijndael-api-fst.h.
44123
44124 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         * m4/rijndael.m4 (gl_ARCFOUR):
44127         * m4/arctwo.m4 (gl_ARCTWO):
44128         * m4/check-version.m4 (gl_CHECK_VERSION):
44129         * m4/crc.m4 (gl_CRC):
44130         * m4/des.m4 (gl_DES):
44131         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44132         * m4/gc.m4 (gl_GC):
44133         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44134         * m4/getline.m4 (gl_FUNC_GETLINE):
44135         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44136         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44137         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44138         * m4/md2.m4 (gl_MD2):
44139         * m4/md4.m4 (gl_MD4):
44140         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44141         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44142         * m4/readline.m4 (gl_FUNC_READLINE):
44143         * m4/rijndael.m4 (gl_RIJNDAEL):
44144         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44145         to get the necessary .h files and whatnot.
44146
44147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44148
44149         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44150         gnulib rather than the other way around.
44151         * config/srclistvars.sh (COREUTILS): Remove.
44152
44153 2006-08-22  Jim Meyering  <jim@meyering.net>
44154
44155         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44156
44157         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44158
44159 2006-08-22  Eric Blake  <ebb9@byu.net>
44160
44161         * modules/regexprops-generic: New file.
44162         * MODULES.html.sh (Support for building documentation): List it.
44163
44164 2006-08-22  Eric Blake  <ebb9@byu.net>
44165
44166         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44167         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44169         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44170
44171 2006-08-22  Bruno Haible  <bruno@clisp.org>
44172
44173         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44174         and lib_LTLIBRARIES like the other lib_* variables.
44175
44176 2006-08-22  Bruno Haible  <bruno@clisp.org>
44177
44178         * build-aux/x-to-1.in: New file, from GNU gettext.
44179
44180 2006-08-22  Bruno Haible  <bruno@clisp.org>
44181
44182         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44183         <utmpx.h> exists.
44184
44185 2006-08-22  Bruno Haible  <bruno@clisp.org>
44186
44187         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44188         <utmpx.h> exists.
44189
44190 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44191
44192         BeOS portability.
44193         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44194         exist.
44195         Problem reported by Bruno Haible.
44196
44197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44198
44199         Avoid the need for AC_LIBSOURCES in m4 macros.
44200         * modules/acl (EXTRA_DIST): Add acl.h.
44201         * modules/argmatch (Files): Add m4/argmatch.m4.
44202         (configure.ac): Add gl_ARGMATCH.
44203         (EXTRA_DIST): Renamed from lib_SOURCES, for
44204         consistency with the other modules.  Remove argmatch.c.
44205         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44206         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44207         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44208         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44209         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44210         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44211         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44212         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44213         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44214         * modules/closeout (EXTRA_DIST): Add closeout.h.
44215         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44216         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44217         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44218         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44219         dirname.h; remove basename.c and stripslash.c.
44220         * modules/exclude (EXTRA_DIST): Add exclude.h.
44221         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44222         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44223         * modules/file-type (EXTRA_DIST): Add file-type.h.
44224         * modules/filemode (EXTRA_DIST): Add filemode.h.
44225         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44226         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44227         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44228         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44229         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44230         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44231         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44232         * modules/getdate (EXTRA_DIST): Add getdate.c.
44233         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44234         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44235         * modules/getpass (EXTRA_DIST): Add getpass.h.
44236         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44237         * modules/group-member (EXTRA_DIST): Add group-member.h.
44238         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44239         * modules/hash (EXTRA_DIST): Add hash.h.
44240         * modules/human (EXTRA_DIST): Add human.h.
44241         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44242         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44243         * modules/lchown (EXTRA_DIST): Add lchown.h.
44244         * modules/long-options (EXTRA_DIST): Add long-options.h.
44245         * modules/lstat (EXTRA_DIST): Add lstat.h.
44246         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44247         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44248         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44249         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44250         * modules/memxor (EXTRA_DIST): Add memxor.h.
44251         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44252         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44253         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44254         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44255         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44256         * modules/physmem (EXTRA_DIST): Add physmem.h.
44257         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44258         * modules/posixver (EXTRA_DIST): Add posixver.h.
44259         * modules/quote (EXTRA_DIST): Add quote.h.
44260         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44261         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44262         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44263         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44264         regex_internal.h regexec.c.
44265         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44266         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44267         * modules/same (EXTRA_DIST): Add same.h.
44268         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44269         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44270         * modules/savedir (EXTRA_DIST): Add savedir.h.
44271         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44272         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44273         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44274         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44275         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44276         * modules/strdup (EXTRA_DIST): Add strdup.h.
44277         * modules/strftime (EXTRA_DIST): Add strftime.h.
44278         * modules/strndup (EXTRA_DIST): Add strndup.h.
44279         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44280         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44281         * modules/time_r (EXTRA_DIST): Add time_r.h.
44282         * modules/timespec (EXTRA_DIST): Add timespec.h.
44283         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44284         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44285         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44286         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44287         * modules/userspec (EXTRA_DIST): Add userspec.h.
44288         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44289         * modules/utimens (EXTRA_DIST): Add utimens.h.
44290         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44291         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44292         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44293         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44294         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44295         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44296         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44297         * modules/yesno (EXTRA_DIST): Add yesno.h.
44298
44299 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44300
44301         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44302
44303         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44304         * m4/dev-ino.m4, same-inode.m4: Remove.
44305
44306         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44307         * m4/acl.m4 (AC_FUNC_ACL):
44308         * m4/backupfile.m4 (gl_BACKUPFILE):
44309         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44310         * m4/canon-host.m4 (gl_CANON_HOST):
44311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44314         * m4/cloexec.m4 (gl_CLOEXEC):
44315         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44316         * m4/closeout.m4 (gl_CLOSEOUT):
44317         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44318         * m4/dirname.m4 (gl_DIRNAME):
44319         * m4/exclude.m4 (gl_EXCLUDE):
44320         * m4/exitfail.m4 (gl_EXITFAIL):
44321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44322         * m4/file-type.m4 (gl_FILE_TYPE):
44323         * m4/filemode.m4 (gl_FILEMODE):
44324         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44325         * m4/fpending.m4 (gl_FUNC_FPENDING):
44326         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44327         * m4/fts.m4 (gl_FUNC_FTS):
44328         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44329         * m4/getdate.m4 (gl_GETDATE):
44330         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44331         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44332         * m4/getpass.m4 (gl_FUNC_GETPASS):
44333         * m4/gettime.m4 (gl_GETTIME):
44334         * m4/getugroups.m4 (gl_GETUGROUPS):
44335         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44336         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44337         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44338         * m4/hash.m4 (gl_HASH):
44339         * m4/idcache.m4 (gl_IDCACHE):
44340         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44341         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44342         * m4/long-options.m4 (gl_LONG_OPTIONS):
44343         * m4/lstat.m4 (gl_FUNC_LSTAT):
44344         * m4/md5.m4 (gl_MD5):
44345         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44346         * m4/memcoll.m4 (gl_MEMCOLL):
44347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44349         * m4/memxor.m4 (gl_MEMXOR):
44350         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44351         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44352         * m4/modechange.m4 (gl_MODECHANGE):
44353         * m4/mountlist.m4 (gl_MOUNTLIST):
44354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44355         * m4/openat.m4 (gl_FUNC_OPENAT):
44356         * m4/pathmax.m4 (gl_PATHMAX):
44357         * m4/physmem.m4 (gl_PHYSMEM):
44358         * m4/posixtm.m4 (gl_POSIXTM):
44359         * m4/posixver.m4 (gl_POSIXVER):
44360         * m4/quote.m4 (gl_QUOTE):
44361         * m4/quotearg.m4 (gl_QUOTEARG):
44362         * m4/readtokens.m4 (gl_READTOKENS):
44363         * m4/readutmp.m4 (gl_READUTMP):
44364         * m4/regex.m4 (gl_REGEX):
44365         * m4/safe-read.m4 (gl_SAFE_READ):
44366         * m4/safe-write.m4 (gl_SAFE_WRITE):
44367         * m4/same.m4 (gl_SAME):
44368         * m4/save-cwd.m4 (gl_SAVE_CWD):
44369         * m4/savedir.m4 (gl_SAVEDIR):
44370         * m4/settime.m4 (gl_SETTIME):
44371         * m4/sha1.m4 (gl_SHA1):
44372         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44373         * m4/stat-macros.m4 (gl_STAT_MACROS):
44374         * m4/stat-time.m4 (gl_STAT_TIME):
44375         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44376         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44377         * m4/strdup.m4 (gl_FUNC_STRDUP):
44378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44379         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44380         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44382         * m4/time_r.m4 (gl_TIME_R):
44383         * m4/timespec.m4 (gl_TIMESPEC):
44384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44385         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44387         * m4/userspec.m4 (gl_USERSPEC):
44388         * m4/utimecmp.m4 (gl_UTIMECMP):
44389         * m4/utimens.m4 (gl_UTIMENS):
44390         * m4/xalloc.m4 (gl_XALLOC):
44391         * m4/xgetcwd.m4 (gl_XGETCWD):
44392         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44393         * m4/xreadlink.m4 (gl_XREADLINK):
44394         * m4/xstrtod.m4 (gl_XSTRTOD):
44395         * m4/yesno.m4 (gl_YESNO):
44396         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44397         to get the necessary .h files and whatnot.
44398
44399 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44400             Bruno Haible  <bruno@clisp.org>
44401
44402         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44403         /bin/sh understanding of '!' conditional negation.
44404
44405 2006-08-21  Jim Meyering  <jim@meyering.net>
44406
44407         * modules/openat (Depends-on): Really alphabetize.
44408
44409         * modules/acl (Depends-on): Add error and quote.
44410
44411         * check-module (find_included_lib_files): Add at-func.c to the
44412         ok-to-include-more-than-once white list.
44413
44414         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44415
44416 2006-08-21  Bruno Haible  <bruno@clisp.org>
44417
44418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44419         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44420         Reported by Martin Lambers <marlam@marlam.de>.
44421
44422 2006-08-21  Bruno Haible  <bruno@clisp.org>
44423
44424         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44425         specify an installation location, don't emit a noinst_LIBRARIES or
44426         noinst_LTLIBRARIES assignment.
44427
44428 2006-08-21  Bruno Haible  <bruno@clisp.org>
44429
44430         BeOS portability.
44431         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44432         BeOS has mbrtowc() but no <wctype.h>.
44433
44434 2006-08-21  Bruno Haible  <bruno@clisp.org>
44435
44436         BeOS portability.
44437         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44438         exist.
44439
44440 2006-08-21  Bruno Haible  <bruno@clisp.org>
44441
44442         BeOS portability.
44443         * lib/mbchar.h: Include <wctype.h> only if it exists.
44444
44445 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         Remove files that are no longer needed by their respective modules.
44448         * m4/obstack.m4: Remove.
44449         * m4/strerror_r.m4: Remove.
44450         * m4/uint32_t.m4: Remove.
44451         * m4/uintptr_t.m4: Remove.
44452         * m4/ullong_max.m4: Remove.
44453         * m4/xstrtoimax.m4: Remove.
44454         * m4/xstrtoumax.m4: Remove.
44455
44456         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44457         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44458         dependencies now capture this.
44459
44460         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44461         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44462         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44463         * m4/human.m4 (gl_HUMAN): Likewise.
44464         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44465         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44466
44467         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44468
44469         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44470         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44471         stdint.
44472         * m4/human.m4 (gl_HUMAN): Likewise.
44473         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44474         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44476         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44477         * m4/xstrtol (gl_XSTRTOL): Likewise.
44478
44479         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44480         AC_TYPE_LONG_LONG_INT.
44481         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44482         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44483         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44485
44486         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44487         on stdbool.
44488
44489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44490         (gl_PREREQ_XSTRTOUL): Remove.
44491
44492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44493
44494         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44495         mode.
44496
44497 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         Add and change modules to make it easier for coreutils to use
44500         gnulib-tool.
44501         * modules/backupfile (Files): Remove m4/d-ino.m4.
44502         (Depends-on): Add d-ino.
44503         * modules/cycle-check (Depends-on): Add stdint.
44504         (lib_SOURCES): Add cycle-check.h.
44505         * modules/d-ino: New module.
44506         * modules/d-type: New module.
44507         * modules/error (Files): Remove m4/strerror_r.m4.
44508         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44509         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44510         m4/inttypes_h.m4, m4/uintmax_t.m4.
44511         (Depends-on): Add stdint.
44512         (lib_SOURCES): Add fsusage.h.
44513         * modules/getcwd (Files): Remove d-ino.m4.
44514         (Depends-on): Add d-ino.
44515         * modules/getndelim2 (Depends-on): Add stdint.
44516         * modules/glob (Files): Remove m4/d-type.m4.
44517         (Depends-on): Add d-type.
44518         * modules/host-os: New module.
44519         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44520         m4/inttypes_h.m4, m4/uintmax_t.m4.
44521         * Depends-on: Add stdint.
44522         (lib_SOURCES): Add human.h.
44523         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44524         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44525         m4/uintmax_t.m4, m4/ulonglong.m4.
44526         (Depends-on): Add stdint.
44527         (EXTRA_DIST): Add inttostr.h.
44528         * modules/lchmod: New module.
44529         * modules/link-follow: New module.
44530         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44531         (Depends-on): Add lchmod.
44532         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44533         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44534         (Depends-on): Add stdint.
44535         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44536         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44537         (Depends-on): Add stdint.
44538         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44539         * modules/perl: New module.
44540         * modules/regex (Depends-on): Add stdint.
44541         * modules/rmdir-errno: New module.
44542         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44543         m4/intmax_t.m4.
44544         (Depends-on): Add stdint.
44545         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44546         m4/uintmax_t.m4.
44547         (Depends-on): Add stdint.
44548         * modules/unlink-busy: New module.
44549         * modules/utimecmp (Depends-on): Add stdint.
44550         * modules/uptime: New module.
44551         * modules/winsz-ioctl: New module.
44552         * modules/winsz-termios: New module.
44553         * modules/xnanosleep (Depends-on): Add nanosleep.
44554         * modules/ullong_max: Remove.
44555         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44556         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44557         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44558         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44559         (Depends-on): Add inttypes.
44560         (lib_SOURCES): Add xstrtol.h.
44561         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44562         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44563         * MODULES.html.sh: Move 'assert' into the assert section.
44564         Move 'dummy' into the linking section.
44565         Remove ullong_max.
44566         Add section for compatibility checks for POSIX:2001 functions,
44567         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44568         winsz-ioctl, and winsz-termios into it.
44569         Add lchmod.
44570         Add top-level Misc section and put host-os, perl, and uptime
44571         into it.
44572
44573 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44574
44575         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44576         now assume the stdint module.  Do not include inttypes.h.
44577         * lib/fsusage.h: Likewise.
44578         * lib/getndelim2.c: Likewise.
44579         * lib/human.h: Likewise.
44580         * lib/inttostr.h: Likewise.
44581         * lib/obstack.c: Likewise.
44582         * lib/regex_internal.h: Likewise.
44583         * lib/tempname.c: Likewise.
44584         * lib/utimecmp.c: Likewise.
44585         * lib/xstrtol.h: Likewise.
44586
44587         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44588
44589         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44590         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44591         * lib/xtime.h: Likewise.
44592
44593 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44594
44595         * modules/openat (Files): Add lib/fchmodat.c.
44596         Fixes problem reported by Jay Youngman.
44597
44598 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44599
44600         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44601         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44602
44603 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44604             Bruno Haible  <bruno@clisp.org>
44605
44606         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44607         and is a script that invokes bison. Tighten the code. Add comments.
44608
44609 2006-08-18  Jim Meyering  <jim@meyering.net>
44610
44611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44612         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44613         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44614         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44615
44616 2006-08-18  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/bison-i18n: New file.
44619         * MODULES.html.sh (Internationalization functions): Add it.
44620
44621 2006-08-18  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44624         sys/statvfs.h. When getmntinfo was found, check its declaration and
44625         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44626
44627 2006-08-18  Bruno Haible  <bruno@clisp.org>
44628
44629         * m4/bison-i18n.m4: New file, from bison.
44630
44631 2006-08-18  Bruno Haible  <bruno@clisp.org>
44632
44633         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44634         (ME_DUMMY): Treat "kernfs" as a dummy.
44635         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44636
44637 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44638
44639         Update from coreutils.
44640
44641         2006-08-15  Jim Meyering  <jim@meyering.net>
44642
44643         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44644
44645         2006-01-17  Jim Meyering  <jim@meyering.net>
44646
44647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44648
44649         2006-01-11  Jim Meyering  <jim@meyering.net>
44650
44651         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44652         Check for the lchmod function.
44653
44654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44655
44656         Update from coreutils.
44657
44658         * lib/__fpending.h: Add copyright notice.
44659         * lib/fprintftime.h: Likewise.
44660         * lib/savedir.c: Use (C) in copyright notice.
44661         * lib/savedir.h: Likewise.
44662
44663         2006-08-15  Jim Meyering  <jim@meyering.net>
44664
44665         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44666         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44667         in support of the EXPECTED_ERRNO macro.
44668         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44669         definitions.  Instead, define the appropriate symbols and include
44670         "at-func.c".
44671         * lib/mkdirat.c (mkdirat): Likewise.
44672         * lib/fchmodat.c (fchmodat): Likewise.
44673         (ENOSYS): Remove definition.
44674         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44675         it.  Don't include "unistd--.h" -- it wasn't ever used.
44676
44677         2006-01-17  Jim Meyering  <jim@meyering.net>
44678
44679         Rewrite fts.c not to change the current working directory,
44680         by using openat, fstatat, fdopendir, etc..
44681
44682         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44683         (HAVE_OPENAT_SUPPORT): Define.
44684         [_LIBC] (fchdir): Don't undef or define; no longer used.
44685         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44686         Now, this `function' always succeeds, and consumes its file descriptor
44687         parameter -- so callers must not close such FDs.  Update callers.
44688         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44689         (diropen): Add parameter, SP.  Adjust all callers.
44690         Implement using diropen_fd, rather than open.
44691         (fts_open): Initialize new member, fts_cwd_fd.
44692         Remove fts_rft-setting code.
44693         (fts_close): Close fts_cwd_fd, if necessary.
44694         (__opendir2): Define in terms of opendir or opendirat,
44695         depending on whether the FST_NOCHDIR flag is set.
44696         (fts_build): Since fts_safe_changedir consumes its FD, and since
44697         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44698         and close the dup'd file descriptor upon failure.
44699         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44700         (fts_safe_changedir): Tweak semantics to reflect that this function
44701         now calls cwd_advance_fd and hence consumes its FD argument.
44702         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44703         [struct FTS] (fts_rft): Remove now-unused member.
44704         [struct FTS] (fts_cycle.state): Improve comment.
44705
44706         * lib/openat.c (openat_needs_fchdir): New function.
44707         * lib/openat.h (openat_needs_fchdir): Declare it.
44708
44709 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44710
44711         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44712         Problem and fix reported by Pádraig Brady in
44713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44714
44715 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44716
44717         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44718
44719 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44720
44721         * lib/memcoll.c (memcoll): Optimize for the common case where the
44722         arguments are bytewise equal.
44723
44724 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44725
44726         * doc/regexprops-generic.texi: Add a copyright notice.
44727
44728 2006-08-15  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/tmpdir (License): Change to LGPL.
44731
44732 2006-08-15  Bruno Haible  <bruno@clisp.org>
44733
44734         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44735         module.
44736
44737 2006-08-14  Simon Josefsson  <jas@extundo.com>
44738
44739         * config/srclist.txt: Add gnupload.
44740
44741 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44742
44743         Change copyright notice from LGPL 2 to GPL 2, since that's the
44744         standard form used in the gnulib repository.
44745         * tests/test-lock.c: Likewise.
44746         * tests/test-stdint.c: Likewise.
44747         * tests/test-tls.c: Likewise.
44748
44749         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44750         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44751         Add copyright notice.
44752
44753         * check-module: Add copyright notice.  Output a copyright
44754         notice if "--version" is specified.
44755         * modules/COPYING: New file.
44756         * tests/test-getaddrinfo.c: Add copyright notice.
44757         * tests/test-verify.c: Likewise.
44758
44759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44760
44761         Change copyright notice from LGPL 2 to GPL 2, since that's the
44762         standard form used in the gnulib repository.
44763         * lib/lock.c: LGPL -> GPL.
44764         * lib/lock.h: Likewise.
44765         * lib/strnlen1.c: Likewise.
44766         * lib/strnlen1.h: Likewise.
44767         * lib/tls.c: Likewise.
44768         * lib/tls.h: Likewise.
44769         * lib/tmpdir.c: Likewise.
44770
44771         * lib/TODO: Remove; this belongs only in coreutils.
44772
44773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44774
44775         Add copyright notices to long-enough files that lack them, since
44776         otherwise the files aren't clearly free.  Use the same notice that
44777         getdate.texi already uses.
44778         * doc/alloca-opt.texi: Add copyright notice.
44779         * doc/alloca.texi: Likewise.
44780         * doc/ctime.texi: Likewise.
44781         * doc/functions.texi: Likewise.
44782         * doc/gcd.texi: Likewise.
44783         * doc/gnulib-tool.texi: Likewise.
44784         * doc/inet_ntoa.texi: Likewise.
44785         * doc/visibility.texi: Likewise.
44786
44787         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44788         * doc/quote.texi: Add copyright notice.
44789
44790         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44791         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44792         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44793         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44794         is now obsolete, and give a pointer to the Sun list.
44795         Add copyright notice.
44796
44797 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44798
44799         * config/srclistvars.sh: Add copyright notice.
44800
44801 2006-08-14  Eric Blake  <ebb9@byu.net>
44802
44803         Import the following change from libc:
44804
44805         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44806
44807         Upstream bug 2997.
44808         * lib/misc/error.c: Add space between program name and message if file
44809         name is missing.
44810
44811 2006-08-12  Karl Berry  <karl@gnu.org>
44812
44813         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44814         remove, these originate in gnulib now.
44815
44816 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44817
44818         * doc/Makefile (standards.info standards.html standards.dvi):
44819         Also depend on make-stds.texi.
44820
44821 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44822
44823         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44824         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44825
44826         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44827         in wchar_t.  Problem reported by Eric Blake.
44828
44829         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44830         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44831         Also, help the compiler to keep LEN in a register.
44832
44833 2006-08-11  Eric Blake  <ebb9@byu.net>
44834
44835         * users.txt: Sort.  Add tar.
44836
44837 2006-08-11  Bruno Haible  <bruno@clisp.org>
44838
44839         * users.txt: New file.
44840
44841 2006-08-11  Bruno Haible  <bruno@clisp.org>
44842
44843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44844         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44845
44846 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44847
44848         * modules/snprintf (Depends-on): Remove minmax.
44849         (Maintainer): Add self and Bruno.
44850
44851 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44852
44853         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44854         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44855         (EOVERFLOW): Define if the system does not.
44856         Do not include "minmax.h"; it wasn't used.
44857         (snprintf): Don't assume size_t promotes to an unsigned type.
44858         Fix bug when generated string was too long for the buffer: the
44859         buffer's contents are supposed to be the initial prefix of the
44860         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44861         exceeds INT_MAX; do the check ourselves.
44862
44863         Import the following changes from libc:
44864
44865         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44866
44867         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44868         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44869         set wc to the byte which couldn't be converted.
44870         (re_string_reconstruct): Don't clear valid_raw_len before calling
44871         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44872         tip_context using re_string_context_at.
44873
44874         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44875
44876         * lib/posix/regex.h: g++ still cannot handled [restrict].
44877
44878         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44879
44880         * lib/posix/regex.h: Remove special handling for VMS.
44881
44882 2006-08-10  Jim Meyering  <jim@meyering.net>
44883
44884         * modules/same-inode: New module.
44885         * modules/dev-ino: New module.
44886         * modules/cycle-check: Depend on these modules, rather than simply
44887         including their .h files.
44888         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44889         required via m4/cycle-check.m4.
44890         * modules/same: Depend on new same-inode module, rather than
44891         including same-inode.h.
44892         * modules/chdir-safer: New file.
44893
44894         * modules/chown (Depends-on): Add stat-macros.
44895
44896 2006-08-10  Jim Meyering  <jim@meyering.net>
44897
44898         * m4/cycle-check.m4: New file.
44899         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44900         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44901
44902 2006-08-10  Eric Blake  <ebb9@byu.net>
44903
44904         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44905         in from original proposal.
44906
44907 2006-08-10  Eric Blake  <ebb9@byu.net>
44908         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44909
44910         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44911         namespace.
44912
44913 2006-08-10  Bruno Haible  <bruno@clisp.org>
44914
44915         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44916         as well.
44917
44918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         Sync from coreutils.
44921
44922         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44923
44924         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44925         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44926
44927 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44928
44929         * modules/restrict: Remove; no longer needed now that we assume
44930         Autoconf 2.59 or later.
44931         * MODULES.html.sh: Remove 'restrict'.
44932         * modules/argp (Depends-on): Remove 'restrict'.
44933         * modules/base64 (Depends-on): Likewise.
44934         * modules/gc (Depends-on): Likewise.
44935         * modules/getaddrinfo (Depends-on): Likewise.
44936         * modules/glob (Depends-on): Likewise.
44937         * modules/inet_ntop (Depends-on): Likewise.
44938         * modules/inet_pton (Depends-on): Likewise.
44939         * modules/memxor (Depends-on): Likewise.
44940         * modules/regex (Depends-on): Likewise.
44941         * modules/strtok_r (Depends-on): Likewise.
44942         * modules/time_r (Depends-on): Likewise.
44943
44944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44947         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44948         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44949         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44950         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44951         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44952         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44953         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44954
44955         Merge from coreutils.
44956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44957         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44959         * m4/time_r.m4 (gl_TIME_R): Likewise.
44960
44961 2006-08-09  Karl Berry  <karl@gnu.org>
44962
44963         * config/srclist.txt: no more gettext-tools, per Bruno.
44964
44965 2006-08-08  Eric Blake  <ebb9@byu.net>
44966
44967         * modules/verror: New module.
44968         * MODULES.html.sh: Document it.
44969
44970 2006-08-08  Eric Blake  <ebb9@byu.net>
44971
44972         * lib/verror.h, lib/verror.c: New files.
44973
44974 2006-08-08  Eric Blake  <ebb9@byu.net>
44975
44976         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44977         verror_at_line output complies with GNU Coding Standards even when
44978         file is NULL.
44979
44980 2006-08-07  Bruno Haible  <bruno@clisp.org>
44981
44982         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44983         versions of AIX.
44984         Reported by Ralf Wildenhues.
44985
44986 2006-08-07  Bruno Haible  <bruno@clisp.org>
44987
44988         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44989         in an AC_DEFUN. Needed so that the autoconf snippets can use
44990         AC_REQUIRE.
44991
44992 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44993
44994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44995         Initialize pkgdata_DATA.
44996         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44997         overriding it.
44998
44999 2006-08-06  Eric Blake  <ebb9@byu.net>
45000
45001         * lib/error.h: Fold in some upstream changes from glibc.
45002         * lib/error.c: Likewise.
45003
45004 2006-08-04  Bruno Haible  <bruno@clisp.org>
45005
45006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45007         Make the mostlyclean-local rule depend on mostlyclean-generic.
45008         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45009
45010 2006-07-31  Bruno Haible  <bruno@clisp.org>
45011
45012         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45013         <stdlib.h>, <string.h>.
45014
45015 2006-07-30  Bruno Haible  <bruno@clisp.org>
45016
45017         * modules/readlink (License): Change to LGPL.
45018
45019 2006-07-30  Bruno Haible  <bruno@clisp.org>
45020
45021         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45022         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45023         set PKGDATADIR to point to it.
45024
45025 2006-07-30  Bruno Haible  <bruno@clisp.org>
45026
45027         * modules/csharpexec (configure.ac): Comment out macro invocation.
45028         * modules/javaexec (configure.ac): Likewise.
45029         * modules/javacomp-script (configure.ac): Likewise.
45030
45031         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45032
45033 2006-07-30  Bruno Haible  <bruno@clisp.org>
45034
45035         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45036         linked-list.
45037
45038 2006-07-30  Bruno Haible  <bruno@clisp.org>
45039
45040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45041
45042 2006-07-30  Bruno Haible  <bruno@clisp.org>
45043
45044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45045         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45046         get removed.
45047
45048 2006-07-29  Bruno Haible  <bruno@clisp.org>
45049
45050         Make it possible for gnulib-tool to work with locally modified or
45051         augmented gnulib repositories.
45052         * gnulib-tool (func_usage): Document --local-dir option.
45053         (local_gnulib_dir): New variable.
45054         Handle --local-dir option.
45055         (func_lookup_file): New function.
45056         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45057         (func_get_description, func_get_filelist, func_get_description,
45058         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45059         func_get_automake_snippet, func_get_include_directive,
45060         func_get_license, func_get_maintainer): Use func_lookup_file.
45061         (func_import, func_create_testdir): Use func_lookup_file.
45062
45063 2006-07-29  Bruno Haible  <bruno@clisp.org>
45064
45065         * modules/setenv (Depends-on): Add unistd.
45066
45067 2006-07-29  Bruno Haible  <bruno@clisp.org>
45068
45069         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45070
45071 2006-07-29  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45074
45075 2006-07-29  Bruno Haible  <bruno@clisp.org>
45076
45077         * gnulib-tool (import, update): If there is no Makefile.am, look at
45078         aclocal.m4, instead of bailing out.
45079
45080 2006-07-29  Bruno Haible  <bruno@clisp.org>
45081
45082         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45083         Categorize the options by when they are useful.
45084
45085 2006-07-29  Bruno Haible  <bruno@clisp.org>
45086
45087         * gnulib-tool (func_usage): Document option --no-libtool.
45088         Handle option --no-libtool.
45089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45090         for changed semantics of $libtool variable.
45091         (func_import): Likewise. If libtool is not used, show this through
45092         an option --no-libtool.
45093         (func_create_testdir): Update.
45094
45095 2006-07-29  Bruno Haible  <bruno@clisp.org>
45096
45097         * gnulib-tool (func_import): Extend error message about missing
45098         --doc-base.
45099
45100 2006-07-29  Bruno Haible  <bruno@clisp.org>
45101
45102         * gnulib-tool (func_import): Don't create the $docbase directory if
45103         there is no file to store there.
45104
45105 2006-07-29  Bruno Haible  <bruno@clisp.org>
45106
45107         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45108         relevant, look for configure.ac there, not in the current directory.
45109         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45110
45111 2006-07-29  Bruno Haible  <bruno@clisp.org>
45112
45113         * gnulib-tool (SORT): New variable.
45114         (func_usage): Undocument --assume-autoconf option.
45115         Remove --assume-autoconf option handling.
45116         (autoconf_minversion): Determine from the contents of configure.ac.
45117         (func_import): Remove autoconf_minversion handling.
45118         Suggested by Eric Blake.
45119
45120 2006-07-29  Bruno Haible  <bruno@clisp.org>
45121
45122         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45123
45124 2006-07-29  Bruno Haible  <bruno@clisp.org>
45125
45126         * config/srclist.txt (*setenv.[ch]): Remove rules.
45127
45128 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45129
45130         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45131
45132 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45133
45134         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45135         arpa/inet.h.
45136
45137 2006-07-28  Simon Josefsson  <jas@extundo.com>
45138
45139         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45140         * modules/inet_pton (Depends-on): Likewise.
45141
45142 2006-07-28  Simon Josefsson  <jas@extundo.com>
45143
45144         * m4/netinet_in_h.m4: New file.
45145
45146 2006-07-28  Simon Josefsson  <jas@extundo.com>
45147
45148         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45149         #include's.
45150
45151 2006-07-28  Simon Josefsson  <jas@extundo.com>
45152
45153         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45154         #include's.
45155
45156 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45157
45158         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45159         setgid on directories only if they set these bits.
45160         * lib/modechange.h: Remove obsolete comment about masks.
45161
45162 2006-07-28  Eric Blake  <ebb9@byu.net>
45163
45164         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45165         macro expansion.
45166
45167 2006-07-28  Bruno Haible  <bruno@clisp.org>
45168
45169         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45170
45171 2006-07-28  Bruno Haible  <bruno@clisp.org>
45172
45173         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45174
45175 2006-07-28  Bruno Haible  <bruno@clisp.org>
45176
45177         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45178         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45179         Define fallbacks.
45180         Avoids link error on FreeBSD 4.x.
45181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45182
45183         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45184         encoding.
45185         * lib/mbswidth.c (iswcntrl): Likewise.
45186
45187 2006-07-27  Bruno Haible  <bruno@clisp.org>
45188
45189         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45190         test.
45191
45192 2006-07-27  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45195         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45196         defined.
45197
45198 2006-07-26  Eric Blake  <ebb9@byu.net>
45199
45200         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45201
45202 2006-07-26  Eric Blake  <ebb9@byu.net>
45203
45204         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45205         like mingw that lack mkstemp.
45206         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45207         avoid compilation warning on mingw.
45208
45209 2006-07-26  Bruno Haible  <bruno@clisp.org>
45210
45211         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45212         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45213         INT_FAST*_MIN, INTPTR_MIN.
45214
45215 2006-07-25  Bruno Haible  <bruno@clisp.org>
45216
45217         * modules/version-etc (Depends-on): Add stdarg.
45218
45219 2006-07-25  Bruno Haible  <bruno@clisp.org>
45220
45221         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45222         complex commands.
45223
45224 2006-07-25  Bruno Haible  <bruno@clisp.org>
45225
45226         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45227         defined in <stdarg.h> or config.h.
45228
45229 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45230
45231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45232         (gl_STDIO_SAFER): Remove.
45233
45234 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45235
45236         * MODULES.html.sh (File stream based Input/Output):
45237         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45238         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45239         * modules/fopen-safer, modules/tmpfile-safer: New files.
45240         * modules/stdio-safer: Remove.
45241
45242 2006-07-24  Bruno Haible  <bruno@clisp.org>
45243
45244         * modules/tmpdir: New file.
45245         * MODULES.html.sh (File system functions): Add it.
45246
45247 2006-07-24  Bruno Haible  <bruno@clisp.org>
45248
45249         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45250         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45251
45252 2006-07-24  Bruno Haible  <bruno@clisp.org>
45253
45254         * modules/clean-temp: New file.
45255
45256 2006-07-24  Bruno Haible  <bruno@clisp.org>
45257
45258         * m4/tmpdir.m4: New file, from GNU gettext.
45259
45260 2006-07-24  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/tmpdir.h: New file, from GNU gettext.
45263         * lib/tmpdir.c: New file, from GNU gettext.
45264
45265 2006-07-24  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/clean-temp.h: New file, from GNU gettext.
45268         * lib/clean-temp.c: New file, from GNU gettext.
45269
45270 2006-07-23  Eric Blake  <ebb9@byu.net>
45271
45272         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45273         (Depends-on): Add binary-io.
45274
45275 2006-07-23  Eric Blake  <ebb9@byu.net>
45276
45277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45278
45279 2006-07-23  Eric Blake  <ebb9@byu.net>
45280
45281         * lib/tmpfile-safer.c: New file.
45282         * lib/stdio-safer.h (fopen_safer): Add prototype.
45283         * lib/stdio--.h (tmpfile): Make safer.
45284
45285 2006-07-23  Bruno Haible  <bruno@clisp.org>
45286
45287         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45288         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45289         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45290         gl_linked_remove_at): Use it.
45291
45292 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45293         and Simon Josefsson <jas@extundo.com>
45294
45295         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45296
45297         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45298
45299 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45300
45301         * modules/close-stream: New file.
45302         * modules/closeout (Description): Make it clear that it exits
45303         with a diagnostic on error.
45304         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45305         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45306
45307 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45308
45309         * m4/close-stream.m4: New file.
45310
45311 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * lib/close-stream.c, lib/close-stream.h: New files.
45314
45315 2006-07-22  Bruno Haible  <bruno@clisp.org>
45316
45317         Merge from GNU gettext 0.15.
45318
45319         2006-05-01  Bruno Haible  <bruno@clisp.org>
45320
45321                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45322
45323         2006-07-22  Bruno Haible  <bruno@clisp.org>
45324
45325                 * modules/javaversion: New file.
45326                 * MODULES.html.sh (Java): Add javaversion.
45327
45328         2006-03-12  Bruno Haible  <bruno@clisp.org>
45329
45330                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45331
45332         2005-12-04  Bruno Haible  <bruno@clisp.org>
45333
45334                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45335                 (untested).
45336
45337         2006-06-21  Bruno Haible  <bruno@clisp.org>
45338
45339                 Avoid warnings from recent versions of mcs.
45340                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45341                 -o, -L, -r any more. Use options documented since mcs-1.0
45342                 instead. Similarly for -g.
45343
45344         2005-12-04  Bruno Haible  <bruno@clisp.org>
45345
45346                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45347                 .resources, not .resource.
45348
45349         2005-07-09  Bruno Haible  <bruno@clisp.org>
45350
45351                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45352                 add a .dll suffix.
45353                 Reported by Mark Junker <mjscod@gmx.de>.
45354
45355         2006-07-22  Bruno Haible  <bruno@clisp.org>
45356
45357                 * modules/gettext: Upgrade to gettext-0.15.
45358                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45359                 m4/visibility.m4.
45360                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45361
45362 2006-07-22  Bruno Haible  <bruno@clisp.org>
45363
45364         Merge from GNU gettext 0.15.
45365
45366         2006-03-25  Bruno Haible  <bruno@clisp.org>
45367
45368                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45369
45370         2006-07-21  Bruno Haible  <bruno@clisp.org>
45371
45372                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45373                 "1.1".
45374
45375         2006-05-09  Bruno Haible  <bruno@clisp.org>
45376
45377                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45378                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45379                 for the conftestver execution.
45380
45381         2006-05-01  Bruno Haible  <bruno@clisp.org>
45382
45383                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45384                 optional target-version argument. Verify that the compiler
45385                 groks source of the specified source-version, or add -source
45386                 option as necessary. Verify that the compiler produces
45387                 bytecode in the specified target-version, or add -target and
45388                 -source options as necessary. Make the result of the test
45389                 available as variable CONF_JAVAC. Also log error output in
45390                 config.log.
45391
45392         2006-03-11  Bruno Haible  <bruno@clisp.org>
45393
45394                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45395
45396         2006-05-09  Bruno Haible  <bruno@clisp.org>
45397
45398                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45399                 CLASSPATH_SEPARATOR to a semicolon.
45400
45401         2006-03-12  Bruno Haible  <bruno@clisp.org>
45402
45403                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45404                 available as variable CONF_JAVA, for subsequent autoconf
45405                 tests. Also log error output in config.log.
45406
45407         2006-07-19  Bruno Haible  <bruno@clisp.org>
45408
45409                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45410                 that getline works on glibc2 systems. Needed to avoid trouble
45411                 in relocatable.c.
45412                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45413
45414         2005-12-04  Bruno Haible  <bruno@clisp.org>
45415
45416                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45417                 launcher (untested).
45418
45419         2005-12-04  Bruno Haible  <bruno@clisp.org>
45420
45421                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45422
45423         2006-07-22  Bruno Haible  <bruno@clisp.org>
45424
45425                 * gettext.m4: Update from GNU gettext-0.15.
45426                 * nls.m4: Likewise.
45427                 * po.m4: Likewise.
45428                 * inttypes-pri.m4: Likewise.
45429                 * inttypes-h.m4: Renamed from inttypes.m4.
45430                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45431
45432 2006-07-22  Bruno Haible  <bruno@clisp.org>
45433
45434         Merge from GNU gettext 0.15.
45435
45436         2005-07-05  Bruno Haible  <bruno@clisp.org>
45437
45438                 * printf-args.c (printf_fetchargs): Work around broken
45439                 definition of wint_t on mingw.
45440
45441         2005-02-12  Bruno Haible  <bruno@clisp.org>
45442
45443                 * xallocsa.h: Add extern "C" for C++.
45444
45445         2006-05-17  Bruno Haible  <bruno@clisp.org>
45446
45447                 Cygwin portability.
45448                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45449
45450         2006-04-30  Bruno Haible  <bruno@clisp.org>
45451
45452                 * progreloc.c: Include <mach-o/dyld.h> if available.
45453                 (find_executable): Use _NSGetExecutablePath when possible.
45454
45455         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45456
45457                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45458                 function.
45459
45460         2005-12-29  Bruno Haible  <bruno@clisp.org>
45461
45462                 * progreloc.c (set_program_name_and_installdir): Fix
45463                 compilation error.
45464
45465         2005-12-04  Bruno Haible  <bruno@clisp.org>
45466
45467                 Cygwin portability.
45468                 * progreloc.c: Include <windows.h> also on Cygwin.
45469                 (find_executable): Add support for Cygwin.
45470                 (set_program_name_and_installdir): Handle also platforms with
45471                 nonempty EXEEXT.
45472
45473         2006-07-11  Bruno Haible  <bruno@clisp.org>
45474
45475                 * javacomp.c: Fix a comment.
45476                 Reported by Jim Meyering.
45477
45478         2006-04-30  Bruno Haible  <bruno@clisp.org>
45479
45480                 * javacomp.h (compile_java_class): Add source_version,
45481                 target_version arguments.
45482                 * javacomp.c: Rewritten to choose only a compiler that
45483                 respects the specified source_version and target_version.
45484
45485         2006-06-27  Bruno Haible  <bruno@clisp.org>
45486
45487                 Assume correct S_ISDIR macro.
45488                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45489
45490         2006-07-22  Bruno Haible  <bruno@clisp.org>
45491
45492                 * javaversion.h: New file, from GNU gettext.
45493                 * javaversion.c: New file, from GNU gettext.
45494                 * javaversion.java: New file, from GNU gettext.
45495                 * javaversion.class: New file, from GNU gettext.
45496
45497         2006-05-17  Bruno Haible  <bruno@clisp.org>
45498
45499                 Cygwin portability.
45500                 * javaexec.c (execute_java_class): Test for jview program
45501                 also on Cygwin.
45502
45503         2006-04-09  Bruno Haible  <bruno@clisp.org>
45504
45505                 * fatal-signal.c: Don't include string.h.
45506                 (at_fatal_signal): Use a copying loop instead of memcpy.
45507
45508         2005-12-04  Bruno Haible  <bruno@clisp.org>
45509
45510                 * csharpexec.c: Add support for 'clix' launcher (untested).
45511                 (execute_csharp_using_sscli): New function.
45512                 (execute_csharp_program): Call it.
45513
45514         2006-06-21  Bruno Haible  <bruno@clisp.org>
45515
45516                 Avoid warnings from recent versions of mcs.
45517                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45518                 -o, -L, -r any more. Use options documented since mcs-1.0
45519                 instead. Similarly for -g.
45520
45521         2005-07-09  Bruno Haible  <bruno@clisp.org>
45522
45523                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45524                 add a .dll suffix.
45525                 Reported by Mark Junker <mjscod@gmx.de>.
45526
45527         2006-06-17  Bruno Haible  <bruno@clisp.org>
45528
45529                 * config.charset: Update for NetBSD 3.0.
45530
45531         2006-05-17  Bruno Haible  <bruno@clisp.org>
45532
45533                 Cygwin portability.
45534                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45535
45536         2006-05-16  Bruno Haible  <bruno@clisp.org>
45537
45538                 * localcharset.c [CYGWIN]: Include <windows.h>.
45539                 (get_charset_aliases): For Cygwin, return the same CPxxx
45540                 aliases list as under WIN32.
45541                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45542                 the environment variables. Fall back to GetACP().
45543
45544         2006-04-05  Bruno Haible  <bruno@clisp.org>
45545
45546                 * config.charset: Update Juan Manuel Guerrero's address.
45547
45548         2005-02-12  Bruno Haible  <bruno@clisp.org>
45549
45550                 * allocsa.h: Add extern "C" for C++.
45551
45552         2005-02-10  Bruno Haible  <bruno@clisp.org>
45553
45554                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45555                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45556
45557         2006-07-22  Bruno Haible  <bruno@clisp.org>
45558
45559                 * gettext.h: Update to GNU gettext-0.15.
45560
45561 2006-07-22  Bruno Haible  <bruno@clisp.org>
45562
45563         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45564         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45565         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45566
45567 2006-07-21  Eric Blake  <ebb9@byu.net>
45568
45569         * modules/stdlib-safer: New file.
45570         * MODULES.html.sh (File stream based Input/Output): Add
45571         stdlib-safer.
45572
45573 2006-07-21  Eric Blake  <ebb9@byu.net>
45574
45575         * lib/stdlib-safer.h: New file from coreutils, required by
45576         stdlib--.h.
45577
45578 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45579
45580         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45581
45582 2006-07-20  Bruno Haible  <bruno@clisp.org>
45583
45584         * gnulib-tool: Recognize new option --assume-autoconf.
45585         (autoconf_minversion): New variable.
45586         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45587
45588 2006-07-20  Bruno Haible  <bruno@clisp.org>
45589
45590         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45591
45592 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45593
45594         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45595         Reindent and repaginate.
45596
45597 2006-07-19  Derek Price  <derek@ximbiot.com>
45598
45599         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45600         Correct grammar.
45601
45602 2006-07-17  Bruno Haible  <bruno@clisp.org>
45603
45604         * modules/list: New file.
45605         * modules/array-list: New file.
45606         * modules/carray-list, modules/carray-list-tests: New files.
45607         * modules/linked-list, modules/linked-list-tests: New files.
45608         * modules/avltree-list, modules/avltree-list-tests: New files.
45609         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45610         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45611         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45612         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45613         * modules/oset: New file.
45614         * modules/array-oset: New file.
45615         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45616         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45617         * tests/test-carray_list.c: New file.
45618         * tests/test-linked_list.c: New file.
45619         * tests/test-avltree_list.c: New file.
45620         * tests/test-rbtree_list.c: New file.
45621         * tests/test-linkedhash_list.c: New file.
45622         * tests/test-avltreehash_list.c: New file.
45623         * tests/test-rbtreehash_list.c: New file.
45624         * tests/test-avltree_oset.c: New file.
45625         * tests/test-rbtree_oset.c: New file.
45626         * MODULES.html.sh (Container data structures): New section.
45627
45628 2006-07-17  Bruno Haible  <bruno@clisp.org>
45629
45630         * m4/gl_list.m4: New file.
45631
45632 2006-07-17  Bruno Haible  <bruno@clisp.org>
45633
45634         * lib/gl_list.h: New file.
45635         * lib/gl_list.c: New file.
45636         * lib/gl_array_list.h: New file.
45637         * lib/gl_array_list.c: New file.
45638         * lib/gl_carray_list.h: New file.
45639         * lib/gl_carray_list.c: New file.
45640         * lib/gl_linked_list.h: New file.
45641         * lib/gl_linked_list.c: New file.
45642         * lib/gl_anylinked_list1.h: New file.
45643         * lib/gl_anylinked_list2.h: New file.
45644         * lib/gl_avltree_list.h: New file.
45645         * lib/gl_avltree_list.c: New file.
45646         * lib/gl_anyavltree_list1.h: New file.
45647         * lib/gl_anyavltree_list2.h: New file.
45648         * lib/gl_rbtree_list.h: New file.
45649         * lib/gl_rbtree_list.c: New file.
45650         * lib/gl_anyrbtree_list1.h: New file.
45651         * lib/gl_anyrbtree_list2.h: New file.
45652         * lib/gl_anytree_list1.h: New file.
45653         * lib/gl_anytree_list2.h: New file.
45654         * lib/gl_linkedhash_list.h: New file.
45655         * lib/gl_linkedhash_list.c: New file.
45656         * lib/gl_anyhash_list1.h: New file.
45657         * lib/gl_anyhash_list2.h: New file.
45658         * lib/gl_avltreehash_list.h: New file.
45659         * lib/gl_avltreehash_list.c: New file.
45660         * lib/gl_rbtreehash_list.h: New file.
45661         * lib/gl_rbtreehash_list.c: New file.
45662         * lib/gl_anytreehash_list1.h: New file.
45663         * lib/gl_anytreehash_list2.h: New file.
45664
45665         * lib/gl_oset.h: New file.
45666         * lib/gl_oset.c: New file.
45667         * lib/gl_array_oset.h: New file.
45668         * lib/gl_array_oset.c: New file.
45669         * lib/gl_avltree_oset.h: New file.
45670         * lib/gl_avltree_oset.c: New file.
45671         * lib/gl_rbtree_oset.h: New file.
45672         * lib/gl_rbtree_oset.c: New file.
45673         * lib/gl_anytree_oset.h: New file.
45674
45675 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45676
45677         * m4/mkancesdirs.m4: New file.
45678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45679         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45680         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45681         it.
45682
45683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45684
45685         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45686         * lib/mkancesdirs.h: New files.
45687         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45688         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45689         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45690         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45691         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45692         callers changed.  Revamp internals significantly, by not
45693         attempting to create directories that are temporarily more
45694         permissive than the final results.  Do not attempt to use
45695         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45696         This removes some race conditions, fixes some bugs, and simplifies
45697         things.  Use new dirchownmod function to do owner and mode changes.
45698         * lib/mkdir-p.h: Likewise.
45699         * lib/modechange.c (octal_to_mode): New function.
45700         (struct mode_change): New member mentioned.
45701         (make_node_op_equals): New arg mentioned.  All callers changed.
45702         (mode_compile): Keep track of which mode bits the user has explicitly
45703         mentioned.
45704         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45705         New arg PMODE_BITS, to keep track of which mode bits the user
45706         mentioned; it treats S_ISUID and S_ISGID speciall.
45707         All callers changed.
45708         * lib/modechange.h: Likewise.
45709
45710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45711
45712         * MODULES.html.sh: Add mkancestors.
45713         * modules/mkancesdirs: New module.
45714         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45715         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45716         The chdir-safer and afs files are now orphans; I'll remove them
45717         unless someone speaks up.
45718         Add lib/dirchownmod.c, lib/dirchownmod.h.
45719         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45720         Add lchown, mkancesdirs.
45721         (Maintainer): Add self.
45722
45723 2006-07-15  Karl Berry  <karl@gnu.org>
45724
45725         * gnulib-tool: help message wording/arrangement.
45726
45727 2006-07-14  Simon Josefsson  <jas@extundo.com>
45728
45729         * doc/gnulib.texi (Libtool and Windows): New section.
45730
45731 2006-07-12  Simon Josefsson  <jas@extundo.com>
45732
45733         * modules/gendocs (License): Fix license, approved by Karl.
45734
45735 2006-07-12  Eric Blake  <ebb9@byu.net>
45736
45737         * MODULES.html.sh: Add gendocs.
45738
45739 2006-07-11  Eric Blake  <ebb9@byu.net>
45740
45741         * modules/fdl: New module, to install doc/fdl.texi.
45742         * MODULES.html.sh: Add new section for documentation modules.
45743         * gnulib-tool: Avoid space-tab.
45744         (--doc-base): New option, to manage files from doc.
45745
45746 2006-07-11  Eric Blake  <ebb9@byu.net>
45747
45748         * m4/absolute-header.m4: Fix comments to match recent change.
45749
45750 2006-07-11  Eric Blake  <ebb9@byu.net>
45751
45752         * gnulib-tool: List --doc-base before --tests-base.
45753
45754 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45755
45756         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45757
45758 2006-07-11  Bruno Haible  <bruno@clisp.org>
45759
45760         * README: Mention where to put documentation.
45761
45762 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45763
45764         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45765
45766 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45767
45768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45769         to stdint.m4.
45770
45771 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45772
45773         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45774         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45775         "no/such/file/stdint.h" when there is no such file, so that
45776         the resulting C code can be parsed by dodgy compilers.
45777         Problems reported by Bob Proulx.
45778
45779 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45780
45781         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45782         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45783         macros into the GNU _D_EXACT_NAMLEN.
45784         * lib/savedir.c:  Likewise.
45785         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45786
45787 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45788         and Paul Eggert  <eggert@cs.ucla.edu>
45789
45790         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45791         * m4/savedir.m4:
45792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45793         macros into the GNU _D_EXACT_NAMLEN.
45794
45795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45798         around the absolute name, to work around a problem with the HP-UX
45799         11.23 native C compiler, reported by Bob Proulx.
45800
45801 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45802
45803         * doc/maintain.texi, make-stds.texi: Sync from
45804         <http://savannah.gnu.org/projects/gnustandards>.
45805
45806 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45807
45808         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45809
45810 2006-07-09  Jim Meyering  <jim@meyering.net>
45811
45812         * m4/glob.m4: Remove a doubled word in a comment.
45813
45814 2006-07-09  Jim Meyering  <jim@meyering.net>
45815
45816         * lib/argp-pv.c: Remove a doubled word in a comment.
45817         * lib/check-version.c (check_version): Likewise.
45818         * lib/javacomp.c (compile_java_class): Likewise.
45819
45820 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45821
45822         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45823         for the benefit of people using Autoconf 2.60.  If you want to
45824         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45825         (or m4/onceonly.m4, if pre-2.57) manually.
45826
45827 2006-07-08  Jim Meyering  <jim@meyering.net>
45828
45829         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45830         comment.
45831         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45832         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45833         comment.
45834
45835 2006-07-08  Jim Meyering  <jim@meyering.net>
45836
45837         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45838
45839 2006-07-07  Simon Josefsson  <jas@extundo.com>
45840
45841         * tests/test-crc.c: Change expected crc value, the test vector
45842         were probably computed using the old broken crc.c?
45843
45844 2006-07-06  Simon Josefsson  <jas@extundo.com>
45845
45846         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45847         now the canonical place for the M4 file).
45848
45849         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45850         from the sys_socket dependency now.
45851
45852         * modules/inet_pton (Files): Ditto.
45853
45854         * modules/inet_ntop (Files): Ditto.
45855
45856 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45857
45858         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45859         not gl_PREREQ_GETUSERSHELL.
45860
45861 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45862
45863         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45864         with only one argument, for Autoconf 2.60.
45865         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45866         expand to nothing, so add a shell command to avoid syntax error.
45867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45868
45869 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45870
45871         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45872
45873 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45874
45875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45876         no longer needed.  Check for isblank decl.
45877         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45878         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45879         of existence.
45880
45881 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45882
45883         * lib/getloadavg.c: Use __VMS, not VMS.
45884         * lib/getopt.c: Likewise.
45885         * lib/getpagesize.h: Likewise.
45886         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45887         and probably does not work.
45888
45889 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45890
45891         * lib/.cppi-disable: Add wcwidth.
45892         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45893         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45894         (ISGRAPH): Remove.  All uses changed to isgraph.
45895         (FOLD) [!defined _LIBC]: Remove special case.
45896         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45897         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45898         HAVE_ISBLANK.
45899         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45900         case.
45901
45902 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45903
45904         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45905         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45906         brackets.  Other minor changes to suppress some compiler
45907         warnings.
45908
45909 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45910         and Paul Eggert  <eggert@cs.ucla.edu>
45911
45912         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45913         of invoking obsolescent AC_HEADER_DIRENT macro.
45914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45915         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45918         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45919         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45920         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45921         * m4/readdir.m4: Remove; no longer needed.
45922
45923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45924         and Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45927         Don't worry about this obsolete case any more.
45928         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45929         directories.
45930         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45931         worry about this obsolete case any more.
45932         * lib/fts.c: Likewise.
45933         * lib/getcwd.c: Likewise.
45934         * lib/glob.h: Likewise.
45935         * lib/savedir.c: Likewise.
45936
45937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45938
45939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45940         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45941         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45942         needed.
45943         All uses removed.
45944         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45945         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45946         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45947         needed.
45948         * m4/getdate.m4 (gl_GETDATE): Likewise.
45949         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45950         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45952         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45953         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45955         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45956         needed.
45957
45958 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45959
45960         * lib/memcasecmp.c: Include <limits.h>.
45961         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45962         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45963         Don't assume isdigit succeeds only on '0' through '9'.
45964
45965 2006-07-05  Eric Blake  <ebb9@byu.net>
45966
45967         * modules/getaddrinfo (Depends-on): Add snprintf.
45968
45969 2006-07-05  Eric Blake  <ebb9@byu.net>
45970
45971         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45972         to avoid 'header present but could not be compiled' on cygwin.
45973
45974 2006-07-05  Eric Blake  <ebb9@byu.net>
45975
45976         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45977         missing from netdb.h.
45978         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45979
45980 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45981
45982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45983         no longer needed.
45984         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45985         * m4/getdate.m4 (gl_GETDATE): Likewise.
45986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45991
45992 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45993
45994         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45995         All uses of is_space replaced by isspace.
45996         * lib/exit.h: Don't talk about STDC_HEADERS.
45997         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45998         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45999         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46000         replaced by isprint etc.
46001         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46002         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46003         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46004         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46005         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46006         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46007
46008 2006-07-05  Bruno Haible  <bruno@clisp.org>
46009
46010         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46011         the function exists, before testing against AIX.
46012         Reported by Martin Lambers <marlam@marlam.de>.
46013
46014 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46015
46016         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46017         From Mark D. Baushke.
46018
46019 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46020
46021         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46022         to the absolute name, not just one, to bypass Sun C 5.8's
46023         "warning: #include of /usr/include/... may be non-portable".
46024
46025 2006-07-04  Eric Blake  <ebb9@byu.net>
46026
46027         * modules/dirname-tests: New test module.
46028         * tests/test-dirname.c: New file, replacing dirname.c
46029         TEST_DIRNAME section that was recently deleted.
46030
46031 2006-07-04  Bruno Haible  <bruno@clisp.org>
46032
46033         Assume ANSI C header files and <ctype.h> functions.
46034         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46035         (mbsnwidth): Use isprint, iscntrl instead.
46036
46037 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46038
46039         Merge from coreutils.
46040         * MODULES.html.sh: Add xstrtold.
46041         * modules/xstrtold: New file.
46042         * modules/cycle-check (Files): Add lib/same-inode.h.
46043         * modules/dirname (Files): Add m4/double-slash-root.m4.
46044         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46045         * modules/mkdir-p (Files): Add lib/same-inode.h.
46046         * modules/same (Files): Add lib/same-inode.h.
46047
46048 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46049
46050         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46051         This is to keep the terminology clean; POSIX talks about
46052         "absolute pathnames", not "full pathnames", but the GNU
46053         Coding Standards say to use "path" for something else;
46054         so use "absolute" to keep both sides happy.
46055         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46056         Set gl_absolute_header, not gl_full_header_path.
46057         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46058         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46059         All uses changed.
46060
46061         Merge from coreutils.
46062
46063         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46064
46065         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46066         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46067         want to require the building of c-strtod.o.
46068         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46069         needs -lm directly.
46070         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46071
46072         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46073
46074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46075         --as-needed option if available.  Problem reported by Albert Chin in
46076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46077         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46078         cc merely issues a bunch of annoying warnings for --as-needed
46079         (this problem was reported by Bob Proulx).  Also, try linking with
46080         -lm to detect a bug in binutils 2.16 (this problem was reported
46081         by Ralf Wildenhues).
46082
46083         2006-06-18  Jim Meyering  <jim@meyering.net>
46084
46085         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46087         macro.
46088         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46089         also check for glibc-2.4's abort-inducing bug.
46090
46091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46092         Low-probability clean-up should be to use rmdir to get rid of
46093         the just-created directory, not unlink.
46094
46095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46096         configure fail, and request a bug report to inform us about it.
46097         Add a comment that, barring reports to the contrary, in 2007 we'll
46098         assume ftruncate is universally available.
46099
46100         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46101
46102         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46103
46104         2006-03-12  Jim Meyering  <jim@meyering.net>
46105
46106         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46107         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46108         * m4/same.m4 (gl_SAME): Likewise.
46109         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46110
46111         2006-03-11  Eric Blake  <ebb9@byu.net>
46112
46113         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46114         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46115         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46116         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46117
46118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46121         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46122         reported by Mark D. Baushke, one in
46123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46124
46125         Merge from coreutils.
46126
46127         * lib/.cppi-disable: Add stdint_.h.
46128         * lib/.cvsignore: Add stdint.h.
46129
46130         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46131
46132         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46133         both double and long double versions.
46134         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46135         * lib/xstrtold.c: New file.
46136         * lib/xstrtod.h (xstrtold): New decl.
46137
46138         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46139
46140         * lib/filemode.c (setst): Remove.
46141         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46142         (arguably) clearer, and the generated code is a bit smaller on my
46143         Debian GNU/Linux stable x86 host.
46144
46145         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46146
46147         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46148         Assume that filemode.h includes sys/types.h and sys/stat.h.
46149         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46150         (ftypelet): Reorder to put common cases first, for efficiency.
46151         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46152         to do 'M'.
46153         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46154         of 10, for compatibility with FreeBSD.  All callers changed.
46155         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46156         types that can't be deduced solely from st_mode.  First arg is now a
46157         const pointer.
46158         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46159         (strmode): Renamed from mode_string.
46160         (filemodestring): New decl.
46161         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46162         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46163         needed.
46164         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46165
46166         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46169         fsusage.h now does that.  Include fsusage.h first, to test interface.
46170         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46171         at most one method (the old code could have generated decls that
46172         didn't conform to C89, not that this was ever exercised).
46173         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46174
46175         2006-03-19  Jim Meyering  <jim@meyering.net>
46176
46177         Work even in a chroot where d_ino values for entries in "/"
46178         don't match the stat.st_ino values for the same names.
46179         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46180         number, iterate through all entries again, using lstat instead.
46181         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46182         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46183
46184         * lib/getcwd.c (__getcwd): Clarify a comment.
46185         Use memcpy in place of a call to strcpy.
46186
46187         2006-03-12  Jim Meyering  <jim@meyering.net>
46188
46189         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46190         matches that of the current directory (which we're about to chdir ".."
46191         out of), then save the dev-ino of the parent, instead.
46192
46193         * lib/same-inode.h (SAME_INODE): New file/macro.
46194         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46195         Include "same-inode.h", instead.
46196         * lib/same.c: Likewise.
46197         * lib/cycle-check.h: Include "same-inode.h".
46198         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46199         * lib/cycle-check.c (SAME_INODE): Remove definition.
46200         * lib/root-dev-ino.h: Include "same-inode.h".
46201
46202         2006-03-11  Eric Blake  <ebb9@byu.net>
46203
46204         * lib/same.c (same_name): s/base_name/last_component/
46205         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46206         * lib/filenamecat.c (file_name_concat): Likewise.
46207
46208         2006-03-11  Eric Blake  <ebb9@byu.net>,
46209                     Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46212         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46213         drive prefix.
46214         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46215         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46216         (last_component): New method.
46217         * lib/dirname.c (dir_len): Determine when drive letters need a
46218         subsequent slash.  Preserve // when it is special.
46219         (dir_name): Don't append dot when drive letter is absolute.
46220         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46221         * lib/basename.c (base_name): New semantics - malloc the result.
46222         Preserve // when it is special.  Preserve relative files that look
46223         like drive letters.
46224         (base_len): Preserve // when it is special.
46225         (last_component): New method, similar to old base_name semantics.
46226         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46227         base_name.  Strip redundant slashes from ///.
46228
46229 2006-07-03  Jim Meyering  <jim@meyering.net>
46230
46231         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46232         macro is used before the first cycle_check call.
46233
46234 2006-07-03  Eric Blake  <ebb9@byu.net>
46235
46236         * modules/dirname (Depends-on): Add xstrndup.
46237
46238 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46241         test cases, so that config.log is a bit easier to follow.
46242
46243 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46244
46245         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46246         both are 64 bits, since this seems to be the tradition, and this
46247         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46248         we ever run into a host that prefers long long to long in this
46249         case, we'll need another configure-time test.  Problem reported by
46250         Jim Meyering.
46251
46252 2006-07-02  Eric Blake  <ebb9@byu.net>
46253
46254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46255
46256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46257
46258         * modules/inttypes (Depends-on): No longer depends on stdint.
46259         * modules/stdint (Description): Say more about assumptions.
46260         Say that the fast types might differ.  Say macros are used.
46261         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46262         (Makefile.am): Revise list of substituted symbols to match
46263         new stdint.m4.
46264         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46265         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46266         * tests/test-stdint.c (verify_same_types)
46267         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46268         the code conforms to C99/C89.
46269         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46270         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46271
46272 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46273
46274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46275         but fix a bug, by requiring at least 64 bits.
46276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46277         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46278         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46279         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46280
46281         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46282         changes.  Make 2.59 a prerequisite.  Check and substitute for
46283         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46284         inttypes.h.  Do not use special include files; just use the
46285         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46286         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46287         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46288         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46289         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46290         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46291         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46292         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46293         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46294         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46295         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46296         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46297         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46298         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46299         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46300         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46301         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46302         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46303         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46304         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46305         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46306         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46307         not check for things that C99 does not require, e.g., int8_t.  If
46308         a test isn't needed unless <stdint.h> isn't working, and is
46309         unlikely to be needed for any other reason, then don't do it
46310         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46311         size_t, since we assume C89 freestanding at least.  Do not check
46312         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46313         the right thing even if the types are not defined.  Instead use:
46314         (gl_STDINT_TYPE_PROPERTIES): New macro.
46315         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46316         testing whether <sys/types.h> clashes, as Autoconf does this for
46317         us now.  All uses removed.
46318         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46319         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46320         (gl_CHECK_TYPE_SAME):
46321         Remove; no longer needed.
46322         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46323         exists, since we'll return 0 anyway in that case.
46324         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46325
46326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46327
46328         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46329         possible collision with system files.
46330         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46331         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46332         WCHAR_MIN and WCHAR_MAX in this case.
46333         (<stddef.h>): Do not include; no longer needed.
46334         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46335         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46336         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46337         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46338         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46339         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46340         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46341         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46342         !defined(__c99))]: Include in this case too, since it's harmless
46343         now.
46344         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46345         dangerous to do so.
46346         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46347         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46348         (_STDINT_MIN, _STDINT_MAX): New macros.
46349         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46350         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46351         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46352         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46353         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46354         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46355         macros, not typedefs; this simplifies things quite a bit.
46356         Use long int for all types narrower than int64_t.
46357         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46358         Define in terms of long long int or int64_t or long int,
46359         not int64_t or int32_t.  This saves some compile-time testing.
46360         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46361         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46362         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46363         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46364         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46365         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46366         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46367         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46368         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46369         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46370         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46371         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46372         undef any previous version and define our own version, for
46373         simplicity and consistency with the new macros for types.
46374         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46375         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46376         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46377         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46378         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46379         @WINT_T_SUFFIX@ to keep things simple here.
46380         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46381         Simplify by assuming typical 8/16/32/64 host, since we're
46382         already doing that elsewhere anyway.
46383         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46384         and assume long long int is 64 bits if available.  This
46385         speeds up 'configure'.
46386
46387 2006-07-01  Eric Blake  <ebb9@byu.net>
46388
46389         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46390         Reported by Andreas Buening.
46391
46392 2006-07-01  Eric Blake  <ebb9@byu.net>
46393
46394         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46395
46396 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46397
46398         * lib/getaddrinfo.c: fixed typo
46399
46400 2006-06-29  Jim Meyering  <jim@meyering.net>
46401
46402         * modules/strftime (Maintainer): Add my name, since with the
46403         FPRINTFTIME changes strftime.c has forked from glibc.
46404
46405 2006-06-29  Eric Blake  <ebb9@byu.net>
46406
46407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46408
46409 2006-06-29  Eric Blake  <ebb9@byu.net>
46410
46411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46412
46413 2006-06-29  Eric Blake  <ebb9@byu.net>
46414
46415         * lib/stat_.h: New file.
46416
46417 2006-06-29  Eric Blake  <ebb9@byu.net>
46418
46419         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46420         unused static function.
46421
46422 2006-06-29  Eric Blake  <ebb9@byu.net>
46423
46424         * doc/functions.texi (Function Portability): Document missing lstat
46425         on mingw.
46426
46427 2006-06-29  Eric Blake  <ebb9@byu.net>
46428
46429         * MODULES.html.sh: Add sys_stat.
46430         * modules/sys_stat: New module.
46431         * modules/mkstemp (Depends-on): Add sys_stat.
46432
46433 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46434
46435         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46436
46437 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46438
46439         * m4/c-bs-a.m4: Removed.
46440
46441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46442
46443         * lib/strftime.c: Assume strftime() exists.
46444
46445 2006-06-29  Derek Price  <derek@ximbiot.com>
46446
46447         * modules/c-bs-a: Removed - \a is C89.
46448         * MODULES.html.sh: Remove c-bs-a.
46449
46450 2006-06-29  Bruno Haible  <bruno@clisp.org>
46451
46452         * modules/wcwidth (License): Change to LGPL.
46453
46454 2006-06-28  Simon Josefsson  <jas@extundo.com>
46455
46456         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46457         on _WIN32.
46458
46459         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46460         getnameinfo.
46461
46462 2006-06-28  Simon Josefsson  <jas@extundo.com>
46463
46464         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46465
46466 2006-06-28  Simon Josefsson  <jas@extundo.com>
46467
46468         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46469         functions there.  It will succeed on Windows XP, but on Windows
46470         2000 and (presumably) earlier, it will fail, and use the internal
46471         re-implementation.
46472         (use_win32_p): New function.
46473         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46474         Support AI_NUMERICSERV to disable getservbyname.
46475         (getnameinfo): New function, only supports
46476         NI_NUMERICHOST|NI_NUMERICSERV for now.
46477
46478         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46479         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46480         getnameinfo.
46481
46482 2006-06-28  Eric Blake  <ebb9@byu.net>
46483
46484         * modules/wcwidth: New file.
46485         * modules/mbchar (Depends-on): Add wcwidth.
46486         * modules/mbswidth (Depends-on): Add wcwidth.
46487         * MODULES.html.sh: Add wcwidth.
46488
46489 2006-06-28  Eric Blake  <ebb9@byu.net>
46490
46491         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46493
46494 2006-06-28  Eric Blake  <ebb9@byu.net>
46495
46496         * lib/xvasprintf.h: Fix comments.
46497
46498 2006-06-28  Eric Blake  <ebb9@byu.net>
46499
46500         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46501         * lib/mbswidth.c (wcwidth): Move from here...
46502         * lib/wcwidth.h: ...to this new file.
46503
46504 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46505
46506         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46507
46508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46509         it's obsolete.
46510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46511
46512 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46513
46514         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46515         Autoconf 2.60 says this stuff was obsolete.
46516
46517 2006-06-28  Bruno Haible  <bruno@clisp.org>
46518
46519         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46520
46521 2006-06-28  Bruno Haible  <bruno@clisp.org>
46522
46523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46524         gt_TYPE_WCHAR_T.
46525
46526 2006-06-28  Bruno Haible  <bruno@clisp.org>
46527
46528         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46529         declaration for wcwidth.
46530         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46531
46532 2006-06-28  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46535         (mkdir): Define using _mkdir.
46536
46537 2006-06-28  Bruno Haible  <bruno@clisp.org>
46538
46539         * lib/getaddrinfo.h: Fix POSIX URL.
46540         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46541         _WIN32.
46542         (use_win32_p): Make static.
46543         (getaddrinfo): Reject service name if it is empty or does not consist
46544         solely of decimal digits, or if its value is > 65535.
46545         (getnameinfo): Remove useless casts.
46546
46547 2006-06-27  Simon Josefsson  <jas@extundo.com>
46548
46549         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46550         Eggert and Martin Lambers.
46551
46552 2006-06-27  Simon Josefsson  <jas@extundo.com>
46553
46554         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46555         Eggert and Martin Lambers.
46556
46557 2006-06-27  Bruno Haible  <bruno@clisp.org>
46558
46559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46560         result to 0, not to empty.
46561         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46562
46563 2006-06-27  Bruno Haible  <bruno@clisp.org>
46564
46565         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46566
46567 2006-06-26  Simon Josefsson  <jas@extundo.com>
46568
46569         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46570         present.
46571
46572 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46573
46574         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46575         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46577
46578 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46579
46580         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46581
46582 2006-06-26  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46585
46586 2006-06-26  Bruno Haible  <bruno@clisp.org>
46587
46588         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46589
46590 2006-06-26  Bruno Haible  <bruno@clisp.org>
46591
46592         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46593         SGI C compiler in pre-C99 mode.
46594         Suggested by Mark D. Baushke and Larry Jones.
46595
46596 2006-06-26  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46599         WCHAR_MAX.
46600         Reported by Mark D. Baushke and Larry Jones.
46601
46602 2006-06-26  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46605         in pre-C99 mode.
46606         Suggested by Mark D. Baushke and Larry Jones.
46607
46608 2006-06-23  Simon Josefsson  <jas@extundo.com>
46609             Bruno Haible  <bruno@clisp.org>
46610
46611         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46612         Emit mostlyclean-local rule.
46613         (func_emit_tests_Makefile_am): Likewise.
46614         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46615
46616 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46617
46618         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46619
46620 2006-06-23  Bruno Haible  <bruno@clisp.org>
46621
46622         * tests/test-stdint.c: Update to match ISO C 99 Technical
46623         Corrigendum 1.
46624
46625 2006-06-23  Bruno Haible  <bruno@clisp.org>
46626
46627         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46628
46629 2006-06-23  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/stdint_.h: Treat IRIX like OpenBSD.
46632
46633 2006-06-23  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46636         ISO C 99 Technical Corrigendum 1.
46637
46638 2006-06-22  Simon Josefsson  <jas@extundo.com>
46639
46640         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46641         MinGW.
46642
46643 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46646         needed.  Some compiler complained about some of them.  Problem reported
46647         by Larry Jones in
46648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46649
46650 2006-06-21  Simon Josefsson  <jas@extundo.com>
46651
46652         * tests/test-getaddrinfo.c: New file.
46653
46654         * modules/getaddrinfo-tests: New file.
46655
46656         * MODULES.html.sh: Add inet_pton.
46657
46658         * modules/inet_pton: New file.
46659
46660 2006-06-21  Simon Josefsson  <jas@extundo.com>
46661
46662         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46663         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46664         of using the (limited) gnulib implementation on Windows XP.
46665
46666         * m4/inet_pton.m4: New file.
46667
46668 2006-06-21  Simon Josefsson  <jas@extundo.com>
46669
46670         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46671         variable.
46672
46673         * lib/socket_.h: Don't define WINVER.
46674
46675         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46676         slightly modified to work in gnulib.
46677
46678 2006-06-21  Simon Josefsson  <jas@extundo.com>
46679
46680         * doc/gnulib.texi (Windows sockets): Add.
46681
46682 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46683
46684         * lib/read-file.c (fread_file): Start with buffer allocation of
46685         0 bytes rather than 1 byte; this simplifies the code.
46686         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46687         code to free buffer and save/restore errno.
46688         (internal_read_file): Remove unused local.
46689
46690 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46691
46692         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46693         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46694         Problem reported by Denis Excoffier in
46695         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46696
46697 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46698
46699         * modules/sys_socket, modules/socklen: Include sys/types since
46700         FreeBSD 4.x's sys/socket.h needs it.
46701
46702 2006-06-19  Simon Josefsson  <jas@extundo.com>
46703
46704         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46705
46706 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46707
46708         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46709
46710 2006-06-19  Bruno Haible  <bruno@clisp.org>
46711
46712         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46713         and FULL_PATH_INTTYPES_H in angle brackets.
46714         Reported by Mark D. Baushke <mdb@gnu.org>.
46715
46716 2006-06-17  Eric Blake  <ebb9@byu.net>
46717
46718         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46719         errno.
46720
46721 2006-06-17  Bruno Haible  <bruno@clisp.org>
46722
46723         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46724         <sys/inttypes.h>.
46725
46726 2006-06-17  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46729         whether errno is declared. Assume <errno.h> declares errno.
46730
46731 2006-06-17  Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46734
46735 2006-06-17  Bruno Haible  <bruno@clisp.org>
46736
46737         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46738         problem on Solaris 2.5.1.
46739
46740 2006-06-16  Eric Blake  <ebb9@byu.net>
46741
46742         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46743         * lib/unicodeio.c [!defined errno]: Likewise.
46744         * lib/strtol.c [!defined errno]: Likewise.
46745         * lib/strtod.c [!defined errno]: Likewise.
46746
46747 2006-06-15  Eric Blake  <ebb9@byu.net>
46748
46749         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46750
46751 2006-06-15  Eric Blake  <ebb9@byu.net>
46752
46753         * config/srclist.txt (ssize_t.m4): Lose sync.
46754
46755 2006-06-15  Bruno Haible  <bruno@clisp.org>
46756
46757         * modules/stdint (Files): Include m4/full-header-path.m4,
46758         m4/size_max.m4, m4/wchar_t.m4.
46759         (Makefile.am): Many more substitutions.
46760         * modules/stdint-tests: New file.
46761         * tests/test-stdint.c: New file.
46762
46763 2006-06-15  Bruno Haible  <bruno@clisp.org>
46764
46765         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46766         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46767         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46768         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46769         gl_CHECK_TYPE_SAME): New macros.
46770
46771 2006-06-15  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46774
46775 2006-06-15  Bruno Haible  <bruno@clisp.org>
46776
46777         * lib/stdint_.h: Rewritten to be fully auto-configured.
46778         Fixes bug on HP-UX/IA64.
46779
46780 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46781
46782         * lib/getdate.y (__attribute__): Don't define if already defined.
46783         Problem reported by Larry Jones.
46784         * lib/utimens.c (__attribute__): Likewise.
46785
46786 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46787
46788         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46789         reported by Andreas Schwab.
46790
46791 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46792             Bruno Haible  <bruno@clisp.org>
46793
46794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46795         check for the declaration of strnlen and a run test that exposes the
46796         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46797         rpl_strndup.
46798
46799 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46800             Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46803
46804 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46805
46806         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46807         compile test, for Tru64 4.0D.
46808
46809 2006-05-28  Karl Berry  <karl@gnu.org>
46810
46811         * config/srclist.txt (printf-args.c): lose sync.
46812
46813 2006-05-26  Martin Lambers  <marlam@marlam.de>
46814
46815         * lib/getpass.c: Updates the test for the native W32 API, and adds
46816         missing includes, thus fixing compilation warnings.
46817
46818 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46819
46820         * lib/exclude.c (exclude_fnmatch): New function.
46821         (excluded_file_name): Call exclude_fnmatch.
46822         * lib/exclude.h (excluded_file_name): New prototype
46823
46824 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46825
46826         * lib/tempname.c (small_open, large_open): New macros.
46827         (__open, __open64) [!_LIBC]: Remove.
46828         (__gen_tempname): Use small_open and large_open instead of __open
46829         and __open64.  This fixes a portability bug on HP-UX 11.11i
46830         reported by Simon Wing-Tang in
46831         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46832
46833 2006-05-24  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46836         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46837         Reported by Thorsten Maerz <torte@netztorte.de> via
46838         Aaron Stone <aaron@serendipity.cx>.
46839
46840 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46841
46842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46843         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46844         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46845         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46846         not really conditional on the cache.
46847         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46848
46849 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46850
46851         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46852         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46853         (my_usleep): Don't mishandle maximum value.
46854
46855 2006-05-19  Jim Meyering  <jim@meyering.net>
46856
46857         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46858
46859 2006-05-17  Bruno Haible  <bruno@clisp.org>
46860
46861         Cygwin portability.
46862         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46863
46864 2006-05-17  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/stdint_.h: Fix recognition of Cygwin.
46867
46868 2006-05-15  Bruno Haible  <bruno@clisp.org>
46869
46870         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46871         on libtool patch by Ralf Wildenhues.
46872
46873 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46876         test for C99 conformance; (bool) 0.5 is an integer constant
46877         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46878         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46879
46880 2006-05-11  Simon Josefsson  <jas@extundo.com>
46881
46882         * m4/xvasprintf.m4: Fix obvious typo.
46883
46884 2006-05-11  Jim Meyering  <jim@meyering.net>
46885
46886         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46887         James Lemley.
46888
46889 2006-05-10  Simon Josefsson  <jas@extundo.com>
46890
46891         * lib/md4.c: Typo fix, update copyright years.
46892         (K1, K2): Don't use L because it turn computations into 64-bit on
46893         64-bit platforms.
46894
46895 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46896
46897         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46898         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46899         unwanted sign propagation, e.g., on hosts with 64-bit int.
46900         There still are some problems with reeelly weird theoretical hosts
46901         (e.g., 33-bit int) but it's not worth worrying about now.
46902         * lib/sha1.c (rol): Likewise.
46903         (K1, K2, K3, K4): Remove unnecessary L suffix.
46904
46905 2006-05-10  Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/des.c: Cast to avoid warnings.
46908
46909 2006-05-09  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46912         (Depends-on): Depend also on xsize, stdarg.
46913         (configure.ac): Add gl_XVASPRINTF.
46914
46915 2006-05-09  Bruno Haible  <bruno@clisp.org>
46916
46917         * m4/xvasprintf.m4: New file.
46918
46919 2006-05-09  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46922         (EOVERFLOW): Define fallback value.
46923         (xstrcat): New function.
46924         (xvasprintf): Recognize the special case of a string concatenation.
46925
46926 2006-05-08  Eric Blake  <ebb9@byu.net>
46927
46928         * gnulib-tool (func_version): Base copyright year on CVS date.
46929         (func_emit_copyright_notice): New function.
46930         (func_emit_lib_Makefile_am): Use it.
46931         (func_emit_tests_Makefile_am): Likewise.
46932         (func_import): Likewise.
46933
46934 2006-05-08  Bruno Haible  <bruno@clisp.org>
46935
46936         * modules/stdarg: New file.
46937         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46938
46939 2006-05-08  Bruno Haible  <bruno@clisp.org>
46940
46941         * m4/stdarg.m4: New file, from GNU gettext.
46942
46943 2006-05-08  Bruno Haible  <bruno@clisp.org>
46944
46945         * config/srclist.txt (build-aux/config.rpath): different from latest
46946         release.
46947
46948 2006-05-08  Bruno Haible  <bruno@clisp.org>
46949
46950         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46951
46952 2006-05-05  Jim Meyering  <jim@meyering.net>
46953
46954         * m4/warning.m4: New file, derived from bison's file by the same name.
46955
46956 2006-05-03  Bruno Haible  <bruno@clisp.org>
46957
46958         * lib/stdint_.h: Shorter URL.
46959         * lib/inttypes.h: Likewise.
46960
46961 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46962
46963         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46964
46965 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46966
46967         * lib/verify.h: Document the internals better.  Most of this change
46968         was written by Bruno Haible.
46969
46970 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46971
46972         * doc/verify.texi: New file, partly based on a proposal by
46973         Bruno Haible.
46974
46975 2006-05-02  Bruno Haible  <bruno@clisp.org>
46976
46977         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46978         test from here...
46979         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46980
46981 2006-04-29  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46984         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46985
46986 2006-04-29  Bruno Haible  <bruno@clisp.org>
46987
46988         * gnulib-tool: Make --update option actually work.
46989
46990 2006-04-29  Bruno Haible  <bruno@clisp.org>
46991
46992         * doc/gcd.texi: New file.
46993         * doc/gnulib.texi: Include it.
46994
46995 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46996
46997         * lib/getdate.y (get_date): When adding relative date, start with the
46998         initial time, not with the result of the first mktime call.
46999
47000 2006-04-25  Bruno Haible  <bruno@clisp.org>
47001
47002         * gnulib-tool (func_import): Output the include directives in three
47003         blocks, sorted separately.
47004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47005
47006 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47007
47008         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47009         to define main with arguments, for C++.  Reported by Eric Blake.
47010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47011         Prefer 'int main ()' to 'int main (void)', for C++.
47012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47014         for 'main', for C99 and C++.
47015
47016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47017
47018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47019         Don't assume that exit status -1 is valid.
47020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47021         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47023         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47024         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47026         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47027         functions can be used without declaring them, or that you can
47028         exit with status -1.
47029         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47030
47031 2006-04-24  Karl Berry  <karl@gnu.org>
47032
47033         * config/srclist.txt (longdouble.m4): sync lost.
47034
47035 2006-04-24  Eric Blake  <ebb9@byu.net>
47036
47037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47038
47039 2006-04-24  Bruno Haible  <bruno@clisp.org>
47040
47041         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47042         poll() implementation in AIX.
47043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47044
47045 2006-04-24  Bruno Haible  <bruno@clisp.org>
47046
47047         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47048         assigned exactly once.
47049
47050 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47051             Bruno Haible  <bruno@clisp.org>
47052
47053         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47054         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47055         for AM_CPPFLAGS.
47056
47057 2006-04-23  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/copy-file: Depend on unistd.
47060         * modules/execute: Likewise.
47061         * modules/fatal-signal: Likewise.
47062         * modules/findprog: Likewise.
47063         * modules/mkdtemp : Likewise.
47064         * modules/pipe: Likewise.
47065         * modules/wait-process: Likewise.
47066
47067 2006-04-23  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47070         condition was already detected.
47071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47072
47073 2006-04-23  Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/copy-file.c: Include <unistd.h> unconditionally.
47076         * lib/execute.c: Likewise.
47077         * lib/fatal-signal.c: Likewise.
47078         * lib/findprog.c: Likewise.
47079         * lib/mkdtemp.c: Likewise.
47080         * lib/pipe.h: Likewise.
47081         * lib/pipe.c: Likewise.
47082         * lib/wait-process.h: Likewise.
47083
47084 2006-04-23  Bruno Haible  <bruno@clisp.org>
47085
47086         * gnulib-tool (func_usage): Fix --import description. Document
47087         --update.
47088         (func_import): Create temporary file in a temporary directory, if
47089         --dry-run is specified. Silence errors from 'grep' when there are no
47090         m4 files in $m4dir.
47091         (func_create_testdir): Silence errors from 'grep' when there are no
47092         m4 files in $m4dir.
47093         Reported by Karl Berry <karl@freefriends.org>.
47094
47095 2006-04-20  Bruno Haible  <bruno@clisp.org>
47096
47097         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47098         one argument, so that the code will be portable to Autoconf 2.60.
47099         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47101         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47102
47103 2006-04-19  Derek Price  <derek@ximbiot.com>
47104             Eric Blake  <ebb9@byu.net>
47105
47106         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47107         rather than "/full/path.h".  Update comment to match.  Shorten &
47108         generalize m4_translit call via AS_TR_CPP.
47109
47110 2006-04-19  Derek Price  <derek@ximbiot.com>
47111             Eric Blake  <ebb9@byu.net>
47112
47113         * lib/inttypes.h: Correct grammar in comment.
47114
47115 2006-04-18  Derek Price  <derek@ximbiot.com>
47116             Paul Eggert  <eggert@cs.ucla.edu>
47117
47118         * modules/inttypes: New file.
47119         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47120
47121 2006-04-18  Derek Price  <derek@ximbiot.com>
47122             Paul Eggert  <eggert@cs.ucla.edu>
47123
47124         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47125         New files.
47126
47127 2006-04-18  Derek Price  <derek@ximbiot.com>
47128             Paul Eggert  <eggert@cs.ucla.edu>
47129
47130         * lib/inttypes.h: New file.
47131         * lib/strtoimax.c: Assume <inttypes.h>.
47132
47133 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47134
47135         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47136         isn't mounted.  Problem reported by Kir Kolyshkin.
47137
47138 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47139
47140         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47141         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47142         Derek R. Price.
47143         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47144         implementation.
47145
47146 2006-04-12  Eric Blake  <ebb9@byu.net>
47147
47148         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47149         is now done automatically by the corresponding Autoconf macro.
47150
47151 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47152
47153         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47154         time_r.h.
47155
47156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47157
47158         Merge regex changes from libc, removing some of our
47159         POSIX-conformance changes that were rejected and redoing them in a
47160         less-intrusive way.
47161
47162         * lib/regcomp.c (re_compile_internal, init_dfa):
47163         Length arg is now size_t, not Idx.  All uses changed.
47164         (peek_token): Forward decl now says internal_function.
47165         (__re_error_msgid, __re_error_msgid_idx):
47166         Now static rather than extern with attribute_hidden.
47167         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47168         For some reason libc prefers K&R style defns for external functions.
47169         (regerror) [!defined _LIBC]: Likewise.
47170         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47171         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47172         (build_range_exp, build_collating_symbol):
47173         Use K&R-style defn.
47174         (re_compile_fastmap): Use '\0' to memset, not 0.
47175         (utf8_sb_map): Make the calculations more obvious.
47176         (init_dfa, parse_bracket_exp, build_charclass_op):
47177         Call calloc and cast result, as glibc does.
47178         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47179         (build_range_exp, build_collating_symbol):
47180         Now internal functions.
47181
47182         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47183
47184         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47185         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47186         Don't depend on VMS; depend on __VMS instead, for POSIX
47187         namespace cleanness.
47188         (regoff_t): Define to ssize_t, not long int.
47189
47190         Remove the REG_ macros named below.  Instead, make the old names
47191         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47192         __USE_GNU_REGEX.
47193         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47194         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47195         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47196         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47197         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47198         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47199         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47200         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47201         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47202         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47203         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47204         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47205         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47206         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47207         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47208         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47209         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47210         (REG_NREGS):
47211         Remove.  All uses replaced by the old RE_* names.
47212         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47213         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47214         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47215         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47216         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47217         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47218         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47219         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47220         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47221         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47222         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47223         Don't bother having these macros be independent of each others'
47224         values, since they no longer exist in the POSIX name space.
47225
47226         Rename the following member names back to their old names,
47227         unless !__USE_GNU_REGEX.  All uses changed back.
47228         (buffer): Renamed from re_buffer.
47229         (allocated): Renamed from re_allocated.
47230         (used): Renamed from re_used.
47231         (syntax): Renamed from re_syntax.
47232         (fastmap): Renamed from re_fastmap.
47233         (translate): Renamed from re_translate.
47234         (can_be_null): Renamed from re_can_be_null.
47235         (regs_allocated): Renamed from re_regs_allocated.
47236         (fastmap_accurate): Renamed from re_fastmap_accurate.
47237         (no_sub): Renamed from re_no_sub.
47238         (not_bol): Renamed from re_not_bol.
47239         (not_eol): Renamed from re_not_eol.
47240         (newline_anchor): Renamed from re_newline_anchor.
47241         (num_regs): Renamed from rm_num_regs.
47242         (start): Renamed from rm_start.
47243         (end): Renamed from rm_end.
47244
47245         (free_state): Move up a bit.
47246
47247         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47248         #define to be empty.
47249         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47250         when that is what is intended.
47251         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47252         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47253         (MAX): New macro.
47254         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47255         All uses changed back to re_malloc, etc.  It's now the caller's
47256         responsibility to check for overflow; all callers changed.
47257         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47258         (re_x2nrealloc): Remove.
47259         (free_state): Remove decl.
47260
47261         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47262         (re_set_registers, re_exec):
47263         Use K&R-style defn.
47264
47265         2006-01-31  Roland McGrath  <roland@redhat.com>
47266
47267         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47268         Reported by Mike Frysinger <vapier@gentoo.org>.
47269
47270         2006-01-15  Andreas Jaeger  <aj@suse.de>
47271
47272         [BZ #1950]
47273         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47274         build_wcs_upper_buffer change.
47275         (build_wcs_upper_buffer): Change return type.
47276
47277         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47278
47279         * lib/regex_internal.h: Include <stdint.h> if available.
47280
47281         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47282
47283         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47284
47285         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47286
47287         * lib/regcomp.c: Adjust for changed secondary hash function.
47288
47289         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47290
47291         * lib/regex.h: Pretty printing.
47292         Clean up namespace a bit.
47293
47294         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47295
47296         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47297         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47298
47299         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47300                     Ulrich Drepper  <drepper@redhat.com>
47301
47302         [BZ #1302]
47303         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47304         changed.
47305         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47306
47307         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47308
47309         [BZ #281]
47310         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47311         * lib/regcomp.c: Remove unnecessary uses of
47312         unsigned RE_TRANSLATE_TYPE.
47313         * lib/regex_internal.h: Likewise.
47314         * lib/regex_internal.c: Likewise.
47315         * lib/regexec.c: Likewise.
47316         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47317
47318         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47319
47320         * lib/regexec.c (find_recover_state): Remove unnecessary
47321         initialization.
47322         (transit_state_bkref): Make DFA a const pointer.
47323         (get_subexp): Likewise.
47324         (check_arrival): Likewise.
47325         (update_cur_sifted_state): Likewise.
47326         (re_search_internal): Likewise.
47327         (prune_impossible_nodes): Likewise.
47328         (acquire_init_state_context): Likewise.
47329         (proceed_next_node): Likewise.
47330         (set_regs): Likewise.
47331         (free_fail_stack_return): Likewise.
47332         (check_arrival_expand_ecl): Mark DFA parameter as const.
47333         (check_arrival_expand_ecl_sub): Likewise.
47334         (check_subexp_limits): Likewise.
47335         (sub_epsilon_src_nodes):  Likewise.
47336         (add_epsilon_src_nodes):  Likewise.
47337         (merge_state_array): Likewise.
47338         (update_regs): Likewise.
47339         (build_trtable): Likewise.
47340         (sift_states_backward): Mark MCTX parameter as const.
47341         (build_sifted_states): Likewise.
47342         (update_cur_sifted_state): Likewise.
47343         (sift_states_mkref): Likewise.
47344         (check_arrival_expand_ecl): Mark eclosure as const.
47345         (check_dst_limits_calc_pos_1): Likewise.
47346         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47347         pointer.
47348
47349         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47350
47351         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47352         (transit_state_sb): Likewise.
47353         (transit_state_mb): Likewise.
47354         (sift_states_iter_mb): Likewise.
47355         (check_arrival_add_next_nodes): Likewise.
47356         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47357         [_LIBC] (re_search_2_stub): Use mempcpy.
47358
47359         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47360         mbrtowc for very simple UTF-8 case.
47361
47362         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47363         a pointer-to-const.
47364         (re_acquire_state_context): Likewise.
47365         * lib/regex_internal.h: Adjust prototypes.
47366
47367         * lib/regex.c: Prevent using C++ compilers.
47368
47369         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47370         (re_acquire_state_context): Likewise.
47371
47372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         * modules/regex (Depends-on): Add ssize_t.
47375
47376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47377
47378         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47379         translation table.
47380
47381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47384
47385 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47386             Bruno Haible  <bruno@clisp.org>
47387
47388         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47389         <sys/types.h> and <inttypes.h>.
47390
47391 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47392
47393         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47394         `__error_t_defined', so argp.h will not typedef the former.
47395
47396 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47399         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47400         glibc names.  Even if glibc is changed to conform to POSIX, the
47401         traditional names will be available anyway, since regex depends on
47402         the extensions module.  Also, fix a longstanding typo in the
47403         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47404         reported by Emanuele Giaquinta.  Also, change sense of cached
47405         variable, so that the message makes sense.
47406
47407 2006-03-24  Simon Josefsson  <jas@extundo.com>
47408
47409         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47410         including some doc fixes.
47411         (base64_encode_alloc): Fix +1 bug on allocation failures.
47412
47413 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47414
47415         * lib/base64.c (base64_encode): Do not read past end of array with
47416         unsanitized input on systems with CHAR_BIT > 8.
47417
47418 2006-03-24  Eric Blake  <ebb9@byu.net>
47419
47420         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47421
47422 2006-03-22  Karl Berry  <karl@gnu.org>
47423
47424         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47425         * config/srclistvars.sh (COREUTILS): new var.
47426
47427 2006-03-17  Jim Meyering  <jim@meyering.net>
47428
47429         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47430         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47431
47432 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47433
47434         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47435         no longer needs it.  Instead, check that regoff_t is as least
47436         as wide as ptrdiff_t.
47437
47438         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47439         so that our regex.h stays compatible with the installed regex.
47440         This is helpful for installers who configure --without-included-regex.
47441         Problem reported by Emanuele Giaquinta.
47442
47443 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47444
47445         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47446         Typedef to long int, not to off_, as POSIX will likely change
47447         in that direction.
47448
47449 2006-03-15  Eric Blake  <ebb9@byu.net>
47450
47451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47452
47453 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47454
47455         * lib/argp-help.c (validate_uparams): Fix typo
47456         * lib/argp-parse.c (argp_default_options): Consistently begin help
47457         messages with a lowercase letter.
47458
47459 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47460
47461         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47462         overrun buffers and shouldn't be used (much as gets shouldn't be
47463         used).
47464         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47465
47466 2006-03-08  Simon Josefsson  <jas@extundo.com>
47467
47468         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47469         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47470
47471 2006-03-08  Simon Josefsson  <jas@extundo.com>
47472
47473         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47474         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47475
47476 2006-03-08  Simon Josefsson  <jas@extundo.com>
47477
47478         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47479         signal that configure disabled the device.
47480
47481 2006-03-08  Simon Josefsson  <jas@extundo.com>
47482
47483         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47484         languages.
47485
47486 2006-03-07  Simon Josefsson  <jas@extundo.com>
47487
47488         * modules/getopt (Depends-on): Add unistd.
47489
47490         * modules/unistd: New file.
47491
47492 2006-03-07  Simon Josefsson  <jas@extundo.com>
47493
47494         * modules/gc-random: New file.
47495
47496 2006-03-07  Simon Josefsson  <jas@extundo.com>
47497
47498         * m4/unistd_h.m4: New file.
47499
47500 2006-03-07  Simon Josefsson  <jas@extundo.com>
47501
47502         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47503         test to be side-effect free by storing the result in the cache
47504         variable gl_cv_lib_readline, and moving the assignment of
47505         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47506         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47507
47508 2006-03-07  Simon Josefsson  <jas@extundo.com>
47509
47510         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47511         error on missing devices (the functions will return an error).
47512
47513         * m4/gc.m4: Move random stuff to gc-random.m4
47514
47515 2006-03-07  Simon Josefsson  <jas@extundo.com>
47516
47517         * lib/unistd_.h: New file.
47518
47519 2006-03-07  Simon Josefsson  <jas@extundo.com>
47520
47521         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47522
47523 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47524
47525         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47526         Problem reported by Juan Manuel Guerrero.
47527
47528 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47529
47530         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47531         the unistd module.
47532         * lib/getlogin_r.c: Likewise.
47533         * lib/getlogin_r.h: Likewise.
47534         * lib/glob.c: Likewise.
47535         * lib/pagealign_alloc.c: Likewise.
47536         * lib/unistd_.h: Remove; no longer needed.
47537
47538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47539
47540         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47541         Add unistd.
47542         * modules/c-stack (Depends-on): Add unistd.
47543         * modules/getlogin_r: Likewise.
47544         * modules/glob: Likewise.
47545         * modules/pagealign_alloc: Likewise.
47546         * modules/unistd (Files): Remove lib/unistd_.h.
47547         (EXTRA_DIST): Remove.
47548         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47549         need unistd_.h.
47550         (MOSTLYCLEANFILES): Remove unistd.h-t.
47551
47552 2006-03-03  Simon Josefsson  <jas@extundo.com>
47553
47554         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47555
47556 2006-03-03  Simon Josefsson  <jas@extundo.com>
47557
47558         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47559         libidn and bison.
47560
47561 2006-03-03  Simon Josefsson  <jas@extundo.com>
47562
47563         * build-aux/maint.mk: Add indent target.
47564
47565 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47566
47567         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47568         our replacement poll.h in any case, to avoid a differing
47569         declaration from a system header.  Seen on AIX.
47570
47571 2006-03-01  Simon Josefsson  <jas@extundo.com>
47572
47573         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47574         <kasal@ucw.cz>.
47575
47576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47577
47578         * modules/gettime (Depends-on): Add extensions module.
47579         * modules/nanosleep (Depends-on): Likewise.
47580         * modules/settime (Depends-on): Likewise.
47581
47582 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47585         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47586         pedantically.
47587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47588         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47589
47590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47591         not "==".  Reported by Ralf Wildenhues.
47592
47593 2006-03-01  Karl Berry  <karl@gnu.org>
47594
47595         * doc/Copyright/request-*: new files, synced from gnuorg.
47596
47597 2006-03-01  Karl Berry  <karl@gnu.org>
47598
47599         * config/srclist.txt (Copyright/*): new entries.
47600
47601 2006-02-28  Simon Josefsson  <jas@extundo.com>
47602
47603         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47604
47605 2006-02-27  Simon Josefsson  <jas@extundo.com>
47606
47607         * lib/base64.h: Indent #define's.  From Jim Meyering
47608         <jim@meyering.net>.
47609
47610 2006-02-27  Jim Meyering  <jim@meyering.net>
47611
47612         Revert the change of 2006-02-24, so these files can continue
47613         to be sync'd from gettext.
47614         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47615         of `config.h'.
47616
47617 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47618
47619         * modules/intprops: New file.
47620         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47621         Add intprops.
47622         * modules/getloadavg (Files): Remove lib/intprops.h.
47623         (Depends-on): Add intprops.
47624         * modules/human: Likewise.
47625         * modules/inttostr: Likewise.
47626         * modules/openat: Likewise.
47627         * modules/sig2str: Likewise.
47628         * modules/userspec: Likewise.
47629         * modules/utimecmp: Likewise.
47630         * modules/xnanosleep: Likewise.
47631         * modules/xstrtol: Likewise.
47632
47633 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47634
47635         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47636         * modules/lock-tests (TESTS): Use $(EXEEXT).
47637         * modules/tls-tests: Likewise.
47638         * modules/argp-tests: Likewise.
47639         (check_PROGRAMS): New var, replacing...
47640         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47641
47642 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47643
47644         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47645         `config.h'.
47646
47647 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47648
47649         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47650
47651 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47652
47653         Sync from coreutils.
47654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47655         gl_CHDIR_SAFER.
47656
47657 2006-02-22  Jim Meyering  <jim@meyering.net>
47658
47659         Sync from coreutils.
47660         * m4/chdir-safer.m4: New file.
47661
47662 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47663
47664         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47665         AT_FDCWD exceeds INT_MAX.
47666         * lib/openat.h (AT_FDCWD): Likewise.
47667
47668 2006-02-17  Eric Blake  <address@hidden>
47669
47670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47671
47672 2006-02-16  Simon Josefsson  <jas@extundo.com>
47673
47674         * modules/getaddrinfo (Depends-on): Add sys_socket.
47675
47676 2006-02-15  Simon Josefsson  <jas@extundo.com>
47677
47678         * build-aux/maint.mk: Add dsyntax-check rule.
47679
47680 2006-02-15  Eric Blake  <ebb9@byu.net>
47681
47682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47683         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47684         'present but cannot compile' warnings on cygwin.
47685         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47686         use ws2tcpip.h if sys/socket.h works.
47687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47688         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47689
47690 2006-02-14  Simon Josefsson  <jas@extundo.com>
47691
47692         * modules/maintainer-makefile (Files): Rename.
47693
47694         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47695         and (the local) Makefile.cfg to maint-cfg.mk.
47696
47697         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47698         to the latter.
47699
47700         * modules/maintainer-makefile: New module.
47701
47702         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47703         severaly stripped to make it possible to build it up from scratch
47704         with reliable tests.
47705
47706         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47707         fixes to permit overriding the default actions when configure and
47708         makefile are not available.
47709
47710 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47711
47712         Sync from coreutils.
47713         * modules/lstat (Depends-on): Don't depend on xalloc.
47714         (License): Change from GPL to LGPL, since this is now simply a
47715         replacement for a libc function.
47716
47717 2006-02-14  Jim Meyering  <jim@meyering.net>
47718
47719         Sync from coreutils.
47720
47721         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47722         failure on deficient systems, and simplify gnulib lgpl dependencies.
47723         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47724         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47725
47726         * lib/xalloc-die.c: Remove unused definition of N_.
47727
47728 2006-02-14  Jim Meyering  <jim@meyering.net>
47729
47730         Sync from coreutils.
47731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47732         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47733         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47734         double-quote uses of that variable, to accommodate the rare case in
47735         which getmntent is available in none of the libraries checked.  This
47736         happens at least on FreeBSD 5.0.
47737
47738 2006-02-13  Simon Josefsson  <jas@extundo.com>
47739
47740         * gnulib-tool (Usage): Fix --import, from
47741         karl@freefriends.org (Karl Berry).
47742
47743 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47744
47745         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47746
47747 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47748
47749         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47750         "autoupdate" on 2005-12-12.
47751
47752 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         * modules/closeout (Depends-on): Remove atexit.
47755
47756 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47757
47758         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47759         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47760
47761 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47762
47763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47764         __EXTENSIONS__ if this causes compilation to fail.  Problem
47765         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47766         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47767
47768 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47769
47770         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47771         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47773         All uses changed.
47774
47775 2006-01-26  Simon Josefsson  <jas@extundo.com>
47776
47777         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47778         prototype is visible on mingw32.
47779
47780         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47781         for mingw32.
47782
47783         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47784         mingw32).
47785
47786 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47787
47788         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47789         attempt to open for write; this always fails, at least on POSIX
47790         hosts.  This reinstates the 2006-01-09 change, which was
47791         inadvertently removed.
47792
47793 2006-01-26  Bruno Haible  <bruno@clisp.org>
47794
47795         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47796         Reported by Paul Eggert.
47797
47798 2006-01-26  Bruno Haible  <bruno@clisp.org>
47799             Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         * lib/stdbool_.h (_Bool)
47802         [(! (defined __cplusplus || defined __BEOS__)
47803           && !defined __GNUC__
47804           && !(defined __HP_cc || defined __xlc__
47805                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47806                || defined __sgi))]:
47807         #define to signed char in these cases too; this simplifies
47808         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47809         etc., separately) and makes it more conservative.
47810
47811 2006-01-25  Simon Josefsson  <jas@extundo.com>
47812
47813         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47814         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47815         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47816
47817 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47818
47819         * lib/argp-namefrob.h: Bugfix. Remove stray #
47820
47821 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47822
47823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47824         so that we test the test.
47825         Check for yet another HP-UX cc bug involving *bool |= bool.
47826
47827 2006-01-25  Karl Berry  <karl@gnu.org>
47828
47829         * config/srclist.txt (vasnprintf.c): sync lost.
47830
47831 2006-01-25  Jim Meyering  <jim@meyering.net>
47832
47833         Sync from the stable (b5) branch of coreutils:
47834
47835         * lib/fts.c (fts_children): Don't let close() clobber errno from
47836         failed fchdir().
47837
47838         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47839         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47840         a dangling symlink.  That can also happen at least for ELOOP.
47841         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47842         FYI, this bug predates the inclusion of fts.c in coreutils.
47843
47844         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47845         in their own block, so pre-c99 compilers don't object.
47846
47847         Avoid the double-free (first in fts_read, second in fts_close) that
47848         would occur when an `active' directory is made inaccessible (e.g.,
47849         via chmod a-x) during a traversal.
47850         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47851         before returning.  Reproduce this failure by
47852         mkdir -p a/b; cd a; chmod a-x . b
47853         Reported by Stavros Passas.
47854
47855 2006-01-25  Jim Meyering  <jim@meyering.net>
47856
47857         * lib/fileblocks.c: Remove more useless parentheses.
47858         * lib/readutmp.h: Likewise.
47859
47860 2006-01-25  Bruno Haible  <bruno@clisp.org>
47861
47862         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47863         warnings.
47864         Reported by Paul Eggert.
47865
47866 2006-01-25  Bruno Haible  <bruno@clisp.org>
47867
47868         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47869         rid of a trap command. For Solaris sh.
47870         Reported by Mark D. Baushke <mdb@gnu.org>.
47871
47872 2006-01-24  Simon Josefsson  <jas@extundo.com>
47873
47874         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47875         Bruno.
47876
47877 2006-01-24  Karl Berry  <karl@gnu.org>
47878
47879         * config/srclist.txt (argp-namefrob.h): sync lost.
47880
47881 2006-01-24  Jim Meyering  <jim@meyering.net>
47882
47883         * modules/openat (Files): Add lib/intprops.h.
47884         From Mark D. Baushke.
47885
47886 2006-01-24  Jim Meyering  <jim@meyering.net>
47887
47888         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47889         Reported by Mark D. Baushke.
47890
47891 2006-01-24  Jim Meyering  <jim@meyering.net>
47892
47893         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47894
47895 2006-01-24  Bruno Haible  <bruno@clisp.org>
47896
47897         * modules/strnlen (Maintainer): Change from glibc to all.
47898
47899 2006-01-24  Bruno Haible  <bruno@clisp.org>
47900
47901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47902         Patch by Paul Eggert.
47903
47904 2006-01-24  Bruno Haible  <bruno@clisp.org>
47905
47906         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47907         already has it.
47908         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47909         2005-11-26.
47910
47911         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47912         'signed char' to avoid problems with the built-in _Bool type.
47913         Reported by Paul Eggert on 2005-11-26.
47914
47915 2006-01-24  Bruno Haible  <bruno@clisp.org>
47916
47917         * gnulib-tool (func_import): Avoid constructing complicated sed
47918         expressions inside backquote.
47919         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47920
47921 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47922
47923         These changes imported from libc.
47924         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47925         test and two separate function calls.
47926         * lib/strndup.c (__strndup): Add libc_hidden_def.
47927
47928 2006-01-23  Simon Josefsson  <jas@extundo.com>
47929
47930         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47931         Remove the test_*_SOURCES variable: automake infers it by default.
47932         * modules/tls-tests: Likewise.
47933
47934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47935
47936         Work around porting bugs reported by Dieter in
47937         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47938         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47939         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47940         Include "getopt.h" first, to check interface.
47941         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47942         !HAVE_DECL_GETENV.
47943         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47944         (__strndup): Revert to K&R-style function dfns, the glibc style.
47945         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47946         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47947         Include strnlen.h first, to get prototype properly.
47948         (strnlen): Renamed from __strnlen.
47949         Remove weak alias.
47950
47951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47952
47953         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47954
47955 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47956
47957         * config/srclist.txt: Adjust to reflect glibc reorganization.
47958         This affects only comments.
47959
47960 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47961
47962          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47963          Reported by Bruce Korb <bkorb@gnu.org>.
47964
47965 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47966
47967         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47968         to pacify gcc -Wswitch-default.
47969
47970 2006-01-22  Bruno Haible  <bruno@clisp.org>
47971
47972         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47973         temporary buffer for sprintf, take into account the precision also
47974         for 'd', 'i', 'u', 'o', 'x', 'X'.
47975
47976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47977
47978         * modules/argp-tests: New module
47979         * tests/test-argp.c: New file
47980         * tests/test-argp-2.sh: New file
47981
47982 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47983
47984         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47985         (__argp_base_name): Removed
47986         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47987         typo.
47988         (__argp_base_name): Provide macro definition or extern declaration
47989         depending on the configuration
47990
47991 2006-01-20  Simon Josefsson  <jas@extundo.com>
47992
47993         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47994
47995 2006-01-20  Simon Josefsson  <jas@extundo.com>
47996
47997         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47998
47999 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48000
48001         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48002         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48003         Suggested by Bruno Haible.
48004
48005 2006-01-20  Karl Berry  <karl@gnu.org>
48006
48007         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48008         until changes propagate, I guess.
48009
48010 2006-01-19  Simon Josefsson  <jas@extundo.com>
48011
48012         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48013
48014 2006-01-19  Simon Josefsson  <jas@extundo.com>
48015
48016         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48017
48018 2006-01-19  Simon Josefsson  <jas@extundo.com>
48019
48020         * gnulib-tool: Set check_PROGRAMS.
48021
48022         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48023         modules/des-tests, modules/gc-arcfour-tests,
48024         modules/gc-arctwo-tests, modules/gc-des-tests,
48025         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48026         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48027         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48028         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48029         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48030         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48031         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48032         test_*_SOURCES.
48033
48034 2006-01-18  Simon Josefsson  <jas@extundo.com>
48035
48036         * modules/socklen (Depends-on): Depend on sys_socket.
48037
48038 2006-01-18  Simon Josefsson  <jas@extundo.com>
48039
48040         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48041         modules/des-tests, modules/gc-arcfour-tests,
48042         modules/gc-arctwo-tests, modules/gc-des-tests,
48043         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48044         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48045         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48046         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48047         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48048         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48049         $(EXEEXT) to automake TESTS variable, for mingw32.
48050
48051 2006-01-17  Simon Josefsson  <jas@extundo.com>
48052
48053         * modules/socklen (Include): Need sys/socket.h.
48054
48055 2006-01-17  Bruno Haible  <bruno@clisp.org>
48056
48057         * modules/ssize_t (Include): Add <sys/types.h>.
48058
48059 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48062         it's not portable and it doesn't work with cross-compiles.
48063         Problem reported by Bruno Haible.  Fix missing-$ typo in
48064         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48065         -zignore from being used with Sun's C compiler.
48066
48067 2006-01-12  Simon Josefsson  <jas@extundo.com>
48068
48069         * lib/base64.c: Fix warning, reported by Bruno Haible
48070         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48071
48072 2006-01-12  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/ldd: New file.
48075         * build-aux/ldd.sh.in: New file.
48076         * MODULES.html.sh (Support for building libraries and executables): Add
48077         ldd.
48078
48079 2006-01-12  Bruno Haible  <bruno@clisp.org>
48080
48081         * m4/ldd.m4: New file.
48082
48083 2006-01-12  Bruno Haible  <bruno@clisp.org>
48084
48085         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48086         endless loop while replacing $auxdir with build-aux.
48087
48088 2006-01-11  Simon Josefsson  <jas@extundo.com>
48089
48090         * lib/stdint_.h (SIZE_MAX): Add missing (.
48091
48092 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48093
48094         Sync from coreutils.
48095         * lib/md5.c: Fix commentary typos.
48096         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48097         * lib/md5.h (__attribute__): Remove; unused.
48098         * lib/sha1.c: Fix commentary to match md5 better.
48099         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48100         so that we don't need to worry about alignment.  All uses changed.
48101         This merges the 2005-10-28 md5 change into sha1.
48102
48103 2006-01-11  Jim Meyering  <jim@meyering.net>
48104
48105         Sync from coreutils.
48106         * lib/md5.c (OP): Fix spacing.
48107
48108 2006-01-11  Bruno Haible  <bruno@clisp.org>
48109
48110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48111         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48112         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48113
48114 2006-01-11  Bruno Haible  <bruno@clisp.org>
48115
48116         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48117         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48118         the "early" section as well.
48119
48120 2006-01-11  Bruno Haible  <bruno@clisp.org>
48121
48122         Avoid "ar: no archive members specified" error on MacOS X.
48123         * gnulib-tool (func_modules_add_dummy): New function.
48124         (func_import, func_create_testdir): Invoke it.
48125
48126 2006-01-11  Bruno Haible  <bruno@clisp.org>
48127
48128         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48129         with $auxdir in AC_CONFIG_FILES statements.
48130
48131 2006-01-11  Bruno Haible  <bruno@clisp.org>
48132
48133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48134         Initialize also noinst_HEADERS to empty.
48135
48136 2006-01-11  Bruno Haible  <bruno@clisp.org>
48137
48138         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48139         variables.
48140         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48141         autoreconf.
48142
48143 2006-01-11  Bruno Haible  <bruno@clisp.org>
48144
48145         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48146         overridable by the user.
48147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48148
48149 2006-01-10  Simon Josefsson  <jas@extundo.com>
48150
48151         * modules/sys_socket: New file.
48152
48153 2006-01-10  Simon Josefsson  <jas@extundo.com>
48154
48155         * m4/sys_socket_h.m4: New file.
48156
48157 2006-01-10  Simon Josefsson  <jas@extundo.com>
48158
48159         * lib/socket_.h: New file.
48160
48161 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48162
48163         * modules/readutmp (Maintainer): Add myself.
48164
48165 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48166
48167         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48168         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48169         People who are still concerned with buggy memcmp implementations
48170         can invoke gl_FUNC_MEMCMP themselves.
48171
48172 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * lib/regex_internal.h (BITSET_WORD_BITS):
48175         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48176         preprocessor mishandles large unsigned values as if they were signed.
48177         Problem reported by Claudio Fontana in
48178         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48179
48180 2006-01-10  Jim Meyering  <jim@meyering.net>
48181
48182         Avoid the double-free (first in fts_read, second in fts_close) that
48183         would occur when an `active' directory is made inaccessible (e.g.,
48184         via chmod a-x) during a traversal.
48185         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48186         before returning.  Reproduce this failure by
48187         mkdir -p a/b; cd a; chmod a-x . b
48188         Reported by Stavros Passas.
48189
48190         Sync from coreutils.
48191         * lib/sha1.c: Tweak grammar in a comment.
48192
48193 2006-01-10  Jim Meyering  <jim@meyering.net>
48194
48195         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48196         Patch by Joerg Sonnenberger.
48197
48198 2006-01-10  Bruno Haible  <bruno@clisp.org>
48199
48200         * modules/readutmp: Depend on module free.
48201         * modules/strtok_r: Depend on module restrict.
48202
48203 2006-01-10  Bruno Haible  <bruno@clisp.org>
48204
48205         * modules/gettext (configure.ac): Add an invocation of
48206         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48207
48208 2006-01-10  Bruno Haible  <bruno@clisp.org>
48209
48210         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48211         Reported by Werner Lemberg <wl@gnu.org>.
48212
48213 2006-01-10  Bruno Haible  <bruno@clisp.org>
48214
48215         * lib/localcharset.c: Update from GNU gettext.
48216
48217 2006-01-10  Bruno Haible  <bruno@clisp.org>
48218
48219         * lib/argp.h (__const): Remove macro. Use const instead.
48220         * lib/argp-fmtstream.h (__const): Likewise.
48221         * lib/glob_.h (__const): Remove macro.
48222         * lib/glob-libc.h: Use const instead of __const.
48223
48224 2006-01-10  Bruno Haible  <bruno@clisp.org>
48225
48226         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48227         variable.
48228         Needed to avoid an automake error regarding the 'gettext' module.
48229
48230 2006-01-09  Simon Josefsson  <jas@extundo.com>
48231
48232         * modules/inet_ntop (Depends-on): Add restrict.
48233
48234 2006-01-09  Simon Josefsson  <jas@extundo.com>
48235
48236         * modules/gc-rijndael-tests (License): Put under LGPL.
48237
48238         * modules/gc-des-tests (License): Likewise.
48239
48240         * modules/gc-arcfour-tests (License): Likewise.
48241
48242         * modules/gc-arctwo-tests (License): Likewise.
48243
48244         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48245
48246         * modules/gc-hmac-sha1-tests (Files): Likewise.
48247
48248         * modules/gc-hmac-md5-tests (License): Likewise.
48249
48250         * modules/gc-sha1-tests (License): Likewise.
48251
48252         * modules/gc-md5-tests (License): Likewise.
48253
48254         * modules/gc-md4-tests (License): Likewise.
48255
48256         * modules/gc-md2-tests (License): Likewise.
48257
48258         * modules/gc-tests (License): Likewise.
48259
48260         * modules/des-tests (License): Likewise.
48261
48262         * modules/md4-tests (License): Likewise.
48263
48264         * modules/md2-tests (License): Likewise.
48265
48266 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         Sync from coreutils:
48269
48270         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48271         * modules/lib-ignore: New file.
48272         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48273         chdir-safer.m4, lchmod.m4.
48274         * modules/openat: Add mkdirat.c, openat-priv.h.
48275
48276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48277
48278         Sync from coreutils.
48279         * m4/lib-ignore.m4: New file.
48280         * m4/lchmod.m4: New file.
48281
48282 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48283
48284         Sync from coreutils.
48285         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48286         for write access: POSIX says that must fail.
48287         * lib/fts.c (diropen): Likewise.
48288         * lib/save-cwd.c (save_cwd): Likewise.
48289         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48290         well, for minor improvements on hosts that lack O_DIRECTORY.
48291         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48292         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48293         Fall back on chown if open failed with EACCES.
48294
48295         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48296         Report an error at compile-time if only a 1-second nominal clock
48297         resolution is found.
48298
48299         * lib/lchmod.h: New file.
48300         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48301         (make_dir_parents): Use lchown rather than chown, and
48302         lchmod rather than chmod.
48303
48304         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48305         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48306         "proc" reported by n0dalus.
48307
48308         * lib/mountlist.c: Include <limits.h>.
48309         (dev_from_mount_options)
48310         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48311         New function.  It no longer assumes "dev=" has the System V meaning
48312         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48313         (read_file_system_list)
48314         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48315         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48316         dev= in that case.
48317
48318         * lib/posixtm.h (PDS_PRE_2000): New macro.
48319         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48320         allow_century.  All usages changed.  Reject dates outside the range
48321         1969-1999 if PDS_PRE_2000 is used.
48322
48323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48324
48325         Sync from coreutils.
48326         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48327         (Time of day items): Mention the possibility of leap seconds.
48328         Problem reported by Dr. David Alan Gilbert.
48329
48330 2006-01-09  Jim Meyering  <jim@meyering.net>
48331
48332         Sync from coreutils.
48333
48334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48335
48336         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48337
48338         * lib/modechange.c (mode_compile): Reject an invalid mode string
48339         that starts with an octal digit.  From Andreas Gruenbacher.
48340
48341         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48342         and dup to open_safer and dup_safer, respectively.
48343         (openat_permissive): Fix typo in comment.
48344
48345         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48346         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48347         (_): Remove; no longer needed.
48348         (openat): Renamed from rpl_openat; no need for rpl_openat
48349         since openat.h renames openat for us.
48350         Replace most of the body with a call to openat_permissive,
48351         to avoid duplicate code.
48352         Port to (probably hypothetical) environments were mode_t is
48353         wider than int.
48354         (openat_permissive): Require mode arg, so that we can check
48355         types better.  Put it just after flags.  Change cwd failure
48356         indicator from pointer-to-bool to pointer-to-errno-value.
48357         All callers changed.
48358         Invoke openat_save_fail and/or openat_restore_fail if
48359         cwd_errno is null, so that openat can call us.
48360         (openat_permissive, fdopendir, fstatat, unlinkat):
48361         Simplify errno handling to avoid some duplicate code,
48362         as it's OK to set errno on success.
48363         * lib/openat.h: Revamp code so that function macros depend on
48364         __OPENAT_PREFIX only, not also on AT_FDCWD.
48365         (openat_ro): Remove.  Caller changed to use openat_permissive.
48366         (openat_permissive): Now a macro, if not a function.
48367         (openat_restore_fail, openat_save_fail): Now always functions,
48368         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48369
48370         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48371         and openat.c.
48372         * lib/mkdirat.c: Include openat-priv.h.
48373         Remove definitions of macros defined therein.
48374         * lib/openat.c: Likewise.
48375
48376         * lib/mkdirat.c (mkdirat): New file and function.
48377         * lib/openat.h (mkdirat): Declare.
48378
48379         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48380
48381         * lib/openat.h (openat_permissive): Declare.
48382         (openat_ro): Define.
48383
48384         * lib/openat.c (EXPECTED_ERRNO): New macro.
48385         (openat_permissive): New function -- used in remove.c rewrite.
48386         (all functions): Set errno just before returning, only if there
48387         was an actual failure.
48388         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48389
48390         Emulate openat-family functions using Linux's procfs, if possible.
48391         Idea and some code based on Ulrich Drepper's glibc changes.
48392
48393         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48394         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48395         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48396         before falling back on save_cwd and restore_cwd.
48397         (fdopendir, fstatat, unlinkat): Likewise.
48398
48399         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48400         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48401
48402         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48403         as second argument to va_arg.  Otherwise, some versions of gcc
48404         warn that `if this code is reached, the program will abort'.
48405
48406 2006-01-09  Jim Meyering  <jim@meyering.net>
48407
48408         Sync from coreutils.
48409         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48410         Require openat-priv.h.
48411
48412 2006-01-09  Bruno Haible  <bruno@clisp.org>
48413
48414         * modules/strnlen (Include): Use strnlen.h.
48415
48416 2006-01-09  Bruno Haible  <bruno@clisp.org>
48417
48418         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48419
48420 2006-01-09  Bruno Haible  <bruno@clisp.org>
48421
48422         * lib/sysexit_.h (EX_OK): New macro.
48423         Suggested by Martin Lambers <marlam@marlam.de>.
48424
48425 2006-01-09  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48428         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48429
48430 2006-01-09  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48433         numbers.
48434
48435 2006-01-09  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48438         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48439         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48440         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48441
48442 2006-01-09  Bruno Haible  <bruno@clisp.org>
48443
48444         * build-aux/javacomp.sh.in: New file, moved from lib/.
48445         * modules/javacomp-script (Files): Update.
48446         (configure.ac): Add AC_CONFIG_FILES invocation.
48447         (EXTRA_DIST): Remove variable.
48448
48449         * build-aux/javaexec.sh.in: New file, moved from lib/.
48450         * modules/javaexec (Files): Update.
48451         (configure.ac): Add AC_CONFIG_FILES invocation.
48452         (EXTRA_DIST): Remove javaexec.sh.in.
48453
48454         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48455         * modules/csharpcomp-script (Files): Update.
48456         (configure.ac): Add AC_CONFIG_FILES invocation.
48457         (EXTRA_DIST): Remove variable.
48458
48459         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48460         * modules/csharpexec (Files): Update.
48461         (configure.ac): Add AC_CONFIG_FILES invocation.
48462         (EXTRA_DIST): Remove csharpexec.sh.in.
48463
48464 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48465
48466         Sync from coreutils.
48467
48468         Add POSIX ACL support
48469         * lib/acl.h (copy_acl, set_acl): Add declarations.
48470         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48471         systems other than Linux.
48472         (chmod_or_fchmod): New function: use fchmod when possible,
48473         and chmod otherwise.
48474         (file_has_acl): Add a POSIX ACL implementation, with a
48475         Linux-specific subcase.
48476         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48477         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48478         acls are unsupported.
48479         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48480         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48481         are unsupported.
48482
48483 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48484
48485         Sync from coreutils.
48486         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48487
48488 2006-01-07  Bruno Haible  <bruno@clisp.org>
48489
48490         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48491         gl_EARLY.
48492
48493 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48494
48495         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48496         Problem reported for Mingw by Mark Junker.
48497
48498 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48499
48500         * README: Gnulib normally doesn't generate a tarball.
48501
48502 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48503
48504         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48505         long int, not int, for nanosecond counts, so that people who are
48506         used to POSIX struct timespec won't be surprised.  Reported by Jim
48507         Meyering.
48508
48509 2005-12-28  Bruno Haible  <bruno@clisp.org>
48510
48511         * build-aux/config.rpath: Update from GNU gettext.
48512
48513 2005-12-16  Jim Meyering  <jim@meyering.net>
48514
48515         * modules/fprintftime: New module.
48516         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48517
48518 2005-12-16  Jim Meyering  <jim@meyering.net>
48519
48520         * m4/fprintftime.m4: New file.
48521
48522 2005-12-16  Jim Meyering  <jim@meyering.net>
48523
48524         * lib/fprintftime.c, lib/fprintftime.h: New files.
48525
48526 2005-12-15  Simon Josefsson  <jas@extundo.com>
48527
48528         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48529         new m4/socklen.m4.
48530
48531 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48532
48533         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48534         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48535
48536 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48537
48538         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48539         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48540         struct uparams is valid. Fall back to the default values if it is
48541         not.
48542
48543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48544
48545         * modules/argp (Files): Add argp-pin.c
48546         (Depends-on): dirname
48547         (lib_SOURCES): Add argp-pin.c
48548
48549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48550
48551         * m4/argp.m4:  Check if program_invocation_name and
48552         program_invocation_short_name are declared and define appropriate
48553         macros if they are not.
48554
48555 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48556
48557         * lib/argp-help.c (__argp_base_name): New function
48558         (__argp_short_program_name): Rewrite using __argp_base_name
48559         * lib/argp-namefrob.h: Define program_invocation_name and
48560         program_invocation_short_name if requested
48561         (__argp_base_name): Add prototype
48562         * lib/argp-parse.c (argp_def): Use gettext wrappers
48563         (argp_default_parser): Use __argp_base_name
48564         * lib/argp-pin.c: New file. Defines program_invocation_name and
48565         program_invocation_short_name on systems that lack them.
48566
48567 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48568
48569         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48570         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48571         porting problem reported by Georg Schwarz in
48572         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48573
48574 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48575
48576         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48577         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48578         porting problem reported by Georg Schwarz in
48579         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48580
48581 2005-12-05  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48584         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48585         Reported by Mark Junker <mjscod@gmx.de>.
48586
48587 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48588
48589         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48590         Use implementation from Albert Chin, with some
48591         comments/corrections by Stepan Kasal and myself.
48592
48593 2005-12-02  Bruno Haible  <bruno@clisp.org>
48594
48595         * gnulib-tool (func_import): Accept GPLed build tool modules when
48596         --lgpl is given.
48597         * modules/csharpcomp-script: New file.
48598         * modules/csharpcomp: Depend on it.
48599         * modules/javacomp-script: New file.
48600         * modules/javacomp: Depend on it.
48601         Suggested by Simon Josefsson.
48602
48603 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48604
48605         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48606         statement, to work around an HP-UX 10.20 compiler bug reported by
48607         Peter O'Gorman.
48608
48609 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48610
48611         * modules/savedir (Depends-on): Add openat.
48612
48613 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48614
48615         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48616         (uintmax_t) [defined uintmax_t]: Do not declare.
48617         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48618         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48619         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48620         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48621         sake of portability to weird hosts that C allows (though we don't
48622         know of any practical examples).
48623
48624         * lib/savedir.h (fdsavedir): New decl.
48625         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48626         contains most of the former guts of savedir.
48627         (savedir): Use savedirstream.
48628         Include "openat.h".
48629
48630 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48631
48632         * modules/obstack (Files): Add m4/ulonglong.m4.
48633         Problem reported by Davide Angelocola.
48634
48635 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48636
48637         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48638         coreutils no longer futzes with rounding modes.
48639
48640 2005-11-14  Jim Meyering  <jim@meyering.net>
48641
48642         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48643         replacement of mkstemp.
48644
48645 2005-11-10  Simon Josefsson  <jas@extundo.com>
48646
48647         * lib/readline.c: Remove EOL.
48648
48649 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48650
48651         * modules/gethrxtime (Depends-on): Add gettime.
48652
48653 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48654
48655         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48656         or gettimeofday; no longer needed.
48657
48658 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48659
48660         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48661         time business.
48662         (gethrxtime) [! (HAVE_NANOUPTIME
48663         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48664         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48665         our own approximation.
48666
48667 2005-11-08  Eric Blake  <ebb9@byu.net>
48668
48669         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48670
48671 2005-11-08  Eric Blake  <ebb9@byu.net>
48672
48673         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48674
48675 2005-11-04  Bruno Haible  <bruno@clisp.org>
48676
48677         * gnulib-tool: Implement --update mode.
48678
48679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48680
48681         Fix porting problem reported by Theodoros V. Kalamatianos.
48682         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48683         Don't assume that futimes failing means we must fail.
48684
48685 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48686
48687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48688         variables to suggest the intended function of the PATH_MAX check.
48689
48690 2005-10-30  Kean Johnston  <jkj@sco.com>
48691
48692         Trivial changes to support SCO systems.
48693         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48694         as PATH_MAX.
48695         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48696         where __ptr is null when no I/O is pending.
48697
48698 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48699
48700         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48701         leave errno alone.  Problem reported by Dmitry V. Levin.
48702
48703 2005-10-28  Simon Josefsson  <jas@extundo.com>
48704
48705         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48706         Test more.
48707
48708         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48709
48710         * modules/md2, modules/md2-tests: New files.
48711
48712 2005-10-28  Simon Josefsson  <jas@extundo.com>
48713
48714         * m4/inet_ntop.m4: More tests.
48715
48716         * m4/gc-md2.m4, md2.m4: New file.
48717
48718 2005-10-28  Simon Josefsson  <jas@extundo.com>
48719
48720         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48721         "restrict" keywords, as per POSIX.  Protect the function
48722         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48723         Don't use K&R prototypes.  Check the sprintf return values.
48724         Re-define EAFNOSUPPORT if not present.  Indent.
48725
48726         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48727         suggested by Bruno Haible <bruno@clisp.org>.
48728
48729         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48730
48731         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48732
48733         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48734         libgcrypt).
48735
48736         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48737
48738         * lib/md2.h, lib/md2.c: New files.
48739
48740 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48741
48742         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48743         errno alone.  Problem reported by Frederic Jolliton.
48744
48745 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48746
48747         * modules/verify (License): Change from GPL to LGPL.  This is a
48748         tiny module and there are apparently near-equivalents that are
48749         under the BSD license.
48750
48751 2005-10-24  Simon Josefsson  <jas@extundo.com>
48752
48753         * modules/sha1: Relicense to LGPL.
48754
48755 2005-10-24  Simon Josefsson  <jas@extundo.com>
48756
48757         * lib/md4.h: Shrink buffer size, now that we changed the type.
48758
48759 2005-10-23  Simon Josefsson  <jas@extundo.com>
48760
48761         * gnulib-tool (func_import): Fix --tests-base.
48762
48763 2005-10-22  Simon Josefsson  <jas@extundo.com>
48764
48765         * modules/arcfour (Depends-on): Need stdint.
48766
48767 2005-10-22  Simon Josefsson  <jas@extundo.com>
48768
48769         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48770         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48771
48772 2005-10-22  Simon Josefsson  <jas@extundo.com>
48773
48774         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48775         suggested by Bruno Haible <bruno@clisp.org>.
48776
48777 2005-10-22  Simon Josefsson  <jas@extundo.com>
48778
48779         * lib/crc.h: Include stddef.h, for size_t.
48780
48781 2005-10-22  Simon Josefsson  <jas@extundo.com>
48782
48783         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48784         arcfour_context struct (simplify test vector testing in GNU
48785         Shishi).
48786
48787 2005-10-21  Simon Josefsson  <jas@extundo.com>
48788
48789         * modules/des, modules/des-tests: New files.
48790
48791         * modules/gc-des, modules/gc-des-tests: New files.
48792
48793         * tests/test-des.c, tests/test-gc-des.c: New file.
48794
48795 2005-10-21  Simon Josefsson  <jas@extundo.com>
48796
48797         * modules/arctwo, modules/arctwo-tests: New files.
48798
48799         * tests/test-arctwo.c: New file.
48800
48801         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48802
48803         * tests/test-gc-arctwo.c: New file.
48804
48805 2005-10-21  Simon Josefsson  <jas@extundo.com>
48806
48807         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48808         Bruno Haible <bruno@clisp.org>.
48809
48810         * m4/gc-des.m4: New file.
48811
48812 2005-10-21  Simon Josefsson  <jas@extundo.com>
48813
48814         * m4/arctwo.m4: New file.
48815
48816         * m4/gc-arctwo.m4: New file.
48817
48818 2005-10-21  Simon Josefsson  <jas@extundo.com>
48819
48820         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48821         block.
48822
48823 2005-10-21  Simon Josefsson  <jas@extundo.com>
48824
48825         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48826         <bruno@clisp.org>.
48827
48828         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48829
48830         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48831         Bruno Haible <bruno@clisp.org>.
48832
48833         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48834         <bruno@clisp.org>.
48835
48836 2005-10-21  Simon Josefsson  <jas@extundo.com>
48837
48838         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48839
48840 2005-10-21  Simon Josefsson  <jas@extundo.com>
48841
48842         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48843
48844 2005-10-21  Simon Josefsson  <jas@extundo.com>
48845
48846         * lib/des.h, lib/des.c: New files.
48847
48848         * lib/gc-gnulib.c: Support DES.c
48849
48850 2005-10-21  Simon Josefsson  <jas@extundo.com>
48851
48852         * lib/arctwo.h, lib/arctwo.c: New files.
48853
48854         * lib/gc-gnulib.c: Support ARCTWO.
48855
48856 2005-10-21  Simon Josefsson  <jas@extundo.com>
48857
48858         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48859         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48860
48861 2005-10-21  Simon Josefsson  <jas@extundo.com>
48862
48863         * gnulib-tool (func_import, func_create_testdir): Define automake
48864         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48865         Makefile.am snippet),
48866         suggested by Bruno Haible <bruno@clisp.org>.
48867
48868         * modules/gc (Makefile.am): Use it.
48869
48870 2005-10-21  Bruno Haible  <bruno@clisp.org>
48871
48872         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48873         patch.
48874
48875 2005-10-19  Simon Josefsson  <jas@extundo.com>
48876
48877         * tests/test-gc-rijndael.c: New file.
48878
48879         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48880
48881 2005-10-19  Simon Josefsson  <jas@extundo.com>
48882
48883         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48884         interface too.
48885
48886 2005-10-19  Simon Josefsson  <jas@extundo.com>
48887
48888         * tests/test-gc-arcfour.c: New file.
48889
48890         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48891
48892 2005-10-19  Simon Josefsson  <jas@extundo.com>
48893
48894         * modules/gc-md4, modules/gc-md4-tests: New file.
48895
48896         * tests/test-gc-md4.c: New file.
48897
48898 2005-10-19  Simon Josefsson  <jas@extundo.com>
48899
48900         * m4/gc-md4.m4: New file.
48901
48902 2005-10-19  Simon Josefsson  <jas@extundo.com>
48903
48904         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48905         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48906         <kasal@ucw.cz>.
48907
48908 2005-10-19  Simon Josefsson  <jas@extundo.com>
48909
48910         * m4/gc-arcfour.m4: New file.
48911
48912         * m4/gc-rijndael.m4: New file.
48913
48914 2005-10-19  Simon Josefsson  <jas@extundo.com>
48915
48916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48917
48918 2005-10-19  Simon Josefsson  <jas@extundo.com>
48919
48920         * lib/gc-gnulib.c: Support ARCFOUR.
48921
48922 2005-10-19  Simon Josefsson  <jas@extundo.com>
48923
48924         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48925         support.
48926
48927         * lib/gc.h: Add ECB enum type.
48928
48929         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48930
48931 2005-10-18  Simon Josefsson  <jas@extundo.com>
48932
48933         * tests/test-md5.c: New file.
48934
48935         * modules/md5-tests: New file.
48936
48937 2005-10-18  Simon Josefsson  <jas@extundo.com>
48938
48939         * tests/test-md4.c: New file.
48940
48941         * modules/md4, modules/md4-tests: New files.
48942
48943 2005-10-18  Simon Josefsson  <jas@extundo.com>
48944
48945         * m4/md4.m4: New file.
48946
48947 2005-10-18  Simon Josefsson  <jas@extundo.com>
48948
48949         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48950
48951 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48952
48953         * gnulib-tool (func_create_testdir): Omit the second check whether
48954         BUILT_SOURCES in nonempty.
48955
48956 2005-10-17  Simon Josefsson  <jas@extundo.com>
48957
48958         * tests/test-rijndael.c: New file.
48959
48960 2005-10-17  Simon Josefsson  <jas@extundo.com>
48961
48962         * modules/sha1: Depend on stdint instead of md5.
48963
48964         * modules/md5: Depend on stdint, remove uint32_t.
48965
48966 2005-10-17  Simon Josefsson  <jas@extundo.com>
48967
48968         * modules/gc-sha1-tests: New file.
48969
48970         * tests/test-gc-sha1.c: New file.
48971
48972 2005-10-17  Simon Josefsson  <jas@extundo.com>
48973
48974         * m4/md5.m4: Remove call to uint32_t.m4.
48975
48976 2005-10-17  Simon Josefsson  <jas@extundo.com>
48977
48978         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48979
48980         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48981         md5.h.
48982
48983         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48984
48985         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48986
48987 2005-10-17  Simon Josefsson  <jas@extundo.com>
48988
48989         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48990
48991 2005-10-17  Simon Josefsson  <jas@extundo.com>
48992
48993         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48994
48995 2005-10-17  Simon Josefsson  <jas@extundo.com>
48996
48997         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48998
48999         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49000
49001 2005-10-17  Bruno Haible  <bruno@clisp.org>
49002
49003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49004         that it can also be used in a test.
49005
49006 2005-10-16  Bruno Haible  <bruno@clisp.org>
49007
49008         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49009         TESTS_ENVIRONMENT, so that individual tests can augment it.
49010
49011         * gnulib-tool (func_create_testdir): Use an intermediate target for
49012         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49013         macros, like $(ALLOCA_H), which cannot be passed through the command
49014         line.
49015
49016 2005-10-15  Simon Josefsson  <jas@extundo.com>
49017
49018         * modules/rijndael-tests: New file.
49019
49020         * modules/rijndael: New file.
49021
49022 2005-10-15  Simon Josefsson  <jas@extundo.com>
49023
49024         * m4/rijndael.m4: New file.
49025
49026 2005-10-15  Simon Josefsson  <jas@extundo.com>
49027
49028         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49029
49030         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49031
49032 2005-10-14  Simon Josefsson  <jas@extundo.com>
49033
49034         * tests/test-arcfour.c: New file.
49035
49036         * modules/arcfour, modules/arcfour-tests: New files.
49037
49038 2005-10-14  Simon Josefsson  <jas@extundo.com>
49039
49040         * m4/arcfour.m4: New file.
49041
49042 2005-10-14  Simon Josefsson  <jas@extundo.com>
49043
49044         * lib/arcfour.h, lib/arcfour.c: New files.
49045
49046 2005-10-14  Roland McGrath  <roland@redhat.com>
49047
49048         Import from libc.  [BZ #1331]
49049         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49050         macro argument.
49051         Reported by Matej Vela <vela@debian.org>.
49052
49053 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49054
49055         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49056         include <wchar.h>; no longer needed.
49057
49058 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49059
49060         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49061
49062 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49063         and  Ulrich Drepper  <drepper@redhat.com>
49064
49065         Import from libc.
49066         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49067         instead of inline stream orientation test and two separate
49068         function calls.  Pay no attention to USE_IN_LIBIO.
49069
49070 2005-10-13  Simon Josefsson  <jas@extundo.com>
49071
49072         * modules/gc-hmac-md5-tests: New file.
49073
49074         * tests/test-gc-hmac-sha1.c: New file.
49075
49076         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49077
49078         * modules/gc-hmac-md5-tests: New file.
49079
49080         * tests/test-gc-md5.c: New file.
49081
49082         * modules/gc-md5-tests: New file.
49083
49084 2005-10-13  Simon Josefsson  <jas@extundo.com>
49085
49086         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49087         Move memory allocation outside of loop.
49088
49089 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49090
49091         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49092         intermediate directory is in a read-only file system.  Problem
49093         reported by Eric Blake.
49094
49095 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49096
49097         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49098
49099 2005-10-12  Simon Josefsson  <jas@extundo.com>
49100
49101         * tests/test-hmac-sha1.c: New file.
49102
49103         * modules/hmac-sha1-tests: New file.
49104
49105         * modules/hmac-sha1: New file.
49106
49107 2005-10-12  Simon Josefsson  <jas@extundo.com>
49108
49109         * modules/gc-sha1: New file.
49110
49111 2005-10-12  Simon Josefsson  <jas@extundo.com>
49112
49113         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49114
49115         * tests/test-gc-pbkdf2-sha1.c: New file.
49116
49117 2005-10-12  Simon Josefsson  <jas@extundo.com>
49118
49119         * modules/gc-md5, modules/gc-hmac-md5: New files.
49120
49121         * modules/gc (Files): Remove md5, memxor and hmac files.
49122
49123 2005-10-12  Simon Josefsson  <jas@extundo.com>
49124
49125         * m4/gc-pbkdf2-sha1.m4: New file.
49126
49127         * m4/gc-hmac-sha1.m4: New file.
49128
49129         * m4/gc-sha1: New file.
49130
49131         * m4/hmac-sha1.m4: New file.
49132
49133 2005-10-12  Simon Josefsson  <jas@extundo.com>
49134
49135         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49136
49137         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49138
49139 2005-10-12  Simon Josefsson  <jas@extundo.com>
49140
49141         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49142         suggested by Bruno Haible <bruno@clisp.org>.
49143
49144 2005-10-12  Simon Josefsson  <jas@extundo.com>
49145
49146         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49147
49148 2005-10-12  Simon Josefsson  <jas@extundo.com>
49149
49150         * lib/gc-pbkdf2-sha1.c: New file.
49151
49152         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49153
49154 2005-10-12  Simon Josefsson  <jas@extundo.com>
49155
49156         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49157
49158         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49159
49160 2005-10-12  Simon Josefsson  <jas@extundo.com>
49161
49162         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49163         GC_USE_HMAC_MD5, respectively.
49164
49165         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49166         (gc_md5): Fix typo.
49167
49168         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49169
49170         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49171
49172         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49173
49174 2005-10-12  Bruno Haible  <bruno@clisp.org>
49175
49176         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49177         Reported by Stepan Kasal <kasal@ucw.cz>.
49178
49179 2005-10-11  Simon Josefsson  <jas@extundo.com>
49180
49181         * tests/test-crc.c: New file.
49182
49183         * modules/crc, modules/crc-tests: New files.
49184
49185 2005-10-11  Simon Josefsson  <jas@extundo.com>
49186
49187         * m4/crc.m4: New file.
49188
49189 2005-10-11  Simon Josefsson  <jas@extundo.com>
49190
49191         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49192
49193         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49194
49195         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49196
49197 2005-10-11  Simon Josefsson  <jas@extundo.com>
49198
49199         * lib/crc.h, lib/crc.c: New files.
49200
49201         * lib/gc.h (gc_hash_buffer): Add doc.
49202
49203 2005-10-11  Bruno Haible  <bruno@clisp.org>
49204
49205         * modules/c-strcasestr: New file.
49206         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49207
49208 2005-10-11  Bruno Haible  <bruno@clisp.org>
49209
49210         * modules/c-strcase: New file.
49211         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49212
49213 2005-10-11  Bruno Haible  <bruno@clisp.org>
49214
49215         * lib/strcasecmp.c: Include limits.h.
49216         (strcasecmp): Avoid integer overflow on exotic platforms.
49217         * lib/strncasecmp.c: Include limits.h.
49218         (strncasecmp): Avoid integer overflow on exotic platforms.
49219         Reported by Paul Eggert.
49220
49221 2005-10-11  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/c-strcasestr.h: New file, from GNU gettext.
49224         * lib/c-strcasestr.c: New file, from GNU gettext.
49225
49226 2005-10-11  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/c-strcase.h: New file, from GNU gettext.
49229         * lib/c-strcasecmp.c: New file, from GNU gettext.
49230         * lib/c-strncasecmp.c: New file, from GNU gettext.
49231
49232 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49233
49234         * modules/mempcpy (License): GPL -> LGPL.
49235         * modules/strchrnul (License): Likewise.
49236         * modules/sysexits (License): Likewise.
49237
49238 2005-10-08  Simon Josefsson  <jas@extundo.com>
49239
49240         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49241
49242 2005-10-07  Simon Josefsson  <jas@extundo.com>
49243
49244         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49245
49246 2005-10-06  Simon Josefsson  <jas@extundo.com>
49247
49248         * tests/test-hmac-md5.c: New file.
49249
49250         * modules/hmac-md5-tests: New file.
49251
49252         * modules/hmac-md5: New file.
49253
49254 2005-10-06  Simon Josefsson  <jas@extundo.com>
49255
49256         * m4/hmac-md5.m4: New file.
49257
49258         * m4/memxor.m4: Require gl_C_RESTRICT.
49259
49260 2005-10-06  Simon Josefsson  <jas@extundo.com>
49261
49262         * lib/memxor.c (memxor): Avoid casts and warnings.
49263
49264 2005-10-06  Simon Josefsson  <jas@extundo.com>
49265
49266         * lib/hmac-md5.c: New file.
49267
49268         * lib/hmac.h: New file.
49269
49270 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49271
49272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49273         promotes to int, not unsigned int, to catch the AIX 5.3
49274         compiler bug.
49275
49276 2005-10-05  Simon Josefsson  <jas@extundo.com>
49277
49278         * modules/memxor: New file.
49279
49280         * modules/iconv (Files): Move config.rpath to havelib, it is used
49281         there.
49282
49283         * modules/havelib (Files): Add config.rpath.
49284
49285 2005-10-05  Simon Josefsson  <jas@extundo.com>
49286
49287         * m4/memxor.m4: New file.
49288
49289 2005-10-05  Simon Josefsson  <jas@extundo.com>
49290
49291         * lib/memxor.c (memxor): Fix compiler error.
49292
49293         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49294         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49295
49296         * lib/memxor.h, lib/memxor.c: New files.
49297
49298         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49299         we assume all systems have it, suggested by Jim Meyering
49300         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49301         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49302         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49303         same reasons.
49304
49305 2005-10-05  Simon Josefsson  <jas@extundo.com>
49306
49307         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49308
49309 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49312         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49313         needed, since the source code now assumes these .h files.
49314
49315 2005-10-05  Derek Price  <derek@ximbiot.com>
49316
49317         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49318
49319 2005-10-05  Bruno Haible  <bruno@clisp.org>
49320
49321         * modules/stdint (License): Change to LGPL.
49322
49323 2005-10-04  Simon Josefsson  <jas@extundo.com>
49324
49325         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49326         D. Baushke" <mdb@gnu.org>.
49327
49328 2005-10-04  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/verify.h (verify_true): Provide alternative definition for C++.
49331
49332 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49335         (SSIZE_MAX): New macro, if not already defined.
49336         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49337         than 2 GiB.
49338
49339 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49340
49341         Sync from coreutils.
49342         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49343         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49344         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49345         ULLONG_MAX doesn't work with 2.7.2.1.
49346
49347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49350         From Ben Pfaff.
49351
49352         * modules/exclude (Depends-on): Depend on verify.
49353         * modules/strtoimax (Depends-on): Likewise.
49354         * modules/utimecmp (Depends-on): Likewise.
49355
49356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49357
49358         * lib/exclude.c: Include verify.h.
49359         (verify): Remove.  All callers changed to use verify.h's version.
49360         * lib/strtoimax.c: Likewise.
49361         * lib/utimecmp.c: Likewis.e
49362
49363         Sync from coreutils.
49364         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49365         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49366         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49367         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49368         bother returning ENOSYS if settimeofday or stime fails; just let
49369         them return whatever errno they want to return.
49370         * lib/utimens.c: Include unistd.h, for dup2.
49371         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49372         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49373
49374 2005-10-02  Jim Meyering  <jim@meyering.net>
49375
49376         Sync from coreutils.
49377         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49378         from glibc-2.2.5 that fails for read-only files.
49379
49380 2005-10-02  Jim Meyering  <jim@meyering.net>
49381
49382         Sync from coreutils.
49383         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49384         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49385         `#if HAVE_CONFIG_H'.
49386         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49387         Remove AT_FDCWD test.
49388         Do not consume the fd unless successful.
49389         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49390         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49391         block, so that we don't even try to compile it if settimeofday is
49392         available.  This works around a compilation failure on OSF1 V5.1,
49393         due to stime requiring a `long int*' while tv_sec is `int'.
49394
49395 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49396
49397         Sync from coreutils.
49398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49399         against `yes', rather than just testing for nonempty.
49400
49401 2005-10-01  Simon Josefsson  <jas@extundo.com>
49402
49403         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49404         and Darwin.
49405
49406         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49407         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49408         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49409         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49410         Check if struct addrinfo is declared.
49411
49412 2005-10-01  Simon Josefsson  <jas@extundo.com>
49413
49414         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49415         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49416         AI_* and EAI_* definitions.  Protect function declarations.
49417
49418 2005-10-01  Jim Meyering  <jim@meyering.net>
49419
49420         Sync from coreutils.
49421
49422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49423         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49424         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49426         in the inet and nsl libraries.  Required on Solaris 5.7.
49427
49428 2005-10-01  Jim Meyering  <jim@meyering.net>
49429
49430         Sync from coreutils.
49431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49432         in the inet and nsl libraries.  Required on Solaris 5.7.
49433
49434 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49435
49436         * lib/getdelim.c (getdelim): Remove unused variables.
49437
49438 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49439
49440         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49441         so that the code works even with ancient cpp.  Portability problem
49442         with GCC 2.7.2.1 reported by Thomas M.Ott.
49443
49444 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49445
49446         * modules/regex (Depends-on): Add strcase.
49447
49448         * modules/gethostname (Licence): Change from GPL to LGPL, since
49449         gethostname.c is a trivial implementation of a standard library
49450         function.
49451         * modules/poll (License): Change from GPL to LGPL, since it's
49452         derived from LGPL code.
49453
49454 2005-09-27  Jim Meyering  <jim@meyering.net>
49455
49456         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49457         HAVE_CONFIG_H.
49458
49459         * lib/intprops.h (signed_type_or_expr__): Define.
49460         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49461         for unsigned types.
49462
49463 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49464
49465         * lib/verify.h (verify_expr): Remove, replacing with:
49466         (verify_true): New macro that returns true instead of void.
49467         (verify_type__): Remove.
49468         (verify): Use verify_true rather than verify_type__.
49469
49470 2005-09-26  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49473         is necessary.
49474         (lib_SOURCES): Remove mbchar.c.
49475         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49476         (Files): Add m4/mbrtowc.m4.
49477         * modules/mbiter: Likewise.
49478         * modules/mbuiter: Likewise.
49479
49480 2005-09-26  Bruno Haible  <bruno@clisp.org>
49481
49482         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49483         compile mbchar.c if they are not both present.
49484         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49485         * m4/mbiter.m4 (gl_MBITER): Likewise.
49486         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49487         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49488         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49489
49490 2005-09-25  Jim Meyering  <jim@meyering.net>
49491
49492         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49493         also uses socklen_t.
49494
49495 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49496
49497         * lib/utimens.c (ENOSYS): Define if not already defined.
49498         (futimens): Support having a null PATH if the file descriptor
49499         is nonnegative.
49500
49501         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49502         Remove.
49503         (__attribute): Define to empty unless GCC 3.1 or later.
49504         This works around a core dump on OpenBSD 3.4, which has GCC
49505         2.95.3, which dumps core when given __attribute__(()).  It also
49506         simplifies other tests, since we really don't want to bother with
49507         worrying about which ancient version of GCC supported what.
49508         Original problem reported by Yoann Vandoorselaere, with part of
49509         the fix suggested by Derek Price.
49510
49511 2005-09-24  Jim Meyering  <jim@meyering.net>
49512
49513         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49514         so we can once again use a positive bitfield width of 1 -- now we
49515         don't have to explain why we were using a bitfield width of 2.
49516
49517 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49518
49519         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49520         and similarly for the other external symbols.  Problem reported
49521         by James Gallager.
49522
49523         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49524         bug reported by Jim Meyering.
49525
49526         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49528         not needed, since socklen is a prerequisite module.
49529
49530 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49531
49532         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49533         Problem reported by Eric Blake.
49534         (getaddrinfo): Initialize se so that it's not garbage.
49535         Redo internal storage allocation so that it doesn't make unportable
49536         assumptions about alignment.
49537         Fix a memory leak.
49538
49539         * lib/utimens.c (futimens): Use futimesat if available.
49540         Prefer it to futimes since it doesn't have the futimes bug.
49541
49542         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49543         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49544         Instead, declare a function that returns a pointer to an array,
49545         and use verify_type__ to declare the size of the array.
49546         Problem and germ of a solution reported by Bruno Haible.
49547         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49548         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49549
49550 2005-09-23  Jim Meyering  <jim@meyering.net>
49551
49552         Sync from coreutils.
49553         Correct build failure (socklen_t not defined) on at least
49554         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49556
49557 2005-09-23  Jim Meyering  <jim@meyering.net>
49558
49559         * modules/getaddrinfo (Depends-on): Add socklen.
49560
49561 2005-09-23  Bruno Haible  <bruno@clisp.org>
49562
49563         * tests/test-verify.c: New file.
49564
49565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         Sync from coreutils.
49568
49569         * modules/argmatch (Depends-on): Add verify.
49570         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49571         unistd-safer.
49572         * modules/save-cwd (Depends-on): Likewise.
49573
49574         * modules/openat (Files): Add lib/openat-die.c.
49575         (Depends-on): Remove error, exitfail.
49576         Add dirname.
49577
49578         * modules/verify: New file.
49579         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49580         with "verify" module.
49581
49582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         Sync from coreutils.
49585
49586         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49587         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49588         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49589         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49590         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49591         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49592         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49593         Don't bother checking for string.h, stdlib.h, unistd.h.
49594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49596         module's job.
49597         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49598         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49599
49600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49601         (gl_GETDATE): Use it.
49602
49603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49604
49605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49606
49607         Sync from coreutils.
49608
49609         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49610         stat-time.h.
49611         * lib/argmatch.h: Include verify.h
49612         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49613         (ARGMATCH_ASSERT): Remove; unused.
49614         * lib/canonicalize.c: Assume STDC_HEADERS.
49615         * lib/exclude.c: Include "strcase.h".
49616         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49617         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49618         and stdio-safer.h.
49619         (getusershell): Call fopen, not fopen_safer.
49620         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49621         Do not include unistd-safer.h.
49622         (save_cwd): Don't call fd_safer; no longer needed
49623         now that we include fcntl--.h.
49624
49625         * lib/getdate.y (relative_time): New type.
49626         (RELATIVE_TIME_0): New constant.
49627         (parser_control): Use relative_time instead of doing it ourselves.
49628         (%union): Add new relative_time rel member.
49629         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49630         Now typeless.
49631         (relunit, relunit_snumber): Now of type rel.
49632         (zone, rel, relunit, get_date): Adjust to above changes.
49633
49634         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49635         Do not include unistd-safer.h.
49636         (getloadavg): Don't call fd_safer; no longer needed
49637         now that we include fcntl--.h.
49638
49639         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49640         (make_dir_parents): Treat ENOSYS like EEXIST.
49641
49642         Improve quality of diagnostics on restore_cwd failure.
49643         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49644         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49645         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49646         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49647         each time through the loop.  Do not diagnose restore_cwd failure;
49648         that is the caller's job (and perhaps the caller does not care).
49649
49650         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49651         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49652         If the file already exists but is not a directory, don't bother
49653         to try to make its parents.
49654         Close potential file descriptor leak if we can't chdir("/") (!).
49655         Don't always return true if chdir($PWD) fails; return true only
49656         if the requested action was done successfully (except for the
49657         chdir($PWD)).
49658         Don't log final directory unless we actually made it.
49659         Refactor to avoid duplicate code to fix up permissions.
49660         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49661
49662         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49663         to make it a bit faster and (I hope) clearer.
49664         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49665         Fix bug in formats like %2N.
49666
49667         * lib/verify.h: New file.
49668
49669 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49670
49671         Sync from coreutils.
49672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49673
49674 2005-09-22  Jim Meyering  <jim@meyering.net>
49675
49676         Sync from coreutils.
49677
49678         * m4/lstat.m4 (gl_FUNC_LSTAT):
49679         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49680         Remove obsolete comment.
49681         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49682         * m4/xstrtod.m4: Likewise.
49683
49684         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49685
49686 2005-09-22  Jim Meyering  <jim@meyering.net>
49687
49688         Sync from coreutils.
49689
49690         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49691
49692         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49693         the .tm_year member, since otherwise gcc-4.0 would now warn about
49694         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49695
49696         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49697         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49698
49699         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49700         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49701         when run in a time zone for which daylight savings time is in effect
49702         for the starting date.
49703
49704         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49705         stop us from restricting permissions of just-created absolute-named
49706         directories.
49707         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49708         to restore initial working directory.
49709         * lib/mkdir-p.c (make_dir_parents): New parameter:
49710         different_working_dir, to tell caller if/when we change the working
49711         directory and are unable to return to the initial one.
49712         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49713         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49714         `return false'.  This fixes a bug introduced on 2004-07-30.
49715
49716         * lib/openat.c (fdopendir): Be sure to close the supplied
49717         file descriptor before returning.  This makes our replacement
49718         implementation a little closer to Solaris's, where fdopendir
49719         ties the file descriptor to the returned DIR* pointer.
49720         * lib/openat.c (unlinkat): New function.
49721         * lib/openat.h (unlinkat): Add prototype.
49722         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49723         (openat_restore_fail): Rename from openat_restore_die.
49724         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49725
49726         Provide an alternative to exiting immediately upon save_cwd or
49727         restore_cwd failure.  Now, an application can arrange e.g.,
49728         to perform a longjump in that case.
49729         * lib/openat.c: Include dirname.h.
49730         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49731         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49732         and openat_restore_die rather than calling error directly.
49733         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49734
49735         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49736         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49737         define.
49738
49739         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49740         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49741                             int utc, int nanoseconds);
49742         Background:
49743         date should not have to allocate a megabyte of virtual memory to
49744         handle a format argument like +%1048575T.  When implemented with
49745         strftime, it must allocate such a buffer, use strftime to fill it
49746         in, print it, then free it.
49747         With fprintftime, it simply prints everything and exits.
49748         With no need for memory allocation, that's one fewer way to fail.
49749         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49750         optional field width, not before, so we accept %9:z, not %:9z.
49751         (my_strftime): Be sure to use L_('x') for literals.
49752
49753         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49754         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49755         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49756         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49757         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49758         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49759         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49760         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49761         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49762         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49763         * lib/xgethostname.c, lib/xreadlink.c:
49764         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49765
49766         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49767         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49768         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49770         and don't include <sys/file.h>).
49771
49772 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49773
49774         Sync from coreutils.
49775
49776         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49777         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49778         [!LDAV_DONE]: Avoid unused variable warning.
49779
49780 2005-09-21  Bruno Haible  <bruno@clisp.org>
49781
49782         * lib/unicodeio.h (unicode_to_mb): New declaration.
49783
49784 2005-09-20  Derek Price  <derek@ximbiot.com>
49785
49786         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49787         getaddrinfo.h.
49788
49789 2005-09-20  Bruno Haible  <bruno@clisp.org>
49790
49791         * gnulib-tool: Remove trailing slashes from the values specified for
49792         --source-base, --m4-base, --tests-base, --aux-dir.
49793         Suggested by Simon Josefsson <jas@extundo.com>.
49794
49795 2005-09-20  Bruno Haible  <bruno@clisp.org>
49796
49797         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49798         func_modules_to_filelist, func_import, func_create_testdir): Make all
49799         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49800         change when gnulib-tool is invoked in a different locale.
49801
49802 2005-09-19  Simon Josefsson  <jas@extundo.com>
49803
49804         * m4/socklen.m4: Fix typo.
49805
49806 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49807
49808         Use a consistent style for including <config.h>.
49809         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49810         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49811         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49812         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49813         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49814         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49815         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49816         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49817         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49818         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49819         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49820         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49821         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49822         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49823         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49824         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49825         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49826         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49827         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49828         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49829         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49830         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49831         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49832         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49833         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49834         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49835         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49836         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49837         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49838         lib/xstrtoumax.c, lib/yesno.c:
49839         Standardize inclusion of config.h.
49840         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49841         lib/inttostr.h:  Removed inclusion of config.h from header files.
49842         * lib/inttostr.c:  Adjusted in-tree users.
49843         * lib/timespec.h: Remove superfluous warning to include config.h.
49844         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49845         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49846         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49847         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49848         config.h with HAVE_CONFIG_H.
49849
49850 2005-09-19  Jim Meyering  <jim@meyering.net>
49851
49852         * modules/pathmax (License): Change to LGPL.
49853
49854 2005-09-19  Derek Price  <derek@ximbiot.com>
49855
49856         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49857
49858 2005-09-19  Bruno Haible  <bruno@clisp.org>
49859
49860         * gnulib-tool (import): Provide default for --tests-base.
49861
49862 2005-09-19  Bruno Haible  <bruno@clisp.org>
49863
49864         * doc/quote.texi: New file, extracted from gnulib.texi.
49865         * doc/ctime.texi: New file, extracted from gnulib.texi.
49866         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49867         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49868         * doc/gnulib.texi: Include them.
49869
49870 2005-09-18  Bruno Haible  <bruno@clisp.org>
49871
49872         Portability fix.
49873         * gnulib-tool (func_readlink): New function.
49874         (func_ln_if_changed): Use it.
49875
49876 2005-09-18  Bruno Haible  <bruno@clisp.org>
49877
49878         * gnulib-tool: Support --with-tests also with --import.
49879         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49880         (func_import): Use variables $testsbase and $inctests. Emit a
49881         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49882         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49883         SUBDIRS += $testsdir.
49884         (func_create_testdir): Update.
49885
49886 2005-09-18  Bruno Haible  <bruno@clisp.org>
49887
49888         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49889         instead of $dry_run.
49890         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49891         (func_ln_if_changed): Don't handle dry-run here.
49892         (func_import): In dry-run mode, detect more precisely which actions
49893         would be performed, and don't use "...ing" verbs.
49894
49895 2005-09-18  Bruno Haible  <bruno@clisp.org>
49896
49897         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49898         (func_import): Use join on two temporary files instead of three nested
49899         loops, in order to determine which files are new or old.
49900
49901 2005-09-18  Bruno Haible  <bruno@clisp.org>
49902
49903         * gnulib-tool (func_import): Comment out code that spits out the
49904         new files with --dry-run.
49905
49906 2005-09-18  Bruno Haible  <bruno@clisp.org>
49907
49908         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49909
49910 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         * lib/stat-time.h: New file.
49913         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49914         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49915         in a different way.
49916         (timespec_cmp): New function.
49917         * lib/utimecmp.c: Include stat-time.h.
49918         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49919         members exist, not on the obsolescent ST_MTIM_NSEC.
49920         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49921
49922 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49925
49926 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49927
49928         * MODULES.html.sh (File system functions): Add stat-time.
49929         * modules/stat-time: New file.
49930         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49931         is now done in a different way, by the stat-time module.
49932         * modules/utimecmp (Depends-on): Add stat-time.
49933
49934 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49935
49936         * m4/st_mtim.m4: Remove.  Superseded by...
49937         * m4/stat-time.m4: New file.
49938         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49939         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49940
49941 2005-09-15  Derek Price  <derek@ximbiot.com>
49942
49943         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49944
49945 2005-09-15  Derek Price  <derek@ximbiot.com>
49946
49947         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49948         * lib/regex_internal.c: Ditto, using this...
49949         (__GNUC_PREREQ): ...new macro.
49950         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49951         using...
49952         (__GNUC_PREREQ): ...this new macro.
49953
49954         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49955
49956 2005-09-15  Derek Price  <derek@ximbiot.com>
49957             Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49960         changes, consolidating in...
49961         * lib/regex_internal.h: ...this file.
49962
49963 2005-09-13  Jim Meyering  <jim@meyering.net>
49964
49965         * lib/canon-host.c: Filter through gnu indent and reword comments
49966         slightly.
49967         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49968
49969 2005-09-13  Derek Price  <derek@ximbiot.com>
49970
49971         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49972         failure.
49973         Reported by Jim Meyering  <jim@meyering.net>.
49974
49975 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49976
49977         * lib/base64.c: Typo.
49978         (base64_encode): Put b64str in initialized data section.
49979
49980 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49981
49982         Merge glibc and coreutils changes into gnulib, plus a few
49983         extra fixes.
49984         * lib/md5.c: Use #error rather than a string.
49985         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49986         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49987         (__attribute__): Define to empty for non recent-GCC.
49988         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49989         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49990         Renamed from their non-__ counterparts, with new macros replacing
49991         them if not _LIBC.  Add __THROW attribute.
49992         (rol): Remove.
49993         (struct md5_ctx): Align buffer if using GCC.
49994         * lib/sha1.h (struct sha1_ctx): Likewise.
49995         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49996         The old name was backwards.
49997         (NOTSWAP): Remove; not used.
49998         (rol): New macro, moved here from md5.h.
49999         (sha1_process_block): Remove a FIXME that doesn't make sense.
50000
50001 2005-09-12  Derek Price  <derek@ximbiot.com>
50002
50003         Return usable errors from canon-host.
50004         * lib/canon-host.h: New file.
50005         * lib/canon-host.c (canon_host): Wrap...
50006         (canon_host_r): ...this new function, which now relies exclusively on
50007         getaddrinfo.
50008         (ch_strerror): New function.
50009         (last_cherror): New global.
50010         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50011         interface.
50012         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50013         void *.
50014         (freeaddrinfo): Free ai->ai_canonname when set.
50015
50016 2005-09-12  Derek Price  <derek@ximbiot.com>
50017
50018         Make canon-host require getaddrinfo.
50019         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50020         AC_LIBSOURCE canon-host.h.  Call...
50021         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50022         gl_GETADDRINFO.
50023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50024
50025 2005-09-12  Derek Price  <derek@ximbiot.com>
50026
50027         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50028         LGPL.
50029         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50030
50031 2005-09-12  Derek Price  <derek@ximbiot.com>
50032
50033         * lib/gai_strerror.c: Include config.h when available.  Include
50034         getaddrinfo.h before other headers to test interface.
50035         Reported by Larry Jones <lawrence.jones@ugs.com>.
50036
50037 2005-09-12  Derek Price  <derek@ximbiot.com>
50038             Paul Eggert  <eggert@cs.ucla.edu>
50039
50040         * modules/glob (Files): Add glob-libc.h.
50041
50042 2005-09-12  Derek Price  <derek@ximbiot.com>
50043             Paul Eggert  <eggert@cs.ucla.edu>
50044
50045         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50046         glob_.h, glob-libc.h.
50047         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50048
50049 2005-09-12  Derek Price  <derek@ximbiot.com>
50050             Paul Eggert  <eggert@cs.ucla.edu>
50051
50052         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50053         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50054         protecting things that should be done only in gnulib contexts.
50055         * lib/glob_.h: New file, containing only the glob things needed for
50056         gnulib.
50057         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50058         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50059         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50060         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50061         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50062         and to respect the namespace rules better.
50063
50064 2005-09-08  Simon Josefsson  <jas@extundo.com>
50065
50066         * modules/socklen: New file.
50067
50068 2005-09-08  Simon Josefsson  <jas@extundo.com>
50069
50070         * m4/socklen.m4: New file.
50071
50072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50073
50074         * modules/utimens (Files): Add m4/utimbuf.m4, since
50075         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50076         Reported by Sergey Poznyakoff.
50077
50078 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50079
50080         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50081         definitions, since that's the preferred style in glibc.
50082         Fix a minor spacing issue, and update copyright notice to match
50083         glibc's.
50084
50085 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50086
50087         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50088
50089 2005-09-06  Simon Josefsson  <jas@extundo.com>
50090
50091         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50092         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50093
50094 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50095
50096         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50097         warning.
50098
50099 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         * config/srclist.txt: Add glibc bug 1302.
50102
50103 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50104
50105         Change bitset word type from unsigned int to unsigned long int,
50106         as this has better performance on typical 64-bit hosts.
50107         Port bitset code to hosts with unusual word sizes.
50108         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50109         (build_collating_symbol):
50110         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50111         argument is a bitset.  This is merely a style issue, but it makes
50112         it clearer that an entire array is expected.
50113         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50114         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50115         Port to the case where bitset_word is not the same as unsigned int.
50116         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50117         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50118         Likewise.
50119         * lib/regexec.c (check_dst_limits_calc_pos_1,
50120         check_subexp_matching_top):
50121         (build_trtable, group_nodes_into_DFAstates):
50122         Likewise.
50123         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50124         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50125         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50126         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50127         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50128         * lib/regcomp.c (optimize_subexps, lower_subexp):
50129         Work even if bitset_word has holes in its bitwise representation.
50130         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50131         * lib/regexec.c (check_dst_limits_calc_pos_1,
50132         check_subexp_matching_top):
50133         Likewise.
50134         * lib/regex_internal.c (re_string_reconstruct):
50135         Don't assume UCHAR_MAX == 255.
50136         * lib/regex_internal.h (bitset_set_all): Likewise.
50137         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50138         All uses changed.
50139         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50140         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50141         All uses changed.
50142         (BITSET_WORD_MAX): New macro.
50143         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50144         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50145         (bitset_empty, bitset_copy):
50146         Prefer sizeof (bitset) to multiplying it out ourselves.
50147         (bitset_not_merge): Remove; unused.
50148         (bitset_contain): Return bool, not unsigned int with one bit on.
50149         All callers changed.
50150         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50151         alignment than re_node_set; do this by defining a new internal
50152         type struct dests_alloc and using it to allocate memory.
50153
50154 2005-09-05  Bruno Haible  <bruno@clisp.org>
50155
50156         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50157         links.
50158
50159 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50160
50161         * modules/size_max (Makefile.am): Add size_max.h
50162
50163 2005-09-04  Derek Price  <derek@ximbiot.com>
50164
50165         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50166
50167 2005-09-03  Simon Josefsson  <jas@extundo.com>
50168
50169         * gnulib-tool: Fix typo.
50170
50171 2005-09-03  Simon Josefsson  <jas@extundo.com>
50172
50173         * config/srclist.txt: Add glibc bug 1293.
50174
50175 2005-09-03  Derek Price  <derek@ximbiot.com>
50176
50177         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50178         From Larry Jones <lawrence.jones@ugs.com>.
50179
50180 2005-09-02  Simon Josefsson  <jas@extundo.com>
50181
50182         * modules/socklen: New file.
50183
50184 2005-09-02  Simon Josefsson  <jas@extundo.com>
50185
50186         * modules/havelib: New module.
50187
50188         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50189         Use havelib.
50190
50191 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50192
50193         Check for arithmetic overflow when calculating sizes, to prevent
50194         some buffer-overflow issues.  These patches are conservative, in the
50195         sense that when I couldn't determine whether an overflow was possible,
50196         I inserted a run-time check.
50197         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50198         macros.
50199         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50200         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50201         (re_xnrealloc, re_x2nrealloc): New inline functions.
50202         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50203         parse_bracket_exp):
50204         (build_equiv_class, build_charclass): Check for arithmetic overflow
50205         in size expression calculations.
50206         * lib/regex_internal.c (re_string_realloc_buffers):
50207         (build_wcs_upper_buffer, re_node_set_add_intersect):
50208         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50209         (re_dfa_add_node, register_state): Likewise.
50210         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50211         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50212         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50213         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50214
50215 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50216
50217         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50218         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50219
50220 2005-09-02  Bruno Haible  <bruno@clisp.org>
50221
50222         Support for lib vs. lib64 distinction on biarch platforms.
50223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50224         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50226
50227 2005-09-02  Bruno Haible  <bruno@clisp.org>
50228
50229         * gnulib-tool (import): In the other first-use case, provide defaults
50230         as well.
50231
50232 2005-09-02  Bruno Haible  <bruno@clisp.org>
50233
50234         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50235         patches not yet found in the latest gettext release.
50236
50237 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50238
50239         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50240         to avoid a collision with bits/local_lim.h in glibc.
50241         All uses changed.  Problem reported by Dmitry V. Levin in
50242         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50243
50244         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50245         bugs in int versus size_t comparisons.
50246         (re_string_context_at): Fix bug where the code assumed that
50247         Idx is signed.
50248
50249         Use bool where appropriate.
50250         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50251         All callers changed.
50252         (calc_eclosure_iter): Likewise, for ROOT arg.
50253         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50254         (build_charclass_op): Likewise, for NON_MATCH arg.
50255         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50256         (re_string_construct_common): Likewise, for ICASE arg.
50257         * lib/regexec.c (re_search_2_stub, re_search_stub):
50258         Likewise, for RET_LEN arg.
50259         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50260         (set_regs): Likewise, for FL_BACKTRACK arg.
50261         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50262         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50263         (calc_eclosure_iter, parse_bracket_exp):
50264         Use bool for internal variables that are booleans.
50265         * lib/regexec.c (re_search_internal, check_matching,
50266         proceed_next_node):
50267         (set_regs, build_sifted_states, sift_states_bkref):
50268         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50269         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50270         (find_collation_sequence_value):
50271         Likewise.
50272         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50273         (re_node_set_compare):
50274         Return bool, not int. All callers changed.
50275         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50276         (build_trtable, check_node_accept): Likewise.
50277         * lib/regex_internal.h: Include stdbool.h.
50278
50279         Fix bugs uncovered when converting to bool.
50280         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50281         failure instead of charging ahead blindly.
50282         * lib/regex_internal.c (register_state): Likewise.
50283         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50284         for freeing internal storage.
50285         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50286         bitset pieces used as boolean, to avoid undefined behavior
50287         on hosts that do int overflow checking.
50288
50289 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50290
50291         * config/srclist.txt: Add glibc bugs 1285-1287.
50292
50293 2005-09-01  Jim Meyering  <jim@meyering.net>
50294
50295         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50296         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50297         Require gl_STAT_MACROS, too.
50298
50299 2005-09-01  Bruno Haible  <bruno@clisp.org>
50300
50301         * gnulib-tool (import): In the first-use case, provide defaults.
50302
50303 2005-09-01  Bruno Haible  <bruno@clisp.org>
50304
50305         * gnulib-tool (func_import): Remove the .tmp files.
50306
50307 2005-09-01  Bruno Haible  <bruno@clisp.org>
50308
50309         * gnulib-tool (func_import): Fix handling of symbolic links.
50310
50311 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50314         old glibc regex code mishandles strings longer than 2**31 bytes.
50315         This patch fixes this when the regex code is used in gnulib
50316         (i.e., outside glibc).
50317
50318         This patch should not affect the use of the regex code inside
50319         glibc.  No doubt this problem also needs to be handled for glibc
50320         as well, but the result will be an incompatible change to the
50321         glibc ABI, and the old ABI will have to be supported too.  That
50322         can be the the subject for another patch.
50323
50324         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50325         governing whether the rest of this patch is active.  By default,
50326         the macro is disabled and the patch has no effect.
50327         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50328         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50329         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50330         (re_match_2, re_set_registers): Use the new types.
50331         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50332         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50333         New macros.
50334         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50335         (re_string_context_at, bin_tree_t, re_dfastate_t):
50336         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50337         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50338         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50339         (re_string_char_size_at, re_string_wchar_at):
50340         (re_string_elem_size_at):
50341         Use the new types and macros to port to 64-bit hosts.
50342         Use unsigned types for internal values, so that the code
50343         mostly works even for arrays larger than SSIZE_MAX.
50344         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50345         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50346         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50347         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50348         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50349         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50350         (calc_inveclosure, parse_dup_op, build_range_exp):
50351         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50352         (fetch_number, create_token_tree, mark_opt_subexp):
50353         Likewise.
50354         * lib/regex_internal.c (re_string_construct_common,
50355         create_ci_newstate):
50356         (create_cd_newstate, re_string_allocate, re_string_construct):
50357         (re_string_realloc_buffers, build_wcs_upper_buffer):
50358         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50359         (re_string_reconstruct, re_string_peek_byte_case):
50360         (re_string_fetch_byte_case, re_string_context_at):
50361         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50362         (re_node_set_init_copy, re_node_set_add_intersect):
50363         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50364         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50365         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50366         (re_acquire_state, re_acquire_state_context, register_state):
50367         Likewise.
50368         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50369         search_cur_bkref_entry):
50370         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50371         (re_search_internal, re_search_2_stub, re_search_stub)
50372         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50373         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50374         (update_cur_sifted_state, check_dst_limits):
50375         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50376         (check_subexp_limits, sift_states_bkref, merge_state_array):
50377         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50378         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50379         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50380         (expand_bkref_cache, check_node_accept_bytes):
50381         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50382         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50383         (acquire_init_state_context, check_halt_node_context):
50384         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50385         (sift_states_backward, clean_state_log_if_needed):
50386         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50387         (find_recover_state, transit_state_sb, transit_state_mb):
50388         (transit_state_bkref, build_trtable, match_ctx_clean):
50389         Likewise.
50390         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50391         to work around an assumption that REG_MISSING is negative.
50392
50393         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50394         (seek_collating_symbol_entry) [defined _LIBC]:
50395         (lookup_collation_sequence_value) [defined _LIBC]:
50396         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50397         Use prototypes rather than old-style function definitions.
50398         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50399         (transit_state_sb) [0]:
50400         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50401
50402         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50403         rm_eo.
50404
50405         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50406         (optimize_subexps, lower_subexp):
50407         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50408         since the signed shift might overflow.  Use 1u<<31 instead.
50409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50410         Likewise.
50411         * lib/regexec.c (check_dst_limits_calc_pos_1,
50412         check_subexp_matching_top): Likewise.
50413
50414         * lib/regcomp.c (optimize_subexps, lower_subexp):
50415         Use CHAR_BIT rather than 8, for clarity.
50416         * lib/regexec.c (check_dst_limits_calc_pos_1):
50417         (check_subexp_matching_top): Likewise.
50418         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50419         have to worry about portability issues when shifting it left.
50420         Remove no-longer-needed test for table_size > 0.
50421         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50422         in a word, as the resulting behavior is undefined.
50423         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50424         in one case, a <= should have been an <, and in another case the
50425         whole test was missing.
50426         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50427         the standard name CHAR_BIT.
50428         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50429         this is not true on one's complement and signed-magnitude hosts.
50430
50431         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50432         next_last_offset.
50433         (struct re_dfa_t): Remove unused member states_alloc.
50434         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50435
50436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50437
50438         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50439         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50440         and large-file glibc and in 32-bit large-file Solaris.
50441
50442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50443
50444         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50445         lengths fit in regoff_t; this isn't true if regoff_t is the same
50446         width as size_t.
50447         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50448         (= START + RANGE) instead of RANGE.  This avoids overflow
50449         problems when regoff_t is the same width as size_t.
50450         All callers changed.
50451         (re_search_2_stub): Check for overflow when adding the
50452         sizes of the two strings.
50453         (re_search_stub): Check for overflow when adding START
50454         to RANGE; if it occurs, substitute the extreme value.
50455
50456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50457
50458         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50459
50460 2005-08-31  Jim Meyering  <jim@meyering.net>
50461
50462         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50463         a pointer-to-const.
50464         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50465         (register_state): Likewise.
50466         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50467         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50468         (group_nodes_into_DFAstates): Likewise.
50469
50470 2005-08-31  Jim Meyering  <jim@meyering.net>
50471
50472         * check-module: Add a FIXME comment.
50473
50474 2005-08-31  Eric Blake  <ebb9@byu.net>
50475
50476         * modules/unistd-safer (Files): Add unistd--.h.
50477         * modules/stdio-safer (Files): Add stdio--.h.
50478
50479 2005-08-31  Derek Price  <derek@ximbiot.com>
50480
50481         * lib/getdelim.c (getdelim): Return EOF on EOF.
50482         Reported by Larry Jones <lawrence.jones@ugs.com>.
50483
50484 2005-08-31  Bruno Haible  <bruno@clisp.org>
50485
50486         Avoid unnecessary diffs in the generated lib/Makefile.am.
50487         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50488         the generated files.
50489         (func_import): Don't set cmd.
50490
50491 2005-08-31  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/strstr.c: Include <stddef.h>, for NULL.
50494         * lib/strcasestr.c: Likewise.
50495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50496
50497 2005-08-31  Bruno Haible  <bruno@clisp.org>
50498
50499         * gnulib-tool: New option --macro-prefix.
50500         (func_import): Use macro_prefix.
50501         (import): Handle option --macro-prefix.
50502
50503 2005-08-31  Bruno Haible  <bruno@clisp.org>
50504
50505         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50506         Also use new variables cached_lgpl, cached_libtool.
50507
50508 2005-08-31  Bruno Haible  <bruno@clisp.org>
50509
50510         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50511         always instantiating them.
50512
50513 2005-08-31  Bruno Haible  <bruno@clisp.org>
50514
50515         * gnulib-tool (func_import): Read the previous cached settings
50516         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50517         earlier added by gnulib but are now dropped. Warn when a gnulib file
50518         overwrites a non-gnulib file.
50519
50520 2005-08-31  Bruno Haible  <bruno@clisp.org>
50521
50522         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50523         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50524         projects that don't keep autogenerated files in CVS. Put into
50525         actioncmd only the specified modules, not the transitive closure.
50526
50527 2005-08-31  Bruno Haible  <bruno@clisp.org>
50528
50529         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50530         Create directories that shall be filled.
50531         (import): Don't look for gl_* macros in configure.ac. Recurse across
50532         all directories containing a gnulib-cache.m4 files, if meaningful.
50533
50534 2005-08-31  Bruno Haible  <bruno@clisp.org>
50535
50536         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50537         (import): Set seen_libtool when we see gl_LIBTOOL.
50538
50539 2005-08-31  Bruno Haible  <bruno@clisp.org>
50540
50541         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50542         declaration macro definitions from generated gnulib.m4.
50543
50544 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50545
50546         * lib/iconvme.h: Add prototype for iconv_alloc.
50547
50548 2005-08-29  Simon Josefsson  <jas@extundo.com>
50549
50550         * lib/iconvme.c: Fix errno.
50551
50552 2005-08-29  Bruno Haible  <bruno@clisp.org>
50553
50554         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50555         that it works when the directory contains spaces.
50556
50557 2005-08-29  Bruno Haible  <bruno@clisp.org>
50558
50559         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50560
50561 2005-08-29  Bruno Haible  <bruno@clisp.org>
50562
50563         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50564         Emit more advice.
50565
50566 2005-08-29  Bruno Haible  <bruno@clisp.org>
50567         and Stepan Kasal  <kasal@ucw.cz>
50568
50569         * check-module: If more parameters are given, check each of them
50570         separately; add more exceptions, as noted by Jim Meyering.
50571         (check_module): New procedure.
50572         (%exempt_header): Now contains all exceptions.
50573
50574 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50575
50576         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50577
50578 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50579
50580         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50581
50582 2005-08-28  Bruno Haible  <bruno@clisp.org>
50583
50584         * m4/gnulib-tool.m4: New file.
50585
50586 2005-08-27  Jim Meyering  <jim@meyering.net>
50587
50588         * modules/unistd-safer (Files): Add pipe-safer.c.
50589         * modules/fcntl-safer (Files): Add creat-safer.c.
50590
50591 2005-08-27  Jim Meyering  <jim@meyering.net>
50592
50593         * m4/stdlib-safer.m4: New file.  From coreutils.
50594         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50596         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50597         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50598         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50599
50600 2005-08-27  Jim Meyering  <jim@meyering.net>
50601
50602         * lib/fopen-safer.c: Merge minor changes from coreutils.
50603         * lib/dup-safer.c: Likewise.
50604         * lib/fd-safer.c: Likewise.
50605
50606         Merge from coreutils.
50607         * lib/stdio--.h: New file.
50608         * lib/stdlib--.h: New file.
50609         * lib/mkstemp-safer.c: New file.
50610
50611         GNU tar needs these.
50612         * lib/pipe-safer.c: New file.
50613         * lib/creat-safer.c: New file.
50614         * lib/fcntl--.h (creat): Define to creat_safer.
50615         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50616         * lib/unistd--.h (pipe): Define to pipe_safer.
50617         * lib/unistd-safer.h: Declare pipe_safer.
50618
50619 2005-08-26  Simon Josefsson  <jas@extundo.com>
50620
50621         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50622         Haible <bruno@clisp.org>.
50623
50624 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50625
50626         * lib/regex_internal.h: Remove all references to
50627         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50628         or better.
50629         (bitset_not, bitset_merge, bitset_not_merge):
50630         (bitset_mask, re_string_allocate, re_string_construct):
50631         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50632         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50633         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50634         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50635         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50636         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50637         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50638         (re_acquire_state_context):
50639         Remove unnecessary forward decls.
50640         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50641         Put __attribute at function definition,
50642         now that the function decl has been removed.
50643         * lib/regex_internal.c (re_string_peek_byte_case):
50644         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50645         Likewise.
50646
50647 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50648
50649         * m4/regex.m4: Add AC_PREREQ(2.50).
50650         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50651
50652 2005-08-25  Simon Josefsson  <jas@extundo.com>
50653
50654         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50655         __fsetlocking.
50656
50657 2005-08-25  Simon Josefsson  <jas@extundo.com>
50658
50659         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50660         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50661         GLIBC specific code.
50662
50663 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50664
50665         Make regex safe for g++.  This fixes one real bug (an "err"
50666         that should have been "*err").  g++ problem reported by
50667         Sam Steingold.
50668         * lib/regex_internal.h (re_calloc): New macro, consistent with
50669         re_malloc etc.  All callers of calloc changed to use re_calloc.
50670         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50671         not int.  All callers changed.
50672         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50673         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50674         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50675         (find_recover_state): Change "err" to "*err"; this fixes what
50676         appears to be a real bug.
50677         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50678         versus int.
50679
50680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         * modules/regex (Depends-on): Add malloc, since the code
50683         assumes that !malloc(0) means failure.
50684
50685 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50688
50689         alloca modernization/simplification for regex.
50690         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50691         needs to be at the start of the file, and can be moved into
50692         regex_internal.h and simplified.
50693         * lib/regex_internal.h: Include <alloca.h>.
50694         (__libc_use_alloca) [!defined _LIBC]: New macro.
50695         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50696         now works outside glibc.
50697
50698 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50699
50700         * config/srclist.txt: Add glibc bugs 1241, 1245.
50701
50702 2005-08-25  Jim Meyering  <jim@meyering.net>
50703
50704         * lib/open-safer.c: Include <config.h>.
50705         Otherwise, we'd lose LARGEFILE support in any file using
50706         e.g. "fcntl--.h"
50707
50708 2005-08-25  Bruno Haible  <bruno@clisp.org>
50709
50710         * m4/minmax.m4: Require autoconf 2.52.
50711         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50712         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50713         alternatives of translit over the alphabet.
50714         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50715
50716 2005-08-24  Simon Josefsson  <jas@extundo.com>
50717
50718         * tests/test-getpass.c: New file.
50719
50720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50721
50722         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50723         for GNU regex features.
50724
50725 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50726
50727         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50728         * lib/regex.h (regerror): Likewise.
50729
50730         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50731         requires this.  (The code never needed it.)
50732
50733         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50734         All uses of recently-renamed identifiers changed to use the new,
50735         POSIX-compliant names.  The code will build and run just fine
50736         without these changes, but it's better to eat our own dog food
50737         and use the standard-conforming names.
50738
50739         * lib/regex.h: Fix a multitude of POSIX name space violations.
50740         These changes have an effect only for programs that define
50741         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50742         do not change anything for programs compiled in the normal way.
50743         Also, there is no effect on the ABI.
50744
50745         (_REGEX_SOURCE): New macro.
50746         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50747         defined and _GNU_SOURCE is not; this fixes a name space violation.
50748
50749         Rename the following macros to obey POSIX requirements.
50750         The old names are still visible as macros if _REGEX_SOURCE is defined.
50751         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50752         RE_BACKSLASH_ESCAPE_IN_LISTS.
50753         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50754         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50755         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50756         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50757         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50758         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50759         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50760         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50761         (REG_INTERVALS): renamed from RE_INTERVALS.
50762         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50763         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50764         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50765         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50766         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50767         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50768         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50769         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50770         RE_UNMATCHED_RIGHT_PAREN_ORD.
50771         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50772         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50773         (REG_DEBUG): renamed from RE_DEBUG.
50774         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50775         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50776         unusual, since we can't clash with the POSIX REG_ICASE.
50777         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50778         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50779         (REG_NO_SUB): renamed from RE_NO_SUB.
50780         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50781         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50782         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50783         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50784         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50785         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50786         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50787         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50788         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50789         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50790         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50791         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50792         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50793         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50794         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50795         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50796         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50797         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50798         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50799         (REG_FIXED): Renamed from REGS_FIXED.
50800         (REG_NREGS): Renamed from RE_NREGS.
50801
50802         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50803         of other REG_* macros, since POSIX says the user is allowed to
50804         #undef these macros selectively.
50805
50806         (reg_errcode_t): Update comment stating what other tables need
50807         to be consistent.
50808
50809         Rename the following enum values to obey POSIX requirements.
50810         The old names are still visible as macros.
50811         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50812         is not defined, since GNU is supposed to be a superset of POSIX as
50813         much as possible, and since we want reg_errcode_t to be a signed
50814         type for implementation consistency.
50815         (_REG_NOERROR): Renamed from REG_NOERROR.
50816         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50817         (_REG_BADPAT): Renamed from REG_BADPAT.
50818         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50819         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50820         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50821         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50822         (_REG_EBRACK): Renamed from REG_EBRACK.
50823         (_REG_EPAREN): Renamed from REG_EPAREN.
50824         (_REG_EBRACE): Renamed from REG_EBRACE.
50825         (_REG_BADBR): Renamed from REG_BADBR.
50826         (_REG_ERANGE): Renamed from REG_ERANGE.
50827         (_REG_ESPACE): Renamed from REG_ESPACE.
50828         (_REG_BADRPT): Renamed from REG_BADRPT.
50829         (_REG_EEND): Renamed from REG_EEND.
50830         (_REG_ESIZE): Renamed from REG_ESIZE.
50831         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50832         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50833         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50834         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50835         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50836
50837         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50838         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50839         changed.  But support the old name if the new one is not defined
50840         and if _REGEX_SOURCE.
50841
50842         Change the following member names in struct re_pattern_buffer.
50843         The old names are still supported if !_REGEX_SOURCE.
50844         The new names are always supported, regardless of _REGEX_SOURCE.
50845         (re_buffer): Renamed from buffer.
50846         (re_allocated): Renamed from allocated.
50847         (re_used): Renamed from used.
50848         (re_syntax): Renamed from syntax.
50849         (re_fastmap): Renamed from fastmap.
50850         (re_translate): Renamed from translate.
50851         (re_can_be_null): Renamed from can_be_null.
50852         (re_regs_allocated): Renamed from regs_allocated.
50853         (re_fastmap_accurate): Renamed from fastmap_accurate.
50854         (re_no_sub): Renamed from no_sub.
50855         (re_not_bol): Renamed from not_bol.
50856         (re_not_eol): Renamed from not_eol.
50857         (re_newline_anchor): Renamed from newline_anchor.
50858
50859         Change the following member names in struct re_registers.
50860         The old names are still supported if !_REGEX_SOURCE.
50861         The new names are always supported, regardless of _REGEX_SOURCE.
50862         (rm_num_regs): Renamed from num_regs.
50863         (rm_start): Renamed from start.
50864         (rm_end): Renamed from end.
50865
50866         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50867         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50868         Prepend __ to parameter names.
50869
50870         Undo yesterday's changes.
50871
50872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50873
50874         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50875         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50876         lib/regex.c.
50877
50878 2005-08-24  Jim Meyering  <jim@meyering.net>
50879
50880         Sync from coreutils.
50881         * m4/fcntl-safer.m4: New file.
50882
50883         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50884         and object files for this module.
50885
50886 2005-08-24  Jim Meyering  <jim@meyering.net>
50887
50888         Sync from coreutils.
50889         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50890
50891 2005-08-24  Jim Meyering  <jim@meyering.net>
50892
50893         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50894         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50895
50896 2005-08-24  Jim Meyering  <jim@meyering.net>
50897
50898         * modules/fcntl-safer: New module.
50899         * modules/fts (Depends-on): Add fcntl-safer.
50900         * MODULES.html.sh (File descriptor based Input/Output):
50901         Add fcntl-safer.
50902
50903 2005-08-24  Bruno Haible  <bruno@clisp.org>
50904
50905         Support for unit test modules.
50906         * modules/README: Mention tests modules.
50907         * modules/TEMPLATE-TESTS: New file.
50908         * gnulib-tool: New options --extract-tests-module, --with-tests and
50909         --tests-base (unused for the moment).
50910         (testsbase, inctests): New variables.
50911         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50912         (func_verify_module): Exclude TEMPLATE-TESTS.
50913         (func_verify_nontests_module, func_verify_tests_module): New functions.
50914         (func_get_dependencies): Add implicit dependency for tests modules.
50915         (func_get_tests_module): New function.
50916         (func_modules_transitive_closure): When --with-tests was specified,
50917         include the unit tests as well, unless explicitly avoided.
50918         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50919         (func_emit_tests_Makefile_am): New function.
50920         (func_create_testdir): When --with-tests was specified, emit a
50921         tests/ directory.
50922         * MODULES.html.sh (Future developments): Update.
50923
50924 2005-08-24  Bruno Haible  <bruno@clisp.org>
50925
50926         * modules/tls-tests: New file.
50927         * tests/test-tls.c: New file, from GNU gettext.
50928
50929 2005-08-24  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/lock-tests: New file.
50932         * tests/test-lock.c: New file, from GNU gettext.
50933
50934 2005-08-24  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/lock.h: Add multiple inclusion guard.
50937         * lib/tls.h: Add multiple inclusion guard.
50938
50939 2005-08-24  Bruno Haible  <bruno@clisp.org>
50940
50941         * gnulib-tool: Add support for the --aux-dir option to
50942         --create-testdir, --create-megatestdir, --test, --megatest.
50943         (func_create_testdir, func_create_megatestdir): Optionally emit a
50944         AC_CONFIG_AUX_DIR directive.
50945         (create-testdir, create-megatestdir, test, megatest): Provide a
50946         default value for $auxdir.
50947
50948 2005-08-24  Bruno Haible  <bruno@clisp.org>
50949
50950         * gnulib-tool (import): Use compound statement instead of subshell
50951         where possible.
50952
50953 2005-08-24  Bruno Haible  <bruno@clisp.org>
50954
50955         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50956
50957 2005-08-24  Bruno Haible  <bruno@clisp.org>
50958
50959         * gnulib-tool (func_version): Update.
50960
50961 2005-08-24  Bruno Haible  <bruno@clisp.org>
50962
50963         * gnulib-tool (func_import, func_create_testdir,
50964         func_create_megatestdir): Quote all autoconf macro arguments.
50965
50966 2005-08-24  Bruno Haible  <bruno@clisp.org>
50967
50968         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50969         option --force, because --force causes the aclocal.m4 of each
50970         subdirectory to be newer than the corresponding config.h.in.
50971
50972 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50975         All contents moved to gl_REGEX.
50976         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50977         assume that it does.
50978
50979 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50980
50981         * lib/regex.h (REG_NOSYS)
50982         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50983         Define, since POSIX requires it as of 2001.
50984         (_REG_ENOSYS)
50985         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50986         New private symbol, used to keep the enum signed in all cases.
50987         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50988         Youngman in
50989         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50990
50991         * lib/regex_internal.c (re_string_skip_chars, register_state):
50992         (calc_state_hash):
50993         Remove forward decls; no longer needed now that we use prototypes.
50994         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50995         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50996         (clean_state_log_if_needed): Likewise.
50997
50998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         * config/srclist.txt: Add glibc bugs 1231-1233.
51001
51002 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51003
51004         Fix problems reported by Sam Steingold in
51005         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51006         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51007         assumed that reg_errcode_t is a signed type, which is not
51008         necessarily true if _XOPEN_SOURCE is not defined.
51009         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51010         since some compilers warn about it otherwise.
51011
51012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51013
51014         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51015         (init_word_char, create_initial_state, duplicate_node_closure):
51016         (fetch_token, peek_token_bracket, build_range_exp):
51017         (build_collating_symbol): Remove forward decls; no longer needed
51018         now that we use prototypes.
51019
51020         * lib/regcomp.c:
51021         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51022         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51023         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51024         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51025         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51026         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51027         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51028         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51029         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51030         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51031         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51032         (build_charclass, build_charclass_op, fetch_number, create_tree):
51033         (create_token_tree, mark_opt_subexp, duplicate_tree):
51034         Use prototypes rather than old-style definitions.
51035
51036         * lib/regex_internal.c:
51037         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51038         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51039         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51040         (re_string_reconstruct, re_string_peek_byte_case):
51041         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51042         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51043         (re_node_set_init_copy, re_node_set_add_intersect):
51044         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51045         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51046         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51047         (re_acquire_state, re_acquire_state_context, register_state):
51048         (create_ci_newstate, create_cd_newstate, free_state):
51049         Likewise.
51050         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51051         re_search_2):
51052         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51053         (re_search_internal, prune_impossible_nodes):
51054         (acquire_init_state_context, check_matching, static):
51055         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51056         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51057         (update_regs, sift_states_backward, build_sifted_states):
51058         (clean_state_log_if_needed, merge_state_array):
51059         (update_cur_sifted_state, add_epsilon_src_nodes):
51060         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51061         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51062         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51063         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51064         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51065         (check_arrival, check_arrival_add_next_nodes):
51066         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51067         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51068         (check_node_accept_bytes, check_node_accept, extend_buffers):
51069         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51070         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51071         (sift_ctx_init):
51072         Likewise.
51073
51074         * lib/regex_internal.h:
51075         (re_string_allocate, re_string_construct, re_string_reconstruct):
51076         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51077         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51078         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51079         (re_string_context_at, re_string_peek_byte_case):
51080         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51081         is defined, since we now use prototypes always.
51082
51083         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51084         C89 or better.  All uses removed.
51085
51086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51087
51088         * config/srclist.txt: Add glibc bugs 1220-1227.
51089
51090 2005-08-20  Jim Meyering  <jim@meyering.net>
51091
51092         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51093         of unused local, dfa.
51094
51095 2005-08-20  Bruno Haible  <bruno@clisp.org>
51096
51097         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51098
51099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51102         (re_node_set_insert_last, re_dfa_add_node):
51103         Rename local variables to avoid GCC shadowing warnings.
51104
51105 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51106
51107         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51108         [defined lint]: Suppress bogus uninitialized-variable warnings.
51109
51110         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51111         and let the caller return REG_ESPACE if out of space.  This
51112         removes an uninitialied-variable warning with GCC 4.0.1, and also
51113         avoids taking the address of a local variable.  All callers
51114         changed.
51115
51116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51117
51118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51119         $LIBCSRC/posix/regexec.c.
51120         Add glibc bug 1217 for regcomp.c.
51121
51122 2005-08-19  Jim Meyering  <jim@meyering.net>
51123
51124         * lib/regexec.c (proceed_next_node): Redo local variables to
51125         avoid GCC shadowing warnings.
51126
51127 2005-08-18  Bruno Haible  <bruno@clisp.org>
51128
51129         * lib/strstr.c (strstr): Fix return value in multibyte case.
51130         * lib/strcasestr.c (strcasestr): Likewise.
51131
51132 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51133
51134         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51135
51136 2005-08-17  Jim Meyering  <jim@meyering.net>
51137
51138         Make the %s format (seconds since the epoch) work for a negative
51139         number and when used with a zero-padded field width, e.g. %015s.
51140
51141         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51142         label so that it precedes the code to set `digits'.  Otherwise,
51143         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51144         print `00-22'.  Now, it prints `-0022', as it should.
51145
51146 2005-08-17  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/strstr (Files): Add m4/mbrtowc.m4.
51149         (Depends-on): Add mbuiter.
51150
51151 2005-08-17  Bruno Haible  <bruno@clisp.org>
51152
51153         * modules/strcasestr: New file.
51154         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51155         strcasestr.
51156
51157 2005-08-17  Bruno Haible  <bruno@clisp.org>
51158
51159         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51160
51161 2005-08-17  Bruno Haible  <bruno@clisp.org>
51162
51163         * modules/mbuiter: New file.
51164         * MODULES.html.sh (Extended multibyte and wide character utilities):
51165         Add mbuiter.
51166
51167 2005-08-17  Bruno Haible  <bruno@clisp.org>
51168
51169         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51170         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51171
51172 2005-08-17  Bruno Haible  <bruno@clisp.org>
51173
51174         * m4/strcasestr.m4: New file.
51175
51176 2005-08-17  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51179         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51180
51181 2005-08-17  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/strcasestr.h: New file.
51184         * lib/strcasestr.c: New file.
51185
51186 2005-08-17  Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/strcasecmp.c: Use mbuiter.h.
51189
51190 2005-08-17  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/mbuiter.h: New file.
51193
51194 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51195
51196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51197         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51198         and gl_GETOPT are both invoked via different paths (as happens
51199         with GNU tar CVS because it uses both argp and getopt), the former
51200         wins.
51201
51202 2005-08-16  Bruno Haible  <bruno@clisp.org>
51203
51204         * modules/tls: New file.
51205         * MODULES.html.sh (Multithreading): Add tls.
51206
51207 2005-08-16  Bruno Haible  <bruno@clisp.org>
51208
51209         * modules/strnlen1: New file.
51210         * MODULES.html.sh (String handling): Add strnlen1.
51211
51212 2005-08-16  Bruno Haible  <bruno@clisp.org>
51213
51214         * modules/strcase (Files): Add m4/mbrtowc.m4.
51215         (Depends-on): Add strnlen1, mbchar.
51216
51217 2005-08-16  Bruno Haible  <bruno@clisp.org>
51218
51219         * modules/mbiter: New file.
51220         * MODULES.html.sh (Extended multibyte and wide character utilities):
51221         Add mbiter.
51222
51223 2005-08-16  Bruno Haible  <bruno@clisp.org>
51224
51225         * modules/mbfile: New file.
51226         * MODULES.html.sh (Extended multibyte and wide character utilities):
51227         Add mbfile.
51228
51229 2005-08-16  Bruno Haible  <bruno@clisp.org>
51230
51231         * modules/mbchar: New file.
51232         * MODULES.html.sh (Extended multibyte and wide character utilities):
51233         New section.
51234
51235 2005-08-16  Bruno Haible  <bruno@clisp.org>
51236
51237         * m4/tls.m4: New file, from GNU gettext.
51238
51239 2005-08-16  Bruno Haible  <bruno@clisp.org>
51240
51241         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51242         always.
51243         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51244
51245 2005-08-16  Bruno Haible  <bruno@clisp.org>
51246
51247         * m4/mbiter.m4: New file.
51248
51249 2005-08-16  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/mbfile.m4: New file.
51252
51253 2005-08-16  Bruno Haible  <bruno@clisp.org>
51254
51255         * m4/mbchar.m4: New file.
51256
51257 2005-08-16  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/tls.h: New file, from GNU gettext.
51260         * lib/tls.c: New file, from GNU gettext.
51261
51262 2005-08-16  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/strnlen1.h: New file.
51265         * lib/strnlen1.c: New file.
51266
51267 2005-08-16  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51270         (mbi_init): Update.
51271         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51272         NUL byte, not after it.
51273
51274 2005-08-16  Bruno Haible  <bruno@clisp.org>
51275
51276         * lib/strcase.h (strcasecmp): Add note in comments.
51277         * lib/strncasecmp.c: Use code from strcasecmp.c.
51278         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51279         (strcasecmp): Work correctly in multibyte locales.
51280
51281 2005-08-16  Bruno Haible  <bruno@clisp.org>
51282
51283         * lib/mbiter.h: New file.
51284
51285 2005-08-16  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/mbfile.h: New file.
51288
51289 2005-08-16  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/mbchar.h: New file.
51292         * lib/mbchar.c: New file.
51293
51294 2005-08-16  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51297         the valid ones. Makes the comparison operations transitive:
51298         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51299         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51300
51301 2005-08-15  Simon Josefsson  <jas@extundo.com>
51302
51303         * modules/ssize_t (License): Change to 'unlimited'.
51304
51305         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51306
51307 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51310         Add comments for each pending glibc patch.
51311
51312 2005-08-15  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51315         __cplusplus is defined.
51316
51317 2005-08-14  Jim Meyering  <jim@meyering.net>
51318
51319         Sync from coreutils.
51320
51321         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51322         Use the hash-table-based cycle-detection code not just when
51323         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51324         Reported by James Youngman in
51325         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51326         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51327         FTS_TIGHT_CYCLE_CHECK.
51328         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51329         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51330         once again.
51331         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51332         * lib/fts.c (fd_safer): Remove decl.
51333         Include fcntl--.h rather than unistd-safer.h
51334         (fts_safe_changedir): Don't call fd_safer; no longer needed
51335         now that we include fcntl--.h.
51336
51337 2005-08-12  Simon Josefsson  <jas@extundo.com>
51338
51339         * modules/getndelim2: Use ssize_t module.
51340         * modules/getnline: Likewise.
51341         * modules/safe-read: Likewise.
51342         * modules/xreadlink: Likewise.
51343
51344         * modules/ssize_t: New file.
51345
51346 2005-08-12  Simon Josefsson  <jas@extundo.com>
51347
51348         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51349
51350 2005-08-12  Simon Josefsson  <jas@extundo.com>
51351
51352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51353         ssize_t.
51354
51355 2005-08-12  Simon Josefsson  <jas@extundo.com>
51356
51357         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51358         readline, getdelim and check_version.
51359         (Support for systems lacking ISO C 99: Sizes of integer types):
51360         Add size_max.
51361
51362 2005-08-12  Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51365
51366 2005-08-11  Simon Josefsson  <jas@extundo.com>
51367
51368         * modules/readline: New file.
51369
51370         * modules/strnlen (Files): Add strnlen.h.
51371
51372 2005-08-11  Simon Josefsson  <jas@extundo.com>
51373
51374         * m4/readline.m4: New file.
51375
51376 2005-08-11  Simon Josefsson  <jas@extundo.com>
51377
51378         * lib/readline.h, readline.c: New file.
51379
51380 2005-08-11  Simon Josefsson  <jas@extundo.com>
51381
51382         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51383         gl_AVOID.
51384
51385 2005-08-11  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51388
51389 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51390
51391         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51392
51393 2005-08-10  Simon Josefsson  <jas@extundo.com>
51394
51395         * tests/test-iconvme.c: New file.
51396
51397 2005-08-10  Simon Josefsson  <jas@extundo.com>
51398
51399         * m4/strnlen.m4: New file.
51400
51401         * m4/strndup.m4: Don't check for strnlen declaration, done in
51402         strnlen.m4.
51403
51404 2005-08-10  Simon Josefsson  <jas@extundo.com>
51405
51406         * lib/strndup.c: Use strnlen.h.
51407
51408         * lib/strnlen.h: New file.
51409
51410 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51411
51412         * README: Typos.
51413
51414 2005-08-02  Simon Josefsson  <jas@extundo.com>
51415
51416         * modules/readline: New file.
51417
51418 2005-08-02  Simon Josefsson  <jas@extundo.com>
51419
51420         * modules/getdelim: New file.
51421
51422         * modules/getline: Rewrite, don't use getndelim2.
51423
51424 2005-08-02  Simon Josefsson  <jas@extundo.com>
51425
51426         * m4/getline.m4: Separate out getdelim stuff into separate module.
51427
51428         * m4/getdelim.m4: New file.
51429
51430 2005-08-02  Simon Josefsson  <jas@extundo.com>
51431
51432         * lib/getline.h, getline.c: Rewrite.
51433
51434         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51435
51436 2005-07-31  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/lock.h (gl_lock_initializer): New macro.
51439         (gl_lock_define_initialized): Use it.
51440         (gl_rwlock_initializer): New macro.
51441         (gl_rwlock_define_initialized): Use it.
51442         (gl_recursive_lock_initializer): New macro.
51443         (gl_recursive_lock_define_initialized): Use it.
51444
51445 2005-07-30  Karl Berry  <karl@gnu.org>
51446
51447         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51448         Report from Ben Pfaff, regarding getopt.
51449
51450 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51451
51452         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51453         normal way.
51454         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51455         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51456         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51457         (gl_GETOPT): Use the new macros.  Most of the implementation
51458         is moved to the new macros.  This is for programs like Emacs
51459         that don't want all the functionality of gl_GETOPT.
51460
51461 2005-07-26  Bruno Haible  <bruno@clisp.org>
51462
51463         * m4/lock.m4: Update from GNU gettext.
51464
51465 2005-07-26  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/lock.h: Update from GNU gettext.
51468         * lib/lock.c: Update from GNU gettext.
51469
51470 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51471
51472         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51473         obsolescent AC_TRY_RUN.  Include the default includes files, for
51474         'exit'.
51475
51476 2005-07-24  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/visibility: New file.
51479         * MODULES.html.sh (Misc): Add visibility.
51480
51481 2005-07-24  Bruno Haible  <bruno@clisp.org>
51482
51483         * m4/visibility.m4: New file.
51484
51485 2005-07-24  Bruno Haible  <bruno@clisp.org>
51486
51487         * doc/visibility.texi: New file.
51488
51489 2005-07-22  Bruno Haible  <bruno@clisp.org>
51490
51491         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51492         $(ALLOCA_H), redundant through BUILT_SOURCES.
51493         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51494         redundant through BUILT_SOURCES.
51495         * modules/byteswap (Makefile.am): Remove explicit dependency on
51496         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51497         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51498         $(FNMATCH_H), redundant through BUILT_SOURCES.
51499         * modules/getopt (Makefile.am): Remove explicit dependency on
51500         $(GETOPT_H), redundant through BUILT_SOURCES.
51501         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51502         redundant through BUILT_SOURCES.
51503         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51504         redundant through BUILT_SOURCES.
51505         * modules/stdbool (Makefile.am): Remove explicit dependency on
51506         $(STDBOOL_H), redundant through BUILT_SOURCES.
51507         * modules/stdint (Makefile.am): Remove explicit dependency on
51508         $(STDINT_H), redundant through BUILT_SOURCES.
51509         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51510         Remove explicit dependency on $(SYSEXITS_H).
51511         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51512
51513 2005-07-18  Simon Josefsson  <jas@extundo.com>
51514
51515         * lib/check-version.c (check_version): Accept identical versions too.
51516
51517 2005-07-18  Bruno Haible  <bruno@clisp.org>
51518
51519         * modules/lock: New file.
51520         * MODULES.html.sh (Multithreading): New section.
51521
51522 2005-07-18  Bruno Haible  <bruno@clisp.org>
51523
51524         * m4/lock.m4: New file, from GNU gettext.
51525
51526 2005-07-18  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/lock.h: New file, from GNU gettext.
51529         * lib/lock.c: New file, from GNU gettext.
51530
51531 2005-07-18  Bruno Haible  <bruno@clisp.org>
51532
51533         * lib/lock.h (gl_once_t): New type.
51534         (gl_once_define, gl_once): New macros.
51535         * lib/lock.c (fresh_once): New variable.
51536         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51537         functions.
51538
51539 2005-07-16  Simon Josefsson  <jas@extundo.com>
51540
51541         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51542         workaround, suggested by Bruno.
51543
51544 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51545
51546         * modules/xalloc (Depends-on): Add xalloc-die.
51547         * modules/xvasprintf (Depends-on): Add xalloc-die.
51548
51549 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51550
51551         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51552         with a minor change.
51553
51554 2005-07-15  Bruno Haible  <bruno@clisp.org>
51555
51556         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51557         When using lib/poll.c, define poll as rpl_poll.
51558
51559 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51560
51561         * modules/argp (Depends-on): Remove unlocked-io.
51562
51563 2005-07-14  Derek Price  <derek@ximbiot.com>
51564
51565         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51566         for glob symlink bug.
51567
51568 2005-07-14  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51571         Instead, test for *_unlocked function declarations directly.
51572
51573 2005-07-11  Simon Josefsson  <jas@extundo.com>
51574
51575         * modules/size_max: New file.
51576
51577         * modules/xsize: Depend on size_max module for size_max.m4.
51578
51579 2005-07-11  Simon Josefsson  <jas@extundo.com>
51580
51581         * lib/size_max.h: New file.
51582
51583 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51586         copyright symbol and the year.
51587         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51588         (version_etc_va): Use parameterized copyright notice.
51589         Reword to conform to the current GNU coding standards.
51590
51591 2005-07-11  Karl Berry  <karl@gnu.org>
51592
51593         * doc/gnulib.texi (Quoting): new node.
51594         (Initial import): more info, from Patrice.
51595
51596 2005-07-11  Bruno Haible  <bruno@clisp.org>
51597
51598         * gnulib-tool (func_usage): Document option --avoid.
51599         (Command line options): Handle --avoid.
51600         (func_acceptable): New function.
51601         (func_modules_transitive_closure): Use it.
51602
51603 2005-07-11  Bruno Haible  <bruno@clisp.org>
51604
51605         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51606         Reported by Jim Meyering.
51607
51608 2005-07-10  Bruno Haible  <bruno@clisp.org>
51609
51610         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51611         Needed when size_t is smaller than 'unsigned int'.
51612         Reported by Paul Eggert.
51613
51614 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51615
51616         * modules/argp (Depends-on): Add unlocked-io
51617
51618 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51619
51620         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51621         block of defines.
51622
51623 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51626         fix now.
51627
51628 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51629         and Paul Eggert  <eggert@cs.ucla.edu>
51630
51631         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51632         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51633
51634 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51635
51636         * modules/regex (Files): Add lib/regex_internal.c,
51637         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51638         (Depends-on): Add extensions.
51639         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51640
51641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51642
51643         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51644         pathconf.
51645         * m4/same.m4 (gl_SAME): Likewise.
51646         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51647
51648         * m4/regex.m4: Adjust to new libc regex implementation.
51649         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51650         all the .c and .h parts of (the new) regex.
51651         Quote the m4 stuff better.
51652         Check for RE_ICASE bug of old gnulib.
51653         Check for REG_STARTEND of recent libc.
51654         Rename local variables from jm_* to gl_*.
51655         Quote operand of "test -f".
51656         Say "recent enough" version of libc, not "version 2".
51657         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51658         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51659         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51660         Remove check for btowc, isascii.
51661         Require AM_LANGINFO_CODESET.
51662
51663 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         * lib/regex.c, regex.h: Sync from libc.
51666         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51667         * lib/regexec.c:
51668         New files, synced from libc, except that regex_internal.h
51669         currently has a small porting fix.
51670
51671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51672
51673         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51674         regex_internal.c, regexec.c.
51675         Add regex_internal.h too, but as a comment, since the libc version
51676         is currently broken in gnulib mode.
51677
51678 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51679
51680         Support programs like Emacs that use gnulib but not gettext.
51681         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51682         * modules/gettext-h: New file.
51683         * modules/gettext (Files): Remove lib/gettext.h.
51684         (Depends-on): Add gettext-h.
51685         (Makefile.am): Remove lib_SOURCES.
51686         * modules/argmatch, modules/c-stack, modules/closeout:
51687         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51688         * modules/execute, modules/file-type, modules/getaddrinfo:
51689         * modules/getopt, modules/human, modules/javacomp:
51690         * modules/javaexec, modules/mkdir-p, modules/obstack:
51691         * modules/openat, modules/pagealign_alloc, modules/pipe:
51692         * modules/quotearg, modules/regex, modules/rpmatch:
51693         * modules/unicodeio, modules/userspec, modules/version-etc:
51694         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51695         * modules/xsetenv:
51696         Depend on gettext-h, not gettext.
51697
51698 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51699
51700         * gnulib-tool (func_import): Add support for 'public domain' license.
51701         * modules/alloca, modules/atexit, modules/memmove:
51702         Now public domain, not GPL.
51703         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51704         * modules/realloc, modules/strerror, modules/strtod:
51705         Now LGPL, not GPL.
51706
51707 2005-07-05  Bruno Haible  <bruno@clisp.org>
51708
51709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51710         autoconf CVS. Needed for mingw.
51711
51712 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51713
51714         Remove the dependency of the strftime module on the tzset module.
51715         * modules/strftime (Depends-on): Remove dependency on tzset.
51716
51717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51718
51719         Remove the dependency of the strftime module on the tzset module.
51720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51721         gl_FUNC_TZSET_CLOBBER.
51722
51723 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51724
51725         Remove the dependency of the strftime module on the tzset module.
51726         * lib/strftime.c (my_strftime)
51727         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51728         Copy the input structure, to work around some of the bug with
51729         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51730         Solaris releases, you should also use the tzset module, but we won't
51731         require it as a dependency any more since we don't want LGPLed code
51732         to depend on GPLed code.
51733
51734 2005-07-02  Jim Meyering  <jim@meyering.net>
51735
51736         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51737         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51738         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51739         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51740
51741 2005-07-02  Jim Meyering  <jim@meyering.net>
51742
51743         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51744
51745 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51748         declares only 'struct timespec;' (!).
51749
51750 2005-07-01  Jim Meyering  <jim@meyering.net>
51751
51752         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51753         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51754         * lib/save-cwd.c, tempname.c:
51755         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51756         and don't include <sys/file.h>).
51757
51758 2005-06-29  Jim Meyering  <jim@meyering.net>
51759
51760         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51761         type name.  Use the variable name instead.
51762         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51763         Likewise.
51764
51765 2005-06-28  Simon Josefsson  <jas@extundo.com>
51766
51767         * modules/check-version (Files): Add check-version.m4.
51768
51769 2005-06-28  Simon Josefsson  <jas@extundo.com>
51770
51771         * m4/check-version.m4: New file, suggested by Jim Meyering
51772         <jim@meyering.net>.
51773
51774 2005-06-28  Simon Josefsson  <jas@extundo.com>
51775
51776         * lib/check-version.h, lib/check-version.c: New files.
51777
51778 2005-06-28  Simon Josefsson  <jas@extundo.com>
51779
51780         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51781         collision with global variable.  Better indentation.  Don't
51782         increment buffer pointer beyond buffer end.  Based on comments
51783         from Paul Eggert <eggert@cs.ucla.edu>.
51784
51785         * lib/base64.h: Indent.
51786
51787 2005-06-28  Simon Josefsson  <jas@extundo.com>
51788
51789         * doc/gnulib.texi (Library version handling): New section.
51790
51791 2005-06-28  Jim Meyering  <jim@meyering.net>
51792
51793         * check-module (find_included_lib_files): Hard-code another
51794         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51795         but modules/fts-lgpl (correctly) does not list those files.
51796
51797         * modules/canonicalize (Files): Add lib/pathmax.h.
51798
51799 2005-06-25  Simon Josefsson  <jas@extundo.com>
51800
51801         * modules/check-version: New file.
51802
51803 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51806         initializer of struct addrinfo, as an indication that we don't
51807         care how many members the structure has.
51808
51809 2005-06-24  Derek Price  <derek@ximbiot.com>
51810         and Bruno Haible  <bruno@clisp.org>
51811
51812         Remove stat module & update lstat.
51813         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51815         * m4/stat.m4: Remove this file.
51816
51817 2005-06-24  Derek Price  <derek@ximbiot.com>
51818         and Bruno Haible  <bruno@clisp.org>
51819
51820         Remove stat module & update lstat.
51821         * lib/stat.c: Remove this file...
51822         (slash_aware_lstat): ...moving this content and its support...
51823         * lib/lstat.c (rpl_lstat): ...into here.
51824         * lib/lstat.h: New file.
51825
51826 2005-06-24  Derek Price  <derek@ximbiot.com>
51827         and Bruno Haible  <bruno@clisp.org>
51828
51829         Remove stat module & update lstat.
51830         * config/srclist.txt (libc sources): Remove stat.
51831
51832 2005-06-24  Derek Price  <derek@ximbiot.com>
51833         and Bruno Haible  <bruno@clisp.org>
51834
51835         Remove stat module & update lstat.
51836         * MODULES.html.sh (stat): Remove.
51837         * MODULES.html: Regenerated.
51838         * modules/lstat (Description): Correct function name.
51839         (Files): Add "lstat.h".
51840         (Depends-on): Remove stat, add xalloc, stat-macros.
51841         * modules/stat: Remove this file.
51842         (Include): Add "lstat.h", remove <sys/stat.h>.
51843
51844 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51847         (ranged_convert): Don't save conversion in a temporary struct.
51848         This causes a warning with GCC 4.0.0, and anyway in the typical
51849         case it's not worth the extra 100 bytes or so of code.
51850         (ranged_convert, __mktime_internal): When calling a function via a
51851         pointer P, use P () rather than (*P) (), as we now assume C89 or
51852         better.
51853
51854 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51855
51856         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51857         "who -r" failed to give output.  Problem reported by Tim Waugh.
51858
51859         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51860         (xcalloc): Use it to avoid needless tests.
51861         Problem reported by Jim Meyering.
51862
51863 2005-06-20  Derek Price  <derek@ximbiot.com>
51864
51865         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51866         unnecessary for Autoconfs > 2.59c.
51867
51868 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51869
51870         * lib/argp.h (__option_is_short): Check upper limit of
51871         __key. Isprint() requires its argument to have the value
51872         of an unsigned char or EOF.
51873
51874 2005-06-16  Jim Meyering  <jim@meyering.net>
51875
51876         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51877         when either N or S is zero.
51878
51879 2005-06-16  Derek Price  <derek@ximbiot.com>
51880
51881         * m4/bison.m4: Declare YACC & YFLAGS precious.
51882
51883 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51884
51885         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51886         multibyte string or pattern, fall back on unibyte matching.
51887         Problem reported by James Youngman.
51888
51889 2005-06-08  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/csharpcomp: New file.
51892         * MODULES.html.sh (C#): Add csharpcomp.
51893
51894 2005-06-08  Bruno Haible  <bruno@clisp.org>
51895
51896         * m4/csharpcomp.m4: New file, from GNU gettext.
51897
51898 2005-06-08  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/csharpcomp.h: New file, from GNU gettext.
51901         * lib/csharpcomp.c: New file, from GNU gettext.
51902         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51903
51904 2005-06-08  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51907         warning on mingw.
51908
51909 2005-06-07  Derek Price  <derek@ximbiot.com>
51910
51911         Sync from CVS.
51912         * lib/glob_.h: Indent nested #ifdef.
51913
51914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51915
51916         Sync from coreutils.
51917         Use "file name" when talking about file names, instead of "filename"
51918         or "path", as per the GNU coding standards.
51919         * lib/mkdir-p.c: Renamed from makepath.c.
51920         (make_dir_parents): Renamed from make_path.  All callers changed.
51921         * lib/mkdir-p.h: Likewise.  All includers changed.
51922         * lib/filenamecat.c: Renamed from path-concat.c.
51923         (file_name_concat): Renamed from path_concat.  All callers changed.
51924         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51925         * lib/filenamecat.h: Likewise.  All includers changed.
51926         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51927         in comments or local variable names.
51928         * lib/basename.c: Likewise.
51929         * lib/canonicalize.c, canonicalize.h: Likewise.
51930         * lib/dirname.c, dirname.h: Likewise.
51931         * lib/euidaccess.c: Likewise.
51932         * lib/exclude.c: Likewise
51933         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51934         * lib/fsusage.c, fsuage.h: Likewise.
51935         * lib/fts.c, fts_.h: Likewise.
51936         * lib/getcwd.c: Likewise.
51937         * lib/getloadavg.c: Likewise.
51938         * lib/mkstemp.c: Likewise.
51939         * lib/mountlist.c, mountlist.h: Likewise.
51940         * lib/openat.c, openat.h: Likewise.
51941         * lib/readlink-stub.c: Likewise.
51942         * lib/readutmp.c, readutmp.h: Likewise.
51943         * lib/rename.c: Likewise.
51944         * lib/rmdir.c: Likewise.
51945         * lib/same.c: Likewise.
51946         * lib/savedir.c: Likewise.
51947         * lib/stripslash.c: Likewise.
51948         * lib/tempname.c: Likewise.
51949         * lib/xreadlink.c: Likewise.
51950         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51951         All uses changed.
51952         * lib/exclude.h: Likewise.
51953
51954         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51955         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51956         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51958         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51959         files have been getting away with it for years (MORE/BSD 4.3
51960         is extinct now).
51961         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51963
51964         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51965         Define to 256, not 255, as per modern POSIX.
51966
51967 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         Sync from coreutils.
51970         Use "file name" when talking about file names, instead of "filename"
51971         or "path", as per the GNU coding standards.
51972         * MODULES.html.sh: mkdir-p renamed from makepath.
51973         filenamecat renamed from path-concat.
51974         * modules/filenamecat: Renamed from modules/path-concat.
51975         (Files): filenamecat.h and filenamecat.c renamed from
51976         path-concat.h and path-concat.c.
51977         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51978         (Include): filenamecat.h, not path-concat.h.
51979         * modules/mkdir-p: Renamed from modules/makepath.
51980         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51981         makepath.c.
51982         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51983         (Include): mkdir-p.h, not makepath.h.
51984
51985 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51986
51987         Sync from coreutils.
51988         * m4/mkdir-p.m4: Renamed from makepath.m4.
51989         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51990         Rename files from makepath.c to mkdir-p.c, and from
51991         makepath.h to mkdir-p.h.
51992         * m4/filenamecat.m4: Renamed from path-concat.m4.
51993         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51994         Rename files from path-concat.c to filenamecat.c,
51995         and from path-concat.h to filenamecat.h.
51996         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51997         "file name" in local variables or comments.
51998         * m4/rename.m4: Likewise.
51999
52000 2005-06-01  Bruno Haible  <bruno@clisp.org>
52001
52002         * modules/csharpexec: New file.
52003         * MODULES.html.sh (C#): New section.
52004
52005 2005-06-01  Bruno Haible  <bruno@clisp.org>
52006
52007         * m4/csharp.m4: New file, from GNU gettext.
52008         * m4/csharpexec.m4: New file, from GNU gettext.
52009
52010 2005-06-01  Bruno Haible  <bruno@clisp.org>
52011
52012         * lib/csharpexec.h: New file, from GNU gettext.
52013         * lib/csharpexec.c: New file, from GNU gettext.
52014         * lib/csharpexec.sh.in: New file, from GNU gettext.
52015
52016 2005-05-31  Derek Price  <derek@ximbiot.com>
52017             Paul Eggert  <eggert@cs.ucla.edu>
52018
52019         Sync from cvs.
52020         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52021
52022 2005-05-31  Derek Price  <derek@ximbiot.com>
52023             Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         Sync from cvs.
52026         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52027
52028 2005-05-29  Derek Price  <derek@ximbiot.com>
52029
52030         * config/srclist.txt (glob_.h, glob.c): Add these files.
52031
52032 2005-05-29  Derek Price  <derek@ximbiot.com>
52033
52034         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52035         * modules/glob: New file.
52036         * modules/getlogin_r: Add link to POSIX spec in description.
52037
52038 2005-05-29  Derek Price  <derek@ximbiot.com>
52039             Paul Eggert  <eggert@cs.ucla.edu>
52040
52041         * m4/glob.m4: New file.
52042
52043 2005-05-29  Derek Price  <derek@ximbiot.com>
52044             Paul Eggert  <eggert@cs.ucla.edu>
52045
52046         * lib/glob_.h, lib/glob.c: New files.
52047
52048 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52049
52050         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52051         * modules/fts-lgpl (Depends-on): Remove gettext.
52052
52053 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52054
52055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52056         and don't require gt_INTTYPES_PRI.
52057
52058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52061
52062         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52063         the configuration hassle isn't worth it.
52064         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52065         (LONGEST_MODIFIER, PRIuMAX): Remove.
52066
52067 2005-05-27  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52070
52071 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52072
52073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52074         _POSIX_PTHREAD_SEMANTICS for Solaris.
52075
52076 2005-05-25  Derek Price  <derek@ximbiot.com>
52077
52078         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52079
52080 2005-05-25  Derek Price  <derek@ximbiot.com>
52081             Paul Eggert  <eggert@cs.ucla.edu>
52082
52083         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52084         * lib/getlogin_r.c, getlogin_r.h: New files.
52085
52086 2005-05-25  Bruno Haible  <bruno@clisp.org>
52087             Derek Price  <derek@ximbiot.com>
52088
52089         * lib/getlogin_r.h: Simplify API documentation.
52090
52091 2005-05-23  Derek Price  <derek@ximbiot.com>
52092
52093         * modules/minmax (Files): Add m4/minmax.m4.
52094         (configure.ac): Add gl_MINMAX.
52095
52096 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52097
52098         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52099         so that unistd-safer.h (GPL'ed code) need not be included.
52100
52101 2005-05-22  Bruno Haible  <bruno@clisp.org>
52102
52103         * m4/minmax.m4: New file.
52104         Based on a patch by Derek Price <derek@ximbiot.com>.
52105
52106 2005-05-22  Bruno Haible  <bruno@clisp.org>
52107
52108         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52109         (INT64_MIN): Fix definition.
52110         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52111
52112         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52113         NEED_SIGNED_INT_TYPES.
52114
52115         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52116         HAVE_SYSTEM_INTTYPES.
52117
52118 2005-05-22  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52121         Also include <sys/param.h> if it defines MIN, MAX.
52122         Based on a patch by Derek Price <derek@ximbiot.com>.
52123
52124 2005-05-21  Jim Meyering  <jim@meyering.net>
52125
52126         * modules/fts (Files): Add m4/inttypes-pri.m4.
52127         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52128
52129 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         New fts module.
52132         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52133         (setup_dir, free_dir): New functions.
52134         (enter_dir, leave_dir): Define trivial
52135         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52136         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52137         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52138         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52139         Move to fts-cycle.c.
52140         (fts_open): Use setup_dir.
52141         (fts_close): Use free_dir.
52142         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52143         This adds a label and some gotos, but the alternatives were messier.
52144         Check for memory allocation failure when entering a dir.
52145         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52146         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52147         (FTS): New member fts_cycle, that is a union that contains the
52148         old active_dir_ht and cycle_state.  All uses changed to mention
52149         fts_cycle.ht and fts_cycle.state.
52150         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52151         fts.c, with the following changes:
52152         (setup_dir, free_dir): New functions.
52153         (enter_dir): Now returns bool.  Return true if successful, false
52154         if memory exhausted.  All callers changed.
52155         Do not bother partly cleaning up on
52156         memory allocation failure; that is free_dir's job.
52157         However, free ad if hash_insert fails, to avoid memory leak.
52158         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52159         fts->fts_options to see which union member to use.
52160
52161 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52162
52163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52164         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52165
52166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52167
52168         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52169
52170 2005-05-20  Jim Meyering  <jim@meyering.net>
52171
52172         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52173         Now a macro, to pacify GCC.
52174
52175 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52176
52177         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52178         of -1.
52179
52180 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52181
52182         * lib/chown.c (rpl_chown): Return -1 on failure.
52183
52184 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52185
52186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52187         Don't check for stddef.h.
52188         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52189         don't use its results.
52190         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52191         since we include them unconditionally.  Don't require
52192         AM_STDBOOL_H, since stdbool is a prerequisite.
52193         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52194         since we assume C89 or better.
52195         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52196         as we don't use their results.
52197         Don't check for fchdir, memmove, memset, strrchr, as we use
52198         them unconditionally.
52199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52200         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52201
52202 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52205         Include <stddef.h> unconditionally, since we assume C89 now.
52206         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52207         * lib/fts.c: Include fts_.h first, to check interface.
52208         Do not include intprops.h; no longer needed.
52209         Include cycle-check.h and hash.h, since fts_.h no longer does.
52210         Remove unnecessary casts of closedir to void.
52211         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52212         decide whether to decrement nlinks.
52213         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52214         (FTS): Use struct hash_table * instead of Hash_table, so that
52215         we no longer need to include hash.h here.
52216
52217 2005-05-18  Jim Meyering  <jim@meyering.net>
52218
52219         * modules/dirfd (License): Change to LGPL.  Most of the code
52220         is already in the public domain.
52221
52222 2005-05-18  Jim Meyering  <jim@meyering.net>
52223
52224         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52225         Reported by Yoann Vandoorselaere.
52226
52227 2005-05-17  Jim Meyering  <jim@meyering.net>
52228
52229         * m4/fts.m4: New file, from coreutils.
52230
52231 2005-05-17  Jim Meyering  <jim@meyering.net>
52232
52233         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52234
52235 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52236
52237         Sync from coreutils.
52238         * m4/unlinkdir.m4: New file.
52239
52240 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52241
52242         Sync from coreutils.
52243         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52244         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52245         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52246         White space changes only.
52247         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52248         special.
52249         * lib/yesno.c: Include getline.h, not ctype.h.
52250         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52251         Use getline to remove arbitrary restriction on response length.
52252
52253 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         * config/srclist-update: Spell out "Street" in FSF postal
52256         mail address; this is the style the FSF seems to prefer.
52257
52258         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52259         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52260         this updates FSF postal mail address.
52261
52262         Sync from coreutils.
52263         * modules/unlinkdir: New file.
52264         * modules/yesno (Depends-on): Add getline.
52265         * MODULES.html.sh (File system functions): Add unlinkdir.
52266
52267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52268
52269         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52270         lib/strsep.h:
52271         Change the initial comment to refer to GPL, not LGPL.
52272         gnulib-tool will change it to LGPL as needed.
52273
52274         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52275         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52276         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52277         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52278         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52279         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52280         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52281         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52282         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52283         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52284         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52285         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52286         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52287         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52288         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52289         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52290         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52291         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52292         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52293         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52294         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52295         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52296         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52297         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52298         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52299         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52300         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52301         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52302         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52303         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52304         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52305         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52306         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52307         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52308         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52309         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52310         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52311         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52312         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52313         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52314         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52315         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52316         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52317         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52318         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52319         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52320         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52321         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52322         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52323         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52324         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52325         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52326         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52327         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52328         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52329         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52330         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52331         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52332         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52333         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52334         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52335         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52336         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52337         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52338         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52339         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52340         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52341         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52342         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52343         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52344         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52345         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52346         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52347         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52348         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52349         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52350         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52351         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52352         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52353         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52354         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52355         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52356         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52357         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52358         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52359         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52360         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52361         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52362         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52363         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52364         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52365         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52366         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52367         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52368         lib/yesno.c, lib/yesno.h:
52369         Update FSF postal mail address.
52370
52371 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52372
52373         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52374         tests/test-memmem.c, tests/test-stpncpy.c:
52375         Update FSF postal mail address.
52376
52377 2005-05-13  Bruno Haible  <bruno@clisp.org>
52378
52379         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52380         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52381         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52382         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52383         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52384         Add support for 64-bit integers in the MSVC compiler.
52385
52386 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52387
52388         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52389
52390 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52391
52392         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52393
52394 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * doc/getdate.texi (General date syntax): Don't say that date
52397         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52398         Problem reported by Nic Ferrier.
52399
52400 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52401
52402         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52403         specified in ai_socktype. Fix invalid ai_protocol
52404         check. ai_protocol is usually set to 0 or depending on
52405         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52406         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52407         ai_socktype / ai_protocol in the returned addrinfo structure.
52408
52409 2005-05-10  Simon Josefsson  <jas@extundo.com>
52410
52411         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52412         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52413
52414 2005-05-10  Karl Berry  <karl@gnu.org>
52415
52416         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52417         (from http://www.gnu.org/licenses).
52418         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52419         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52420         fdl.texi suffices.
52421
52422 2005-05-10  Karl Berry  <karl@gnu.org>
52423
52424         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52425         (COPYING.DOC): remove.
52426
52427         * config/srclist-update: new FSF address.
52428
52429 2005-05-10  Derek Price  <derek@ximbiot.com>
52430
52431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52432         possible.
52433
52434 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52435             Bruno Haible  <bruno@clisp.org>
52436
52437         * modules/inet_ntop: New file.
52438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52439         inet_ntop.
52440
52441 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52442             Bruno Haible  <bruno@clisp.org>
52443
52444         * m4/inet_ntop.m4: New file.
52445
52446 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52447             Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/inet_ntop.h: New file.
52450         * lib/inet_ntop.c: New file, from glibc with modifications.
52451
52452 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * modules/time_r (License): Change to LGPL.
52455         * modules/extensions (License): Change to LGPL.  Actually,
52456         the license is more permissive than that, but currently gnulib-tool
52457         doesn't know how to handle more-permissive licenses.
52458
52459         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52460         Problem reported by Dave Love.
52461
52462 2005-05-08  Jim Meyering  <jim@meyering.net>
52463
52464         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52465         blank.
52466
52467 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52468
52469         * modules/argmatch (Depends-on): Add stdbool.
52470         * modules/backupfile (Depends-on): Likewise.
52471         * modules/chdir-long (Depends-on): Likewise.
52472         * modules/closeout (Depends-on): Likewise.
52473         * modules/cycle-check (Depends-on): Likewise.
52474         * modules/dirname (Depends-on): Likewise.
52475         * modules/fnmatch (Depends-on): Likewise.
52476         * modules/fsusage (Depends-on): Likewise.
52477         * modules/fwriteerror (Depends-on): Likewise.
52478         * modules/getcwd (Depends-on): Likewise.
52479         * modules/getloadavg (Depends-on): Likewise.
52480         * modules/hard-locale (Depends-on): Likewise.
52481         * modules/makepath (Depends-on): Likewise.
52482         * modules/mountlist (Depends-on): Likewise.
52483         * modules/nanosleep (Depends-on): Likewise.
52484         * modules/posixtm (Depends-on): Likewise.
52485         * modules/quotearg (Depends-on): Likewise.
52486         * modules/readtokens (Depends-on): Likewise.
52487         * modules/readtokens0 (Depends-on): Likewise.
52488         * modules/readutmp (Depends-on): Likewise.
52489         * modules/save-cwd (Depends-on): Likewise.
52490         * modules/strftime (Depends-on): Likewise.
52491         * modules/userspec (Depends-on): Likewise.
52492         * modules/utimecmp (Depends-on): Likewise.
52493         * modules/xgetcwd (Depends-on): Likewise.
52494         * modules/xnanosleep (Depends-on): Likewise.
52495         * modules/xstrtod (Depends-on): Likewise.
52496         * modules/yesno (Depends-on): Likewise.
52497
52498 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52499
52500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52501         needless checks.
52502
52503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52504
52505         Merge from coreutils.  Among other things,
52506         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52507         * lib/fd-safer.c: New file.
52508         * lib/fcntl-safer.h, open-safer.c: Remove.
52509         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52510         * lib/dup-safer.c: Include unistd-safer.h first.
52511         Don't include errno.h.
52512         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52513         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52514         * lib/file-type.c: Rely on file-type.h change.
52515         * lib/getloadavg.c: Include unistd-safer.h.
52516         (getloadavg): Use safer open.
52517         * lib/getusershell.c: Include "stdio-safer.h".
52518         (getusershell): Use safer fopen.
52519         * lib/long-options.c (long_options): Use NULL rather than 0.
52520         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52521         'free'.
52522         * lib/modechange.c: Likewise.
52523         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52524         (MODE_DONE): New constant.
52525         (struct mode_change): Remove 'next' member.
52526         (make_node_op_equals): New function; like the old one of the
52527         same name, except it allocates an array.
52528         (mode_compile, mode_create_from_ref): Use it.
52529         (mode_compile): Allocate result as an array, not a linked list.
52530         Parse octal string ourself, so that we catch mistakes like "+0".
52531         (mode_adjust): Arg is an array, not a linked list.
52532         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52533         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52534         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52535         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52536         Remove.  This is now stat-macros.h's job.
52537         (talloc): Remove.  All callers replaced by xalloc, so that
52538         our invokers don't have to worry about reporting memory failures.
52539         (make_node_op_equals): Remove.
52540         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52541         New constants.
52542         (struct mode_change): Moved here from modechange.h.
52543         (mode_append_entry): Remove.
52544         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52545         apps to have incorrect behavior.  Use simpler algorithm for head
52546         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52547         Detect more invalid usages rather than having somewhat-random behavior.
52548         Don't insert an "a=" action, as that leads to incorrect behavior.
52549         (mode_compile, mode_create_from_ref): Return NULL on error instead
52550         of an enum, since now there's only one way to have an error.  All
52551         callers changed.
52552         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52553         at the correct time.  Simplify calculation of "+u" and its ilk.
52554         Don't mishandle "+X".
52555         (mode_free): Remove "register" and localize decls.
52556         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52557         (struct mode_change): Move to modechange.c; callers don't
52558         need to see this stuff.
52559         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52560         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52561         (mode_change, mode_adjust): Reflect the new signatures noted above.
52562         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52563         that might redefine system include files.
52564         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52565         (my_usleep): Use NULL rather than (void *) 0.
52566         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52567         Use siginterrupt to specify that system calls should be interrupted.
52568         (rpl_nanosleep): Move initialization of suspended closer to call of
52569         my_usleep.
52570         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52571         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52572         (desirable_utmp_entry): New function.
52573         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52574         using x2nrealloc, to simplify logic.
52575         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52576         size calculation.  Do not assume utmp file is a regular file.
52577         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52578         (READ_UTMP_CHECK_PIDS): New constant.
52579         * lib/save-cwd.c: Include unistd-safer.h.
52580         (save_cwd): Use fd_safer.
52581         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52582         [!_LIBC] Include "stat-macros.h" instead.
52583         * lib/unistd-safer.h (fd_safer): New decl.
52584
52585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52586
52587         * modules/getloadavg (Depends-on): Add unistd-safer.
52588         * modules/getusershell (Depends-on): Add stdio-safer.
52589         * modules/lstat (Depends-on): Remove xalloc.
52590         * modules/mkstemp (Depends-on): Add stat-macros.
52591         * modules/modechange (Depends-on): Remove xstrtol.
52592         Add stat-macros, xalloc.
52593         * modules/save-cwd (Depends-on): Add unistd-safer.
52594         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52595         * modules/unistd-safer (Files): Add lib/fd-safer.c
52596         (Makefile.am): Remove lib_SOURCES.
52597
52598         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52599         Remove fcntl-safer; unistd-safer supersedes it.
52600
52601 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52604         AC_HEADER_STAT.
52605         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52606         (gl_PREREQ_CHOWN): Remove.
52607         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52608         it.  Don't require AC_HEADER_STAT.
52609         (gl_PREREQ_LSTAT): Remove.
52610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52611         Don't require AC_HEADER_STAT.
52612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52613         (gl_PREREQ_RMDIR): Remove.
52614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52615         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52616         the stat-macros module a prerequisite.
52617         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52618         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52619         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52620         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52621         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52622         variable names.
52623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52624         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52625         variable prefixes.
52626         * m4/fcntl-safer.m4: Remove.
52627         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52628         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52629         Invoke gl_PREREQ_FD_SAFER.
52630         (gl_PREREQ_FD_SAFER): New macro.
52631         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52632         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52633         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52634         Remove duplicate call to AC_LIBOBJ(readutmp).
52635         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52636
52637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52638         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52639
52640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * MODULES.html.sh (Misc): Add byteswap.
52643
52644 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52645
52646         * modules/getcwd (Depends-on): Add extensions.
52647         * modules/openat (Depends-on): Likewise.
52648
52649 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52650
52651         * modules/byteswap: New file.
52652
52653 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52654
52655         * m4/byteswap.m4: New file.
52656
52657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52658
52659         * lib/byteswap_.h: New file.
52660
52661 2005-04-25  Karl Berry  <karl@gnu.org>
52662
52663         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52664
52665 2005-04-25  Albert Chin  <china@thewrittenword.com>
52666
52667         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52668         Toolkit C bug.
52669
52670 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52671
52672         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52673         (func_ln_if_changed) Remove forcibly for no error message
52674         in case file does not exist.
52675
52676 2005-04-19  Simon Josefsson  <jas@extundo.com>
52677
52678         * gnulib-tool (Options): Make --symlink mean --symbolic.
52679
52680 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52681
52682         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52683
52684 2005-04-16  Simon Josefsson  <jas@extundo.com>
52685
52686         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52687
52688 2005-04-15  Simon Josefsson  <jas@extundo.com>
52689
52690         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52691
52692 2005-04-15  Simon Josefsson  <jas@extundo.com>
52693
52694         * gnulib-tool: Rename --symlink to --symbolic.
52695
52696 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52697
52698         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52699         symbolic links to files instead of copying/moving.  Add --aux-dir,
52700         specifying directory relative --dir where auxiliary build tools
52701         are placed.
52702
52703 2005-04-14  Bruno Haible  <bruno@clisp.org>
52704
52705         * modules/allocsa (License): Change to LGPL.
52706         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52707
52708 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52709
52710         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52711         that "UTC +1 second" continues to work.  Problem reported
52712         by Dmitry V. Levin.
52713         (relunit_snumber): New rule.
52714         (relunit): Use it.
52715
52716 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52717
52718         * lib/getdate.y (universal_time_zone_table): New constant.
52719         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52720         universal_time_zone_table.
52721         (lookup_zone): Prefer universal_time_zone_table to
52722         local_time_zone_table, so that "GMT" time stamps are allowed in
52723         London during the summer.  Problem reported by Ian Abbott.
52724
52725 2005-04-12  Jim Meyering  <jim@meyering.net>
52726
52727         * lib/human.c (humblock): Set *options even when returning due to
52728         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52729         warning from gcc-4.
52730
52731 2005-04-09  Jim Meyering  <jim@meyering.net>
52732
52733         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52734         -Wuninitialized: initialize tm0.tm_year.
52735
52736 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52739         count, since there's no maximum.  All uses changed.
52740         Add member dsts_seen.
52741         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52742         not being INT_MAX.
52743         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52744         Use pc_rels_seen to decide whther a date is absolute.
52745
52746         * lib/getdate.y (number): Don't overwrite year.
52747         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52748         check.
52749
52750 2005-04-02  Simon Josefsson  <jas@extundo.com>
52751
52752         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52753         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52754
52755 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52756
52757         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52758         where no absolute path name can be longer than PATH_MAX.
52759
52760 2005-03-27  Jim Meyering  <jim@meyering.net>
52761
52762         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52763
52764 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52767         "one's complement" -> "ones' complement" in comment, as per Knuth.
52768         "value of type" -> "type or expression" in comment.
52769         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52770
52771 2005-03-26  Jim Meyering  <jim@meyering.net>
52772
52773         Comment nits.
52774         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52775         Correct typos: s/or/of/.
52776
52777 2005-03-26  Jim Meyering  <jim@meyering.net>
52778
52779         * modules/check-include-files: Move to ../ and rename to...
52780         * check-module: ...this.
52781
52782 2005-03-25  Jim Meyering  <jim@meyering.net>
52783
52784         * modules/xvasprintf (Files): Add xalloc.h.
52785
52786 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * modules/gettext (Files): config/config.rpath ->
52789         build-aux/config.rpath
52790         * modules/iconv (Files): Likewise.
52791         Problem reported by Oskar Liljeblad.
52792
52793 2005-03-23  Jim Meyering  <jim@meyering.net>
52794
52795         * modules/check-include-files: New script to check for
52796         missing dependencies, multiple includes, etc.
52797
52798         * modules/c-strtold (Depends-on): Add xalloc.
52799         * modules/c-strtod (Depends-on): Add xalloc.
52800         * modules/hash (Depends-on): Add xalloc.
52801         (Files): Remove lib/xalloc.h.
52802
52803         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52804         * modules/userspec (Files): Add lib/inttostr.h.
52805
52806 2005-03-23  Jim Meyering  <jim@meyering.net>
52807
52808         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52809
52810 2005-03-22  Jim Meyering  <jim@meyering.net>
52811
52812         * modules/stat-macros: New module.
52813         * modules/canonicalize, modules/euidaccess, modules/file-type,
52814         * modules/filemode, modules/lchown, modules/makepath,
52815         * modules/rmdir, modules/stat: Depend on new stat-macros module
52816         rather than listing lib/stat-macros.h manually.
52817         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52818
52819 2005-03-22  Jim Meyering  <jim@meyering.net>
52820
52821         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52822
52823 2005-03-22  Bruno Haible  <bruno@clisp.org>
52824
52825         * config/srclist.txt: Replace target directory 'config' with
52826         'build-aux'.
52827         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52828         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52829         ../build-aux/.
52830
52831 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52832
52833         * modules/chdir-long (Depends-on): Add mempcpy.
52834
52835         * modules/acl, modules/backupfile, modules/c-strtod,
52836         modules/c-strtold, modules/canon-host, modules/canonicalize,
52837         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52838         modules/exclude, modules/exitfail, modules/file-type,
52839         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52840         modules/getdate, modules/getline, modules/getpagesize,
52841         modules/getpass, modules/getugroups, modules/group-member,
52842         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52843         modules/inttostr, modules/long-options, modules/makepath,
52844         modules/md5, modules/memcasecmp, modules/memcoll,
52845         modules/modechange, modules/mountlist, modules/path-concat,
52846         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52847         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52848         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52849         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52850         modules/strftime, modules/strndup, modules/strverscmp,
52851         modules/timespec, modules/unlocked-io, modules/userspec,
52852         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52853         modules/yesno:
52854         Remove lib_SOURCES line from Makefile.am section, as this is now
52855         done automatically by the corresponding Autoconf macro.
52856
52857 2005-03-21  Jim Meyering  <jim@meyering.net>
52858
52859         Changes imported from coreutils.
52860
52861         * lib/cycle-check.c: Don't include xalloc.h.
52862
52863         * lib/path-concat.c: Don't include assert.h.
52864         (path_concat): Remove assertion that would have triggered
52865         for ABASE starting with more than one slash.
52866         Reported by Andreas Schwab.
52867
52868         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52869         properly when ABASE is an absolute file name.
52870         Correct the description of this function.
52871         Include <assert.h>.
52872         Add an assertion and a test driver.
52873         This fixes a bug introduced on 2004-07-02.
52874         Andreas Schwab reported the resulting failure of cp --parents:
52875         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52876
52877 2005-03-21  Jim Meyering  <jim@meyering.net>
52878
52879         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52881
52882 2005-03-21  Jim Meyering  <jim@meyering.net>
52883         and  Paul Eggert  <eggert@cs.ucla.edu>
52884
52885         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52886         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52887         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52888         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52889         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52890         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52891         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52892         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52893         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52894         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52895         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52896         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52897         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52898         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52899         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52900         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52901         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52902         for these modules.
52903
52904 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52907         (which shouldn't happen), generate nothing instead of returning 0
52908         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52909
52910 2005-03-16  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52913         HAVE_LONGLONG_64BIT.
52914
52915 2005-03-16  Bruno Haible  <bruno@clisp.org>
52916
52917         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52918         HAVE_LONGLONG_64BIT.
52919
52920 2005-03-16  Bruno Haible  <bruno@clisp.org>
52921
52922         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52923         HAVE_LONGLONG_64BIT.
52924
52925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52926
52927         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52928         reliably distinguish strftime failure from empty output on POSIX
52929         hosts.
52930
52931 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52934         (iconv_string): Don't guess a size-zero buffer, as that might cause
52935         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52936         result would be 'too large', where 'too large' is (heuristically)
52937         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52938         overflow concerns.  This will prevent some unwanted malloc failures
52939         when the inputs are very large.
52940
52941 2005-03-15  Karl Berry  <karl@gnu.org>
52942
52943         * config/srclist.txt (config.rpath): from gettext.
52944         * config/config.rpath: update.
52945
52946 2005-03-15  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52949         to 'negate'.
52950
52951         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52952         variable.
52953
52954         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52955         results.
52956
52957 2005-03-14  Simon Josefsson  <jas@extundo.com>
52958
52959         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52960         <fx@gnu.org>.
52961
52962 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52963
52964         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52965         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52966         intprops.h.
52967         * lib/strtol.c: Likewise.
52968
52969 2005-03-14  Jim Meyering  <jim@meyering.net>
52970
52971         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52972         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52973         to be nonzero so that we (and caller) can detect the difference
52974         between a valid zero-length expansion and an error return, even
52975         when the underlying strftime fails before writing anything into
52976         that location.
52977
52978 2005-03-14  Bruno Haible  <bruno@clisp.org>
52979
52980         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52981         Update from GNU gettext 0.14.3.
52982
52983 2005-03-10  Jim Meyering  <jim@meyering.net>
52984
52985         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52986
52987 2005-03-10  Jim Meyering  <jim@meyering.net>
52988
52989         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52990         so that this module works on systems without fchdir.
52991
52992 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         Factor int-properties macros into a single file, except for
52995         glibc-related files.
52996         * lib/intprops.h: New file.
52997         * lib/getloadavg.c: Include it instead of limits.h.
52998         (INT_STRLEN_BOUND): Remove.
52999         * lib/human.c: Include intprops.h.
53000         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53001         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53002         302/1000.
53003         * lib/inttostr.h: Include intprops.h instead of limits.h.
53004         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53005         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53006         for consistency with intprops.h.
53007         (time_t_is_integer, twos_complement_arithmetic): Use them.
53008         * lib/sig2str.h: Include <signal.h>, intprops.h.
53009         (INT_STRLEN_BOUND): Remove.
53010         * lib/strftime.c (TYPE_SIGNED): Remove.
53011         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53012         * lib/strtol.c: Adjust comments to match intprops.h.
53013         * lib/userspec.c: Include intprops.h.
53014         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53015         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53016         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53017         instead of rolling our own expressions.
53018         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53019
53020         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53021         instead of int.
53022         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53023         the right thing even if adding 1900 would overflow.  Similarly
53024         for tm_mon + 1 and tm_yday + 1.
53025         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53026         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53027         (DO_SIGNED_NUMBER): New macro.
53028         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53029
53030 2005-03-07  Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53033
53034 2005-03-07  Bruno Haible  <bruno@clisp.org>
53035
53036         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53037
53038 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53039
53040         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53041         (func_import): Only replace files via --import when they have actually
53042         changed.
53043
53044 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53045
53046         * m4/mmap-anon.m4: New file.
53047         * m4/pagealign_alloc.m4: New file.
53048
53049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53050             Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/pagealign_alloc: New file.
53053         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53054
53055 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53056             Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/pagealign_alloc.h: New file.
53059         * lib/pagealign_alloc.c: New file.
53060
53061 2005-03-03  Bruno Haible  <bruno@clisp.org>
53062
53063         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53064         Use an all-permissive copyright notice, recommended by RMS.
53065
53066 2005-03-02  Bruno Haible  <bruno@clisp.org>
53067
53068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53069         of AIX, the replacement has to be done only after <string.h> is
53070         included, therefore not in config.h. stpncpy.h does the replacement,
53071         and stpncpy.c uses it.
53072
53073 2005-03-02  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53076         stpncpy.c uses it.
53077
53078 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53081         The workaround isn't strictly needed for POSIX conformance, and
53082         it's too much of a pain to configure and maintain.  We'll ask
53083         people to fix their kernels instead.
53084         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53085         (NANOSLEEP_BUG_WORKAROUND): Remove.
53086         (xnanosleep): Remove the workaround.
53087
53088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53089
53090         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53091         Reported by Derek Price.
53092         (Include): Add "timespec.h".
53093
53094         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53095
53096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53099         to detect nanosleep bug.
53100
53101 2005-03-01  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53104
53105 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53106
53107         * modules/gethrxtime: New file.
53108         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53109         (Depends-on): Add gethrxtime.
53110         (configure.ac): Add gl_XNANOSLEEP.
53111         (Makefile.am): Remove lib_SOURCES line.
53112
53113 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53114
53115         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53116         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53117
53118 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53121         * lib/timespec.h (gettime): Return void, since it always
53122         succeeds now.  All uses changed.
53123         * lib/gettime.c (gettime) Likewise.
53124         [HAVE_NANOTIME]: Prefer nanotime.
53125         Assume gettimeofday succeeds, as POSIX requires.
53126         Assime time () succeeds, since other code already does.
53127         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53128         (timespec_subtract): Remove.
53129         (NANOSLEEP_BUG_WORKAROUND): New constant.
53130         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53131         things considerably.  Use it only on GNU/Linux hosts, since the
53132         workaround shouldn't be needed elsewhere.
53133
53134 2005-02-24  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/gettext (Files): Add m4/glibc2.m4.
53137
53138 2005-02-24  Bruno Haible  <bruno@clisp.org>
53139
53140         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53141         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53142         * m4/progtest.m4:
53143         Update from GNU gettext 0.14.2.
53144         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53145
53146 2005-02-24  Bruno Haible  <bruno@clisp.org>
53147
53148         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53149         * lib/config.charset: Update from GNU gettext 0.14.2.
53150
53151 2005-02-24  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/gettext.h: Update from GNU gettext 0.14.2.
53154
53155 2005-02-23  Simon Josefsson  <jas@extundo.com>
53156
53157         * m4/iconvme.m4: New file.
53158
53159 2005-02-23  Jim Meyering  <jim@meyering.net>
53160
53161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53162         change.
53163         Thanks to Bruno Haible for catching it.
53164
53165 2005-02-22  Simon Josefsson  <jas@extundo.com>
53166
53167         * modules/iconvme: New file.
53168
53169         * MODULES.html.sh: Add iconvme.
53170
53171 2005-02-22  Simon Josefsson  <jas@extundo.com>
53172
53173         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53174
53175 2005-02-22  Simon Josefsson  <jas@extundo.com>
53176
53177         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53178
53179 2005-02-22  Jim Meyering  <jim@meyering.net>
53180
53181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53182         s/ifndef/ifdef/.
53183
53184 2005-02-20  Neil Conway  <neilc@samurai.com>
53185
53186         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53187         returned by OSX/Darwin if the specified buffer is not large
53188         enough for the hostname.
53189
53190 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53191
53192         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53193         pass it to _help, otherwise the latter coredumps trying to
53194         dereference state.root_argp.
53195
53196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53197
53198         * modules/chdir-long (Depends-on): Add memrchr.
53199         * modules/memrchr (Files): Add lib/memrchr.h.
53200         (Include): "memrchr.h".
53201
53202 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53203
53204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53205
53206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53207
53208         * lib/memrchr.h: New file.
53209         * lib/chdir-long.c: Include it.
53210         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53211         Don't bother including stddef.h.
53212
53213 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53214
53215         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53216         inclusion.
53217         Include <sys/types.h>, for dev_t.
53218         (ME_DUMMY, ME_REMOTE): Move from here....
53219         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53220         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53221         Dmitry V. Levin.
53222         Include mountlist.h first, to test the interface.
53223
53224 2005-01-29  Bruno Haible  <bruno@clisp.org>
53225
53226         * lib/progname.c (program_name): Initialize.
53227         Needed when linking statically on MacOS X.
53228
53229 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53230
53231         Sync from coreutils.
53232         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53233         (Depends-on): Add c-strtod.
53234         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53235
53236 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53237
53238         Sync from coreutils.
53239         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53240
53241         Remove files that are specific to coreutils.
53242         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53243
53244 2005-01-28  Bruno Haible  <bruno@clisp.org>
53245
53246         * modules/javacomp: New file.
53247         * MODULES.html.sh (Java): Add javacomp.
53248
53249 2005-01-28  Bruno Haible  <bruno@clisp.org>
53250
53251         * m4/javacomp.m4: New file, from GNU gettext.
53252
53253 2005-01-28  Bruno Haible  <bruno@clisp.org>
53254
53255         * lib/javacomp.sh.in: New file, from GNU gettext.
53256         * lib/javacomp.h: New file, from GNU gettext.
53257         * lib/javacomp.c: New file, from GNU gettext.
53258
53259 2005-01-26  Simon Josefsson  <jas@extundo.com>
53260
53261         * lib/gai_strerror.c: Use GPL in header.
53262
53263 2005-01-26  Bruno Haible  <bruno@clisp.org>
53264
53265         * modules/javaexec: New file.
53266         * MODULES.html.sh (Java): Add javaexec.
53267
53268 2005-01-26  Bruno Haible  <bruno@clisp.org>
53269
53270         * m4/javaexec.m4: New file, from GNU gettext.
53271
53272 2005-01-26  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/javaexec.sh.in: New file, from GNU gettext.
53275         * lib/javaexec.h: New file, from GNU gettext.
53276         * lib/javaexec.c: New file, from GNU gettext.
53277
53278 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53279
53280         * modules/lchown (Depends-on): Remove lchown.h
53281
53282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53283
53284         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53285         must be defined if the header file was not found, in order
53286         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53287
53288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53289
53290         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53291         initializers for struct pentry_state.
53292         (__argp_error): Check return value of __asprintf
53293         (__argp_failure): Translate error message
53294
53295         * lib/argp-parse.c: Removed braces around the expansion of N_()
53296
53297 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53298
53299         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53300         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53301         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53302         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53303         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53304         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53305         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53306         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53307         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53308         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53309         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53310         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53311         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53312         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53313         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53314         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53315         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53316         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53317         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53318         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53319         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53320         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53321         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53322         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53323         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53324         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53325         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53326         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53327         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53328         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53329         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53330         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53331         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53332         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53333         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53334         Use an all-permissive copyright notice, recommended by RMS.
53335
53336 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * modules/chdir-long (Depends-on): Remove mempcpy.
53339
53340 2005-01-21  Jim Meyering  <jim@meyering.net>
53341
53342         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53343         same value as for Solaris 9.
53344
53345         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53346         component length.  This included changing the parameter to be
53347         of type `char *' rather than `char const *'.
53348         * lib/chdir-long.h (chdir_long): Update prototype.
53349
53350         * lib/openat.c (fdopendir, fstatat): New functions.
53351         * lib/openat.h: Include headers required for use of DIR and struct
53352         stat.
53353         [AT_SYMLINK_NOFOLLOW]: Define.
53354         (fdopendir, fstatat): Add prototypes.
53355
53356 2005-01-21  Bruno Haible  <bruno@clisp.org>
53357
53358         * modules/classpath: New file.
53359         * MODULES.html.sh (Java): Add classpath.
53360
53361 2005-01-21  Bruno Haible  <bruno@clisp.org>
53362
53363         * lib/classpath.h: New file, from GNU gettext.
53364         * lib/classpath.c: New file, from GNU gettext.
53365
53366 2005-01-20  Simon Josefsson  <jas@extundo.com>
53367
53368         * modules/version-etc-fsf: New file.
53369
53370 2005-01-20  Simon Josefsson  <jas@extundo.com>
53371
53372         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53373         * lib/version-etc.c: Remove version_etc_copyright.
53374         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53375         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53376
53377 2005-01-20  Simon Josefsson  <jas@extundo.com>
53378
53379         * lib/base64.h (isbase64): Add.
53380
53381         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53382         using a unsigned prototype, don't inline.
53383         (base64_decode): Use it.
53384
53385 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53388         it.
53389
53390 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         * lib/save-cwd.c (save_cwd): Remove code to support the case
53393         where fchdir is missing or flaky.
53394
53395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53396
53397         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53398
53399 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53402         AC_LIBSOURCES now does this.
53403         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53404         with new ullong_max module.
53405
53406 2005-01-19  Bruno Haible  <bruno@clisp.org>
53407
53408         * modules/sh-quote: New file.
53409         * MODULES.html.sh (Executing programs): Add sh-quote.
53410
53411 2005-01-19  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/sh-quote.h: New file, from GNU gettext.
53414         * lib/sh-quote.c: New file, from GNU gettext.
53415
53416 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         Merge from coreutils.
53419         * m4/ullong_max.m4: New file.
53420         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53421         (gl_MACROS): Assume localeconv exists.
53422
53423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         Merge changes from coreutils, as described below in several
53426         changelogs dated today.
53427
53428         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53429         (O_DIRECTORY): Remove; not needed here, since "." must be
53430         a directory.  All uses removed.
53431         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53432         universal on Suns, and we also need to test for IRIX.
53433         Revamp code to use 'if' rather than '#if'.
53434         Avoid unnecessary comparison of cwd->desc to 0.
53435
53436         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53437         for known valid error numbers rather than observed invalid ones.
53438
53439 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53440
53441         * modules/ullong_max: New file.
53442
53443         * modules/chdir-long, modules/openat: New files.
53444         * modules/save-cwd (Depends-on): Depend on chdir-long.
53445         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53446
53447 2005-01-18  Jim Meyering  <jim@meyering.net>
53448
53449         Merge from coreutils.
53450         * m4/chdir-long.m4, m4/openat.m4: New files.
53451         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53452         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53453         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53454         is sane and DOES follow symlinks.  Besides, testing 20 different
53455         systems found no broken chown implementations.
53456         Prompted by a change in rsync's copy of this macro.
53457         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53458
53459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53460
53461         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53462         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53463         NULL-means-set-to-current-time semantics.
53464         Remove temporary file immediately, rather than waiting
53465         for configure's at-exit trap code to do it.
53466
53467 2005-01-18  Jim Meyering  <jim@meyering.net>
53468
53469         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53470
53471         * lib/utimens.c (futimens): Account for the fact that futimes
53472         can also fail with errno == ENOSYS or errno == ENOENT.
53473         Patch from Dmitry V. Levin.
53474
53475         Change the name of the robust chdir function from chdir to chdir_long.
53476         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53477         (restore_cwd): Use chdir_long, not chdir.
53478         * lib/chdir-long.c: Renamed from chdir.c.
53479         * lib/chdir-long.h: Renamed from chdir.h.
53480         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53481         Hurd.
53482
53483 2005-01-18  Bruno Haible  <bruno@clisp.org>
53484
53485         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53486         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53487         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53488         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53489         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53490         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53491         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53492         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53493         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53494         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53495         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53496         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53497         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53498         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53499         Use an all-permissive copyright notice, recommended by RMS.
53500
53501 2005-01-18  Bob Proulx  <bob@proulx.com>
53502
53503         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53504         simplify offsetof() macro construct to avoid compile failure with
53505         native HP-UX 11.0 ANSI C compiler.
53506
53507 2005-01-17  Bruno Haible  <bruno@clisp.org>
53508
53509         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53510         redundant because stpncpy.m4 takes care of it.
53511
53512 2005-01-17  Bruno Haible  <bruno@clisp.org>
53513
53514         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53515
53516 2005-01-17  Bruno Haible  <bruno@clisp.org>
53517
53518         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53519         used.
53520
53521 2005-01-17  Bruno Haible  <bruno@clisp.org>
53522
53523         * lib/fwriteerror.h (fwriteerror): Change specification to include
53524         fclose.
53525         * lib/fwriteerror.c: Include <stdbool.h>.
53526         (fwriteerror): At the end, close the file stream. Record whether
53527         stdout was already closed.
53528
53529 2005-01-17  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/execute.c (environ): Declare if needed.
53532         * lib/pipe.c (environ): Likewise.
53533         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53534
53535 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53536
53537         * modules/argp: Depend on vsnprintf
53538
53539 2005-01-10  Jim Meyering  <jim@meyering.net>
53540
53541         * modules/closeout (Depends-on): Add atexit.
53542
53543 2005-01-06  Bruno Haible  <bruno@clisp.org>
53544
53545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53546
53547 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53550         definitions to be after all include files, to avoid collisions.
53551         Problem reported by Bob Proulx.
53552
53553 2005-01-04  Jim Meyering  <jim@meyering.net>
53554
53555         Changes imported from coreutils.
53556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53557         as the mkstemp template, use a temporary directory and an
53558         8.3-friendly template to avoid trouble on systems like DJGPP.
53559         Reported by Juan M. Guerrero via Stepan Kasal.
53560         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53561         close. Remove the temporary directory right away, rather than waiting
53562         for configure's at-exit trap code to do it.
53563         Suggestion from Stepan Kasal.
53564
53565 2005-01-01  Simon Josefsson  <jas@extundo.com>
53566
53567         * gnulib-tool: Print #include directives when --import'ing.
53568
53569 2004-12-28  Simon Josefsson  <jas@extundo.com>
53570
53571         * tests/test-base64.c: Include required header files.  Remove
53572         unused variables.
53573
53574 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         * modules/error (Depends-on): Remove gettext.
53577
53578 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53581         not needed.  This removes a dependency on the gettext module.
53582         [defined _LIBC]: Do not include <libintl.h>; not needed.
53583
53584 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53587         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53588
53589 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53590
53591         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53592         HAVE_DECL_STRTOLD.
53593
53594 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53595
53596         * modules/getdate (Depends-on): Remove alloca-opt.
53597
53598 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53601
53602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * lib/argp-parse.c: Include <stddef.h>.
53605         (alignof, alignto): New macros.
53606         (parser_init): Don't assume that void * is aligned sufficiently
53607         for struct option.
53608
53609         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53610         need to extend the stack.
53611         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53612         large.
53613
53614 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53615
53616         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53617
53618 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53619
53620         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53621         (2004-10-24) change.  Apparently this was a false alarm.
53622
53623         * modules/getdate: Depend on alloca-opt, not alloca.
53624
53625 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53626
53627         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53628         Remove now-obsolete comment about AIX.
53629         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53630         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53631         (YYMAXDEPTH): New macro.
53632
53633 2004-12-18  Simon Josefsson  <jas@extundo.com>
53634
53635         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53636
53637 2004-12-18  Bruno Haible  <bruno@clisp.org>
53638
53639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53640
53641 2004-12-18  Bruno Haible  <bruno@clisp.org>
53642
53643         * lib/fatal-signal.c (fatal_signals): Make non-const.
53644         (init_fatal_signals): New function.
53645         (uninstall_handlers, install_handlers): Ignore signals that were set to
53646         SIG_IGN.
53647         (at_fatal_signal): Call init_fatal_signals.
53648         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53649         SIG_IGN.
53650         Reported by Paul Eggert.
53651
53652 2004-12-18  Bruno Haible  <bruno@clisp.org>
53653
53654         * doc/alloca.texi: New file.
53655         * doc/alloca-opt.texi: New file.
53656
53657 2004-12-17  Jim Meyering  <jim@meyering.net>
53658
53659         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53660         Otherwise, install-sh could exit with improper exit status when
53661         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53662
53663 2004-12-16  Simon Josefsson  <jas@extundo.com>
53664
53665         * tests/test-base64.c: Add license.
53666
53667 2004-12-15  Stepan Kasal  <address@hidden>
53668
53669         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53670
53671 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         * modules/getcwd (Files): Add m4/d-ino.m4.
53674         Suggested by Mark D. Baushke.
53675
53676 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * lib/getdate.y (textint): New member "negative".
53679         (time_zone_hhmm): New function.
53680         Expect 14 shift-reduce conflicts, not 13.
53681         (o_colon_minutes): New rule.
53682         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53683         (yylex): Set the "negative" member of signed numbers.
53684
53685 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53686
53687         * doc/getdate.texi (Time of day items, Time zone items):
53688         Describe new formats +00:00, UTC+00:00.
53689
53690 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53693         spurious "-l"s.  Problem reported by Stepan Kasal.
53694
53695 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53698         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53699
53700 2004-12-04  Simon Josefsson  <jas@extundo.com>
53701
53702         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53703         Vandoorselaere <yoann@prelude-ids.org>.
53704
53705 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53706
53707         Changes imported from coreutils.
53708         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53709         exist.
53710         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53711
53712 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         Changes imported from coreutils.
53715         * lib/hard-locale.c: Assume <locale.h> exists.
53716         Include "strdup.h".
53717         (GLIBC_VERSION): New macro.
53718         (hard_locale): Assume setlocale exists.
53719         Rewrite to avoid #ifdef.
53720         Use strdup rather than malloc + strcpy.
53721         * lib/human.c: Assume <locale.h> exists.
53722         (human_readable): Assume localeconv exists.
53723
53724 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * modules/hard-locale (Depends-on): Add strdup.
53727
53728 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53729
53730         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53731         convert T2, not T.  (Imported from libc.)
53732
53733 2004-11-30  Simon Josefsson  <jas@extundo.com>
53734
53735         * modules/restrict (License): Change to LGPL.
53736
53737 2004-11-30  Simon Josefsson  <jas@extundo.com>
53738
53739         * m4/restrict.m4: Add copyright and copying conditions.
53740
53741 2004-11-30  Simon Josefsson  <jas@extundo.com>
53742
53743         * m4/base64.m4: New file.
53744
53745 2004-11-30  Simon Josefsson  <jas@extundo.com>
53746
53747         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53748         base64.
53749
53750         * tests/test-base64.c: New file.
53751
53752         * modules/base64: New file.
53753
53754 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53757         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53758
53759         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53760
53761 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53764         (__getcwd.c): Don't restore errno; glibc doesn't.
53765         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53766         first, falling back to our code only if its results look suspicious.
53767         Ensure that the resulting buffer is only as large as necessary.
53768
53769         * lib/readutmp.c: Include readutmp.h first.
53770         Include <errno.h>, since readutmp.h no longer does that.
53771         * lib/readutmp.h: Don't include <errno.h>,
53772         <sys/param.h>, <time.h>; not needed to establish interface.
53773         (errno): Remove decl.
53774         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53775         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53776         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53777
53778 2004-11-28  Simon Josefsson  <jas@extundo.com>
53779
53780         * lib/base64.h, base64.c: New file.
53781
53782 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53785
53786 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53787
53788         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53789         (Depends-on): Remove pathmax, same.  Add mempcpy.
53790         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53791         (Makefile.am): Append getcwd.h to lib_SOURCES.
53792         (Include): Add getcwd.h.
53793         (Maintainer): Change from Jim Meyering to "all, glibc",
53794         since getdate now uses intended-for-glibc code.
53795         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53796         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53797
53798 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53799
53800         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53801         HP's ANSI C compiler.
53802         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53803         Declaring int functions causes warnings on some modern systems and
53804         shouldn't be needed to compile on ancient ones.
53805         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53806         defined.
53807
53808         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53809         with the following changes.
53810         (__set_errno): Parenthesize properly.
53811         Include <stdbool.h>.
53812         (MIN, MAX, MATCHING_INO): New macros.
53813         (__getcwd): Define with prototype, not K&R form.
53814         Use heuristics to allocate default buffer on stack if possible.
53815         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53816         behavior, and to avoid the PATH_MAX limit when computing
53817         ../../../../...
53818         Use MATCHING_INO to compare inode number to file.
53819         Check for arithmetic overflow in size calculations.
53820         Fix bug in reallocation of dot array that caused getcwd to fail
53821         on directories nested deeper than 75.
53822         Be more careful about saving errno on error.
53823         Do not use realloc; use only free+malloc, as this is a bit
53824         more flexible and avoids a needless copy operation.
53825         Do not inspect st_dev and st_ino for symbolic links; POSIX
53826         doesn't specify the latter.
53827         Check for closedir errors.
53828         Avoid needless casts.
53829         Use "#ifdef weak_alias" around weak_alias, to be like other
53830         glibc code.
53831         The following changes to getcwd.c have effect only when used in
53832         gnulib; they have no effect inside glibc proper.
53833         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53834         as alloca isn't used.
53835         (alloca, __alloca): Likewise.
53836         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53838         unconditionally, as gnulib assumes C89 or better.
53839         Do not include <sys/param.h>.
53840         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53841         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53842         better.
53843         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53844         Include <dirent.h> in a way that is compatible with modern Autoconf.
53845         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53846         New macros, if not already defined.
53847         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53848         Use "_LIBC", not "defined _LIBC", for consistency.
53849         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53850         a mempcpy module.
53851         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53852         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53853         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53854         credit only to Jim Meyering and adjust the copyright dates.
53855         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53856         <stdlib.h>, <unistd.h>, "pathmax.h".
53857         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53858         (INITIAL_BUFFER_SIZE): Remove.
53859         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53860
53861 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53864         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53865         Use the _ONCE methods, for efficiency.
53866         Check for fcntl.h.  In test program, include <errno.h>
53867         and <fcntl.h> if available.  Remove old K&R cruft from
53868         test program.  Check for common errors in GNU/Linux,
53869         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53870         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53872         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53873         name accordingly.
53874         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53875         accommodate new getcwd.c.
53876         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53877         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53878         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53879         that's all we need now.
53880
53881 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53882
53883         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53884         argp-parse.c depends on getopt internals, that means we should
53885         always use our getopt, to be on the safe side.
53886         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53887         order not to spoil the result of an eventual previous invocation
53888         of gl_GETOPT_SUBSTITUTE.
53889
53890 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53891
53892         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53893         redefinition warnings. To avoid them, include the defines
53894         in `#if !defined __need_getopt ... #endif'. The only place
53895         where __getopt_argv_const is used is in definitions
53896         of getopt_long and getopt_long_only below, which are as well
53897         protected by `#ifndef __need_getopt'.
53898         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53899         __need_getopt after including <stdio.h> and <unistd.h> These
53900         headers might have defined it.
53901
53902 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53905
53906 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53909         (futimens): New function, which uses futimes if available.
53910         (futimens, utimens): Support timespec==NULL, with same semantics
53911         as utime and utimens.
53912         * lib/utimens.h (futimens): New decl.
53913
53914 2004-11-23  Jim Meyering  <jim@meyering.net>
53915
53916         * lib/getopt_.h: Remove trailing blanks.
53917
53918 2004-11-23  Jim Meyering  <jim@meyering.net>
53919
53920         * lib/__fpending.c: Add comment.
53921
53922 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * modules/canonicalize (Depends-on): Add xreadlink.
53925         Problem reported by James Youngman.
53926
53927 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53930         New macros.
53931         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53932         optopt): Use them instead of invoking ## directly; otherwise, the
53933         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53934
53935 2004-11-19  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/strtok_r.c: Move comments from here...
53938         * lib/strtok_r.h: ... to here.
53939
53940 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53941
53942         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53943         implementations that mishandle size_t overflow.
53944
53945 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53946
53947         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53948         might fail.  Problem reported by Yoann Vandoorselaere.
53949         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53950         implementations that mishandle size_t overflow.
53951
53952 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53953
53954         * modules/canon-host (Depends-on): Add strdup.
53955
53956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53959
53960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53961
53962         * lib/canon-host.c: Include "strdup.h".
53963         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53964         Use strdup instead of malloc/strcpy to duplicate strings.
53965
53966         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53967         (human_space_before_unit): New constant.
53968         * lib/human.c (human_readable): Support it.
53969
53970         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53971         (xgetcwd): Set errno correctly when failing.
53972         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53973         the failure is actually due to a PATH_MAX problem.
53974
53975         Further getopt changes to make it more likely that glibc will
53976         buy the changes back.
53977         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53978         (getopt): Use it, so to preserve glibc semantic
53979         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53980         when compiling for libc.
53981         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53982         (getopt_long, getopt_long_only): Use it.
53983
53984         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53985         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53986         (getopt): Argv is now char * const *, as per standard.
53987         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53988         not char *__getopt_argv_const *.
53989         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53990         _getopt_long_only_r): Likewise.
53991         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53993         _getopt_long_r, _getopt_long_only_r): Likewise.
53994         * lib/getopt_.h (__getopt_argv_const): Remove.
53995         (getopt): Argv is now char * const *, as per standard.
53996
53997         * lib/getdate.y (tORDINAL): New token.
53998         (day, relunit): Allow it for relative times.
53999         (relative_time_table): Use tORDINAL for ordinals.
54000
54001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54004         Document that "second" isn't allowed as an ordinal number.
54005
54006 2004-11-16  Jim Meyering  <jim@meyering.net>
54007
54008         * modules/closeout (Depends-on): Add fpending.
54009
54010 2004-11-15  Jim Meyering  <jim@meyering.net>
54011
54012         * lib/closeout.c: Include "__fpending.h" once again.
54013         Include <stdbool.h>.
54014         (close_stdout): Don't fail just because stdout was closed initially,
54015         since some programs don't write to stdout in the normal course of
54016         operation (other than --version and --help), and we don't want this
54017         function to make e.g. `touch file >&-' fail.
54018         But do fail if it was closed and someone has tried to write to it.
54019         E.g., `printf foo >&-' must fail.
54020
54021 2004-11-13  Jim Meyering  <jim@meyering.net>
54022
54023         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54024
54025 2004-11-12  Simon Josefsson  <jas@extundo.com>
54026
54027         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54028         small doc fix is still pending.
54029
54030 2004-11-11  Simon Josefsson  <jas@extundo.com>
54031
54032         * modules/strtok_r: New file.
54033
54034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54035         strtok_r.
54036
54037 2004-11-11  Simon Josefsson  <jas@extundo.com>
54038
54039         * m4/strtok_r.m4: New file.
54040
54041         * m4/getopt.m4: Replace opterr.
54042
54043 2004-11-11  Simon Josefsson  <jas@extundo.com>
54044
54045         * lib/strtok_r.h, strtok_r.c: New file.
54046
54047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54050         of replacing opterr, getopt, etc.  This should handle the
54051         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54052
54053 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54054
54055         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54056         we can stop lying to compilers about the constness of argv when we
54057         are compiled outside glibc.
54058         (getopt, getopt_long, getopt_long_only): Use it.
54059         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54060         _getopt_internal, getopt): Likewise.
54061         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54062         _getopt_long_only_r): Likewise.
54063         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54064         _getopt_long_r, _getopt_long_only_r): Likewise.
54065
54066         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54067         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54068         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54069         the other external symbols.
54070         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54071         declaration, since the above renaming now works around collisions.
54072
54073 2004-11-11  Jim Meyering  <jim@meyering.net>
54074
54075         * lib/linebreak.c: Remove trailing blanks.
54076         * lib/alloca_.h: Likewise.
54077         * lib/acosl.c: Likewise.
54078         * lib/euidaccess.c: Likewise.
54079         * lib/allocsa.h: Likewise.
54080
54081 2004-11-10  Simon Josefsson  <jas@extundo.com>
54082
54083         * m4/getaddrinfo.m4: New file.
54084
54085 2004-11-10  Simon Josefsson  <jas@extundo.com>
54086
54087         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54088
54089 2004-11-10  Simon Josefsson  <jas@extundo.com>
54090
54091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54092         getaddrinfo.
54093
54094         * modules/getaddrinfo: New file.
54095
54096 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54099
54100 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * lib/mktime.c (SHR): New macro, which is a portable
54103         substitute for >> that should work even on Crays.
54104         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54105         Problem reported by Mark D. Baushke in
54106         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54107         * lib/getdate.y (SHR): Likewise.
54108         (tm_diff): Use it.
54109         * lib/strftime.c (SHR): Likewise.
54110         (tm_diff): Use it.
54111         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54112         quote_these_too, so that right shifts are well defined.  All uses
54113         changed.
54114
54115 2004-11-10  Jim Meyering  <jim@meyering.net>
54116
54117         Ensure that no close failure goes unreported.
54118         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54119         return early when it seems there's nothing to flush.
54120         Don't include __fpending.h.
54121
54122 2004-11-10  Jim Meyering  <jim@meyering.net>
54123
54124         * modules/closeout (Depends-on): Remove fpending.
54125
54126 2004-11-10  Jim Meyering  <jim@meyering.net>
54127
54128         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54129
54130 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54131
54132         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54133         gl_FUNC_STRFTIME.
54134         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54135         and AC_REQUIRE when possible, to avoid duplicate checks.
54136         Check for <wchar.h>.
54137
54138 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54141
54142 2004-11-09  Bruno Haible  <bruno@clisp.org>
54143
54144         * m4/sockpfaf.m4: New file.
54145
54146 2004-11-05  Bruno Haible  <bruno@clisp.org>
54147
54148         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54149         Reported by Mark D. Baushke <mdb@cvshome.org>.
54150
54151 2004-11-04  Bruno Haible  <bruno@clisp.org>
54152
54153         2004-09-11  Bruno Haible  <bruno@clisp.org>
54154                 * allocsa.valgrind: New file.
54155         2004-02-06  Bruno Haible  <bruno@clisp.org>
54156                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54157                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54158                 Reported by Christopher Seip <chris.seip@hp.com>.
54159
54160 2004-11-04  Bruno Haible  <bruno@clisp.org>
54161
54162         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54163         (Makefile.am): Distribute it.
54164
54165 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54168         with errno == ERANGE if the buffer is too small.
54169         Problem reported by Mark D. Baushke.
54170
54171 2004-11-03  Albert Chin  <china@thewrittenword.com>
54172             Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54175         equivalent, substitute $ac_type for equivalent type rather than
54176         blindly using uint32_t *always* which won't work if uint32_t is not
54177         available.  Define _UINT32_T to work around typedef of uint32_t if
54178         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54179         2.5.1.
54180
54181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54182
54183         * m4/jm-macros.m4: Sync from coreutils.
54184         (gl_MACROS): Check for mbrlen, for pathchk.
54185         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54186
54187 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54188
54189         * lib/xreadlink.c (MAXSIZE): New macro.
54190         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54191         size does not exceed MAXSIZE.  Avoid cast.
54192         As suggested by Mark D. Baushke in
54193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54194         if readlink fails with buffer size just under MAXSIZE, try again
54195         with MAXSIZE.
54196
54197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54198
54199         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54200
54201 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54202         and  Paul Eggert  <eggert@cs.ucla.edu>
54203
54204         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54205         (get_date): Overparenthesize to avoid GCC warning.
54206
54207 2004-11-02  Bruno Haible  <bruno@clisp.org>
54208
54209         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54210         returns void.
54211
54212 2004-11-02  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54215         function returns void.
54216
54217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54218
54219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54220         fflush_unlocked, flockfile, funlockfile, funlockfile,
54221         fputs_unlocked, putc_unlocked.
54222
54223 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54224
54225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54226         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54227         already declared.
54228
54229 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54230
54231         * modules/getdate (Files): Add doc/getdate.texi.
54232         (Depends-on): Add setenv, xalloc.
54233
54234 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * lib/getdate.y: Add support for TZ="foo" within a date string.
54237         Fix some bugs near time_t boundaries.  Reject dates with
54238         out-of-range components, e.g., "Sept 31".
54239         Include <stdlib.h>, "setenv.h", "xalloc.h".
54240         (ISDIGIT_LOCALE): Remove; unused.
54241         Note that the TZ and time functions used here are not reentrant.
54242         (mktime_ok, get_tz): New functions.
54243         (TZBUFSIZE): New constant.
54244         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54245         This requires that we sometimes generate our own TZ="XXX..." setting.
54246
54247 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54248
54249         * doc/getdate.texi: New file, from coreutils with modifications for
54250         the new TZ parsing.
54251
54252 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54253
54254         * lib/mktime.c (not_equal_tm): Remove redundant check.
54255
54256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54257
54258         * modules/regex (lib_SOURCES): Add regex.c.
54259         Reported by James Youngman in
54260         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54261
54262 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         * lib/getdate.y: Use Bison 1.875 features, and some minor
54265         code cleanups.  This change does not affect semantics.
54266         Don't include <stdlib.h>; no longer needed.
54267         Don't include unlocked-io.h; only the "#if TEST" code uses
54268         stdio, and performance isn't crucial there.
54269         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54270         Bison 1.875 features as described below.
54271         All uses of "PC." replaced by "pc->".
54272         (YYSTYPE): Add a forward declaration.
54273         (yylex, yyerror): Use full prototypes in forward decls.
54274         Use "%pure-parser" rather than obsolescent "%pure_parser".
54275         Use %parse-param and %lex-param instead of obsolescent
54276         YYPARSE_PARAM and YYLEX_PARAM.
54277         (meridian_table, month_and_day_table, time_units_table,
54278         relative_time_table, time_zone_table, military_table,
54279         lookup_zone, lookup_word, get_date):
54280         Use NULL instead of 0 where appropriate.
54281         (to_hour): Avoid abort (), to avoid a dependency on
54282         stdlib.h.
54283         (yyerror, yylex): Now accepts parser_control * arg.
54284         (main) [TEST]: Use '\0' rather than 0 for char.
54285
54286 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54289
54290 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54293         It's now the caller's responsibility to handle the case where
54294         !HAVE_GETPAGESIZE && !defined getpagesize.
54295
54296         * lib/mktime.c (leapyear): Arg is long int, not int.
54297
54298 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54301
54302 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54303
54304         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54305         missing.  Problem reported by James Youngman.
54306
54307 2004-10-16  Simon Josefsson  <jas@extundo.com>
54308
54309         * gnulib-tool: Fix comments.  Fix parse problem.
54310         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54311
54312 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54315         implementation of getopt_long.  Problem reported by Alexander Taler in:
54316         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54317
54318 2004-10-15  Bruno Haible  <bruno@clisp.org>
54319
54320         * gnulib-tool: Untabify. Initialize supplied_libname.
54321         (func_usage): More homogenous output.
54322         (func_modules_transitive_closure, func_modules_to_filelist,
54323         func_emit_lib_Makefile_am): New functions.
54324         (func_import): New function, extracted from big case statement. Use
54325         func_get_license, func_modules_transitive_closure,
54326         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54327         opt_lgpl. Don't use test -a, as it's not portable.
54328         (func_create_testdir): Use func_modules_transitive_closure,
54329         func_modules_to_filelist, func_emit_lib_Makefile_am.
54330
54331 2004-10-15  Bruno Haible  <bruno@clisp.org>
54332
54333         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54334
54335 2004-10-15  Bruno Haible  <bruno@clisp.org>
54336
54337         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54338         the portions belonging to each module.
54339         Suggested by Derek Robert Price <derek@ximbiot.com>.
54340
54341 2004-10-12  Simon Josefsson  <jas@extundo.com>
54342
54343         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54344         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54345         to real functions.
54346
54347 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54348
54349         * modules/vsnprintf: New file.
54350
54351 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54352
54353         * m4/vsnprintf.m4: New file.
54354
54355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54356
54357         * lib/vsnprintf.h: New file.
54358         * lib/vsnprintf.c: New file.
54359
54360 2004-10-11  Bruno Haible  <bruno@clisp.org>
54361
54362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54363         vsnprintf.
54364
54365 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54366
54367         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54368
54369 2004-10-07  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54372         fits into the provided buffer.
54373
54374 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54375
54376         * lib/diacrit.c, diacrit.h: Add GPL notice.
54377
54378         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54379         notice.
54380         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54381         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54382         This avoids a potential constant-folding bug.
54383
54384 2004-10-05  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54387         for the declaration of strsep.
54388
54389 2004-10-05  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54392
54393 2004-10-04  Simon Josefsson  <jas@extundo.com>
54394
54395         * modules/memmem: New file.
54396         * tests/test-memmem.c: New file.
54397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54398
54399 2004-10-04  Simon Josefsson  <jas@extundo.com>
54400
54401         * m4/memmem.m4: New file.
54402
54403 2004-10-04  Simon Josefsson  <jas@extundo.com>
54404
54405         * lib/memmem.h: New file.
54406         * lib/memmem.c: New file, taken from glibc.
54407
54408 2004-10-04  Simon Josefsson  <jas@extundo.com>
54409
54410         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54411         '#ifdef USE_UNLOCKED_IO'.
54412
54413 2004-10-04  Simon Josefsson  <jas@extundo.com>
54414
54415         * config/srclist.txt: Add memmem from glibc.
54416
54417 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54418
54419         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54420
54421         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54422         modules/exclude, modules/getdate, modules/getline,
54423         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54424         modules/getusershell, modules/linebuffer, modules/md5,
54425         modules/mountlist, modules/posixtm, modules/readtokens,
54426         modules/readutmp, modules/regex, modules/sha1,
54427         modules/version-etc, modules/yesno:
54428         Remove dependency on unlocked-io.
54429
54430 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54431
54432         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54433
54434         * m4/unlocked-io.m4: Add copyright notice.
54435         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54436
54437 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54438
54439         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54440         * lib/xmalloc.c (xmemdup): Likewise.
54441         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54442         XFREE): Remove these long-obsolescent macros.
54443         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54444         * lib/xstrdup.c: Remove.
54445
54446         * lib/regex.c (re_comp): Cast gettext return value to char *,
54447         Problem reported by Martin Neitzel via Mark D. Baushke.
54448
54449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54452         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54453         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54454         regex.c, sha1.c, version-etc.c, yesno.c:
54455         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54456         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54457         the includer's responsibility.
54458
54459         Sync from coreutils.
54460
54461         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54462         points to the start of a string, as the C Standard says the
54463         resulting behavior is undefined.
54464
54465         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54466         simple -> simple_backups, numbered_existing ->
54467         numbered_existing_backups, numbered -> numbered_backups
54468         to avoid shadowing problems.  All uses changed.
54469         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54470         * lib/backupfile.c (check_extension, numbered_backup):
54471         Rename locals to avoid shadowing 'basename'.
54472         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54473         once.
54474
54475         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54476         * lib/.cvsignore: Add getopt.h.
54477
54478 2004-10-04  Bruno Haible  <bruno@clisp.org>
54479
54480         * modules/README: New file.
54481         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54482         not a module.
54483
54484 2004-10-02  Jim Meyering  <jim@meyering.net>
54485
54486         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54487
54488 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54489
54490         * modules/strsep: New file.
54491
54492 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54493
54494         * m4/strsep.m4: New file.
54495
54496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54497
54498         * lib/strsep.h: New file.
54499         * lib/strsep.c: New file.
54500
54501 2004-10-01  Simon Josefsson  <jas@extundo.com>
54502
54503         * lib/snprintf.c (snprintf): Handle size==0.
54504
54505 2004-10-01  Simon Josefsson  <jas@extundo.com>
54506             Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54509         (snprintf): Declare 'args'.
54510
54511 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * lib/snprintf.c: Remove comments as to why each header is needed.
54514
54515 2004-10-01  Bruno Haible  <bruno@clisp.org>
54516
54517         * MODULES.html.sh: Add strsep.
54518
54519 2004-09-30  Simon Josefsson  <jas@extundo.com>
54520
54521         * modules/snprintf: New file.
54522
54523 2004-09-30  Simon Josefsson  <jas@extundo.com>
54524
54525         * m4/snprintf.m4: New file.
54526
54527 2004-09-30  Simon Josefsson  <jas@extundo.com>
54528
54529         * lib/snprintf.h, lib/snprintf.c: New files.
54530
54531 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54532
54533         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54534         (hol_entry_help): Never translate an empty string.
54535         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54536         * lib/argp.h (OPTION_NO_TRANS): New option.
54537
54538 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54539
54540         * modules/argp (Maintainer): Replace Simon Josefsson
54541         by Sergey Poznyakoff.
54542
54543 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54544
54545         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54546         changes merged back into glibc.
54547
54548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54551
54552 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54553
54554         * lib/xvasprintf.c: Include xalloc.h.
54555         (xvasprintf): Use xalloc_die, not xmalloc_die.
54556
54557 2004-09-29  Bruno Haible  <bruno@clisp.org>
54558
54559         * modules/alloca-opt: New file, derived from modules/alloca.
54560         * modules/allocsa: Depend on alloca-opt instead of alloca.
54561         * modules/setenv: Likewise.
54562         * modules/vasnprintf: Likewise.
54563         * MODULES.html.sh: Add alloca-opt.
54564
54565 2004-09-28  Simon Josefsson  <jas@extundo.com>
54566
54567         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54568         LGPL, and to replace license template from GPL to LGPL.
54569
54570 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * modules/dummy: Change license to LGPL.
54573
54574 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54577
54578 2004-09-24  Simon Josefsson  <jas@extundo.com>
54579
54580         * modules/minmax (License): Change from GPL to LGPL.
54581
54582 2004-09-23  Simon Josefsson  <jas@extundo.com>
54583
54584         * gnulib-tool (--import): Typo.
54585
54586 2004-09-23  Simon Josefsson  <jas@extundo.com>
54587
54588         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54589
54590 2004-09-22  Bruno Haible  <bruno@clisp.org>
54591
54592         * modules/*: Add 'License' field.
54593         * gnulib-tool: Accept --extract-license option.
54594         (func_get_license): New function.
54595
54596 2004-09-21  Bruno Haible  <bruno@clisp.org>
54597
54598         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54599         Reported by Simon Josefsson.
54600
54601 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54604         gl_AC_TYPE_LONG_LONG.
54605
54606 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54607
54608         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54609
54610 2004-09-18  Simon Josefsson  <jas@extundo.com>
54611         and  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54614         calls with autoreconf.  Define GL_LIB.
54615
54616 2004-09-14  Karl Berry  <karl@gnu.org>
54617
54618         * config/srclist.txt: unsync setenv.c, sigh.
54619
54620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54623         Problem reported by Bruno Haible in:
54624         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54625
54626 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * config/srclist.txt: Comment out argp-pvh.c.
54629
54630 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54631
54632         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54633         in case some system header has #define'd it.  Problem reported by
54634         Soeren D. Schulze in
54635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54636
54637 2004-09-09  Karl Berry  <karl@gnu.org>
54638
54639         * regex.[ch]: delete from the root.  These were supposed to be
54640                 synced with emacs cvs, but this has not happened for about
54641                 a year, and anyway nothing else uses emacs regex.[ch].
54642                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54643                 lib/regex[.ch] is untouched.
54644
54645 2004-09-09  Bruno Haible  <bruno@clisp.org>
54646
54647         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54648
54649 2004-09-09  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54652         modifications.
54653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54654
54655 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54656
54657         * modules/xvasprintf: New file.
54658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54659
54660 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54661
54662         * lib/xvasprintf.h: New file.
54663         * lib/xvasprintf.c: New file.
54664         * lib/xasprintf.c: New file.
54665
54666 2004-09-08  Bruno Haible  <bruno@clisp.org>
54667
54668         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54669
54670 2004-09-08  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54673         length is > INT_MAX.
54674         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54675         more.
54676
54677 2004-09-08  Bruno Haible  <bruno@clisp.org>
54678
54679         * lib/stdint_.h: New file, taken from GNU clisp.
54680
54681 2004-09-08  Bruno Haible  <bruno@clisp.org>
54682             Oskar Liljeblad  <oskar@osk.mine.nu>
54683
54684         * modules/stdint: New file.
54685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54686
54687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         Import from coreutils.
54690         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54691         strings on unbounded length.  alloca's performance benefits aren't
54692         that important here.
54693         (V_STRDUP): Remove.
54694         (parse_with_separator): New function, with most of the internals
54695         of the old parse_user_spec.  Allow user to omit both user and group,
54696         for compatibility with FreeBSD.
54697         Clone only the user name, not the entire spec.
54698         Do not set *uid, *gid unless entirely successful.
54699         Avoid memory leak in some failing cases.
54700         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54701         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54702         (parse_user_spec): Rewrite to use parse_with_separator.
54703
54704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         * modules/userspec: Don't depend on alloca.
54707
54708 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54711
54712 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54713
54714         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54715         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54716         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54717
54718 2004-08-16  Simon Josefsson  <jas@extundo.com>
54719
54720         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54721         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54722         Add --dry-run for --import.
54723         Let user provided command line parameters override configure.ac
54724         settings.
54725
54726 2004-08-12  Simon Josefsson  <jas@extundo.com>
54727
54728         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54729         as discussed with Paul Eggert in threads rooted at
54730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54731         and
54732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54733         Before, the test was empty, and relied on ELIDE_CODE in source
54734         code.)
54735         (gl_PREREQ_GETOPT): New macro.
54736         (gl_GETOPT): Use them.
54737
54738 2004-08-12  Simon Josefsson  <jas@extundo.com>
54739
54740         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54741         * lib/getopt_.h: Renamed from getopt.h.
54742
54743 2004-08-12  Simon Josefsson  <jas@extundo.com>
54744
54745         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54746         Change default library name from libfoo to libgnu.
54747         Now, if you have a configure.ac that says:
54748                 gl_SOURCE_BASE(gl)
54749                 gl_M4_BASE(gl/m4)
54750                 gl_MODULES(error getopt etcetera)
54751                 gl_INIT
54752         you can import all you need by running:
54753                 ../gnulib/gnulib-tool --import
54754
54755         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54756         (Makefile.am): Rewrite, use logic from argz.
54757         (Include): Use <getopt.h> instead of "getopt.h".
54758
54759 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * modules/argp (Files): Add m4/unlocked-io.m4.
54762         (Depends-on): Add extensions.
54763
54764 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54765
54766         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54767         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54768         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54769         Check for program_invocation_name, program_invocation_short_name,
54770         flockfile, funlockfile, features.h, _getopt_long_only_r.
54771
54772 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54775         its complicated substitute.
54776         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54777         and program_invocation_name.
54778         (__argp_basename) [!_LIBC]: Remove; the only use was
54779         replaced by its body.
54780         (__argp_short_program_name): Change condition from
54781         !defined __argp_short_program_name to
54782         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54783         to match argp-namefrob.h.
54784         (__argp_failure): Don't assume strerror_r returns char *.
54785         * lib/argp-parse.c (N_): Define unconditionally.
54786         (argp_default_options): Fill out initializers with 0 to avoid
54787         gcc warnings.
54788
54789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54792         getopt1.c.
54793
54794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         Merge from coreutils.
54797
54798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54799
54800         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54801         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54802
54803 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54804
54805         Merge from coreutils.
54806
54807         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54808         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54809         for Reliant Unix 5.43.
54810
54811         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54812         (union fooround): Use uintmax_t, not long int.
54813         The rest is a merge from libc:
54814         [defined _LIBC]: Include <shlib-compat.h>.
54815         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54816
54817         * lib/settime.c (settime): Recode to avoid warning with
54818         Sun Forte C 6U2.
54819
54820         * lib/strverscmp.c: Convert to UTF-8.
54821
54822 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54823
54824         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54825         m4/uintmax_t.m4.
54826
54827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54828
54829         * modules/xalloc-die: New file.
54830         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54831
54832         * modules/md5 (Files): Add m4/uint32_t.m4.
54833         * modules/sha1: Renamed from modules/sha.
54834         (Files):
54835         Rename lib/sha.h to lib/sha1.h.
54836         Rename lib/sha.c to lib/sha1.c.
54837         Rename m4/sha.m4 to m4/sha1.m4.
54838         (lib_SOURCES): Likewise.
54839         (configure.ac): Rename gl_SHA to gl_SHA1.
54840         (Include): sha.h -> sha1.h.
54841
54842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54843
54844         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54845         * m4/sha1.m4: Renamed from sha.m4.
54846         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54847
54848 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54849
54850         * lib/obstack.h (obstack_empty_p):
54851         Don't assume that chunk->contents is suitably aligned.
54852         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54853         Likewise. Problem reported by Benno in
54854         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54855
54856         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54857         readable.  This could be improved further but it'd take some work.
54858
54859 2004-08-08  Simon Josefsson  <jas@extundo.com>
54860
54861         * modules/xgethostname (Depends-on): Remove exit and error (not
54862         used).
54863
54864         * modules/getpass-gnu: Add getpass.h.
54865         (Depends-on): Add stdbool.
54866         * modules/getpass: Add getpass.h.
54867
54868 2004-08-08  Simon Josefsson  <jas@extundo.com>
54869
54870         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54871         Check getpass declaration.
54872
54873 2004-08-08  Simon Josefsson  <jas@extundo.com>
54874
54875         * lib/xgethostname.c: Don't include error.h (not used).
54876
54877         * lib/getpass.h: Add.
54878         * lib/getpass.c: Include getpass.h first.
54879
54880 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54881
54882         * lib/xalloc-die.c: New file.
54883         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54884         All uses removed.
54885         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54886         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54887         xalloc-die.c.
54888         (_, N_, xalloc_die): Move to xalloc-die.c.
54889         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54890         so that we needn't mess with xalloc_msg_memory_exhausted.
54891
54892         * lib/sha1.h: Renamed from sha.h.
54893         (SHA1_H): Renamed from _SHA_H.
54894         (sha1_ctx): Renamed from sha_ctx.
54895         (sha1_init_ctx): Renamed from sha_init_ctx.
54896         (sha1_process_block): Renamed from sha_process_block.
54897         (sha1_process_bytes): Renamed from sha_process_bytes.
54898         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54899         (sha1_read_ctx): Renamed from sha_read_ctx.
54900         (sha1_stream): Renamed from sha_stream.
54901         (sha1_buffer): Renamed from sha_buffer.
54902         * lib/sha1.c: Likewise; renamed from sha.c.
54903         Do not include <sys/types.h>.
54904         Include <stddef.h> rather than <stdlib.h>.
54905
54906 2004-08-08  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54909         FILESYSTEM_PREFIX_LEN.
54910         * lib/progreloc.c: Likewise.
54911         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54912
54913 2004-08-06  Simon Josefsson  <jas@extundo.com>
54914
54915         * modules/progname (Depends-on): Don't depend on stdbool.
54916
54917 2004-08-06  Simon Josefsson  <jas@extundo.com>
54918
54919         * modules/getsubopt: New file.
54920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54921         getsubopt.
54922
54923 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54924
54925         More merge from coreutils.
54926
54927         * m4/utimens.m4, m4/utimecmp.m4: New files.
54928         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54929         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54930         prereq.m4, sha.m4: Import changes from coreutils.
54931
54932 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54933
54934         More merge from coreutils.
54935         * modules/raise, modules/readtokens0, modules/utimens:
54936         * modules/utimecmp, module/xnanosleep: New files.
54937         * modules/strftime: Add lib/strftime.h.
54938         Change include from <time.h> to "strftime.h".
54939         * modules/yesno: Add lib/yesno.h.
54940         * modules/backupfile: Remove lib/addext.c.
54941         * modules/euidaccess: Add stat-macros.h.
54942         * modules/canonicalize, modules/euidaccess,
54943         modules/filemode, modules/lchown, modules/makepath,
54944         modules/rmdir, modules/stat: Likewise.
54945
54946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         Merge from tar.
54949         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54950         SIZE_MAX is a valid preprocessor constant.
54951         (__argp_basename): Change from "#ifndef _LIBC"
54952         to "#ifndef __argp_short_program_name", so that
54953         we don't compile these functions for tar.
54954
54955         More merges from coreutils.
54956         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54957         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54958         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54959         * lib/addext.c: Remove; no longer needed.
54960         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54961         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54962         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54963         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54964         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54965         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54966         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54967         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54968         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54969         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54970         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54971         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54972         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54973         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54974         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54975         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54976         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54977         Import changes from coreutils.
54978
54979 2004-08-05  Simon Josefsson  <jas@extundo.com>
54980
54981         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54982
54983 2004-08-05  Simon Josefsson  <jas@extundo.com>
54984
54985         * m4/getsubopt.m4: New file.
54986
54987 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         Merge from coreutils.
54990
54991         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54992         * m4/getcwd-path-max.m4: New files.
54993
54994         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54995         FILESYSTEM_PREFIX_LEN ->
54996         FILE_SYSTEM_PREFIX_LEN.
54997         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54998         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54999         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55000         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55001
55002         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55003         prerequisite modules now handle the DOS stuff.
55004         Don't check for unistd.h.
55005
55006 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         Merge from coreutils.
55009
55010         * lib/.gdb-history: Remove; this doesn't belong here.
55011
55012         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55013         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55014         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55015         * lib/getcwd.c: New files.
55016
55017         * lib/dirname.h: Include <stdbool.h>.
55018         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55019         for consistency with POSIX terminology.  All uses changed.
55020         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55021         (strip_trailing_slashes): Use bool for booleans.
55022         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55023
55024         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55025         sometimes returns a positive errno value even when it succeeds.
55026         (print_errno_message) [!LIBC]: Fall back on strerror if
55027         __strerror_r fails.
55028
55029         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55030         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55031         (longest_relative_suffix): New function.
55032         (path_concat): Use it.  Assume first argument is not NULL.
55033         Port to DOS.  Omit redundant separators.
55034         Report an error instead of returning NULL.
55035         Use mempcpy instead of memcpy.
55036         (xpath_concat): Remove: not declared or used.
55037
55038         * lib/same.h: Include <stdbool.h>
55039         (same_name): Return bool, not int.
55040         * lib/same.c (same_name): Likewise.
55041         (errno): Don't declare; we assume C89 or better now.
55042
55043         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55044         if not already defined.
55045
55046         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55047         * lib/dup-safer.c (errno): Likewise.
55048
55049 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         Merge from coreutils.
55052         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55053         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55054         * modules/path-concat: Don't depend on strdup.
55055
55056 2004-08-03  Simon Josefsson  <jas@extundo.com>
55057
55058         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55059         * lib/progname.h: Don't include stdbool.h.
55060
55061 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55062
55063         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55064         * MODULES.html.sh (func_all_modules): Remove fatal.
55065
55066 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55067
55068         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55069
55070 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55073         working.
55074
55075 2004-08-02  Simon Josefsson  <jas@extundo.com>
55076
55077         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55078         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55079         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55080
55081 2004-08-01  Simon Josefsson  <jas@extundo.com>
55082
55083         * lib/xgetdomainname.c: Include stdlib.h, for free().
55084
55085 2004-07-19  Bruno Haible  <bruno@clisp.org>
55086
55087         * MODULES.html.sh (func_all_modules): Add dummy.
55088
55089 2004-07-16  Simon Josefsson  <jas@extundo.com>
55090
55091         * modules/dummy: New file.
55092
55093 2004-07-16  Simon Josefsson  <jas@extundo.com>
55094
55095         * lib/dummy.c: New file.
55096
55097 2004-07-16  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/backupfile.h: Add extern "C" for C++.
55100         * lib/closeout.h: Likewise.
55101         * lib/copy-file.h: Likewise.
55102         * lib/findprog.h: Likewise.
55103         * lib/full-write.h: Likewise.
55104         * lib/pathname.h: Likewise.
55105         * lib/progname.h: Likewise.
55106         * lib/stpcpy.h: Likewise.
55107         * lib/stpncpy.h: Likewise.
55108         * lib/strcase.h: Likewise.
55109         * lib/strstr.h: Likewise.
55110         * lib/xalloc.h: Likewise.
55111
55112         * lib/mbswidth.h: Add extern "C" for C++.
55113         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55114
55115 2004-07-13  Robert Millan  <robertmh@gnu.org>
55116
55117         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55118
55119 2004-07-09  Simon Josefsson  <jas@extundo.com>
55120
55121         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55122         failed without this.)
55123
55124 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55125
55126         * modules/chown (Files): Add lib/fchown-stub.c, since
55127         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55128
55129 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         * lib/fchown-stub.c: New file.
55132
55133 2004-06-24  Jim Meyering  <jim@meyering.net>
55134
55135         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55136
55137 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55138
55139         * modules/argz: Omit "#include".
55140
55141         * MODULES.html.sh (func_all_modules): Add calloc, to match
55142         2004-06-01 addition of calloc module.
55143
55144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         * m4/argz.m4: New file, which is autoupdated from libtool.
55147
55148 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55151         libtool.
55152
55153 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55154
55155         * config/srclist-update: Don't insist on "USA." before the
55156         close-comment, as libtool omits the period and puts the */ on a
55157         separate line.
55158         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55159         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55160
55161 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55162
55163         * modules/argz: New file.
55164         * MODULES.html.sh (func_all_modules): Add argz.
55165
55166 2004-06-12  Jim Meyering  <jim@meyering.net>
55167         and  Paul Eggert  <eggert@cs.ucla.edu>
55168
55169         * modules/hash (Files): Add lib/xalloc.h.
55170         * modules/pipe (Depends-on): Add wait-process.
55171         * modules/stat (Depends-on): Add xalloc.
55172         * modules/userspec (Files): Add lib/userspec.h.
55173         * modules/xstrto
55174
55175         Upgrade from gettext-0.13.
55176         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55177         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55178         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55179
55180 2004-06-10  Jim Meyering  <jim@meyering.net>
55181
55182         * lib/calloc.c: New file.
55183
55184 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         * lib/getdate.y (yylex): Allow space between sign and number.
55187         Problem reported by Dan Jacobson.
55188
55189 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55190
55191         Merge from coreutils CVS.
55192
55193         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55194         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55195         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55196         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55197         xstrtol.m4: Fix copyright date and/or serial number.
55198
55199         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55200         See if we need an fchown replacement.
55201         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55202         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55203         and use the replacement function if we detect either defect.
55204
55205         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55206         gl_UTIMECMP.
55207
55208 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55209         and  Jim Meyering  <jim@meyering.net>
55210
55211         Merge from coreutils CVS.
55212
55213         * lib/stat-macros.h: New file, with contents from file-type.h
55214         and coreutils' system.h.
55215         * lib/file-type.c: Include "stat-macros.h".
55216         * lib/file-type.h (file_type): Move all macro definitions to new file,
55217         stat-macros.h.
55218
55219         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55220         Wrap old code with this conditional.
55221         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55222         function that does not dereference symlinks.
55223         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55224
55225         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55226         dependency problems.
55227         (xreadlink): Accept new arg SIZE, for efficiency.
55228         All decls and uses changed.
55229         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55230
55231         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55232         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55233
55234         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55235         sysexits.h.
55236
55237 2004-06-01  Jim Meyering  <jim@meyering.net>
55238
55239         * m4/calloc.m4: New file.
55240
55241 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55242
55243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55244         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55245         Also, fix a typo in a diagnostic.
55246
55247 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55248
55249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55250         or AC_FUNC_REALLOC.
55251
55252 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55253
55254         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55255         macros to be defined.
55256         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55257         the allocator returns NULL because the requested size is zero.
55258
55259 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55262         var.  Add comment explaining why libc still defines it.  This
55263         merges the following patch from glibc:
55264         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55265
55266 2004-05-20  Andreas Schwab  <schwab@suse.de>
55267
55268         * m4/free.m4: Replace free if it not known to work, not the other
55269         way round.
55270
55271 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55274         present in glibc since revision 1.1 of this file.
55275         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55276         obstack_alignment_mask, obstack_alloc, obstack_base,
55277         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55278         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55279         obstack_grow0, obstack_init, obstack_int_grow,
55280         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55281         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55282         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55283         nonexistent functions.
55284
55285 2004-05-18  Karl Berry  <karl@gnu.org>
55286
55287         * config/srclist.txt: break link for vasnprintf.c.
55288
55289 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55290
55291         Port obstack to the AS/400, where pointers are 16 bytes wide and
55292         you cannot cast an integer to a valid pointer.  This patch is
55293         currently waiting to be integrated into glibc; see
55294         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55295
55296         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55297         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55298         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55299         (struct obstack): temp member is now a union of a pointer and
55300         an integer, instead of an integer.  All integer uses changed.
55301         This does not affect the physical layout of struct obstack,
55302         except on hosts (like the AS/400) where the size or alignment of
55303         void * is greater than that of ptrdiff_t.
55304         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55305         __STDC__)]: Store temporary in pointer member of union, not
55306         integer member.
55307         * lib/obstack.c: Include <stddef.h>, for offsetof.
55308         (struct fooalign): Remove; it doesn't need a name.
55309         (union fooround): Change double to long double, and add void *.
55310         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55311         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55312         not a macro.  Hence the values are always int; so remove all
55313         casts-to-int in uses.
55314
55315 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55316
55317         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55318         we can get this patch merged into glibc.
55319
55320 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55321             Paul Eggert  <eggert@cs.ucla.edu>
55322
55323         * m4/argp: Depend on alloca.
55324
55325 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55326             Paul Eggert  <eggert@cs.ucla.edu>
55327
55328         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55329         freecoding.
55330
55331 2004-05-17  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55334         precision that consists of a '.' followed by an empty digit string.
55335         Patch by Tor Lillqvist <tml@iki.fi>.
55336
55337 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55338
55339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55340         for backward compatibility with older code.  We need our own
55341         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55342         it under some other name, and our alloca.h will define it.
55343
55344 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55345             Derek Price  <derek@ximbiot.com>
55346
55347         * lib/alloca.c: Include <alloca.h>, to get our interface.
55348         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55349         include <alloca.h> first.  Use C89 prototype for alloca; this
55350         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55351         Use #elif for simplicity, since we can assume C89 now.
55352         Don't try to source the system alloca.h since it will not be found
55353         and to prevent recursively including its replacement.
55354         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55355         * lib/regex.c: Likewise.
55356
55357 2004-05-16  Derek Price  <derek@ximbiot.com>
55358             Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         getline cleanup.  This changes the getndelim2 API: both order of
55361         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55362         no delimiter).
55363
55364         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55365         interface does that.
55366         (getline): Always use getdelim, so that we don't have two
55367         copies of this code.
55368         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55369         if available.
55370         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55371         (GETNDELIM2_MAXIMUM): New macro.
55372         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55373         instead of the old practice of delim2==0.  All callers changed.
55374         Return -1 on overflow, instead of returning junk.
55375         Do not set *linesize unless allocation succeeds.
55376         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55377         that we include sys/types.h.
55378         * lib/getnline.h: Likewise.
55379         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55380         (getndelim2): Reorder arguments.
55381         * lib/getnline.c (getnline, getndelim):
55382         Don't discard the NMAX argument.
55383         (getnline): Invoke getndelim, to avoid code duplication.
55384         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55385         of (size_t) -1 by callers of the getnline family.
55386
55387 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55388
55389         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55390         Check for gettimeofday.
55391         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55392         Check for settimeofday, stime.
55393
55394 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         * lib/nanosleep.c (suspended): Change its type from int to
55397         sig_atomic_t volatile.
55398         (first_call): Make it private to rpl_nanosleep, and have it
55399         be zero initially as that's a bit faster.
55400         (my_usleep): Round up fractional times instead of truncating them,
55401         as this is the usual meaning for 'sleep'.
55402
55403         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55404         doesn't work.
55405         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55406         (ENOSYS): Define if not defined.
55407         (settime): Fall back on stime if it exists and settimeofday fails.
55408         But don't bother with fallbacks if a method fails with errno == EPERM.
55409
55410 2004-05-11  Jim Meyering  <jim@meyering.net>
55411
55412         Prior to this change, the save_cwd caller required read access to the
55413         current directory on most systems (ones with the fchdir function).
55414
55415         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55416         fails, try write-only, and finally, resort to using xgetcwd.
55417
55418 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55419
55420         * lib/obstack.c, obstack.h: Import changes from libc.
55421
55422 2004-04-28  Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55425         also implicitly appends .exe to executables.
55426         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55427         accepts Windows pathnames.
55428         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55429         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55430         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55432         Reported by Derek Robert Price <derek@ximbiot.com>.
55433
55434 2004-04-21  Karl Berry  <karl@gnu.org>
55435
55436         * config/srclist.txt (localcharset.c): break sync.
55437
55438 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55439
55440         * m4/host-os.m4: Add a copyright notice.
55441
55442 2004-04-20  Jim Meyering  <jim@meyering.net>
55443
55444         Change UTILS_ to gl_ in AC_DEFINE'd names.
55445         Change utils_- and jm_-prefixed variables, too.
55446         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55447         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55449
55450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55451         Don't emit trailing blanks.
55452         Also rename jm_-prefixed variables to have gl_ prefix.
55453
55454         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55455         Also rename jm_-prefixed variables to have gl_ prefix.
55456
55457         * m4/jm-macros.m4: Reflect the renamings.
55458         * m4/prereq.m4: Likewise.
55459
55460 2004-04-20  Jim Meyering  <jim@meyering.net>
55461
55462         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55463         memory.
55464
55465 2004-04-20  Jim Meyering  <jim@meyering.net>
55466             Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55469         memory when realloc fails.
55470
55471 2004-04-19  Jim Meyering  <jim@meyering.net>
55472
55473         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55474         now that readutmp.c may call `free (0)'.
55475
55476 2004-04-19  Bruno Haible  <bruno@clisp.org>
55477
55478         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55479         * m4/inttypes_h.m4: Likewise.
55480         * m4/stdint_h.m4: Likewise.
55481         * m4/intmax_t.m4: Likewise.
55482         * m4/uintmax_t.m4: Likewise.
55483
55484 2004-04-18  Jim Meyering  <jim@meyering.net>
55485
55486         * m4/prereq.m4: Don't forbid jm_ prefix.
55487
55488         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55489         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55490         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55491         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55492         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55493         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55494         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55495         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55496         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55497         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55498         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55499         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55500         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55501         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55502         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55503         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55504         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55505         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55506         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55507
55508 2004-04-18  Jim Meyering  <jim@meyering.net>
55509
55510         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55511         failure, don't leak memory and do call END_UTMP_ENT.
55512
55513 2004-04-16  Jim Meyering  <jim@meyering.net>
55514
55515         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55516         coreutils' stat program.
55517         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55518
55519 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55520
55521         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55522         C89.
55523         (CHAR_BIT): Remove, since we assume C89.
55524         Include <stdint.h> if available, as per current Autoconf CVS advice.
55525
55526 2004-03-31  Jim Meyering  <jim@meyering.net>
55527
55528         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55529         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55530         * m4/xalloc.m4: Likewise.
55531
55532 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55533
55534         Merge from coreutils.
55535
55536         * m4/inttostr.m4: New file.
55537         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55538         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55539         Require gl_CLOCK_TIME.
55540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55541
55542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55543
55544         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55545         not bool, to be more consistent with Unix conventions.
55546         Suggested by Bruno Haible.
55547
55548         Merge from coreutils.
55549
55550         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55551         * lib/umaxtostr.c: New files.
55552
55553         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55554         the usual <time.h> dance.
55555         (get_date): Change signature to support fractional time stamps.
55556         All callers changed.
55557         * lib/getdate.y: Include "getdate.h" first, as we can now
55558         assume C89 and don't need to worry about 'const'.
55559         Similarly, include "unlocked-io.h" near start, not in middle.
55560         Include <limits.h>.
55561         (textint.value): Use long int rather than int.
55562         (textint.digits): Use size_t rather than int.
55563         (BILLION, LOG10_BILLION): New constants.
55564         (parser_control): New member rel_ns.  Members day_ordinal,
55565         time_zone, month, day, hour, minutes, rel_year, rel_month,
55566         rel_day, rel_hour, rel_minutes, rel_seconds
55567         are now long int, not int.  Member seconds is now struct timespec,
55568         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55569         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55570         not int.
55571         (%union.intval): Now long int, not int.
55572         New member timespec.
55573         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55574         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55575         (spec): Now is a timespec or an item list.
55576         (timespec, items): New nonterminals.
55577         (time, rel, relunit, number, get_date):
55578         Add support for fractional seconds.
55579         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55580         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55581         (to_hour): First arg is now long int, not int.
55582         (to_year): Returns long int, not int.
55583         Don't treat year -70 like 70.
55584         (tm_diff): Returns long int, not int.
55585         (lookup_word): Use bool instead of int when appropriate.
55586         (yylex): Use size_t for count, not int.
55587         Detect overflow when parsing large integer constants.
55588         Add support for fractions.
55589         (get_date): Make pointers 'const' if possible.
55590         Use more-portable code to detect integer overflow.
55591         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55592         Don't use ctime; it's not reliable if the year has >4 digits.
55593
55594         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55595         This is for compatibility with BSD.
55596
55597         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55598         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55599         From coreutils' system.h.
55600
55601         * lib/userspec.c: Don't include "posixver.h".
55602         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55603         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55604         compatible extension.  Simplify code by removing a boolean int
55605         that was always nonzero if a string was nonnull.
55606
55607 2004-03-30  Jim Meyering  <jim@meyering.net>
55608
55609         Merge from coreutils.
55610
55611         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55612         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55613         on some systems one must include <grp.h> before it.
55614         Reported by Christian Krackowizer.
55615
55616 2004-03-30  Jim Meyering  <jim@meyering.net>
55617
55618         Merge from coreutils.
55619
55620         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55621
55622         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55623         an empty input stream.
55624
55625         * lib/readtokens.c: Include <stdbool.h>.
55626         (readtoken): Use `size_t' rather than int/long.
55627         All callers adjusted.
55628         Use `bool' rather than `int' where appropriate.
55629         Use memset rather than an explicit loop.
55630         Use x2nrealloc rather than xrealloc.
55631         Allow the use of `\0' as a delimiter.
55632         (readtokens): Likewise.
55633         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55634
55635 2004-03-30  Jim Meyering  <jim@meyering.net>
55636
55637         * m4/realloc.m4: Remove file, since now it does no more than
55638         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55639         the `configure.ac' section of module/realloc.
55640         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55641
55642 2004-03-30  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55645         nonnull.
55646
55647 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55648
55649         Merge changes to getloadavg.c from coreutils and Emacs.
55650
55651         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55652         Define to an expression, not to the empty string.
55653         Include cloexec.h and xalloc.h.
55654         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55655         Use set_cloexec_flag rather than rolling our own.
55656         * lib/cloexec.c, lib/cloexec.h: New files.
55657
55658 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55659
55660         * m4/cloexec.m4: New file.
55661
55662 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55663
55664         * lib/getopt.h: Sync with libc CVS.
55665
55666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55667             Bruno Haible  <bruno@clisp.org>
55668
55669         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55670         mbswidth.
55671
55672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55673             Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/mbswidth.h: Include <wchar.h> only if
55676         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55677         <wchar.h>.
55678         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55679
55680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55681
55682         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55683         Sync with libc CVS.
55684         * lib/getopt_int.h: New file, also synced from libc.
55685
55686 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55687
55688         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55689         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55690         Bring back getopt.c, getopt.h, getopt1.c.
55691
55692 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55693
55694         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55695         All uses changed.  Check for sa_sigaction member; this fixes
55696         a bug first reported by Jason Andrade in
55697         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55698
55699 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55700
55701         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55702         '#if' expressions.  Unlike the code it replaces, it does not
55703         depend on (defined _SC_PAGESIZE).  However, it does depend on
55704         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55705         first reported by Jason Andrade in
55706         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55707
55708 2004-02-25  Simon Josefsson  <jas@extundo.com>
55709
55710         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55711
55712 2004-02-25  Simon Josefsson  <jas@extundo.com>
55713
55714         * lib/strdup.h: New file.
55715         * lib/strdup.c: Include it.
55716         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55717         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55718
55719 2004-02-23  Karl Berry  <karl@gnu.org>
55720
55721         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55722         (from fencepost.gnu.org:/gd/gnuorg).
55723
55724 2004-02-23  Karl Berry  <karl@gnu.org>
55725
55726         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55727         * config/srclist.txt: add maintain/standards documents.
55728
55729 2004-02-18  Bruno Haible  <bruno@clisp.org>
55730
55731         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55732         Reported by Derek Robert Price <derek@ximbiot.com>.
55733
55734 2004-02-16  Karl Berry  <karl@gnu.org>
55735
55736         * config/mkinstalldirs, install-sh: update from automake.
55737
55738 2004-02-06  Karl Berry  <karl@gnu.org>
55739
55740         * m4/po.m4: update from gettext 0.14.1.
55741
55742 2004-02-06  Karl Berry  <karl@gnu.org>
55743
55744         * lib/config.charset: update from gettext 0.14.1.
55745
55746 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55747
55748         Add comments and code, prompted by suggestions from Bruno Haible
55749         for sh-quote.
55750         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55751         describing the enum quoting_style values.
55752         * lib/quotearg.c (quotearg_alloc): New function.
55753         (quotearg_buffer_restyled): Treat lone { and } as special.
55754         Treat = as special.  Work around bug with older shells
55755         that "see" a '\' that is really the 2nd byte of a multibyte char.
55756         Quote empty string with shell_quoting_style.
55757
55758 2004-02-03  Bruno Haible  <bruno@clisp.org>
55759
55760         * m4/pipe.m4: New file, from GNU gettext.
55761
55762 2004-02-03  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/pipe.h: New file, from GNU gettext.
55765         * lib/pipe.c: New file, from GNU gettext.
55766
55767 2004-01-27  Bruno Haible  <bruno@clisp.org>
55768
55769         * m4/execute.m4: New file, from GNU gettext.
55770
55771 2004-01-27  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/execute.h: New file, from GNU gettext.
55774         * lib/execute.c: New file, from GNU gettext.
55775         * lib/w32spawn.h: New file, from GNU gettext.
55776
55777 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55778
55779         Merge from diffutils.
55780
55781         * lib/file-type.c (file_type): Add typed memory objects.
55782         * lib/file-type.h (S_TYPEISTMO): New macro.
55783
55784         * lib/c-stack.h (c_stack_action): Remove argv argument.
55785         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55786         (die): Don't calculate message unless segv_action returns.
55787         (get_stack_location, min_address_from_argv, max_address_from_argv,
55788         volatile stack_base, volatile_stack_size): Remove.
55789         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55790         that every segmentation violation is a stack overflow.  (Ouch!)
55791         See Debian bug 136249 (still outstanding) for more info about why
55792         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55793
55794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55795
55796         Exit-status fix from coreutils.
55797
55798         Use exit_failure consistently in place of EXIT_FAILURE,
55799         so that program exit statuses are consistent on failure.
55800
55801         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55802         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55803         * lib/argmatch.h: Comment fix to match the above.
55804         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55805         Now a macro referring to exit_failure, instead of a separate
55806         variable.  Include "exitfail.h" to get it.
55807         * lib/xstrtol.h: Include "exitfail.h".
55808         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55809
55810         * lib/long-options.c (parse_long_options): Use prototype
55811         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55812         for clarity.
55813
55814 2004-01-21  Jim Meyering  <jim@meyering.net>
55815
55816         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55817         so as not to conflict with a different-sized __mktime_internal
55818         function in GNU libc.
55819         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55820         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55821
55822 2004-01-20  Karl Berry  <karl@gnu.org>
55823
55824         * config/config.guess: update from config.
55825
55826         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55827
55828 2004-01-20  Bruno Haible  <bruno@clisp.org>
55829
55830         Safer stack allocation.
55831         * lib/setenv.c: Include allocsa.h.
55832         (alloca): Remove fallback definition.
55833         (freea): Remove macro.
55834         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55835         instead of freea.
55836
55837 2004-01-20  Bruno Haible  <bruno@clisp.org>
55838
55839         * m4/eealloc.m4: New file, from GNU gettext.
55840
55841 2004-01-20  Bruno Haible  <bruno@clisp.org>
55842
55843         * m4/allocsa.m4: New file, from GNU gettext.
55844
55845 2004-01-20  Bruno Haible  <bruno@clisp.org>
55846
55847         * lib/xallocsa.h: New file, from GNU gettext.
55848         * lib/xallocsa.c: New file, from GNU gettext.
55849
55850 2004-01-20  Bruno Haible  <bruno@clisp.org>
55851
55852         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55853
55854 2004-01-20  Bruno Haible  <bruno@clisp.org>
55855
55856         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55857         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55858         specially.
55859
55860 2004-01-20  Bruno Haible  <bruno@clisp.org>
55861
55862         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55863         patch.
55864
55865 2004-01-20  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55868
55869 2004-01-20  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/eealloc.h: New file.
55872
55873 2004-01-20  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/binary-io.h: Avoid warnings on Cygwin.
55876
55877 2004-01-20  Bruno Haible  <bruno@clisp.org>
55878
55879         * lib/allocsa.h: New file, from GNU gettext.
55880         * lib/allocsa.c: New file, from GNU gettext.
55881
55882 2004-01-18  Karl Berry  <karl@gnu.org>
55883
55884         * doc/gpl.texi, doc/lgpl.texi: new files.
55885
55886 2004-01-18  Karl Berry  <karl@gnu.org>
55887
55888         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55889         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55890
55891 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55892
55893         Merge from coreutils.
55894
55895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55896         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55897         (gl_DEFAULT_POSIX2_VERSION): Move
55898         the documentation from 'configure' into 'config.hin',
55899         so that 'configure --help' isn't burdened by it and
55900         we don't have to worry about its formatting there.
55901         Reword the documentation so that it's more succinct
55902         and can be run together into a single paragraph.
55903         * m4/same.m4 (gl_SAME): Check for pathconf.
55904
55905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55906
55907         Merge from coreutils.
55908
55909         * lib/posixver.c: Include posixver.h.
55910
55911         * lib/same.c: Include <stdbool.h>, <limits.h>.
55912         (_POSIX_NAME_MAX): Define if not defined.
55913         (MIN): New macro.
55914         (same_name): If file names are silently truncated, report
55915         that the file names are the same if they are the same after
55916         the silent truncation.
55917
55918         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55919         conversion function.
55920         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55921         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55922         longer needed.
55923
55924 2004-01-15  Jim Meyering  <jim@meyering.net>
55925
55926         Merge from coreutils.
55927
55928         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55929         if no library is required.
55930         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55931         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55932         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55933         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55934         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55935         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55936         value, $ac_cv_search_crypt, if it's "none required".
55937         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55938         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55939         not gl_FUNC_GETLOADAVG.
55940         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55941         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55942
55943 2004-01-15  Jim Meyering  <jim@meyering.net>
55944
55945         Merge from coreutils.
55946
55947         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55948         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55949         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55950
55951         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55952         optional configure-time default.
55953
55954         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55955
55956         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55957
55958 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55959
55960         Merge from coreutils.
55961
55962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55963         value, $ac_cv_search_nanosleep, if it's "none required".
55964
55965 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55966
55967         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55968         with like-named macro in fnmatch.c.
55969         (EXT): Use an internal constant instead.
55970
55971         Merge fnmatch patches from glibc.
55972         * lib/fnmatch.c (mbsinit): Remove define.
55973         Add libc_hidden_ver (__fnmatch, fnmatch).
55974         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55975         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55976
55977 2004-01-14  Karl Berry  <karl@gnu.org>
55978
55979         * config/install-sh: update from automake.
55980
55981 2004-01-13  Karl Berry  <karl@gnu.org>
55982
55983         * config/install-sh: update from automake.
55984
55985 2004-01-09  Karl Berry  <karl@gnu.org>
55986
55987         * config/install-sh: update from automake.
55988
55989 2004-01-05  Karl Berry  <karl@gnu.org>
55990
55991         * config/config.{sub,guess}: update from config.
55992
55993 2003-12-31  Karl Berry  <karl@gnu.org>
55994
55995         * config/depcomp: update from automake.
55996
55997 2003-12-14  Karl Berry  <karl@gnu.org>
55998
55999         * lib/config.charset: update from gettext-runtime.
56000
56001 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56002
56003         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56004         Bug reported by Alfred M. Szmidt.
56005
56006 2003-12-03  Bruno Haible  <bruno@clisp.org>
56007
56008         * m4/gettext.m4: Upgrade from gettext-0.13.
56009         * m4/po.m4: Upgrade from gettext-0.13.
56010         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56011         * m4/intmax.m4: New file, from gettext-0.13.
56012         * m4/printf-posix.m4: New file, from gettext-0.13.
56013
56014 2003-11-29  Karl Berry  <karl@gnu.org>
56015
56016         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56017
56018 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56019             Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/printf-parse.h: Don't include sys/types.h.
56022         (ARG_NONE): New macro.
56023         (char_directive): Change type of *arg_index fields to size_t.
56024         * lib/printf-parse.c: Don't include sys/types.h.
56025         (SSIZE_MAX): Remove macro.
56026         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56027         Remove unnecessary overflow check.
56028         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56029         fields.
56030
56031 2003-11-25  Bruno Haible  <bruno@clisp.org>
56032
56033         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56034
56035 2003-11-25  Bruno Haible  <bruno@clisp.org>
56036
56037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56038         gt_TYPE_SSIZE_T.
56039
56040 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56041
56042         * modules/alloca: Remove dependency on xalloc.
56043
56044 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56045
56046         * lib/alloca.c: Remove dependency on xalloc module.
56047         (xalloc_die): Remove.
56048         (memory_full) [!defined emacs]: New macro.
56049         [!defined emacs]: Don't include xalloc.h.
56050         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56051         address arithmetic overflows.  Change datatypes a bit to avoid
56052         unnecessary casts.
56053
56054 2003-11-22  Jim Meyering  <jim@meyering.net>
56055
56056         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56057         s/size/size_t/.
56058
56059 2003-11-21  Karl Berry  <karl@gnu.org>
56060
56061         * config/config.{sub,guess}: update from config.
56062
56063 2003-11-18  Karl Berry  <karl@gnu.org>
56064
56065         * config/config.{sub,guess}: update from config.
56066
56067         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56068
56069 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56070
56071         * README: Mention that S+T cannot overflow if S is the size of
56072         an existing object and T is sufficiently small.
56073
56074 2003-11-17  Jim Meyering  <jim@meyering.net>
56075
56076         On systems without utime and without a utimes function capable of
56077         dealing with a NULL struct utimbuf* argument, this utime replacement
56078         could -- in unusual circumstances -- leak a file descriptor.
56079         * lib/utime.c: Include <unistd.h> and <errno.h>.
56080         (utime_null): Be sure to close `fd' and to preserve errno.
56081         Reported by Geoff Collyer via Arnold Robbins.
56082
56083 2003-11-17  Bruno Haible  <bruno@clisp.org>
56084
56085         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56086         (Depends-on): Add xsize.
56087
56088 2003-11-17  Bruno Haible  <bruno@clisp.org>
56089
56090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56091
56092 2003-11-17  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/vasnprintf.c (alloca): Remove fallback definition.
56095         (freea): Remove definition.
56096         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56097         Reported by Paul Eggert.
56098
56099 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56100             Bruno Haible  <bruno@clisp.org>
56101
56102         Protect against address arithmetic overflow.
56103         * lib/printf-args.h: Include stddef.h.
56104         (arguments): Change type of field 'count' to size_t.
56105         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56106         'unsigned int' where appropriate.
56107         * lib/printf-parse.h: Include sys/types.h.
56108         (char_directive): Change type of *arg_index fields to ssize_t.
56109         (char_directives): Change type of fields 'count', max_*_length to
56110         size_t.
56111         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56112         (SSIZE_MAX): Define fallback value.
56113         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56114         instead of 'int' where appropriate. Check a_allocated, d_allocated
56115         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56116         * lib/vasnprintf.c: Include xsize.h.
56117         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56118         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56119         overflow. Avoid wraparound when converting a width or precision from
56120         decimal to binary.
56121
56122 2003-11-16  Bruno Haible  <bruno@clisp.org>
56123
56124         Update from GNU gettext.
56125         * lib/printf-parse.c: Generalize to it can be compiled for wide
56126         strings.
56127         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56128         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56129         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56130         SNPRINTF): New macros.
56131         Don't include <alloca.h> if the file is used inside libintl.
56132         (local_wcslen): New function, for Solaris 2.5.1.
56133         (VASNPRINTF): Use it instead of wcslen.
56134
56135 2003-11-16  Bruno Haible  <bruno@clisp.org>
56136
56137         * lib/xsize.h (xmax): New function.
56138         (xsum, xsum3, xsum4): Declare as "pure" functions.
56139
56140 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56141
56142         * modules/xalloc (Files): Undo latest change, since xalloc.h
56143         no longer needs SIZE_MAX or PTRDIFF_MAX.
56144
56145 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56146
56147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56148         gl_PTRDIFF_MAX.
56149
56150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56151
56152         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56153         "return", to pacify some unknown compiler.  Problem reported
56154         by Joerg Schilling.
56155
56156 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56157
56158         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56159         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56160         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56161         heuristic is just as accurate as far as we know, and it removes a
56162         dependency on size_max.m4 and ptrdiff_max.m4.
56163
56164 2003-11-11  Bruno Haible  <bruno@clisp.org>
56165
56166         * modules/xsize (Files): Add m4/size_max.m4.
56167         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56168
56169 2003-11-11  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/size_max.m4: New file.
56172         * m4/ptrdiff_max.m4: New file.
56173         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56175         (gl_XALLOC): Invoke it.
56176
56177 2003-11-11  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56180         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56181         defined.
56182
56183 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56184
56185         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56186         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56187         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56188         From Bruno Haible.
56189         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56190         not (size_t) -1, since it's defined here.
56191
56192 2003-11-09  Karl Berry  <karl@gnu.org>
56193
56194         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56195
56196 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56197
56198         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56199         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56200         Reject sizes of exactly SIZE_MAX bytes.
56201         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56202         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56203
56204 2003-11-05  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56207         SIZE_MAX defined in <limits.h> on Solaris.
56208
56209 2003-11-04  Jim Meyering  <jim@meyering.net>
56210
56211         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56212         variable names, rather than @VAR@.
56213         * modules/poll: Likewise.
56214
56215 2003-11-04  Bruno Haible  <bruno@clisp.org>
56216
56217         * modules/xsize: New file.
56218         * modules/linebreak: Depend on xsize.
56219         * MODULES.html.sh (func_all_modules): Add xsize.
56220
56221 2003-11-04  Bruno Haible  <bruno@clisp.org>
56222
56223         * m4/xsize.m4: New file.
56224
56225 2003-11-04  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/xsize.h: New file.
56228         * lib/linebreak.c: Include xsize.h.
56229         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56230         argument for overflow.
56231         Suggested by Paul Eggert.
56232
56233 2003-11-03  Karl Berry  <karl@gnu.org>
56234
56235         * config/config.{guess,sub}: update from config.
56236
56237 2003-11-03  Jim Meyering  <jim@meyering.net>
56238
56239         * modules/userspec (lib_SOURCES): Add userspec.h.
56240         (Include): Add "userspec.h".
56241         Improve description.
56242
56243 2003-11-03  Jim Meyering  <jim@meyering.net>
56244
56245         * lib/userspec.c: Include "userspec.h".
56246         * lib/userspec.h: New file.
56247
56248 2003-11-03  Bruno Haible  <bruno@clisp.org>
56249
56250         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56251
56252 2003-11-03  Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56255         available, to avoid (extremely rare) race condition.
56256         Suggested by Paul Eggert.
56257
56258 2003-11-02  Karl Berry  <karl@gnu.org>
56259
56260         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56261
56262 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56263
56264         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56265         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56266         (read_filesystem_list): Set and use me_type_malloced.
56267         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56268         whatever the type happens to be), for brevity and consistency.
56269         Check for size calculation overflow on Alphas running OSF/1.
56270
56271 2003-10-31  Jim Meyering  <jim@meyering.net>
56272
56273         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56274
56275         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56276
56277 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56278             Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56281         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56282
56283 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56284
56285         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56286         netbsd*-gnu*.  Suggested by Robert Millan.
56287
56288 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56289
56290         * modules/group-member: Depend on stdbool.
56291
56292 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56293
56294         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56295
56296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56297
56298         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56299         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56300         after the 'gnu' in these cases.  This fixes some bugs in the
56301         previous change, and is based on suggestions by Robert Millan.
56302
56303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56304
56305         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56306         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56307         no longer needed.
56308         * lib/quotearg.c (quotearg_n_options): Use it.
56309         * lib/group-member.c: Include <stdbool.h>.
56310         (free_group_info): Arg is now const *; don't free arg.
56311         (get_group_info): Now returns bool and accepts struct group_info *,
56312         rather than returning a malloc'ed struct group_info *.
56313         All uses changed.  Check for overflow in internal size calculation.
56314
56315         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56316         rather than xmalloc/xrealloc.
56317         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56318         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56319         conformance bug: the old code used a pointer after freeing the
56320         storage that it addressed.
56321         * lib/hash.c (hash_initialize): Simplify the code by using
56322         xalloc_oversized rather than doing it by hand.
56323         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56324         the buffer preserved.  Use free and xmalloc instead.
56325         * lib/quotearg.c (quotearg_n_options): Likewise.
56326         Use a simpler test for size overflow.  Don't use xalloc_oversized
56327         because unsigned int might be wider than size_t (!); this suggests
56328         that we should switch from unsigned int to size_t for slot numbers.
56329
56330 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56331
56332         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56333         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56334         NetBSD kernels.  Requested by Richard Stallman.
56335
56336 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56337
56338         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56339         to allocate the returned structure.  Do not allocate a subarray,
56340         as x2nrealloc will do that.
56341         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56342         instead of xnrealloc.
56343         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56344
56345 2003-10-27  Bruno Haible  <bruno@clisp.org>
56346
56347         * lib/stdbool_.h: Better support for BeOS.
56348
56349 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56350
56351         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56352         now uses inline.
56353
56354 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56355
56356         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56357         callers that want to do their own size-overflow checking.  Include
56358         <stdbool.h>, since xalloc_oversized returns bool.
56359         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56360         to use xalloc_oversized.
56361
56362         Add two functions x2realloc, x2nrealloc, for programs that grow
56363         arrays dynamically by doubling their sizes.
56364         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56365         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56366         New functions.
56367
56368         Port to C99 semantics for 'inline' of external functions.
56369         Bug reported by Bruno Haible.
56370         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56371         with the old contents of xnmalloc.
56372         (xnmalloc, xmalloc): Use it.
56373         (xnrealloc_inline): New static inline function,
56374         with the old contents of xnrealloc.
56375         (xnrealloc, xrealloc): Use it.
56376
56377         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56378         that.
56379
56380 2003-10-26  Karl Berry  <karl@gnu.org>
56381
56382         * config/srclist.txt (COPYING.DOC): no longer available from
56383         /gd/gnuorg; don't know where the ultimate source is.
56384
56385 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56386
56387         Fix several address-calculation bugs in the hash modules,
56388         plus some minor code cleanup.
56389
56390         * lib/hash.h: Include <stdbool.h>, for bool.
56391         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56392         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56393         hash_get_n_entries, hash_get_max_bucket_length,
56394         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56395         hash_rehash): Use size_t rather than unsigned.
56396         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56397         hash_get_n_buckets_used, hash_get_n_entries,
56398         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56399         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56400         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56401         Likewise.
56402         (SIZE_MAX): Define if not defined.
56403         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56404         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56405         hash_print):
56406         Use const * when possible.
56407         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56408         (check_tuning): Fix bug: if tuning parameters were very close to
56409         0 or 1, rounding errors could have caused subscript violations.
56410         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56411         (hash_initialize): Add 'fail:' label
56412         to free table and return NULL, and use it to simplify code.
56413         Use calloc rather than clearing the storage ourself.
56414         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56415         buffer size calculations.
56416         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56417         Include <stddef.h>, for size_t.
56418         * lib/hash-pjw.c (hash_pjw): Likewise.
56419         Switch to method described by Bruno Haible.
56420         Include <limits.h>, for CHAR_BIT.
56421         (SIZE_BITS): New macro.
56422
56423 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56424
56425         * m4/getline.m4 (AM_FUNC_GETLINE):
56426         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56427         hosts.  Problem reported by Derek Robert Price in
56428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56429         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56430         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56431
56432 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56433
56434         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56435         ceiling the allocation at NMAX bytes rather than silently
56436         discarding input bytes before NMAX is reached.  This makes
56437         a difference only if NMAX exceeds SIZE_MAX / 2.
56438
56439         * lib/obstack.c: Merge from glibc.
56440         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56441         Add libc_hidden_def (_obstack_newchunk).
56442         (_obstack_free) [! defined _LIBC]: Remove.
56443         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56444         a clone of the function body.
56445         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56446         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56447
56448         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56449         glibc.
56450         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56451         arg to memcpy.
56452
56453         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56454         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56455         Don't use lvalue casts, as GCC plans to remove support for them
56456         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56457         was also present in the non-GCC version, indicating that this
56458         code had always been buggy and had never been widely used.
56459         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56460         Use the fast variant of each macro, rather than copying the
56461         definiens of the fast variant; that way, we'll be more likely to
56462         catch future bugs in the fast variants.
56463
56464 2003-10-20  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/wait-process: New file.
56467         * MODULES.html.sh (func_all_modules): Add wait-process.
56468
56469 2003-10-20  Bruno Haible  <bruno@clisp.org>
56470
56471         * m4/wait-process.m4: New file.
56472
56473 2003-10-20  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/wait-process.h: New file, from GNU gettext.
56476         * lib/wait-process.c: New file, from GNU gettext.
56477
56478 2003-10-19  Jim Meyering  <jim@meyering.net>
56479
56480         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56481         HPUX 10.20.
56482
56483 2003-10-18  Karl Berry  <karl@gnu.org>
56484
56485         * config/config.guess: update from config.
56486
56487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56488
56489         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56490         (getgroups): First arg is int, not size_t.
56491         Don't let 'free' mangle errno.
56492
56493 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56494
56495         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56496
56497 2003-10-16  Karl Berry  <karl@gnu.org>
56498
56499         * config/config.{guess,sub}: update from config.
56500
56501 2003-10-16  Jim Meyering  <jim@meyering.net>
56502
56503         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56504         memcpy.
56505
56506 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56507
56508         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56509         (SIZE_MAX): Remove.
56510         (new_exclude, add_exclude_file): Initial size no longer needs to
56511         be a power of 2.
56512         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56513         our own address arithmetic overflow checking.
56514
56515         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56516         (fnmatch): Do not alloca more than 2000 wide characters;
56517         instead, use malloc for large buffers.
56518         Check for address arithmetic overflow, and return -1
56519         with errno set to ENOMEM in that case.
56520         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56521         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56522         instead, return -1.  Check for address arithmetic overflow.
56523
56524 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56525
56526         Handle invalid suffixes and overflow independently, so that
56527         callers can treat them independently as needed.  Fix some bugs in
56528         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56529         suffix for a human-readable blocksize.  The major caller-visible
56530         change is the addition of a new
56531         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56532         that both overflow and suffix chars were found.
56533
56534         * lib/human.c (humblock): Don't check separately for invalid suffix
56535         char; that is xstrtoumax's job (now that its bug is fixed).
56536         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56537         INTMAX_MAX]: New macros.
56538         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56539         TYPE_MAXIMUM): New macros.
56540         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56541         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56542         if overflow occurs, as it's what __strtol does and it's more useful
56543         in practice.
56544         (__xstrtol): If __strtol reports some error other than ERANGE,
56545         reflect it to the caller as LONGINT_INVALID.  If it reports
56546         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56547         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56548         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56549         value.
56550         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56551         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56552         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56553         [defined UINTMAX_MAX]: New macros.
56554
56555 2003-10-14  Bruno Haible  <bruno@clisp.org>
56556
56557         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56558
56559 2003-10-14  Bruno Haible  <bruno@clisp.org>
56560
56561         * m4/sig_atomic_t: New file, from GNU gettext.
56562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56563
56564 2003-10-14  Bruno Haible  <bruno@clisp.org>
56565
56566         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56567         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56568         Also use volatile where needed.
56569
56570 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56571
56572         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56573         Change maintainer from Bruno Haible to 'all'.
56574
56575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56576
56577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56578
56579 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56580
56581         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56582         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56583         and define in terms of the other primitives.
56584         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56585         (SIZE_MAX): Define if not already defined.
56586         (array_size_overflow): New function.
56587         (xalloc_die): Abort instead of exiting if 'error' returns.
56588         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56589         (xmalloc, xrealloc): Use them.
56590         (xcalloc): Check for address arithmetic overflow.
56591         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56592         a bit faster than strcpy.
56593
56594 2003-10-10  Simon Josefsson  <jas@extundo.com>
56595
56596         * modules/argp (Depends-on): Add restrict and strcase.
56597
56598 2003-10-10  Simon Josefsson  <jas@extundo.com>
56599
56600         * m4/argp.m4: Add AC_C_INLINE.
56601
56602 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56603
56604         Merge getpass from libc, plus a few fixes.
56605
56606         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56607         Include <stdbool.h>.
56608         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56609         __fsetlocking to empty.
56610         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56611         do include <bits/libc-lock.h>.
56612         Do not include <fcntl.h>; not needed.
56613         [_LIBC]: Include <wchar.h>.
56614         (NOTCANCEL_MODE): New macro.
56615         (flockfile, funlockfile) [_LIBC]: New macros.
56616         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56617         [!_LIBC]: New macros.
56618         (call_fclose): New function.
56619         (getpass): Use it.  Save tty stream separately; this simplifies the
56620         code and makes it more reliable if stdin happens to equal stdout.
56621         Invoke __fsetlocking on tty.
56622         Handle thread cancellation if needed.
56623         Namespace cleanup (use __tcgetattr, __getline).
56624         Use bool for Booleans.
56625         [USE_IN_LIBIO]: Handle wide streams.
56626         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56627         stream might go where.
56628
56629         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56630         doesn't have to include <stdio.h> before us.
56631         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56632         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56633         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56634         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56635         if not declared, so that we can use getpass.c code from libc without
56636         rewriting it.
56637         (flockfile, ftrylockfile, funlockfile): New macros.
56638
56639 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56640
56641         * modules/getpass: Depend on stdbool.
56642
56643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56644
56645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56646
56647 2003-10-07  Karl Berry  <karl@gnu.org>
56648
56649         * config/config.{guess,sub}: update from config.
56650
56651 2003-10-06  Jim Meyering  <jim@meyering.net>
56652             Bruno Haible  <bruno@clisp.org>
56653
56654         This lets translators provide better translations for the
56655         "Written by ..." part of --version output.
56656         * lib/version-etc.h: Include stdarg.h.
56657         (version_etc_copyright): Declare as readonly.
56658         (version_etc): Make this function variadic with a NULL-terminated list
56659         of author name strings.
56660         (version_etc_va): New declaration.
56661         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56662         (version_etc_copyright): Declare as readonly.
56663         (version_etc_va): New function. Provide a different translatable string
56664         for each possible number of authors < 10. Abbreviate when there are 10
56665         authors or more.
56666         (version_etc): Make this function variadic. Call version_etc_va.
56667         Suggestion from Gary V. Vaughan.
56668
56669         * lib/long-options.h (parse_long_options): Change prototype: the
56670         authors string is moved to the end and becomes variadic.
56671         * lib/long-options.c: Include stdarg.h.
56672         (parse_long_options): Make this function variadic, too.
56673         Call version_etc_va, not version_etc.
56674
56675 2003-10-06  Bruno Haible  <bruno@clisp.org>
56676
56677         * modules/version-etc-2: Remove file.
56678         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56679
56680 2003-10-06  Bruno Haible  <bruno@clisp.org>
56681
56682         * modules/fatal-signal: New file.
56683         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56684
56685 2003-10-06  Bruno Haible  <bruno@clisp.org>
56686
56687         * m4/fatal-signal.m4: New file.
56688         * m4/signalblocking.m4: New file, from GNU gettext.
56689
56690 2003-10-06  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/version-etc-2.h: Remove file.
56693         * lib/version-etc-2.c: Remove file.
56694
56695 2003-10-06  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/fatal-signal.h: New file, from GNU gettext.
56698         * lib/fatal-signal.c: New file, from GNU gettext.
56699
56700 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56701
56702         * README: Rework advice for preventing empty .o files.
56703         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56704         not <sys/types.h>.
56705
56706 2003-10-04  Karl Berry  <karl@gnu.org>
56707
56708         * lib/argp*: update from libc.
56709
56710 2003-10-04  Karl Berry  <karl@gnu.org>
56711
56712         * config/config.{guess,sub}: update from config.
56713
56714 2003-10-02  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/lchown (Include): Add lchown.h.
56717         * modules/time_r (Include): Use "..." syntax.
56718         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56719
56720 2003-10-01  Simon Josefsson  <jas@extundo.com>
56721
56722         * MODULES.html.sh (func_all_modules): Move gethostname from section
56723         'based on' to section 'lacking' POSIX:2001.
56724
56725 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56726
56727         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56728         to output mode on the same stream.
56729
56730 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56731
56732         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56733         Fix arg typo in previous patch.
56734
56735 2003-09-28  Jim Meyering  <jim@meyering.net>
56736
56737         * lib/error.c: Correct cpp indentation.
56738
56739 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56740
56741         * modules/free: New file.
56742
56743 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56744
56745         * m4/free.m4: New file.
56746
56747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56748
56749         * lib/minmax.h (MIN, MAX)
56750         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56751         Omit the special code that used __typeof__, since we worry that
56752         it could be more trouble than it's worth.  See:
56753         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56754         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56755
56756         * lib/free.c: New file.
56757
56758 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56759
56760         Trivial fixes to Makefile.am parts of module listings.
56761         * modules/strstr: Append strstr.h to lib_SOURCES.
56762         * modules/strcase: Likewise, for strcase.h.
56763
56764 2003-09-27  Karl Berry  <karl@gnu.org>
56765
56766         * config/mkinstalldirs: update from automake.
56767
56768 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56769
56770         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56771         (error_tail): Do not loop, reallocating temporary buffer, since
56772         the output cannot contain more wide characters than the input
56773         contains bytes, the size must be big enough already.  This avoids
56774         one potential size overflow calculation.  Check for size overflow
56775         when calculating temporary buffer size.  Free temporary buffer
56776         when done, if it was allocated with malloc; this plugs a memory
56777         leak.  Remove casts from void * to pointers, that are no longer
56778         needed now that we're assuming C89 or better.
56779
56780         Merge error changes from glibc.
56781
56782         * lib/error.c, error.h: Update copyright notice header to match glibc.
56783         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56784         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56785         Disable cancellation while printing error.
56786         * lib/error.h: Prepend __ to parameter names.
56787
56788 2003-09-26  Jim Meyering  <jim@meyering.net>
56789
56790         * lib/error.c (error_tail): Move some declarations
56791         into inner scope where the local variables are used.
56792
56793 2003-09-26  Bruno Haible  <bruno@clisp.org>
56794
56795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56796         stpncpy().
56797         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56798
56799 2003-09-26  Bruno Haible  <bruno@clisp.org>
56800
56801         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56802         (stpncpy): Define as alias for gnu_stpncpy.
56803         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56804
56805 2003-09-25  Simon Josefsson  <jas@extundo.com>
56806
56807         * lib/xgetdomainname.h: New file.
56808         * lib/xgetdomainname.c: New file.
56809
56810 2003-09-25  Simon Josefsson  <jas@extundo.com>
56811             Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/getdomainname: New file.
56814         * modules/xgetdomainname: New file.
56815         * MODULES.html.sh (func_all_modules): Add getdomainname,
56816         xgetdomainname.
56817
56818 2003-09-25  Simon Josefsson  <jas@extundo.com>
56819             Bruno Haible  <bruno@clisp.org>
56820
56821         * m4/getdomainname.m4: New file.
56822
56823 2003-09-25  Simon Josefsson  <jas@extundo.com>
56824             Bruno Haible  <bruno@clisp.org>
56825
56826         * lib/getdomainname.h: New file.
56827         * lib/getdomainname.c: New file.
56828
56829 2003-09-25  Karl Berry  <karl@gnu.org>
56830
56831         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56832
56833 2003-09-25  Karl Berry  <karl@gnu.org>
56834
56835         * config/install-sh: update from automake.
56836
56837 2003-09-25  Bruno Haible  <bruno@clisp.org>
56838
56839         * modules/version-etc-2: New file, from modules/version-etc with
56840         modifications.
56841         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56842
56843 2003-09-25  Bruno Haible  <bruno@clisp.org>
56844
56845         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56846         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56847
56848 2003-09-24  Simon Josefsson  <jas@extundo.com>
56849
56850         * modules/xgethostname: Add xgethostname.h.
56851
56852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56853
56854         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56855         the buffer associated with the argument.  Bug reported by
56856         Simon Josefsson.
56857
56858 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56859
56860         * README: Document assumptions that 'int' is at least 32 bits
56861         wide, that integer arithmetic is 2's complement without overflow,
56862         that there are no holes in integer values, that adding sizes of
56863         two nonoverlapping objects can't overflow, and that all-bits-zero
56864         yields scalar zero.  Fix spelling and capitalization typos.
56865
56866 2003-09-19  Karl Berry  <karl@gnu.org>
56867
56868         * lib/argp.h: update from libc.
56869
56870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56871
56872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56873         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56874         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56875
56876 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56877
56878         * gnulib-tool: Use "test -h", not "test -L", for portability
56879         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56880         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56881         (sed_extract_prog): Issue s commands one-by-one, rather than
56882         using \| in one s command.
56883
56884 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56885
56886         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56887         input error, instead of returning NULL the next time we are called
56888         (and therefore losing track of errno).
56889
56890 2003-09-16  Bruno Haible  <bruno@clisp.org>
56891
56892         * gnulib-tool (func_create_testdir): Warn about duplicated
56893         dependencies.
56894
56895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56896
56897         * modules/argmatch, modules/fatal, modules/obstack,
56898         modules/xalloc, modules/xgethostname: Sort dependencies by
56899         importance, not alphabetically.
56900
56901 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56902
56903         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56904         fails, so that the caller gets the proper errno.
56905
56906         * lib/readutmp.c (read_utmp): Likewise.
56907         Check for fstat error.  Close stream and free storage
56908         when failing.
56909
56910 2003-09-14  Karl Berry  <karl@gnu.org>
56911
56912         * config/srclist.txt (strdup.c): disable for c89 changes.
56913
56914 2003-09-14  Jim Meyering  <jim@meyering.net>
56915
56916         * lib/getloadavg.c: Correct cpp indentation.
56917         * lib/strdup.c: Likewise.
56918         * lib/vasnprintf.c: Likewise.
56919
56920 2003-09-14  Bruno Haible  <bruno@clisp.org>
56921
56922         * modules/fwriteerror: New file.
56923         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56924
56925 2003-09-14  Bruno Haible  <bruno@clisp.org>
56926
56927         * lib/fwriteerror.h: New file.
56928         * lib/fwriteerror.c: New file.
56929
56930 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56931
56932         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56933         modules/xgethostname, modules/xalloc: Depend on exit.
56934
56935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56936
56937         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56938
56939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56940         and AC_MINIX, too, so that their extensions are available.
56941
56942         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56943         This macro has been superseded by gl_BACKUPFILE.
56944
56945         More patches to assume C89 or better.
56946
56947         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56948
56949         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56950         unconditionally.
56951         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56953         Include <string.h>, <stdlib.h> unconditionally.
56954         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56955         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56956         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56957         headers or for string.h.
56958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56959         or strtoul.
56960
56961         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56962         headers.
56963         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56964         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56965         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56966         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56968         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56969         memcpy, memset.
56970         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56971         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56972         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56973         strtol.
56974         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56975         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56977         strtoul.
56978
56979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56980
56981         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56982         * lib/obstack.c [!defined _LIBC]: Likewise.
56983         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56984         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56985         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56986
56987         More changes to assume C89 or better.
56988
56989         * lib/error.c (error_tail): Assume vprintf.
56990
56991         * lib/argmatch.c (getenv): Remove decl.
56992         * lib/progreloc.c (get_full_program_name): Define via prototype.
56993         * lib/setenv.c (clearenv): Likewise.
56994         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56995         needed.
56996         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56997         (malloc, memcpy): Remove decls.
56998         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56999         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57000         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57001         (memcpy): Remove macro.
57002         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57003         (__P): Remove.  All uses removed.
57004         (PTR): Remove.  All uses changed to void *.
57005         (CHAR_BIT, NULL): Remove.
57006         (spaces, zeros, memset_space, memset_zero)
57007         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57008         Remove.
57009         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57010         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57011         Define with prototype.
57012         Remove now-unnecessary prototype decl.
57013         (extra_args_spec): Assume ANSI C.  All uses changed.
57014         (extra_args_spec_iso): Remove.
57015         (my_strftime, emacs_strftimeu): Define via prototype.
57016         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57017         unconditionally.
57018         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57019         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57020         (strtoul, strtol): Remove decls.
57021         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57022         LONG_MAX): Remove.
57023         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57024         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57025         (LOCALE_PARAM_PROTO): New macro.
57026         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57027         (INTERNAL (strtol), strtol): Define with a prototype.
57028         (PARAMS): Remove.  All uses removed.
57029         * lib/tempname.c: Include <string.h> unconditionally.
57030         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57031         * lib/xgethostname.c (main): Define with a prototype.
57032         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57033         Include <stdlib.h> unconditionally.
57034         (calloc, malloc, realloc, free): Remove decls.
57035         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57036         Include <stdlib.h> unconditionally.  Sort include file names.
57037         (strtod): Remove.
57038         (xstrtod): Define with a prototype.
57039         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57040         (strtol, strtoul): Remove decls.
57041
57042 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57043
57044         More patches to assume C89 or better.
57045         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57046         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57047         string.h, memchr, STDC_HEADERS.
57048
57049 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57050
57051         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57052         Include <stdlib.h>, <string.h> unconditionally.
57053         Remove now-unnecessary cast to char *.
57054         * lib/strnlen.c: Include <string.h> unconditionally.
57055         * lib/yesno.c (yesno): Define with a prototype.
57056
57057 2003-09-11  Bruno Haible  <bruno@clisp.org>
57058
57059         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57060
57061 2003-09-10  Jim Meyering  <jim@meyering.net>
57062
57063         * lib/error.c: Correct indentation of cpp directives.
57064
57065 2003-09-10  Bruno Haible  <bruno@clisp.org>
57066
57067         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57068         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57069         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57070         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57072         <stdlib.h> and <string.h> checks.
57073         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57074         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57075
57076 2003-09-10  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/strcspn.c: Include <string.h> unconditionally.
57079         * lib/strpbrk.c: Include <string.h> unconditionally.
57080         * lib/strstr.c: Include <string.h> unconditionally.
57081         * lib/unicodeio.c: Include <string.h> unconditionally.
57082         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57083         * lib/unsetenv.c: Likewise.
57084         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57085         * lib/yesno.c: Include <stdlib.h> unconditionally.
57086         (rpmatch): Add prototype.
57087
57088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57089
57090         More patches to assume C89 or better.
57091         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57092         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57093         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57094         or for string.h.
57095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57096         stdlib.h.
57097         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57098         C headers.
57099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57100         string.h.
57101         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57102         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57103         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57104         or for string.h.
57105         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57106         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57107         C headers.
57108         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57109         memcpy.
57110         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57111         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57112         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57113         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57114         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57115         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57116         string.h, free.
57117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57118         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57119         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57120         C headers, or for string.h.
57121         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57122         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57123         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57124         headers, memory.h, stdlib.h, string.h, strings.h.
57125         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57126         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57127         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57128         strchr.
57129         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57130         headers, memory.h, string.h.
57131         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57132         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57133         free.
57134         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57135         headers.
57136         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57137         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57138         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57139         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57140         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57141
57142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57143
57144         More K&R removal.
57145
57146         * lib/acosl.c (main): Use a prototype.
57147         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57148         tanl.c: Likewise.
57149
57150         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57151
57152         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57153         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57154         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57155         with a prototype.
57156         * lib/getopt.c (const): Remove macro.
57157         Include <string.h> unconditionally.
57158         (my_index): Remove; all uses changed to strchr.
57159         (strlen): Remove decl.
57160         (exchange): Remove forward decl; no longer needed.
57161         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57162         Define with prototype.
57163         * lib/getopt1.c (const): Remove macro.
57164         (getopt_long, getopt_long_only, main): Define with prototype.
57165
57166         * lib/getugroups.c: Include <string.h> unconditionally.
57167
57168         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57169         (getusershell, setusershell, endusershell, readname, main):
57170         Define with prototypes.
57171
57172         * lib/group-member.c: Include group-member.h first.
57173         Include <stdlib.h> unconditionally.
57174
57175         * lib/hard-locale.c: Include hard-locale.h first.
57176         Include <stdlib.h>, <string.h> unconditionally.
57177
57178         * lib/hash.c (free, malloc): Remove decls.
57179         Include <stdlib.h> unconditionally.
57180
57181         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57182         (getenv): Do not declare.
57183
57184         * lib/idcache.c: Include <string.h> unconditionally.
57185
57186         * lib/long-options.c: Include long-options.h first, to test interface.
57187         Include <stdlib.h> unconditionally.
57188
57189         * lib/makepath.c: Include makepath.h first, to test interface.
57190         Include <stdlib.h> and <string.h> unconditionally.
57191
57192         * lib/linebuffer.c: Include <stdlib.h>.
57193         (free): Remove decl.
57194
57195         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57196         stddef.h. rpl_malloc returns void *, not char *.
57197         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57198         prototype.
57199
57200         * lib/md5.h: Include <limits.h> unconditionally.
57201         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57202         (__P): Remove; all uses removed.
57203         * lib/md5.c: Include "md5.h" first.
57204         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57205         md5_buffer, md5_process_bytes, md5_process_block):
57206         Define with prototypes.
57207         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57208         * lib/sha.c: Include "sha.h" first.
57209         Include <stdlib.h>, <string.h> unconditionally.
57210
57211         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57212         * lib/memcmp.c (__ptr_t): Likewise.
57213         * lib/memrchr.c (__ptr_t): Likewise.
57214         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57215         Include <string.h> unconditionally.
57216         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57217         * lib/memchr.c: Include <stdlib.h> unconditionally.
57218         * lib/memchr.c (LONG_MAX): Remove.
57219         * lib/memrchr.c (LONG_MAX): Likewise.
57220         * lib/memchr.c (__memchr): Define via a prototype.
57221         * lib/memrchr.c (__memrchr): Likewise.
57222         * lib/memcmp.c (__P): Remove, and remove all uses.
57223         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57224         Remove forward decls; no longer needed.
57225         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57226         Use types required by C89 in prototype.
57227
57228         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57229         * lib/savedir.c: Likewise.
57230         * lib/mkdir.c (free): Remove decl.
57231         * lib/rmdir.c (rmdir): Define with a prototype.
57232         * lib/savedir.c: Include savedir.h first, to test interface.
57233
57234         * lib/mktime.c (STDC_HEADERS): Remove.
57235         Include <stdlib.h>, <string.h> unconditionally.
57236
57237         * lib/modechange.c: Include <stdlib.h> unconditionally.
57238         (malloc): Remove decl.
57239
57240         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57241         (free): Remove decl.
57242
57243         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57244         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57245         (This type really should be intptr_t, but that's a C99ism.)
57246         (_obstack_memcpy): Remove: all uses changed to memcpy.
57247         Include <string.h> unconditionally.
57248         (struct obstack): Assume __STDC__ for types of members
57249         chunkfun, freefun, extra_arg.
57250         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57251         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57252         obstack_begin, obstack_specify_allocation,
57253         obstack_specify_allocation_with_arg, obstack_chunkfun,
57254         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57255         Remove unprototyped decls and the macros that use them.
57256         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57257         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57258         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57259         (defined __STDC__ && __STDC__)]:
57260         Remove nonprototyped code.
57261         Include <stdlib.h> unconditionally.
57262         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57263         _obstack_allocated_p, _obstack_free, obstack_free,
57264         _obstack_memory_used, print_and_abort):
57265         Define using prototypes.
57266         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57267         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57268         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57269         obstack_next_free, obstack_object_size, obstack_room) [0]:
57270         Remove unused, unprototyped code.
57271
57272         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57273
57274         * lib/physmem.c (physmem_total, physmem_available, main): Define
57275         with prototypes.
57276
57277         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57278         (main): Define with a prototype.
57279
57280         * lib/posixver.c (getenv): Remove decl.
57281
57282         * lib/putenv.c (malloc): Returns void *, not char *.
57283         Include <string.h> unconditionally.
57284         (strchr, memcpy, NULL): Do not define.
57285
57286         * lib/readtokens.c: Include readtokens.h first, to test interface.
57287         Include <stdlib.h>, <string.h> unconditionally.
57288         (init_tokenbuffer): Define with a prototype.
57289
57290         * lib/regex.c (PARAMS): Remove.  All uses removed.
57291         All uses of _RE_ARGS removed, too.
57292         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57293         unconditionally.
57294         (bzero): Assume memset exists.
57295         (memcmp, memcpy, NULL): Remove.
57296         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57297         char, or assignments to local vars of type signed char.
57298         (init_syntax_once, PREFIX(extract_number_and_incr),
57299         PREFIX(print_partial_compiled_pattern),
57300         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57301         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57302         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57303         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57304         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57305         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57306         wcs_compile_range, byte_compile_range, truncate_wchar,
57307         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57308         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57309         count_mbs_length, wcs_re_match_2_internal,
57310         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57311         PREFIX(alt_match_null_string_p),
57312         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57313         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57314         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57315         now-unnecessary declaration, if any.
57316         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57317         regcomp, regexec):
57318         Remove now-unnecessary casts among pointer types.
57319         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57320
57321         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57322         (free): Remove decl.
57323
57324         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57325
57326         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57327         (free): Remove decl.
57328
57329         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57330         * lib/xgetcwd.c: Likewise.
57331
57332         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57333         (free): Remove decl.
57334
57335         * lib/strchrnul.c (strchrnul): Define with a prototype.
57336         Fix bug: c_in was not converted to char before searching.
57337
57338         The following changes are not K&R related:
57339
57340         * lib/group-member.h: Include <sys/types.h>, so that this file is
57341         self-contained.
57342         * lib/makepath.h: Likewise.
57343
57344         * lib/getusershell.c (readname, default_index, line_size, readname):
57345         Use size_t, not int, for sizes.
57346         (readname): If the size overflows, report an error instead of
57347         looping forever.
57348
57349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57350
57351         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57352         libc.
57353
57354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57355
57356         * README: New section: portability guidelines.
57357
57358 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57359
57360         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57361         C89 spec.
57362
57363 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57364
57365         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57366
57367 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57368
57369         Assume C89 or better; remove K&R cruft.
57370         A few of these changes were first proposed by Derek Robert Price
57371         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57372
57373         * lib/addext.c: Include <string.h> unconditionally.
57374         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57375         Don't declare getenv or malloc.
57376
57377         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57378         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57379         (NULL): Remove.
57380         (find_stack_direction, alloca): Use prototypes.
57381
57382         * lib/atexit.c (atexit): Define using a prototype.
57383
57384         * lib/basename.c, dirname.c, stripslash.c:
57385         Include <string.h> unconditionally.
57386
57387         * lib/bcopy.c: Include <stddef.h>.
57388         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57389
57390         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57391
57392         * lib/error.h (error, error_at_line, error_print_progname)
57393         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57394         * lib/error.c: Include error.h first, to check interface.
57395         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57396         (VA_START): Remove; all uses changeed to va_start.
57397         (exit, strerror): Remove decls.
57398         (error_print_progname): Prototype uncondionally.
57399         Don't include <errno.h>; no longer needed.
57400         (private_strerror): Remove.
57401         (error_tail): Always define.
57402         (error, error_at_line): Assume C89 or better; always use prototypes.
57403         * lib/fatal.c: Include "fatal.h" first, to test interface.
57404         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57405         (VA_START): Remove; all uses changed to va_start.
57406         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57407         this case.
57408         (exit): Remove decl.
57409         (fatal): Prototype unconditionally.  Assume va_start works.
57410         Abort at end, to pacify gcc.
57411
57412         * lib/euidaccess.c (main): Define with a prototype.
57413
57414         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57415
57416         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57417
57418         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57419         prototypes.
57420         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57421         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57422         (getenv): Remove decl.
57423         (fnmatch): Define using a prototype.
57424         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57425         (FCT): Define using a prototype.
57426
57427         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57428
57429         * lib/gethostname.c: Include <stddef.h>.
57430         (gethostname): Define with prototype.  Length is size_t, not int.
57431
57432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57433
57434         Assume C89 or better; remove K&R cruft.
57435         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57436         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57437         string.h, getenv, malloc.
57438         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57439         headers.
57440         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57441         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57442         do not check for strerror.
57443         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57444         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57445         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57446         do not check for doprnt or vprintf.
57447         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57448         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57449
57450 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57451
57452         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57453         getversion.c should have been removed then, but was accidentally
57454         preserved.
57455
57456         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57457         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57458
57459 2003-09-08  Karl Berry  <karl@gnu.org>
57460
57461         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57462                 config, forget about prep.
57463
57464         * config/depcomp, missing: update from automake.
57465
57466 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57467
57468         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57470
57471 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57472
57473         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57474         copy_tm_result.  Bug reported by Simon Josefsson in
57475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57476
57477 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57478
57479         * m4/time_r.m4: New file.
57480         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57482         is. Check for timegm declaration.
57483         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57484         Do not check for gmtime_r.
57485         Replace mktime if __mktime_internal does not exist and if mktime
57486         hasn't been replaced already.
57487
57488 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57489
57490         * lib/time_r.c, lib/time_r.h: New files.
57491
57492         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57493         __localtime_r.
57494         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57495         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57496
57497         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57498         __gmtime_r.
57499         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57500         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57501         Include <time_r.h>.
57502
57503         * lib/timegm.c: Switch to glibc implementation, with the following
57504         changes:
57505         [defined HAVE_CONFIG_H]: Include <config.h>.
57506         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57507         (__mktime_internal) [!defined _LIBC]: New decl.
57508         (__gmtime_r) [!defined _LIBC]: New macro and function.
57509         (timegm): Use a prototype, since gnulib assumes C89.
57510         Do not bother declaring tmp to be const, as it's not really usefu.
57511         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57512         (timegm): Declare only if HAVE_DECL_TIMEGM.
57513
57514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57515
57516         * MODULES.html.sh (func_all_modules): Add time_r.
57517         * modules/time_r: New file.
57518         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57519         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57520
57521 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57522
57523         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57524         Bug reported by Lute Kamstra in
57525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57526
57527         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57528         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57529         course with correspondingly smaller numbers for tomorrow and
57530         yesterday.  From Tadayoshi Funaba.  Originally installed into
57531         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57532         coreutils merge?).
57533
57534 2003-08-31  Simon Josefsson  <jas@extundo.com>
57535
57536         * modules/timegm: New file.
57537         * MODULES.html.sh (func_all_modules): Add timegm.
57538
57539 2003-08-31  Simon Josefsson  <jas@extundo.com>
57540
57541         * m4/timegm.m4: New file.
57542
57543 2003-08-31  Simon Josefsson  <jas@extundo.com>
57544
57545         * lib/timegm.h: New file.
57546         * lib/timegm.c: New file.  Based on
57547         wget-1.8.2/src/http.c:mktime_from_utc.
57548
57549 2003-08-31  Karl Berry  <karl@gnu.org>
57550
57551         * lib/argp.h: update from libc.
57552
57553 2003-08-28  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57556         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57557         followed by '#define fnmatch fnmatch_posix' gives an error.
57558
57559 2003-08-28  Bruno Haible  <bruno@clisp.org>
57560
57561         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57562         warning on QNX, which defines O_BINARY to 000000.
57563
57564 2003-08-27  Jim Meyering  <jim@meyering.net>
57565
57566         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57567         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57568         would fail after 32.  Reported by Danny Levinson.  Details here:
57569         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57570
57571 2003-08-24  Bruno Haible  <bruno@clisp.org>
57572
57573         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57574         MSVC7 <stdio.h> is included later.
57575
57576 2003-08-22  Simon Josefsson  <jas@extundo.com>
57577
57578         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57579
57580 2003-08-20  Karl Berry  <karl@gnu.org>
57581
57582         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57583
57584 2003-08-20  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/progname: New file.
57587         * MODULES.html.sh (func_all_modules): Add progname.
57588
57589 2003-08-20  Bruno Haible  <bruno@clisp.org>
57590
57591         * lib/progname.h: New file, from GNU gettext.
57592         * lib/progname.c: New file, from GNU gettext.
57593         * lib/progreloc.c: New file, from GNU gettext.
57594
57595 2003-08-19  Jim Meyering  <jim@meyering.net>
57596
57597         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57598         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57599
57600 2003-08-19  Bruno Haible  <bruno@clisp.org>
57601
57602         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57603         more.
57604
57605 2003-08-19  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/xstrdup.c: Assume <string.h> exists.
57608
57609 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57610
57611         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57612         in makefile rules.
57613
57614 2003-08-18  Jim Meyering  <jim@meyering.net>
57615
57616         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57617         * m4/lib-ld.m4: Likewise.
57618
57619 2003-08-18  Jim Meyering  <jim@meyering.net>
57620
57621         * lib/setenv.h: Indent nested cpp directive.
57622         * lib/vasnprintf.c: Remove trailing blanks.
57623
57624 2003-08-17  Simon Josefsson  <jas@extundo.com>
57625
57626         * modules/xstrndup: New file.
57627         * MODULES.html.sh (func_all_modules): Add xstrndup.
57628
57629 2003-08-17  Simon Josefsson  <jas@extundo.com>
57630
57631         * modules/argp: Fix autoconf macro name. Add more dependencies.
57632
57633 2003-08-17  Simon Josefsson  <jas@extundo.com>
57634
57635         * m4/xstrndup.m4: New file.
57636
57637 2003-08-17  Simon Josefsson  <jas@extundo.com>
57638
57639         * m4/argp.m4: New file.
57640
57641 2003-08-17  Simon Josefsson  <jas@extundo.com>
57642             Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/xstrndup.h: New file.
57645         * lib/xstrndup.c: New file.
57646
57647 2003-08-17  Bruno Haible  <bruno@clisp.org>
57648
57649         * modules/strndup (Files, Include): Add lib/strndup.h.
57650
57651 2003-08-17  Bruno Haible  <bruno@clisp.org>
57652
57653         * modules/euidaccess (Files): Add lib/euidaccess.h.
57654
57655 2003-08-17  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/strndup.h: New file.
57658
57659 2003-08-17  Bruno Haible  <bruno@clisp.org>
57660
57661         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57662         like AC_GNU_SOURCE.
57663         * modules/extensions (configure.ac): Comment out the invocation of
57664         gl_USE_SYSTEM_EXTENSIONS.
57665
57666 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57667
57668         Merges from coreutils, etc.
57669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57670         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57671         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57672         fixing a typo.
57673         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57674         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57675
57676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57677
57678         Document merge from coreutils.
57679         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57680         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57681         * modules/utime: Add m4/utimes-null.m4.
57682
57683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57684
57685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57686         space, undoing this 2003-08-12 change:
57687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57688
57689 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57690
57691         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57692         strtoul.c from libc, undoing this 2003-08-12 change:
57693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57694
57695 2003-08-16  Jim Meyering  <jim@meyering.net>
57696
57697         Merges from coreutils.
57698         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57699         prefix.  Adjust cache variables similarly.  Create 500 rather than
57700         just 300 files, to exercise bug on Darwin6.5, too.
57701         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57702         $missing_dir.
57703         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57704         AM_SYS_POSIX_TERMIOS.
57705         Reported by mkc@mathdogs.com.
57706         Also change use of $am_cv_sys_posix_termios
57707         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57708         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57709         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57710         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57711         in /proc/mounts until it finds one with matching device number.  This
57712         is unnecessary when the FILE argument *is* a mount point.  No stat call
57713         is necessary in that case.  So, disable the statvfs-testing code on
57714         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57715         as RedHat bug# 84846.
57716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57717         to 1MB, so as not to render systems with no stack size limit (e.g.,
57718         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57719         Include <unistd.h>.  On some systems,
57720         it is required for the definition of _SC_PAGESIZE.
57721
57722 2003-08-16  Jim Meyering  <jim@meyering.net>
57723
57724         Merge from coreutils.
57725         * lib/xstrtoimax.c: #else #if -> #elif.
57726         * lib/xstrtoumax.c: Likewise.
57727
57728 2003-08-16  Jim Meyering  <jim@meyering.net>
57729
57730         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57731         * m4/utimes.m4: Removed.
57732         * m4/utimes-null.m4: Renamed from utimes.m4.
57733
57734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57735         to 1MB, so as not to render systems with no stack size limit (e.g.,
57736         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57737         Include <unistd.h>.  On some systems,
57738         it is required for the definition of _SC_PAGESIZE.
57739
57740 2003-08-16  Jim Meyering  <jim@meyering.net>
57741         and Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         Merges from coreutils, etc.
57744
57745         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57746         using the latest version from cvs.  This avoids problems with #line
57747         directives using a vendor (Sun) compiler.
57748         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57749         Don't set GETGROUPS_LIB here; now it's
57750         done via getgroups.m4's wrapper function.
57751         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57752         rather than just in sh-util/configure.in, so that the
57753         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57754         same.
57755         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57756         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57757         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57758         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57759         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57760         Remove code that is now done by the newly-required macros.
57761         Append $(EXEEXT) to DF_PROG.
57762         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57763         Do not invoke or require the following here,
57764         since prereq.m4 or some gnulib .m4 now does this for us:
57765         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57766         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57767         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57768         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57769         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57770         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57771         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57772         AC_FUNC_OBSTACK.
57773         Do not replace the following functions, as this is now the job
57774         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57775         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57776         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57777         atexit getpass, strdup, getpagesize.
57778         Replace 'raise'.
57779         Do not check for the following functions, as this is now the job
57780         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57781         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57782         setregid.
57783         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57784         Check for sys/sysctl.h.
57785         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57786         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57787         of checking for ssize_t ourselves.
57788
57789         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57790         Require every macro that gnulib/modules/* suggests for us.
57791         (jm_PREREQ_ADDEXT): New macro.
57792         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57793         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57794
57795         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57796         (gl_PHYSMEM): Use it.
57797         Also check for `table' function.
57798         Check for new headers and functions.
57799         Add check for sys/sysmp.h.
57800         With suggestions from Kaveh Ghazi.
57801         Ignore headers that are present but cannot be compiled.  This
57802         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57803         C 5.4.
57804
57805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57806
57807         Document merge from coreutils.
57808         * modules/userspec: Depend on posixver.
57809         * modules/strftime: Depend on tzset.
57810
57811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57812
57813         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57814         rather than tab, after '#' in shell-script copyright notices.
57815         Suggested by Bruno Haible.
57816
57817 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57818
57819         * config/srclist-update: Use three spaces, rather than tab, after '#'
57820         in shell-script copyright notices.  Suggested by Bruno Haible.
57821         Remove unnecessary parenthesization in regular expression.
57822
57823 2003-08-15  Jim Meyering  <jim@meyering.net>
57824
57825         Merge from coreutils.
57826         * lib/xgethostname.c: Include <stdlib.h>.
57827         (xghostname): Don't exit for anything other than memory-related
57828         failure; just return NULL.
57829         * lib/userspec.c: Include "posixver.h".
57830         (parse_user_spec): Accept `.' as a separator only
57831         in pre-POSIX-200112 mode.
57832         * lib/strtoimax.c: Use #elif rather than #else #if.
57833         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57834         Remove function, now that we can rely on a working tzset function.
57835         [!_LIBC]: Ensure that the required autoconf test has been run.
57836         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57837         Use underlying_strftime for %r.
57838         * lib/sha.c: Merge in some clean-up and optimization changes from
57839         glibc.
57840         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57841         Ensure that it is a multiple of 64.
57842         Rearrange loop exit tests so as to avoid performing an
57843         additional fread after encountering an error or EOF.
57844         * lib/realloc.c: Update copyright date.
57845
57846 2003-08-15  Jim Meyering  <jim@meyering.net>
57847         and Paul Eggert  <eggert@twinsun.com>
57848
57849         Merge from coreutils.
57850         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57851         member but strut utmpx does not.  Needed for AIX 4.3.3.
57852         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57853
57854 2003-08-15  Jim Meyering  <jim@meyering.net>
57855         and Paul Eggert  <eggert@cs.ucla.edu>
57856
57857         Merges from coreutils, etc.
57858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57859         Require gl_FUNC_TZSET_CLOBBER.
57860         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57861         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57862         members.
57863
57864 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57865
57866         Help the merge from coreutils.
57867         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57868         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57869         * m4/tzset.m4: Use it too.
57870
57871 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57872
57873         * modules/tzset: New file.
57874
57875 2003-08-14  Jim Meyering  <jim@meyering.net>
57876
57877         Merges from coreutils.
57878         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57879         variable names, rather than @FNMATCH_H@.
57880         * modules/alloca: Likewise for $(ALLOCA_H).
57881
57882         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57883         the three copies of the literal target, `fnmatch.h'.
57884         * modules/alloca (alloca.h): Likewise.
57885
57886 2003-08-14  Jim Meyering  <jim@meyering.net>
57887
57888         Merge from coreutils.
57889         * m4/tzset.m4: New file.
57890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57891         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57892         otherwise, AIX 5.1 systems would end up using the latter.
57893         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57894         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57895         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57896         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57897
57898 2003-08-14  Jim Meyering  <jim@meyering.net>
57899
57900         Merge from coreutils.
57901         * lib/obstack.h: Whitespace changes.
57902         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57903         and xcalloc return values.
57904         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57905         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57906         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57907         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57908         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57909         error from mntctl.
57910         Use mntctl's return value to drive the entry-processing loop, since
57911         we can't rely on the value of the vmt_length member in the last
57912         entry.  On some systems doing so could result in exhausting
57913         virtual memory.  Based in part on a patch from Mike Jetzer.
57914
57915 2003-08-14  Jim Meyering  <jim@meyering.net>
57916         and Paul Eggert  <eggert@twinsun.com>
57917
57918         Merges from coreutils, plus other fixes.
57919         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57920         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57921         for credits and details.  Thanks to Kaveh Ghazi for helping
57922         to keep these files in sync.
57923         (ARRAY_SIZE): Define it.
57924         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57925         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57926         (memcasecmp): Don't assume size_t fits in unsigned int.
57927         Remove casts and duplicate code.
57928         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57929         (memcpy): Remove definition.
57930         Merge in some clean-up and optimization changes from glibc.
57931         [BLOCKSIZE]: Move definition to top of file.
57932         Ensure that it is a multiple of 64.
57933         Rearrange loop exit tests so as to avoid performing an
57934         additional fread after encountering an error or EOF.
57935         * lib/md5.h (md5_uintptr): Define.
57936         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57937         return to the initial working directory.  Preserve errno
57938         for caller.
57939         * lib/idcache.c: Include "xalloc.h".
57940         (xmalloc, xrealloc): Remove decls.
57941         (getuser): Remove casts no longer required in C89.
57942         * lib/human.c: Include stdio.h, for sprintf.
57943         * lib/group-member.c: Include "xalloc.h".
57944         (xmalloc, xrealloc): Remove decls.
57945         (get_group_info): Remove casts no longer required in C89.
57946         * lib/getusershell.c (readname): Remove casts no longer required in
57947         C89.
57948         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57949         * lib/getline.c: Whitespace fix, from coreutils.
57950
57951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57952
57953         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57954         Check for isascii.
57955
57956         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57957         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57958         Undo previous (whitespace-only) change.
57959
57960 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57961
57962         * lib/exclude.c: Include <ctype.h>
57963         (IN_CTYPE_DOMAIN): New macro.
57964         (is_space): New fn.
57965         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57966         and empty lines.
57967
57968         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57969         Undo previous (whitespace-only) change.
57970
57971 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57972
57973         * config/srclist-update: Change update back to the old behavior,
57974         leaving whitespace alone.  Use one 'sed' command rather than a
57975         pipeline.
57976         (fixlicense): Now a variable, not a function.
57977         (remove_trailing_blanks): Remove.
57978         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57979         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57980         Undo previous (whitespace-only) change.
57981
57982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57983
57984         Merge from coreutils.
57985         * modules/euidaccess: Add lib_SOURCES, include for new
57986         file euidaccess.h
57987
57988 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57989
57990         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57991         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57992         Normalize leading white space and remove trailing white space.
57993
57994         Merge from coreutils
57995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57996
57997         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57998         0.12.1.  These files are now being upgraded automatically by
57999         ../config/srclist-update.
58000
58001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58002
58003         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58004         Normalize leading white space and remove trailing white space.
58005         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58006         notice, as per ../config/srclist-update.
58007
58008         Merge from coreutils.
58009         * lib/euidaccess.h: New file.
58010         * lib/euidaccess.c: Include it.
58011         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58012         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58013         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58014
58015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58016
58017         * config/srclist-update: Add copyright notice.
58018         (remove_id_lines, remove_trailing_blanks): New constants.
58019         (fixfile): Use them to normalize spacing a bit in copied files.
58020         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58021         Normalize leading white space and remove trailing white space.
58022
58023         * config/texinfo.tex: Sync with texinfo.
58024
58025         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58026         strtoul.c from libc, to merge coreutils whitespace changes.
58027
58028         * config/srclist.txt: Get the following m4 files from gettext:
58029         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58030         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58031         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58032         wint_t.m4.
58033
58034 2003-08-12  Karl Berry  <karl@gnu.org>
58035
58036         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58037         been made.
58038
58039 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58040
58041         * modules/gnu-source, m4/gnu-source.m4:
58042         Remove; we're assuming Autoconf 2.54 or later now.
58043         Suggested by Bruno Haible.
58044         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58045
58046 2003-08-11  Bruno Haible  <bruno@clisp.org>
58047
58048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58049
58050 2003-08-11  Bruno Haible  <bruno@clisp.org>
58051
58052         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58053         (vasnprintf): Use it instead of wcslen.
58054
58055 2003-08-11  Bruno Haible  <bruno@clisp.org>
58056
58057         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58058         value to ensure that _Bool promotes to int. Use #define for _Bool when
58059         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58060
58061 2003-08-10  Karl Berry  <karl@gnu.org>
58062
58063         * lib/regex.h: update from libc (whitespace fix).
58064
58065 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58066
58067         Merge some files from coreutils.  These changes were
58068         originally made by Jim Meyering.
58069         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58070         many older Unixes require this.
58071         * lib/alloca.c (alloca): Remove cast to argument of free;
58072         no longer needed in C89.
58073         * lib/alloca_.h, regex.h: Fix white space to match
58074         what GNU indent does.
58075
58076 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58077
58078         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58079         apparently Emacs's Unicode mode got confused before my 2003-08-05
58080         checkin.
58081
58082 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58083
58084         * m4/extensions.m4: New file.
58085         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58086         Require gl_USE_SYSTEM_EXTENSIONS.
58087         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58088         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58089
58090 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58091
58092         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58093         * modules/extensions, modules/gnu-source: New files.
58094         * modules/timespec, modules/unlocked-io: Depend on extensions.
58095
58096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58097
58098         * modules/restrict: New file.
58099         * MODULES.html.sh (func_all_modules): Add restrict.
58100         * modules/regex: Depend on restrict.
58101
58102 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58103
58104         * m4/restrict.m4: New file.
58105         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58106
58107 2003-08-07  Bruno Haible  <bruno@clisp.org>
58108
58109         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58110         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58111
58112 2003-08-07  Bruno Haible  <bruno@clisp.org>
58113
58114         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58115         makes the module 'getndelim2' compatible with the module 'getline'.
58116
58117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58118
58119         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58120         byte with "\201" to avoid glitches when editing that source file
58121         with multi-gnome-terminal.
58122
58123 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58124
58125         * lib/bumpalloc.h: Remove.
58126
58127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58128
58129         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58130         * modules/bumpalloc: Remove.
58131
58132 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58133
58134         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58135         GNU coding style.
58136
58137         Merge from coreutils.
58138         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58139         1. From glibc.
58140         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58141         from Karl Berry, implemented by Jim Meyering.
58142         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58143         from Dmitry V. Levin.
58144         Remove anachronistic cast of xrealloc.
58145         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58146         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58147         type. Otherwise, it wouldn't compile with at least /bin/cc on
58148         ymp-cray-unicos9.0.2.X.
58149         Combine two mostly-identical uses of alloca into one.
58150         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58151
58152 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58153
58154         [From Emacs.]
58155
58156         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58157         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58158         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58159         obsolete NLIST_NAME_UNION.
58160         [__GNU__]: Undef BSD and FSCALE.
58161         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58162
58163 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58164
58165         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58166         an enum type, so that it's guaranteed to promote to int.  See:
58167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58168
58169 2003-08-03  Karl Berry  <karl@gnu.org>
58170
58171         * config/depcomp: update from automake.
58172
58173 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58174
58175         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58176         (strerror): Don't assume that a printable int fits in 14 bytes.
58177
58178 2003-07-31  Bruno Haible  <bruno@clisp.org>
58179
58180         * modules/getpass-gnu: New file.
58181         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58182
58183 2003-07-31  Bruno Haible  <bruno@clisp.org>
58184
58185         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58186
58187 2003-07-24  Karl Berry  <karl@gnu.org>
58188
58189         * config/missing: update from automake.
58190
58191 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58192             Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58195         * lib/getline.c (getline, getdelim): Likewise.
58196         Remove _GNU_SOURCE define; now it's defined in config.h through
58197         m4/getline.m4.
58198
58199 2003-07-23  Karl Berry  <karl@gnu.org>
58200
58201         * config/config.sub: update from prep.
58202
58203 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58204
58205         * modules/xalloc (Depends-on): Add exitfail.
58206         * modules/xmemcoll: Likewise.
58207
58208 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58209
58210         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58211         over-parenthesization in macros.
58212
58213         Sync with coreutils.
58214
58215         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58216         required by C99.
58217
58218         Use `exit_failure' for xalloc and xmemcoll instead of their own
58219         private exit-failure variables.
58220         * lib/xalloc.h (xalloc_exit_failure): Remove.
58221         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58222         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58223         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58224         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58225         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58226
58227 2003-07-20  Jim Meyering  <jim@meyering.net>
58228
58229         * modules/closeout (Depends-on): Add exitfail.
58230         Suggestion from Bruno Haible.
58231
58232 2003-07-19  Karl Berry  <karl@gnu.org>
58233
58234         * config/config.sub: update from prep.
58235
58236 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58237
58238         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58239         Remove.
58240         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58241         to test that it can stand by itself.  Include "exitfail.h".
58242         Clients should set exit_failure instead.
58243         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58244
58245 2003-07-18  Bruno Haible  <bruno@clisp.org>
58246
58247         * modules/getndelim2: New file.
58248         * modules/getline: Share files with module getndelim2.
58249         * modules/getnline: Depend on getndelim2 instead of sharing files with
58250         it. Add getnline.c to lib_SOURCES.
58251         * MODULES.html.sh (func_all_modules): Add getndelim2.
58252
58253 2003-07-18  Bruno Haible  <bruno@clisp.org>
58254
58255         * m4/getndelim2.m4: New file.
58256         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58257         invoke gl_PREREQ_GETNDELIM2.
58258         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58259         gl_PREREQ_GETNDELIM2.
58260         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58261         gl_GETNDELIM2.
58262
58263 2003-07-18  Bruno Haible  <bruno@clisp.org>
58264
58265         * lib/getndelim2.h: New file.
58266         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58267         getndelim2.h.
58268         (getndelim2): Make non-static. Change return type to ssize_t.
58269         * lib/getline.h: Change argument names.
58270         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58271         * lib/getnline.c: Include getndelim2.h.
58272
58273 2003-07-18  Andreas Schwab  <schwab@suse.de>
58274
58275         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58276
58277 2003-07-17  Karl Berry  <karl@gnu.org>
58278
58279         * config/config.sub: update from prep.
58280
58281 2003-07-17  Bruno Haible  <bruno@clisp.org>
58282
58283         * modules/getnline: New file.
58284         * modules/getline: Add lib/getndelim2.c to source file list.
58285         * MODULES.html.sh (func_all_modules): Add getnline.
58286
58287 2003-07-17  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/getnline.m4: New file.
58290
58291 2003-07-17  Bruno Haible  <bruno@clisp.org>
58292
58293         * m4/Makefile.am.in: Remove file.
58294         * m4/Makefile.am: Remove file.
58295         * m4/Makefile.in: Remove file.
58296
58297 2003-07-17  Bruno Haible  <bruno@clisp.org>
58298
58299         * lib/getnline.h: New file.
58300         * lib/getnline.c: New file.
58301         * lib/getndelim2.c: New file, extracted from getline.c.
58302         (getndelim2): Renamed from getdelim2, with added nmax argument.
58303         * lib/getline.c: Include getndelim2.c.
58304         (getdelim2): Moved out to getndelim2.c.
58305         (getline, getdelim): Update.
58306
58307 2003-07-17  Bruno Haible  <bruno@clisp.org>
58308
58309         * lib/Makefile.am: Remove file.
58310         * lib/Makefile.in: Remove file.
58311
58312 2003-07-17  Bruno Haible  <bruno@clisp.org>
58313
58314         * configure.in: Remove file.
58315         * Makefile.in: Remove file.
58316
58317 2003-07-17  Bruno Haible  <bruno@clisp.org>
58318
58319         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58320
58321 2003-07-16  Karl Berry  <karl@gnu.org>
58322
58323         * config/srclist-update: was running fixlicense twice, which caused
58324                 texinfo.tex to be nullified for some reason.  Simplify,
58325                 $gplsrc is no longer needed as far as I can see?
58326
58327 2003-07-16  Jim Meyering  <jim@meyering.net>
58328
58329         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58330
58331 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58332
58333         * config/srclist.txt: Get the following files from gettext-runtime/intl
58334         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58335         ref-del.sin.  From Bruno Haible.
58336         * config/srclist-update (fixfile): Change grep pattern again, since the
58337         previous fix didn't work (there was another trailing $).  Use
58338         '[$]' to escape the $s.
58339
58340 2003-07-15  Karl Berry  <karl@gnu.org>
58341
58342         * lib/vasnprintf.c: update from gettext.
58343
58344 2003-07-15  Karl Berry  <karl@gnu.org>
58345
58346         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58347         gets expanded when surrounded by '$'.
58348
58349 2003-07-15  Jim Meyering  <jim@meyering.net>
58350
58351         * modules/save-cwd: Don't depend on error.  From Derek Price.
58352
58353 2003-07-15  Jim Meyering  <jim@meyering.net>
58354
58355         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58356
58357 2003-07-14  Simon Josefsson  <jas@extundo.com>
58358
58359         * modules/mempcpy: New file.
58360         * MODULES.html.sh (func_all_modules): Add mempcpy.
58361
58362 2003-07-14  Simon Josefsson  <jas@extundo.com>
58363
58364         * m4/mempcpy.m4: New file.
58365
58366 2003-07-14  Simon Josefsson  <jas@extundo.com>
58367
58368         * lib/mempcpy.h: New file.
58369         * lib/mempcpy.c: New file.
58370
58371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58372
58373         * modules/getdate, modules/posixtm: Depend on mktime.
58374
58375 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58376
58377         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58378         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58379         unicodeio.c, unicodeio.h, unlocked-io.h:
58380         Switch from LGPL to GPL.
58381
58382 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58383
58384         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58385         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58386         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58387         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58388         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58389         updated automatically by ../config/srclist-update.  This changes
58390         their license from LPGL to GPL.
58391
58392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58393
58394         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58395         assumed to refer to the root of the most recent stable gettext version.
58396         * config/srclistvars.sh: Add defaults for eggert.
58397         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58398         Match "This program" as well as "The program".  This is needed
58399         for gettext.
58400
58401 2003-07-14  Jim Meyering  <jim@meyering.net>
58402
58403         Don't emit diagnostics.  Let callers do that.
58404         * lib/save-cwd.c: Don't include "error.h".
58405         (save_cwd): Don't call error.  Ensure that errno is valid
58406         when returning nonzero.
58407
58408         * lib/save-cwd.h (restore_cwd): Update prototype.
58409         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58410         Simplify.  Don't call error upon failure.  Let callers do that.
58411         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58412         when auditing is enabled.  But don't bother updating the #if.
58413
58414 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58415
58416         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58417         it breaks C++ compilation.
58418         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58419
58420 2003-07-10  Simon Josefsson  <jas@extundo.com>
58421
58422         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58423
58424 2003-07-10  Jim Meyering  <jim@meyering.net>
58425
58426         * m4/clock_time.m4: Remove trailing blank.
58427         * m4/intmax_t.m4: Likewise.
58428
58429 2003-07-10  Jim Meyering  <jim@meyering.net>
58430
58431         * lib/vasnprintf.c: Remove trailing blanks.
58432         Make cpp indentation consistent.
58433
58434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58435
58436         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58437         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58438         Switch from LGPL to GPL.
58439
58440 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58441
58442         * config/srclist.txt: Sort sublists.  Add
58443         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58444         that differ from gnulib for one reason or another; we'd like this list
58445         to be smaller but for now let's document what we have.
58446
58447 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58448
58449         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58450         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58451         and sweeter "eval x=$x".
58452         * config/srclist.txt: Get lib/argp* from glibc.
58453
58454 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58455
58456         * lib/mktime.c: Fix some boundary cases and remove need for floating
58457         point.
58458
58459         Issue a compile-time diagnostic if time_t is floating point, or if
58460         two's complement arithmetic is not in effect, or if arithmetic
58461         right shift does not propagate the sign.  These assumptions were
58462         all in the original code but they weren't checked.
58463
58464         (TIME_T_MIDPOINT, verify): New macros.
58465         (__isleap): Remove; it has integer overflow problems.
58466         (leapyear): New function, without those problems.
58467         (ydhms_tm_diff): Remove; splitting into two parts.
58468         (ydhms_diff): New function, containing the arithmetic part of
58469         the old ydhms_tm_diff function.  Issue a compile-time
58470         diagnostic if we are not using C99 integer division.
58471         Avoid casts when possible.
58472         (guess_time_tm): New function, containing the checking part of
58473         the old ydhms_tm_diff function.  Return the new value, rather than
58474         the difference between it and the old.  Accept a new argument T
58475         so that *T specifies the old value.  Check for overflow in the result.
58476
58477         (__mktime_internal): Use a time_t offset, not a long int offset.
58478         This undoes the 2003-06-04 change, which is no longer needed now
58479         that we have better overflow checking.
58480         (localtime_offset): Likewise.
58481
58482         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58483         and long are 64-bit but int is only 32-bit.
58484         (ydhms_diff): Use long int to store year1 and yday1.
58485         Issue a compile-time diagnostic if long int is not wide enough.
58486
58487         (__mktime_internal): Use long int to store adjusted year and yday.
58488         Use plain C rather than preprocessor commands, if that doesn't
58489         affect efficiency.
58490         Check for overflow (and try to repair) after each probe
58491         rather than checking only at the very end.  This avoids some bugs
58492         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58493         does not equal GMT offset at maximum time).
58494         Use integer to check for overflow rather than floating point; this
58495         is more portable to non-IEEE hosts, and is a tad faster.
58496         When we detect that we are oscillating between two values,
58497         don't check whether tm_isdst has the requested value, since
58498         we already know the answer.  When tm_isdst has the wrong value,
58499         use a different heuristic to find the right one, based on the
58500         extreme values actually observed in practice in tz2003a,
58501         rather than the (overly optimistic) "previous 3 calendar quarters".
58502
58503         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58504         "T const" to accommodate glibc style.
58505         (check_result): Use less-confusing report format.  "long" -> "long int.
58506         (main): Likewise.
58507         Don't loop if the iteration overflows time_t.
58508         Allow a negative step in the iteration.
58509
58510 2003-07-06  Karl Berry  <karl@gnu.org>
58511
58512         * config/depcomp: update from automake.
58513         * config/config.sub: update from prep.
58514
58515 2003-07-03  Karl Berry  <karl@gnu.org>
58516
58517         * config/config.guess: update from prep.
58518
58519 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58520
58521         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58522         xreadlink.c now includes it unconditionally.
58523
58524 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58525
58526         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58527         having it depend on HAVE_SYS_TYPES_H.
58528
58529 2003-07-01  Bruno Haible  <bruno@clisp.org>
58530
58531         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58532         <sys/types.h> should be sufficient.
58533         Reported by Paul Eggert.
58534
58535 2003-06-26  Karl Berry  <karl@gnu.org>
58536
58537         * config/depcomp: update from automake.
58538
58539 2003-06-26  Bruno Haible  <bruno@clisp.org>
58540
58541         * modules/human: Depend on module stdbool.
58542
58543 2003-06-25  Bruno Haible  <bruno@clisp.org>
58544
58545         * modules/readlink: New file.
58546         * modules/xreadlink: Depend on it.
58547         * MODULES.html.sh (func_all_modules): Add readlink.
58548
58549 2003-06-25  Bruno Haible  <bruno@clisp.org>
58550
58551         * m4/readlink.m4: New file.
58552
58553 2003-06-25  Bruno Haible  <bruno@clisp.org>
58554
58555         * lib/readlink.c: New file.
58556
58557 2003-06-22  Karl Berry  <karl@gnu.org>
58558
58559         * config/srclist.txt: update mkinstalldirs from automake.
58560         * config/mkinstalldirs: update.
58561
58562 2003-06-22  Bruno Haible  <bruno@clisp.org>
58563
58564         Portability to mingw32.
58565         * m4/ssize_t.m4: New file, from GNU gettext.
58566         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58567         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58568
58569 2003-06-22  Bruno Haible  <bruno@clisp.org>
58570
58571         * modules/safe-read: Add m4/ssize_t.m4.
58572         * modules/xreadlink: Add m4/ssize_t.m4.
58573
58574 2003-06-20  Bruno Haible  <bruno@clisp.org>
58575
58576         Assume C89, so PARAMS isn't needed.
58577         * lib/unicodeio.h (PARAMS): Remove.
58578         * lib/unicodeio.c: Don't use PARAMS.
58579
58580 2003-06-18  Karl Berry  <karl@gnu.org>
58581
58582         * config/config.{guess,sub}: update from prep.
58583
58584 2003-06-18  Jim Meyering  <jim@meyering.net>
58585
58586         Merge changes from coreutils.
58587         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58588         Remove explicit declarations of xmalloc and realloc.
58589         Include xalloc.h.
58590         (read_utmp): Remove anachronistic cast of xmalloc.
58591
58592 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58593
58594         Assume C89, so PARAMS isn't needed.
58595         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58596         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58597         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58598         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58599         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58600         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58601         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58602         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58603         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58604         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58605         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58606         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58607         no longer needed. Anyway, config.h should always be included before any
58608         other file.
58609
58610 2003-06-11  Simon Josefsson  <jas@extundo.com>
58611
58612         * modules/sysexits: New file.
58613         * MODULES.html.sh (func_all_modules): Add sysexits.
58614
58615 2003-06-11  Simon Josefsson  <jas@extundo.com>
58616
58617         * lib/sysexit_.h: New file.
58618
58619 2003-06-11  Derek Price  <derek@ximbiot.com>
58620
58621         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58622         necessary.
58623
58624 2003-06-11  Bruno Haible  <bruno@clisp.org>
58625
58626         * m4/sysexits.m4: New file.
58627
58628 2003-06-10  Simon Josefsson  <jas@extundo.com>
58629
58630         * lib/argp.h: New file, from glibc.
58631         * lib/argp-ba.c: New file, from glibc.
58632         * lib/argp-eexst.c: New file, from glibc.
58633         * lib/argp-fmtstream.c: New file, from glibc.
58634         * lib/argp-fmtstream.h: New file, from glibc.
58635         * lib/argp-fs-xinl.c: New file, from glibc.
58636         * lib/argp-help.c: New file, from glibc.
58637         * lib/argp-namefrob.h: New file, from glibc.
58638         * lib/argp-parse.c: New file, from glibc.
58639         * lib/argp-pv.c: New file, from glibc.
58640         * lib/argp-pvh.c: New file, from glibc.
58641         * lib/argp-xinl.c: New file, from glibc.
58642
58643 2003-06-10  Simon Josefsson  <jas@extundo.com>
58644
58645         * modules/strchrnul: New file.
58646
58647 2003-06-10  Simon Josefsson  <jas@extundo.com>
58648
58649         * modules/argp: New file.
58650
58651 2003-06-10  Simon Josefsson  <jas@extundo.com>
58652
58653         * m4/strchrnul.m4: New file.
58654
58655 2003-06-10  Simon Josefsson  <jas@extundo.com>
58656
58657         * lib/strchrnul.h: New file.
58658         * lib/strchrnul.c: New file.
58659
58660 2003-06-10  Bruno Haible  <bruno@clisp.org>
58661
58662         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58663
58664 2003-06-07  Karl Berry  <karl@gnu.org>
58665
58666         * config/config.{guess,sub}: update from prep.
58667
58668 2003-06-07  Jim Meyering  <jim@meyering.net>
58669
58670         * modules/strtod: Use $(...) notation, not @...@ for
58671         AC_REPLACE'd variables.
58672         * modules/localcharset: Likewise.
58673
58674 2003-06-07  Jim Meyering  <jim@meyering.net>
58675
58676         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58677         in place of my name in the copyright comment.
58678         Remove definition and uses of __P.
58679
58680         From coreutils.
58681         * lib/stat.c: Don't declare xmalloc explicitly.
58682         Instead, include "xalloc.h".
58683         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58684         xrealloc, and xcalloc return values.
58685         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58686         Improve comment.
58687         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58688
58689 2003-06-07  Bruno Haible  <bruno@clisp.org>
58690
58691         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58692         avoid AC_CONFIG_LINKS.
58693         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58694         fnmatch.h, to avoid AC_CONFIG_LINKS.
58695         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58696
58697 2003-06-07  Bruno Haible  <bruno@clisp.org>
58698
58699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58700         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58701         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58702         directory.
58703         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58704         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58705         directory.
58706
58707 2003-06-06  Jim Meyering  <jim@meyering.net>
58708
58709         Merge from coreutils.
58710         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58711         Consolidate declarations and initializations of *_base* locals.
58712
58713         Merge from coreutils.
58714         This avoids a core dump on systems without GNU putenv,
58715         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58716         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58717         (unsetenv): New static function, from GNU libc.
58718         (rpl_putenv): Use it.
58719
58720         * lib/modechange.c: Remove trailing blanks.
58721
58722         Merge from coreutils.
58723         * lib/fsusage.c: Remove declaration of statfs.
58724         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58725
58726         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58727
58728 2003-06-06  Jim Meyering  <jim@meyering.net>
58729
58730         * lib/stdbool_.h: Renamed from stdbool.h.in.
58731
58732 2003-06-06  Jim Meyering  <jim@meyering.net>
58733             Bruno Haible  <bruno@clisp.org>
58734
58735         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58736         Adjust Makefile.am snippet not to redirect directly to target.
58737         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58738
58739 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58740
58741         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58742         mismatch, look in future quarters as well as past.  This fixes a
58743         bug when processing fall-backwards gaps immediately after a long
58744         period of daylight-saving time.
58745
58746         * lib/mktime.c: Assume freestanding C89 or better.
58747         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58748         (__P): Remove; not used.
58749         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58750         (mktime, not_equal_tm, print_tm, check_result,
58751         main): Use prototypes.  Use const * where appropriate.
58752         (main): Fix typo in testing code that uncovered by above changes.
58753         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58754
58755 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58756
58757         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58758         locale.h, localeconv.  This merges changes from coreutils.
58759
58760         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58761         It can be removed after the next Autoconf is released.
58762         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58763         needed.
58764
58765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58766
58767         * lib/mktime.c: Fix Debian bug 177940
58768         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58769         (localtime_offset): Now long int, not time_t, because we want it
58770         to be guaranteed to be signed.  All uses changed.
58771         (__mktime_internal): If overflow would occur when adding offset,
58772         don't add it.
58773
58774         Merge 'human' changes from coreutils.  Rewrite to support
58775         locale-specific notations like thousands separators.
58776         * lib/human.c: Simplify authorship notice.
58777         Include human.h immediately after config.h.
58778         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58779         <limits.h>: Do not include, since human.h does.
58780         (SIZE_MAX, UINTMAX_MAX): New macros.
58781         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58782         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58783         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58784         (power_letter): Renamed from suffixes.
58785         (generate_suffix_backwards): Remove.
58786         (adjust_value): Now takes int style (because of human.h changes)
58787         and long double value (for greater precision on some platforms).
58788         (group_number): New function.
58789         (human_readable): Use it.  Use integer options, not enum.
58790         Put the options before the sizes in the arg list.
58791         Support all the new options.
58792         The old human_readable function has been removed;
58793         use inttostr.h instead.
58794         (human_readable, default_block_size, humblock):
58795         Use uintmax_t, not int, for block sizes.
58796         (human_readable_inexact, block_size_types): Remove.
58797         (block_size_opts): New constant.
58798         (human_options): Renamed from human_block_size, with new signature
58799         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58800         * lib/human.h: Add copyright and authorship notice.
58801         Include <limits.h> and <stdbool.h> unconditionally.
58802         (PARAMS): Remove.  All uses removed.
58803         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58804         (enum human_inexact_style): Remove tag; now a nameless enum.
58805         (human_floor, human_ceiling, human_round_to_even): Now have
58806         values 2, 0, 1 rather than -1, 1, 0.
58807         (human_group_digits, human_suppress_point_zero, human_autoscale,
58808         human_base_1024, human_SI, human_B): New constants.
58809         (human_readable_inexact, human_block_size): Remove.
58810         (human_readable): Size args are now uintmax_t, not int.
58811         (human_options): New decl.
58812
58813         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58814         unnecessary now that we assume C89 or better.  This change
58815         imported from coreutils.
58816
58817         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58818         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58819         in the 2003-05-30 sync from glibc.
58820
58821         .h files should stand alone, but we shouldn't include <sys/types.h>
58822         if we can get away with just <stddef.h>.
58823
58824         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58825         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58826         rather than <sys/types.h>, as we merely need size_t.
58827         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58828         to get size_t.
58829         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58830         Include <stdio.h>, to get FILE.
58831         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58832         memcasecmp.h has included <stddef.h> and all we need is size_t.
58833         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58834         our interface, instead of including <sys/types.h>
58835
58836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58837
58838         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58839         now, as glibc mktime is buggy on non-glibc systems.
58840
58841 2003-06-03  Karl Berry  <karl@gnu.org>
58842
58843         * config/config.sub: update from prep.
58844
58845 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58846
58847         [from coreutils]
58848         Fix some minor time-related bugs with POSIX time arguments.
58849         Some valid time stamps were being rejected (notably -1, and
58850         time stamps before 1900 on 64-bit hosts).  And some invalid
58851         time stamps were being accepted, e.g. September 31.
58852
58853         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58854         that we can return (time_t) -1 successfully.
58855         * lib/posixtm.c: Likewise.
58856         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58857         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58858         (t): Remove static var.
58859         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58860         of static var.  All uses changed.
58861         (year): Do not reject years before 1900; they can occur with
58862         64-bit time_t.
58863         (posix_time_parse): Do not check for out-of-range components;
58864         that is now the caller's responsibility, since our checks were
58865         only approximations.
58866         (posixtime): Use mktime to check for out-of-range components,
58867         since it knows them exactly.
58868         If mktime returns (time_t) -1, check whether an error actually occurred
58869         by invoking localtime on -1.
58870         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58871         posixtime failures better.
58872         Improve the test data (in comments only).
58873
58874 2003-06-02  Karl Berry  <karl@gnu.org>
58875
58876         * config/mkinstalldirs (version): new variable.
58877         (--version): new option.
58878         (usage): improve message.
58879
58880 2003-05-30  Karl Berry  <karl@gnu.org>
58881
58882         * lib/mktime.c: update from libc.
58883
58884 2003-05-30  Bruno Haible  <bruno@clisp.org>
58885
58886         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58887         * config/config.rpath: Upgrade to gettext-0.12.1.
58888
58889 2003-05-30  Bruno Haible  <bruno@clisp.org>
58890
58891         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58892         * m4/nls.m4: New file, from gettext-0.12.1.
58893         * m4/po.m4: New file, from gettext-0.12.1.
58894         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58895
58896 2003-05-30  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58899         * lib/localcharset.h: Likewise.
58900         * lib/localcharset.c: Likewise.
58901
58902 2003-05-29  Karl Berry  <karl@gnu.org>
58903
58904         * config/config.rpath: update from gettext.
58905
58906 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58907
58908         Assume the headers required for C89 freestanding compilers.
58909         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58910         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58911         * m4/human.m4 (gl_HUMAN): Likewise.
58912         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58913         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58914         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58915         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58917         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58918
58919 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58920
58921         Assume the headers required for C89 freestanding compilers.
58922         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58923         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58924         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58925         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58926         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58927         define, since <limits.h> is guaranteed to do that.
58928         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58929         * lib/exclude.c: Include <stdbool.h> unconditionally.
58930         * lib/tempname.c: Include <stddef.h> unconditionally.
58931         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58932         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58933         <stddef.h> does that.
58934         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58935         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58936         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58937         needed.
58938         * lib/xstrtol.c: Likewise.
58939         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58940         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58941
58942         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58943         warnings on some platforms.
58944
58945         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58946         arbitrarily.
58947
58948 2003-05-26  Jim Meyering  <jim@meyering.net>
58949
58950         Merge in a change from coreutils:
58951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58952         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58953         that condition, rather than `-1' which is slightly misleading.
58954         Change the name of the cache variable to have the gl_ prefix.
58955         Prompted by a patch from Richard Dawe for DJGPP.
58956
58957 2003-05-24  Karl Berry  <karl@gnu.org>
58958
58959         * config/config.guess: update from prep.
58960
58961 2003-05-22  Karl Berry  <karl@gnu.org>
58962
58963         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58964
58965 2003-05-20  Karl Berry  <karl@gnu.org>
58966
58967         * config/config.guess: update from prep.
58968
58969 2003-05-18  Karl Berry  <karl@gnu.org>
58970
58971         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58972         might actually be set by the user.
58973
58974         * config/depcomp, install-sh, mdate-sh: update from automake.
58975
58976 2003-05-17  Bruno Haible  <bruno@clisp.org>
58977
58978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58979         invalid expansion for AC_EGREP_CPP.
58980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58982         Suggested by Akim Demaille <akim@epita.fr> in
58983         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58984
58985 2003-05-12  Jim Meyering  <jim@meyering.net>
58986
58987         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58988         the space-padded-by-default conversion specifiers, %e, %k, %l.
58989
58990 2003-05-12  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58993         the string is longer than 4 KB.
58994
58995 2003-05-11  Karl Berry  <karl@gnu.org>
58996
58997         * config/config.{guess,sub}: update from prep.
58998
58999 2003-05-09  Bruno Haible  <bruno@clisp.org>
59000
59001         * modules/error: Add m4/strerror_r.m4 to file list.
59002
59003 2003-05-03  Bruno Haible  <bruno@clisp.org>
59004
59005         Upgrade to Unicode-4.0.
59006         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59007         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59008         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59009         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59010         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59011         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59012         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59013         Change width of U+E0100..U+E01EF from 1 to 0.
59014
59015 2003-04-25  Jim Meyering  <jim@meyering.net>
59016
59017         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59018         of type size_t, not int.
59019
59020 2003-04-25  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/copy-file.c: Include <stddef.h>, for size_t.
59023
59024 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59025
59026         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59027         code which expansion is under static control.  Patch imported from
59028         Akim Demaille's patch to Bison; see
59029         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59030
59031 2003-04-14  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59034
59035 2003-04-11  Jim Meyering  <jim@meyering.net>
59036
59037         Merge changes from Coreutils.
59038
59039         2003-03-22  Jim Meyering  <jim@meyering.net>
59040
59041         * lib/strftime.c (widen): Cast alloca return value to proper type.
59042
59043         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59044
59045         From GNU libc.
59046         * lib/strftime.c (my_strftime): Handle very large width
59047         specifications for numeric values correctly.  Improve checks for
59048         overflow.
59049
59050         2003-01-19  Jim Meyering  <jim@meyering.net>
59051
59052         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59053         definitions.
59054         (nl_get_alt_digit) [! defined my_strftime]: Define.
59055         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59056         _nl_get_alt_digit and _nl_get_walt_digit.
59057
59058         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59059         libc. These changes have no effect outside of _LIBC.
59060
59061 2003-04-10  Bruno Haible  <bruno@clisp.org>
59062
59063         * modules/findprog: New file.
59064         * MODULES.html.sh (func_all_modules): Add it.
59065
59066 2003-04-10  Bruno Haible  <bruno@clisp.org>
59067
59068         * m4/findprog.m4: New file.
59069         * m4/eaccess.m4: New file.
59070
59071 2003-04-10  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/findprog.h: New file, from GNU gettext.
59074         * lib/findprog.c: New file, from GNU gettext.
59075
59076 2003-04-05  Jim Meyering  <jim@meyering.net>
59077
59078         Merge changes from Coreutils.
59079
59080         * lib/exclude.h (PARAMS): Remove definition and uses.
59081         * lib/exclude.c: Remove uses of `PARAMS'.
59082
59083         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59084         Add test-cases for DOS filenames. Declare program_name.
59085         (main): Set up program_name.  Patch by Rich Dawe.
59086
59087         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59088         error from mntctl.
59089         Use mntctl's return value to drive the entry-processing loop, since
59090         we can't rely on the value of the vmt_length member in the last
59091         entry.  On some systems doing so could result in exhausting
59092         virtual memory.  Based in part on a patch from Mike Jetzer.
59093
59094 2003-04-04  Bruno Haible  <bruno@clisp.org>
59095
59096         * modules/linebreak: New file.
59097         * MODULES.html.sh (func_all_modules): Add it.
59098
59099 2003-04-04  Bruno Haible  <bruno@clisp.org>
59100
59101         * m4/linebreak.m4: New file.
59102
59103 2003-04-04  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/linebreak.h: New file, from GNU gettext.
59106         * lib/linebreak.c: New file, from GNU gettext with slight
59107         modifications.
59108         * lib/lbrkprop.h: New file, from GNU gettext.
59109
59110 2003-04-03  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/utf8-ucs4: New file.
59113         * modules/utf16-ucs4: New file.
59114         * modules/ucs4-utf8: New file.
59115         * modules/ucs4-utf16: New file.
59116         * MODULES.html.sh (func_all_modules): Add them.
59117
59118 2003-04-03  Bruno Haible  <bruno@clisp.org>
59119
59120         * m4/utf-ucs4.m4: New file.
59121         * m4/ucs4-utf.m4: New file.
59122
59123 2003-04-03  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/utf8-ucs4.h: New file, from GNU gettext.
59126         * lib/utf16-ucs4.h: New file, from GNU gettext.
59127         * lib/ucs4-utf8.h: New file, from GNU gettext.
59128         * lib/ucs4-utf16.h: New file, from GNU gettext.
59129
59130 2003-04-02  Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/binary-io: New file.
59133         * MODULES.html.sh (func_all_modules): Add it.
59134
59135 2003-04-02  Bruno Haible  <bruno@clisp.org>
59136
59137         * lib/binary-io.h: New file, from GNU gettext.
59138
59139 2003-04-01  Bruno Haible  <bruno@clisp.org>
59140
59141         * modules/pathname: New file.
59142         * MODULES.html.sh (func_all_modules): Add it.
59143
59144 2003-04-01  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/pathname.h: New file, from GNU gettext.
59147         * lib/concatpath.c: New file, from GNU gettext.
59148
59149 2003-03-30  Bruno Haible  <bruno@clisp.org>
59150
59151         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59152
59153 2003-03-30  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59156         function chown() doesn't exist.
59157
59158 2003-03-28  Bruno Haible  <bruno@clisp.org>
59159
59160         * modules/copy-file: New file.
59161         * MODULES.html.sh (func_all_modules): Add it.
59162
59163 2003-03-28  Bruno Haible  <bruno@clisp.org>
59164
59165         * m4/copy-file.m4: New file.
59166
59167 2003-03-28  Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/copy-file.h: New file, from GNU gettext.
59170         * lib/copy-file.c: New file, from GNU gettext.
59171
59172 2003-03-18  Jim Meyering  <jim@meyering.net>
59173
59174         * lib/quote.c (quote_n): Fix typo in comment.
59175
59176 2003-03-18  Bruno Haible  <bruno@clisp.org>
59177
59178         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59179         checking.
59180         * m4/onceonly_2_57.m4: Likewise.
59181
59182 2003-03-17  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59185         (m4_quote): Remove macro.
59186         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59187
59188 2003-03-14  Jim Meyering  <jim@meyering.net>
59189
59190         Merge changes from Coreutils.
59191         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59192         to be const, in order to avoid warnings.
59193         (obstack_room): Likewise.
59194         (obstack_empty_p): Likewise.
59195
59196 2003-03-14  Bruno Haible  <bruno@clisp.org>
59197
59198         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59199         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59200
59201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59202
59203         Merge changes from Bison.
59204         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59205         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59206         when compiling Bison 1.875's `bitset bset = obstack_alloc
59207         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59208         * lib/hash.c: Include <stdbool.h> unconditionally.
59209
59210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59211
59212         * m4/onceonly.m4 (m4_quote): New macro.
59213         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59214         Quote AC_FOREACH variable-expansions properly.
59215
59216 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59217
59218         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59219
59220 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59221
59222         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59223         Reported by Bruce Becker; see:
59224         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59225
59226 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59227             Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59230         Reported by John Hughes, see
59231         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59232
59233 2003-02-20  Bruno Haible  <bruno@clisp.org>
59234
59235         * MODULES.html.sh (func_all_modules): Add poll.
59236
59237 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59238
59239         * modules/poll: New file.
59240
59241 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59242
59243         * lib/poll_.h: New file.
59244         * lib/poll.c: New file.
59245
59246 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59247
59248         * m4/poll.m4: New file.
59249
59250 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59251
59252         * modules/mathl: New file.
59253
59254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59255
59256         * lib/mathl.h: New file.
59257         * lib/acosl.c: New file.
59258         * lib/asinl.c: New file.
59259         * lib/atanl.c: New file.
59260         * lib/ceill.c: New file.
59261         * lib/cosl.c: New file.
59262         * lib/expl.c: New file.
59263         * lib/floorl.c: New file.
59264         * lib/frexpl.c: New file.
59265         * lib/ldexpl.c: New file.
59266         * lib/logl.c: New file.
59267         * lib/sincosl.c: New file.
59268         * lib/sinl.c: New file.
59269         * lib/sqrtl.c: New file.
59270         * lib/tanl.c: New file.
59271         * lib/trigl.c: New file.
59272         * lib/trigl.h: New file.
59273
59274 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59275
59276         * m4/mathl.m4: New file.
59277
59278 2003-02-18  Bruno Haible  <bruno@clisp.org>
59279
59280         * MODULES.html.sh (func_all_modules): Add mathl.
59281
59282 2003-02-17  Bruno Haible  <bruno@clisp.org>
59283
59284         * modules/mkdtemp: New module.
59285         * MODULES.html.sh (func_all_modules): Add it.
59286
59287 2003-02-17  Bruno Haible  <bruno@clisp.org>
59288
59289         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59290
59291 2003-02-17  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/mkdtemp.h: New file, from GNU gettext.
59294         * lib/mkdtemp.c: New file, from GNU gettext.
59295
59296 2003-02-02  Jim Meyering  <jim@meyering.net>
59297
59298         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59299         e.g. glibc-2.2.93.
59300
59301 2003-01-31  Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59304         'rpl_rename'.
59305         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59306         'rpl_strnlen'.
59307         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59308         'rpl_strtod'.
59309         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59310         'rpl_utime'.
59311
59312 2003-01-31  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/rename.c: #undef rename before defining rpl_rename.
59315         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59316
59317 2003-01-30  Bruno Haible  <bruno@clisp.org>
59318
59319         * modules/vasnprintf, modules/vasprintf: New modules.
59320         * MODULES.html.sh (func_all_modules): Add them.
59321
59322 2003-01-30  Bruno Haible  <bruno@clisp.org>
59323
59324         * m4/signed.m4: New file, from GNU gettext.
59325         * m4/longdouble.m4: New file, from GNU gettext.
59326         * m4/wchar_t.m4: New file, from GNU gettext.
59327         * m4/wint_t.m4: New file, from GNU gettext.
59328         * m4/vasnprintf.m4: New file.
59329         * m4/vasprintf.m4: New file.
59330
59331 2003-01-30  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/printf-args.h: New file, from GNU gettext.
59334         * lib/printf-args.c: New file, from GNU gettext.
59335         * lib/printf-parse.h: New file, from GNU gettext.
59336         * lib/printf-parse.c: New file, from GNU gettext.
59337         * lib/vasnprintf.h: New file, from GNU gettext.
59338         * lib/vasnprintf.c: New file, from GNU gettext.
59339         * lib/asnprintf.c: New file, from GNU gettext.
59340         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59341         * lib/vasprintf.c: New file, from GNU gettext.
59342         * lib/asprintf.c: New file, from GNU gettext.
59343
59344 2003-01-29  Bruno Haible  <bruno@clisp.org>
59345
59346         * modules/stpncpy: New module.
59347         * MODULES.html.sh (func_all_modules): Add it.
59348
59349 2003-01-29  Bruno Haible  <bruno@clisp.org>
59350
59351         * m4/stpncpy.m4: New file.
59352
59353 2003-01-29  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59356         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59357
59358 2003-01-28  Bruno Haible  <bruno@clisp.org>
59359
59360         * modules/c-ctype: New module.
59361         * MODULES.html.sh (func_all_modules): Add it.
59362
59363 2003-01-28  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59366         Paul Eggert.
59367         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59368         Paul Eggert.
59369
59370 2003-01-27  Bruno Haible  <bruno@clisp.org>
59371
59372         * modules/xsetenv: New module.
59373         * MODULES.html.sh (func_all_modules): Add it.
59374
59375 2003-01-27  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/xsetenv.h: New file, from GNU gettext.
59378         * lib/xsetenv.c: New file, from GNU gettext.
59379
59380 2003-01-23  Jim Meyering  <jim@meyering.net>
59381
59382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59383         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59384
59385 2003-01-23  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/minmax: New module.
59388         * MODULES.html.sh (func_all_modules): Add it.
59389
59390 2003-01-23  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59393         Eggert.
59394
59395 2003-01-22  Bruno Haible  <bruno@clisp.org>
59396
59397         * modules/exit: New module.
59398         * MODULES.html.sh (func_all_modules): Add it.
59399
59400 2003-01-22  Bruno Haible  <bruno@clisp.org>
59401
59402         * lib/exit.h: New file, from GNU gettext.
59403
59404 2003-01-19  Bruno Haible  <bruno@clisp.org>
59405
59406         * gnulib-tool: Recognize option --extract-maintainer.
59407         (func_get_maintainer): New function.
59408         * modules/*: Add Maintainer entry.
59409
59410 2003-01-16  Jim Meyering  <jim@meyering.net>
59411
59412         * m4/regex.m4: The `regex' struct is both input and output.
59413         Initialize it before each use.  Patch by Tim Waugh.
59414
59415 2003-01-16  Bruno Haible  <bruno@clisp.org>
59416
59417         * MODULES.html.sh: Add a table of contents. Add the module name as
59418         leftmost column. Add hyperlinks.
59419
59420 2003-01-15  Bruno Haible  <bruno@clisp.org>
59421
59422         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59423
59424 2003-01-15  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59428         suffix.
59429
59430 2003-01-15  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59433
59434 2003-01-15  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59437         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59438
59439 2003-01-14  Jim Meyering  <jim@meyering.net>
59440
59441         * lib/same.c (same_name): Tweak a comment.
59442
59443 2003-01-14  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59446         when a string comparison is sufficient.
59447
59448 2003-01-14  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59451         'unsigned int'.
59452
59453 2003-01-14  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/hash-pjw.c: Add comment about low quality of this function.
59456
59457 2003-01-13  Bruno Haible  <bruno@clisp.org>
59458
59459         * modules/stpcpy: Distribute lib/stpcpy.h.
59460         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59461
59462 2003-01-13  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/*: Add a description.
59465         * modules/strpbrk: Fix Makefile.am snippet.
59466         * modules/strtoimax: Fix dependencies.
59467         * modules/strtoumax: Likewise.
59468
59469 2003-01-13  Bruno Haible  <bruno@clisp.org>
59470
59471         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59472         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59473         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59474
59475 2003-01-13  Bruno Haible  <bruno@clisp.org>
59476
59477         * gnulib-tool (func_create_testdir): Store config/* files in the main
59478         directory.
59479         * config.rpath: Move to ...
59480         * config/config.rpath: ... here.
59481         * modules/gettext: Contains config/config.rpath, not config.rpath.
59482         * modules/iconv: Likewise.
59483
59484 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59485
59486         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59487         to avoid collisions with libcurses and libreadline.
59488
59489         * m4/getstr.m4: Remove.
59490         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59491
59492 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59493
59494         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59495         to avoid collisions with libcurses and libreadline.
59496
59497         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59498         * lib/getstr.h, getstr.c: Remove.
59499         * lib/getline.c: Include "getline.h", to check interface.
59500         Move body of old getstr.c here: this defines MIN_CHUNK and
59501         declares getdelim2, which is renamed from getstr.
59502         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59503
59504         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59505         All uses changed.
59506         * lib/linebuffer.h: Likewise.
59507         (readline): Remove backward-compatibility macro.
59508
59509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59510
59511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59512         to avoid collisions with libcurses and libreadline.
59513         * getstr: Remove.
59514         * MODULES.html.sh: Remove getstr.
59515         * modules/getline: Depend on unlocked-io, not getstr.
59516
59517 2003-01-12  Jim Meyering  <jim@meyering.net>
59518
59519         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59520
59521 2003-01-10  Bruno Haible  <bruno@clisp.org>
59522
59523         * modules/alloca: Change Makefile.am requirements. Simplify Include
59524         requirements. Add lib/alloca_.h to file list.
59525
59526 2003-01-10  Bruno Haible  <bruno@clisp.org>
59527
59528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59529
59530 2003-01-10  Bruno Haible  <bruno@clisp.org>
59531
59532         * lib/alloca_.h: New file.
59533         * lib/getdate.y: Unconditionally include alloca.h.
59534         * lib/makepath.c: Likewise.
59535         * lib/setenv.c: Likewise.
59536         * lib/userspec.c: Likewise.
59537
59538 2003-01-09  Karl Berry  <karl@gnu.org>
59539
59540         * MODULES.html.sh: include `dirname $0` in PATH, to find
59541         gnulib-tool.
59542
59543 2003-01-09  Bruno Haible  <bruno@clisp.org>
59544
59545         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59546         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59547
59548 2003-01-09  Bruno Haible  <bruno@clisp.org>
59549
59550         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59551
59552 2003-01-09  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/stdbool.h.in: New file.
59555
59556 2003-01-09  Bruno Haible  <bruno@clisp.org>
59557
59558         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59559         * MODULES.html.sh: Likewise.
59560
59561 2003-01-08  Jim Meyering  <jim@meyering.net>
59562
59563         * lib/full-write.c: Undefine and define-away `const' after inclusion
59564         of errno.h, not before.  Suggestion from Bruno Haible.
59565
59566 2003-01-08  Bruno Haible  <bruno@clisp.org>
59567
59568         * modules/full-read: Depend on full-write.
59569
59570 2003-01-08  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/safe-read.c: Include specification header first, to ensure its
59573         selfcontainedness.
59574         * lib/full-write.c: Likewise.
59575
59576 2003-01-07  Jim Meyering  <jim@meyering.net>
59577
59578         * lib/full-write.c: Rework so that it may serve to define full_read,
59579         too.
59580         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59581
59582 2003-01-07  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59585         <inttypes.h>.
59586         * lib/xstrtol.h: Likewise.
59587         * lib/xstrtoimax.c: Likewise.
59588         * lib/xstrtoumax.c: Likewise.
59589         * lib/human.h: Likewise.
59590
59591         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59592         on systems that have <inttypes.h> but not <stdint.h>.
59593
59594 2003-01-07  Bruno Haible  <bruno@clisp.org>
59595
59596         * MODULES.html.sh: Add copyright notice.
59597         (missed_files): Omit CVS directory entries.
59598         (func_module): Make it work with sed-3.02.
59599         * MODULES.txt: Remove file.
59600
59601 2003-01-06  Jim Meyering  <jim@meyering.net>
59602
59603         * lib/version-etc.c: Update year in translatable copyright string.
59604
59605 2003-01-03  Karl Berry  <karl@gnu.org>
59606
59607         * config/config.{guess,sub}: update from prep.
59608
59609 2003-01-02  Karl Berry  <karl@gnu.org>
59610
59611         * doc/COPYING.DOC: belatedly updated to 1.2.
59612
59613 2003-01-01  Karl Berry  <karl@gnu.org>
59614
59615         * gnulib-tool (func_verify_module): report module name $module in
59616         error message, not $1.
59617         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59618         be created, only if it doesn't exist.
59619         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59620
59621 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59622
59623         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59624
59625 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59626
59627         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59628         memcmp if strcoll doesn't work.
59629
59630 2002-12-31  Bruno Haible  <bruno@clisp.org>
59631
59632         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59633         nonempty.
59634
59635 2002-12-31  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/memcoll.c (STRCOLL): New macro.
59638         (memcoll): Use it.
59639
59640 2002-12-31  Bruno Haible  <bruno@clisp.org>
59641
59642         * lib/localcharset.h: New file.
59643         * lib/localcharset.c: Include it.
59644         * lib/unicodeio.c: Likewise.
59645
59646 2002-12-31  Bruno Haible  <bruno@clisp.org>
59647
59648         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59649         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59650
59651 2002-12-31  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/getline.h: Include <stddef.h>, for size_t.
59654
59655         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59656         * lib/unicodeio.c: Don't include <stddef.h>.
59657
59658 2002-12-31  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59661         HAVE_TM_ZONE.
59662
59663 2002-12-24  Karl Berry  <karl@gnu.org>
59664
59665         * config/config.guess: update from prep.
59666
59667 2002-12-24  Bruno Haible  <bruno@clisp.org>
59668
59669         General infrasructure.
59670         * m4/README: Rewritten.
59671         * m4/onceonly.m4: New file.
59672         * m4/onceonly_2_57.m4: New file.
59673
59674         Module atexit.
59675         * m4/atexit.m4: New file.
59676
59677         Module strtod.
59678         * m4/strtod.m4: New file.
59679
59680         Module strtol.
59681         * m4/strtol.m4: New file.
59682
59683         Module strtoul.
59684         * m4/strtoul.m4: New file.
59685
59686         Module memchr.
59687         * m4/memchr.m4: New file.
59688
59689         Module memcmp.
59690         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59691         (jm_FUNC_MEMCMP): Invoke it.
59692
59693         Module memcpy.
59694         * m4/memcpy.m4: New file.
59695
59696         Module memmove.
59697         * m4/memmove.m4: New file.
59698
59699         Module memset.
59700         * m4/memset.m4: New file.
59701
59702         Module strcspn.
59703         * m4/strcspn.m4: New file.
59704
59705         Module strpbrk.
59706         * m4/strpbrk.m4: New file.
59707
59708         Module strstr.
59709         * m4/strstr.m4: New file.
59710
59711         Module strerror.
59712         * m4/strerror.m4: New file.
59713
59714         Module mktime.
59715         * m4/mktime.m4: Renamed from jm-mktime.m4.
59716         (gl_PREREQ_MKTIME): New macro.
59717         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59718
59719         Module malloc.
59720         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59721         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59722         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59723
59724         Module realloc.
59725         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59726         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59727         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59728
59729         Module strftime.
59730         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59732         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59733         gl_TM_GMTOFF.
59734         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59735
59736         Module xalloc.
59737         * m4/xalloc.m4: New file.
59738
59739         Module alloca.
59740         * m4/alloca.m4: New file.
59741
59742         Module putenv.
59743         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59744         (jm_FUNC_PUTENV): Invoke it.
59745
59746         Module setenv.
59747         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59748         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59749         when invoked twice.
59750         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59751         gt_FUNC_SETENV.
59752
59753         Module memrchr.
59754         * m4/memrchr.m4: New file.
59755
59756         Module stpcpy.
59757         * m4/stpcpy.m4: New file.
59758
59759         Module strcase.
59760         * m4/strcase.m4: New file.
59761
59762         Module strdup.
59763         * m4/strdup.m4: New file.
59764
59765         Module strnlen.
59766         * m4/strnlen.m4: New file.
59767
59768         Module strndup.
59769         * m4/strndup.m4: New file.
59770
59771         Module xstrtod.
59772         * m4/xstrtod.m4: New file.
59773
59774         Module xstrtol.
59775         * m4/xstrtol.m4: New file.
59776
59777         Module getdate.
59778         * m4/getdate.m4: New file.
59779
59780         Module unlocked-io.
59781         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59782         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59783         * m4/jm-glibc-io.m4n: Remove file.
59784
59785         Module long-options.
59786         * m4/long-options.m4: New file.
59787
59788         Module md5.
59789         * m4/md5.m4: New file.
59790
59791         Module sha.
59792         * m4/sha.m4: New file.
59793
59794         Module getstr.
59795         * m4/getstr.m4: New file.
59796
59797         Module getline.
59798         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59799         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59800         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59801         simply getline. Infoke gl_PREREQ_GETLINE.
59802
59803         Module obstack.
59804         * m4/obstack.m4: New file.
59805
59806         Module hash.
59807         * m4/hash.m4: New file.
59808
59809         Module readtokens.
59810         * m4/readtokens.m4: New file.
59811
59812         Module strverscmp.
59813         * m4/strverscmp.m4: New file.
59814
59815         Module stdbool.
59816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59817         OSF/1.
59818
59819         Module strtoll.
59820         * m4/strtoll.m4: New file.
59821
59822         Module strtoull.
59823         * m4/strtoull.m4: New file.
59824
59825         Module strtoimax.
59826         * m4/strtoimax.m4: New file.
59827
59828         Module strtoumax.
59829         * m4/strtoumax.m4: New file.
59830
59831         Module xstrtoimax.
59832         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59833         jm_AC_PREREQ_XSTRTOIMAX.
59834         Moved the strtol prerequisites to strtol.m4.
59835         Moved the strtoll prerequisites to strtoll.m4.
59836         Moved the strtoimax prerequisites to strtoimax.m4.
59837
59838         Module xstrtoumax.
59839         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59840         jm_AC_PREREQ_XSTRTOUMAX.
59841         Moved the strtoul prerequisites to strtoul.m4.
59842         Moved the strtoull prerequisites to strtoull.m4.
59843         Moved the strtoumax prerequisites to strtoumax.m4.
59844
59845         Module chown.
59846         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59847         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59848
59849         Module dup2.
59850         * m4/dup2.m4: New file.
59851
59852         Module ftruncate.
59853         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59854         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59855
59856         Module getgroups.
59857         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59858         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59859
59860         Module gettimeofday.
59861         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59863         gl_PREREQ_GETTIMEOFDAY.
59864
59865         Module mkdir.
59866         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59867         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59868
59869         Module mkstemp.
59870         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59871         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59872         jm_AC_TYPE_UINTMAX_T.
59873         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59874
59875         Module stat.
59876         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59877         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59878
59879         Module lstat.
59880         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59881         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59882
59883         Module timespec.
59884         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59885         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59886         * m4/st_mtim.m4: Indentation.
59887
59888         Module nanosleep.
59889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59890         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59891         gl_PREREQ_NANOSLEEP.
59892
59893         Module regex.
59894         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59895         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59896         (gl_REGEX): New macro.
59897
59898         Module rename.
59899         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59900         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59901
59902         Module rmdir.
59903         * m4/rmdir.m4: New file.
59904
59905         Module utime.
59906         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59907         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59908         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59909
59910         Module dirname.
59911         * m4/dirname.m4: New file.
59912
59913         Module getopt.
59914         * m4/getopt.m4: New file.
59915
59916         Module unistd-safer.
59917         * m4/unistd-safer.m4: New file.
59918
59919         Module fnmatch.
59920         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59921         declaration.
59922         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59923         (gl_FUNC_FNMATCH_POSIX): New macro.
59924         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59925         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59926         simply fnmatch.
59927
59928         Module exclude.
59929         * m4/exclude.m4: New file.
59930
59931         Module human.
59932         * m4/human.m4: New file.
59933
59934         Module acl.
59935         * m4/acl.m4: Nop.
59936
59937         Module backupfile.
59938         * m4/backupfile.m4: New file.
59939         * m4/d-ino.m4: Indentation.
59940
59941         Module fsusage.
59942         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59943         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59944         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59945
59946         Module dirfd.
59947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59948         requirements.
59949
59950         Module euidaccess.
59951         * m4/euidaccess.m4: New file.
59952
59953         Module file-type.
59954         * m4/file-type.m4: New file.
59955
59956         Module fileblocks.
59957         * m4/fileblocks.m4: New file.
59958
59959         Module filemode.
59960         * m4/filemode.m4: New file.
59961
59962         Module isdir.
59963         * m4/isdir.m4: New file.
59964
59965         Module lchown.
59966         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59967         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59968
59969         Module makepath.
59970         * m4/makepath.m4: New file.
59971
59972         Module modechange.
59973         * m4/modechange.m4: New file.
59974
59975         Module mountlist.
59976         * m4/mountlist.m4: New file.
59977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59978         Indentation.
59979
59980         Module path-concat.
59981         * m4/path-concat.m4: New file.
59982
59983         Module pathmax.
59984         * m4/pathmax.m4: New file.
59985
59986         Module same.
59987         * m4/same.m4: New file.
59988
59989         Module save-cwd.
59990         * m4/save-cwd.m4: New file.
59991
59992         Module savedir.
59993         * m4/savedir.m4: New file.
59994
59995         Module xgetcwd.
59996         * m4/xgetcwd.m4: New file.
59997         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59998
59999         Module xreadlink.
60000         * m4/xreadlink.m4: New file.
60001
60002         Module safe-read.
60003         * m4/safe-read.m4: New file.
60004
60005         Module safe-write.
60006         * m4/safe-write.m4: New file.
60007
60008         Module closeout.
60009         * m4/closeout.m4: New file.
60010
60011         Module stdio-safer.
60012         * m4/stdio-safer.m4: New file.
60013
60014         Module getpass.
60015         * m4/getpass.m4: New file.
60016
60017         Module getugroups.
60018         * m4/getugroups.m4: New file.
60019
60020         Module group-member.
60021         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60022         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60023
60024         Module idcache.
60025         * m4/idcache.m4: New file.
60026
60027         Module userspec.
60028         * m4/userspec.m4: New file.
60029
60030         Module gettime.
60031         * m4/clock_time.m4: New file.
60032         * m4/gettime.m4: New file.
60033
60034         Module settime.
60035         * m4/settime.m4: New file.
60036
60037         Module posixtm.
60038         * m4/posixtm.m4: New file.
60039
60040         Module gethostname.
60041         * m4/gethostname.m4: New file.
60042
60043         Module canon-host.
60044         * m4/canon-host.m4: New file.
60045
60046         Module gettext.
60047         * m4/codeset.m4: New file, from gettext-0.11.5.
60048         * m4/gettext.m4: New file, from gettext-0.11.5.
60049         * m4/glibc21.m4: New file, from gettext-0.11.5.
60050         * m4/iconv.m4: New file, from gettext-0.11.5.
60051         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60052         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60053         * m4/inttypes.m4: New file, from gettext-0.11.5.
60054         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60055         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60056         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60057         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60058         * m4/lib-link.m4: New file, from gettext-0.11.5.
60059         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60060         * m4/progtest.m4: New file, from gettext-0.11.5.
60061         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60062         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60063         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60064
60065         Module localcharset.
60066         * m4/localcharset.m4: New file.
60067
60068         Module hard-locale.
60069         * m4/hard-locale.m4: New file.
60070
60071         Module mbswidth.
60072         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60073         onceonly macros.
60074         * m4/mbrtowc.m4: Add comment.
60075
60076         Module memcasecmp.
60077         * m4/memcasecmp.m4: New file.
60078
60079         Module memcoll.
60080         * m4/memcoll.m4: New file.
60081
60082         Module unicodeio.
60083         * m4/unicodeio.m4: New file.
60084
60085         Module rpmatch.
60086         * m4/rpmatch.m4: New file.
60087
60088         Module yesno.
60089         * m4/yesno.m4: New file.
60090
60091         Module exitfail.
60092         * m4/exitfail.m4: New file.
60093
60094         Module c-stack.
60095         * m4/c-stack.m4 (gl_C_STACK): New macro.
60096         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60097
60098         Module error.
60099         * m4/error.m4 (gl_ERROR): New macro.
60100         (jm_PREREQ_ERROR): Use onceonly macros.
60101
60102         Module fatal.
60103         * m4/fatal.m4: New file.
60104
60105         Module getloadavg.
60106         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60107         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60108
60109         Module getpagesize.
60110         * m4/getpagesize.m4: New file.
60111
60112         Module getusershell.
60113         * m4/getusershell.m4: New file.
60114
60115         Module physmem.
60116         * m4/physmem.m4: New file.
60117
60118         Module posixver.
60119         * m4/posixver.m4: New file.
60120
60121         Module quotearg.
60122         * m4/quotearg.m4: New file.
60123
60124         Module quote.
60125         * m4/quote.m4: New file.
60126
60127         Module readutmp.
60128         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60129
60130         Module sig2str.
60131         * m4/sig2str.m4: New file.
60132
60133         Other.
60134         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60135         ulonglong.m4.
60136         * m4/intmax_t.m4: New file.
60137         * m4/d-type.m4: Indentation.
60138         * m4/jm-macros.m4: Update.
60139         * m4/prereq.m4 (jm_PREREQ): Update.
60140         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60141         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60142         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60143         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60144         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60145         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60146         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60147         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60148         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60149         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60150         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60151         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60152         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60153         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60154         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60155         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60156         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60157         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60158         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60159
60160 2002-12-24  Bruno Haible  <bruno@clisp.org>
60161
60162         * MODULES.txt: Update according to m4/ changes.
60163
60164         Module gettext.
60165         * config.rpath: New file, from gettext-0.11.5.
60166
60167         * modules/*: New module descriptions.
60168         * gnulib-tool: New file.
60169         * MODULES.html.sh: New file.
60170
60171 2002-12-21  Karl Berry  <karl@gnu.org>
60172
60173         * doc/fdl.texi: update to version 1.2.
60174
60175 2002-12-19  Karl Berry  <karl@gnu.org>
60176
60177         * config/config.guess: update from prep.
60178
60179 2002-12-18  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60182         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60183
60184 2002-12-17  Bruno Haible  <bruno@clisp.org>
60185
60186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60187         stdlib.h, string.h.
60188
60189 2002-12-17  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/canon-host.c (strdup): Remove unused declaration.
60192
60193         * lib/fsusage.c: Include full_read.h.
60194         (get_fs_usage): Use full_read instead of safe_read.
60195
60196         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60197
60198 2002-12-12  Karl Berry  <karl@gnu.org>
60199
60200         * config/config.guess: update from prep.
60201
60202 2002-12-11  Bruno Haible  <bruno@clisp.org>
60203
60204         * m4/setenv.m4: New file, from gettext-0.11.5.
60205
60206 2002-12-11  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60209         not unsetenv().
60210         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60211         modifications:
60212
60213         2002-12-11  Bruno Haible  <bruno@clisp.org>
60214
60215                 * setenv.c (alloca): Fall back to malloc.
60216                 (freea): New macro.
60217                 (setenv): Use freea() to free memory allocated with alloca().
60218
60219         2002-11-13  Bruno Haible  <bruno@clisp.org>
60220
60221                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60222                 function declarations.
60223                 * unsetenv.c (unsetenv): Likewise.
60224
60225         2002-03-04  Bruno Haible  <bruno@clisp.org>
60226
60227                 Portability to AIX 4.3.3.
60228                 * unsetenv.c: New file, extracted from setenv.c.
60229                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60230
60231         2001-12-20  Bruno Haible  <bruno@clisp.org>
60232
60233                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60234                 use malloc instead. For SunOS 4.
60235
60236         2001-12-11  Bruno Haible  <bruno@clisp.org>
60237
60238                 * setenv.c: Declare alloca.
60239                 (compar_fn_t): New typedef.
60240                 (KNOWN_VALUE, STORE_VALUE): Use it.
60241
60242         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60243         setenv.h.
60244
60245 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60246
60247         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60248         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60249         Choose values that are less likely to collide with system fnmatch
60250         options.
60251         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60252         defined (e.g., a pure POSIX system).
60253         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60254         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60255
60256 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60257
60258         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60259         a pain in practice to deal with generated m4 files.  This change
60260         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60261
60262         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60263         and jm-glibc-io.m4, as they are no longer a special case.
60264         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60265         kludge and the auto-generation stuff.  Check only whether the
60266         functions are declared, not whether they exist, since older hosts
60267         that don't declare the functions can't use the optimization anyway.
60268
60269 2002-12-06  Jim Meyering  <jim@meyering.net>
60270
60271         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60272
60273         Merge in changes from libc's misc/error.c, in preparation
60274         for the merge of gnulib's changes back into libc.
60275
60276         * lib/error.c (_): Define only if not already defined.
60277         Move definition to follow all #include directives.
60278         Include unlocked-io.h only if !_LIBC.
60279         [_LIBC]: Include <libio/libioP.h>.
60280         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60281         (fflush): Tweak definition to use INTUSE.
60282         (putc): Define.
60283
60284 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60285
60286         * lib/alloca.c [defined emacs]: Include "lisp.h".
60287         (xalloc_die) [defined emacs]: New macro.
60288         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60289         [! defined emacs]: Include <xalloc.h>.
60290         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60291         (pointer): Typedef to POINTER_TYPE *.
60292         (malloc): Remove decl; we now always use xmalloc.
60293         (alloca): Use old-style definition, since Emacs needs this.
60294         Check for arithmetic overflow when computing combined size.
60295
60296 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60297
60298         Do not generate unlocked-io.h automatically, since it's easier to
60299         maintain it by hand.
60300
60301         * lib/unlocked-io.h: New file, from GNU diffutils,
60302         but with proper copyright notice and attribution.
60303         * lib/gen-uio: Remove.
60304         * lib/Makefile.am: Add copyright notice.
60305         (libfetish_a_SOURCES): Add unlocked-io.h.
60306         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60307         (DISTCLEANFILES, io_functions): Remove macros.
60308         (EXTRA_DIST): Remove gen_uio.
60309         (unlocked-io.h): Remove rule.
60310
60311 2002-12-04  Jim Meyering  <jim@meyering.net>
60312
60313         Reflect the fact that stat.c and lstat.c are no longer generated.
60314         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60315         (DISTCLEANFILES): Likewise.
60316         (EXTRA_DIST): Likewise.
60317         (all_local): Don't depend on stat.c or lstat.c.
60318         (stat.c, lstat.c): Remove rules.
60319         (EXTRA_DIST): Remove xstat.in.
60320
60321         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60322         * lib/stat.c: New file.  Contents mostly from xstat.in.
60323         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60324         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60325
60326         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60327         too.
60328         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60329
60330 2002-12-03  Jim Meyering  <jim@meyering.net>
60331
60332         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60333         but not semantics, to minimize the differences between these two files.
60334         (safe_read): Change comment to mention SAFE_READ_ERROR.
60335
60336         * lib/safe-read.c (IS_EINTR): Define.
60337         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60338
60339 2002-12-02  Jim Meyering  <jim@meyering.net>
60340
60341         * lib/safe-read.c (EINTR): Define.
60342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60343         (INT_MAX): Provide fallback.
60344         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60345
60346         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60347
60348 2002-12-02  Bruno Haible  <bruno@clisp.org>
60349
60350         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60351         Define, taken from safe-read.c.
60352         (INT_MAX): Provide fallback.
60353         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60354         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60355
60356         * lib/safe-read.c (EINTR): Remove definition.
60357         (safe_read): Don't use EINTR if it is absent.
60358
60359 2002-12-01  Jim Meyering  <jim@meyering.net>
60360
60361         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60362         zero.
60363         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60364
60365 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60366
60367         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60368         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60369         with `if (! (value < limit)) abort ();', for readability.
60370
60371 2002-11-26  Karl Berry  <karl@gnu.org>
60372
60373         * lib/strdup.c: copy from libc again, with jim's ok.
60374         * lib/.cppi-disable: re-add strdup.c
60375
60376 2002-11-25  Karl Berry  <karl@gnu.org>
60377
60378         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60379         instead of "strtol.c".
60380
60381 2002-11-25  Karl Berry  <karl@gnu.org>
60382
60383         * config/install-sh: update from automake for variable quoting, $0 in
60384         error msgs, etc.
60385
60386         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60387         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60388         entry.
60389
60390 2002-11-25  Jim Meyering  <jim@meyering.net>
60391
60392         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60393
60394 2002-11-24  Karl Berry  <karl@gnu.org>
60395
60396         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60397         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60398
60399 2002-11-24  Jim Meyering  <jim@meyering.net>
60400
60401         Update from coreutils:
60402
60403         * lib/mktime.c: Merge in changes from libc.
60404
60405         Avoid a link-time failure on some Linux systems.
60406         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60407         (otherwise).
60408         (__mon_yday): Declare with the STATIC attribute.
60409         (__mktime_internal): Likewise.
60410         Based on a report from Greg Schafer.
60411
60412 2002-11-23  Jim Meyering  <jim@meyering.net>
60413
60414         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60415         Use `unsigned', not `int', as type of index.
60416
60417         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60418
60419         * lib/fsusage.c: Remove unneeded parentheses around operands of
60420         `defined'.
60421
60422 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60423
60424         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60425         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60426         so that we can be included first.
60427         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60428         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60429         No need to include stddef.h or sys/types.h any more.
60430         Surround local include files with "", not "<>".
60431         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60432         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60433         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60434         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60435         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60436         (ISPRINT): Remove; no longer needed now that we assume C89.
60437
60438         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60439         Preserve errno.
60440
60441         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60442         quotearg_char): Use SIZE_MAX rather than
60443         (size_t) -1 when we are talking about "infinity".
60444
60445         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60446
60447 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60448
60449         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60450         hint that one should use `if (! x) abort ();' rather than `assert
60451         (x);', and anyway it's one less thing to worry about configuring.
60452         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60453         hash_rehash, hash_insert): Use abort rather than assert.
60454
60455 2002-11-22  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/safe-read.h: Assume C89. Add comments.
60458         (safe_read): Change return type to size_t.
60459         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60460         byte counts > SSIZE_MAX correctly.
60461         * lib/safe-write.h: New file.
60462         * lib/safe-write.c: New file.
60463         * lib/full-read.h: New file.
60464         * lib/full-read.c: New file.
60465         * lib/full-write.h: Assume C89. Add comments.
60466         * lib/full-write.c: Include safe-write.h.
60467         (full_write): Rewritten to use safe_write.
60468         Suggested by Jim Meyering and Paul Eggert.
60469
60470 2002-11-21  Jim Meyering  <jim@meyering.net>
60471
60472         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60473
60474         Merge in changes from the coreutils.
60475
60476         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60477         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60478         <stdint.h>.
60479         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60480         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60481         int.  Work more efficiently if X is the same width as uintmax_t.
60482         Do not compare X to -1, to avoid bogus compiler warning.
60483         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60484         Don't assume that f_frsize and f_bsize are the same type.
60485
60486         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60487         warning on FreeBSD.
60488
60489         * lib/makepath.c (make_path): Restore umask *before* creating the final
60490         component.
60491         (make_path): Minor reformatting.
60492
60493         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60494         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60495         HAVE_MALLOC/HAVE_REALLOC.
60496
60497         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60498         dummy ones.  At least on GNU/Linux systems, `auto' means something
60499         else.
60500         From Michael Stone.
60501
60502 2002-11-21  Bruno Haible  <bruno@clisp.org>
60503
60504         Remove case insensitive option matching.
60505         * lib/argmatch.h (argcasematch): Remove declaration.
60506         (ARGCASEMATCH): Remove macro.
60507         (__xargmatch_internal): Remove case_sensitive argument.
60508         (XARGMATCH): Update.
60509         (XARGCASEMATCH): Remove macro.
60510         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60511         case_sensitive argument.
60512         (argcasematch): Remove function.
60513         (__xargmatch_internal): Remove case_sensitive argument.
60514         (main): Use XARGMATCH instead of XARGCASEMATCH.
60515
60516         * lib/xmalloc.c: Change compile-time error message. Add comment about
60517         required autoconf version.
60518
60519 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60520
60521         Merge argmatch cleanups from Bison.  Assume C89.
60522
60523         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60524         Include stdlib.h, for EXIT_FAILURE.
60525         Always include <string.h>, since we assume C89.
60526         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60527         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60528         Include <stddef.h> instead, since it's all we need for size_t.
60529         (PARAMS): Remove.  All uses removed.
60530         (ARRAY_CARDINALITY): Do not bother to #undef.
60531         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60532         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60533         Remove unnecessary parentheses.
60534         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60535         Insert necessary parentheses.
60536         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60537         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60538
60539 2002-11-19  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60542         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60543
60544         * lib/mbswidth.h (PARAMS): Remove macro.
60545         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60546         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60547
60548         * lib/gcd.h (PARAMS): Remove macro.
60549         (gcd): Use ANSI C function declarations.
60550         * lib/gcd.c (gcd): Likewise.
60551
60552 2002-11-15  Bruno Haible  <bruno@clisp.org>
60553
60554         * lib/strcspn.c: Include <stddef.h>.
60555         (strcspn): Use ANSI C function declaration. Change return type to
60556         size_t. Use NULL.
60557         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60558         (strpbrk): Use NULL.
60559         * lib/strpbrk.h (PARAMS): Remove macro.
60560         (strpbrk): Use ANSI C function declaration.
60561         * lib/strstr.c: Don't include <sys/types.h>.
60562         * lib/strstr.h (PARAMS): Remove macro.
60563         (strstr): Use ANSI C function declarations.
60564
60565 2002-11-14  Karl Berry  <karl@gnu.org>
60566
60567         * config/mkinstalldirs: `do' on separate line, instead of
60568         `for var; do'.
60569
60570 2002-11-06  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60573         * lib/gcd.c (gcd): Likewise.
60574
60575 2002-11-05  Bruno Haible  <bruno@clisp.org>
60576
60577         * lib/gcd.h: New file, from gettext-0.11.5.
60578         * lib/gcd.c: New file, from gettext-0.11.5.
60579
60580 2002-11-05  Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60583         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60584         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60585         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60586
60587         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60588         <libintl.h>.
60589         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60590         <libintl.h>.
60591
60592         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60593         * lib/human.c: Include gettext.h instead of <libintl.h>.
60594         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60595         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60596         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60597         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60598         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60599         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60600         (textdomain): Remove definition.
60601         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60602
60603         * lib/long-options.c: Remove include of <libintl.h> and definition of
60604         _.
60605         * lib/same.c: Remove include of <libintl.h> and definition of _.
60606
60607 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60608
60609         * lib/config.charset: A few additions for Solaris.
60610
60611 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60612
60613         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60614         * lib/localcharset.c (locale_charset): Declare as extern "C".
60615
60616 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60617
60618         * lib/config.charset: msdos in uk_UA uses CP1125.
60619
60620 2002-11-04  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60623         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60624         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60625         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60626         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60627
60628 2002-11-04  Bruno Haible  <bruno@clisp.org>
60629
60630         * lib/localcharset.c (locale_charset): Don't return an empty string.
60631
60632 2002-11-04  Bruno Haible  <bruno@clisp.org>
60633
60634         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60635         aliases.
60636
60637 2002-11-04  Bruno Haible  <bruno@clisp.org>
60638
60639         * lib/config.charset: Update for newest glibc. Add canonical names
60640         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60641
60642 2002-11-04  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/config.charset: Add support for NetBSD.
60645
60646 2002-11-04  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60649
60650 2002-11-01  Bruno Haible  <bruno@clisp.org>
60651
60652         * configure.in: Add AC_CONFIG_AUX_DIR call.
60653         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60654         test/Makefile.
60655         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60656
60657 2002-09-28  Karl Berry  <karl@gnu.org>
60658
60659         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60660         installed automake until the next release, since changes have been
60661         made.
60662
60663 2002-09-25  Karl Berry  <karl@gnu.org>
60664
60665         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60666         * lib/getopt*: copy from libc/posix.
60667         * lib/gettext.h: copy from gettext.
60668         * lib/.cppi-disable: add strdup.c, gettext.h.
60669
60670 2002-09-25  Karl Berry  <karl@gnu.org>
60671
60672         * config/srclist.txt: enable gettext.h check.
60673         * config/config.{guess,sub}: update from prep.
60674         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60675                 from automake 1.6.3.
60676         See srclist*.
60677
60678 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60679
60680         * regex.c (PATFETCH): Remove the translating fetch.
60681         (PATFETCH_RAW): Rename to PATFETCH.
60682         (set_image_of_range): New fun.
60683         (SET_RANGE_TABLE_WORK_AREA): Use it.
60684         (regex_compile): Don't translate the pattern chars so eagerly.
60685         Only do it when inserting an `exactn' bytecode or when handling
60686         a char-range.
60687         (mutually_exclusive_p): Avoid empty statement.
60688
60689 2002-07-06  Jim Meyering  <meyering@lucent.com>
60690
60691         * m4/README: Don't mention Makefile.am.in.
60692         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60693
60694 2002-07-01  Jim Meyering  <meyering@lucent.com>
60695
60696         * lib/c-stack.c: Include sys/time.h.
60697         From Volker Borchert.
60698
60699 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60700
60701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60702
60703 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60704
60705         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60706         New macro.  Use it uniformly instead of
60707         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60708         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60709         reported by Vin Shelton.
60710
60711 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60712
60713         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60714         Do not assume SA_SIGINFO behavior.
60715         Bug reported by Jim Meyering on NetBSD 1.5.2.
60716
60717 2002-06-22  Jim Meyering  <meyering@lucent.com>
60718
60719         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60721
60722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60723         now that configure.ac uses AC_GNU_SOURCE.
60724         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60725         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60726
60727         Update to latest tools.  Suggestions from Paul Eggert.
60728         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60729         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60730         * m4/fnmatch.m4: Likewise.
60731         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60732         to AC_HEADER_STDBOOL
60733
60734 2002-06-22  Jim Meyering  <meyering@lucent.com>
60735
60736         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60737         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60738
60739 2002-06-22  Jim Meyering  <meyering@lucent.com>
60740
60741         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60742
60743         * lib/exitfail.c, exitfail.h: Likewise.
60744         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60745
60746         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60747         of fnmatch.h.
60748         (EXTRA_DIST): Add fnmatch_loop.c.
60749         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60750
60751         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60752         * lib/fnmatch.c: Update from diffutils-2.8.2.
60753         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60754         * lib/fnmatch.h: Remove file.
60755
60756 2002-06-21  Jim Meyering  <meyering@lucent.com>
60757
60758         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60759         * m4/mbrtowc.m4: Likewise.
60760
60761         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60762         * m4/mbswidth.m4: Reflect name change:
60763         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60765
60766         * m4/lib-link.m4: Update from gettext-0.11.2.
60767         * m4/gettext.m4: Likewise.
60768
60769         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60770         From Alfred M. Szmidt.
60771
60772 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60773
60774         * lib/file-type.h: Report an error if neither S_ISREG nor
60775         S_IFREG is defined, instead of using a test specific to glibc
60776         2.2.  This should be safe, since POSIX requires S_ISREG and
60777         Unix Version 7 had S_IFREG.  We don't need to check for
60778         <sys/types.h> since we don't use any symbols that it defines.
60779
60780 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60781
60782         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60783         $@-t, so that each temporary file name is unique and valid in the first
60784         8 characters, for operation under DOS.
60785
60786 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60787
60788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60789
60790 2002-06-15  Jim Meyering  <meyering@lucent.com>
60791
60792         Work even with DJGPP 2.03, which lacks support for symlinks.
60793         From Richard Dawe.
60794         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60795         is defined.
60796         * lib/lchown.c (S_ISLNK): Likewise.
60797
60798 2002-06-15  Jim Meyering  <meyering@lucent.com>
60799
60800         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60801         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60802         have been included before this file.
60803
60804 2002-06-14  Jim Meyering  <meyering@lucent.com>
60805
60806         * lib/file-type.h: Use the version from diffutils-2.8.2.
60807         * lib/file-type.c: Likewise.
60808
60809 2002-06-07  Jim Meyering  <meyering@lucent.com>
60810
60811         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60812         They're needed at least for NetBSD 1.5.2.
60813         ($statxfs_includes): Include those same headers.
60814         ($statxfs_includes): Include sys/vfs.h if available.
60815         ($statxfs_includes): Likewise for sys/statvfs.h.
60816         Check for the following members in both structs statfs and statvfs:
60817         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60818
60819 2002-06-01  Jim Meyering  <meyering@lucent.com>
60820
60821         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60822         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60823
60824 2002-05-28  Jim Meyering  <meyering@lucent.com>
60825
60826         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60827         Reported by Volker Borchert.
60828
60829 2002-05-27  Jim Meyering  <meyering@lucent.com>
60830
60831         Fix a problem seen only on nonconforming systems whereby ls.c's
60832         use of localtime, and then of gettimeofday would cause trouble:
60833         the localtime call used to initialize rpl_gettimeofday's save
60834         mechanism would clobber ls's current local time information so
60835         that in any long listing the first file would always be listed
60836         with date 1970-01-01.  Analysis by Volker Borchert.
60837
60838         * lib/gettimeofday.c (localtime): Undefine.
60839         (rpl_localtime): New function.
60840
60841 2002-05-27  Jim Meyering  <meyering@lucent.com>
60842
60843         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60844         localtime.
60845
60846         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60847         use the replacement function; it wouldn't resolve at link time.
60848         Reported by Volker Borchert.
60849
60850 2002-05-22  Jim Meyering  <meyering@lucent.com>
60851
60852         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60853         file-type.h.
60854         * lib/file-type.h: New file.
60855         * lib/file-type.c (file_type): New file/function.  Extracted from
60856         diffutils.
60857
60858 2002-04-30  Jim Meyering  <meyering@lucent.com>
60859
60860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60861
60862 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60863
60864         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60865
60866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60867
60868         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60869         Do not check for alloca.h (no longer used) or stdbool.h (was never
60870         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60871
60872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60873
60874         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60875
60876 2002-04-29  Jim Meyering  <meyering@lucent.com>
60877
60878         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60879         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60880         Use AC_FUNC_STRNLEN here instead.
60881
60882         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60883         With autoconf-2.53a, it's part of AC_PROG_CC.
60884
60885 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60886
60887         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60889
60890 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60891
60892         * lib/sig2str.h, lib/sig2str.c: New files.
60893         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60894
60895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60896
60897         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60898         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60899         of 127, since 64 is the largest conceivable number for ancient
60900         nonstandard hosts.
60901         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60902
60903 2002-04-28  Jim Meyering  <meyering@lucent.com>
60904
60905         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60906
60907 2002-04-24  Jim Meyering  <meyering@lucent.com>
60908
60909         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60910         (jm_PREREQ): Use it.
60911
60912         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60913         mach/mach.h fcntl.h.
60914         Check for this function: setlocale.
60915
60916 2002-04-24  Jim Meyering  <meyering@lucent.com>
60917
60918         * lib/gettext.h: New file, from Gettext.
60919         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60920         (libfetish_a_SOURCES): Add gettext.h.
60921
60922 2002-04-16  Jim Meyering  <meyering@lucent.com>
60923
60924         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60925         ut_pid, ut_id, ut_exit.
60926
60927 2002-04-16  Jim Meyering  <meyering@lucent.com>
60928
60929         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60930         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60931         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60932
60933 2002-04-12  Jim Meyering  <meyering@lucent.com>
60934
60935         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60936         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60937         existence of the getmntinfo function.  Needed for Darwin 5.3.
60938
60939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60940         This is necessary at least on Darwin 5.3.
60941
60942         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60943         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60944         strnlen.o in the library, and that makes some versions of ranlib
60945         object.
60946
60947 2002-04-12  Jim Meyering  <meyering@lucent.com>
60948
60949         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60950
60951 2002-04-09  Jim Meyering  <meyering@lucent.com>
60952
60953         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60954         to be more precise.  Rather than saying we're checking whether the
60955         function `works', say what we're testing.
60956         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60957         Reported by Bruno Haible.
60958
60959 2002-03-10  Jim Meyering  <meyering@lucent.com>
60960
60961         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60962         Suggestion from Santiago Vila.
60963
60964 2002-03-08  Jim Meyering  <meyering@lucent.com>
60965
60966         * lib/rename.c: Mention that this wrapper is needed also on
60967         mips-dec-ultrix4.4 systems.
60968
60969 2002-03-02  Jim Meyering  <meyering@lucent.com>
60970
60971         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60972         not HAVE_CLOCK_SETTIME.
60973
60974 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60975
60976         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60977         Check for clock_settime.
60978
60979 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60980
60981         * lib/nanosleep.h: Rename to....
60982         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60983
60984         * lib/gettime.c: New file.
60985         * lib/settime.c: New file.
60986         * lib/stime.c: Remove.
60987
60988         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60989         timespec.h.  Remove nanosleep.h.
60990
60991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60992
60993         * m4/acl.m4: New file.
60994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60995         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60996
60997 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60998
60999         * lib/acl.c, lib/acl.h: New files.
61000         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61001
61002 2002-02-24  Jim Meyering  <meyering@lucent.com>
61003
61004         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61005         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61006         cause trouble.  Reported by Nelson Beebe.
61007
61008 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61009
61010         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61011         compilers that don't know that xalloc_die never returns.
61012
61013 2002-02-20  Jim Meyering  <meyering@lucent.com>
61014
61015         * lib/getdate.c: Regenerate using bison-1.33.
61016
61017 2002-02-17  Jim Meyering  <meyering@lucent.com>
61018
61019         * config/config.guess (main): Don't use `head -1'; it's no longer
61020         portable. Use `sed 1q' instead.
61021
61022 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61023
61024         * m4/codeset.m4: Upgrade to gettext-0.11.
61025         * m4/gettext.m4: Upgrade to gettext-0.11.
61026         * m4/glibc21.m4: Upgrade to gettext-0.11.
61027         * m4/iconv.m4: Upgrade to gettext-0.11.
61028         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61029         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61030         * m4/lib-ld.m4: New file, from gettext-0.11.
61031         * m4/lib-link.m4: New file, from gettext-0.11.
61032         * m4/lib-prefix.m4: New file, from gettext-0.11.
61033         * m4/progtest.m4: Upgrade to gettext-0.11.
61034
61035 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61036
61037         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61038         (jm_PREREQ): Use it.
61039
61040 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61041
61042         * lib/posixver.c, lib/posixver.h: New files.
61043         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61044
61045 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61046             Bruno Haible  <bruno@clisp.org>
61047
61048         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61049         (fwrite_success_callback): New declaration.
61050         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61051         print_unicode_char. Call failure callback instead of error.
61052         (fwrite_success_callback): New function.
61053         (exit_failure_callback): New function.
61054         (fallback_failure_callback): New function.
61055         (print_unicode_char): Call unicode_to_mb.
61056
61057 2002-01-26  Jim Meyering  <meyering@lucent.com>
61058
61059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61060         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61061
61062 2002-01-26  Jim Meyering  <meyering@lucent.com>
61063
61064         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61065
61066 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61067
61068         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61069
61070 2002-01-22  Jim Meyering  <meyering@lucent.com>
61071
61072         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61073         Otherwise, some versions of automake would omit the rule that makes
61074         Makefile from Makefile.in.
61075
61076 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61077
61078         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61079         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61080         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61081         (memcoll): Set errno to zero if there is no error.
61082
61083         * lib/quotearg.c (quotearg_buffer_restyled):
61084         Fix bug with quoting buffers containing NUL when backslashing escapes.
61085         This bug was exposed by the other changes in this patch.
61086         (quotearg_n_options): New arg ARGSIZE.
61087         All callers changed.
61088         (quoting_options_from_style): New function.
61089         (quotearg_n_style): Use it.
61090         (quotearg_n_style_mem): New function.
61091
61092         * lib/quotearg.h (quotearg_n_style_mem): New function.
61093
61094 2002-01-19  Jim Meyering  <meyering@lucent.com>
61095
61096         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61097         Remove useless quotes: DF_PROG="df".
61098         * m4/strnlen.m4: New file.
61099
61100 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61101
61102         * lib/backupfile.c (ISDIGIT): Comment fix.
61103         * lib/getdate.y (ISDIGIT): Likewise.
61104         * lib/posixtm.c (ISDIGIT, year): Likewise.
61105         * lib/strverscmp.c (ISDIGIT): Likewise.
61106         * lib/userspec.c (ISDIGIT): Likewise.
61107
61108 2002-01-16  Jim Meyering  <meyering@lucent.com>
61109
61110         * lib/getdate.y: Add three semicolons, each just before a closing
61111         brace. Bison (as of version 1.31) no longer papers over that mistake.
61112
61113 2002-01-05  Jim Meyering  <meyering@lucent.com>
61114
61115         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61116
61117 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61118
61119         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61120         not silently exit merely because the output buffer happens to
61121         have nothing pending.
61122
61123 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61124
61125         See the big note in ../ChangeLog.
61126         * lib/human.c (suffixes): Prefer K to k for 1024.
61127         (generate_suffix_backwards): New function.
61128         (human_readable_inexact): Use it.
61129         * lib/xstrtol.c (__xstrtol): If there is no number but there
61130         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61131         Accept 'K' as well as 'k'.
61132
61133 2001-12-15  Jim Meyering  <meyering@lucent.com>
61134
61135         * lib/regex.h (__restrict_arr): Update from libc.
61136
61137         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61138         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61139         (STREQ): Define.
61140
61141 2001-12-14  Jim Meyering  <meyering@lucent.com>
61142
61143         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61144         Suggestion from Bruno Haible.
61145
61146 2001-12-10  Jim Meyering  <meyering@lucent.com>
61147
61148         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61149         xrealloc, Instead, include "xalloc.h".
61150         (initbuffer): Don't cast xmalloc return value to char*.
61151         (readline): Reword comment.
61152         Don't cast xrealloc return value to char*
61153         Return NULL, not 0.
61154
61155 2001-12-09  Jim Meyering  <meyering@lucent.com>
61156
61157         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61158         about `signed and unsigned type in conditional expression'.
61159         * lib/posixtm.c (posix_time_parse): Likewise.
61160
61161         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61162
61163         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61164         to avoid a pedantic warning.
61165
61166         * lib/getstr.c: Don't include assert.h.
61167         (getstr): Remove warning-evoking assertions.
61168         Return -1 if offset parameter is out of bounds.
61169         Change the type of a local from int to size_t.
61170
61171         * lib/strftime.c (my_strftime_localtime_r): Include this function
61172         definition in the `#if ! HAVE_TM_GMTOFF' block.
61173
61174         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61175         Include xalloc.h instead.
61176
61177 2001-12-02  Jim Meyering  <meyering@lucent.com>
61178
61179         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61180         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61181         included.
61182
61183         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61184         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61185
61186 2001-11-30  Akim Demaille  <akim@epita.fr>
61187
61188         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61189         before being defined.
61190
61191 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61192
61193         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61194         First arg is int, not unsigned.
61195         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61196         (SIZE_MAX, UINT_MAX): New macros.
61197         (quotearg_n_options): Abort if N is negative.
61198         Avoid overflow check on hosts where size_t is 64 bits and int
61199         is 32 bits, as overflow is impossible there.
61200         Fix off-by-one typo that caused unnecessary reallocation.
61201
61202 2001-11-27  Jim Meyering  <meyering@lucent.com>
61203
61204         * lib/tempname.c: Merge with version from libc.
61205         * lib/regex.c: Likewise.
61206
61207         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61208         systems for which STDC_HEADERS is 0, it was not included, resulting in
61209         a warning about an integer-to-pointer conversion problem with getenv.
61210         Reported by Volker Borchert.
61211
61212 2001-11-26  Jim Meyering  <meyering@lucent.com>
61213
61214         * lib/gtod.h: Remove file.
61215         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61216         * lib/gettimeofday.c: Don't include gtod.h.
61217         (GTOD_init): Remove function.
61218         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61219         Suggestion from Volker Borchert.
61220
61221 2001-11-23  Jim Meyering  <meyering@lucent.com>
61222
61223         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61224         it.
61225         * lib/hash.c (struct hash_table): Define it here instead.
61226
61227 2001-11-22  Jim Meyering  <meyering@lucent.com>
61228
61229         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61230
61231 2001-11-20  Jim Meyering  <meyering@lucent.com>
61232
61233         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61234         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61235
61236 2001-11-19  Jim Meyering  <meyering@lucent.com>
61237
61238         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61239         directory.  Use "conftestXXXXXX" as the template.
61240         Suggestion from Paul Eggert.
61241
61242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61243         immediately, so the test doesn't mistakenly hit the max-open-files
61244         limit.
61245
61246 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61247
61248         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61249         (TEMPORARIES): New macro.
61250         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61251         removes an artificial limitation (e.g. HP-UX 10.20, where
61252         TMP_MAX is 17576).
61253
61254 2001-11-18  Jim Meyering  <meyering@lucent.com>
61255
61256         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61257
61258 2001-11-18  Jim Meyering  <meyering@lucent.com>
61259
61260         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61261         on SunOS 4.
61262
61263         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61264         files will be created before anything else.
61265
61266 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61267
61268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61269         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61270
61271 2001-11-17  Jim Meyering  <meyering@lucent.com>
61272
61273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61274         Prompted by a report from Bob Proulx.
61275
61276         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61277         Instead, require UTILS_FUNC_MKSTEMP.
61278
61279 2001-11-17  Jim Meyering  <meyering@lucent.com>
61280
61281         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61282         Now, that's done as part of AC_FUNC_STRTOD.
61283
61284 2001-11-17  Jim Meyering  <meyering@lucent.com>
61285
61286         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61287         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61288         rather than group writable.  Patch by Juan F. Codagnone.
61289
61290         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61291         xrealloc, Instead, include "xalloc.h".
61292
61293         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61294         Remove explicit declarations of xmalloc, xrealloc,
61295         and xstrdup.  Instead, include "xalloc.h".
61296
61297         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61298         unlocked-io.h.
61299         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61300         Likewise.
61301         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61302
61303         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61304         Reported by Padraig Brady.
61305
61306         * lib/mkstemp.c: #undef mkstemp.
61307         Include config.h.
61308         (rpl_mkstemp): Rename from mkstemp.
61309         Protoize.
61310
61311 2001-11-16  Jim Meyering  <meyering@lucent.com>
61312
61313         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61314         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61315         determine the amount of total physical memory, use pstat_getstatic.
61316         HPUX-11 doesn't define _SC_PHYS_PAGES.
61317         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61318         If sysconf couldn't be used to determine the amount of available
61319         physical memory, use both pstat_getstatic and pstat_getdynamic.
61320         Based on a patch from Bob Proulx.
61321
61322 2001-11-10  Jim Meyering  <meyering@lucent.com>
61323
61324         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61325         (jm_PREREQ): Use it.
61326
61327 2001-11-09  Jim Meyering  <meyering@lucent.com>
61328
61329         * m4/jm-macros.m4: Require autoconf-2.52f.
61330         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61331         Use these AC_-prefixed names, not the AM_-prefixed ones.
61332
61333         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61334
61335 2001-11-05  Jim Meyering  <meyering@lucent.com>
61336
61337         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61338
61339 2001-11-04  Jim Meyering  <meyering@lucent.com>
61340
61341         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61342         $DEFS.
61343
61344 2001-11-03  Jim Meyering  <meyering@lucent.com>
61345
61346         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61347         of AC_DEFUN.
61348
61349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61350         know the name of the variable in the macro definition.
61351
61352 2001-11-03  Jim Meyering  <meyering@lucent.com>
61353
61354         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61355         in argmatch_to_argument call.
61356
61357         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61358         argument.
61359
61360         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61361         e.g., a fault due to an attempt to free a NULL pointer.
61362
61363 2001-11-01  Jim Meyering  <meyering@lucent.com>
61364
61365         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61366         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61367
61368 2001-11-01  Jim Meyering  <meyering@lucent.com>
61369
61370         * lib/dirfd.c, lib/dirfd.h: New files.
61371         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61372
61373         * lib/hash.c (hash_print) [TESTING]: Clean up.
61374
61375 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61376
61377         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61378         to avoid a warning if -Wall.
61379
61380 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61381
61382         * README: New file
61383         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61384         (per RMS's instructions, this is now the canonical source)
61385         * lgpl/, gpl/: New directories.
61386
61387 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61388
61389         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61390
61391 2001-10-21  Jim Meyering  <meyering@lucent.com>
61392
61393         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61394         this code would end up calling gettext even in packages built
61395         with --disable-nls.
61396         * lib/getopt.c (_): Likewise.
61397         * lib/regex.c (_): Likewise.
61398
61399 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61400
61401         * m4/error.m4 (jm_PREREQ_ERROR):
61402         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61403         AC_FUNC_STRERROR_R does that.
61404         Check for strerror declaration.
61405
61406         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61407         are supposed to have them these days.
61408         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61409         Merge changes from latest Autoconf CVS.
61410         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61411         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61412         POSIX decided to standardize on the int flavor of strerror_r.
61413
61414 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61415
61416         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61417         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61418         Use strerror_r that is only a macro, even if it is not a function.
61419         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61420         (private_strerror): Use prototypes, not old-style function definition.
61421         (print_errno_message): New function.
61422         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61423         char*-flavored one.
61424         (error_tail, error, error_at_line): Use it.
61425
61426 2001-10-11  Jim Meyering  <meyering@lucent.com>
61427
61428         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61429         and quote_n (1, ... to avoid clobbering a buffer.
61430
61431 2001-10-05  Jim Meyering  <meyering@lucent.com>
61432
61433         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61434         hash-pjw.h.
61435         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61436         * lib/hash-pjw.h: New file.
61437
61438 2001-09-30  Jim Meyering  <meyering@lucent.com>
61439
61440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61441         `struct fsstat' has the `f_fstypename' member.
61442         Use that to define FS_TYPE, which is now used to make
61443         the getfsstat link test tighter.
61444
61445 2001-09-30  Jim Meyering  <meyering@lucent.com>
61446
61447         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61448         Include <sys/ucred.h>, for Apple Darwin.
61449         Include sys/mount.h and sys/fs_types.h only if available.
61450         (FS_TYPE): Define.
61451         (read_filesystem_list): Use FS_TYPE.
61452
61453 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61454
61455         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61456         a boolean context.
61457
61458 2001-09-29  Jim Meyering  <meyering@lucent.com>
61459
61460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61461         [one-argument getmntent function]): Include stdio.h before mntent.h.
61462         SunOS 4.1.x needs it for the declaration of `FILE'.
61463         Patch by Volker Borchert.
61464
61465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61466         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61467         sys/fs_types.h, and make the link-test for getfsstat guard #include
61468         directives with appropriate #if HAVE_*_H tests so that we can
61469         detect getfsstat on Apple Darwin1.3.7 systems.
61470         Reported by Nelson Beebe.
61471         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61472
61473 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61474
61475         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61476         #defines strtoimax.  Also treat the other strto* functions
61477         like strtoimax.
61478
61479         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61480         Check for strtoul and strtoumax,
61481         as those declarations are made even in the signed case.
61482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61483         Likewise, for strtol and strtoimax.
61484
61485 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61486
61487         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61488         #defines strtoimax.  Also treat the other strto* functions
61489         like strtoimax.
61490
61491         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61492         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61493         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61494
61495 2001-09-26  Jim Meyering  <meyering@lucent.com>
61496
61497         Most macros in unlocked-io.h had the wrong number of arguments.
61498         * lib/gen-uio: New script.
61499         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61500         * lib/unlocked-io.hin: Remove file.
61501         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61502         rather than trying to embed it here.
61503         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61504         Reported by Padraig Brady.
61505
61506 2001-09-25  Volker Borchert  <bt@teknon.de>
61507
61508         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61509         `result'.
61510
61511 2001-09-24  Jim Meyering  <meyering@lucent.com>
61512
61513         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61514
61515 2001-09-23  Jim Meyering  <meyering@lucent.com>
61516
61517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61518         instead of the mere test for existence of mntent.h.  The latter
61519         would get a false-positive on AIX 3.4 systems.
61520         In the outer getmntent if-block, don't die if neither of the getmntent
61521         tests succeeds.  Instead, just fall through and continue with the
61522         remaining tests.
61523
61524 2001-09-23  Jim Meyering  <meyering@lucent.com>
61525
61526         * lib/mountlist.c: Remove useless parentheses in #if directives.
61527         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61528         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61529
61530 2001-09-22  Jim Meyering  <meyering@lucent.com>
61531
61532         * m4/gettext.m4: New file.  From gettext.
61533         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61534         * m4/progtest.m4: Likewise
61535         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61536         * m4/glibc21.m4: Likewise.
61537
61538         * m4/libintl.m4: Remove.  No longer used.
61539
61540 2001-09-22  Jim Meyering  <meyering@lucent.com>
61541
61542         * lib/localcharset.c: Update from latest gettext.
61543         * lib/config.charset: Likewise.
61544
61545 2001-09-20  Jim Meyering  <meyering@lucent.com>
61546
61547         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61548         strtoimax.
61549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61550         strtoumax.
61551
61552 2001-09-20  Jim Meyering  <meyering@lucent.com>
61553
61554         * lib/xstrtol.c (strtoimax): Guard declaration with
61555         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61556         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61557         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61558         (strtoumax): Likewise, for completeness (it wasn't necessary).
61559
61560 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61561
61562         * lib/strtoimax.c (HAVE_LONG_LONG):
61563         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61564         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61565         to work around bug in IBM C compiler.
61566
61567 2001-09-17  Jim Meyering  <meyering@lucent.com>
61568
61569         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61570         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61571         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61572         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61573         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61574         whenever the right hand side need not be expanded by the shell.
61575
61576 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61577
61578         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61579         library.  It's not correct, as some older glibcs are buggy.
61580         fnmatch wasn't fixed until glibc 2.2.
61581
61582         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61583         special shell magic here.
61584
61585 2001-09-16  Jim Meyering  <meyering@lucent.com>
61586
61587         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61588         * m4/jm-macros.m4: Require it.
61589
61590 2001-09-16  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/mkdir.c: New file.
61593
61594 2001-09-15  Jim Meyering  <meyering@lucent.com>
61595
61596         * m4/jm-macros.m4: Check for help2man.
61597
61598 2001-09-11  Jim Meyering  <meyering@lucent.com>
61599
61600         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61601         The body, by Paul Eggert, was moved here from configure.in.
61602         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61603
61604 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61605
61606         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61607         (jm_PREREQ): Use it.
61608
61609 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61610
61611         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61612         Use ssize_t, not int, to store result of readlink.
61613         Check for ssize_t overflow as well as size_t overflow,
61614         as POSIX says the result of readlink is implementation-defined
61615         when ssize_t overflows.
61616         Remove unnecessary cast to char*.
61617         Use free+malloc instead of realloc, as the storage doesn't need
61618         to be preserved and it's clearer and can be more efficient that way.
61619         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61620         * lib/xreadlink.h (xreadlink): Update prototype.
61621
61622 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61623
61624         * lib/xgetcwd.c: Revert some of the previous change; intead,
61625         fix the HAVE_GETCWD_NULL code to behave more like the
61626         !HAVE_GETCWD_NULL code used to.
61627
61628         Include "xalloc.h".
61629         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61630         invoke xalloc_die.
61631
61632 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61633
61634         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61635         sys/param.h, as pathmax.h includes them.
61636
61637 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61638
61639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61640         (jm_PREREQ_XGETCWD): New macro.
61641
61642         * m4/getcwd.m4: New file.
61643
61644 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61645
61646         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61647         like the HAVE_GETCWD_NULL code.
61648         Include pathmax.h if not HAVE_GETCWD.
61649         Do not include xalloc.h.
61650         (INITIAL_BUFFER_SIZE): New symbol.
61651         Do not use xmalloc / xrealloc, since the caller is responsible for
61652         handling errors.  Preserve errno around `free' during failure.
61653         Do not overrun buffer when using getwd.
61654
61655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61656
61657         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61658         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61659         getcwd (NULL, 0).
61660
61661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61662
61663         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61664         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61665         spotted by Jim Meyering.
61666
61667 2001-09-03  Jim Meyering  <meyering@lucent.com>
61668
61669         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61670         failure.
61671
61672 2001-09-02  Jim Meyering  <meyering@lucent.com>
61673
61674         * lib/error.c: Update from GNU libc.
61675
61676 2001-09-01  Jim Meyering  <meyering@lucent.com>
61677
61678         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61679         Used by df.
61680
61681 2001-09-01  Jim Meyering  <meyering@lucent.com>
61682
61683         * lib/xreadlink.c: New file.
61684         * lib/xreadlink.h: New file.
61685         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61686         xreadlink.h.
61687
61688         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61689         doesn't conflict with sparc Solaris 7's definition in
61690         /usr/include/sys/int_types.h.
61691
61692         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61693         files.
61694         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61695         and strncasecmp as r-values.  Unixware didn't have declarations.
61696
61697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61698
61699         * lib/xstrtol.h: Add copyright notice.
61700         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61701         LONGINT_INVALID_SUFFIX_CHAR.
61702
61703 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61704
61705         * lib/xstrtol.c (strtoimax): New decl.
61706
61707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61708
61709         * lib/xgetcwd.c: Don't include pathmax.h.
61710         Include stdlib.h and unistd.h if available.
61711         Include xalloc.h.
61712         (xmalloc, xstrdup, free): Remove decls.
61713         (xgetcwd): Don't assume sizes fit in unsigned.
61714         Check for overflow when computing sizes.
61715         Simplify reallocation code.
61716
61717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61718
61719         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61720         a directory's st_size can have an arbitrary value, so the old
61721         usage could waste an arbitrary amount of memory.  All uses
61722         changed.
61723         * lib/savedir.h: Update prototype.
61724
61725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61726
61727         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61728
61729         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61730         old strtoimax.c.
61731
61732         Also, make the following further changes to make this file's
61733         configuration more similar to that of strtol.c:
61734         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61735         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61736         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61737         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61738         changed to signed values.
61739
61740         And make the following changes as well:
61741         Fix copyright notice, as 1999 was missing.
61742         (verify): New macro.
61743         (strtoimax): Check sizes at compile-time, not run-time.
61744         Prefer strtol to strtoll if both work.
61745         (main): Remove; it was not that useful and was a pain to maintain.
61746
61747         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61748
61749 2001-08-31  Jim Meyering  <meyering@lucent.com>
61750
61751         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61752         Use an initial, malloc'd, buffer of length 128 rather than
61753         a statically allocated one of length 1024.
61754
61755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61756
61757         Simplify code, partly by assuming autoconf 2.52 semantics.
61758
61759         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61760
61761         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61762         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61763         All uses removed.
61764         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61765         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61766         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61767         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61768         jm_AC_HEADER_INTTYPES_H.
61769         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61770
61771         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61772
61773         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61774         Quote first arg of AC_DEFUN.
61775         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61776         since they are needed to parse the include file even if we need
61777         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61779         but with opposite signedness.
61780
61781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61782
61783         Merge 'exclude' changes from tar 1.13.22.
61784         This fixes one or two unlikely storage allocation overflow bugs,
61785         but doesn't change user-visible behavior otherwise.
61786
61787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61788
61789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61790         (jm_PREREQ_EXCLUDE): New macro.
61791
61792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61793
61794         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61795         tm to be declared.
61796
61797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61798
61799         * lib/hash.c: Remove '2001' from copyright notice.
61800
61801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61802
61803         * lib/full-write.h: New file.
61804         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61805         * lib/full-write.c: Correct credits, as cccp.c no longer
61806         exists and anyway it was so heavily changed from the old cccp
61807         code as to be unrecognizable.  Include full-write.h.
61808         (full_write) Return size_t, with short writes meaning failure.
61809         All callers changed.  This fixes a bug with large buffers
61810         on 64-bit hosts.
61811         * lib/utime.c: Include full-write.h.
61812
61813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61814
61815         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61816         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61817         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61818         Include if available.
61819         (<xalloc.h>): Include
61820         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61821         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61822         collide with FNM macros.
61823         (struct patopts): New struct.
61824         (struct exclude): Use it, as exclude patterns now come with options.
61825         (new_exclude): Support above changes.
61826         (new_exclude, add_exclude_file):
61827         Initial size must now be a power of two to simplify overflow checking.
61828         (free_exclude, fnmatch_no_wildcards): New function.
61829         (excluded_filename): No longer requires options arg, as the options
61830         are determined by add_exclude.  Now returns bool, not int.
61831         (excluded_filename, add_exclude):
61832         Add support for the fancy new exclusion options.
61833         (add_exclude, add_exclude_file): Now takes int options arg.
61834         Check for arithmetic overflow when computing sizes.
61835         (add_exclude_file): xrealloc might modify errno, so don't
61836         realloc until after errno might be used.
61837
61838         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61839         New macros.
61840         (free_exclude): New decl.
61841         (add_exclude, add_exclude_file): Now takes int options arg.
61842         (excluded_filename): No longer requires options arg, as the options
61843         are determined by add_exclude.  Now returns bool, not int.
61844
61845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61846
61847         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61848
61849 2001-08-27  Jim Meyering  <meyering@lucent.com>
61850
61851         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61852
61853         * lib/version-etc.c (N_): Remove definition.
61854         Revert most of last change.
61855         Instead, simply don't mark the `Copyright...' string for translation.
61856         Based on advice from Paul Eggert.
61857
61858         * lib/strtoxmax.c: Tweak comment.
61859
61860 2001-08-26  Jim Meyering  <meyering@lucent.com>
61861
61862         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61863
61864         * m4/xstrtoimax.m4: New file.
61865         * m4/xstrtoumax.m4: Add comments explaining why we
61866         AC_REPLACE_FUNCS(strtol).
61867
61868 2001-08-26  Jim Meyering  <meyering@lucent.com>
61869
61870         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61871         of copyright with `%s' so translators don't get an untranslated
61872         message in 2002.
61873         (COPYRIGHT_YEAR): Define.
61874         (version_etc): Use fprintf rather than fputs.
61875         Suggestion from Ulrich Drepper.
61876
61877         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61878
61879         * lib/strtoll.c: New file, from GNU libc.
61880         * lib/xstrtoimax.c: New file.
61881
61882         * lib/xstrtol.h: Add xstrtoimax.
61883         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61884         * lib/strtoimax.c: New file.  Likewise, but first define
61885         STRTOUXMAX_SIGNED.
61886
61887         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61888         ...
61889         * lib/strtoxmax.c: ... then renamed to this.
61890
61891 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61892
61893         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61894         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61895         (jm_AC_TYPE_INTMAX_T): New macro.
61896         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61897
61898         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61899
61900         * m4/longlong.m4: Renamed from ulonglong.m4.
61901         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61902         * m4/uintmax_t.m4: Removed.
61903
61904 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61905
61906         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61907         Port to Solaris 8, where 'sed' requires a space after the 'r'
61908         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61909         Redirect output to $tmp just once.
61910
61911 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61912
61913         * lib/addext.c (<errno.h>): Include.
61914         (errno): Declare if not defined.
61915         (addext): Work correctly when pathconf returns -1 and leaves
61916         errno alone because there is no limit.  Also, work even if
61917         pathconf returns a value greater than SIZE_MAX.
61918
61919 2001-08-12  Jim Meyering  <meyering@lucent.com>
61920
61921         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61922         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61923         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61924         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61925         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61926         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61927         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61928         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61929         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61930         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61931         utime.m4, utimes.m4, xstrtoumax.m4:
61932         Quote the first argument in each use of AC_DEFUN.
61933
61934 2001-08-12  Jim Meyering  <meyering@lucent.com>
61935
61936         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61937         Simply `return getcwd (NULL, 0);'.
61938         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61939         Use 1300 as initial value for length, not PATH_MAX.
61940
61941         * lib/pathmax.h: Clean up cpp syntax.
61942
61943 2001-08-12  Jim Meyering  <meyering@lucent.com>
61944
61945         * lib/gettimeofday.c: New file.
61946         * lib/gtod.h: New file.
61947         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61948
61949 2001-08-05  Jim Meyering  <meyering@lucent.com>
61950
61951         * m4/jm-macros.m4: Require autoconf-2.52.
61952
61953 2001-08-04  Jim Meyering  <meyering@lucent.com>
61954
61955         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61956         stmt, to get in sync with glibc.
61957
61958 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61959
61960         The following changes are from gettext 0.10.39 as maintained by
61961         Bruno Haible.
61962
61963         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61964         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61965         with inverted sense.  All uses changed.
61966
61967         * lib/mbswidth.c: Don't include <limits.h>.
61968         Include <stdlib.h> and <string.h> unconditionally.
61969         (iswcntrl, mbsinit, ISCNTRL): New macros.
61970         (mbsnwidth): Use K&R style function declarations.
61971         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61972         can optimize it when MB_CUR_MAX == 1.
61973         The width of control characters is zero, not 1.
61974
61975 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61976
61977         The following changes are from gettext 0.10.39 as maintained by
61978         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61979
61980         * m4/codeset.m4: Upgrade to serial AM1.
61981         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61982         all uses changed.  Quote first arg of AC_DEFUN.
61983         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61984
61985         * m4/iconv.m4: Upgrade to serial AM2.
61986         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61987         Add --with-libconv-prefix.
61988         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61989         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61990         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61991         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61992         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61993
61994         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61995         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61996         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61997         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61998         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61999         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62000         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62001         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62003
62004         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62005         string.h any more.
62006
62007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62008         not the default value.
62009
62010         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62012         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62013         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62014         Also check for iswcntrl, used for wcwidth fallback.
62015         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62016         to Autoconf 2.13.
62017
62018 2001-08-03  Jim Meyering  <meyering@lucent.com>
62019
62020         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62021         as it was in the original.  Reported by Paul Eggert.
62022
62023 2001-07-16  Jim Meyering  <meyering@lucent.com>
62024
62025         * m4/gettimeofday.m4: New file.
62026         Prompted by a report from Bernhard Baehr.
62027
62028 2001-07-15  Jim Meyering  <meyering@lucent.com>
62029
62030         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62031         stuff. Now it's in ../Makefile.cfg.
62032
62033 2001-07-15  Jim Meyering  <meyering@lucent.com>
62034
62035         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62036         (BUILT_SOURCES): Add unlocked-io.h.
62037         (io_functions): Define.
62038         (unlocked-io.h): New rule.
62039         (DISTCLEANFILES): Add unlocked-io.h.
62040         (all-local): Depend on unlocked-io.h, to ensure it is created.
62041
62042         * lib/unlocked-io.hin: New file
62043
62044         * lib/regex.c: Update from glibc.
62045
62046 2001-07-05  Jim Meyering  <meyering@lucent.com>
62047
62048         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62049         recommendation.
62050         (libfetish_a_SOURCES): Put all .h files here instead.
62051         Remove a thus-exposed (better checks in automake) duplicate and
62052         two unnecessary .h files.
62053
62054 2001-07-04  Jim Meyering  <meyering@lucent.com>
62055
62056         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62057         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62058         distcheck failure.
62059
62060 2001-07-02  Jim Meyering  <meyering@lucent.com>
62061
62062         The following changes were prompted by suggestions from Bruno Haible.
62063
62064         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62065         is now generated.
62066         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62067         definition of EXTRA_DIST.
62068         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62069         ensure that the generated file is created/updated whenever the list
62070         of $(unlocked_functions) is changed.
62071         (jm-glibc-io.m4): New rule.
62072         (unlocked-io.h): New rule -- currently unused.
62073
62074 2001-06-24  Jim Meyering  <meyering@lucent.com>
62075
62076         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62077         unmatched right bracket, rather than kludging it with an extra,
62078         falsely-matching quote in a comment.  Patch by Akim Demaille.
62079
62080 2001-06-11  Jim Meyering  <meyering@lucent.com>
62081
62082         * lib/regex.c: Update from GNU libc.
62083
62084 2001-05-27  Jim Meyering  <meyering@lucent.com>
62085
62086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62087         Check for ut_type in struct utmp.
62088
62089 2001-05-27  Jim Meyering  <meyering@lucent.com>
62090
62091         * lib/readutmp.h (UT_TYPE): Define.
62092
62093 2001-05-24  Jim Meyering  <meyering@lucent.com>
62094
62095         * lib/argmatch.c: Include "quote.h".
62096         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62097         quote function.  Reported by Göran Uddeborg.
62098
62099 2001-05-22  Jim Meyering  <meyering@lucent.com>
62100
62101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62102         now that we use the package-supplied version unconditionally.
62103         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62104
62105 2001-05-21  Jim Meyering  <meyering@lucent.com>
62106
62107         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62108         shell syntax errors.
62109
62110 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62111
62112         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62113
62114 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62115
62116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62117         Don't bother to check library strftime, since
62118         we'll be using our own my_strftime function anyway.
62119         Define my_strftime instead of strftime.
62120
62121 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62122
62123         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62124         which is not yet declared.
62125
62126 2001-05-15  Jim Meyering  <meyering@lucent.com>
62127
62128         * m4/regex.m4: Use proper quoting so brackets appear in the test
62129         program.
62130         Reported by, and with help from, Bruno Haible.
62131
62132 2001-05-13  Jim Meyering  <meyering@lucent.com>
62133
62134         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62135         undefined.
62136
62137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62138
62139         dirname code cleanup.  base_name now behaves more compatibly
62140         with POSIX basename when given file names that have trailing
62141         slashes, and similarly for dir_name.  Add new primitives
62142         base_len and dir_len.  Put the directory-name-related decls
62143         into dirname.h.
62144
62145         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62146         * lib/backupfile.c (base_name): Likewise.
62147         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62148         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62149         * lib/makepath.c (strip_trailing_slashes): Likewise.
62150         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62151         ISSLASH): Likewise.
62152         * lib/rename.c (strip_trailing_slashes): Likewise.
62153         * lib/same.c (base_name): Likewise.
62154         * lib/stripslash.c (ISSLASH): Likewise.
62155
62156         * lib/addext.c: Include <dirname.h> after size_t is defined.
62157         * lib/backupfile.c: Likewise.
62158
62159         * lib/addext.c (addext): Use base_len to trim redundant
62160         trailing slashes instead of doing it ourselves.
62161         But do not trim the last slash if it is not redundant.
62162
62163         * lib/backupfile.c (find_backup_file_name,
62164         max_backup_version): Use base_len instead of rolling it ourselves.
62165         Handle the case of "" and (on DOS) "C:" correctly.
62166
62167         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62168         needed. Include <string.h>, <dirname.h>.
62169         (base_name): Allow file names ending in slashes, other than names
62170         that are all slashes.  In this case, return the basename followed
62171         by the slashes.  This is more general, and can be used in places
62172         where the original base_name purposely had an assertion failure.
62173         (base_len): New function.
62174
62175         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62176         Do not include <assert.h>; no longer needed.
62177         Include xalloc.h.
62178         (memrchr): Remove decl.
62179         (dir_name_r): Remove.
62180         (dir_len): Renamed from dirlen.  All callers changed.
62181         Rewrite in terms of base_name, for simplicity and consistency.
62182         (dir_name): Never return NULL.  All callers changed.
62183         Do not include <stdlib.h> in test program; no longer needed.
62184         return 0; is fine for test program.
62185
62186         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62187         New macros.
62188         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62189
62190         * lib/path-concat.c (path_concat): Use base_len to compute
62191         base length, not strlen; this means we cannot rely on memcpy
62192         to null-terminate.
62193
62194         * lib/same.c (STREQ): Remove.
62195         (same_name): Handle the case where the basename ends in trailing '/'.
62196
62197         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62198         a slash was stripped.  Do not strip the last slash after a
62199         file system prefix.
62200
62201 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62202
62203         * lib/Makefile.am (libfetish_a_SOURCES):
62204         Add strftime.c, since we now compile it on all hosts.
62205
62206         * lib/strftime.c (my_strftime):
62207         Define to nstrftime if emacs, but only if my_strftime is not defined.
62208         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62209         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62210         Add one more extra argument: a nanoseconds value.
62211         All uses changed.
62212         (ns): New macro.
62213         (my_strftime function): Add %N format.
62214         (emacs_strftimeu): Renamed from emacs_strftime,
62215         with extra ut argument.
62216
62217 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62218
62219         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62220
62221 2001-04-21  Jim Meyering  <meyering@lucent.com>
62222
62223         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62224         doesn't interfere.
62225
62226 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62227
62228         * m4/ftruncate.m4: Check for chsize.
62229         Link with ftruncate.o unconditionally if ftruncate is missing.
62230         This was required when cross-compiling to i586-mingw32msvc.
62231
62232 2001-04-08  Jim Meyering  <meyering@lucent.com>
62233
62234         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62235         recomputed; that's necessary when the offset spans a DST transition.
62236         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62237
62238 2001-04-02  Jim Meyering  <meyering@lucent.com>
62239
62240         * lib/regex.h, regex.c: Update from GNU libc.
62241
62242 2001-03-24  Jim Meyering  <meyering@lucent.com>
62243
62244         * m4/jm-macros.m4: Require autoconf-2.49d.
62245
62246 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62247
62248         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62249
62250 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62251
62252         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62253
62254 2001-03-17  Jim Meyering  <meyering@lucent.com>
62255
62256         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62257         now that the version in autoconf is equivalent.
62258         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62259
62260         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62261         Suggestion from Akim Demaille.
62262
62263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62264         (jm_PREREQ_TEMPNAME): New function.
62265
62266 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62267
62268         * lib/tempname.c (uint64_t): Define to uintmax_t if
62269         not defined, and if UINT64_MAX is not defined.
62270         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62271         Reported by John David Anglin.
62272
62273 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62274
62275         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62276         resolve alias if codeset is empty.
62277         * lib/config.charset (BeOS): Use wildcard syntax.
62278
62279 2001-03-13  Jim Meyering  <meyering@lucent.com>
62280
62281         * lib/path-concat.c (path_concat)
62282         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62283         concatenating e.g., `C:' and `foo'.
62284         From Bruno Haible.
62285
62286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62287
62288         * lib/localcharset.c (locale_charset): Don't use
62289         setlocale(LC_CTYPE,NULL). Don't return NULL.
62290         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62291
62292 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62293
62294         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62295         support for DOS/DJGPP.
62296
62297 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62298
62299         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62300         lacks mkstemp.  Compile our own tempname.c if we compile our own
62301         mkstemp.c, as mkstemp relies on tempname.
62302
62303 2001-03-01  Jim Meyering  <meyering@lucent.com>
62304
62305         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62306         AH_VERBATIM really does output its argument verbatim.
62307
62308 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62309
62310         * lib/Makefile.am (libfetish_a_SOURCES):
62311         Add dup-safer.c, fopen-safer.c.
62312         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62313
62314         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62315         * lib/unistd-safer.h: New files.
62316
62317 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62318
62319         The mkstemp replacement is taken from glibc 2.2.2, with some
62320         portability fixes for use outside glibc, as follows:
62321
62322         * lib/tempname.c (struct_stat64): New macro.
62323         (direxists, __gen_tempname): Use it.
62324         This avoids a portability problem with Solaris 8.
62325
62326         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62327         (<stddef.h>, <stdint.h>, <string.h>):
62328         Include only if STDC_HEADERS || _LIBC.
62329         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62330         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62331         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62332         (__set_errno): Define this macro if <errno.h> doesn't.
62333         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62334         Define these macros if <stdio.h> doesn't.
62335         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62336         Define these macros if <sys/stat.h>
62337         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62338         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62339         __xstat64): Define if not _LIBC.
62340         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62341         (__gen_tempname): Invoke gettimeofday only if
62342         HAVE_GETTIMEOFDAY || _LIBC;
62343         otherwise, fall back on plain "time".
62344         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62345
62346         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62347
62348         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62349
62350 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62351
62352         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62353
62354 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62355
62356         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62358         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62360
62361 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62362
62363         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62364         Remove workaround macros for hosts that have mbrtowc but not
62365         mbstate_t, as we now insist on proper declarations for both
62366         before using mbrtowc.
62367
62368 2001-02-17  Jim Meyering  <meyering@lucent.com>
62369
62370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62371         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62372         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62373         UnixWare 7.1.1.
62374
62375         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62376         rather than AC_CACHE_VAL.
62377
62378 2001-02-17  Jim Meyering  <meyering@lucent.com>
62379
62380         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62381         around included file name.
62382
62383         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62384
62385         * lib/strftime.c: Update from GNU libc (the only changes were to
62386         comments).
62387
62388 2001-02-17  Jim Meyering  <meyering@lucent.com>
62389
62390         * lib/regex.c: Update from libc.
62391
62392 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62393
62394         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62395         clash.
62396
62397 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62398
62399         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62400         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62401         Reported by Mark Hounschell via Paul Eggert.
62402
62403 2001-02-07  Jim Meyering  <meyering@lucent.com>
62404
62405         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62406
62407 2001-02-05  Jim Meyering  <meyering@lucent.com>
62408
62409         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62410         it includes the patch required for `large file' support with at least
62411         HP-UX's 10.20 /bin/cc.
62412
62413 2001-02-03  Jim Meyering  <meyering@lucent.com>
62414
62415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62416         AS_IF, now that it works once again (mysteriously).
62417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62418
62419 2001-01-30  Jim Meyering  <meyering@lucent.com>
62420
62421         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62422         * m4/chown.m4: Rename conftestchown to conftest.chown.
62423         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62424         s/conftestdir2/conftest.d2/.
62425         * m4/utimes.m4: s/conftestdata/conftest.data/
62426         Inspired by Pavel Roskin's change in autoconf.
62427
62428 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62429
62430         * lib/config.charset: Update for FreeBSD 4.2.
62431
62432 2001-01-27  Jim Meyering  <meyering@lucent.com>
62433
62434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62435         a use of AS_IF.
62436         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62437
62438 2001-01-26  Jim Meyering  <meyering@lucent.com>
62439
62440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62441         quotearg.c includes it.
62442
62443 2001-01-26  Jim Meyering  <meyering@lucent.com>
62444
62445         * lib/quotearg.c: Include stddef.h.
62446         * lib/quote.c: Include stddef.h.
62447         Reported by Axel Kittenberger.
62448
62449         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62450         line in double quotes so that it evokes a better diagnostic.
62451         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62452         Reported by Axel Kittenberger.
62453
62454 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62455
62456         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62457         as if it was a `charset'.
62458
62459 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62460
62461         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62462         has const.
62463
62464 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62465
62466         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62467         to avoid a warning.  Add back 'const' to inptr.
62468
62469 2001-01-20  Jim Meyering  <meyering@lucent.com>
62470
62471         Be sure that headers are checked before used in code compiled
62472         for the type checks.
62473         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62474         In place of that, invoke jm_CHECK_ALL_TYPES.
62475         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62476         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62477         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62478         The check for ssize_t was mistakenly run before the test for unistd.h.
62479
62480         The configure-time check for stdbool.h was missing.
62481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62482         (jm_PREREQ_HASH): New function.
62483
62484 2001-01-17  Jim Meyering  <meyering@lucent.com>
62485
62486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62487         for autoconf-2.49c.
62488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62489
62490 2001-01-16  Jim Meyering  <meyering@lucent.com>
62491
62492         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62493         From Bruno Haible.
62494
62495 2001-01-14  Jim Meyering  <meyering@lucent.com>
62496
62497         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62498         foo and bar.  Create conftestdir/ in the script, not in the C code.
62499         Remove directories in the script, not in the C code.
62500         Remove conftestdir{,2} before trying to create the directory.
62501         Make the entire configure script fail if the mkdir fails.
62502
62503 2001-01-14  Jim Meyering  <meyering@lucent.com>
62504
62505         * lib/rename.c: New file.  From Volker Borchert.
62506         Include stdlib.h, string.h or strings.h, and xalloc.h.
62507         Use strip_trailing_slashes rather than open-coding it.
62508
62509 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62510
62511         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62512
62513 2001-01-03  Jim Meyering  <meyering@lucent.com>
62514
62515         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62516         of local `inptr' to avoid warning with some system declarations of
62517         iconv.
62518
62519 2001-01-02  Volker Borchert  <bt@teknon.de>
62520
62521         * m4/rename.m4: New file.
62522         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62523
62524 2001-01-01  Jim Meyering  <meyering@lucent.com>
62525
62526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62527         even on systems with utmpx.h.  It's necessary for the declaration of
62528         utmp's ut_user member.  Reported by Andreas Jaeger.
62529
62530         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62531         available. They are required for the declarations of getgrgid and
62532         getpwuid resp.
62533         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62534         Reported by Andreas Jaeger.
62535
62536 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62537
62538         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62539         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62540         so `make install' also works in VPATH builds.
62541
62542 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62543
62544         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62545         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62546         can be used in subdirectories.
62547
62548 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62549
62550         * lib/modechange.c: Do not assume that mode_t uses the
62551         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62552         the other-execute bit of FOO even if S_IXOTH != 1.
62553
62554         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62555         WOTH, XOTH, ALLM): New macros.
62556         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62557          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62558         Use them.
62559         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62560         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62561         (mode_compile):
62562         No need to use uintmax_t; unsigned long is long enough.
62563         Don't bother to get suffix since we don't use it.
62564
62565 2000-12-26  Jim Meyering  <meyering@lucent.com>
62566
62567         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62568         better with autoheader.
62569
62570 2000-12-24  Jim Meyering  <meyering@lucent.com>
62571
62572         * lib/hash.c (is_prime): Return explicit boolean values.
62573         (hash_get_first): Return NULL to appease Irix5.6's 89.
62574         Reported by Nelson Beebe.
62575
62576 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62577
62578         * lib/localcharset.c (locale_charset): Add support for Win32.
62579
62580 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62581
62582         * lib/physmem.h, lib/physmem.c: New files.
62583
62584         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62585         (noinst_HEADERS): Add physmem.h.
62586
62587         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62588         't' for compatibility with Solaris 8 sort.
62589
62590 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62591
62592         * lib/config.charset: Add support for BeOS.
62593
62594 2000-12-17  Jim Meyering  <meyering@lucent.com>
62595
62596         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62597         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62598
62599 2000-12-16  Jim Meyering  <meyering@lucent.com>
62600
62601         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62602         N and M) would have treated it like `chown N:N FILE'.
62603
62604         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62605
62606 2000-12-16  Jim Meyering  <meyering@lucent.com>
62607
62608         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62609         SHELLS_FILE to a file name that's useful on djgpp systems.
62610         Include stdlib.h.
62611         (ADDITIONAL_DEFAULT_SHELLS): Define.
62612         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62613         Based mostly on a patch from Prashant TR.
62614
62615 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62616
62617         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62618         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62619         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62620
62621 2000-12-08  Andreas Schwab  <schwab@suse.de>
62622
62623         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62624         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62625
62626 2000-12-07  Jim Meyering  <meyering@lucent.com>
62627
62628         * lib/stripslash.c (ISSLASH): Define.
62629         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62630         `/'.
62631         From Prashant TR.
62632
62633         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62634         (dir_name_r): Declare this function as static.
62635         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62636         manifest itself on a name containing a mix of slashes and
62637         backslashes.
62638         Make this function work with names starting with a DOS-style
62639         drive letter and colon prefix.
62640         (dir_name): Append `.' if necessary.
62641         Based mostly on patches from Prashant TR and Eli Zaretskii.
62642
62643         * lib/dirname.h (dir_name_r): Remove prototype.
62644
62645 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62646
62647         * m4/off_t-format.m4: Remove this file.
62648         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62649
62650 2000-12-06  Jim Meyering  <meyering@lucent.com>
62651
62652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62653         replacement strtoull, we may well need the replacement strtoul, too.
62654         Check for declarations of strtoul and strtoull.
62655         Check for strtol.  Mainly as a cue to cause automake to include
62656         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62657         Check for limits.h -- strtol.c needs it.
62658
62659 2000-12-05  Jim Meyering  <meyering@lucent.com>
62660
62661         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62662
62663 2000-12-04  Jim Meyering  <meyering@lucent.com>
62664
62665         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62666         Also include memory.h, stdlib.h, unistd.h if appropriate.
62667         Reported by Andreas Jaeger (conflicting declaration of malloc).
62668
62669 2000-12-02  Jim Meyering  <meyering@lucent.com>
62670
62671         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62672         * m4/jm-macros.m4 (jm_MACROS): require it.
62673
62674 2000-12-02  Jim Meyering  <meyering@lucent.com>
62675
62676         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62677
62678 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62679
62680         * lib/memrchr.c: Include <config.h> before any system include file.
62681
62682 2000-11-30  Jim Meyering  <meyering@lucent.com>
62683
62684         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62685
62686 2000-11-30  Jim Meyering  <meyering@lucent.com>
62687
62688         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62689
62690 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62691
62692         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62693
62694 2000-11-26  Jim Meyering  <meyering@lucent.com>
62695
62696         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62697
62698 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62699
62700         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62701         size of (size_t) -1; it's not portable.
62702
62703 2000-11-17  Jim Meyering  <meyering@lucent.com>
62704
62705         * lib/strstr.c: Update from GNU libc.
62706
62707 2000-11-17  Akim Demaille  <akim@epita.fr>
62708
62709         * lib/obstack.h: Formatting changes.
62710         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62711         prevent type checking.
62712         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62713         cast the value to (void *): assigning a `foo *' to a `void *'
62714         variable is valid.
62715         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62716
62717 2000-11-16  Jim Meyering  <meyering@lucent.com>
62718
62719         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62720
62721 2000-11-11  Jim Meyering  <meyering@lucent.com>
62722
62723         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62724
62725 2000-11-10  Jim Meyering  <meyering@lucent.com>
62726
62727         * lib/obstack.h: Update from GNU libc.
62728         * lib/obstack.c: Likewise.
62729
62730 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62731
62732         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62733
62734 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62735
62736         * lib/getusershell.c (setusershell): Use rewind rather than
62737         fseek/fseeko, to avoid configuration hassles with fseeko.
62738         Don't bother opening SHELLS_FILE if shellstream is NULL;
62739         it's not necessary.
62740
62741 2000-11-05  Jim Meyering  <meyering@lucent.com>
62742
62743         * lib/makepath.h (make_dir): Declare.
62744         * lib/makepath.c (make_dir): Remove `static' attribute.
62745         Tweak a comment.
62746
62747 2000-11-04  Jim Meyering  <meyering@lucent.com>
62748
62749         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62750
62751 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62752
62753         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62754         last one in a bucket, advance to the next bucket.
62755
62756 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62757
62758         * lib/fnmatch.c: Do not comment out all the code if we are using
62759         the GNU C library, because in some cases we are replacing buggy
62760         code in the GNU C library itself.
62761
62762 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62763
62764         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62765         (regex_compile): Catch bogus \(\1\).
62766
62767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62768
62769         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62770         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62771         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62772
62773 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62774
62775         * lib/error.h, getline.h, modechange.h:
62776         Remove "2000" from Copyright line, as the file hasn't been
62777         changed this year other than in the copyright notice.
62778
62779         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62780         was changed this year.
62781
62782 2000-10-29  Jim Meyering  <meyering@lucent.com>
62783
62784         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62785         renaming.
62786         * m4/ls-mntd-fs.m4: Likewise
62787
62788 2000-10-29  Jim Meyering  <meyering@lucent.com>
62789
62790         * lib/xstat.in: Fix grammar in comment.
62791
62792 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62793
62794         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62795         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62796         doesn't define __restrict_arr.
62797
62798 2000-10-28  Jim Meyering  <meyering@lucent.com>
62799
62800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62801         (jm_PREREQ_MEMCHR): New function.
62802
62803 2000-10-28  Jim Meyering  <meyering@lucent.com>
62804
62805         * lib/memchr.c: Update from libc.
62806         Adjust for portability:
62807         [HAVE_STDLIB_H]: Include stdlib.h.
62808         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62809         Undef __memchr, too.
62810         [!weak_alias]: Define __memchr to memchr.
62811
62812         * lib/regex.c: Update from libc.
62813         * lib/regex.h: Likewise.
62814         * lib/getopt1.c: Likewise.
62815         * lib/memcmp.c: Likewise.
62816
62817         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62818         Avoid using fseek, when possible -- it's broken by design.
62819         Patch by Ulrich Drepper.
62820
62821 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62822
62823         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62824         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62825         Giving in to popular pressure to shut up the compiler with casts.
62826
62827 2000-10-26  Jim Meyering  <meyering@lucent.com>
62828
62829         * lib/strftime.c: Update from libc.
62830
62831 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62832
62833         * regex.c: More `unsigned char' -> `re_char' changes.
62834         Also change several `int' into `re_wchar_t'.
62835         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62836         (PUSH_FAILURE_POINTER): Don't cast any more.
62837         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62838         We want GCC to complain, since this piece of code makes
62839         re_match non-reentrant, which *should* be fixed.
62840         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62841         (EXTEND_BUFFER): Use RETALLOC.
62842         (SET_LIST_BIT): Don't cast.
62843         (re_wchar_t): New type.
62844         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62845         that those two functions will always properly return.
62846         (IMMEDIATE_QUIT_CHECK): Cast to void.
62847         (analyse_first): Use recursion rather than an explicit stack.
62848         (re_compile_fastmap): Can't fail anymore.
62849         (re_search_2): Don't check re_compile_fastmap for failure.
62850         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62851         Now also sets the new value (passed in a new argument).
62852         (re_match_2_internal): Use it.
62853         Also, use a new var `reg' of type size_t when looping through regs
62854         rather than reuse the inappropriate `mcnt'.
62855
62856 2000-10-25  Jim Meyering  <meyering@lucent.com>
62857
62858         * lib/obstack.c: Update from libc.
62859
62860 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62861
62862         * regex.c (regex_compile): Change the way of handling a range from
62863         a char less than 256 to a char not less than 256.
62864
62865 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62866
62867         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62868         NT-Emacs only.
62869         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62870         so that re_search functions only quit when callers expect them to.
62871
62872 2000-10-23  Jim Meyering  <meyering@lucent.com>
62873
62874         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62875         wrong.  That set_locale call must not have any side effects.
62876         From Paul Eggert.
62877
62878 2000-10-22  Jim Meyering  <meyering@lucent.com>
62879
62880         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62881         [CYCLIC]: Remove now-unused definition.
62882
62883         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62884         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62885         Suggestion from Ulrich Drepper.
62886
62887 2000-10-21  Jim Meyering  <meyering@lucent.com>
62888
62889         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62890         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62892
62893 2000-10-21  Jim Meyering  <meyering@lucent.com>
62894
62895         * lib/dirname.c (memrchr): Declare if necessary.
62896         (dir_name): Remove the restriction that there be no
62897         trailing slashes.  Now, this code skips past them, effectively
62898         ignoring them.
62899         [TEST_DIRNAME] (main): New unit tests.
62900
62901         * lib/memrchr.c: New file from GNU libc.
62902         Undef __memrchr, too.
62903         [!weak_alias]: Define __memrchr to memrchr.
62904         Guard weak_alias use with `#ifdef weak_alias'.
62905
62906 2000-10-21  Jim Meyering  <meyering@lucent.com>
62907
62908         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62909         (dir_name): Use dir_name_r.
62910         * lib/dirname.h (dir_name_r): Declare it.
62911
62912 2000-10-17  Jim Meyering  <meyering@lucent.com>
62913
62914         * lib/quote.h (PARAMS): Define and use.
62915         Reported by Akim Demaille.
62916
62917         * lib/getopt.c: Update from libc.
62918
62919 2000-10-16  Jim Meyering  <meyering@lucent.com>
62920
62921         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62922         setlocale.
62923         From Jan Fedak.
62924
62925 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62926
62927         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62928
62929 2000-09-25  Jim Meyering  <meyering@lucent.com>
62930
62931         * lib/md5.h (rol): Define (from GnuPG).
62932
62933         * lib/sha.c: Give credit (GnuPG) where due.
62934         (M): Use rol rather than open-coding it.
62935         Add a FIXME comment.
62936
62937 2000-09-21  Jim Meyering  <meyering@lucent.com>
62938
62939         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62940         Reported by Michael Stone.
62941
62942 2000-09-20  Jim Meyering  <meyering@lucent.com>
62943
62944         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62945         (noinst_HEADERS): Add sha.h.
62946         Based on code from Scott G. Miller and from GnuPG.
62947
62948 2000-09-18  Jim Meyering  <meyering@lucent.com>
62949
62950         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62951         LIBS. Otherwise, everyone ends up linking with -lelf for some
62952         configurations.
62953         Reported by Mike Stone.
62954
62955 2000-09-15  Jim Meyering  <meyering@lucent.com>
62956
62957         * lib/regex.c: Update from libc.
62958
62959 2000-09-10  Jim Meyering  <meyering@lucent.com>
62960
62961         * lib/getopt.c (_getopt_internal): Update from glibc.
62962
62963 2000-09-09  Jim Meyering  <meyering@lucent.com>
62964
62965         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62966         think it should be used as a general replacement for isascii.
62967         * lib/fnmatch.c: Likewise.
62968         * lib/mbswidth.c: Likewise
62969         * lib/regex.c: Likewise.
62970
62971         Don't use atoi.
62972         * lib/userspec.c: Include sys/param.h and limits.h.
62973         Include xstrtol.h.
62974         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62975         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62976         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62977         UID, GID.  Check range.
62978
62979 2000-09-06  Jim Meyering  <meyering@lucent.com>
62980
62981         * lib/getopt.c (_getopt_internal): Update from glibc.
62982
62983 2000-08-30  Jim Meyering  <meyering@lucent.com>
62984
62985         * lib/strftime.c: Merge in changes from GNU libc.
62986
62987 2000-08-26  Jim Meyering  <meyering@lucent.com>
62988
62989         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62990         * m4/fpending.m4: New file.
62991
62992 2000-08-26  Jim Meyering  <meyering@lucent.com>
62993
62994         * lib/closeout.c: Include "__fpending.h".
62995         (close_stdout_status): Return right away if there's nothing to flush.
62996
62997         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62998         * lib/__fpending.c: New file.
62999         * lib/__fpending.h: New file.
63000
63001 2000-08-20  Jim Meyering  <meyering@lucent.com>
63002
63003         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63004         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63005         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63006
63007 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63008
63009         Improve fileutils installation on systems where running
63010         programs (like install) can't be unlinked.
63011         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63012         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63013
63014 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63015
63016         Standardize on "memory exhausted" instead of "Memory exhausted"
63017         or "virtual memory exhausted".
63018         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63019         "virtual memory exhausted".
63020         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63021         our own message.
63022         * lib/userspec.c (parse_user_spec): Likewise.
63023         * lib/bumpalloc.h: comment fix
63024         * lib/same.c, userspec.c: Include xalloc.h.
63025
63026         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63027         not char *const and pointing to a constant array.
63028         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63029         (xrealloc): Comment fix.
63030
63031         * lib/userspec.c (parse_user_spec):
63032         Don't translate a message until just before returning,
63033         to avoid unnecessary translation.
63034
63035 2000-08-07  Jim Meyering  <meyering@lucent.com>
63036
63037         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63038         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63039         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63040         getgroups.c, gethostname.c, getopt.h, group-member.c,
63041         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63042         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63043         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63044         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63045         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63046         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63047         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63048         yesno.c: Back out Copyright date changes for each file with no change
63049         this year.  This eases coordination with other programs using the same
63050         source code modules.  From Paul Eggert.
63051
63052 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63053
63054         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63055         not char, for compatibility with glibc 2.1.3 strftime.c.
63056
63057 2000-08-03  Greg McGary  <greg@mcgary.org>
63058
63059         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63060         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63061         (EXTEND_BUFFER): Use them.
63062
63063 2000-08-01  Jim Meyering  <meyering@lucent.com>
63064
63065         * lib/dirname.c (ISSLASH): Define.
63066         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63067         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63068         both `\' and `/' may be use as path separators.
63069         Based on a patch from Prashant TR.
63070
63071 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63072
63073         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63074         slot vector a constant, since it might get modified.
63075
63076 2000-07-31  Jim Meyering  <meyering@lucent.com>
63077
63078         * lib/xmalloc.c: Use `virtual memory exhausted', not
63079         `Memory exhausted'.
63080         * lib/obstack.c (print_and_abort): Likewise.
63081
63082 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63083
63084         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63085         buffer, so that the caller can always quote one small
63086         component of a "memory exhausted" message in slot 0.
63087         From a suggestion by Jim Meyering.
63088
63089 2000-07-30  Jim Meyering  <meyering@lucent.com>
63090
63091         * lib/makepath.c (make_path): Quote the other instance, too.
63092
63093         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63094         (STATIC_BUF_SIZE): Define.
63095         (quotearg_n_options): Use only statically allocated storage when
63096         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63097         than STATIC_BUF_SIZE.
63098
63099 2000-07-29  Jim Meyering  <meyering@lucent.com>
63100
63101         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63102         * lib/dirname.c (dir_name): Likewise.
63103
63104         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63105         `/'.
63106
63107         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63108         (dir_name): Assert that there are no trailing slashes.
63109
63110 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63111
63112         * lib/mbswidth.h (mbswidth): Add a flags argument.
63113         (mbswidth): New declaration.
63114         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63115         * lib/mbswidth.c (mbswidth): Add a flags argument.
63116         (mbsnwidth): New function.
63117
63118 2000-07-24  Jim Meyering  <meyering@lucent.com>
63119
63120         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63121
63122 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63123
63124         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63125
63126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63127
63128         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63129         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63130         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63131         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63132         invoke multibyte primitives.
63133
63134 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63135
63136         * lib/quotearg.c:
63137         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63138         so that mbstate_t is always defined.
63139
63140         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63141         be 1 in at least one GCC installation, and this configuration
63142         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63143         performance on hosts that have mbrtowc but have only unibyte
63144         locales, but I assume these hosts are rare.
63145
63146 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63147
63148         * lib/mbswidth.c (_XOPEN_SOURCE):
63149         Don't define; this causes problems on Solaris 7.
63150         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63151
63152 2000-07-23  Jim Meyering  <meyering@lucent.com>
63153
63154         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63155         too: getgrgid, getpwuid, getuid.
63156
63157 2000-07-23  Jim Meyering  <meyering@lucent.com>
63158
63159         * lib/basename.c (base_name): Add an assertion.
63160
63161 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63162
63163         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63164         shadow its mbsinit function.
63165
63166 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63167
63168         * lib/mbswidth.h: New file.
63169         * lib/mbswidth.c: New file.
63170         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63171         (noinst_HEADERS): Add mbswidth.h.
63172
63173 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63174
63175         * lib/config.charset: Add support for FreeBSD. Improve support for
63176         HP-UX and IRIX 6.
63177
63178 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63179
63180         * m4/mbswidth.m4: New file.
63181         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63182
63183 2000-07-15  Jim Meyering  <meyering@lucent.com>
63184
63185         * lib/makepath.c: Include quote.h.
63186         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63187         corresponding argument in a `quote (...)' call.
63188         Give better diagnostics.
63189
63190         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63191         (noinst_HEADERS): Add quote.h.
63192
63193         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63194         from tar's src/misc.c.
63195         * lib/quote.h: New file.  Prototypes for same.
63196
63197 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63198
63199         From a suggestion by Bruno Haible.
63200         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63201         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63202         to decide whether to define the BeOS workaround macro;
63203         this adjusts to the change to AC_MBSTATE_T.
63204
63205 2000-07-14  Jim Meyering  <meyering@lucent.com>
63206
63207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63208         jm_AC_TYPE_UINTMAX_T.
63209
63210 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63211
63212         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63213
63214         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63215         quotearg_buffer_restyled): Add support for
63216         clocale_quoting_style.  Undo previous change to
63217         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63218         and "{RIGHT QUOTATION MARK}" msgids.
63219
63220 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63221
63222         From a suggestion by Bruno Haible.
63223         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63224         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63225         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63226         and mbstate_t, to a single-part test that simply defines mbstate_t.
63227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63228         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63229
63230 2000-07-10  Jim Meyering  <meyering@lucent.com>
63231
63232         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63233
63234         * m4/gnu-source.m4: Output to confdefs.h directly.
63235         Suggestion from Akim Demaille.
63236
63237 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63238
63239         The old behavior of quoting `like this' doesn't look good with
63240         newer, ISO-style fonts.  See:
63241         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63242
63243         Instead, quote "like this" by default.  Let the translator
63244         tailor the locale-specific quoting behavior by providing
63245         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63246
63247         * lib/quotearg.c (N_): New macro.
63248         (gettext_default): New function.
63249         (quotearg_buffer_restyled): Use
63250         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63251         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63252
63253 2000-07-09  Jim Meyering  <meyering@lucent.com>
63254
63255         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63256         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63257
63258         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63260
63261 2000-07-09  Jim Meyering  <meyering@lucent.com>
63262
63263         * lib/Most files: Update copyright dates to include 2000.
63264
63265 2000-07-08  Jim Meyering  <meyering@lucent.com>
63266
63267         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63268         if not defined.
63269         (xgethostname): Remove now-unnecessary #ifdef.
63270         Move declaration of `err' into loop where it's used.
63271
63272 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63273         and Bruno Haible  <haible@clisp.cons.org>
63274
63275         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63276         only if the test for an object-type mbstate_t fails.  This
63277         prevents us from mistakenly reporting that mbstate_t is a
63278         system object type after we "#define mbstate_t int" to work
63279         around its lack.
63280
63281 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63282         and Bruno Haible  <haible@clisp.cons.org>
63283
63284         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63285
63286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63287
63288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63289         to strerror_r.
63290         Include <ctype.h> for use of isalpha.
63291
63292 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63293
63294         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63295         by allocating a larger buffer. Test the gethostname return value for
63296         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63297         returns an error and ENAMETOOLONG isn't defined.
63298
63299 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63300
63301         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63302         dimension.
63303
63304 2000-07-04  Jim Meyering  <meyering@lucent.com>
63305
63306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63307         of the deprecated AC_CHECKING.
63308
63309 2000-07-04  Jim Meyering  <meyering@lucent.com>
63310
63311         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63312         Reported by Bruno Haible.
63313
63314 2000-07-04  Jim Meyering  <meyering@lucent.com>
63315
63316         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63317         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63318         lacks mbrtowc.
63319
63320 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63321
63322         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63323         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63324
63325 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63326         and Bruno Haible  <haible@clisp.cons.org>
63327
63328         * lib/quotearg.c (mbrtowc):
63329         Assign to *pwc, and return 1 only if result is nonzero.
63330         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63331
63332 2000-07-03  Jim Meyering  <meyering@lucent.com>
63333
63334         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63335
63336 2000-07-03  Jim Meyering  <meyering@lucent.com>
63337
63338         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63339         This is necessary to get a definition of e.g., UTMP_FILE on
63340         HP-UX 10.20.
63341         From Bob Proulx.
63342
63343 2000-07-02  Jim Meyering  <meyering@lucent.com>
63344
63345         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63346
63347         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63348         AC_LIBOBJ(function_name).
63349         * m4/chown.m4: Likewise.
63350         * m4/fnmatch.m4: Likewise.
63351         * m4/ftruncate.m4: Likewise.
63352         * m4/getgroups.m4: Likewise.
63353         * m4/getline.m4: Likewise.
63354         * m4/group-member.m4: Likewise.
63355         * m4/jm-macros.m4: Likewise.
63356         * m4/lstat.m4: Likewise.
63357         * m4/malloc.m4: Likewise.
63358         * m4/memcmp.m4: Likewise.
63359         * m4/nanosleep.m4: Likewise.
63360         * m4/putenv.m4: Likewise.
63361         * m4/realloc.m4: Likewise.
63362         * m4/regex.m4: Likewise.
63363         * m4/stat.m4: Likewise.
63364         * m4/strftime.m4: Likewise.
63365
63366 2000-07-02  Jim Meyering  <meyering@lucent.com>
63367
63368         * lib/quotearg.c (mbstate_t): Don't define here.
63369
63370 2000-07-02  Jim Meyering  <meyering@lucent.com>
63371
63372         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63373
63374 2000-07-01  Jim Meyering  <meyering@lucent.com>
63375
63376         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63377
63378 2000-07-01  Jim Meyering  <meyering@lucent.com>
63379
63380         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63381         problem.
63382
63383 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63384
63385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63386         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63387
63388 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63389
63390         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63391         per change in ../m4/ls-mntd-fs.m4.
63392         (read_filesystem_list): Ignore symbolic links.
63393
63394 2000-06-29  Jim Meyering  <meyering@lucent.com>
63395
63396         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63397         for declaration of strcmp.
63398
63399         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63400
63401         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63402         Avoid warning by casting result to `char *' to remove `const'.
63403
63404 2000-06-28  Jim Meyering  <meyering@lucent.com>
63405
63406         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63407         included by quotearg.c, for which we perform this test.  From
63408         Bruno Haible.
63409
63410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63411
63412         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63414         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63415
63416 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63417
63418         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63419
63420 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63421
63422         savedir now sets errno on failure and invokes xmalloc to get memory.
63423         Fix a couple of other minor bugs while we're at it.
63424
63425         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63426         (NAMLEN): Remove macro.
63427         (malloc, realloc): Remove decls.
63428         (stpcpy): Likewise.
63429         ("xalloc.h"): Include.
63430         (NAME_SIZE_DEFAULT): New macro.
63431         (savedir): Use xmalloc / xrealloc to allocate memory.
63432         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63433         Skip "" directory entries.
63434         Use strlen to calculate directory entry length, since the old method
63435         is rarely used these days and isn't worth supporting.
63436         Don't use a pointer after freeing it.
63437         Check for integer overflow when calculating allocation size.
63438         Use memcpy to copy entries, instead of stpcpy.
63439         Set errno properly when returning NULL.
63440         Check for readdir error.
63441
63442 2000-06-26  Jim Meyering  <meyering@lucent.com>
63443
63444         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63445
63446 2000-06-25  Jim Meyering  <meyering@lucent.com>
63447
63448         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63449         Linux header bug when _XOPEN_SOURCE is defined to 500.
63450
63451 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63452
63453         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63454         deficiency.
63455
63456 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63457
63458         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63459         Include xalloc.h.
63460         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63461
63462 2000-06-24  Jim Meyering  <meyering@lucent.com>
63463
63464         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63465         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63466         for which strerror does return char*, but which lacks a conveniently
63467         accessible declaration of the function.  If the compile-test says
63468         strerror_r doesn't work, then resort to a `run'-test that works on
63469         BeOS and segfaults on DEC Unix.
63470
63471 2000-06-24  Jim Meyering  <meyering@lucent.com>
63472
63473         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63474
63475 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63476
63477         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63479
63480 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63481
63482         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63483         (mbrtowc, mbstate_t): Define substitutes if
63484         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63485         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63486         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63487
63488 2000-06-23  Jim Meyering  <meyering@lucent.com>
63489
63490         * m4/afs.m4: Add missing AC_MSG_RESULT.
63491         Reported by Bruno Haible.
63492
63493         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63494         Suggestion from Bruno Haible.
63495
63496 2000-06-23  Jim Meyering  <meyering@lucent.com>
63497
63498         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63499
63500 2000-06-21  Jim Meyering  <meyering@lucent.com>
63501
63502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63503
63504 2000-06-21  Jim Meyering  <meyering@lucent.com>
63505
63506         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63507         (noinst_HEADERS): Add getstr.h.
63508
63509         * lib/getline.c (getstr): Move into a separate file.
63510         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63511         the following changes: new parameter, delim2; both delim[12]
63512         parameters have type `int', not `char'.  The latter would lose
63513         with 8-bit delimiters.
63514         * lib/getstr.h: New file.
63515
63516 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63517
63518         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63519         than 1024, return a memory chunk of least possible size, instead
63520         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63521         Use free/xmalloc instead of xrealloc to avoid copying for very long
63522         paths.
63523
63524 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63525
63526         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63527         the empty string.
63528
63529 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63530
63531         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63532         address, not strdup.  Include <stdlib.h> and don't declare free().
63533
63534 2000-06-19  Jim Meyering  <meyering@lucent.com>
63535
63536         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63537
63538 2000-06-18  Jim Meyering  <meyering@lucent.com>
63539
63540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63541
63542         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63543         `checking whether...' message to be consistent with that of the
63544         lstat test.
63545
63546 2000-06-18  Jim Meyering  <meyering@lucent.com>
63547
63548         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63549         Besides, these days every porting target provides a mkdir function.
63550
63551         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63552         needed. (this snippet comes from src/system.h).
63553
63554 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63555
63556         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63557
63558 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63559
63560         * lib/human.c (adjust_value): New function.
63561         (human_readable_inexact): Apply rounding style even when
63562         printing approximate values.
63563
63564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63565
63566         * lib/human.c (human_readable_inexact): Allow an input block
63567         size that is not a multiple of the output block size, and vice versa.
63568         Reported by Piergiorgio Sartor.
63569
63570 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63571
63572         * lib/getdate.y (get_date): Apply relative times after time
63573         zone indicator, not before.  Reported by Todd A. Jacobs.
63574
63575 2000-06-13  Jim Meyering  <meyering@lucent.com>
63576
63577         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63578
63579         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63580
63581 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63582
63583         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63584
63585 2000-06-12  Jim Meyering  <meyering@lucent.com>
63586
63587         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63588         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63589         optional argument.
63590         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63591         the optional argument, `lib'.
63592
63593 2000-06-08  Jim Meyering  <meyering@lucent.com>
63594
63595         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63596
63597 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63598
63599         Rewrite largefile configuration so that we don't need to run
63600         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63601         AC_CANONICAL_HOST in configure.in -- jmm]
63602
63603         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63604         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63605         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63606         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63607         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63608         All uses changed.
63609         Instead of inspecting the output of getconf, try to compile the
63610         test program without and with the macro definition.
63611         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63612         for getconf.  Instead, check for the needed flags by compiling
63613         test programs.
63614
63615 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63616
63617         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63618
63619 2000-06-04  Jim Meyering  <meyering@lucent.com>
63620
63621         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63622         SunOS 4.1.4 for which gid_t is an unsigned type.
63623
63624 2000-06-03  Jim Meyering  <meyering@lucent.com>
63625
63626         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63627         now that autoconf requires that.
63628
63629         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63630         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63631         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63632
63633 2000-06-03  Jim Meyering  <meyering@lucent.com>
63634
63635         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63636
63637 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63638
63639         * m4/glibc21.m4: New file.
63640         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63641
63642 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63643
63644         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63645         newer, don't install charset.alias.
63646         * lib/config.charset: Change the Linux/glibc rules so they become empty
63647         on glibc-2.1 or newer.
63648
63649 2000-06-02  Jim Meyering  <meyering@lucent.com>
63650
63651         * lib/mountlist.c: Back out last change.  Instead, do this...
63652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63653         me_dummy member using the same `ignore'-testing code.
63654         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63655         fs_type strings.
63656         From Mark D. Roth.
63657
63658 2000-05-29  Jim Meyering  <meyering@lucent.com>
63659
63660         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63661         mounts with the `ignore' attribute.  Based on a patch from
63662         Mark D. Roth.
63663
63664 2000-05-28  Jim Meyering  <meyering@lucent.com>
63665
63666         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63667         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63668         * m4/stat.m4: Likewise.
63669         * m4/lstat.m4: Likewise.
63670         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63671
63672         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63673         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63674
63675 2000-05-26  Jim Meyering  <meyering@lucent.com>
63676
63677         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63678
63679 2000-05-24  Jim Meyering  <meyering@lucent.com>
63680
63681         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63682         autoconf requires that.
63683         * m4/lib-check.m4: Likewise.
63684         * m4/jm-macros.m4: Likewise.
63685         * m4/strftime.m4: Likewise.
63686
63687         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63688         AC_CHECK_DECLS, now that autoconf requires that.
63689
63690 2000-05-22  Jim Meyering  <meyering@lucent.com>
63691
63692         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63693         * m4/lstat.m4: Likewise.
63694
63695 2000-05-22  Jim Meyering  <meyering@lucent.com>
63696
63697         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63698
63699 2000-05-20  Jim Meyering  <meyering@lucent.com>
63700
63701         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63702         (jm_PREREQ): Use it.
63703
63704 2000-05-18  Jim Meyering  <meyering@lucent.com>
63705
63706         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63707         back, too, since it may have been modified by allocate_entry.
63708         (hash_delete): Rewrite to use neither the assignment operator
63709         nor the comma operator in an if-expression.
63710
63711 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63712
63713         * lib/closeout.c:
63714         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63715         Remove; no longer needed.
63716         "quotearg.h": Add include.
63717         (file_name): Do not bother to explicitly initialize to NULL; it's less
63718         efficient on some hosts.
63719         (close_stdout_status): Remove test as to whether stdout was already
63720         closed; it breaks for the case "echo x | sort >&-".
63721         Quote file name colons.
63722         Do not assume that _("write error") lacks format strings.
63723
63724 2000-05-15  Jim Meyering  <meyering@lucent.com>
63725
63726         * lib/version-etc.c (version_etc_copyright): Update the copyright
63727         string used in all --version output.
63728
63729 2000-05-14  Jim Meyering  <meyering@lucent.com>
63730
63731         * lib/closeout.c (close_stdout_set_file_name): New function.
63732         (close_stdout_status): Use new file-scoped global.
63733         Return right away if fstat says the stdout file descriptor is invalid.
63734         * lib/closeout.h (close_stdout_set_file_name): Declare.
63735
63736 2000-05-10  Jim Meyering  <meyering@lucent.com>
63737
63738         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63739         (close_stdout_set_status): New function.
63740         * lib/closeout.h (close_stdout_set_status): Declare.
63741
63742 2000-05-09  Jim Meyering  <meyering@lucent.com>
63743
63744         * m4/gettext.m4: Rename this...
63745         * m4/libintl.m4: ...to this.
63746
63747 2000-05-08  Jim Meyering  <meyering@lucent.com>
63748
63749         * lib/long-options.c: Don't include closeout.h.
63750         (parse_long_options): Don't call close_stdout for --version.
63751
63752 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63753
63754         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63755         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63756         2.1.3 bug.  This avoids a clash when files like regex.c define
63757         _GNU_SOURCE.
63758
63759 2000-05-06  Jim Meyering  <meyering@lucent.com>
63760
63761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63762         (AC_REPLACE_FUNCS): Add strnlen.
63763
63764         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63765         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63766
63767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63768         AC_SEARCH_LIBS call for nanosleep.
63769         (LIB_NANOSLEEP): Set and AC_SUBST.
63770
63771 2000-05-06  Jim Meyering  <meyering@lucent.com>
63772
63773         * lib/strnlen.c: Undefine __strnlen and strnlen.
63774         [!weak_alias]: Define __strnlen to strnlen.
63775
63776         * lib/atexit.c: New file, from libiberty.
63777
63778 2000-05-06  Jim Meyering  <meyering@lucent.com>
63779
63780         * lib/closeout.c (close_stdout_status): Also check for errors on the
63781         stderr stream.
63782
63783 2000-05-05  Jim Meyering  <meyering@lucent.com>
63784
63785         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63786         AC_SEARCH_LIBS call for clock_gettime.
63787         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63788
63789         * m4/search-libs.m4: Update from autoconf.
63790
63791         su doesn't work on Solaris 2.6.
63792         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63793         <shadow.h>.  Reported by Dragos Harabor.
63794
63795 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63796
63797         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63798         memcpy instead of xmalloc, xrealloc, path_concat.
63799         (locale_charset): Treat empty environment variables as absent.
63800         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63801
63802 2000-05-04  Jim Meyering  <meyering@lucent.com>
63803
63804         * lib/getopt.c: Update from glibc.
63805         * lib/obstack.c: Likewise.
63806         * lib/obstack.h: Likewise.
63807         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63808         file
63809
63810         * lib/regex.h: Likewise.
63811         * lib/strndup.c: Likewise.
63812         * lib/strnlen.c: New file, from glibc.
63813
63814 2000-05-03  Jim Meyering  <meyering@lucent.com>
63815
63816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63817
63818 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63819
63820         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63821         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63822         compile-time test, rather than inspecting host and OS, to
63823         decide whether to define _LARGEFILE_SOURCE.
63824
63825 2000-05-01  Jim Meyering  <meyering@lucent.com>
63826
63827         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63828
63829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63830         Based on a patch from Bruno Haible.
63831
63832 2000-05-01  Jim Meyering  <meyering@lucent.com>
63833
63834         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63835
63836 2000-04-29  Jim Meyering  <meyering@lucent.com>
63837
63838         * lib/path-concat.c: Declare strdup only if it's not defined.
63839         * lib/canon-host.c: Likewise.
63840
63841 2000-04-28  Jim Meyering  <meyering@lucent.com>
63842
63843         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63844         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63845         is included first, then limits.h is included by locale.h by libintl.h.
63846         From John David Anglin.
63847
63848 2000-04-25  Jim Meyering  <meyering@lucent.com>
63849
63850         * lib/makepath.c (S_IRWXUGO): Define.
63851         (make_path): Always perform explicit chmod if MODE specifies any
63852         of the `special' permission bits.  Prompted by a bug report against
63853         install from Mate Wierdl and Joost van Baal.
63854
63855 2000-04-18  Jim Meyering  <meyering@lucent.com>
63856
63857         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63858         (jm_PREREQ): Use it.
63859
63860 2000-04-18  Jim Meyering  <meyering@lucent.com>
63861
63862         * lib/README: New file.
63863
63864         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63865         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63866
63867 2000-04-17  Jim Meyering  <meyering@lucent.com>
63868
63869         Get it right :-)
63870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63871         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63872         Suggestion from Akim Demaille.
63873
63874 2000-04-17  Jim Meyering  <meyering@lucent.com>
63875
63876         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63877         the definition of it to rpl_strftime also defined-away the system's
63878         declaration.
63879
63880 2000-04-15  Jim Meyering  <meyering@lucent.com>
63881
63882         Use `C' to denote so-called `contiguous' files, the same way
63883         that tar does.
63884         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63885         (ftypelet): Use S_ISCTG.
63886         From Michael Deutschmann.
63887
63888 2000-04-14  Jim Meyering  <meyering@lucent.com>
63889
63890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63891         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63892         clobbered.
63893
63894 2000-04-14  Jim Meyering  <meyering@lucent.com>
63895
63896         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63897
63898 2000-04-13  Jim Meyering  <meyering@lucent.com>
63899
63900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63901         AH_VERBATIM to insert required #ifndef into config.h.in.
63902         Suggestion from Akim Demaille.
63903
63904 2000-04-12  Jim Meyering  <meyering@lucent.com>
63905
63906         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63907         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63908         Christian Krackowizer.
63909
63910         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63911         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63912         (AC_SYS_LARGEFILE): Require.
63913         (AM_C_PROTOTYPES): Require.
63914
63915 2000-04-08  Jim Meyering  <meyering@lucent.com>
63916
63917         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63918         names don't conflict.  Reported by Eli Zaretskii.
63919
63920 2000-04-07  Jim Meyering  <meyering@lucent.com>
63921
63922         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63923         sys/types.h, to work around system header problems on AIX 3.2.5.
63924         From Bruno Haible.
63925
63926 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63927
63928         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63929         bug.  Deal with the different error behavior of Irix iconv.
63930
63931 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63932
63933         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63934         IRIX if the installer said otherwise.
63935
63936 2000-04-05  Jim Meyering  <meyering@lucent.com>
63937
63938         Portability tweaks required for ultrix4.3.
63939         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63940         (jm_CHECK_DECLS): Add getutent to the list of functions.
63941         (_jm_DECL_HEADERS): Add utmpx.h.
63942         From John David Anglin.
63943
63944         * m4/strftime.m4: Back out the 2000-04-02 change.
63945         Instead of that change, simply undefine putenv in the test program.
63946
63947 2000-04-05  Jim Meyering  <meyering@lucent.com>
63948
63949         Portability tweaks required for ultrix4.3.
63950         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63951         getutent.
63952         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63953         * lib/canon-host.c: Declare strdup.
63954         * lib/path-concat.c: Likewise.
63955         From John David Anglin.
63956
63957 2000-04-04  Jim Meyering  <meyering@lucent.com>
63958
63959         Be more DOS 8.3-friendly.
63960         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63961         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63962         * lib/Makefile.am: Reflect renaming.
63963         Reported by Eli Zaretskii.
63964
63965         Use a temporary file name that won't clash with `charset.alias'
63966         in the DOS 8.3 name space.
63967         * lib/Makefile.am (charset_tmp): Define.
63968         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63969         (uninstall-local): Likewise.
63970         Reported by Eli Zaretskii.
63971
63972 2000-04-03  Jim Meyering  <meyering@lucent.com>
63973
63974         * m4/gettext.m4: Fix typo in comment.
63975
63976         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63977         textutils/configure.in).  Suggestion from Paul Eggert.
63978         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63979
63980 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63981
63982         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63983         variable in the shell rather than using putenv, which isn't
63984         portable.  This avoids the configure-time inter-test dependency
63985         on the potentially-renamed putenv function.
63986
63987 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63988
63989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63990         before checking struct stat.st_blksize, so that
63991         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63992
63993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63994
63995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63996         since strftime.c uses HAVE_STRFTIME to decide whether to use
63997         the underlying strftime.
63998
63999 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64000
64001         * lib/time/strftime.c (my_strftime): Make sure we call the system
64002         strftime, not ourselves, when invoking the underlying strftime.
64003
64004 2000-03-24  Jim Meyering  <meyering@lucent.com>
64005
64006         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64007         (charset_alias): Define.
64008         (install-exec-local): Factor out common code.
64009         (uninstall-local): Split lines longer than 80.
64010         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64011         (SUFFIXES): Define.
64012         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64013         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64014
64015 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64016
64017         * lib/config.charset: Output a line containing "Packages using this
64018         file".
64019         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64020         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64021         ref-del.sed): New rules.
64022
64023 2000-03-17  Jim Meyering  <meyering@lucent.com>
64024
64025         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64026         Otherwise, include <strings.h>
64027
64028 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64029
64030         * lib/unicodeio.c (utf8_wctomb): New function.
64031         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64032         format instead of in UCS-4 with platform dependent endianness.
64033
64034 2000-03-10  Jim Meyering  <meyering@lucent.com>
64035
64036         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64037         From Marco Franzen.
64038
64039 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64040
64041         * lib/savedir.c (savedir): Work even if directory size is
64042         negative; this can happen with some screwy NFS configurations.
64043
64044 2000-03-06  Jim Meyering  <meyering@lucent.com>
64045
64046         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64047         if it's NULL (because we ran out of memory).  From Bruno Haible.
64048
64049 2000-03-05  Jim Meyering  <meyering@lucent.com>
64050
64051         * lib/localcharset.c ("path-concat.h"): Include.
64052         (get_charset_aliases): Use path_concat instead of ANSI string
64053         concatenation.
64054
64055         * lib/unicodeio.h (PARAMS): Define.
64056         Use it to guard prototype.
64057
64058 2000-03-04  Jim Meyering  <meyering@lucent.com>
64059
64060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64061         for lib/localcharset.c.
64062
64063 2000-03-04  Jim Meyering  <meyering@lucent.com>
64064
64065         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64066         installing into it.
64067         (uninstall-local): Uncomment this rule so `make distcheck' works
64068         once again.
64069
64070         * lib/unicodeio.c (<errno.h>): Include it.
64071         (errno): Declare if not defined.
64072
64073         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64074
64075         * lib/config.charset: New version, incorporating remarks from a linux
64076         i18n mailing list.  From Bruno Haible.
64077
64078 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64079
64080         * m4/codeset.m4: New file.
64081         * m4/iconv.m4: New file.
64082         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64083
64084 2000-03-03  Jim Meyering  <meyering@lucent.com>
64085
64086         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64087
64088 2000-03-02  Jim Meyering  <meyering@lucent.com>
64089
64090         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64091         the messages come out on separate lines.
64092
64093         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64094         rather than jm_CHECK_DECLARATIONS.
64095         * m4/decl.m4: Remove now-unused file.
64096
64097         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64098         geteuid.
64099
64100 2000-03-02  Jim Meyering  <meyering@lucent.com>
64101
64102         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64103
64104 2000-03-01  Jim Meyering  <meyering@lucent.com>
64105
64106         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64107         * lib/unicodeio.c: Likewise.
64108
64109 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64110
64111         * lib/config.charset: New file.
64112         * lib/localcharset.c: New file.
64113         * lib/unicodeio.h, lib/unicodeio.c: New files.
64114         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64115         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64116         (noinst_HEADERS): Add unicodeio.h.
64117         (all-local, install-exec-local, charset.alias): New targets.
64118
64119 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64120
64121         * lib/quotearg.c (ALERT_CHAR): New macro.
64122         (quotearg_buffer_restyled): Use it.
64123
64124 2000-02-27  Jim Meyering  <meyering@lucent.com>
64125
64126         * m4/check-decl.m4: Add getenv to the list.
64127
64128 2000-02-27  Jim Meyering  <meyering@lucent.com>
64129
64130         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64131         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64132
64133         * lib/backupfile.c: Guard inclusion of stdlib.h with
64134         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64135         Declare malloc if needed.
64136
64137         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64138         `#ifndef HAVE_DECL..'
64139         now that autoconf always defines the HAVE_DECL_ symbols.
64140         * lib/human.c: Likewise.
64141         * lib/same.c: Likewise.
64142         * lib/strtoumax.c: Likewise.
64143
64144         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64145         declaration check was not run.
64146         * lib/hash.c: Likewise.
64147         * lib/human.c: Likewise.
64148         * lib/same.c: Likewise.
64149         * lib/strtoumax.c: Likewise.
64150
64151         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64152         `.', then first look up the entire `.'-containing string as a login
64153         name.
64154
64155 2000-02-23  Jim Meyering  <meyering@lucent.com>
64156
64157         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64158         in place of my hack.
64159
64160 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64161
64162         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64163         (textint): New typedef.
64164         (parser_control): Member year changed from int to textint.
64165         All uses changed.
64166         (YYSTYPE): Removed; replaced by %union with int and textint members.
64167         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64168         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64169         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64170         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64171         (date, number, to_year): Use width of number in digits, not its value,
64172         to determine whether it's a 2-digit year, or a 2-digit time.
64173         (yylex): Store number of digits of numeric tokens.
64174         Reported by John Kendall.
64175
64176         (parser_control): Changed from struct parser_control to typedef (for
64177         consistency).  All uses changed.
64178
64179         (tID): Removed; not used.
64180         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64181
64182 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64183
64184         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64185         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64186
64187 2000-02-12  Jim Meyering  <meyering@lucent.com>
64188
64189         * lib/userspec.c (ISDIGIT): Define it.
64190         (isdigit): Remove definition.
64191         (is_number): Use ISDIGIT, not isdigit.
64192         <libintl.h>: Include.
64193         (_ and N_): Define.
64194         (parse_user_spec): Mark translatable strings.
64195
64196 2000-02-10  Jim Meyering  <meyering@lucent.com>
64197
64198         With these changes, nanosleep.[ch] are finally enough like the other
64199         lib/* replacement files to compile on a few more losing systems.
64200
64201         * lib/nanosleep.h: Don't include config.h.
64202         Remove prototype from declaration of nanosleep.
64203         (PARAMS): Remove now-unneeded definition.
64204         * lib/nanosleep.c: #undef nanosleep.
64205         (rpl_nanosleep): Rename from nanosleep.
64206
64207 2000-02-10  Jim Meyering  <meyering@lucent.com>
64208
64209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64210         gnu_nanosleep to rpl_nanosleep.
64211
64212 2000-02-09  Jim Meyering  <meyering@lucent.com>
64213
64214         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64215         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64216
64217 2000-02-08  Akim Demaille  <akim@epita.fr>
64218
64219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64220         `[' and `]' and remove uses of `changequote'.
64221         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64222         (AC_SYS_LARGEFILE): Likewise.
64223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64224         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64225         of changequote.
64226         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64227         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64228         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64229         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64230
64231 2000-02-05  Jim Meyering  <meyering@lucent.com>
64232
64233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64234         Remove explicit use of AC_HEADER_TIME.  It is required by
64235         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64236         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64237         in autoconf whereby the expansion of the latter ended up preceding
64238         the expansion of its prerequisite, AC_HEADER_TIME.
64239         Reported by Volker Borchert.
64240
64241 2000-02-03  Jim Meyering  <meyering@lucent.com>
64242
64243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64244
64245 2000-02-03  Jim Meyering  <meyering@lucent.com>
64246
64247         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64248         rather than with `#if HAVE_UTMPNAME'.
64249
64250 2000-02-02  Jim Meyering  <meyering@lucent.com>
64251
64252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64253         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64254         Reported by Eli Zaretskii.
64255
64256 2000-02-01  Jim Meyering  <meyering@lucent.com>
64257
64258         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64259
64260 2000-01-31  Jim Meyering  <meyering@lucent.com>
64261
64262         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64263         functions.  Add the time.h and sys/time.h headers along with the
64264         AC_REQUIRE'ment of AC_HEADER_TIME.
64265
64266 2000-01-31  Jim Meyering  <meyering@lucent.com>
64267
64268         * lib/nanosleep.h (nanosleep): Guard declaration with
64269         `#if ! HAVE_DECL_NANOSLEEP'.
64270         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64271         the declaration in that vendor's sys/timers.h.
64272         Reported by Christian Krackowizer.
64273
64274         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64275         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64276         (ISPRINT): Likewise.
64277         Reported by Tom Tromey.
64278
64279 2000-01-30  Jim Meyering  <meyering@lucent.com>
64280
64281         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64282
64283         * m4/prereq.m4 (utmp_includes): Define.
64284         Check for ut_user and ut_name members in both struct utmpx
64285         and struct utmp.
64286
64287 2000-01-30  Jim Meyering  <meyering@lucent.com>
64288
64289         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64290         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64291         header files where only utmpx.ut_user is declared.
64292
64293         * lib/readutmp.h (UT_USER): Define.
64294
64295 2000-01-29  Jim Meyering  <meyering@lucent.com>
64296
64297         * m4/lib-check.m4: New file containing library-related checks from
64298         fileutils and sh-utils (textutils had none).
64299
64300 2000-01-28  Jim Meyering  <meyering@lucent.com>
64301
64302         * m4/perl.m4: Change format of warning message to look more like that
64303         from the missing script.  Suggestion from François Pinard.
64304
64305 2000-01-25  Jim Meyering  <meyering@lucent.com>
64306
64307         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64308         well as time.h in the compile check.
64309         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64310         Fix typo in cross-compiling case: s/yes/no/.
64311
64312 2000-01-23  Jim Meyering  <meyering@lucent.com>
64313
64314         * m4/jm-macros.m4: Move df-related tests here from
64315         fileutils/configure.in
64316
64317         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64318         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64319
64320         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64321         s/space/ac_fsusage_space/.
64322         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64323
64324         * m4/ftruncate.m4: New file (derived from part of
64325         fileutils/configure.in).
64326         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64327         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64328
64329         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64330         AC_SUBST these here, rather than just in sh-util/configure.in, so
64331         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64332         all the same.
64333         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64334         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64335         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64336         (AC_SUBST(POW_LIBM)): Likewise.
64337         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64338
64339 2000-01-23  Jim Meyering  <meyering@lucent.com>
64340
64341         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64342         obstack.c.
64343
64344 2000-01-22  Jim Meyering  <meyering@lucent.com>
64345
64346         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64347
64348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64349
64350         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64351         configure.in
64352         (AC_CHECK_HEADERS): Likewise for sh-utils.
64353         (AC_CHECK_HEADERS): Likewise for textutils.
64354         Merge the three lists of headers.
64355
64356         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64357         from fileutils' configure.in.
64358
64359         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64360         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64361         check-decl.m4.
64362
64363         * m4/check-decl.m4: Use #if rather than #ifdef.
64364         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64365         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64366         (_jm_DECL_HEADERS): Define new function.
64367         (jm_CHECK_DECLARATIONS): Require it.
64368
64369 2000-01-22  Jim Meyering  <meyering@lucent.com>
64370
64371         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64372         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64373         Required for some AIX systems.  Reported by Christian Krackowizer.
64374         [TESTING] (main): New function.
64375
64376         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64377         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64378         letters.
64379
64380         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64381         iswprint.
64382
64383         * lib/strverscmp.c (ISDIGIT): Define.
64384         (strverscmp): Use ISDIGIT, not isdigit.
64385
64386 2000-01-19  Jim Meyering  <meyering@lucent.com>
64387
64388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64389         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64390         defines `struct timespec' in <sys/time.h>
64391
64392         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64393         Thanks to Akim for explaining.
64394
64395 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64396
64397         * lib/nanosleep.c (nanosleep):
64398         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64399         POSIX.1 doesn't require SA_INTERRUPT and some systems
64400         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64401         it's been part of POSIX.1 since day 1 (in 1988).
64402
64403 2000-01-17  Jim Meyering  <meyering@lucent.com>
64404
64405         * lib/interlock: Remove unused file.  Reported by François Pinard.
64406
64407 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64408
64409         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64410         alert, backslash, formfeed, and vertical tab unnecessarily in
64411         shell quoting style.
64412
64413 2000-01-16  Jim Meyering  <meyering@lucent.com>
64414
64415         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64416         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64417         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64418         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64419
64420 2000-01-16  Jim Meyering  <meyering@lucent.com>
64421
64422         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64423         because the latter didn't work.
64424
64425 2000-01-15  Jim Meyering  <meyering@lucent.com>
64426
64427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64428         (AC_REPLACE_FUNCS): Add memcpy and memset.
64429         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64430         Add strpbrk.
64431         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64432
64433 2000-01-12  Jim Meyering  <meyering@lucent.com>
64434
64435         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64436         (jm_PREREQ): Use it.
64437         (jm_PREREQ_READUTMP): New macro.
64438         (jm_PREREQ): Use it.
64439
64440 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64441
64442         Quote multibyte characters correctly.
64443         * m4/c-bs-a.m4: New file.
64444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64445         (jm_PREREQ): Use it.
64446
64447 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64448
64449         * m4/uintmax_t.m4: Port to autoconf 2.13.
64450
64451 2000-01-08  Jim Meyering  <meyering@ascend.com>
64452
64453         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64454         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64455
64456 2000-01-04  Jim Meyering  <meyering@ascend.com>
64457
64458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64459         jm_STRUCT_DIRENT_D_TYPE.
64460         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64461         jm_STRUCT_DIRENT_D_INO.
64462         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64463         jm_STRUCT_UTIMBUF.
64464         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64465         renamings.
64466         * m4/utime.m4: Likewise.
64467
64468         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64469         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64470
64471 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64472
64473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64474         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64475
64476 2000-01-02  Jim Meyering  <meyering@ascend.com>
64477
64478         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64479         remember if this is necessary.
64480
64481 1999-12-26  Jim Meyering  <meyering@ascend.com>
64482
64483         * m4/jm-macros.m4: Use it here.
64484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64485
64486 1999-12-23  Jim Meyering  <meyering@ascend.com>
64487
64488         * m4/jm-macros.m4: Check for clock_gettime (moved from
64489         fileutils/configure.in)
64490         Check for gettimeofday.
64491
64492 1999-12-20  Jim Meyering  <meyering@ascend.com>
64493
64494         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64495         autoconf-2.14a-1999-12-20.
64496
64497 1999-12-19  Jim Meyering  <meyering@ascend.com>
64498
64499         * m4/lstat-slash.m4: New file.
64500         * m4/jm-macros.m4: Use the new macro:
64501         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64502
64503 1999-12-07  Jim Meyering  <meyering@ascend.com>
64504
64505         * m4/perl.m4: Require that File::Compare be available, too.
64506         Too many systems seem to lack it.
64507
64508         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64509         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64510
64511 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64512
64513         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64514         problem with the QNX 4.25 shell, which doesn't propagate exit
64515         status of failed commands inside shell assignments.
64516
64517 1999-11-17  Jim Meyering  <meyering@ascend.com>
64518
64519         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64520
64521 1999-11-07  Jim Meyering  <meyering@ascend.com>
64522
64523         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64524
64525 1999-11-06  Jim Meyering  <meyering@ascend.com>
64526
64527         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64528         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64529
64530 1999-11-05  Jim Meyering  <meyering@ascend.com>
64531
64532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64533         configure.in of textutils, fileutils, and sh-utils into this one
64534         (shared between those packages) file.
64535         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64536         AC_STRUCT_ST_BLKSIZE.
64537
64538 1999-11-03  Jim Meyering  <meyering@ascend.com>
64539
64540         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64541         of AC_CHECK_TYPE checks includes unistd.h.
64542         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64543         Suggestion from Akim Demaille.
64544
64545 1999-10-30  Jim Meyering  <meyering@ascend.com>
64546
64547         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64548         m4-quoted string.
64549         * m4/ls-mntd-fs.m4: Likewise.
64550         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64551         * m4/jm-winsz1.m4: Likewise.
64552
64553         * m4/const.m4: Remove file, since the fix made it into the experimental
64554         version of autoconf.
64555         * m4/mktime.m4: Likewise.
64556
64557         * m4/check-type.m4: Remove file, now that the latest version of
64558         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64559
64560         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64561         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64562         AC_CHECK_TYPE.
64563
64564 1999-10-04  Jim Meyering  <meyering@ascend.com>
64565
64566         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64567
64568 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64569
64570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64571         2.95.1 bug with HP-UX 10.20.
64572
64573 1999-09-17  Jim Meyering  <meyering@ascend.com>
64574
64575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64576         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64577         due to missing strdup (against sh-utils-2.0).
64578
64579 1999-08-29  Jim Meyering  <meyering@ascend.com>
64580
64581         * m4/jm-macros.m4: Require jm_BISON.
64582         * m4/bison.m4: New file.
64583
64584 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64585
64586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64587         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64588
64589 1999-08-05  Jim Meyering  <meyering@ascend.com>
64590
64591         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64592         to avoid conflicts with `conftest' on 8+3 filesystems.
64593         Suggestion from Eli Zaretskii.
64594
64595 1999-08-04  Jim Meyering  <meyering@ascend.com>
64596
64597         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64598         fileutils and sh-utils (textutils's getline test was inadequate).
64599         (AM_FUNC_GETLINE): Run this test.
64600         (AC_CHECK_FUNCS): Check for getdelim.
64601         Reported by Bob Proulx.
64602
64603 1999-08-02  Jim Meyering  <meyering@ascend.com>
64604
64605         * m4/jm-macros.m4: Add a comment.
64606
64607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64608
64609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64610         <inttypes.h> defines strtoumax as a macro (and not as a
64611         function).
64612
64613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64614
64615         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64616         that we can shift, multiply and divide unsigned long long
64617         values; Ultrix cc can't do it.
64618
64619 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64620
64621         * m4/mktime.m4: New file, which is a preview of what should appear
64622         in the next public autoconf release.
64623
64624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64625
64626         * m4/lfs.m4: Remove this file.
64627         * m4/largefile.m4: New file.  It contains the old contents of
64628         lfs.m4, except that all names with prefix AC_LFS have been
64629         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64630         compatible with future autoconf versions.  Also, some minor m4
64631         quoting problems have been fixed.
64632
64633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64634
64635         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64636         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64637         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64638         and simplify the shell code.
64639
64640 1999-08-01  Jim Meyering  <meyering@ascend.com>
64641
64642         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64643         m4.
64644
64645 1999-07-20  Jim Meyering  <meyering@ascend.com>
64646
64647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64648
64649 1999-07-15  Jim Meyering  <meyering@ascend.com>
64650
64651         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64652
64653 1999-05-22  Jim Meyering  <meyering@ascend.com>
64654
64655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64656
64657 1999-05-20  Jim Meyering  <meyering@ascend.com>
64658
64659         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64660         Add a colon after each `then' in case $4 is empty.
64661
64662 1999-05-16  Jim Meyering  <meyering@ascend.com>
64663
64664         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64665
64666 1999-05-10  Jim Meyering  <meyering@ascend.com>
64667
64668         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64669
64670         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64671         AC_FUNC_MKTIME.
64672
64673 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64674
64675         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64676
64677 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64678
64679         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64680         not CPPFLAGS, so that linking works correctly in IRIX.
64681
64682 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64683
64684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64685
64686 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64687
64688         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64689         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64691         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64692         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64693
64694         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64695
64696 1999-04-20  Jim Meyering  <meyering@ascend.com>
64697
64698         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64699         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64700         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64701
64702 1999-04-18  Jim Meyering  <meyering@ascend.com>
64703
64704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64705         * m4/jm-macros.m4: Use it.
64706
64707 1999-04-06  Jim Meyering  <meyering@ascend.com>
64708
64709         * m4/strftime.m4: Remove test for %f.
64710
64711 1999-03-29  Jim Meyering  <meyering@ascend.com>
64712
64713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64714         superset of the AC_TYPE_* checks in the textutils, fileutils,
64715         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64716         AC_TYPE_PID_T.
64717
64718 1999-03-28  Jim Meyering  <meyering@ascend.com>
64719
64720         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64721         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64722         replaced e.g., in the *.sh files of the sh-utils.
64723
64724 1999-03-20  Jim Meyering  <meyering@ascend.com>
64725
64726         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64727         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64728         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64729
64730 1999-03-19  Jim Meyering  <meyering@ascend.com>
64731
64732         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64733
64734 1999-03-12  Jim Meyering  <meyering@ascend.com>
64735
64736         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64737
64738 1999-03-07  Jim Meyering  <meyering@ascend.com>
64739
64740         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64741         declared.
64742
64743 1999-02-17  Jim Meyering  <meyering@ascend.com>
64744
64745         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64746         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64747
64748 1999-02-07  Jim Meyering  <meyering@ascend.com>
64749
64750         * m4/group-member.m4: New file -- extracted from sh-utils'
64751         configure.in.
64752
64753         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64754         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64755
64756 1999-02-06  Jim Meyering  <meyering@ascend.com>
64757
64758         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64759         * m4/fnmatch.m4: Likewise.
64760         * m4/getgroups.m4: Likewise.
64761         * m4/lstat.m4: Likewise.
64762         * m4/malloc.m4: Likewise.
64763         * m4/putenv.m4: Likewise.
64764         * m4/realloc.m4: Likewise.
64765         * m4/regex.m4: Likewise.
64766         * m4/stat.m4: Likewise.
64767         * m4/strftime.m4: Likewise.
64768         Suggestion from Alain Magloire.
64769
64770         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64771         * m4/fnmatch.m4: Likewise.
64772         * m4/getgroups.m4: Likewise.
64773         * m4/getline.m4: Likewise.
64774         * m4/lstat.m4: Likewise.
64775         * m4/malloc.m4: Likewise.
64776         * m4/memcmp.m4: Likewise.
64777         * m4/putenv.m4: Likewise.
64778         * m4/realloc.m4: Likewise.
64779         * m4/regex.m4: Likewise.
64780         * m4/stat.m4: Likewise.
64781         * m4/strftime.m4: Likewise.
64782         Suggestion from Alain Magloire.
64783
64784         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64785         an argument.
64786
64787         * m4/regex.m4: Add a run-time Test for proper operation of
64788         re_compile_pattern.
64789
64790 1999-01-31  Jim Meyering  <meyering@ascend.com>
64791
64792         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64793
64794 1999-01-30  Jim Meyering  <meyering@ascend.com>
64795
64796         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64797
64798         * m4/jm-mktime.m4: Make this a wrapper around the official
64799         AM_FUNC_MKTIME rather than my private copy, now that the official one
64800         is up to date.
64801         * m4/mktime.m4: Remove file.
64802
64803         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64804         * m4/uptime.m4: Likewise.
64805         * m4/uintmax_t.m4: Likewise.
64806
64807 1999-01-28  Jim Meyering  <meyering@ascend.com>
64808
64809         * m4/jm-macros.m4: Use jm_AFS.
64810         * m4/afs.m4: New file (from fileutils' configure.in).
64811
64812         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64813         * m4/chown.m4: Likewise.
64814         * m4/d-ino.m4: Likewise.
64815         * m4/d-type.m4: Likewise.
64816         * m4/fnmatch.m4: Likewise.
64817         * m4/getgroups.m4: Likewise.
64818         * m4/gettext.m4: Likewise.
64819         * m4/jm-mktime.m4: Likewise.
64820         * m4/jm-winsz2.m4: Likewise.
64821         * m4/lcmessage.m4: Likewise.
64822         * m4/ls-mntd-fs.m4: Likewise.
64823         * m4/malloc.m4: Likewise.
64824         * m4/memcmp.m4: Likewise.
64825         * m4/putenv.m4: Likewise.
64826         * m4/realloc.m4: Likewise.
64827         * m4/st_mtim.m4: Likewise.
64828         * m4/strftime.m4: Likewise.
64829
64830 1999-01-16  Jim Meyering  <meyering@ascend.com>
64831
64832         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64833         (ARGMATCH_DIE_DECL): Define.
64834
64835 1999-01-12  Jim Meyering  <meyering@ascend.com>
64836
64837         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64838         Reported by Lars Hecking.
64839
64840 1999-01-10  Jim Meyering  <meyering@ascend.com>
64841
64842         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64843         gross kludge.
64844         * m4/inttypes_h.m4: Likewise.
64845         * m4/lstat.m4: Likewise.
64846         * m4/malloc.m4: Likewise.
64847         * m4/readdir.m4: Likewise.
64848         * m4/realloc.m4: Likewise.
64849         * m4/st_dm_mode.m4: Likewise.
64850         * m4/stat.m4: Likewise.
64851         * m4/utimbuf.m4: Likewise.
64852         * m4/utimes.m4: Likewise.
64853
64854         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64855         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64856         comments in config.h.in are meaningful.
64857
64858         * m4/jm-macros.m4: Require autoconf-2.13 here.
64859
64860         * m4/regex.m4: By default, don't use the included regex.c on systems
64861         with glibc 2.  Suggestion from Uli Drepper.
64862
64863 1999-01-02  Jim Meyering  <meyering@ascend.com>
64864
64865         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64866
64867 1998-12-18  Jim Meyering  <meyering@ascend.com>
64868
64869         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64870         Based on a suggestion from Lars Hecking.
64871
64872 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64873
64874         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64875
64876 1998-11-16  Jim Meyering  <meyering@ascend.com>
64877
64878         * m4/lfs.m4: Double-quote the `uname...` expression.
64879
64880 1998-11-14  Jim Meyering  <meyering@ascend.com>
64881
64882         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64883         * m4/stat.m4: Likewise.
64884
64885 1998-11-03  Jim Meyering  <meyering@ascend.com>
64886
64887         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64888         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64889
64890 1998-10-18  Jim Meyering  <meyering@ascend.com>
64891
64892         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64893
64894 1998-10-17  Jim Meyering  <meyering@ascend.com>
64895
64896         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64897         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64898         calls for those previously hard-coded headers.  Instead, take a new
64899         parameter.
64900         (jm_CHECK_DECLARATIONS): Reflect interface change.
64901         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64902         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64903
64904         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64905
64906 1998-10-14  Jim Meyering  <meyering@ascend.com>
64907
64908         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64909         instead of "TZ=America/Vancouver".  From Paul Eggert.
64910
64911 1998-10-11  Jim Meyering  <meyering@ascend.com>
64912
64913         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64914         This adds a test for a recently added compatibility fix for mktime.c.
64915         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64916
64917 1998-09-27  Jim Meyering  <meyering@ascend.com>
64918
64919         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64920
64921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64922         ../configure.in, including a change from Gordon Matzigkeit to allow
64923         cross-compiling for the Hurd.
64924
64925         * m4/glibc.m4: New file/macro to test for the GNU C Library
64926         versions 1 and 2.  From Gordon Matzigkeit.
64927         Indent.
64928
64929 1998-09-21  Jim Meyering  <meyering@ascend.com>
64930
64931         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64932
64933 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64934
64935         Port nanosecond-resolution times to UnixWare 2.1.2 and
64936         pedantic Solaris 2.6.
64937
64938         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64939         AC_STRUCT_ST_MTIM.
64940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64941         Generate name of ns member, instead of just 1 or undef.
64942         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64943
64944 1998-08-15  Jim Meyering  <meyering@ascend.com>
64945
64946         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64947         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64948         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64949         instead of jm_TYPE_SSIZE_T.
64950
64951 1998-08-12  Jim Meyering  <meyering@ascend.com>
64952
64953         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64954
64955 1998-08-02  Jim Meyering  <meyering@ascend.com>
64956
64957         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64958         in acconfig.h manually.
64959
64960 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64961
64962         * m4/st_mtim.m4: New file.
64963
64964 1998-07-28  Jim Meyering  <meyering@ascend.com>
64965
64966         * m4/utimes.m4: Undef stat.
64967
64968 1998-07-25  Jim Meyering  <meyering@ascend.com>
64969
64970         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64971         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64972
64973 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64974
64975         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64976         uid and gid actually remain unchanged.
64977
64978 1998-07-07  Jim Meyering  <meyering@ascend.com>
64979
64980         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64981
64982 1998-07-04  Jim Meyering  <meyering@ascend.com>
64983
64984         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64985         to prove that this macro can be used in packages without regex.c.
64986
64987 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64988
64989         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64990         is to be used.
64991
64992 1998-07-03  Jim Meyering  <meyering@ascend.com>
64993
64994         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64995
64996         * m4/gettext.m4: New file -- from gettext-0.10.35.
64997         * m4/lcmessage.m4: Likewise.
64998         * m4/progtest.m4: Likewise.
64999
65000         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65001         * m4/jm-macros.m4: Require the new macro.
65002
65003 1998-06-29  Jim Meyering  <meyering@ascend.com>
65004
65005         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65006         for the definition of NGROUPS (used in a system header included
65007         by sys/mount.h).
65008
65009 1998-06-28  Jim Meyering  <meyering@ascend.com>
65010
65011         * m4/ls-mntd-fs.m4: New file.
65012         * m4/fstypename.m4: New file.
65013
65014         * m4/jm-macros.m4: Require the new macro.
65015         * m4/jm-glibc-io.m4: New file.
65016
65017 1998-05-19  Jim Meyering  <meyering@ascend.com>
65018
65019         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65020         * m4/lchown.m4: New file.
65021
65022         * m4/Makefile.am.in: New file.
65023         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65024
65025 1998-05-14  Jim Meyering  <meyering@ascend.com>
65026
65027         * m4/Makefile.am (EXTRA_DIST): Add them.
65028         * m4/jm-macros.m4: New file.
65029         * m4/utimbuf.m4: New file.
65030
65031 1998-05-12  Jim Meyering  <meyering@ascend.com>
65032
65033         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65034
65035 1998-05-11  Jim Meyering  <meyering@ascend.com>
65036
65037         * m4/isc-posix.m4: New file.
65038
65039 1998-05-10  Jim Meyering  <meyering@ascend.com>
65040
65041         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65042
65043 1998-05-09  Jim Meyering  <meyering@ascend.com>
65044
65045         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65046         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65047         with automake.
65048
65049         * m4/ssize_t.m4: New file.
65050         * m4/mktime.m4: Remove file -- the new automake has this now.
65051
65052 1998-04-26  Jim Meyering  <meyering@ascend.com>
65053
65054         * m4/assert.m4: New file.
65055         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65056
65057 1998-04-05  Jim Meyering  <meyering@ascend.com>
65058
65059         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65060         (jm_PREREQ): Use it here.
65061
65062 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65063
65064         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65065         in acconfig.h.
65066
65067 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65068
65069         * m4/prereq.m4: New file.
65070         * m4/error.m4: New file.
65071         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65072
65073 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65074
65075         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65076         cache-check for the same variable -- that defeated the purpose of
65077         the test; the test program was never run.  This was a problem only
65078         on systems with losing getline functions -- HP-UX 10.20 is one.
65079         Reported by Bjorn Helgaas.
65080
65081 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65082
65083         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65084
65085 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65086
65087         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65088
65089         * m4/const.m4: New file.  Use an initializer in this declaration
65090         typedef int charset[2]; const charset x;
65091         Reported by Bob Glickstein.
65092
65093 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65094
65095         * m4/chown.m4: Fix reversed types on -1 args to chown.
65096         From Kaveh Ghazi.
65097
65098 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65099
65100         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65101         Add lseek and memchr.
65102
65103         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65104         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65105         have a 20-character limit on names.
65106
65107 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65108
65109         * m4/inttypes_h.m4: New file.
65110         * m4/uintmax_t.m4: New file.
65111         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65112
65113
65114         -----
65115
65116         Local Variables:
65117         coding: utf-8
65118         End:
65119
65120         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65121
65122         Copying and distribution of this file, with or without
65123         modification, are permitted provided the copyright notice
65124         and this notice are preserved.