pty: Update doc.
[pspp] / ChangeLog
1 2010-04-03  Bruno Haible  <bruno@clisp.org>
2
3         pty: Update doc.
4         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5
6 2010-04-03  Bruno Haible  <bruno@clisp.org>
7
8         unistd: Fix C++ test error on mingw.
9         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10
11 2010-04-03  Bruno Haible  <bruno@clisp.org>
12
13         Update doc regarding mingw.
14         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15         * doc/glibc-functions/login_tty.texi: Likewise.
16         * doc/glibc-functions/forkpty.texi: Likewise.
17
18 2010-04-03  Bruno Haible  <bruno@clisp.org>
19
20         stdlib: Avoid compilation failure of c-strtold on mingw.
21         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22
23 2010-04-03  Bruno Haible  <bruno@clisp.org>
24
25         locale: Make C++ tests work on Cygwin and mingw.
26         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27         cannot provide the function.
28         Reported by Simon Josefsson.
29
30 2010-04-03  Bruno Haible  <bruno@clisp.org>
31
32         localename: Port to MacOS X 10.6.
33         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34         memory layout of the locales in MacOS X 10.6 as well.
35         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36
37 2010-04-02  Bruno Haible  <bruno@clisp.org>
38
39         gnulib-tool: Ensure that long-running tests are executed last.
40         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
41         running tests after the one for the other tests.
42
43 2010-04-02  Bruno Haible  <bruno@clisp.org>
44
45         gnulib-tool: Ensure the tests in the main directory are executed first.
46         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
47         start with the current directory.
48
49 2010-04-02  Bruno Haible  <bruno@clisp.org>
50
51         Tests for module 'havelib', moved here from GNU gettext.
52         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53         modifications.
54         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
55         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
56         with modifications.
57         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
58         modifications.
59         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
60         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
61         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
62         with modifications.
63         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
64         with modifications.
65         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
67         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
68         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
71         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
72         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
73         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
74         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
75         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
76         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
77         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
78         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
79         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
80         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
81         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
82         with modifications.
83         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
84         with modifications.
85         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
86         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
87         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
88         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
89         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
90         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
91         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
92         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
93         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
94         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
95         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
96         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
97         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
98         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
99         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
100         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
101         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
102         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
103         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
104         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
105         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
106         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
107         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
108         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
109         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
110         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
111         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
112         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
113         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
114         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
115         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
116         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
117         * tests/havelib/rpathx/rpathx.c: New file, from
118         gettext/autoconf-lib-link.
119         * tests/havelib/rpathx/Makefile.am: New file, from
120         gettext/autoconf-lib-link.
121         * tests/havelib/rpathx/configure.ac: New file, from
122         gettext/autoconf-lib-link with modifications.
123         * tests/havelib/rpathy/rpathy.c: New file, from
124         gettext/autoconf-lib-link.
125         * tests/havelib/rpathy/Makefile.am: New file, from
126         gettext/autoconf-lib-link.
127         * tests/havelib/rpathy/configure.ac: New file, from
128         gettext/autoconf-lib-link with modifications.
129         * tests/havelib/rpathz/rpathz.c: New file, from
130         gettext/autoconf-lib-link.
131         * tests/havelib/rpathz/Makefile.am: New file, from
132         gettext/autoconf-lib-link.
133         * tests/havelib/rpathz/configure.ac: New file, from
134         gettext/autoconf-lib-link with modifications.
135         * tests/havelib/rpathlx/usex.c: New file, from
136         gettext/autoconf-lib-link.
137         * tests/havelib/rpathlx/Makefile.am: New file, from
138         gettext/autoconf-lib-link.
139         * tests/havelib/rpathlx/configure.ac: New file, from
140         gettext/autoconf-lib-link with modifications.
141         * tests/havelib/rpathly/usey.c: New file, from
142         gettext/autoconf-lib-link.
143         * tests/havelib/rpathly/Makefile.am: New file, from
144         gettext/autoconf-lib-link.
145         * tests/havelib/rpathly/configure.ac: New file, from
146         gettext/autoconf-lib-link with modifications.
147         * tests/havelib/rpathlz/usez.c: New file, from
148         gettext/autoconf-lib-link.
149         * tests/havelib/rpathlz/Makefile.am: New file, from
150         gettext/autoconf-lib-link.
151         * tests/havelib/rpathlz/configure.ac: New file, from
152         gettext/autoconf-lib-link with modifications.
153         * tests/havelib/rpathlyx/usey.c: New file, from
154         gettext/autoconf-lib-link.
155         * tests/havelib/rpathlyx/Makefile.am: New file, from
156         gettext/autoconf-lib-link.
157         * tests/havelib/rpathlyx/configure.ac: New file, from
158         gettext/autoconf-lib-link with modifications.
159         * tests/havelib/rpathlzyx/usez.c: New file, from
160         gettext/autoconf-lib-link.
161         * tests/havelib/rpathlzyx/Makefile.am: New file, from
162         gettext/autoconf-lib-link.
163         * tests/havelib/rpathlzyx/configure.ac: New file, from
164         gettext/autoconf-lib-link with modifications.
165         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
166         with modifications.
167
168 2010-04-02  Bruno Haible  <bruno@clisp.org>
169
170         gnulib-tool: Create distributed built sources also for the tests.
171         * gnulib-tool (func_create_testdir): Also generate distributed built
172         sources in the tests directory.
173
174 2010-04-02  Bruno Haible  <bruno@clisp.org>
175
176         gnulib-tool: Obey user's environment variables.
177         * gnulib-tool (func_create_testdir): When creating built sources,
178         respect the environment variables for autoconf, automake, etc. given by
179         the user.
180
181 2010-04-02  Bruno Haible  <bruno@clisp.org>
182
183         gnulib-tool: Provide the value of --m4-base to modules.
184         * gnulib-tool (func_import, func_create_testdir): Emit a definition
185         of gl_m4_base.
186
187 2010-04-02  Eric Blake  <eblake@redhat.com>
188
189         maint.mk: fix some fallout
190         * NEWS: Document the incompatible change, and its effect on cfg.mk.
191         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
192
193 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
194
195         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
196         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
197         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
198         (sc_cast_of_x_alloc_return_value): Likewise.
199         (sc_cast_of_alloca_return_value): Likewise.
200         (sc_space_tab): Likewise.
201         (sc_prohibit_atoi_atof): Likewise.
202         (sc_prohibit_magic_number_exit): Likewise.
203         (sc_error_exit_success): Likewise.
204         (sc_file_system): Likewise.
205         (sc_prohibit_have_config_h): Likewise.
206         (sc_require_config_h): Likewise.
207         (sc_prohibit_HAVE_MBRTOWC): Likewise.
208         (sc_obsolete_symbols): Likewise.
209         (sc_changelog): Likewise.
210         (sc_program_name): Likewise.
211         (sc_the_the): Likewise.
212         (sc_trailing_blank): Likewise.
213         (sc_two_space_separator_in_usage): Likewise.
214         (sc_useless_cpp_parens): Likewise.
215         (sc_GPL_version): Likewise.
216         (sc_GFDL_version): Likewise.
217         (sc_texinfo_acronym): Likewise.
218         (sc_prohibit_cvs_keyword): Likewise.
219         (sc_prohibit_stat_st_blocks): Likewise.
220         (sc_prohibit_S_IS_definition): Likewise.
221         (sc_redundant_const): Likewise.
222         (sc_makefile_TAB_only_indentation): Likewise.
223         (sc_m4_quote_check): Likewise.
224         (sc_makefile_path_separator_check): Likewise.
225         (sc_copyright_check): Likewise.
226         (sc_Wundef_boolean): Likewise.
227         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
228
229         maint.mk: match 0 or more whitespace-before-function-call '('
230         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
231         that have zero or two-and-more spaces between the function name
232         and the open parenthesis.
233         (sc_error_message_warn_fatal): Likewise.
234         (sc_error_message_uppercase): Likewise.
235         (sc_error_message_period): Likewise.
236
237 2010-03-31  Eric Blake  <eblake@redhat.com>
238
239         maint.mk: check for [ as well as test
240         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
241         Based on a libvirt report by Matthias Bolte.
242
243         gnumakefile: don't squelch _version output
244         * top/GNUmakefile (_version): Create one-shot dependency rather
245         than using $(shell) when version must be regenerated.
246         (_autoreconf): Run verbosely, by default.
247
248         sys_time: avoid compiler warnings
249         * lib/sys_time.in.h (includes): Ensure gcc pragma is
250         unconditional, fixing regression from 2010-03-29.
251         Reported by Simon Josefsson.
252
253 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
254
255         maint.mk: s/_header_without_use/_sc_header_without_use/
256         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
257         (sc_prohibit_assert_without_use): Use the new name.
258         (sc_prohibit_close_stream_without_use): Likewise.
259         (sc_prohibit_getopt_without_use): Likewise.
260         (sc_prohibit_quotearg_without_use): Likewise.
261         (sc_prohibit_quote_without_use): Likewise.
262         (sc_prohibit_long_options_without_use): Likewise.
263         (sc_prohibit_inttostr_without_use): Likewise.
264         (sc_prohibit_ignore_value_without_use): Likewise.
265         (sc_prohibit_error_without_use): Likewise.
266         (sc_prohibit_xalloc_without_use): Likewise.
267         (sc_prohibit_hash_without_use): Likewise.
268         (sc_prohibit_hash_pjw_without_use): Likewise.
269         (sc_prohibit_safe_read_without_use): Likewise.
270         (sc_prohibit_argmatch_without_use): Likewise.
271         (sc_prohibit_canonicalize_without_use): Likewise.
272         (sc_prohibit_root_dev_ino_without_use): Likewise.
273         (sc_prohibit_openat_without_use): Likewise.
274         (sc_prohibit_c_ctype_without_use): Likewise.
275         (sc_prohibit_signal_without_use): Likewise.
276         (sc_prohibit_intprops_without_use): Likewise.
277
278 2010-03-30  Eric Blake  <eblake@redhat.com>
279
280         maint: improve module indicators
281         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
282         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
283         columns, and avoid extra macro expansion.
284
285         fdopendir: work around FreeBSD bug
286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
287         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
288         * modules/dirent (Makefile.am): Substitute it.
289         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
290         declaration.
291         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
292         fix.
293         Reported by Christian Weisgerber <naddy@mips.inka.de>.
294
295 2010-03-29  Bruno Haible  <bruno@clisp.org>
296
297         Emit #pragma system_header after the inclusion guard, not before.
298         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
299         guard that spans the entire file, not before. This enables an
300         optimization in GCC's preprocessor.
301         * lib/ctype.in.h: Likewise.
302         * lib/dirent.in.h: Likewise.
303         * lib/errno.in.h: Likewise.
304         * lib/float.in.h: Likewise.
305         * lib/getopt.in.h: Likewise.
306         * lib/iconv.in.h: Likewise.
307         * lib/langinfo.in.h: Likewise.
308         * lib/locale.in.h: Likewise.
309         * lib/math.in.h: Likewise.
310         * lib/netdb.in.h: Likewise.
311         * lib/netinet_in.in.h: Likewise.
312         * lib/pty.in.h: Likewise.
313         * lib/sched.in.h: Likewise.
314         * lib/se-selinux.in.h: Likewise.
315         * lib/search.in.h: Likewise.
316         * lib/spawn.in.h: Likewise.
317         * lib/stdarg.in.h: Likewise.
318         * lib/stdint.in.h: Likewise.
319         * lib/string.in.h: Likewise.
320         * lib/strings.in.h: Likewise.
321         * lib/sys_file.in.h: Likewise.
322         * lib/sys_ioctl.in.h: Likewise.
323         * lib/sys_time.in.h: Likewise.
324         * lib/sys_times.in.h: Likewise.
325         * lib/sys_utsname.in.h: Likewise.
326         * lib/sys_wait.in.h: Likewise.
327         * lib/sysexits.in.h: Likewise.
328         * lib/wctype.in.h: Likewise.
329
330 2010-03-28  James Youngman  <jay@gnu.org>
331
332         save-cwd: don't leak a file descriptor when the caller execs.
333         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
334         saved file descriptor.
335         * modules/save-cwd (Depends-on): Depend on cloexec.
336
337 2010-03-29  Bruno Haible  <bruno@clisp.org>
338
339         Remove vestiges of fts-lgpl module.
340         * lib/fts_.h: Assume GNULIB_FTS is 1.
341         * lib/fts.c: Likewise.
342         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
343
344 2010-03-28  Bruno Haible  <bruno@clisp.org>
345
346         Fix definition of tests witness macro.
347         * gnulib-tool (func_import): Fix definition of witness macro.
348
349 2010-03-28  Bruno Haible  <bruno@clisp.org>
350
351         Fix ioctl's protoype on glibc systems.
352         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
353         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
354         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
355         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
356         signature. If not, arrange to replace the ioctl function.
357         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
358         REPLACE_IOCTL.
359         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
360         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
361         Reported by Ludovic Courtès <ludo@gnu.org>.
362
363 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
364
365         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
366         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
367         made it so grep -r --include=GLOB* ... did not work.
368
369 2010-03-26  Jim Meyering  <meyering@redhat.com>
370             Eric Blake  <eblake@redhat.com>
371
372         maint.mk: prohibit use of test's -o and -a operators
373         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
374
375 2010-03-28  Bruno Haible  <bruno@clisp.org>
376
377         Remove unused GNULIB_XYZ macro definitions.
378         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
379         invocation.
380
381 2010-03-28  Bruno Haible  <bruno@clisp.org>
382
383         Mark privileged tests modules.
384         * modules/idpriv-drop-tests (Status): New section.
385         * modules/idpriv-droptemp-tests (Status): New section.
386
387 2010-03-28  Bruno Haible  <bruno@clisp.org>
388
389         Split C++ tests into separate tests modules.
390         * modules/dirent-c++-tests: New file, extracted from
391         modules/dirent-tests.
392         * modules/dirent-tests: Depend on it.
393         * modules/fcntl-h-c++-tests: New file, extracted from
394         modules/fcntl-h-tests.
395         * modules/fcntl-h-tests: Depend on it.
396         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
397         * modules/glob-tests: Depend on it.
398         * modules/iconv-h-c++-tests: New file, extracted from
399         modules/iconv-h-tests.
400         * modules/iconv-h-tests: Depend on it.
401         * modules/langinfo-c++-tests: New file, extracted from
402         modules/langinfo-tests.
403         * modules/langinfo-tests: Depend on it.
404         * modules/locale-c++-tests: New file, extracted from
405         modules/locale-tests.
406         * modules/locale-tests: Depend on it.
407         * modules/math-c++-tests: New file, extracted from modules/math-tests.
408         * modules/math-tests: Depend on it.
409         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
410         * modules/pty-tests: Depend on it.
411         * modules/search-c++-tests: New file, extracted from
412         modules/search-tests.
413         * modules/search-tests: Depend on it.
414         * modules/signal-c++-tests: New file, extracted from
415         modules/signal-tests.
416         * modules/signal-tests: Depend on it.
417         * modules/spawn-c++-tests: New file, extracted from
418         modules/spawn-tests.
419         * modules/spawn-tests: Depend on it.
420         * modules/stdio-c++-tests: New file, extracted from
421         modules/stdio-tests.
422         * modules/stdio-tests: Depend on it.
423         * modules/stdlib-c++-tests: New file, extracted from
424         modules/stdlib-tests.
425         * modules/stdlib-tests: Depend on it.
426         * modules/string-c++-tests: New file, extracted from
427         modules/string-tests.
428         * modules/string-tests: Depend on it.
429         * modules/sys_ioctl-c++-tests: New file, extracted from
430         modules/sys_ioctl-tests.
431         * modules/sys_ioctl-tests: Depend on it.
432         * modules/sys_select-c++-tests: New file, extracted from
433         modules/sys_select-tests.
434         * modules/sys_select-tests: Depend on it.
435         * modules/sys_socket-c++-tests: New file, extracted from
436         modules/sys_socket-tests.
437         * modules/sys_socket-tests: Depend on it.
438         * modules/sys_stat-c++-tests: New file, extracted from
439         modules/sys_stat-tests.
440         * modules/sys_stat-tests: Depend on it.
441         * modules/sys_time-c++-tests: New file, extracted from
442         modules/sys_time-tests.
443         * modules/sys_time-tests: Depend on it.
444         * modules/time-c++-tests: New file, extracted from modules/time-tests.
445         * modules/time-tests: Depend on it.
446         * modules/unistd-c++-tests: New file, extracted from
447         modules/unistd-tests.
448         * modules/unistd-tests: Depend on it.
449         * modules/wchar-c++-tests: New file, extracted from
450         modules/wchar-tests.
451         * modules/wchar-tests: Depend on it.
452         * modules/wctype-c++-tests: New file, extracted from
453         modules/wctype-tests.
454         * modules/wctype-tests: Depend on it.
455         Reported by Simon Josefsson.
456
457 2010-03-28  Bruno Haible  <bruno@clisp.org>
458
459         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
460         * gnulib-tool (func_exists_module): New function, extracted from
461         func_verify_module.
462         (func_verify_module): Use it.
463         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
464         'foo' only if 'foo' exists.
465         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
466         module.
467
468 2010-03-28  Bruno Haible  <bruno@clisp.org>
469
470         gnulib-tool: Add support for special categories of tests.
471         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
472         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
473         (func_usage): Document them.
474         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
475         inc_unportable_tests, inc_all_tests): New variables.
476         (func_acceptable): Consider these variables.
477         (func_modules_transitive_closure): Make it work when the 'Status' field
478         consists of multiple words.
479         (func_import): Store and restore the values of inc_cxx_tests,
480         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
481         inc_all_tests in gnulib-comp.m4.
482         (func_create_testdir): Set inc_all_tests to true.
483         * doc/gnulib.texi (Extra tests modules): New section.
484         Suggested by Jim Meyering.
485
486 2010-03-28  Bruno Haible  <bruno@clisp.org>
487
488         ansi-c++-opt: Allow turning off the C++ build by default.
489         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
490         gl_CXX_CHOICE_DEFAULT_NO is defined.
491         Requested by Eric Blake.
492
493 2010-03-28  Bruno Haible  <bruno@clisp.org>
494
495         unistd: Avoid #define replacements in C++ mode.
496         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
497         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
498         setsockopt, shutdown, select): In C++, attach a warning to the function
499         if possible, rather than #defining the symbol to a dysfunctional alias.
500         Reported by John W. Eaton <jwe@gnu.org>.
501
502 2010-03-28  Bruno Haible  <bruno@clisp.org>
503
504         Fix link errors on mingw.
505         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
506         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
507         $(LIBSOCKET).
508         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
509         $(LIBSOCKET).
510
511 2010-03-28  Bruno Haible  <bruno@clisp.org>
512             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
513
514         lib-ignore: Determine different options for different compilers.
515         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
516         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
517         Add comments.
518         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
519         * NEWS: Mention the change.
520
521 2010-03-27  Bruno Haible  <bruno@clisp.org>
522
523         Remove unused GNULIB_XYZ macro definitions.
524         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
525         * modules/fseek (configure.ac): Likewise.
526         * modules/ioctl (configure.ac): Likewise.
527         * modules/open (configure.ac): Likewise.
528         * modules/stdlib-safer (configure.ac): Likewise.
529
530 2010-03-27  Bruno Haible  <bruno@clisp.org>
531
532         Add a remark about certain modules.
533         * modules/malloc (Comment): New section.
534         * modules/realloc (Comment): Likewise.
535         * modules/sigpipe (Comment): Likewise.
536
537 2010-03-27  Bruno Haible  <bruno@clisp.org>
538
539         Resolve conflict between the two kinds of module indicators.
540         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
541         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
542         * modules/canonicalize (configure.ac): Invoke
543         gl_MODULE_INDICATOR_FOR_TESTS.
544         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
545         GNULIB_XYZ.
546         * tests/test-dirent-c++.cc: Likewise.
547         * tests/test-dirent-safer.c: Likewise.
548         * tests/test-dup2.c: Likewise.
549         * tests/test-fchdir.c: Likewise.
550         * tests/test-fcntl-h-c++.cc: Likewise.
551         * tests/test-getopt.c: Likewise.
552         * tests/test-getopt.h: Likewise.
553         * tests/test-langinfo-c++.cc: Likewise.
554         * tests/test-locale-c++.cc: Likewise.
555         * tests/test-math-c++.cc: Likewise.
556         * tests/test-pty-c++.cc: Likewise.
557         * tests/test-search-c++.cc: Likewise.
558         * tests/test-signal-c++.cc: Likewise.
559         * tests/test-spawn-c++.cc: Likewise.
560         * tests/test-stdio-c++.cc: Likewise.
561         * tests/test-stdlib-c++.cc: Likewise.
562         * tests/test-string-c++.cc: Likewise.
563         * tests/test-sys_ioctl-c++.cc: Likewise.
564         * tests/test-sys_select-c++.cc: Likewise.
565         * tests/test-sys_socket-c++.cc: Likewise.
566         * tests/test-sys_stat-c++.cc: Likewise.
567         * tests/test-sys_time-c++.cc: Likewise.
568         * tests/test-time-c++.cc: Likewise.
569         * tests/test-unistd-c++.cc: Likewise.
570         * tests/test-wchar-c++.cc: Likewise.
571         * tests/uninorm/test-u8-nfc.c: Likewise.
572         * tests/uninorm/test-u8-nfd.c: Likewise.
573         * tests/uninorm/test-u8-nfkc.c: Likewise.
574         * tests/uninorm/test-u8-nfkd.c: Likewise.
575         * tests/uninorm/test-u16-nfc.c: Likewise.
576         * tests/uninorm/test-u16-nfd.c: Likewise.
577         * tests/uninorm/test-u16-nfkc.c: Likewise.
578         * tests/uninorm/test-u16-nfkd.c: Likewise.
579         * tests/uninorm/test-u32-nfc.c: Likewise.
580         * tests/uninorm/test-u32-nfc-big.c: Likewise.
581         * tests/uninorm/test-u32-nfd.c: Likewise.
582         * tests/uninorm/test-u32-nfd-big.c: Likewise.
583         * tests/uninorm/test-u32-nfkc.c: Likewise.
584         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
585         * tests/uninorm/test-u32-nfkd.c: Likewise.
586         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
587         * tests/uninorm/test-u32-normalize-big.c: Likewise.
588
589 2010-03-27  Bruno Haible  <bruno@clisp.org>
590
591         Distinguish two kinds of module indicators.
592         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
593         gl_MODULE_INDICATOR.
594         (gl_MODULE_INDICATOR): New macro.
595         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
596         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
597         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
598         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
599         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
600         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
601         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
602         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
603         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
604         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
605         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
606         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
608         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
609         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
610         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
611         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
612         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
613         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
614         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
615         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
616         * modules/cloexec (configure.ac): Likewise.
617         * modules/getopt-gnu (configure.ac): Likewise.
618         * modules/uninorm/u8-normalize (configure.ac): Likewise.
619         * modules/uninorm/u16-normalize (configure.ac): Likewise.
620         * modules/uninorm/u32-normalize (configure.ac): Likewise.
621         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
622
623 2010-03-27  Bruno Haible  <bruno@clisp.org>
624
625         New module description field 'Comment'.
626         * gnulib-tool: New option --extract-comment.
627         (func_usage): Document it.
628         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
629         (func_get_comment): New function.
630         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
631
632 2010-03-27  Bruno Haible  <bruno@clisp.org>
633
634         Addendum to 2010-02-07 commit.
635         * gnulib-tool (func_usage): Document --extract-applicability option.
636
637 2010-03-27  Bruno Haible  <bruno@clisp.org>
638
639         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
640         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
641         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
642         rather than link errors.
643
644 2010-03-27  Bruno Haible  <bruno@clisp.org>
645
646         Avoid side effects from tests-related modules on the compilation of lib.
647         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
648         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
649         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
650         parameter. Emit into AM_CPPFLAGS a definition of the designated C
651         macro.
652         (func_import): Define a witness macro. Assign it a value that depends
653         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
654         tests-related modules.
655         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
656         Reported by Jim Meyering.
657
658 2010-03-27  Bruno Haible  <bruno@clisp.org>
659
660         Factorize common .m4 code.
661         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
662         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
663         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
664         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
665         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
666         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
667         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
668         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
669         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
670         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
671         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
672         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
673         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
674         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
675         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
676         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
677         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
678         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
680         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
681         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
682         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
683         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
684         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
685         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
686         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
687         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
688         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
689         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
690         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
691         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
692         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
693
694 2010-03-27  Bruno Haible  <bruno@clisp.org>
695
696         Fix a compilation error on Cygwin with g++ >= 4.3.
697         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
698         if it is undefined or if we alias it to chmod.
699         (lstat): Don't warn about the use of this function if it is undefined
700         or if we alias it to stat.
701         Reported by Simon Josefsson.
702
703 2010-03-27  Bruno Haible  <bruno@clisp.org>
704
705         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
706         * modules/getlogin (configure.ac): Update.
707
708         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
709         * modules/getlogin_r (configure.ac): Update.
710
711         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
713         * modules/inet_ntop (configure.ac): Update.
714
715         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
716         * modules/inet_pton (configure.ac): Update.
717
718         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
719         * modules/mbslen (configure.ac): Update.
720
721         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
722         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
723         * modules/forkpty (configure.ac): Update.
724         * modules/openpty (configure.ac): Update.
725
726 2010-03-26  Simon Josefsson  <simon@josefsson.org>
727
728         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
729         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
730
731 2010-03-25  Eric Blake  <eblake@redhat.com>
732
733         maint: use pragma consistently across replacement headers
734         * lib/ctype.in.h (system_header): Hoist for consistent placement.
735         * lib/dirent.in.h (system_header): Likewise.
736         * lib/errno.in.h (system_header): Likewise.
737         * lib/float.in.h (system_header): Likewise.
738         * lib/getopt.in.h (system_header): Likewise.
739         * lib/iconv.in.h (system_header): Likewise.
740         * lib/inttypes.in.h (system_header): Likewise.
741         * lib/langinfo.in.h (system_header): Likewise.
742         * lib/locale.in.h (system_header): Likewise.
743         * lib/math.in.h (system_header): Likewise.
744         * lib/netdb.in.h (system_header): Likewise.
745         * lib/netinet_in.in.h (system_header): Likewise.
746         * lib/pty.in.h (system_header): Likewise.
747         * lib/sched.in.h (system_header): Likewise.
748         * lib/se-selinux.in.h (system_header): Likewise.
749         * lib/search.in.h (system_header): Likewise.
750         * lib/spawn.in.h (system_header): Likewise.
751         * lib/stdarg.in.h (system_header): Likewise.
752         * lib/stdint.in.h (system_header): Likewise.
753         * lib/string.in.h (system_header): Likewise.
754         * lib/strings.in.h (system_header): Likewise.
755         * lib/sys_file.in.h (system_header): Likewise.
756         * lib/sys_ioctl.in.h (system_header): Likewise.
757         * lib/sys_socket.in.h (system_header): Likewise.
758         * lib/sys_times.in.h (system_header): Likewise.
759         * lib/sys_utsname.in.h (system_header): Likewise.
760         * lib/sys_wait.in.h (system_header): Likewise.
761         * lib/sysexits.in.h (system_header): Likewise.
762         * lib/unistd.in.h (system_header): Likewise.
763         * lib/wctype.in.h (system_header): Likewise.
764
765         arpa/inet: fix mingw compilation warning
766         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
767         Reported by Matthew Bolte.
768
769 2010-03-25  Bruno Haible  <bruno@clisp.org>
770
771         Avoid collision between gnulib wrapper and libintl wrapper.
772         * lib/printf.c (printf): Don't define if a printf wrapper is already
773         defined in intl/printf.c.
774         Reported by Michel Boaventura <michel@michelboaventura.com>.
775
776 2010-03-25  Bruno Haible  <bruno@clisp.org>
777
778         Use ANSI C.
779         * lib/readutmp.h (getutent): Provide ANSI C prototype.
780
781 2010-03-25  Bruno Haible  <bruno@clisp.org>
782
783         Minor formatting changes.
784         * lib/acosl.c: Insert space before function argument list.
785         * lib/argz.c: Likewise.
786         * lib/asinl.c: Likewise.
787         * lib/expl.c: Likewise.
788         * lib/gen-uni-tables.c: Likewise.
789         * lib/gettext.h: Likewise.
790         * lib/glthread/lock.h: Likewise.
791         * lib/tanl.c: Likewise.
792         * lib/uniname/uniname.c: Likewise.
793         * tests/test-idpriv-drop.c: Likewise.
794         * tests/test-idpriv-droptemp.c: Likewise.
795         * tests/test-lock.c: Likewise.
796         * tests/test-tls.c: Likewise.
797         * lib/argp-help.c: Insert space before function-like macro argument
798         list.
799         * lib/memcmp.c: Likewise.
800         * tests/test-base64.c: Likewise.
801         * lib/localename.c: Insert space before sizeof's argument list.
802         * lib/safe-alloc.h: Likewise.
803         * lib/file-set.h: Insert space before macro argument list.
804         * tests/test-argp.c: Likewise.
805         * lib/argp-namefrob.h: Insert space before function parameter list.
806         * lib/getaddrinfo.c: Likewise.
807         * lib/netdb.in.h: Likewise.
808         * lib/parse-duration.h: Likewise.
809         * lib/parse-duration.c: Likewise.
810         * lib/poll.c: Likewise.
811         * lib/select.c: Likewise.
812         * lib/trim.h: Likewise.
813         * tests/test-usleep.c: Likewise.
814         * lib/ldexpl.c: Insert space before function parameter list and before
815         function argument list.
816         * lib/logl.c: Likewise.
817         * lib/sqrtl.c: Likewise.
818         * lib/trim.c: Likewise.
819         * lib/cosl.c: Use GNU style indentation. Insert space before function
820         argument list.
821         * lib/sinl.c: Likewise.
822         * lib/tsearch.c: Insert space after 'for'.
823         Reported by Jim Meyering.
824
825 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
826
827         * maint.mk (sc_Wundef_boolean): Check for the presence of the
828         config header before grepping, as it's not present before
829         autoreconf/configure are run.  Reported by Simon Josefsson.
830
831 2010-03-23  Bruno Haible  <bruno@clisp.org>
832
833         pt_chown: Make it work with automake < 1.11.
834         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
835         Reported by Simon Josefsson.
836
837 2010-03-23  Bruno Haible  <bruno@clisp.org>
838
839         pt_chown: Don't depend on GPLed modules.
840         * lib/pt_chown.c: Don't include idpriv.h.
841         (main): Don't drop privileges.
842         * modules/pt_chown (Depends-on): Remove idpriv-drop.
843         Reported by Simon Josefsson.
844
845 2010-03-24  Simon Josefsson  <simon@josefsson.org>
846
847         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
848         suggestions from karl@freefriends.org (Karl Berry).
849
850 2010-03-22  Eric Blake  <eblake@redhat.com>
851
852         gethostname: further tweaks
853         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
854         are overriding gethostname.
855         Suggested by Bruno Haible.
856
857 2010-03-21  Bruno Haible  <bruno@clisp.org>
858
859         Fix comments.
860         * lib/forkpty.c (rpl_forkpty): Fix comment.
861         * lib/openpty.c (rpl_openpty): Likewise.
862         Reported by Eric Blake.
863
864 2010-03-22  Eric Blake  <eblake@redhat.com>
865
866         gethostname: fix build on mingw
867         * lib/unistd.in.h (includes): Work around fact that mingw
868         <winsock2.h> re-includes <unistd.h>, by avoiding any
869         redeclarations if we are being included by <winsock2.h>.
870         Reported by Matthias Bolte.
871
872 2010-03-21  Bruno Haible  <bruno@clisp.org>
873
874         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
875         * lib/forkpty.c (forkpty): New replacement function, from glibc with
876         modifications.
877         * lib/pty.in.h (forkpty): Update declaration. Add comments.
878         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
879         provide the replacement.
880         * modules/forkpty (Depends-on): Add openpty, login_tty.
881         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
882         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
883         * doc/glibc-functions/forkpty.texi: More supported platforms.
884         * config/srclist.txt: Add forkpty.c (commented).
885
886 2010-03-21  Bruno Haible  <bruno@clisp.org>
887
888         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
889         (Makefile.am): Verify that PTY_LIB is defined.
890
891         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
892
893 2010-03-21  Bruno Haible  <bruno@clisp.org>
894
895         Tests for module 'login_tty'.
896         * modules/login_tty-tests: New file.
897         * tests/test-login_tty.c: New file.
898
899         New module 'login_tty'.
900         * lib/login_tty.c: New file.
901         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
902         * modules/login_tty: New file.
903         * doc/glibc-functions/login_tty.texi: Mention the new module.
904
905 2010-03-21  Bruno Haible  <bruno@clisp.org>
906
907         login_tty: Documentation.
908         * doc/glibc-functions/login_tty.texi: New file.
909         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
910
911 2010-03-21  Bruno Haible  <bruno@clisp.org>
912
913         pty: Consistent macro naming.
914         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
915         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
916         * modules/pty (configure.ac): Update.
917
918 2010-03-21  Bruno Haible  <bruno@clisp.org>
919
920         Tests for openpty: Make stricter.
921         * tests/test-openpty.c (main): Add test of canonical processing and
922         erase.
923         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
924
925         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
926         * lib/openpty.c (openpty): New replacement function.
927         * lib/pty.in.h: Include <termios.h>.
928         (openpty): Update declaration. Add comments.
929         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
930         is not declared, arrange to provide the replacement. Check for _getpty
931         and posix_openpt.
932         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
933         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
934         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
935         * modules/pty-tests (test_pty_c___LDADD): New variable.
936         * doc/glibc-functions/openpty.texi: More supported platforms.
937
938 2010-03-21  Bruno Haible  <bruno@clisp.org>
939
940         setenv: Tweaks.
941         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
942         the test program.
943         * doc/posix-functions/setenv.texi: Update platforms list.
944
945 2010-03-21  Bruno Haible  <bruno@clisp.org>
946
947         New module 'unlockpt'.
948         * lib/unlockpt.c: New file, from glibc with modifications.
949         * m4/unlockpt.m4: New file.
950         * modules/unlockpt: New file.
951         * lib/stdlib.in.h (unlockpt): New declaration.
952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
953         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
954         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
955         HAVE_UNLOCKPT.
956         * doc/posix-functions/unlockpt.texi: Mention the new module.
957         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
958         * config/srclist.txt: Add unlockpt.c (commented).
959
960 2010-03-21  Jim Meyering  <meyering@redhat.com>
961
962         maint.mk: prohibit inclusion of "intprops.h" without use
963         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
964
965 2010-03-21  Bruno Haible  <bruno@clisp.org>
966
967         New module 'grantpt'.
968         * lib/grantpt.c: New file, from glibc with modifications.
969         * m4/grantpt.m4: New file.
970         * modules/grantpt: New file.
971         * lib/stdlib.in.h (grantpt): New declaration.
972         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
973         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
974         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
975         HAVE_GRANTPT.
976         * doc/posix-functions/grantpt.texi: Mention the new module.
977         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
978         * config/srclist.txt: Add grantpt.c (commented).
979
980 2010-03-21  Bruno Haible  <bruno@clisp.org>
981
982         New module 'pt_chown'.
983         * lib/pt_chown.c: New file, from glibc with modifications.
984         * lib/pty-private.h: New file, from glibc with modifications.
985         * modules/pt_chown: New file.
986         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
987
988 2010-03-21  Bruno Haible  <bruno@clisp.org>
989
990         Tests for module 'ptsname'.
991         * modules/ptsname-tests: New file.
992         * tests/test-ptsname.c: New file.
993
994         New module 'ptsname'.
995         * lib/ptsname.c: New file, from glibc with modifications.
996         * m4/ptsname.m4: New file.
997         * modules/ptsname: New file.
998         * lib/stdlib.in.h (ptsname): New declaration.
999         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1000         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1001         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1002         HAVE_PTSNAME.
1003         * doc/posix-functions/ptsname.texi: Mention the new module.
1004         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1005         * config/srclist.txt: Add ptsname.c (commented).
1006
1007 2010-03-21  Bruno Haible  <bruno@clisp.org>
1008
1009         Tests for module 'ttyname_r'.
1010         * modules/ttyname_r-tests: New file.
1011         * tests/test-ttyname_r.c: New file.
1012
1013         New module 'ttyname_r'.
1014         * lib/ttyname_r.c: New file.
1015         * m4/ttyname_r.m4: New file.
1016         * modules/ttyname_r: New file.
1017         * lib/unistd.in.h (ttyname_r): New declaration.
1018         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1019         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1020         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1021         HAVE_TTYNAME_R.
1022         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1023         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1024
1025 2010-03-20  Bruno Haible  <bruno@clisp.org>
1026
1027         signal: Undefine macro definitions in C++ mode.
1028         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1029         sigfillset): Undefine macro definitions from the system header in C++
1030         mode.
1031         Reported by John W. Eaton <jwe@gnu.org>.
1032
1033 2010-03-20  Bruno Haible  <bruno@clisp.org>
1034
1035         Ensure no #include statements inside extern "C" { ... }.
1036         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1037         contain #include statements.
1038         * lib/time.in.h: Likewise.
1039
1040 2010-03-20  Bruno Haible  <bruno@clisp.org>
1041
1042         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1043         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1044         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1045         Reported by John W. Eaton <jwe@gnu.org>.
1046
1047 2010-03-20  Bruno Haible  <bruno@clisp.org>
1048
1049         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1050         Reported by Jim Meyering.
1051
1052 2010-03-20  Bruno Haible  <bruno@clisp.org>
1053
1054         pipe: Set errno upon failure.
1055         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1056         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1057         errno value in error message.
1058
1059 2010-03-20  Bruno Haible  <bruno@clisp.org>
1060             Jim Meyering  <meyering@redhat.com>
1061
1062         lchown: Avoid "unused variable" warning.
1063         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1064
1065 2010-03-20  Bruno Haible  <bruno@clisp.org>
1066
1067         Work around unlink() bug on MacOS X 10.5.6.
1068         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1069         attempting to unlink a parent directory.
1070         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1071         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1072         activate for the replacement function.
1073         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1074
1075 2010-03-20  Bruno Haible  <bruno@clisp.org>
1076
1077         Fix link errors on Solaris 8.
1078         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1079         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1080
1081 2010-03-19  Jim Meyering  <meyering@redhat.com>
1082
1083         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1084         The _LIBC implementation of build_range_exp correctly honors the
1085         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1086         However, the non-_LIBC implementation would ignore that syntax-bit
1087         flag and return REG_ERANGE unconditionally.
1088         This change makes it honor that flag.
1089         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1090         Make two pointer parameters "const".
1091         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1092         (parse_bracket_exp): Update caller.
1093
1094         regex.m4: correct the reversed range endpoint ([b-a]) test
1095         * m4/regex.m4: When requiring that [b-a] evoke failure,
1096         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1097         test pass once again for x86-based systems.
1098
1099 2010-03-19  Bruno Haible  <bruno@clisp.org>
1100
1101         scandir: Fix link error on Solaris 8.
1102         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1103         macros.
1104
1105 2010-03-19  Bruno Haible  <bruno@clisp.org>
1106
1107         getusershell: Fix documentation.
1108         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1109         module.
1110         * doc/glibc-functions/setusershell.texi: Likewise.
1111
1112         getusershell: Provide declaration, missing on Solaris 9.
1113         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1114         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1115         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1116         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1118         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1119         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1120         HAVE_GETUSERSHELL.
1121         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1122
1123 2010-03-19  Bruno Haible  <bruno@clisp.org>
1124
1125         wctype: Provide iswblank function.
1126         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1127         exists and is fine.
1128         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1129         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1130         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1131         * doc/posix-functions/iswblank.texi: Update.
1132
1133 2010-03-19  Bruno Haible  <bruno@clisp.org>
1134
1135         Tests of module 'pty' in C++ mode.
1136         * modules/pty-tests: New file.
1137         * tests/test-pty-c++.cc: New file.
1138         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1139
1140 2010-03-19  Eric Blake  <eblake@redhat.com>
1141
1142         logb: fix documentation
1143         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1144         1.5 declaration bug.
1145
1146         forkpty, openpty: prefer glibc's const-safe prototype
1147         * lib/forkpty.c (rpl_forkpty): New file.
1148         * lib/openpty.c (rpl_openpty): Likewise.
1149         * modules/forkpty (Files): Distribute it.
1150         * modules/openpty (Files): Likewise.
1151         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1152         check...
1153         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1154         replacement for for non-const BSD signature.
1155         * modules/pty (Makefile.am): Substitute witnesses.
1156         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1157         * tests/test-forkpty.c: Update signature check.
1158         * tests/test-openpty.c: Likewise.
1159         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1160         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1161
1162         forkpty, openpty: split functions into new modules
1163         * modules/pty (Makefile.am): Substitute new witnesses.
1164         (Libraries): Move library detection...
1165         * modules/forkpty: ...into new module.
1166         * modules/openpty: Another new module.
1167         * modules/pty-tests: Rename and split...
1168         * modules/forkpty-tests: ...to this...
1169         * modules/openpty-tests: ...and this.
1170         * tests/test-pty.c: Rename and split...
1171         * tests/test-forkpty.c: ...to this...
1172         * tests/test-openpty.c: ...and this.
1173         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1174         (gl_PTY): Split library searching...
1175         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1176         (gl_FORKPTY, gl_OPENPTY): New macros.
1177         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1178         * NEWS: Mention the split.
1179         * MODULES.html.sh (Misc): Document the modules.
1180         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1181         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1182
1183         pty: improve replacement header
1184         * lib/pty.in.h: New file.
1185         * modules/pty (Files): Ship it.
1186         (Makefile.am): Always build replacement.
1187         * m4/pty.m4: Rename...
1188         * m4/pty_h.m4: ...to this.
1189         (gl_PTY): Modernize setting of witness macros; update check of
1190         forkpty to take proper advantage of cache.
1191         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1192
1193         getopt: avoid compiler warning
1194         * lib/getopt.c (attribute_hidden): Remove unused macro.
1195
1196 2010-03-18  Bruno Haible  <bruno@clisp.org>
1197
1198         Fix link errors on Solaris 8.
1199         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1200         * modules/search-tests (test_search_c___LDADD): Likewise.
1201         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1202         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1203         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1204         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1205         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1206         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1207         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1208
1209 2010-03-18  Bruno Haible  <bruno@clisp.org>
1210
1211         Fix bug introduced on 2010-03-14.
1212         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1213         (gl_SPAWN_H): Require it.
1214         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1215         Reported by Simon Josefsson.
1216
1217 2010-03-18  Bruno Haible  <bruno@clisp.org>
1218
1219         Fix typo introduced on 2009-12-31.
1220         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1221         posix_spawn_file_actions_adddup2.
1222
1223 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1224         and Eric Blake  <eblake@redhat.com>
1225
1226         test-vc-list-files-git: make more robust
1227         * tests/test-vc-list-files-git.sh: Unset problematic environment
1228         variables.  Chain commands together.
1229
1230 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1231
1232         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1233         `AC_CHECK_DECL' invocation.
1234
1235 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1236
1237         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1238         appears before executable statements. Suggested by Petr Sumbera
1239         <Petr.Sumbera@Sun.COM>.
1240
1241 2010-03-14  Bruno Haible  <bruno@clisp.org>
1242
1243         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1244         portability problems. Instead use a simpler test.
1245         (main): Check that invalid arguments are rejected only on Linux.
1246
1247 2010-03-14  Bruno Haible  <bruno@clisp.org>
1248
1249         Fix bug introduced on 2009-12-31.
1250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1251         gl_PREREQ_SYS_H_WINSOCK2 always.
1252         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1253         SYS_SOCKET_H variable.
1254         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1255         Update comments.
1256         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1257         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1258         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1259         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1260         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1261
1262 2010-03-14  Bruno Haible  <bruno@clisp.org>
1263
1264         Fix values returned by sinl, cosl.
1265         * lib/trigl.h: Add specification comments.
1266         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1267         that combines the values from the precomputed table with the values of
1268         the Chebyshev polynomials.
1269
1270 2010-03-14  Bruno Haible  <bruno@clisp.org>
1271
1272         Fix compilation error when modules 'posix_spawn[p]' are not used.
1273         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1275
1276 2010-03-14  Bruno Haible  <bruno@clisp.org>
1277
1278         Fix compilation error on mingw when module 'time_r' is not used.
1279         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1280         is 1.
1281         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1282         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1283         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1284         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1285
1286 2010-03-14  Bruno Haible  <bruno@clisp.org>
1287
1288         Fix compilation error with Sun C.
1289         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1290         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1291         instead of GCC specific ULONG_LONG_MAX.
1292         * lib/xstrtoll.c: Likewise.
1293         * lib/xstrtoull.c: Likewise.
1294
1295 2010-03-13  Bruno Haible  <bruno@clisp.org>
1296
1297         Allow the user to disable C++ code and tests.
1298         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1299         (gl_PROG_ANSI_CXX): Require it.
1300
1301 2010-03-13  Bruno Haible  <bruno@clisp.org>
1302
1303         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1304         cases.
1305
1306 2010-03-13  Bruno Haible  <bruno@clisp.org>
1307
1308         Test that gnulib does not break the standard C++ headers.
1309         * tests/test-locale-c++2.cc: New file.
1310         * modules/locale-tests (Files): Add it.
1311         (Makefile.am): Compile it for test-locale-c++.
1312         * tests/test-math-c++2.cc: New file.
1313         * modules/math-tests (Files): Add it.
1314         (Makefile.am): Compile it for test-math-c++.
1315         * tests/test-signal-c++2.cc: New file.
1316         * modules/signal-tests (Files): Add it.
1317         (Makefile.am): Compile it for test-signal-c++.
1318         * tests/test-stdio-c++2.cc: New file.
1319         * modules/stdio-tests (Files): Add it.
1320         (Makefile.am): Compile it for test-stdio-c++.
1321         * tests/test-stdlib-c++2.cc: New file.
1322         * modules/stdlib-tests (Files): Add it.
1323         (Makefile.am): Compile it for test-stdlib-c++.
1324         * tests/test-string-c++2.cc: New file.
1325         * modules/string-tests (Files): Add it.
1326         (Makefile.am): Compile it for test-string-c++.
1327         * tests/test-time-c++2.cc: New file.
1328         * modules/time-tests (Files): Add it.
1329         (Makefile.am): Compile it for test-time-c++.
1330         Reported by John W. Eaton <jwe@gnu.org>.
1331
1332 2010-03-13  Bruno Haible  <bruno@clisp.org>
1333
1334         * gnulib-tool (func_usage): Clarify which options are available for
1335         --create-testdir and --create-megatestdir.
1336
1337 2010-03-13  Bruno Haible  <bruno@clisp.org>
1338
1339         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1340         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1341         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1342         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1343         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1344         when appropriate.
1345         Reported by Jim Meyering.
1346
1347 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1348
1349         * gnulib-tool (func_import): Explain origin of code.
1350
1351 2010-03-12  Bruno Haible  <bruno@clisp.org>
1352
1353         Fix problem with automake's definition of CXXLINK.
1354         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1355         Reported by Simon Josefsson and Ludovic Courtès.
1356
1357 2010-03-12  Bruno Haible  <bruno@clisp.org>
1358
1359         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1360         stable releases.
1361
1362 2010-03-11  Bruno Haible  <bruno@clisp.org>
1363
1364         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1365         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1366         whether the system provides one variant or multiple variants of the
1367         function.
1368         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1369         C++ compilers.
1370         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1371         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1372         Reported by Jim Meyering.
1373
1374 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1375
1376         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1377
1378 2010-03-08  Bruno Haible  <bruno@clisp.org>
1379
1380         gnulib-tool: Add support for --libtool in --create-testdir.
1381         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1382         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1383
1384 2010-03-08  Eric Blake  <eblake@redhat.com>
1385
1386         gnulib-tool.texi: mention possibility of git submodule
1387         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1388         submodules.
1389         * doc/.gitignore: Ignore another generated file.
1390
1391 2010-03-08  Karl Berry  <karl@gnu.org>
1392
1393         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1394         of committing gnulib files while skipping others.
1395
1396 2010-03-07  Bruno Haible  <bruno@clisp.org>
1397
1398         Tests of module 'wctype' in C++ mode.
1399         * tests/test-wctype-c++.cc: New file.
1400         * modules/wctype-tests (Files): Add it and tests/signature.h.
1401         (Depends-on): Add ansi-c++-opt.
1402         (Makefile.am): Arrange to compile and run test-wctype-c++.
1403
1404         Tests of module 'wchar' in C++ mode.
1405         * tests/test-wchar-c++.cc: New file.
1406         * modules/wchar-tests (Files): Add it and tests/signature.h.
1407         (Depends-on): Add ansi-c++-opt.
1408         (Makefile.am): Arrange to compile and run test-wchar-c++.
1409         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1410         gl_MODULE_INDICATOR.
1411
1412         Tests of module 'unistd' in C++ mode.
1413         * tests/test-unistd-c++.cc: New file.
1414         * modules/unistd-tests (Files): Add it and tests/signature.h.
1415         (Depends-on): Add ansi-c++-opt.
1416         (Makefile.am): Arrange to compile and run test-unistd-c++.
1417         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1418         gl_MODULE_INDICATOR.
1419
1420         Tests of module 'time' in C++ mode.
1421         * tests/test-time-c++.cc: New file.
1422         * modules/time-tests (Files): Add it and tests/signature.h.
1423         (Depends-on): Add ansi-c++-opt.
1424         (Makefile.am): Arrange to compile and run test-time-c++.
1425         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1426
1427         Tests of module 'sys_time' in C++ mode.
1428         * tests/test-sys_time-c++.cc: New file.
1429         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1430         (Depends-on): Add ansi-c++-opt.
1431         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1432         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1433         gl_MODULE_INDICATOR.
1434
1435         Tests of module 'sys_stat' in C++ mode.
1436         * tests/test-sys_stat-c++.cc: New file.
1437         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1438         (Depends-on): Add ansi-c++-opt.
1439         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1440         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1441         gl_MODULE_INDICATOR.
1442
1443         Tests of module 'sys_socket' in C++ mode.
1444         * tests/test-sys_socket-c++.cc: New file.
1445         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1446         (Depends-on): Add ansi-c++-opt.
1447         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1448         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1449         gl_MODULE_INDICATOR.
1450
1451         Tests of module 'sys_select' in C++ mode.
1452         * tests/test-sys_select-c++.cc: New file.
1453         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1454         (Depends-on): Add ansi-c++-opt.
1455         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1456         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1457         gl_MODULE_INDICATOR.
1458
1459         Tests of module 'sys_ioctl' in C++ mode.
1460         * tests/test-sys_ioctl-c++.cc: New file.
1461         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1462         (Depends-on): Add ansi-c++-opt.
1463         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1464         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1465         gl_MODULE_INDICATOR.
1466
1467         Tests of module 'string' in C++ mode.
1468         * tests/test-string-c++.cc: New file.
1469         * modules/string-tests (Files): Add it and tests/signature.h.
1470         (Depends-on): Add ansi-c++-opt.
1471         (Makefile.am): Arrange to compile and run test-string-c++.
1472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1473         gl_MODULE_INDICATOR.
1474
1475         Tests of module 'stdlib' in C++ mode.
1476         * tests/test-stdlib-c++.cc: New file.
1477         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1478         (Depends-on): Add ansi-c++-opt.
1479         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1480         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1481         gl_MODULE_INDICATOR.
1482
1483         Tests of module 'stdio' in C++ mode.
1484         * tests/test-stdio-c++.cc: New file.
1485         * modules/stdio-tests (Files): Add it and tests/signature.h.
1486         (Depends-on): Add ansi-c++-opt.
1487         (Makefile.am): Arrange to compile and run test-stdio-c++.
1488         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1489         gl_MODULE_INDICATOR.
1490
1491         Tests of module 'spawn' in C++ mode.
1492         * tests/test-spawn-c++.cc: New file.
1493         * modules/spawn-tests (Files): Add it and tests/signature.h.
1494         (Depends-on): Add ansi-c++-opt.
1495         (Makefile.am): Arrange to compile and run test-spawn-c++.
1496         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1497         gl_MODULE_INDICATOR.
1498
1499         Tests of module 'signal' in C++ mode.
1500         * tests/test-signal-c++.cc: New file.
1501         * modules/signal-tests (Files): Add it and tests/signature.h.
1502         (Depends-on): Add ansi-c++-opt.
1503         (Makefile.am): Arrange to compile and run test-signal-c++.
1504         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1505         gl_MODULE_INDICATOR.
1506
1507         Tests of module 'search' in C++ mode.
1508         * tests/test-search-c++.cc: New file.
1509         * modules/search-tests (Files): Add it and tests/signature.h.
1510         (Depends-on): Add ansi-c++-opt.
1511         (Makefile.am): Arrange to compile and run test-search-c++.
1512         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1513         gl_MODULE_INDICATOR.
1514
1515         Tests of module 'math' in C++ mode.
1516         * tests/test-math-c++.cc: New file.
1517         * modules/math-tests (Files): Add it and tests/signature.h.
1518         (Depends-on): Add ansi-c++-opt.
1519         (Makefile.am): Arrange to compile and run test-math-c++.
1520         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1521
1522         Tests of module 'locale' in C++ mode.
1523         * tests/test-locale-c++.cc: New file.
1524         * modules/locale-tests (Files): Add it and tests/signature.h.
1525         (Depends-on): Add ansi-c++-opt.
1526         (Makefile.am): Arrange to compile and run test-locale-c++.
1527         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1528         gl_MODULE_INDICATOR.
1529
1530         Tests of module 'langinfo' in C++ mode.
1531         * tests/test-langinfo-c++.cc: New file.
1532         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1533         (Depends-on): Add ansi-c++-opt.
1534         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1535         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1536         gl_MODULE_INDICATOR.
1537
1538         Tests of module 'iconv-h' in C++ mode.
1539         * tests/test-iconv-h-c++.cc: New file.
1540         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1541         (Depends-on): Add ansi-c++-opt.
1542         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1543
1544         Tests of module 'glob' in C++ mode.
1545         * tests/test-glob-c++.cc: New file.
1546         * modules/glob-tests (Files): Add it.
1547         (Depends-on): Add ansi-c++-opt.
1548         (Makefile.am): Arrange to compile and run test-glob-c++.
1549
1550         Tests of module 'fcntl-h' in C++ mode.
1551         * tests/test-fcntl-h-c++.cc: New file.
1552         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1553         (Depends-on): Add ansi-c++-opt.
1554         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1555         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1556         gl_MODULE_INDICATOR.
1557
1558         Tests of module 'dirent' in C++ mode.
1559         * tests/test-dirent-c++.cc: New file.
1560         * modules/dirent-tests (Files): Add it and tests/signature.h.
1561         (Depends-on): Add ansi-c++-opt.
1562         (Makefile.am): Arrange to compile and run test-dirent-c++.
1563         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1564         gl_MODULE_INDICATOR.
1565
1566         New module 'ansi-c++-opt'.
1567         * modules/ansi-c++-opt: New file.
1568         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1569
1570         Document C++ namespace mode.
1571         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1572
1573         wctype: Avoid #define replacements in C++ mode.
1574         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1575         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1576         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1577         In C++, define a namespaced alias symbol.
1578         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1579         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1580         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1581         rule.
1582
1583         wchar: Avoid #define replacements in C++ mode.
1584         * lib/wchar.in.h: Include c++defs.h.
1585         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1586         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1587         symbol.
1588         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1589         * modules/wchar (Depends-on): Add c++defs.
1590         (Makefile.am): Update wchar.h rule.
1591
1592         unistd: Avoid #define replacements in C++ mode.
1593         * lib/unistd.in.h: Include c++defs.h.
1594         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1595         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1596         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1597         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1598         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1599         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1600         symbol.
1601         (environ): Update.
1602         * modules/unistd (Depends-on): Add c++defs.
1603         (Makefile.am): Update unistd.h rule.
1604
1605         time: Avoid #define replacements in C++ mode.
1606         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1607         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1608         define a namespaced alias symbol.
1609         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1610         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1611         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1612         * modules/time (Depends-on): Add c++defs, warn-on-use.
1613         (Makefile.am): Update time.h rule.
1614         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1615         * modules/nanosleep (configure.ac): Likewise.
1616         * modules/strptime (configure.ac): Likewise.
1617         * modules/timegm (configure.ac): Likewise.
1618
1619         sys_time: Avoid #define replacements in C++ mode.
1620         * lib/sys_time.in.h: Include c++defs.h.
1621         (gettimeofday): In C++, define a namespaced alias symbol.
1622         * modules/sys_time (Depends-on): Add c++defs.
1623         (Makefile.am): Update sys/time.h rule.
1624
1625         sys_stat: Avoid #define replacements in C++ mode.
1626         * lib/sys_stat.in.h: Include c++defs.h.
1627         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1628         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1629         namespaced alias symbol.
1630         In C++, define a namespaced alias symbol.
1631         * modules/sys_stat (Depends-on): Add c++defs.
1632         (Makefile.am): Update sys/stat.h rule.
1633
1634         sys_socket: Avoid #define replacements in C++ mode.
1635         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1636         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1637         definitions also when the system has a <sys/socket.h>.
1638         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1639         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1640         In C++, define a namespaced alias symbol.
1641         * modules/sys_socket (Depends-on): Add c++defs.
1642         (Makefile.am): Update sys/socket.h rule.
1643
1644         sys_select: Avoid #define replacements in C++ mode.
1645         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1646         definitions also when the system has a <sys/select.h>.
1647         (select): In C++, define a namespaced alias symbol.
1648         * modules/sys_select (Depends-on): Add c++defs.
1649         (Makefile.am): Update sys/select.h rule.
1650
1651         sys_ioctl: Avoid #define replacements in C++ mode.
1652         * lib/sys_ioctl.in.h: Include c++defs.h.
1653         (ioctl): In C++, define a namespaced alias symbol.
1654         * modules/sys_ioctl (Depends-on): Add c++defs.
1655         (Makefile.am): Update sys/ioctl.h rule.
1656
1657         string: Avoid #define replacements in C++ mode.
1658         * lib/string.in.h: Include c++defs.h.
1659         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1660         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1661         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1662         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1663         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1664         * modules/string (Depends-on): Add c++defs.
1665         (Makefile.am): Update string.h rule.
1666
1667         stdlib: Avoid #define replacements in C++ mode.
1668         * lib/stdlib.in.h: Include c++defs.h.
1669         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1670         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1671         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1672         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1673         symbol.
1674         * modules/stdlib (Depends-on): Add c++defs.
1675         (Makefile.am): Update stdlib.h rule.
1676
1677         stdio: Avoid #define replacements in C++ mode.
1678         * lib/stdio.in.h: Include c++defs.h.
1679         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1680         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1681         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1682         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1683         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1684         namespaced alias symbol.
1685         * modules/stdio (Depends-on): Add c++defs.
1686         (Makefile.am): Update stdio.h rule.
1687
1688         spawn: Avoid #define replacements in C++ mode.
1689         * lib/spawn.in.h: Include c++defs.h.
1690         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1691         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1692         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1693         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1694         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1695         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1696         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1697         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1698         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1699         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1700         In C++, define a namespaced alias symbol.
1701         * modules/spawn (Depends-on): Add c++defs.
1702         (Makefile.am): Update spawn.h rule.
1703
1704         signal: Avoid #define replacements in C++ mode.
1705         * lib/signal.in.h: Include c++defs.h.
1706         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1707         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1708         namespaced alias symbol.
1709         * modules/signal (Depends-on): Add c++defs.
1710         (Makefile.am): Update signal.h rule.
1711
1712         search: Avoid #define replacements in C++ mode.
1713         * lib/search.in.h: Include c++defs.h.
1714         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1715         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1716         symbol.
1717         * modules/search (Depends-on): Add c++defs.
1718         (Makefile.am): Update search.h rule.
1719
1720         math: Avoid #define replacements in C++ mode.
1721         * lib/math.in.h: Include c++defs.h.
1722         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1723         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1724         trunc, truncl): In C++, define a namespaced alias symbol.
1725         * modules/math (Depends-on): Add c++defs.
1726         (Makefile.am): Update math.h rule.
1727
1728         locale: Avoid #define replacements in C++ mode.
1729         * lib/locale.in.h: Include c++defs.h.
1730         (duplocale): In C++, define a namespaced alias symbol.
1731         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1732         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1733         * modules/locale (Depends-on): Add c++defs.
1734         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1735
1736         langinfo: Avoid #define replacements in C++ mode.
1737         * lib/langinfo.in.h: Include c++defs.h.
1738         (nl_langinfo): In C++, define a namespaced alias symbol.
1739         * modules/langinfo (Depends-on): Add c++defs.
1740         (Makefile.am): Update langinfo.h rule.
1741
1742         iconv-h: Avoid #define replacements in C++ mode.
1743         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1744         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1745         symbol.
1746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1747         whenever iconv is present.
1748         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1749         (Makefile.am): Update iconv.h rule.
1750
1751         glob: Avoid #define replacements in C++ mode.
1752         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1753         (_gl_glob_errfunc_fn): New type.
1754         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1755         symbol.
1756         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1757         (Makefile.am): Update glob.h rule.
1758
1759         fcntl-h: Avoid #define replacements in C++ mode.
1760         * lib/fcntl.in.h: Include c++defs.h.
1761         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1762         * modules/fcntl-h (Depends-on): Add c++defs.
1763         (Makefile.am): Update fcntl.h rule.
1764
1765         dirent: Avoid #define replacements in C++ mode.
1766         * lib/dirent.in.h: Include c++defs.h.
1767         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1768         namespaced alias symbol.
1769         (dirfd): Update declaration.
1770         * modules/dirent (Depends-on): Add c++defs.
1771         (Makefile.am): Update dirent.h rule.
1772
1773         ctype: Make it usable in C++ code.
1774         * lib/ctype.in.h: Include c++defs.h.
1775         (isblank): Declare as extern "C".
1776         * modules/ctype (Depends-on): Add c++defs.
1777         (Makefile.am): Update ctype.h rule.
1778
1779         New module 'c++defs'.
1780         * modules/c++defs: New file.
1781         * build-aux/c++defs.h: New file.
1782         Reported by John W. Eaton <jwe@gnu.org>.
1783
1784 2010-03-07  Bruno Haible  <bruno@clisp.org>
1785
1786         logb: Provide missing declaration for Cygwin.
1787         * lib/math.in.h (logb): New declaration.
1788         * m4/logb.m4: New file.
1789         * modules/logb (Files): Add m4/logb.m4.
1790         (Depends-on): Add math.
1791         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1792         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1794         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1795         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1796
1797 2010-03-07  Bruno Haible  <bruno@clisp.org>
1798
1799         Fix test-cond link error.
1800         * tests/test-cond.c: Include <stdio.h>.
1801
1802 2010-03-07  Bruno Haible  <bruno@clisp.org>
1803
1804         Fix test-dirent-safer link error.
1805         * modules/dirent-safer-tests (Makefile.am): Define
1806         test_dirent_safer_LDADD.
1807
1808 2010-03-07  Bruno Haible  <bruno@clisp.org>
1809
1810         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1811         among default module list.
1812
1813 2010-03-07  Bruno Haible  <bruno@clisp.org>
1814
1815         Fix link error on platforms with GNU libiconv.
1816         * modules/unistr/u8-strcoll-tests (Makefile): Define
1817         test_u8_strcoll_LDADD.
1818         * modules/unistr/u16-strcoll-tests (Makefile): Define
1819         test_u16_strcoll_LDADD.
1820         * modules/unistr/u32-strcoll-tests (Makefile): Define
1821         test_u32_strcoll_LDADD.
1822
1823 2010-03-07  Bruno Haible  <bruno@clisp.org>
1824
1825         Use POSIX declarations for socket functions.
1826         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1827         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1828         rpl_sendto): Change declaration to match POSIX.
1829         * lib/connect.c (rpl_connect): Likewise.
1830         * lib/accept.c (rpl_accept): Likewise.
1831         * lib/bind.c (rpl_bind): Likewise.
1832         * lib/getpeername.c (rpl_getpeername): Likewise.
1833         * lib/getsockname.c (rpl_getsockname): Likewise.
1834         * lib/recv.c (rpl_recv): Likewise.
1835         * lib/send.c (rpl_send): Likewise.
1836         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1837         * lib/sendto.c (rpl_sendto): Likewise.
1838
1839 2010-03-06  Bruno Haible  <bruno@clisp.org>
1840
1841         Clarify access, euidaccess, faccessat.
1842         * doc/posix-functions/faccessat.texi: Mention security problem under
1843         "Other problems", not "Portability problems".
1844         * doc/posix-functions/access.texi: Likewise. Mention a related security
1845         problem.
1846         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1847         * lib/euidaccess.c: Add comments about platforms.
1848         * lib/unistd.in.h (access, euidaccess): Add warnings.
1849
1850 2010-03-07  Bruno Haible  <bruno@clisp.org>
1851
1852         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1853         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1854         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1855         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1856         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1857         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1858         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1859         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1860         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1862         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1863         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1864         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1865         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1866         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1867         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1868         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1869         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1870         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1871         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1872         Likewise.
1873         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1874         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1875         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1876         Likewise.
1877         * tests/test-spawn.c (main): Make it work when
1878         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1879
1880 2010-03-07  Bruno Haible  <bruno@clisp.org>
1881
1882         Fix incorrect Makefile.am generation in German locale.
1883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1884         Execute sed command with character range in C locale.
1885
1886 2010-03-06  Bruno Haible  <bruno@clisp.org>
1887
1888         Tests for module 'iconv-h'.
1889         * modules/iconv-h-tests: New file.
1890         * tests/test-iconv-h.c: New file.
1891
1892         New module 'iconv-h'.
1893         * modules/iconv-h: New file.
1894         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1895         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1896         (configure.ac): Remove gl_ICONV_H.
1897         (Makefile.am): Remove rule for iconv.h.
1898
1899 2010-03-06  Bruno Haible  <bruno@clisp.org>
1900
1901         More consistent naming of *.m4 files.
1902         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1903         * modules/wctype (Files): Update.
1904
1905         More consistent naming of *.m4 files.
1906         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1907         * modules/wchar (Files): Update.
1908
1909 2010-03-06  Jim Meyering  <meyering@redhat.com>
1910
1911         euidaccess: relax license to LGPLv2+
1912         * modules/euidaccess (License): Relax to LGPLv2+.
1913
1914 2010-03-06  Bruno Haible  <bruno@clisp.org>
1915
1916         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1917         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1918         (Makefile.am): Augment lib_SOURCES instead.
1919
1920 2010-03-04  Jim Meyering  <meyering@redhat.com>
1921
1922         utime: remove obsolete module
1923         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1924         unnecessary for years, and has been marked as obsolete for 10 months.
1925         * modules/utime: Remove file.
1926         * lib/utime.c: Remove file.
1927         * m4/utime.m4: Remove file.
1928         * m4/utimes-null.m4: Remove file.
1929         * doc/posix-functions/utime.texi (utime): Remove reference to
1930         the module.  Move the sole "fixed by gnulib" item into the
1931         "problems not fixed by Gnulib" list.
1932         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1933
1934 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1935
1936         * modules/exit (License): Relax license to LGPLv2+.
1937         (Status): Mark as obsolete.
1938         * NEWS: Mention deprecated 'exit' module.
1939         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1940         of now obsolete 'exit'.
1941
1942 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1943
1944         fts-lgpl: remove unused module
1945         * modules/fts-lgpl: Remove.
1946         * MODULES.html.sh (func_all_modules): Adjust.
1947         * check-module (find_included_lib_files): Adjust.
1948         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1949
1950 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1951
1952         copy-acl: enhance Solaris ACL error handling
1953         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1954         * lib/set-mode-acl.c (qset_acl): Likewise.
1955
1956 2010-03-02  Bruno Haible  <bruno@clisp.org>
1957
1958         spawn: Don't override the system defined values on FreeBSD 8.
1959         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1960         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1961         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1962         if HAVE_POSIX_SPAWN is 1.
1963         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1964
1965 2010-03-01  Bruno Haible  <bruno@clisp.org>
1966
1967         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1968         regarding Automake.
1969
1970 2010-02-25  Bruno Haible  <bruno@clisp.org>
1971
1972         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1973         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1974         setting, not afterwards.
1975         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1976
1977 2010-02-24  Eric Blake  <eblake@redhat.com>
1978
1979         bootstrap, git-version-gen: use timestamp
1980         * build-aux/git-version-gen (scriptversion): Force UTC.
1981         * build-aux/bootstrap (scriptversion): New variable.
1982
1983         bootstrap: allow older git
1984         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1985         older than 1.6.4.  Requested by the libvirt project.
1986
1987 2010-02-23  Eric Blake  <eblake@redhat.com>
1988
1989         warn-on-use: work with old autoconf
1990         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1991         AS_VAR semantics of autoconf 2.60.
1992         Reported by Bruno Haible.
1993
1994         bootstrap: improve some comments
1995         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1996         clarification comments.
1997
1998         gettimeofday: provide correct function
1999         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2000         when replacement is declared, otherwise provide gettimeofday.
2001         Reported by Michael Goffioul.
2002
2003 2010-02-23  Jim Meyering  <meyering@redhat.com>
2004
2005         lib-ignore: relax license to "unlimited", not LGPLv2+
2006         * modules/lib-ignore (License): Relax to "unlimited".
2007
2008 2010-02-23  Jim Meyering  <meyering@redhat.com>
2009
2010         lib-ignore: relax license to LGPLv2+
2011         * modules/lib-ignore (License): Relax to LGPLv2+.
2012
2013 2010-02-22  Eric Blake  <eblake@redhat.com>
2014
2015         lseek: avoid bash 3.2 broken pipe bug
2016         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2017         warning from bash 3.2.
2018         Reported by Ben Pfaff, with analysis from Bruno Haible.
2019
2020         bootstrap: support non-FSF copyright holder
2021         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2022         bootstrap.conf override of COPYRIGHT_HOLDER.
2023         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2024
2025         bootstrap: interoperate with gettext 0.14.1
2026         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2027
2028         bootstrap: allow for alternate submodule location
2029         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2030         hardcoding submodule location.
2031         (gnulib_mk): Allow direct use of Makefile.am.
2032
2033         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2034         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2035         rather than reconfiguring where the submodule points.
2036
2037         gettimeofday: restore support for platforms that lack function
2038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2039         replacement if function is missing.
2040         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2041         * modules/sys_time (Makefile.am): Substitute it.
2042         * lib/sys_time.in.h (gettimeofday): Check it.
2043         Reported by Michael Goffioul.
2044
2045 2010-02-21  Bruno Haible  <bruno@clisp.org>
2046
2047         * lib/stdio.in.h (obstack_printf): Fix typo.
2048
2049 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2050
2051         vc-list-files: use bzr ls's -R option
2052         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2053         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2054
2055 2010-02-21  Jim Meyering  <meyering@redhat.com>
2056
2057         init.sh: fix EXEEXT shims to work also for names like test-prog
2058         * tests/init.sh: Re-exec a better shell, when needed.
2059         If the current shell lacks support for posix $(...), an init.sh-using
2060         test will now try to find a shell that supports that.  If EXEEXT is
2061         nonempty, we also require support for hyphen-in-alias-name and shell
2062         substitutions like ${var#glob}.  Failure to find such a shell results
2063         in a skipped test.
2064
2065 2010-02-21  Bruno Haible  <bruno@clisp.org>
2066
2067         Really work around around "broken pipe" error message from bash 3.2.
2068         * gnulib-tool (func_reset_sigpipe): Remove function.
2069         (echo): In bash 3.2, define to a function that uses printf.
2070         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2071
2072 2010-02-20  Bruno Haible  <bruno@clisp.org>
2073
2074         Restore support for automake 1.9.6 with autoconf 2.61.
2075         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2076         Reported by James Youngman <jay@gnu.org>.
2077
2078 2010-02-20  Bruno Haible  <bruno@clisp.org>
2079
2080         Improve *printf warning condition.
2081         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2082         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2083         and the function is overridden due to SIGPIPE emulation.
2084
2085 2010-02-20  Bruno Haible  <bruno@clisp.org>
2086
2087         * lib/stdio.in.h: Tweak comments.
2088
2089 2010-02-19  Bruno Haible  <bruno@clisp.org>
2090
2091         Make it easier to find modules. New gnulib-tool option '--find'.
2092         * gnulib-tool: New option --find.
2093         (func_usage): Document it.
2094         (func_sanitize_modulelist): New function, extracted from
2095         func_all_modules.
2096         (func_all_modules): Invoke it.
2097         * doc/gnulib-tool.texi (Which modules?): New node.
2098
2099 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2100
2101         * lib/sys_select.in.h: Provide select replacement even if
2102         sys/select.h exists on a system, for Interix.
2103
2104 2010-02-18  Jim Meyering  <meyering@redhat.com>
2105
2106         init.sh: don't use $(...) just yet
2107         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2108         to accommodate e.g., Solaris' /bin/sh.
2109
2110 2010-02-17  Bruno Haible  <bruno@clisp.org>
2111
2112         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2113         Reported by Ludovic Courtès <ludo@gnu.org>.
2114
2115 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2116
2117         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2118         linking with -lintl.
2119
2120 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2121
2122         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2123         if not provided by the system's netdb.h.  Reported by
2124         ludo@gnu.org (Ludovic Courtès).
2125
2126 2010-02-15  Jim Meyering  <meyering@redhat.com>
2127
2128         init.sh: improve portability and efficiency
2129         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2130         "dummy" in a for loop.
2131         Use '!', not '^' to select the complement of a character set used
2132         in a "case" statement.
2133         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2134         Suggestions from Eric Blake.
2135
2136         init.sh: automatically accommodate programs with the .exe suffix
2137         Automatically arrange for an invocation of "prog" to execute the
2138         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2139         may use the simpler "prog", yet still work when built on a system
2140         that requires specifying the added suffix.
2141         Do this by constructing a function named "prog" that invokes
2142         "prog.exe" for each .exe file in selected directories.
2143         * tests/init.sh (find_exe_basenames_): New function.
2144         (create_exe_shim_functions_): New function.
2145         (path_prepend_): Use it.
2146
2147         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2148         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2149         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2150
2151 2010-02-14  Jim Meyering  <meyering@redhat.com>
2152
2153         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2154         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2155         (sc_prohibit_hash_pjw_without_use): New rule.
2156
2157         maint.mk: allow the default upload destination dir to be overridden
2158         * top/maint.mk (upload_dest_dir_): Define with a default that
2159         preserves the status quo.
2160         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2161         Reported by Peter Simons.
2162
2163         maint.mk: prohibit inclusion of "hash.h" without_use
2164         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2165
2166 2010-02-10  Jim Meyering  <meyering@redhat.com>
2167
2168         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2169         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2170
2171 2010-02-09  Eric Blake  <ebb9@byu.net>
2172         and Bruno Haible  <bruno@clisp.org>
2173
2174         obstack-printf-posix: ensure declaration
2175         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2176         extracted from gl_FUNC_OBSTACK_PRINTF.
2177         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2178         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2179         Likewise.
2180         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2181         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2182         0.
2183
2184 2010-02-08  Bruno Haible  <bruno@clisp.org>
2185
2186         gnulib-tool: Fix typo in 2010-02-07 commit.
2187         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2188         Reported by Eric Blake.
2189
2190 2010-02-07  Bruno Haible  <bruno@clisp.org>
2191
2192         gnulib-tool: Fix up caching patches.
2193         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2194         option --no-cache. Use associative arrays when supported by the shell.
2195         (sed_comments): New variable.
2196         (modcache): Renamed from do_cache.
2197         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2198         abbreviate unnecessarily.
2199         (have_associative): New variable.
2200         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2201         way also for ksh and zsh.
2202         (func_init_sed_convert_to_cache_statements): New function, extracted
2203         from func_cache_lookup_module. Add support for associative arrays.
2204         Don't set the c_MODULE_cached variable here. Ignore all lines before
2205         the first field header. Remove only the final newline, not all trailing
2206         newlines. Support empty fields correctly. Limit the use of 'eval' to
2207         assignments.
2208         (func_get_description, func_get_status, func_get_notice,
2209         func_get_applicability, func_get_filelist, func_get_dependencies,
2210         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2211         func_get_automake_snippet, func_get_include_directive,
2212         func_get_link_directive, func_get_license, func_get_maintainer):
2213         Update documentation. List the unoptimized code first. Add support for
2214         associative arrays. Limit the use of 'eval' to assignments.
2215         (func_get_applicability): Undo stylistic pessimisations.
2216         (func_get_automake_snippet, func_get_include_directive): Reduce code
2217         duplication.
2218         (func_modules_transitive_closure, func_modules_add_dummy,
2219         func_modules_notice, func_modules_to_filelist, func_add_file,
2220         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2221         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2222         func_create_testdir, func_create_megatestdir): Update documentation.
2223
2224 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2225
2226         * gnulib-tool (func_cache_lookup_module): Store the module name
2227         belonging to the cache variable; error out if two different
2228         module names map to the same cache variable name.
2229
2230 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2231
2232         gnulib-tool: Make caching optional.
2233         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2234         Update matching short versions of --no-changelog.
2235         (func_usage): Update.
2236         (sed_extract_cache_prog): Renamed from ...
2237         (sed_extract_prog): ... this; revert to old extraction script.
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): If $do_cache is false,
2244         use old, non-caching extraction scripts.
2245         Suggestion by Bruno Haible.
2246
2247 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2248
2249         gnulib-tool: cache module metainformation.
2250         * gnulib-tool (sed_extract_prog): Match newline before each
2251         header, and rewrite header to a shell variable suffix.
2252         (func_cache_var, func_cache_lookup_module): New functions,
2253         to turn a module name into a cache variable prefix, and to
2254         look up and cache module metainformation.
2255         (func_get_description, func_get_status)
2256         (func_get_notice, func_get_applicability, func_get_filelist)
2257         (func_get_dependencies, func_get_autoconf_early_snippet)
2258         (func_get_autoconf_snippet, func_get_automake_snippet)
2259         (func_get_include_directive, func_get_link_directive)
2260         (func_get_license, func_get_maintainer): Use
2261         func_cache_lookup_module.
2262
2263 2010-02-07  Bruno Haible  <bruno@clisp.org>
2264
2265         fnctl: Fix missing dependency.
2266         * modules/fcntl (Depends-on): Add getdtablesize.
2267         Reported by John W. Eaton <jwe@gnu.org>.
2268
2269 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2270
2271         Argp: fix recognition of short alias options.
2272
2273         * lib/argp-parse.c (convert_options): Fix improper use of
2274         `|' between character values.
2275         * tests/test-argp.c (group1_option): New alias option
2276         --read (-r).
2277         (group1_parser): Special handling for 'r'.
2278         (test15): New test case.
2279         (test_fun): Add test15.
2280         * tests/test-argp-2.sh: Update expected --help and --usage
2281         outputs.
2282
2283 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2284
2285         * tests/test-argp.c: Fix indentation.
2286
2287 2010-02-04  Eric Blake  <ebb9@byu.net>
2288
2289         gettimeofday: expose type of second argument
2290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2291         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2292         * tests/test-gettimeofday.c: Use it to silence warning.
2293         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2294         the issue.
2295
2296 2010-02-03  Jim Meyering  <meyering@redhat.com>
2297
2298         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2299         * lib/regcomp.c (TYPE_SIGNED): Define.
2300         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2301
2302         regcomp.c: avoid a new -Wshadow warning
2303         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2304
2305 2010-02-01  Jim Meyering  <meyering@redhat.com>
2306
2307         removing useless parentheses in cpp #define directives
2308         For motivation, see commit c0221df4, "define STREQ(a,b)
2309         consistently, removing useless parentheses"
2310         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2311         * lib/mountlist.c (MNT_IGNORE): Likewise.
2312         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2313
2314 2010-02-01  Eric Blake  <ebb9@byu.net>
2315
2316         sys_time: use link-warning
2317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2318         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2319         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2320         * modules/sys_time (Depends-on): Add warn-on-use.
2321         (Makefile.am): Always build replacement.
2322         (configure.ac): Update substitutions.
2323         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2324         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2325         bother with SYS_TIME_H.
2326         * modules/gettimeofday (configure.ac): Declare indicator.
2327         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2328         in use.
2329
2330         closein-tests: silence compiler warning
2331         * tests/test-closein.c (main): Ignore fread result.
2332         * modules/closein-tests (Depends-on): Add ignore-value.
2333
2334         tests: silence warning about system return
2335         * tests/test-areadlink-with-size.c (main): Ignore system result.
2336         * tests/test-areadlink.c (main): Likewise.
2337         * tests/test-areadlinkat-with-size.c (main): Likewise.
2338         * tests/test-areadlinkat.c (main): Likewise.
2339         * tests/test-canonicalize-lgpl.c (main): Likewise.
2340         * tests/test-canonicalize.c (main): Likewise.
2341         * tests/test-chown.c (main): Likewise.
2342         * tests/test-fchownat.c (main): Likewise.
2343         * tests/test-fdutimensat.c (main): Likewise.
2344         * tests/test-fstatat.c (main): Likewise.
2345         * tests/test-futimens.c (main): Likewise.
2346         * tests/test-lchown.c (main): Likewise.
2347         * tests/test-link.c (main): Likewise.
2348         * tests/test-linkat.c (main): Likewise.
2349         * tests/test-lstat.c (main): Likewise.
2350         * tests/test-mkdir.c (main): Likewise.
2351         * tests/test-mkdirat.c (main): Likewise.
2352         * tests/test-mkfifo.c (main): Likewise.
2353         * tests/test-mkfifoat.c (main): Likewise.
2354         * tests/test-mknod.c (main): Likewise.
2355         * tests/test-readlink.c (main): Likewise.
2356         * tests/test-remove.c (main): Likewise.
2357         * tests/test-rename.c (main): Likewise.
2358         * tests/test-renameat.c (main): Likewise.
2359         * tests/test-rmdir.c (main): Likewise.
2360         * tests/test-symlink.c (main): Likewise.
2361         * tests/test-symlinkat.c (main): Likewise.
2362         * tests/test-unlink.c (main): Likewise.
2363         * tests/test-unlinkat.c (main): Likewise.
2364         * tests/test-utimens.c (main): Likewise.
2365         * tests/test-utimensat.c (main): Likewise.
2366         * modules/areadlink-tests (Depends-on): Add ignore-value.
2367         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2368         * modules/areadlinkat-tests (Depends-on): Likewise.
2369         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2370         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2371         * modules/canonicalize-tests (Depends-on): Likewise.
2372         * modules/chown-tests (Depends-on): Likewise.
2373         * modules/fdutimensat-tests (Depends-on): Likewise.
2374         * modules/futimens-tests (Depends-on): Likewise.
2375         * modules/lchown-tests (Depends-on): Likewise.
2376         * modules/link-tests (Depends-on): Likewise.
2377         * modules/linkat-tests (Depends-on): Likewise.
2378         * modules/lstat-tests (Depends-on): Likewise.
2379         * modules/mkdir-tests (Depends-on): Likewise.
2380         * modules/mkfifo-tests (Depends-on): Likewise.
2381         * modules/mkfifoat-tests (Depends-on): Likewise.
2382         * modules/mknod-tests (Depends-on): Likewise.
2383         * modules/openat-tests (Depends-on): Likewise.
2384         * modules/readlink-tests (Depends-on): Likewise.
2385         * modules/remove-tests (Depends-on): Likewise.
2386         * modules/rename-tests (Depends-on): Likewise.
2387         * modules/renameat-tests (Depends-on): Likewise.
2388         * modules/rmdir-tests (Depends-on): Likewise.
2389         * modules/symlink-tests (Depends-on): Likewise.
2390         * modules/symlinkat-tests (Depends-on): Likewise.
2391         * modules/unlink-tests (Depends-on): Likewise.
2392         * modules/utimens-tests (Depends-on): Likewise.
2393         * modules/utimensat-tests (Depends-on): Likewise.
2394
2395 2010-01-31  Bruno Haible  <bruno@clisp.org>
2396
2397         Perform the same test for many <math.h> functions.
2398         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2399         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2400         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2401         of gl_MATHFUNC.
2402         * modules/acos (configure.ac): Likewise.
2403         * modules/asin (configure.ac): Likewise.
2404         * modules/atan (configure.ac): Likewise.
2405         * modules/atan2 (configure.ac): Likewise.
2406         * modules/cbrt (configure.ac): Likewise.
2407         * modules/copysign (configure.ac): Likewise.
2408         * modules/cos (configure.ac): Likewise.
2409         * modules/cosh (configure.ac): Likewise.
2410         * modules/erf (configure.ac): Likewise.
2411         * modules/erfc (configure.ac): Likewise.
2412         * modules/exp (configure.ac): Likewise.
2413         * modules/fmod (configure.ac): Likewise.
2414         * modules/hypot (configure.ac): Likewise.
2415         * modules/j0 (configure.ac): Likewise.
2416         * modules/j1 (configure.ac): Likewise.
2417         * modules/jn (configure.ac): Likewise.
2418         * modules/lgamma (configure.ac): Likewise.
2419         * modules/log (configure.ac): Likewise.
2420         * modules/log10 (configure.ac): Likewise.
2421         * modules/log1p (configure.ac): Likewise.
2422         * modules/pow (configure.ac): Likewise.
2423         * modules/remainder (configure.ac): Likewise.
2424         * modules/sin (configure.ac): Likewise.
2425         * modules/sinh (configure.ac): Likewise.
2426         * modules/tan (configure.ac): Likewise.
2427         * modules/tanh (configure.ac): Likewise.
2428         * modules/y0 (configure.ac): Likewise.
2429         * modules/y1 (configure.ac): Likewise.
2430         * modules/yn (configure.ac): Likewise.
2431         Suggested by Paolo Bonzini.
2432
2433 2010-01-31  Bruno Haible  <bruno@clisp.org>
2434
2435         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2436
2437 2010-01-31  Bruno Haible  <bruno@clisp.org>
2438
2439         Work around getdelim() bug on FreeBSD 8.0.
2440         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2441         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2442         not work.
2443         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2444         is 1.
2445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2446         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2447         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2448         a non-zero size.
2449         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2450
2451 2010-01-31  Bruno Haible  <bruno@clisp.org>
2452
2453         Work around getline() bug on FreeBSD 8.0.
2454         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2455         and a non-zero size.
2456         * tests/test-getline.c (main): Likewise.
2457         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2458         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2459
2460 2010-01-28  Eric Blake  <ebb9@byu.net>
2461
2462         regex: fix build failure
2463         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2464         platforms.
2465
2466 2010-01-28  Jim Meyering  <meyering@redhat.com>
2467
2468         regex: do not ignore memory allocation failure
2469         * lib/regex_internal.c (create_cd_newstate): Detect
2470         re_node_set_init_copy failure.   Extracted from glibc commit
2471         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2472
2473         regex: sync more white-space changes from libc
2474         * lib/regex_internal.c: White-space only changes.
2475         * lib/regexec.c: Likewise.
2476
2477         regex: add many uses of __attribute_warn_unused_result__
2478         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2479         * lib/regexec.c: Likewise.
2480         Extracted from a messy glibc commit.
2481
2482         regcomp.c: spelling and merge-artifact from glibc
2483         * lib/regcomp.c: Merge remainder of glibc's
2484         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2485
2486         regcomp.c: sync white-space changes from glibc
2487         * lib/regcomp.c: Merge to accommodate white space
2488         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2489
2490         regcomp.c: do not ignore internal return values
2491         * lib/regcomp.c: Do not ignore internal return values.
2492         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2493         but without its white-space changes and spelling fixes.
2494
2495         regex_internal.h: define __attribute_warn_unused_result__
2496         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2497
2498         maint: add a syntax-check rule to check for vulnerable Makefile.in
2499         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2500
2501 2010-01-27  Jim Meyering  <meyering@redhat.com>
2502
2503         ncftpput-ftp: clean up spaces
2504         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2505         Remove trailing blanks.
2506
2507 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2508
2509         * build-aux/git-version-gen: Fix copyright statement.
2510         * build-aux/gnupload: Likewise.
2511         * tests/test-arcfour.c: Likewise.
2512         * tests/test-arctwo.c: Likewise.
2513         * tests/test-count-one-bits.c: Likewise.
2514         * tests/test-crc.c: Likewise.
2515         * tests/test-des.c: Likewise.
2516         * tests/test-gc-arcfour.c: Likewise.
2517         * tests/test-gc-arctwo.c: Likewise.
2518         * tests/test-gc-des.c: Likewise.
2519         * tests/test-gc-hmac-md5.c: Likewise.
2520         * tests/test-gc-hmac-sha1.c: Likewise.
2521         * tests/test-gc-md2.c: Likewise.
2522         * tests/test-gc-md4.c: Likewise.
2523         * tests/test-gc-md5.c: Likewise.
2524         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2525         * tests/test-gc-rijndael.c: Likewise.
2526         * tests/test-gc-sha1.c: Likewise.
2527         * tests/test-gc.c: Likewise.
2528         * tests/test-gethostname.c: Likewise.
2529         * tests/test-gettimeofday.c: Likewise.
2530         * tests/test-hash.c: Likewise.
2531         * tests/test-hmac-md5.c: Likewise.
2532         * tests/test-hmac-sha1.c: Likewise.
2533         * tests/test-md2.c: Likewise.
2534         * tests/test-md4.c: Likewise.
2535         * tests/test-md5.c: Likewise.
2536         * tests/test-memchr.c: Likewise.
2537         * tests/test-memchr2.c: Likewise.
2538         * tests/test-memcmp.c: Likewise.
2539         * tests/test-memmem.c: Likewise.
2540         * tests/test-memrchr.c: Likewise.
2541         * tests/test-rawmemchr.c: Likewise.
2542         * tests/test-read-file.c: Likewise.
2543         * tests/test-rijndael.c: Likewise.
2544         * tests/test-sockets.c: Likewise.
2545         * tests/test-strchrnul.c: Likewise.
2546         * tests/test-strstr.c: Likewise.
2547         * tests/test-strtod.c: Likewise.
2548         * build-aux/ncftpput-ftp: Likewise.
2549
2550 2010-01-26  Eric Blake  <ebb9@byu.net>
2551
2552         ignore-value: update recommended header name
2553         * modules/ignore-value (Include): Only use <> for headers that
2554         exist in glibc.
2555
2556 2010-01-26  Jim Meyering  <meyering@redhat.com>
2557
2558         test-userspec.c: avoid compiler warnings
2559         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2560         and "initialization discards qualifiers..." warnings.
2561         Put the first "uid" in its own scope, and make char* members "const".
2562
2563 2010-01-25  Bruno Haible  <bruno@clisp.org>
2564
2565         gnulib-tool: Make warning diagnostics consistent.
2566         * gnulib-tool (func_warning): New function.
2567         Use it everywhere where gnulib-tool produces output to stderr and it is
2568         not a fatal error.
2569
2570 2010-01-25  Bruno Haible  <bruno@clisp.org>
2571
2572         Fix test dependencies.
2573         * modules/xstrtol-tests (Depends-on): Add inttypes.
2574         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2575
2576 2010-01-25 Pádraig Brady <P@draigBrady.com>
2577
2578         syntax-check: detect incorrect boolean macro values in config.h
2579         * modules/maintainer-makefile (configure.ac): Parameterize the location
2580         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2581         The logic is from Eric Blake and the location indicated by Jim Meyering.
2582         Note the more natural CONFIG_HEADER name is prohibited by automake
2583         for backwards compatibility reasons.
2584         * top/maint.mk (sc_Wundef_boolean): New rule.
2585
2586 2010-01-25  Jim Meyering  <meyering@redhat.com>
2587
2588         bootstrap: detect MacOS 10.6's shasum, too
2589         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2590         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2591
2592 2010-01-23  Jim Meyering  <meyering@redhat.com>
2593
2594         xstrtoll: new module
2595         * modules/xstrtoll: New file.
2596         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2597         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2598         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2599         ./configure fails if you use this module and lack "long long".
2600         * modules/xstrtoll-tests: New module.
2601         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2602         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2603         new init.sh-based test framework.
2604
2605 2010-01-24  Bruno Haible  <bruno@clisp.org>
2606
2607         Tests for module 'yn'.
2608         * modules/yn-tests: New file.
2609         * tests/test-yn.c: New file.
2610
2611         Tests for module 'y1'.
2612         * modules/y1-tests: New file.
2613         * tests/test-y1.c: New file.
2614
2615         Tests for module 'y0'.
2616         * modules/y0-tests: New file.
2617         * tests/test-y0.c: New file.
2618
2619         Tests for module 'tanh'.
2620         * modules/tanh-tests: New file.
2621         * tests/test-tanh.c: New file.
2622
2623         Tests for module 'tan'.
2624         * modules/tan-tests: New file.
2625         * tests/test-tan.c: New file.
2626
2627         Tests for module 'sqrt'.
2628         * modules/sqrt-tests: New file.
2629         * tests/test-sqrt.c: New file.
2630
2631         Tests for module 'sinh'.
2632         * modules/sinh-tests: New file.
2633         * tests/test-sinh.c: New file.
2634
2635         Tests for module 'sin'.
2636         * modules/sin-tests: New file.
2637         * tests/test-sin.c: New file.
2638
2639         Tests for module 'rint'.
2640         * modules/rint-tests: New file.
2641         * tests/test-rint.c: New file.
2642
2643         Tests for module 'remainder'.
2644         * modules/remainder-tests: New file.
2645         * tests/test-remainder.c: New file.
2646
2647         Tests for module 'pow'.
2648         * modules/pow-tests: New file.
2649         * tests/test-pow.c: New file.
2650
2651         Tests for module 'nextafter'.
2652         * modules/nextafter-tests: New file.
2653         * tests/test-nextafter.c: New file.
2654
2655         Tests for module 'modf'.
2656         * modules/modf-tests: New file.
2657         * tests/test-modf.c: New file.
2658
2659         Tests for module 'logb'.
2660         * modules/logb-tests: New file.
2661         * tests/test-logb.c: New file.
2662
2663         Tests for module 'log1p'.
2664         * modules/log1p-tests: New file.
2665         * tests/test-log1p.c: New file.
2666
2667         Tests for module 'log10'.
2668         * modules/log10-tests: New file.
2669         * tests/test-log10.c: New file.
2670
2671         Tests for module 'log'.
2672         * modules/log-tests: New file.
2673         * tests/test-log.c: New file.
2674
2675         Tests for module 'lgamma'.
2676         * modules/lgamma-tests: New file.
2677         * tests/test-lgamma.c: New file.
2678
2679         Tests for module 'ldexp'.
2680         * modules/ldexp-tests: New file.
2681         * tests/test-ldexp.c: New file.
2682
2683         Tests for module 'jn'.
2684         * modules/jn-tests: New file.
2685         * tests/test-jn.c: New file.
2686
2687         Tests for module 'j1'.
2688         * modules/j1-tests: New file.
2689         * tests/test-j1.c: New file.
2690
2691         Tests for module 'j0'.
2692         * modules/j0-tests: New file.
2693         * tests/test-j0.c: New file.
2694
2695         Tests for module 'hypot'.
2696         * modules/hypot-tests: New file.
2697         * tests/test-hypot.c: New file.
2698
2699         Tests for module 'fmod'.
2700         * modules/fmod-tests: New file.
2701         * tests/test-fmod.c: New file.
2702
2703         Tests for module 'fabs'.
2704         * modules/fabs-tests: New file.
2705         * tests/test-fabs.c: New file.
2706
2707         Tests for module 'exp'.
2708         * modules/exp-tests: New file.
2709         * tests/test-exp.c: New file.
2710
2711         Tests for module 'erfc'.
2712         * modules/erfc-tests: New file.
2713         * tests/test-erfc.c: New file.
2714
2715         Tests for module 'erf'.
2716         * modules/erf-tests: New file.
2717         * tests/test-erf.c: New file.
2718
2719         Tests for module 'cosh'.
2720         * modules/cosh-tests: New file.
2721         * tests/test-cosh.c: New file.
2722
2723         Tests for module 'cos'.
2724         * modules/cos-tests: New file.
2725         * tests/test-cos.c: New file.
2726
2727         Tests for module 'copysign'.
2728         * modules/copysign-tests: New file.
2729         * tests/test-copysign.c: New file.
2730
2731         Tests for module 'cbrt'.
2732         * modules/cbrt-tests: New file.
2733         * tests/test-cbrt.c: New file.
2734
2735         Tests for module 'atan2'.
2736         * modules/atan2-tests: New file.
2737         * tests/test-atan2.c: New file.
2738
2739         Tests for module 'atan'.
2740         * modules/atan-tests: New file.
2741         * tests/test-atan.c: New file.
2742
2743         Tests for module 'asin'.
2744         * modules/asin-tests: New file.
2745         * tests/test-asin.c: New file.
2746
2747         Tests for module 'acos'.
2748         * modules/acos-tests: New file.
2749         * tests/test-acos.c: New file.
2750
2751 2010-01-24  Bruno Haible  <bruno@clisp.org>
2752
2753         Fix tests for common <math.h> functions.
2754         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2755         code snippet that references the function pointer, rather than merely
2756         calling the function. Substitute the FUNC_LIBM variable.
2757         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2758         * modules/acos (configure.ac): Likewise.
2759         * modules/asin (configure.ac): Likewise.
2760         * modules/atan (configure.ac): Likewise.
2761         * modules/atan2 (configure.ac): Likewise.
2762         * modules/cbrt (configure.ac): Likewise.
2763         * modules/copysign (configure.ac): Likewise.
2764         * modules/cos (configure.ac): Likewise.
2765         * modules/cosh (configure.ac): Likewise.
2766         * modules/erf (configure.ac): Likewise.
2767         * modules/erfc (configure.ac): Likewise.
2768         * modules/exp (configure.ac): Likewise.
2769         * modules/fabs (configure.ac): Likewise.
2770         * modules/fmod (configure.ac): Likewise.
2771         * modules/hypot (configure.ac): Likewise.
2772         * modules/j0 (configure.ac): Likewise.
2773         * modules/j1 (configure.ac): Likewise.
2774         * modules/jn (configure.ac): Likewise.
2775         * modules/ldexp (configure.ac): Likewise.
2776         * modules/lgamma (configure.ac): Likewise.
2777         * modules/log (configure.ac): Likewise.
2778         * modules/log10 (configure.ac): Likewise.
2779         * modules/log1p (configure.ac): Likewise.
2780         * modules/logb (configure.ac): Likewise.
2781         * modules/modf (configure.ac): Likewise.
2782         * modules/nextafter (configure.ac): Likewise.
2783         * modules/pow (configure.ac): Likewise.
2784         * modules/remainder (configure.ac): Likewise.
2785         * modules/rint (configure.ac): Likewise.
2786         * modules/sin (configure.ac): Likewise.
2787         * modules/sinh (configure.ac): Likewise.
2788         * modules/tan (configure.ac): Likewise.
2789         * modules/tanh (configure.ac): Likewise.
2790         * modules/y0 (configure.ac): Likewise.
2791         * modules/y1 (configure.ac): Likewise.
2792         * modules/yn (configure.ac): Likewise.
2793
2794 2010-01-24  Bruno Haible  <bruno@clisp.org>
2795
2796         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2797         * tests/test-acosl.c (x): New variable.
2798         (main): Store argument in x and fetch it from x.
2799         * tests/test-asinl.c (x): New variable.
2800         (main): Store argument in x and fetch it from x.
2801         * tests/test-atanl.c (x): New variable.
2802         (main): Store argument in x and fetch it from x.
2803         * tests/test-cosl.c (x): New variable.
2804         (main): Store argument in x and fetch it from x.
2805         * tests/test-expl.c (x): New variable.
2806         (main): Store argument in x and fetch it from x.
2807         * tests/test-logl.c (x): New variable.
2808         (main): Store argument in x and fetch it from x.
2809         * tests/test-sinl.c (x): New variable.
2810         (main): Store argument in x and fetch it from x.
2811         * tests/test-sqrtl.c (x): New variable.
2812         (main): Store argument in x and fetch it from x.
2813         * tests/test-tanl.c (x): New variable.
2814         (main): Store argument in x and fetch it from x.
2815
2816 2010-01-24  Bruno Haible  <bruno@clisp.org>
2817
2818         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2819         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2820         assignments to the initial TESTS_ENVIRONMENT.
2821         * doc/gnulib.texi (Unit test modules): Document it.
2822         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2823         TESTS_ENVIRONMENT.
2824         * modules/btowc-tests (Makefile.am): Likewise.
2825         * modules/c-stack-tests (Makefile.am): Likewise.
2826         * modules/c-strcase-tests (Makefile.am): Likewise.
2827         * modules/copy-file-tests (Makefile.am): Likewise.
2828         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2829         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2830         * modules/mbrtowc-tests (Makefile.am): Likewise.
2831         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2832         * modules/mbscasestr-tests (Makefile.am): Likewise.
2833         * modules/mbschr-tests (Makefile.am): Likewise.
2834         * modules/mbscspn-tests (Makefile.am): Likewise.
2835         * modules/mbsinit-tests (Makefile.am): Likewise.
2836         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2837         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2838         * modules/mbspbrk-tests (Makefile.am): Likewise.
2839         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2840         * modules/mbsrchr-tests (Makefile.am): Likewise.
2841         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2842         * modules/mbsspn-tests (Makefile.am): Likewise.
2843         * modules/mbsstr-tests (Makefile.am): Likewise.
2844         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2845         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2846         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2847         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2848         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2849         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2850         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2851         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2852         * modules/wcrtomb-tests (Makefile.am): Likewise.
2853         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2854         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2855         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2856         assignments from TESTS_ENVIRONMENT.
2857         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2858         augmentation.
2859         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2860         * modules/atexit-tests (Makefile.am): Likewise.
2861         * modules/binary-io-tests (Makefile.am): Likewise.
2862         * modules/closein-tests (Makefile.am): Likewise.
2863         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2864         * modules/exclude-tests (Makefile.am): Likewise.
2865         * modules/fflush-tests (Makefile.am): Likewise.
2866         * modules/fpending-tests (Makefile.am): Likewise.
2867         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2868         * modules/freadahead-tests (Makefile.am): Likewise.
2869         * modules/freadptr-tests (Makefile.am): Likewise.
2870         * modules/freadseek-tests (Makefile.am): Likewise.
2871         * modules/fseek-tests (Makefile.am): Likewise.
2872         * modules/fseeko-tests (Makefile.am): Likewise.
2873         * modules/ftell-tests (Makefile.am): Likewise.
2874         * modules/ftello-tests (Makefile.am): Likewise.
2875         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2876         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2877         * modules/lseek-tests (Makefile.am): Likewise.
2878         * modules/parse-duration-tests (Makefile.am): Likewise.
2879         * modules/perror-tests (Makefile.am): Likewise.
2880         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2881         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2882         * modules/pipe-tests (Makefile.am): Likewise.
2883         * modules/pread-tests (Makefile.am): Likewise.
2884         * modules/printf-posix-tests (Makefile.am): Likewise.
2885         * modules/select-tests (Makefile.am): Likewise.
2886         * modules/sigpipe-tests (Makefile.am): Likewise.
2887         * modules/tsearch-tests (Makefile.am): Likewise.
2888         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2889         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2890         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2891         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2892         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2893         * modules/version-etc-tests (Makefile.am): Likewise.
2894         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2895         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2896         * modules/xalloc-die-tests (Makefile.am): Likewise.
2897         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2898         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2899         * modules/xstrtol-tests (Makefile.am): Likewise.
2900         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2901         * modules/yesno-tests (Makefile.am): Likewise.
2902         Suggested by Jim Meyering.
2903
2904 2010-01-24  Bruno Haible  <bruno@clisp.org>
2905
2906         More documentation.
2907         * doc/gnulib.texi (Writing modules): New chapter.
2908         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2909         the new chapter.
2910
2911 2010-01-24  Jim Meyering  <meyering@redhat.com>
2912
2913         maint.mk: do not prepend "./" after filtering
2914         * top/maint.mk (_prepend_srcdir_prefix): New variable
2915         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2916         "./" when $(srcdir) is ".".
2917
2918         define STREQ(a,b) consistently, removing useless parentheses
2919         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2920         since the only risk is that "a" or "b" contains an unparenthesized
2921         comma, but if either did that, STREQ would have 3 or more arguments.
2922         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2923         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2924         * lib/hash-triple.c (STREQ): Likewise.
2925         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2926         * lib/getugroups.c (STREQ): Likewise.
2927
2928 2010-01-23  Jim Meyering  <meyering@redhat.com>
2929
2930         maint.mk: fix syntax-check in a non-srcdir build directory
2931         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2932         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2933
2934 2010-01-22  Jim Meyering  <meyering@redhat.com>
2935
2936         userspec: add unit tests
2937         * tests/test-userspec.c: New file.
2938         * modules/userspec-tests: Likewise.
2939
2940 2010-01-21  Jim Meyering  <meyering@redhat.com>
2941
2942         maint.mk: handle source file names containing "." robustly
2943         * top/maint.mk (_dot_escaped_srcdir): Define.
2944         (VC_LIST): Use it in LHS of sed substitution.
2945
2946 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2947
2948         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2949         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2950         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2951         from a non-srcdir build.
2952
2953 2010-01-20  Eric Blake  <ebb9@byu.net>
2954
2955         warn-on-use: use instead of link-warning
2956         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2957         * modules/unistd (Depends-on, Makefile.am): Likewise.
2958         * modules/arpa_inet (Depends-on): Replace link-warning with
2959         warn-on-use.
2960         (Makefile.am): Update rules accordingly.
2961         * modules/ctype (Depends-on, Makefile.am): Likewise.
2962         * modules/dirent (Depends-on, Makefile.am): Likewise.
2963         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2964         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2965         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2966         * modules/locale (Depends-on, Makefile.am): Likewise.
2967         * modules/math (Depends-on, Makefile.am): Likewise.
2968         * modules/search (Depends-on, Makefile.am): Likewise.
2969         * modules/signal (Depends-on, Makefile.am): Likewise.
2970         * modules/spawn (Depends-on, Makefile.am): Likewise.
2971         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2972         * modules/string (Depends-on, Makefile.am): Likewise.
2973         * modules/strings (Depends-on, Makefile.am): Likewise.
2974         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2975         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2976         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2977         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2978         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2979         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2980         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2981         * modules/wchar (Depends-on, Makefile.am): Likewise.
2982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2983         should be poisoned.
2984         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2985         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2986         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2987         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2988         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2989         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2990         * m4/math_h.m4 (gl_MATH_H): Likewise.
2991         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2992         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2993         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2994         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2995         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2997         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2998         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3000         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3001         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3003         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3005         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3006         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3007         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3008         GL_LINK_WARNING.
3009         * lib/ctype.in.h: Likewise.
3010         * lib/dirent.in.h: Likewise.
3011         * lib/fcntl.in.h: Likewise.
3012         * lib/inttypes.in.h: Likewise.
3013         * lib/langinfo.in.h: Likewise.
3014         * lib/locale.in.h: Likewise.
3015         * lib/math.in.h: Likewise.
3016         * lib/search.in.h: Likewise.
3017         * lib/signal.in.h: Likewise.
3018         * lib/spawn.in.h: Likewise.
3019         * lib/stdio.in.h: Likewise.
3020         * lib/stdlib.in.h: Likewise.
3021         * lib/string.in.h: Likewise.
3022         * lib/strings.in.h: Likewise.
3023         * lib/sys_file.in.h: Likewise.
3024         * lib/sys_ioctl.in.h: Likewise.
3025         * lib/sys_select.in.h: Likewise.
3026         * lib/sys_socket.in.h: Likewise.
3027         * lib/sys_stat.in.h: Likewise.
3028         * lib/sys_times.in.h: Likewise.
3029         * lib/sys_utsname.in.h: Likewise.
3030         * lib/unistd.in.h: Likewise.
3031         * lib/wchar.in.h: Likewise.
3032
3033 2010-01-20  Bruno Haible  <bruno@clisp.org>
3034
3035         Avoid duplicate -lm.
3036         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3037         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3039         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3040         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3041         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3042         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3043         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3044         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3045         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3046         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3047         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3048         Reported by Paolo Bonzini.
3049
3050 2010-01-19  Bruno Haible  <bruno@clisp.org>
3051
3052         langinfo, nl_langinfo: Relicense under LGPLv2+.
3053         * modules/langinfo (License): Change to LGPLv2+.
3054         * modules/nl_langinfo (License): Likewise.
3055         Patch by David Lutterkort <lutter@redhat.com>.
3056
3057 2010-01-19  Bruno Haible  <bruno@clisp.org>
3058
3059         Avoid compilation error with cc on OSF/1 5.1.
3060         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3061         statement, not before.
3062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3063
3064 2010-01-18  Bruno Haible  <bruno@clisp.org>
3065
3066         Avoid a link error due to the __printf__ symbol.
3067         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3068         and 2.6.x.
3069         (__format__, __printf__): Remove definitions.
3070         * lib/argp-fmtstream.h: Likewise.
3071         * lib/argp.h: Likewise.
3072         * lib/error.h: Likewise.
3073         * lib/vasnprintf.h: Likewise.
3074         * lib/xprintf.h: Likewise.
3075         * lib/xvasprintf.h: Likewise.
3076         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3077
3078 2010-01-18  Bruno Haible  <bruno@clisp.org>
3079
3080         Tests for module 'tanl'.
3081         * modules/tanl-tests: New file.
3082         * tests/test-tanl.c: New file.
3083
3084         Tests for module 'sqrtl'.
3085         * modules/sqrtl-tests: New file.
3086         * tests/test-sqrtl.c: New file.
3087
3088         Tests for module 'sinl'.
3089         * modules/sinl-tests: New file.
3090         * tests/test-sinl.c: New file.
3091
3092         Tests for module 'logl'.
3093         * modules/logl-tests: New file.
3094         * tests/test-logl.c: New file.
3095
3096         Tests for module 'expl'.
3097         * modules/expl-tests: New file.
3098         * tests/test-expl.c: New file.
3099
3100         Tests for module 'cosl'.
3101         * modules/cosl-tests: New file.
3102         * tests/test-cosl.c: New file.
3103
3104         Tests for module 'atanl'.
3105         * modules/atanl-tests: New file.
3106         * tests/test-atanl.c: New file.
3107
3108         Tests for module 'asinl'.
3109         * modules/asinl-tests: New file.
3110         * tests/test-asinl.c: New file.
3111
3112         Tests for module 'acosl'.
3113         * modules/acosl-tests: New file.
3114         * tests/test-acosl.c: New file.
3115
3116         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3117         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3118         tanl): Use the standard gnulib idiom.
3119         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3120         * lib/sinl.c: Likewise.
3121         * lib/tanl.c: Don't include trigl.c.
3122         (kernel_tanl): Make static.
3123         * lib/sincosl.c: Include trigl.h first.
3124         * lib/trigl.c: Likewise.
3125         * m4/acosl.m4: New file.
3126         * m4/asinl.m4: New file.
3127         * m4/atanl.m4: New file.
3128         * m4/cosl.m4: New file.
3129         * m4/expl.m4: New file.
3130         * m4/logl.m4: New file.
3131         * m4/sinl.m4: New file.
3132         * m4/sqrtl.m4: New file.
3133         * m4/tanl.m4: New file.
3134         * m4/mathl.m4: Remove file.
3135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3136         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3137         Don't initialize GNULIB_MATHL.
3138         * modules/acosl: New file.
3139         * modules/asinl: New file.
3140         * modules/atanl: New file.
3141         * modules/cosl: New file.
3142         * modules/expl: New file.
3143         * modules/logl: New file.
3144         * modules/sinl: New file.
3145         * modules/sqrtl: New file.
3146         * modules/tanl: New file.
3147         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3148         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3149         substitute GNULIB_MATHL.
3150         * modules/mathl: Rewritten.
3151         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3152         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3153         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3154         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3155         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3156         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3157         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3158         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3159         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3160
3161 2010-01-18  Bruno Haible  <bruno@clisp.org>
3162
3163         sqrt: Make gl_FUNC_SQRT requirable.
3164         * m4/sqrt.m4: New file.
3165         * modules/sqrt (Files): Add it.
3166         (configure.ac): Invoke gl_FUNC_SQRT.
3167
3168 2010-01-18  Bruno Haible  <bruno@clisp.org>
3169
3170         New modules for common <math.h> functions.
3171         * m4/mathfunc.m4: New file.
3172         * modules/acos: New file.
3173         * modules/asin: New file.
3174         * modules/atan: New file.
3175         * modules/atan2: New file.
3176         * modules/cbrt: New file.
3177         * modules/copysign: New file.
3178         * modules/cos: New file.
3179         * modules/cosh: New file.
3180         * modules/erf: New file.
3181         * modules/erfc: New file.
3182         * modules/exp: New file.
3183         * modules/fabs: New file.
3184         * modules/fmod: New file.
3185         * modules/hypot: New file.
3186         * modules/j0: New file.
3187         * modules/j1: New file.
3188         * modules/jn: New file.
3189         * modules/ldexp: New file.
3190         * modules/lgamma: New file.
3191         * modules/log: New file.
3192         * modules/log10: New file.
3193         * modules/log1p: New file.
3194         * modules/logb: New file.
3195         * modules/modf: New file.
3196         * modules/nextafter: New file.
3197         * modules/pow: New file.
3198         * modules/remainder: New file.
3199         * modules/rint: New file.
3200         * modules/sin: New file.
3201         * modules/sinh: New file.
3202         * modules/sqrt: New file.
3203         * modules/tan: New file.
3204         * modules/tanh: New file.
3205         * modules/y0: New file.
3206         * modules/y1: New file.
3207         * modules/yn: New file.
3208         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3209         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3210         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3211         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3212         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3213         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3214         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3215         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3216         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3217         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3218         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3219         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3220         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3221         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3222         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3223         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3224         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3225         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3226         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3227         * doc/posix-functions/log.texi: Mention the 'log' module.
3228         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3229         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3230         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3231         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3232         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3233         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3234         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3235         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3236         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3237         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3238         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3239         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3240         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3241         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3242         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3243         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3244
3245 2010-01-18  Jim Meyering  <meyering@redhat.com>
3246
3247         ignore-value: relax license to LGPLv2+
3248         * modules/ignore-value (License): Relax to LGPLv2+.
3249
3250         getdate: don't leak when TZ contains two or more '"'s
3251         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3252         double quote in TZ after the first one.
3253
3254         readtokens: do not leak internal token_lengths buffer
3255         * lib/readtokens.c (readtokens): Free the local, lengths,
3256         when the supplied "token_lengths" parameter is NULL.
3257
3258 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3259
3260         Fix a couple of missing LIBTHREAD link failures on AIX.
3261         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3262         $(LIBTHREAD).
3263         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3264
3265         Link test-poll against INET_PTON_LIB.
3266         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3267         for inet_pton on Solaris 10.
3268
3269 2010-01-17  Bruno Haible  <bruno@clisp.org>
3270
3271         unistdio/*-sprintf: Fix typo in module description.
3272         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3273         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3274         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3275         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3276         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3277         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3278         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3280
3281 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3282
3283         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3284         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3285         variables in shell case patterns, for AIX and HP-UX ksh.
3286
3287         Split large sed scripts, for HP-UX sed.
3288         * modules/stdio: Split sed scripts around 50 sed commands,
3289         to avoid HP-UX limit of 99 commands, in the near future.
3290         * modules/string: Likewise.
3291         * modules/unistd: Likewise.
3292
3293         gnulib-tool: avoid writing in the current directory.
3294         * gnulib-tool (func_emit_lib_Makefile_am)
3295         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3296         not in the current directory, so concurrent gnulib-tool
3297         instances do not interfere.
3298
3299 2010-01-16  Jim Meyering  <meyering@redhat.com>
3300
3301         doc: update users.txt
3302         * users.txt: Add grep.
3303         (diffutils, gzip): Update URLs.
3304
3305 2010-01-12  Bruno Haible  <bruno@clisp.org>
3306
3307         posix_spawn: Avoid test failure on Cygwin.
3308         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3309         characters.
3310         Reported by Simon Josefsson.
3311
3312 2010-01-12  Bruno Haible  <bruno@clisp.org>
3313
3314         * tests/test-cond.c (main): When skipping the test, show the reason.
3315
3316 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3317
3318         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3319
3320 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3321
3322         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3323         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3324
3325 2010-01-12  Eric Blake  <ebb9@byu.net>
3326
3327         build: guarantee AS_VAR_IF
3328         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3329         (gl_AS_VAR_IF): Move...
3330         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3331         Reported by Simon Josefsson.
3332
3333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3334
3335         * lib/stdio.in.h: Fix typo.
3336
3337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3338
3339         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3340         libgpg-error.
3341
3342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3343
3344         * tests/test-xalloc-die.sh: Use $EXEEXT.
3345
3346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3347             Bruno Haible  <bruno@clisp.org>
3348
3349         getlogin, getlogin_r: Avoid test failure.
3350         * tests/test-getlogin.c: Include <stdio.h>.
3351         (main): Skip the test when the function fails because stdin is not a
3352         tty.
3353         * tests/test-getlogin_r.c: Include <stdio.h>.
3354         (main): Skip the test when the function fails because stdin is not a
3355         tty.
3356
3357 2010-01-11  Eric Blake  <ebb9@byu.net>
3358
3359         tests: avoid more large file warnings
3360         * tests/test-fflush.c: Avoid warning about ftell use.
3361         * tests/test-fseek.c: Avoid warning about fseek use.
3362
3363 2010-01-10  Bruno Haible  <bruno@clisp.org>
3364
3365         nproc: Work better on Linux when /proc and /sys are not mounted.
3366         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3367         as lower bound when, on glibc/Linux systems,
3368         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3369         Suggested by Pádraig Brady <P@draigbrady.com>.
3370         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3371
3372         nproc: Refactor.
3373         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3374         extracted from num_processors.
3375         (num_processors): Call it.
3376
3377 2010-01-11  Jim Meyering  <meyering@redhat.com>
3378
3379         utimecmp: avoid new warning from upcoming gcc-4.5.0
3380         * lib/utimecmp.c (BILLION): Define using #define rather than an
3381         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3382
3383 2010-01-11  Eric Blake  <ebb9@byu.net>
3384
3385         math: add portability warnings for classification macros
3386         * modules/math (Depends-on): Add warn-on-use.
3387         (Makefile.am): Provide new substitutions.
3388         * m4/math_h.m4 (gl_MATH_H): Require inline.
3389         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3390         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3391         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3392         implement warnings.
3393
3394         unistd: warn on use of environ without module
3395         * modules/unistd (Depends-on): Add warn-on-use.
3396         (Makefile.am): Provide new substitutions.
3397         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3398         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3399
3400         stdio: warn on suspicious uses
3401         * modules/stdio (Depends-on): Add warn-on-use.
3402         (Makefile.am): Provide new substitutions.
3403         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3404         fseeko.
3405         * lib/stdio.in.h (gets): Always warn on use.
3406         (fseek, ftell): Adjust when warnings are issued, and honor
3407         _GL_NO_LARGE_FILES as a way to silence the warning.
3408         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3409         any warning about large file offsets.
3410         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3411         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3412         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3413         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3414         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3415         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3416         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3417         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3418
3419         warn-on-use: new module
3420         * modules/warn-on-use: New file.
3421         * build-aux/warn-on-use.h: Likewise.
3422         * m4/warn-on-use.m4: Likewise.
3423         * MODULES.html.sh (Support for building): Mention it.
3424
3425 2010-01-10  Bruno Haible  <bruno@clisp.org>
3426
3427         Tests for module 'unistr/u32-strdup'.
3428         * modules/unistr/u32-strdup-tests: New file.
3429         * tests/unistr/test-u32-strdup.c: New file.
3430
3431         Tests for module 'unistr/u16-strdup'.
3432         * modules/unistr/u16-strdup-tests: New file.
3433         * tests/unistr/test-u16-strdup.c: New file.
3434
3435         Tests for module 'unistr/u8-strdup'.
3436         * modules/unistr/u8-strdup-tests: New file.
3437         * tests/unistr/test-u8-strdup.c: New file.
3438         * tests/unistr/test-strdup.h: New file.
3439
3440         Tests for module 'unistr/u32-strncmp'.
3441         * modules/unistr/u32-strncmp-tests: New file.
3442         * tests/unistr/test-u32-strncmp.c: New file.
3443
3444         Tests for module 'unistr/u16-strncmp'.
3445         * modules/unistr/u16-strncmp-tests: New file.
3446         * tests/unistr/test-u16-strncmp.c: New file.
3447
3448         Tests for module 'unistr/u8-strncmp'.
3449         * modules/unistr/u8-strncmp-tests: New file.
3450         * tests/unistr/test-u8-strncmp.c: New file.
3451         * tests/unistr/test-strncmp.h: New file.
3452
3453         Tests for module 'unistr/u32-strcoll'.
3454         * modules/unistr/u32-strcoll-tests: New file.
3455         * tests/unistr/test-u32-strcoll.c: New file.
3456
3457         Tests for module 'unistr/u16-strcoll'.
3458         * modules/unistr/u16-strcoll-tests: New file.
3459         * tests/unistr/test-u16-strcoll.c: New file.
3460
3461         Tests for module 'unistr/u8-strcoll'.
3462         * modules/unistr/u8-strcoll-tests: New file.
3463         * tests/unistr/test-u8-strcoll.c: New file.
3464
3465         Tests for module 'unistr/u32-strcmp'.
3466         * modules/unistr/u32-strcmp-tests: New file.
3467         * tests/unistr/test-u32-strcmp.c: New file.
3468         * tests/unistr/test-u32-strcmp.h: New file.
3469
3470         Tests for module 'unistr/u16-strcmp'.
3471         * modules/unistr/u16-strcmp-tests: New file.
3472         * tests/unistr/test-u16-strcmp.c: New file.
3473         * tests/unistr/test-u16-strcmp.h: New file.
3474
3475         Tests for module 'unistr/u8-strcmp'.
3476         * modules/unistr/u8-strcmp-tests: New file.
3477         * tests/unistr/test-u8-strcmp.c: New file.
3478         * tests/unistr/test-u8-strcmp.h: New file.
3479         * tests/unistr/test-strcmp.h: New file.
3480
3481         Tests for module 'unistr/u32-strncat'.
3482         * modules/unistr/u32-strncat-tests: New file.
3483         * tests/unistr/test-u32-strncat.c: New file.
3484
3485         Tests for module 'unistr/u16-strncat'.
3486         * modules/unistr/u16-strncat-tests: New file.
3487         * tests/unistr/test-u16-strncat.c: New file.
3488
3489         Tests for module 'unistr/u8-strncat'.
3490         * modules/unistr/u8-strncat-tests: New file.
3491         * tests/unistr/test-u8-strncat.c: New file.
3492         * tests/unistr/test-strncat.h: New file.
3493
3494         Tests for module 'unistr/u32-strcat'.
3495         * modules/unistr/u32-strcat-tests: New file.
3496         * tests/unistr/test-u32-strcat.c: New file.
3497
3498         Tests for module 'unistr/u16-strcat'.
3499         * modules/unistr/u16-strcat-tests: New file.
3500         * tests/unistr/test-u16-strcat.c: New file.
3501
3502         Tests for module 'unistr/u8-strcat'.
3503         * modules/unistr/u8-strcat-tests: New file.
3504         * tests/unistr/test-u8-strcat.c: New file.
3505         * tests/unistr/test-strcat.h: New file.
3506
3507         Tests for module 'unistr/u32-stpncpy'.
3508         * modules/unistr/u32-stpncpy-tests: New file.
3509         * tests/unistr/test-u32-stpncpy.c: New file.
3510
3511         Tests for module 'unistr/u16-stpncpy'.
3512         * modules/unistr/u16-stpncpy-tests: New file.
3513         * tests/unistr/test-u16-stpncpy.c: New file.
3514
3515         Tests for module 'unistr/u8-stpncpy'.
3516         * modules/unistr/u8-stpncpy-tests: New file.
3517         * tests/unistr/test-u8-stpncpy.c: New file.
3518         * tests/unistr/test-stpncpy.h: New file.
3519
3520         Tests for module 'unistr/u32-strncpy'.
3521         * modules/unistr/u32-strncpy-tests: New file.
3522         * tests/unistr/test-u32-strncpy.c: New file.
3523
3524         Tests for module 'unistr/u16-strncpy'.
3525         * modules/unistr/u16-strncpy-tests: New file.
3526         * tests/unistr/test-u16-strncpy.c: New file.
3527
3528         Tests for module 'unistr/u8-strncpy'.
3529         * modules/unistr/u8-strncpy-tests: New file.
3530         * tests/unistr/test-u8-strncpy.c: New file.
3531         * tests/unistr/test-strncpy.h: New file.
3532
3533         Tests for module 'unistr/u32-stpcpy'.
3534         * modules/unistr/u32-stpcpy-tests: New file.
3535         * tests/unistr/test-u32-stpcpy.c: New file.
3536
3537         Tests for module 'unistr/u16-stpcpy'.
3538         * modules/unistr/u16-stpcpy-tests: New file.
3539         * tests/unistr/test-u16-stpcpy.c: New file.
3540
3541         Tests for module 'unistr/u8-stpcpy'.
3542         * modules/unistr/u8-stpcpy-tests: New file.
3543         * tests/unistr/test-u8-stpcpy.c: New file.
3544         * tests/unistr/test-stpcpy.h: New file.
3545
3546         Tests for module 'unistr/u32-strcpy'.
3547         * modules/unistr/u32-strcpy-tests: New file.
3548         * tests/unistr/test-u32-strcpy.c: New file.
3549
3550         Tests for module 'unistr/u16-strcpy'.
3551         * modules/unistr/u16-strcpy-tests: New file.
3552         * tests/unistr/test-u16-strcpy.c: New file.
3553
3554         Tests for module 'unistr/u8-strcpy'.
3555         * modules/unistr/u8-strcpy-tests: New file.
3556         * tests/unistr/test-u8-strcpy.c: New file.
3557         * tests/unistr/test-strcpy.h: New file.
3558
3559         Tests for module 'unistr/u32-strnlen'.
3560         * modules/unistr/u32-strnlen-tests: New file.
3561         * tests/unistr/test-u32-strnlen.c: New file.
3562
3563         Tests for module 'unistr/u16-strnlen'.
3564         * modules/unistr/u16-strnlen-tests: New file.
3565         * tests/unistr/test-u16-strnlen.c: New file.
3566
3567         Tests for module 'unistr/u8-strnlen'.
3568         * modules/unistr/u8-strnlen-tests: New file.
3569         * tests/unistr/test-u8-strnlen.c: New file.
3570         * tests/unistr/test-strnlen.h: New file.
3571
3572         Tests for module 'unistr/u32-strlen'.
3573         * modules/unistr/u32-strlen-tests: New file.
3574         * tests/unistr/test-u32-strlen.c: New file.
3575
3576         Tests for module 'unistr/u16-strlen'.
3577         * modules/unistr/u16-strlen-tests: New file.
3578         * tests/unistr/test-u16-strlen.c: New file.
3579
3580         Tests for module 'unistr/u8-strlen'.
3581         * modules/unistr/u8-strlen-tests: New file.
3582         * tests/unistr/test-u8-strlen.c: New file.
3583
3584         Tests for module 'unistr/u32-prev'.
3585         * modules/unistr/u32-prev-tests: New file.
3586         * tests/unistr/test-u32-prev.c: New file.
3587
3588         Tests for module 'unistr/u16-prev'.
3589         * modules/unistr/u16-prev-tests: New file.
3590         * tests/unistr/test-u16-prev.c: New file.
3591
3592         Tests for module 'unistr/u8-prev'.
3593         * modules/unistr/u8-prev-tests: New file.
3594         * tests/unistr/test-u8-prev.c: New file.
3595
3596         Tests for module 'unistr/u32-next'.
3597         * modules/unistr/u32-next-tests: New file.
3598         * tests/unistr/test-u32-next.c: New file.
3599
3600         Tests for module 'unistr/u16-next'.
3601         * modules/unistr/u16-next-tests: New file.
3602         * tests/unistr/test-u16-next.c: New file.
3603
3604         Tests for module 'unistr/u8-next'.
3605         * modules/unistr/u8-next-tests: New file.
3606         * tests/unistr/test-u8-next.c: New file.
3607
3608         Tests for module 'unistr/u32-strmbtouc'.
3609         * modules/unistr/u32-strmbtouc-tests: New file.
3610         * tests/unistr/test-u32-strmbtouc.c: New file.
3611
3612         Tests for module 'unistr/u16-strmbtouc'.
3613         * modules/unistr/u16-strmbtouc-tests: New file.
3614         * tests/unistr/test-u16-strmbtouc.c: New file.
3615
3616         Tests for module 'unistr/u8-strmbtouc'.
3617         * modules/unistr/u8-strmbtouc-tests: New file.
3618         * tests/unistr/test-u8-strmbtouc.c: New file.
3619
3620         Tests for module 'unistr/u32-strmblen'.
3621         * modules/unistr/u32-strmblen-tests: New file.
3622         * tests/unistr/test-u32-strmblen.c: New file.
3623
3624         Tests for module 'unistr/u16-strmblen'.
3625         * modules/unistr/u16-strmblen-tests: New file.
3626         * tests/unistr/test-u16-strmblen.c: New file.
3627
3628         Tests for module 'unistr/u8-strmblen'.
3629         * modules/unistr/u8-strmblen-tests: New file.
3630         * tests/unistr/test-u8-strmblen.c: New file.
3631
3632         Tests for module 'unistr/u32-cpy-alloc'.
3633         * modules/unistr/u32-cpy-alloc-tests: New file.
3634         * tests/unistr/test-u32-cpy-alloc.c: New file.
3635
3636         Tests for module 'unistr/u16-cpy-alloc'.
3637         * modules/unistr/u16-cpy-alloc-tests: New file.
3638         * tests/unistr/test-u16-cpy-alloc.c: New file.
3639
3640         Tests for module 'unistr/u8-cpy-alloc'.
3641         * modules/unistr/u8-cpy-alloc-tests: New file.
3642         * tests/unistr/test-u8-cpy-alloc.c: New file.
3643         * tests/unistr/test-cpy-alloc.h: New file.
3644
3645         Tests for module 'unistr/u32-mbsnlen'.
3646         * modules/unistr/u32-mbsnlen-tests: New file.
3647         * tests/unistr/test-u32-mbsnlen.c: New file.
3648
3649         Tests for module 'unistr/u16-mbsnlen'.
3650         * modules/unistr/u16-mbsnlen-tests: New file.
3651         * tests/unistr/test-u16-mbsnlen.c: New file.
3652
3653         Tests for module 'unistr/u8-mbsnlen'.
3654         * modules/unistr/u8-mbsnlen-tests: New file.
3655         * tests/unistr/test-u8-mbsnlen.c: New file.
3656
3657         Tests for module 'unistr/u32-chr'.
3658         * modules/unistr/u32-chr-tests: New file.
3659         * tests/unistr/test-u32-chr.c: New file.
3660
3661         Tests for module 'unistr/u16-chr'.
3662         * modules/unistr/u16-chr-tests: New file.
3663         * tests/unistr/test-u16-chr.c: New file.
3664
3665         Tests for module 'unistr/u8-chr'.
3666         * modules/unistr/u8-chr-tests: New file.
3667         * tests/unistr/test-u8-chr.c: New file.
3668         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3669
3670         Tests for module 'unistr/u32-cmp2'.
3671         * modules/unistr/u32-cmp2-tests: New file.
3672         * tests/unistr/test-u32-cmp2.c: New file.
3673
3674         Tests for module 'unistr/u16-cmp2'.
3675         * modules/unistr/u16-cmp2-tests: New file.
3676         * tests/unistr/test-u16-cmp2.c: New file.
3677
3678         Tests for module 'unistr/u8-cmp2'.
3679         * modules/unistr/u8-cmp2-tests: New file.
3680         * tests/unistr/test-u8-cmp2.c: New file.
3681         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3682
3683         Tests for module 'unistr/u32-cmp'.
3684         * modules/unistr/u32-cmp-tests: New file.
3685         * tests/unistr/test-u32-cmp.c: New file.
3686
3687         Tests for module 'unistr/u16-cmp'.
3688         * modules/unistr/u16-cmp-tests: New file.
3689         * tests/unistr/test-u16-cmp.c: New file.
3690
3691         Tests for module 'unistr/u8-cmp'.
3692         * modules/unistr/u8-cmp-tests: New file.
3693         * tests/unistr/test-u8-cmp.c: New file.
3694         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3695
3696         Tests for module 'unistr/u32-set'.
3697         * modules/unistr/u32-set-tests: New file.
3698         * tests/unistr/test-u32-set.c: New file.
3699
3700         Tests for module 'unistr/u16-set'.
3701         * modules/unistr/u16-set-tests: New file.
3702         * tests/unistr/test-u16-set.c: New file.
3703
3704         Tests for module 'unistr/u8-set'.
3705         * modules/unistr/u8-set-tests: New file.
3706         * tests/unistr/test-u8-set.c: New file.
3707         * tests/unistr/test-set.h: New file.
3708
3709         Tests for module 'unistr/u32-move'.
3710         * modules/unistr/u32-move-tests: New file.
3711         * tests/unistr/test-u32-move.c: New file.
3712
3713         Tests for module 'unistr/u16-move'.
3714         * modules/unistr/u16-move-tests: New file.
3715         * tests/unistr/test-u16-move.c: New file.
3716
3717         Tests for module 'unistr/u8-move'.
3718         * modules/unistr/u8-move-tests: New file.
3719         * tests/unistr/test-u8-move.c: New file.
3720         * tests/unistr/test-move.h: New file.
3721
3722         Tests for module 'unistr/u32-cpy'.
3723         * modules/unistr/u32-cpy-tests: New file.
3724         * tests/unistr/test-u32-cpy.c: New file.
3725
3726         Tests for module 'unistr/u16-cpy'.
3727         * modules/unistr/u16-cpy-tests: New file.
3728         * tests/unistr/test-u16-cpy.c: New file.
3729
3730         Tests for module 'unistr/u8-cpy'.
3731         * modules/unistr/u8-cpy-tests: New file.
3732         * tests/unistr/test-u8-cpy.c: New file.
3733         * tests/unistr/test-cpy.h: New file.
3734
3735 2010-01-09  Bruno Haible  <bruno@clisp.org>
3736
3737         Tests for module 'unistr/u32-uctomb'.
3738         * modules/unistr/u32-uctomb-tests: New file.
3739         * tests/unistr/test-u32-uctomb.c: New file.
3740
3741         Tests for module 'unistr/u16-uctomb'.
3742         * modules/unistr/u16-uctomb-tests: New file.
3743         * tests/unistr/test-u16-uctomb.c: New file.
3744
3745         Tests for module 'unistr/u8-uctomb'.
3746         * modules/unistr/u8-uctomb-tests: New file.
3747         * tests/unistr/test-u8-uctomb.c: New file.
3748
3749         Tests for module 'unistr/u32-mbtoucr'.
3750         * modules/unistr/u32-mbtoucr-tests: New file.
3751         * tests/unistr/test-u32-mbtoucr.c: New file.
3752
3753         Tests for module 'unistr/u16-mbtoucr'.
3754         * modules/unistr/u16-mbtoucr-tests: New file.
3755         * tests/unistr/test-u16-mbtoucr.c: New file.
3756
3757         Tests for module 'unistr/u8-mbtoucr'.
3758         * modules/unistr/u8-mbtoucr-tests: New file.
3759         * tests/unistr/test-u8-mbtoucr.c: New file.
3760
3761         Tests for module 'unistr/u32-mbtouc'.
3762         * modules/unistr/u32-mbtouc-tests: New file.
3763         * tests/unistr/test-u32-mbtouc.c: New file.
3764
3765         Tests for module 'unistr/u16-mbtouc'.
3766         * modules/unistr/u16-mbtouc-tests: New file.
3767         * tests/unistr/test-u16-mbtouc.c: New file.
3768
3769         Tests for module 'unistr/u8-mbtouc'.
3770         * modules/unistr/u8-mbtouc-tests: New file.
3771         * tests/unistr/test-u8-mbtouc.c: New file.
3772
3773         Tests for module 'unistr/u32-mbtouc-unsafe'.
3774         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3775         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3776         * tests/unistr/test-u32-mbtouc.h: New file.
3777
3778         Tests for module 'unistr/u16-mbtouc-unsafe'.
3779         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3780         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3781         * tests/unistr/test-u16-mbtouc.h: New file.
3782
3783         Tests for module 'unistr/u8-mbtouc-unsafe'.
3784         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3785         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3786         * tests/unistr/test-u8-mbtouc.h: New file.
3787
3788         Tests for module 'unistr/u32-mblen'.
3789         * modules/unistr/u32-mblen-tests: New file.
3790         * tests/unistr/test-u32-mblen.c: New file.
3791
3792         Tests for module 'unistr/u16-mblen'.
3793         * modules/unistr/u16-mblen-tests: New file.
3794         * tests/unistr/test-u16-mblen.c: New file.
3795
3796         Tests for module 'unistr/u8-mblen'.
3797         * modules/unistr/u8-mblen-tests: New file.
3798         * tests/unistr/test-u8-mblen.c: New file.
3799
3800         Tests for module 'unistr/u32-to-u16'.
3801         * modules/unistr/u32-to-u16-tests: New file.
3802         * tests/unistr/test-u32-to-u16.c: New file.
3803
3804         Tests for module 'unistr/u32-to-u8'.
3805         * modules/unistr/u32-to-u8-tests: New file.
3806         * tests/unistr/test-u32-to-u8.c: New file.
3807
3808         Tests for module 'unistr/u16-to-u32'.
3809         * modules/unistr/u16-to-u32-tests: New file.
3810         * tests/unistr/test-u16-to-u32.c: New file.
3811
3812         Tests for module 'unistr/u16-to-u8'.
3813         * modules/unistr/u16-to-u8-tests: New file.
3814         * tests/unistr/test-u16-to-u8.c: New file.
3815
3816         Tests for module 'unistr/u8-to-u32'.
3817         * modules/unistr/u8-to-u32-tests: New file.
3818         * tests/unistr/test-u8-to-u32.c: New file.
3819
3820         Tests for module 'unistr/u8-to-u16'.
3821         * modules/unistr/u8-to-u16-tests: New file.
3822         * tests/unistr/test-u8-to-u16.c: New file.
3823
3824         Tests for module 'unistr/u32-check'.
3825         * modules/unistr/u32-check-tests: New file.
3826         * tests/unistr/test-u32-check.c: New file.
3827
3828         Tests for module 'unistr/u16-check'.
3829         * modules/unistr/u16-check-tests: New file.
3830         * tests/unistr/test-u16-check.c: New file.
3831
3832         Tests for module 'unistr/u8-check'.
3833         * modules/unistr/u8-check-tests: New file.
3834         * tests/unistr/test-u8-check.c: New file.
3835
3836         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3837         (category_equals): New function.
3838         (main): Add more tests.
3839         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3840
3841         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3842
3843 2010-01-10  Bruno Haible  <bruno@clisp.org>
3844
3845         unistr/u*-strcoll: Try harder to distinguish different strings.
3846         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3847         compare s1 and s2 to see if they are different.
3848
3849 2010-01-10  Bruno Haible  <bruno@clisp.org>
3850
3851         unistr/u*-stpncpy: Fix the return value.
3852         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3853         description of the return value consistent with stpncpy in glibc.
3854         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3855         written non-NUL unit.
3856
3857 2010-01-10  Bruno Haible  <bruno@clisp.org>
3858
3859         unistr/u*-next: Add missing dependencies.
3860         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3861         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3862         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3863
3864 2010-01-10  Bruno Haible  <bruno@clisp.org>
3865
3866         unistr/u8-mbsnlen: Fix return value for incomplete character.
3867         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3868         u8_mblen.
3869         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3870         Remove unistr/u8-mblen.
3871         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3872         u16_mblen.
3873         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3874         Remove unistr/u16-mblen.
3875
3876 2010-01-10  Bruno Haible  <bruno@clisp.org>
3877
3878         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3879         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3880         Reported by Brian Gough <bjg@gnu.org> and
3881         Chris Clayton <chris2553@googlemail.com> via
3882         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3883
3884 2010-01-09  Bruno Haible  <bruno@clisp.org>
3885
3886         unistr/u16-to-u32: Reject invalid input.
3887         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3888         u16_mbtouc.
3889         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3890         Remove unistr/u16-mbtouc.
3891
3892         unistr/u16-to-u8: Reject invalid input.
3893         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3894         u16_mbtouc.
3895         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3896         Remove unistr/u16-mbtouc.
3897
3898         unistr/u8-to-u32: Reject invalid input.
3899         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3900         u8_mbtouc.
3901         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3902         Remove unistr/u8-mbtouc.
3903
3904         unistr/u8-to-u16: Reject invalid input.
3905         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3906         u8_mbtouc.
3907         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3908         Remove unistr/u8-mbtouc.
3909
3910 2010-01-09  Bruno Haible  <bruno@clisp.org>
3911
3912         Tests for module 'getlogin'.
3913         * modules/getlogin-tests: New file.
3914         * tests/test-getlogin.c: New file.
3915
3916         New module 'getlogin'.
3917         * lib/unistd.in.h (getlogin): New declaration.
3918         * lib/getlogin.c: New file.
3919         * m4/getlogin.m4: New file.
3920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3921         HAVE_GETLOGIN.
3922         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3923         HAVE_GETLOGIN.
3924         * modules/getlogin: New file.
3925         * doc/posix-functions/getlogin.texi: Mention the new module.
3926         Reported by John W. Eaton <jwe@gnu.org>.
3927
3928 2010-01-09  Bruno Haible  <bruno@clisp.org>
3929
3930         getlogin_r: Support for native Windows.
3931         * lib/getlogin_r.c: Include <windows.h>
3932         (getlogin_r): Implement for native Windows.
3933         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3934         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3935         via John W. Eaton <jwe@gnu.org>.
3936
3937 2010-01-09  Bruno Haible  <bruno@clisp.org>
3938
3939         getlogin_r: Small fixes.
3940         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3941         succeeds.
3942         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3943         before testing whether getlogin_r is declared. No need to set
3944         HAVE_DECL_GETLOGIN_R to 1.
3945         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3946
3947 2010-01-09  Bruno Haible  <bruno@clisp.org>
3948
3949         * lib/unistd.in.h (getlogin_r): Add comment.
3950
3951 2010-01-09  Bruno Haible  <bruno@clisp.org>
3952
3953         Tests for module 'getlogin_r'.
3954         * modules/getlogin_r-tests: New file.
3955         * tests/test-getlogin_r.c: New file.
3956
3957 2010-01-09  Jim Meyering  <meyering@redhat.com>
3958
3959         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3960         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3961         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3962
3963 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3964
3965         * lib/dup2.c (rpl_dup2): Improve comment.
3966
3967 2010-01-08  Eric Blake  <ebb9@byu.net>
3968
3969         maint.mk: allow packages to add makefile @@ exceptions
3970         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3971         (sc_makefile_check): Rename...
3972         (sc_makefile_at_at_check): ...to this, and use hook.
3973
3974         dup2: work around mingw bug
3975         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3976         Reported by Simon Josefsson.
3977
3978 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3979
3980         glob: Fix C++ compilation.
3981         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3982         C++.
3983
3984 2010-01-07  Bruno Haible  <bruno@clisp.org>
3985
3986         Fix indentation of wctype.in.h, broken since 2007-01-06.
3987         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3988
3989 2010-01-07  Bruno Haible  <bruno@clisp.org>
3990
3991         mbslen: Avoid collision with system function.
3992         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3993         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3994         * m4/mbslen.m4: New file.
3995         * modules/mbslen (Files): Add it.
3996         (configure.ac): Invoke gl_MBSLEN.
3997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3998         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3999         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4000         via Ian Beckwith <ianb@erislabs.net>.
4001
4002 2010-01-07  Bruno Haible  <bruno@clisp.org>
4003
4004         dirent: Document the last fix.
4005         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4006
4007 2010-01-07  Bruno Haible  <bruno@clisp.org>
4008
4009         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4010         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4011         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4012         va_list are defined.
4013         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4014         Reported by Eric Blake.
4015
4016 2010-01-07  Bruno Haible  <bruno@clisp.org>
4017
4018         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4019         * modules/xlist (Depends-on): Add 'list',
4020         * modules/xoset (Depends-on): Add 'oset'.
4021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4022
4023 2010-01-07  Bruno Haible  <bruno@clisp.org>
4024
4025         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4026         * doc/posix-functions/strncasecmp.texi: Likewise.
4027
4028 2010-01-07  Bruno Haible  <bruno@clisp.org>
4029
4030         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4031
4032 2010-01-07  John W. Eaton  <jwe@octave.org>
4033
4034         wctype: allow C++ use
4035         * lib/wctype.in.h: Add extern "C" block for C++.
4036
4037 2010-01-06  Eric Blake  <ebb9@byu.net>
4038
4039         maint.mk: detect incorrect GFDL usage
4040         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4041
4042 2010-01-06  Jim Meyering  <meyering@redhat.com>
4043         and Eric Blake  <ebb9@byu.net>
4044
4045         maint.mk: ignore multi-line copyright in NEWS
4046         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4047
4048 2010-01-06  Eric Blake  <ebb9@byu.net>
4049
4050         select: add missing dependency
4051         * modules/select-tests (Depends-on): Move sockets dependency...
4052         * modules/select (Depends-on): ...here.
4053         Reported by Ian Beckwith.
4054
4055         doc: regenerate INSTALL
4056         * doc/INSTALL: Reflect recent autoconf update.
4057         * doc/INSTALL.ISO: Likewise.
4058         * doc/INSTALL.UTF-8: Likewise.
4059
4060         pread: fix compilation on glibc
4061         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4062         Reported by Ralf Wildenhues.
4063
4064         dirent: fix test failure
4065         * lib/dirent.in.h (includes): Guarantee ino_t.
4066         Reported by Ralf Wildenhues.
4067
4068 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4069
4070         linkat, renameat: avoid bad free
4071         * lib/at-func2.c (at_func2): Fix typo.
4072         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4073
4074 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4075
4076         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4077         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4078         to avoid failure of symlink test later.
4079
4080 2010-01-06  Eric Blake  <ebb9@byu.net>
4081
4082         stdio, unistd: guarantee ssize_t
4083         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4084         2008 are exposed when needed.
4085         * lib/stdio.in.h (includes): Likewise.
4086         Reported by Ralf Wildenhues.
4087
4088 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4089
4090         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4091         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4092         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4093
4094 2010-01-06  Jim Meyering  <meyering@redhat.com>
4095
4096         readtokens: this module *does* require xalloc.h
4097         It uses only functions that were omitted by the old syntax-check rule.
4098         * lib/readtokens.c: Include "xalloc.h" once again.
4099         * modules/readtokens (Depends-on): Add xalloc.
4100         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4101
4102 2010-01-05  Eric Blake  <ebb9@byu.net>
4103
4104         maint: support 'make announcement' from a VPATH build
4105         * top/maint.mk (announcement): Look for correct NEWS file.
4106
4107 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4108
4109         utimens (fdutimens): ignore a negative FD, per contract
4110         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4111         when we have a valid file descriptor.  Otherwise, using a brand
4112         new glibc (with just-patched futimens that now fails with EBADF)
4113         would cause this function to fail with ENOSYS.
4114         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4115         See also http://bugzilla.redhat.com/552320.
4116
4117 2010-01-05  Eric Blake  <ebb9@byu.net>
4118
4119         strcase: document what it provides
4120         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4121         gnulib module.
4122         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4123         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4124
4125 2010-01-05  Jim Meyering  <meyering@redhat.com>
4126
4127         maint: remove useless inclusions of "xalloc.h"
4128         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4129         * lib/readtokens.c: Likewise.
4130         * lib/same.c: Likewise.
4131         * modules/getloadavg (Depends-on): Remove xalloc.
4132         * modules/readtokens: Likewise.
4133         * modules/same: Likewise.
4134
4135         maint.mk: include 4 more function names in alloca.h-checking regexp
4136         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4137         regexp.  Before, we would give a false-positive (saying alloca.h
4138         is included unnecessarily) when the only uses involved omitted symbols.
4139
4140         xalloc.h: use consistent formatting
4141         * lib/xalloc.h: Move declarations to start in the first column.
4142
4143 2010-01-05  Eric Blake  <ebb9@byu.net>
4144
4145         mkdir: avoid xalloc
4146         * lib/mkdir.c (includes): Drop unused header.
4147         Reported by John W. Eaton.
4148
4149 2010-01-04  Jim Meyering  <meyering@redhat.com>
4150
4151         nl_langinfo: avoid configure-time syntax error
4152         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4153         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4154         the empty string.  Don't let that provoke a shell syntax error.
4155
4156         regcomp, regexec, fnmatch: avoid array bounds read error
4157         * lib/regcomp.c (build_equiv_class): From glibc:
4158         Use only the low 24 bits of a findidx return value as an index
4159         into the weights array.  Patch by Ulrich Drepper:
4160         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4161         * lib/regexec.c (check_node_accept_bytes): Likewise.
4162         * lib/fnmatch_loop.c (FCT): Likewise.
4163
4164         regcomp: skip collseq lookup when there are no rules
4165         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4166         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4167
4168         regcomp: recognize ill-formed { } expressions
4169         * lib/regcomp.c (parse_dup_op): From glibc:
4170         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4171
4172         regcomp: fix typo in comment
4173         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4174         s/satisfy/satisfies/.
4175
4176         regcomp: sync from glibc: remove dead store
4177         * lib/regcomp.c (duplicate_node_closure): Remove useless
4178         search_duplicated_node call and dead store.
4179
4180         regcomp: sync from glibc; always use nl_langinfo
4181         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4182         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4183         * modules/regex (Depends-on): Add nl_langinfo.
4184
4185 2010-01-04  Eric Blake  <ebb9@byu.net>
4186
4187         fdopendir: fix configure test
4188         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4189
4190 2010-01-01  Bruno Haible  <bruno@clisp.org>
4191
4192         wchar: Remove unused configure check.
4193         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4194
4195 2010-01-01  Eric Blake  <ebb9@byu.net>
4196
4197         headers: make check of system header explicit
4198         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4199         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4200         ourselves.
4201         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4203         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4204         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4205         internals.
4206         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4207         missing.
4208         Suggested by Bruno Haible.
4209
4210 2010-01-01  Jim Meyering  <meyering@redhat.com>
4211
4212         ChangeLog: tweak to eliminate unnecessary copyright line
4213         * ChangeLog: Remove a copyright line that was mistakenly updated
4214         by today's update-copyright run.  Reported by Eric Blake.
4215
4216         test-update-copyright: don't let envvar setting cause test failure
4217         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4218
4219 2010-01-01  Bruno Haible  <bruno@clisp.org>
4220
4221         localename: Avoid gcc warning.
4222         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4223         function if it is not used.
4224
4225 2010-01-01  Jim Meyering  <meyering@redhat.com>
4226
4227         update nearly all FSF copyright year lists to include 2010
4228         Use the same procedure as for 2009, outlined in
4229         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4230
4231         version-etc: set COPYRIGHT_YEAR to 2010
4232         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4233
4234 2009-12-31  Eric Blake  <ebb9@byu.net>
4235
4236         doc: correct availability of cygwin 1.5.x getopt
4237         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4238         variables.
4239         * doc/posix-functions/opterr.texi (opterr): Likewise.
4240         * doc/posix-functions/optind.texi (optind): Likewise.
4241         * doc/posix-functions/optopt.texi (optopt): Likewise.
4242         * doc/posix-functions/tzname.texi (tzname): Likewise.
4243
4244         openat: update maintainer
4245         * modules/openat (Maintainer): Add myself.
4246
4247         utimens: avoid shadowing warning
4248         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4249         buffers into one, to avoid shadowing, as well as avoiding a
4250         redundant stat.
4251         Reported by Jim Meyering.
4252
4253         test-dup2: avoid compiler warning
4254         * tests/test-dup2.c (is_inheritable): Only define if used.
4255
4256 2010-01-01  Bruno Haible  <bruno@clisp.org>
4257
4258         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4259         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4260         defined, use wctomb instead of wcrtomb.
4261
4262 2010-01-01  Bruno Haible  <bruno@clisp.org>
4263
4264         iconv: Reject native Solaris iconv.
4265         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4266         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4267
4268 2009-12-31  Bruno Haible  <bruno@clisp.org>
4269
4270         * tests/test-signal.c (main): Remove test of 'SIG'.
4271
4272 2009-12-31  Bruno Haible  <bruno@clisp.org>
4273
4274         spawn: Fix incomplete fix.
4275         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4276         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4277         warnings for GNULIB_POSIXCHECK again.
4278         Reported by Eric Blake.
4279
4280 2009-12-31  Bruno Haible  <bruno@clisp.org>
4281
4282         Avoid namespace pollution on glibc systems.
4283         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4284         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4285         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4286         glibc systems.
4287
4288 2009-12-31  Bruno Haible  <bruno@clisp.org>
4289
4290         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4291         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4292         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4293         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4294         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4295         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4296         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4297
4298 2009-12-31  Bruno Haible  <bruno@clisp.org>
4299
4300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4301         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4302         afterwards.
4303
4304 2009-12-31  Bruno Haible  <bruno@clisp.org>
4305
4306         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4307         SYS_UTSNAME_H.
4308
4309 2009-12-31  Bruno Haible  <bruno@clisp.org>
4310
4311         spawn: Fix misapplied patch.
4312         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4313         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4314         warnings for GNULIB_POSIXCHECK.
4315
4316 2009-12-31  Bruno Haible  <bruno@clisp.org>
4317
4318         times: Update after sys_times changed.
4319         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4320         * modules/times (Files): Add it.
4321         (configure.ac): Invoke gl_FUNC_TIMES.
4322
4323 2009-12-31  Bruno Haible  <bruno@clisp.org>
4324
4325         Use AC_C_INLINE where necessary.
4326         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4327         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4329         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4330         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4331         * m4/mbiter.m4 (gl_MBITER): Likewise.
4332         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4333         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4334         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4335         * modules/u64 (configure.ac): Likewise.
4336
4337 2009-12-31  Bruno Haible  <bruno@clisp.org>
4338
4339         Use AC_C_INLINE instead of module 'inline' where possible.
4340         * modules/inline (Description): Clarify purpose.
4341         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4342         * modules/count-one-bits (Depends-on): Remove inline.
4343         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4344         * modules/openat (Depends-on): Remove inline.
4345         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4346         instead of depending on module 'inline'.
4347         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4348         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4349         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4350         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4351         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4352         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4353         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4354         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4355         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4356         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4357         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4358         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4359         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4360         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4361         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4362         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4363         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4364         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4365         Likewise.
4366         * modules/unictype/property-ascii-hex-digit (Depends-on,
4367         configure.ac): Likewise.
4368         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4369         configure.ac): Likewise.
4370         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4371         configure.ac): Likewise.
4372         * modules/unictype/property-bidi-block-separator (Depends-on,
4373         configure.ac): Likewise.
4374         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4375         configure.ac): Likewise.
4376         * modules/unictype/property-bidi-common-separator (Depends-on,
4377         configure.ac): Likewise.
4378         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4379         Likewise.
4380         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4381         configure.ac): Likewise.
4382         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4383         configure.ac): Likewise.
4384         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4385         configure.ac): Likewise.
4386         * modules/unictype/property-bidi-european-digit (Depends-on,
4387         configure.ac): Likewise.
4388         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4389         configure.ac): Likewise.
4390         * modules/unictype/property-bidi-left-to-right (Depends-on,
4391         configure.ac): Likewise.
4392         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4393         configure.ac): Likewise.
4394         * modules/unictype/property-bidi-other-neutral (Depends-on,
4395         configure.ac): Likewise.
4396         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4397         Likewise.
4398         * modules/unictype/property-bidi-segment-separator (Depends-on,
4399         configure.ac): Likewise.
4400         * modules/unictype/property-bidi-whitespace (Depends-on,
4401         configure.ac): Likewise.
4402         * modules/unictype/property-combining (Depends-on, configure.ac):
4403         Likewise.
4404         * modules/unictype/property-composite (Depends-on, configure.ac):
4405         Likewise.
4406         * modules/unictype/property-currency-symbol (Depends-on,
4407         configure.ac): Likewise.
4408         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4409         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4410         Likewise.
4411         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4412         configure.ac): Likewise.
4413         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4414         Likewise.
4415         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4416         Likewise.
4417         * modules/unictype/property-extender (Depends-on, configure.ac):
4418         Likewise.
4419         * modules/unictype/property-format-control (Depends-on, configure.ac):
4420         Likewise.
4421         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4422         Likewise.
4423         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4424         Likewise.
4425         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4426         Likewise.
4427         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4428         Likewise.
4429         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4430         Likewise.
4431         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4432         Likewise.
4433         * modules/unictype/property-id-start (Depends-on, configure.ac):
4434         Likewise.
4435         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4436         Likewise.
4437         * modules/unictype/property-ids-binary-operator (Depends-on,
4438         configure.ac): Likewise.
4439         * modules/unictype/property-ids-trinary-operator (Depends-on,
4440         configure.ac): Likewise.
4441         * modules/unictype/property-ignorable-control (Depends-on,
4442         configure.ac): Likewise.
4443         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4444         Likewise.
4445         * modules/unictype/property-join-control (Depends-on, configure.ac):
4446         Likewise.
4447         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4448         Likewise.
4449         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4450         Likewise.
4451         * modules/unictype/property-logical-order-exception (Depends-on,
4452         configure.ac): Likewise.
4453         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4454         Likewise.
4455         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4456         * modules/unictype/property-non-break (Depends-on, configure.ac):
4457         Likewise.
4458         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4459         Likewise.
4460         * modules/unictype/property-numeric (Depends-on, configure.ac):
4461         Likewise.
4462         * modules/unictype/property-other-alphabetic (Depends-on,
4463         configure.ac): Likewise.
4464         * modules/unictype/property-other-default-ignorable-code-point
4465         (Depends-on, configure.ac): Likewise.
4466         * modules/unictype/property-other-grapheme-extend (Depends-on,
4467         configure.ac): Likewise.
4468         * modules/unictype/property-other-id-continue (Depends-on,
4469         configure.ac): Likewise.
4470         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4471         Likewise.
4472         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4473         Likewise.
4474         * modules/unictype/property-other-math (Depends-on, configure.ac):
4475         Likewise.
4476         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4477         Likewise.
4478         * modules/unictype/property-paired-punctuation (Depends-on,
4479         configure.ac): Likewise.
4480         * modules/unictype/property-paragraph-separator (Depends-on,
4481         configure.ac): Likewise.
4482         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4483         Likewise.
4484         * modules/unictype/property-pattern-white-space (Depends-on,
4485         configure.ac): Likewise.
4486         * modules/unictype/property-private-use (Depends-on, configure.ac):
4487         Likewise.
4488         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4489         Likewise.
4490         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4491         Likewise.
4492         * modules/unictype/property-radical (Depends-on, configure.ac):
4493         Likewise.
4494         * modules/unictype/property-sentence-terminal (Depends-on,
4495         configure.ac): Likewise.
4496         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4497         Likewise.
4498         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4499         * modules/unictype/property-terminal-punctuation (Depends-on,
4500         configure.ac): Likewise.
4501         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4502         Likewise.
4503         * modules/unictype/property-unassigned-code-value (Depends-on,
4504         configure.ac): Likewise.
4505         * modules/unictype/property-unified-ideograph (Depends-on,
4506         configure.ac): Likewise.
4507         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4508         Likewise.
4509         * modules/unictype/property-variation-selector (Depends-on,
4510         configure.ac): Likewise.
4511         * modules/unictype/property-white-space (Depends-on, configure.ac):
4512         Likewise.
4513         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4514         Likewise.
4515         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4516         Likewise.
4517         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4518         Likewise.
4519         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4520         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4521         Likewise.
4522
4523 2009-12-31  Bruno Haible  <bruno@clisp.org>
4524
4525         Remove unnecessary AC_C_INLINE invocation.
4526         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4527         since 2009-08-21.
4528
4529 2009-12-31  Jim Meyering  <meyering@redhat.com>
4530
4531         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4532         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4533         With this change, we can all remove the gpg_key_ID = ... definition
4534         from our respective cfg.mk files.
4535
4536         maint.mk: create announcement template in ~/, not in /tmp
4537         * top/maint.mk (emit_upload_commands): Adjust.
4538         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4539         Remove temporary file, .ci-msg.
4540
4541 2009-12-31  Eric Blake  <ebb9@byu.net>
4542
4543         link-warning: always build headers with link warnings
4544         * modules/arpa_inet (Makefile.am): Always build replacement
4545         header.
4546         * modules/ctype (Makefile.am): Likewise.
4547         * modules/dirent (Makefile.am): Likewise.
4548         * modules/inttypes (Makefile.am): Likewise.
4549         * modules/langinfo (Makefile.am): Likewise.
4550         * modules/locale (Makefile.am): Likewise.
4551         * modules/spawn (Makefile.am): Likewise.
4552         * modules/sys_file (Makefile.am): Likewise.
4553         * modules/sys_ioctl (Makefile.am): Likewise.
4554         * modules/sys_select (Makefile.am): Likewise.
4555         * modules/sys_socket (Makefile.am): Likewise.
4556         * modules/sys_times (Makefile.am): Likewise.
4557         * modules/sys_utsname (Makefile.am): Likewise.
4558         * modules/sys_wait (Makefile.am): Likewise.
4559         * modules/wchar (Makefile.am): Likewise.
4560         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4561         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4562         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4563         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4564         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4565         Likewise.
4566         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4567         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4568         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4569         Likewise.
4570         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4571         Likewise.
4572         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4574         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4576         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4577         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4578         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4579         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4580         (gl_WCHAR_H_DEFAULTS): Likewise.
4581
4582 2009-12-31  Eric Blake  <ebb9@byu.net>
4583
4584         signal, spawn: use link warnings
4585         * lib/signal.in.h (sigset_t): Make unconditional.
4586         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4587         (sigpending, sigprocmask, sigaction): Add link warnings.
4588         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4589         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4590         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4591         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4592         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4593         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4594         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4595         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4596         (posix_spawn_file_actions_destroy)
4597         (posix_spawn_file_actions_addopen)
4598         (posix_spawn_file_actions_addclose)
4599         (posix_spawn_file_actions_adddup2): Likewise.
4600         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4601         * tests/test-signal.c (main): Enhance test.
4602
4603         spawn: improve wrapper support
4604         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4605         (gl_SPAWN_H_DEFAULTS): New defaults.
4606         * modules/spawn (Makefile.am): Substitute them.
4607         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4608         Only declare if missing or broken.
4609
4610         sys_times, sys_utsname: use include_next
4611         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4612         header.
4613         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4614         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4615         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4616         * modules/sys_times (Depends-on): Add include_next.
4617         (Makefile.am): Substitute additional values.
4618         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4619         * lib/sys_times.in.h (includes): Include native header, if
4620         available.
4621         * lib/sys_utsname.in.h (includes): Likewise.
4622         * tests/test-sys_times.c (main): Enhance test.
4623
4624         fdutimensat: revert prior patch
4625         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4626         utimens.h.
4627         Reported by Bruno Haible.
4628
4629 2009-12-30  Eric Blake  <ebb9@byu.net>
4630
4631         sys_wait: drop link-warning dependency
4632         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4633         link-warning efforts.
4634         * lib/sys_wait.in.h: Likewise.
4635
4636         fdutimensat: remove bogus dependency
4637         * modules/fdutimensat (Depends-on): Drop inline.
4638
4639         unistd: fix typo
4640         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4641
4642 2009-12-30  Bruno Haible  <bruno@clisp.org>
4643
4644         Fix compilation error with Solaris cc.
4645         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4646         * lib/unicase/u16-is-invariant.c: Likewise.
4647         * lib/unicase/u32-is-invariant.c: Likewise.
4648         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4649
4650 2009-12-30  Bruno Haible  <bruno@clisp.org>
4651
4652         Fix test crash.
4653         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4654         locales.
4655         Reported by Simon Josefsson <simon@josefsson.org>.
4656
4657 2009-12-30  Bruno Haible  <bruno@clisp.org>
4658
4659         Fix compilation error on most platforms.
4660         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4661         Reported by Simon Josefsson <simon@josefsson.org>
4662         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4663
4664 2009-12-30  Eric Blake  <ebb9@byu.net>
4665
4666         futimens, utimensat: work around ntfs-3g bug
4667         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4668         a ctime bug is present, and expand workaround to cover ntfs-3g.
4669         * lib/utimens.c (fdutimens, lutimens): Likewise.
4670         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4671         (validate_timespec): Adjust return value.
4672         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4673         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4674         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4675
4676 2009-12-29  Eric Blake  <ebb9@byu.net>
4677
4678         link-warning: make usage consistent
4679         * modules/ctype (Depends-on): Add link-warning.
4680         (Makefile.am): Update rules accordingly.
4681         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4682         * modules/locale (Depends-on, Makefile.am): Likewise.
4683         * modules/sys_file (Makefile.am): Likewise.
4684         * modules/getopt-posix (Makefile.am): Delete unused link warning
4685         efforts.
4686         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4687         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4688         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4689         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4690
4691         stdio: remove unused variables
4692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4694         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4695
4696         tests: test more substitute headers
4697         * modules/ctype-tests: New file.
4698         * modules/dirent-tests: Likewise.
4699         * modules/spawn-tests: Likewise.
4700         * modules/sys_file-tests: Likewise.
4701         * modules/sys_ioctl-tests: Likewise.
4702         * modules/sys_wait-tests: Likewise.
4703         * tests/test-ctype.c: Likewise.
4704         * tests/test-dirent.c: Likewise.
4705         * tests/test-spawn.c: Likewise.
4706         * tests/test-sys_file.c: Likewise.
4707         * tests/test-sys_ioctl.c: Likewise.
4708         * tests/test-sys_wait.c: Likewise.
4709         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4710         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4711         whether or not flock is in use.
4712
4713         tests: remove License section from module
4714         * modules/arpa_inet-tests: Remove unneeded section.
4715         * modules/byteswap-tests: Likewise.
4716         * modules/ceilf-tests: Likewise.
4717         * modules/ceill-tests: Likewise.
4718         * modules/crypto/des-tests: Likewise.
4719         * modules/crypto/gc-arcfour-tests: Likewise.
4720         * modules/crypto/gc-arctwo-tests: Likewise.
4721         * modules/crypto/gc-des-tests: Likewise.
4722         * modules/crypto/gc-hmac-md5-tests: Likewise.
4723         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4724         * modules/crypto/gc-md2-tests: Likewise.
4725         * modules/crypto/gc-md4-tests: Likewise.
4726         * modules/crypto/gc-md5-tests: Likewise.
4727         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4728         * modules/crypto/gc-rijndael-tests: Likewise.
4729         * modules/crypto/gc-sha1-tests: Likewise.
4730         * modules/crypto/gc-tests: Likewise.
4731         * modules/crypto/md2-tests: Likewise.
4732         * modules/crypto/md4-tests: Likewise.
4733         * modules/fcntl-h-tests: Likewise.
4734         * modules/floorf-tests: Likewise.
4735         * modules/floorl-tests: Likewise.
4736         * modules/frexp-nolibm-tests: Likewise.
4737         * modules/frexp-tests: Likewise.
4738         * modules/frexpl-nolibm-tests: Likewise.
4739         * modules/frexpl-tests: Likewise.
4740         * modules/getaddrinfo-tests: Likewise.
4741         * modules/inttypes-tests: Likewise.
4742         * modules/isfinite-tests: Likewise.
4743         * modules/isinf-tests: Likewise.
4744         * modules/ldexpl-tests: Likewise.
4745         * modules/locale-tests: Likewise.
4746         * modules/math-tests: Likewise.
4747         * modules/netdb-tests: Likewise.
4748         * modules/netinet_in-tests: Likewise.
4749         * modules/printf-frexp-tests: Likewise.
4750         * modules/printf-frexpl-tests: Likewise.
4751         * modules/priv-set-tests: Likewise.
4752         * modules/random_r-tests: Likewise.
4753         * modules/round-tests: Likewise.
4754         * modules/roundf-tests: Likewise.
4755         * modules/roundl-tests: Likewise.
4756         * modules/search-tests: Likewise.
4757         * modules/select-tests: Likewise.
4758         * modules/signal-tests: Likewise.
4759         * modules/stdbool-tests: Likewise.
4760         * modules/stddef-tests: Likewise.
4761         * modules/stdint-tests: Likewise.
4762         * modules/stdio-tests: Likewise.
4763         * modules/stdlib-tests: Likewise.
4764         * modules/string-tests: Likewise.
4765         * modules/strings-tests: Likewise.
4766         * modules/sys_select-tests: Likewise.
4767         * modules/sys_socket-tests: Likewise.
4768         * modules/sys_stat-tests: Likewise.
4769         * modules/sys_time-tests: Likewise.
4770         * modules/sys_utsname-tests: Likewise.
4771         * modules/sysexits-tests: Likewise.
4772         * modules/time-tests: Likewise.
4773         * modules/trunc-tests: Likewise.
4774         * modules/truncf-tests: Likewise.
4775         * modules/truncl-tests: Likewise.
4776         * modules/tsearch-tests: Likewise.
4777         * modules/unistd-tests: Likewise.
4778         * modules/wchar-tests: Likewise.
4779         * modules/wctype-tests: Likewise.
4780
4781         tests: fix license on several tests
4782         * tests/test-des.c: Update to GPLv3+.
4783         * tests/test-flock.c: Likewise.
4784         * tests/test-fsync.c: Likewise.
4785         * tests/test-futimens.h: Likewise.
4786         * tests/test-gc-arcfour.c: Likewise.
4787         * tests/test-gc-arctwo.c: Likewise.
4788         * tests/test-gc-des.c: Likewise.
4789         * tests/test-gc-hmac-md5.c: Likewise.
4790         * tests/test-gc-hmac-sha1.c: Likewise.
4791         * tests/test-gc-md2.c: Likewise.
4792         * tests/test-gc-md4.c: Likewise.
4793         * tests/test-gc-md5.c: Likewise.
4794         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4795         * tests/test-gc-rijndael.c: Likewise.
4796         * tests/test-gc-sha1.c: Likewise.
4797         * tests/test-gc.c: Likewise.
4798         * tests/test-getcwd.c: Likewise.
4799         * tests/test-link.c: Likewise.
4800         * tests/test-link.h: Likewise.
4801         * tests/test-lutimens.h: Likewise.
4802         * tests/test-md2.c: Likewise.
4803         * tests/test-md4.c: Likewise.
4804         * tests/test-mkdir.h: Likewise.
4805         * tests/test-rename.c: Likewise.
4806         * tests/test-rename.h: Likewise.
4807         * tests/test-safe-alloc.c: Likewise.
4808         * tests/test-utimens-common.h: Likewise.
4809         * tests/test-utimens.h: Likewise.
4810
4811         maint: sync license texts
4812         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4813         * doc/gpl-3.0.texi: Revert copyright year update.
4814         * doc/lgpl-3.0.texi: Likewise.
4815
4816 2009-12-29  Jim Meyering  <meyering@redhat.com>
4817
4818         update nearly all FSF copyright year lists to include 2009
4819         The files named by the following are exempted:
4820             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4821               test -f "$dst" && { echo "$dst"; continue; }
4822               test -d "$dst" || continue
4823               echo "$dst"/$(basename "$src")
4824             done > exempt
4825             git ls-files tests/unictype >> exempt
4826         In the remaining files, convert to all-interval notation if
4827         - there is already at least one year interval like 2000-2003
4828         - the file is maintained by me
4829         - the file is in lib/uni*/, where that style already prevails
4830         Otherwise, use update-copyright's default.
4831
4832 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4833         and Eric Blake  <ebb9@byu.net>
4834
4835         tests: don't require debug system() to pass
4836         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4837         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4838         * tests/test-unlink.h (test_unlink_func): Likewise.
4839         * tests/test-fstatat.c (main): ...into callers.
4840         * tests/test-lstat.c (main): Likewise.
4841         * tests/test-rmdir.c (main): Likewise.
4842         * tests/test-unlink.c (main): Likewise.
4843         * tests/test-unlinkat.c (main): Likewise.
4844         * tests/test-areadlink-with-size.c (main): Don't require a
4845         debug-only system call to pass, aiding cross-testing to mingw.
4846         * tests/test-areadlink.c (main): Likewise.
4847         * tests/test-areadlinkat-with-size.c (main): Likewise.
4848         * tests/test-areadlinkat.c (main): Likewise.
4849         * tests/test-canonicalize-lgpl.c (main): Likewise.
4850         * tests/test-canonicalize.c (main): Likewise.
4851         * tests/test-chown.c (main): Likewise.
4852         * tests/test-fchownat.c (main): Likewise.
4853         * tests/test-lchown.c (main): Likewise.
4854         * tests/test-fdutimensat.c (main): Likewise.
4855         * tests/test-futimens.c (main): Likewise.
4856         * tests/test-link.c (main): Likewise.
4857         * tests/test-linkat.c (main): Likewise.
4858         * tests/test-mkdir.c (main): Likewise.
4859         * tests/test-mkdirat.c (main): Likewise.
4860         * tests/test-mkfifo.c (main): Likewise.
4861         * tests/test-mkfifoat.c (main): Likewise.
4862         * tests/test-mknod.c (main): Likewise.
4863         * tests/test-readlink.c (main): Likewise.
4864         * tests/test-remove.c (main): Likewise.
4865         * tests/test-rename.c (main): Likewise.
4866         * tests/test-renameat.c (main): Likewise.
4867         * tests/test-symlink.c (main): Likewise.
4868         * tests/test-symlinkat.c (main): Likewise.
4869         * tests/test-utimens.c (main): Likewise.
4870         * tests/test-utimensat.c (main): Likewise.
4871
4872 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4873
4874         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4875         on $(UNUSED_PARAMETER_H) to avoid build failure.
4876
4877 2009-12-28  Jim Meyering  <meyering@redhat.com>
4878
4879         update-copyright: you may specify a max. line length other than 72
4880         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4881
4882         maint: use consistent FSF copyright line syntax
4883         * lib/posixtm.c: Add missing comma in FSF copyright line.
4884         * lib/posixtm.h: Likewise.
4885         * lib/getugroups.c: Add missing ", Inc.".
4886
4887         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4888         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4889         FSF copyright line.  Remove trailing blanks.
4890
4891 2009-12-28  Eric Blake  <ebb9@byu.net>
4892
4893         test-dup2: reduce dependencies
4894         * modules/cloexec (Configure.ac): Set witness.
4895         * modules/dup2-tests (Depends-on): Drop cloexec.
4896         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4897         not present.
4898         Suggested by Bruno Haible.
4899
4900 2009-12-26  Bruno Haible  <bruno@clisp.org>
4901
4902         Remove an unneeded dependency.
4903         * modules/fseterr (Depends-on): Remove dup2.
4904
4905 2009-12-26  Eric Blake  <ebb9@byu.net>
4906
4907         tests: use macros.h in more places
4908         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4909         (ASSERT_STREAM): Provide default of stderr.
4910         * tests/test-dirent-safer.c: Include macros.h, using alternate
4911         stream for assertions.
4912         * tests/test-dup-safer.c: Likewise.
4913         * tests/test-freopen-safer.c: Likewise.
4914         * tests/test-getopt.c: Likewise.
4915         * tests/test-openat-safer.c: Likewise.
4916         * tests/test-pipe.c: Likewise.
4917         * tests/test-popen-safer.c: Likewise.
4918         * modules/dirent-safer-tests (Files): Include macros.h.
4919         * modules/unistd-safer-tests (Files): Likewise.
4920         * modules/freopen-safer-tests (Files): Likewise.
4921         * modules/getopt-posix-tests (Files): Likewise.
4922         * modules/openat-safer-tests (Files): Likewise.
4923         * modules/pipe-tests (Files): Likewise.
4924
4925 2009-12-26  Bruno Haible  <bruno@clisp.org>
4926
4927         javacomp: Portability fix.
4928         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4929         that it also works on Solaris.
4930
4931 2009-12-26  Bruno Haible  <bruno@clisp.org>
4932
4933         localename: Fix storage allocation of gl_locale_name_thread's result.
4934         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4935         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4936         all platforms that have 'uselocale'.
4937         (gl_locale_name_thread_unsafe): New function, extracted from
4938         gl_locale_name_thread.
4939         (gl_locale_name_thread): Call struniq on all platforms that have
4940         'uselocale'.
4941         * tests/test-localename.c (test_locale_name_thread): Check that the
4942         resulting strings are permanently allocated.
4943         * modules/localename-tests (Depends-on): Add strdup.
4944
4945 2009-12-26  Bruno Haible  <bruno@clisp.org>
4946
4947         * tests/test-localename.c (categories): Fill in the strings.
4948
4949 2009-12-26  Jim Meyering  <meyering@redhat.com>
4950
4951         isdir: complete the removal of m4/isdir.m4
4952         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4953
4954         isdir: clean up, since at least grep still uses it
4955         * lib/isdir.c: Include "isdir.h".
4956         (S_ISDIR): Remove now-unneeded definition.
4957         * modules/isdir (Files): Add lib/isdir.h.
4958         * lib/isdir.h: New file, with declaration.
4959         * m4/isdir.m4: Remove file -- unneeded.
4960
4961 2009-12-25  Bruno Haible  <bruno@clisp.org>
4962
4963         selinux-h: Make generated .h files standalone.
4964         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4965         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4966         * lib/se-selinux.in.h: Likewise.
4967         * modules/selinux-h (Depends-on): Add unused-parameter.
4968         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4969         selinux/selinux.h and selinux/context.h.
4970         Suggested by Eric Blake.
4971
4972 2009-12-25  Bruno Haible  <bruno@clisp.org>
4973
4974         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4975         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4976         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4977         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4978         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4979
4980 2009-12-24  Bruno Haible  <bruno@clisp.org>
4981
4982         openat: Fix warning.
4983         * lib/openat-proc.c: Include <unistd.h>.
4984
4985 2009-12-24  Bruno Haible  <bruno@clisp.org>
4986
4987         New module 'unused-parameter'.
4988         * build-aux/unused-parameter.h: New file, extracted from earlier
4989         gnulib-common.m4.
4990         * modules/unused-parameter: New file.
4991         * lib/unistr.h: Include unused-parameter.h.
4992         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4993         _GL_UNUSED.
4994         * modules/unistr/base (Depends-on): Add unused-parameter.
4995
4996 2009-12-24  Bruno Haible  <bruno@clisp.org>
4997
4998         Add missing dependencies to 'extensions' module.
4999         * m4/extensions.m4: Add comment.
5000         * modules/accept4 (Depends-on): Add extensions.
5001         * modules/dup3 (Depends-on): Likewise.
5002         * modules/fcntl (Depends-on): Likewise.
5003         * modules/futimens (Depends-on): Likewise.
5004         * modules/mknod (Depends-on): Likewise.
5005         * modules/pipe2 (Depends-on): Likewise.
5006         * modules/stat-time (Depends-on): Likewise.
5007         * modules/strcasestr-simple (Depends-on): Likewise.
5008         * modules/strsignal (Depends-on): Likewise.
5009         * modules/utimensat (Depends-on): Likewise.
5010         * modules/localcharset (Depends-on): Likewise. Needed because of
5011         gl_FCNTL_O_FLAGS.
5012         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5013         AC_TYPE_MBSTATE_T.
5014         * modules/wcsnrtombs (Depends-on): Likewise.
5015         * modules/wcsrtombs (Depends-on): Likewise.
5016
5017 2009-12-24  Bruno Haible  <bruno@clisp.org>
5018
5019         binary-io: Avoid gcc warning due to SET_BINARY.
5020         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5021         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5022
5023 2009-12-24  Bruno Haible  <bruno@clisp.org>
5024
5025         Avoid future namespace pollution on glibc systems.
5026         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5027         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5028         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5029         glibc systems.
5030
5031 2009-12-24  Bruno Haible  <bruno@clisp.org>
5032
5033         Refactor common macros used in tests.
5034         * tests/macros.h: New file.
5035         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5036         and/or <stdlib.h>, if appropriate.
5037         (ASSERT, SIZEOF): Remove macros.
5038         * tests/test-areadlink-with-size.c: Likewise.
5039         * tests/test-areadlinkat.c: Likewise.
5040         * tests/test-areadlinkat-with-size.c: Likewise.
5041         * tests/test-argmatch.c: Likewise.
5042         * tests/test-argv-iter.c: Likewise.
5043         * tests/test-array-mergesort.c: Likewise.
5044         * tests/test-array_list.c: Likewise.
5045         * tests/test-array_oset.c: Likewise.
5046         * tests/test-avltree_list.c: Likewise.
5047         * tests/test-avltree_oset.c: Likewise.
5048         * tests/test-avltreehash_list.c: Likewise.
5049         * tests/test-base64.c: Likewise.
5050         * tests/test-binary-io.c: Likewise.
5051         * tests/test-bitrotate.c: Likewise.
5052         * tests/test-btowc.c: Likewise.
5053         * tests/test-byteswap.c: Likewise.
5054         * tests/test-c-ctype.c: Likewise.
5055         * tests/test-c-stack.c: Likewise.
5056         * tests/test-c-strcasecmp.c: Likewise.
5057         * tests/test-c-strcasestr.c: Likewise.
5058         * tests/test-c-strncasecmp.c: Likewise.
5059         * tests/test-c-strstr.c: Likewise.
5060         * tests/test-canonicalize-lgpl.c: Likewise.
5061         * tests/test-canonicalize.c: Likewise.
5062         * tests/test-carray_list.c: Likewise.
5063         * tests/test-ceilf1.c: Likewise.
5064         * tests/test-ceilf2.c: Likewise.
5065         * tests/test-ceill.c: Likewise.
5066         * tests/test-chown.c: Likewise.
5067         * tests/test-cloexec.c: Likewise.
5068         * tests/test-copy-acl.c: Likewise.
5069         * tests/test-copy-file.c: Likewise.
5070         * tests/test-count-one-bits.c: Likewise.
5071         * tests/test-dprintf-posix.c: Likewise.
5072         * tests/test-dup2.c: Likewise.
5073         * tests/test-dup3.c: Likewise.
5074         * tests/test-duplocale.c: Likewise.
5075         * tests/test-fbufmode.c: Likewise.
5076         * tests/test-fchdir.c: Likewise.
5077         * tests/test-fchownat.c: Likewise.
5078         * tests/test-fcntl-safer.c: Likewise.
5079         * tests/test-fcntl.c: Likewise.
5080         * tests/test-fdopendir.c: Likewise.
5081         * tests/test-fdutimensat.c: Likewise.
5082         * tests/test-fflush2.c: Likewise.
5083         * tests/test-file-has-acl.c: Likewise.
5084         * tests/test-filevercmp.c: Likewise.
5085         * tests/test-flock.c: Likewise.
5086         * tests/test-floorf1.c: Likewise.
5087         * tests/test-floorf2.c: Likewise.
5088         * tests/test-floorl.c: Likewise.
5089         * tests/test-fnmatch.c: Likewise.
5090         * tests/test-fopen.h: Likewise.
5091         * tests/test-fpending.c: Likewise.
5092         * tests/test-fprintf-posix.c: Likewise.
5093         * tests/test-fpurge.c: Likewise.
5094         * tests/test-freadable.c: Likewise.
5095         * tests/test-freadahead.c: Likewise.
5096         * tests/test-freading.c: Likewise.
5097         * tests/test-freadptr.c: Likewise.
5098         * tests/test-freadptr2.c: Likewise.
5099         * tests/test-freadseek.c: Likewise.
5100         * tests/test-freopen.c: Likewise.
5101         * tests/test-frexp.c: Likewise.
5102         * tests/test-frexpl.c: Likewise.
5103         * tests/test-fseek.c: Likewise.
5104         * tests/test-fseeko.c: Likewise.
5105         * tests/test-fstatat.c: Likewise.
5106         * tests/test-fstrcmp.c: Likewise.
5107         * tests/test-fsync.c: Likewise.
5108         * tests/test-ftell.c: Likewise.
5109         * tests/test-ftello.c: Likewise.
5110         * tests/test-func.c: Likewise.
5111         * tests/test-futimens.c: Likewise.
5112         * tests/test-fwritable.c: Likewise.
5113         * tests/test-fwriting.c: Likewise.
5114         * tests/test-getcwd.c: Likewise.
5115         * tests/test-getdate.c: Likewise.
5116         * tests/test-getdelim.c: Likewise.
5117         * tests/test-getdtablesize.c: Likewise.
5118         * tests/test-getgroups.c: Likewise.
5119         * tests/test-getline.c: Likewise.
5120         * tests/test-getndelim2.c: Likewise.
5121         * tests/test-glob.c: Likewise.
5122         * tests/test-hash.c: Likewise.
5123         * tests/test-i-ring.c: Likewise.
5124         * tests/test-iconv-utf.c: Likewise.
5125         * tests/test-iconv.c: Likewise.
5126         * tests/test-idpriv-drop.c: Likewise.
5127         * tests/test-idpriv-droptemp.c: Likewise.
5128         * tests/test-inet_ntop.c: Likewise.
5129         * tests/test-inet_pton.c: Likewise.
5130         * tests/test-isblank.c: Likewise.
5131         * tests/test-isfinite.c: Likewise.
5132         * tests/test-isinf.c: Likewise.
5133         * tests/test-isnan.c: Likewise.
5134         * tests/test-isnand.h: Likewise.
5135         * tests/test-isnanf.h: Likewise.
5136         * tests/test-isnanl.h: Likewise.
5137         * tests/test-lchown.c: Likewise.
5138         * tests/test-ldexpl.c: Likewise.
5139         * tests/test-link.c: Likewise.
5140         * tests/test-linkat.c: Likewise.
5141         * tests/test-linked_list.c: Likewise.
5142         * tests/test-linkedhash_list.c: Likewise.
5143         * tests/test-localename.c: Likewise.
5144         * tests/test-lseek.c: Likewise.
5145         * tests/test-lstat.c: Likewise.
5146         * tests/test-mbmemcasecmp.c: Likewise.
5147         * tests/test-mbmemcasecoll.c: Likewise.
5148         * tests/test-mbrtowc.c: Likewise.
5149         * tests/test-mbscasecmp.c: Likewise.
5150         * tests/test-mbscasestr1.c: Likewise.
5151         * tests/test-mbscasestr2.c: Likewise.
5152         * tests/test-mbscasestr3.c: Likewise.
5153         * tests/test-mbscasestr4.c: Likewise.
5154         * tests/test-mbschr.c: Likewise.
5155         * tests/test-mbscspn.c: Likewise.
5156         * tests/test-mbsinit.c: Likewise.
5157         * tests/test-mbsncasecmp.c: Likewise.
5158         * tests/test-mbsnrtowcs.c: Likewise.
5159         * tests/test-mbspbrk.c: Likewise.
5160         * tests/test-mbspcasecmp.c: Likewise.
5161         * tests/test-mbsrchr.c: Likewise.
5162         * tests/test-mbsrtowcs.c: Likewise.
5163         * tests/test-mbsspn.c: Likewise.
5164         * tests/test-mbsstr1.c: Likewise.
5165         * tests/test-mbsstr2.c: Likewise.
5166         * tests/test-mbsstr3.c: Likewise.
5167         * tests/test-memchr.c: Likewise.
5168         * tests/test-memchr2.c: Likewise.
5169         * tests/test-memcmp.c: Likewise.
5170         * tests/test-memmem.c: Likewise.
5171         * tests/test-memrchr.c: Likewise.
5172         * tests/test-mkdir.c: Likewise.
5173         * tests/test-mkdirat.c: Likewise.
5174         * tests/test-mkfifo.c: Likewise.
5175         * tests/test-mkfifoat.c: Likewise.
5176         * tests/test-mknod.c: Likewise.
5177         * tests/test-nanosleep.c: Likewise.
5178         * tests/test-nl_langinfo.c: Likewise.
5179         * tests/test-obstack-printf.c: Likewise.
5180         * tests/test-open.c: Likewise.
5181         * tests/test-openat.c: Likewise.
5182         * tests/test-pipe-filter-gi1.c: Likewise.
5183         * tests/test-pipe-filter-gi2-main.c: Likewise.
5184         * tests/test-pipe-filter-ii1.c: Likewise.
5185         * tests/test-pipe-filter-ii2-main.c: Likewise.
5186         * tests/test-pipe2.c: Likewise.
5187         * tests/test-popen.h: Likewise.
5188         * tests/test-posixtm.c: Likewise.
5189         * tests/test-pread.c: Likewise.
5190         * tests/test-printf-frexp.c: Likewise.
5191         * tests/test-printf-frexpl.c: Likewise.
5192         * tests/test-printf-posix.c: Likewise.
5193         * tests/test-priv-set.c: Likewise.
5194         * tests/test-quotearg.c: Likewise.
5195         * tests/test-random_r.c: Likewise.
5196         * tests/test-rawmemchr.c: Likewise.
5197         * tests/test-rbtree_list.c: Likewise.
5198         * tests/test-rbtree_oset.c: Likewise.
5199         * tests/test-rbtreehash_list.c: Likewise.
5200         * tests/test-readlink.c: Likewise.
5201         * tests/test-remove.c: Likewise.
5202         * tests/test-rename.c: Likewise.
5203         * tests/test-renameat.c: Likewise.
5204         * tests/test-rmdir.c: Likewise.
5205         * tests/test-round1.c: Likewise.
5206         * tests/test-roundf1.c: Likewise.
5207         * tests/test-roundl.c: Likewise.
5208         * tests/test-safe-alloc.c: Likewise.
5209         * tests/test-sameacls.c: Likewise.
5210         * tests/test-set-mode-acl.c: Likewise.
5211         * tests/test-setenv.c: Likewise.
5212         * tests/test-sigaction.c: Likewise.
5213         * tests/test-signbit.c: Likewise.
5214         * tests/test-sleep.c: Likewise.
5215         * tests/test-snprintf-posix.c: Likewise.
5216         * tests/test-snprintf.c: Likewise.
5217         * tests/test-sprintf-posix.c: Likewise.
5218         * tests/test-stat-time.c: Likewise.
5219         * tests/test-stat.c: Likewise.
5220         * tests/test-strcasestr.c: Likewise.
5221         * tests/test-strchrnul.c: Likewise.
5222         * tests/test-strerror.c: Likewise.
5223         * tests/test-striconv.c: Likewise.
5224         * tests/test-striconveh.c: Likewise.
5225         * tests/test-striconveha.c: Likewise.
5226         * tests/test-strsignal.c: Likewise.
5227         * tests/test-strstr.c: Likewise.
5228         * tests/test-strtod.c: Likewise.
5229         * tests/test-strverscmp.c: Likewise.
5230         * tests/test-symlink.c: Likewise.
5231         * tests/test-symlinkat.c: Likewise.
5232         * tests/test-trunc1.c: Likewise.
5233         * tests/test-trunc2.c: Likewise.
5234         * tests/test-truncf1.c: Likewise.
5235         * tests/test-truncf2.c: Likewise.
5236         * tests/test-truncl.c: Likewise.
5237         * tests/test-uname.c: Likewise.
5238         * tests/test-unlink.c: Likewise.
5239         * tests/test-unlinkat.c: Likewise.
5240         * tests/test-unsetenv.c: Likewise.
5241         * tests/test-usleep.c: Likewise.
5242         * tests/test-utimens.c: Likewise.
5243         * tests/test-utimensat.c: Likewise.
5244         * tests/test-vasnprintf-posix.c: Likewise.
5245         * tests/test-vasnprintf-posix2.c: Likewise.
5246         * tests/test-vasnprintf.c: Likewise.
5247         * tests/test-vasprintf-posix.c: Likewise.
5248         * tests/test-vasprintf.c: Likewise.
5249         * tests/test-vdprintf-posix.c: Likewise.
5250         * tests/test-vfprintf-posix.c: Likewise.
5251         * tests/test-vprintf-posix.c: Likewise.
5252         * tests/test-vsnprintf-posix.c: Likewise.
5253         * tests/test-vsnprintf.c: Likewise.
5254         * tests/test-vsprintf-posix.c: Likewise.
5255         * tests/test-wcrtomb.c: Likewise.
5256         * tests/test-wcsnrtombs.c: Likewise.
5257         * tests/test-wcsrtombs.c: Likewise.
5258         * tests/test-wctype.c: Likewise.
5259         * tests/test-wcwidth.c: Likewise.
5260         * tests/test-xfprintf-posix.c: Likewise.
5261         * tests/test-xmemdup0.c: Likewise.
5262         * tests/test-xprintf-posix.c: Likewise.
5263         * tests/test-xvasprintf.c: Likewise.
5264         * tests/unicase/test-locale-language.c: Likewise.
5265         * tests/unicase/test-mapping-part1.h: Likewise.
5266         * tests/unicase/test-predicate-part1.h: Likewise.
5267         * tests/unicase/test-u8-casecmp.c: Likewise.
5268         * tests/unicase/test-u8-casecoll.c: Likewise.
5269         * tests/unicase/test-u8-casefold.c: Likewise.
5270         * tests/unicase/test-u8-is-cased.c: Likewise.
5271         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5272         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5273         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5274         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5275         * tests/unicase/test-u8-tolower.c: Likewise.
5276         * tests/unicase/test-u8-totitle.c: Likewise.
5277         * tests/unicase/test-u8-toupper.c: Likewise.
5278         * tests/unicase/test-u16-casecmp.c: Likewise.
5279         * tests/unicase/test-u16-casecoll.c: Likewise.
5280         * tests/unicase/test-u16-casefold.c: Likewise.
5281         * tests/unicase/test-u16-is-cased.c: Likewise.
5282         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5283         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5284         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5285         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5286         * tests/unicase/test-u16-tolower.c: Likewise.
5287         * tests/unicase/test-u16-totitle.c: Likewise.
5288         * tests/unicase/test-u16-toupper.c: Likewise.
5289         * tests/unicase/test-u32-casecmp.c: Likewise.
5290         * tests/unicase/test-u32-casecoll.c: Likewise.
5291         * tests/unicase/test-u32-casefold.c: Likewise.
5292         * tests/unicase/test-u32-is-cased.c: Likewise.
5293         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5294         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5295         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5296         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5297         * tests/unicase/test-u32-tolower.c: Likewise.
5298         * tests/unicase/test-u32-totitle.c: Likewise.
5299         * tests/unicase/test-u32-toupper.c: Likewise.
5300         * tests/unicase/test-ulc-casecmp.c: Likewise.
5301         * tests/unicase/test-ulc-casecoll.c: Likewise.
5302         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5303         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5304         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5305         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5306         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5307         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5308         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5309         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5310         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5311         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5312         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5313         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5314         * tests/unictype/test-bidi_byname.c: Likewise.
5315         * tests/unictype/test-bidi_name.c: Likewise.
5316         * tests/unictype/test-bidi_of.c: Likewise.
5317         * tests/unictype/test-bidi_test.c: Likewise.
5318         * tests/unictype/test-block_list.c: Likewise.
5319         * tests/unictype/test-block_of.c: Likewise.
5320         * tests/unictype/test-block_test.c: Likewise.
5321         * tests/unictype/test-categ_and.c: Likewise.
5322         * tests/unictype/test-categ_and_not.c: Likewise.
5323         * tests/unictype/test-categ_byname.c: Likewise.
5324         * tests/unictype/test-categ_name.c: Likewise.
5325         * tests/unictype/test-categ_none.c: Likewise.
5326         * tests/unictype/test-categ_of.c: Likewise.
5327         * tests/unictype/test-categ_or.c: Likewise.
5328         * tests/unictype/test-categ_test_withtable.c: Likewise.
5329         * tests/unictype/test-combining.c: Likewise.
5330         * tests/unictype/test-decdigit.c: Likewise.
5331         * tests/unictype/test-digit.c: Likewise.
5332         * tests/unictype/test-mirror.c: Likewise.
5333         * tests/unictype/test-numeric.c: Likewise.
5334         * tests/unictype/test-pr_byname.c: Likewise.
5335         * tests/unictype/test-pr_test.c: Likewise.
5336         * tests/unictype/test-predicate-part1.h: Likewise.
5337         * tests/unictype/test-scripts.c: Likewise.
5338         * tests/unictype/test-sy_c_ident.c: Likewise.
5339         * tests/unictype/test-sy_java_ident.c: Likewise.
5340         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5341         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5342         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5343         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5344         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5345         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5346         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5347         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5348         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5349         * tests/uninorm/test-compat-decomposition.c: Likewise.
5350         * tests/uninorm/test-composition.c: Likewise.
5351         * tests/uninorm/test-decomposing-form.c: Likewise.
5352         * tests/uninorm/test-decomposition.c: Likewise.
5353         * tests/uninorm/test-u8-nfc.c: Likewise.
5354         * tests/uninorm/test-u8-nfd.c: Likewise.
5355         * tests/uninorm/test-u8-nfkc.c: Likewise.
5356         * tests/uninorm/test-u8-nfkd.c: Likewise.
5357         * tests/uninorm/test-u8-normcmp.c: Likewise.
5358         * tests/uninorm/test-u8-normcoll.c: Likewise.
5359         * tests/uninorm/test-u16-nfc.c: Likewise.
5360         * tests/uninorm/test-u16-nfd.c: Likewise.
5361         * tests/uninorm/test-u16-nfkc.c: Likewise.
5362         * tests/uninorm/test-u16-nfkd.c: Likewise.
5363         * tests/uninorm/test-u16-normcmp.c: Likewise.
5364         * tests/uninorm/test-u16-normcoll.c: Likewise.
5365         * tests/uninorm/test-u32-nfc.c: Likewise.
5366         * tests/uninorm/test-u32-nfd.c: Likewise.
5367         * tests/uninorm/test-u32-nfkc.c: Likewise.
5368         * tests/uninorm/test-u32-nfkd.c: Likewise.
5369         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5370         * tests/uninorm/test-u32-normcmp.c: Likewise.
5371         * tests/uninorm/test-u32-normcoll.c: Likewise.
5372         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5373         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5374         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5375         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5376         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5377         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5378         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5379         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5380         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5381         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5382         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5383         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5384         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5385         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5386         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5387         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5388         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5389         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5390         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5391         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5392         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5393         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5394         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5395         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5396         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5397         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5398         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5399         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5400         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5401         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5402         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5403         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5404         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5405         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5406         * tests/uniwidth/test-u8-width.c: Likewise.
5407         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5408         * tests/uniwidth/test-u16-width.c: Likewise.
5409         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5410         * tests/uniwidth/test-u32-width.c: Likewise.
5411         * tests/uniwidth/test-uc_width.c: Likewise.
5412         * tests/uniwidth/test-uc_width2.c: Likewise.
5413         * modules/acl-tests (Files): Add tests/macros.h.
5414         * modules/areadlink-tests (Files): Likewise.
5415         * modules/areadlink-with-size-tests (Files): Likewise.
5416         * modules/areadlinkat-tests (Files): Likewise.
5417         * modules/areadlinkat-with-size-tests (Files): Likewise.
5418         * modules/argmatch-tests (Files): Likewise.
5419         * modules/argv-iter-tests (Files): Likewise.
5420         * modules/array-list-tests (Files): Likewise.
5421         * modules/array-mergesort-tests (Files): Likewise.
5422         * modules/array-oset-tests (Files): Likewise.
5423         * modules/avltree-list-tests (Files): Likewise.
5424         * modules/avltree-oset-tests (Files): Likewise.
5425         * modules/avltreehash-list-tests (Files): Likewise.
5426         * modules/base64-tests (Files): Likewise.
5427         * modules/binary-io-tests (Files): Likewise.
5428         * modules/bitrotate-tests (Files): Likewise.
5429         * modules/btowc-tests (Files): Likewise.
5430         * modules/byteswap-tests (Files): Likewise.
5431         * modules/c-ctype-tests (Files): Likewise.
5432         * modules/c-stack-tests (Files): Likewise.
5433         * modules/c-strcase-tests (Files): Likewise.
5434         * modules/c-strcasestr-tests (Files): Likewise.
5435         * modules/c-strstr-tests (Files): Likewise.
5436         * modules/canonicalize-lgpl-tests (Files): Likewise.
5437         * modules/canonicalize-tests (Files): Likewise.
5438         * modules/carray-list-tests (Files): Likewise.
5439         * modules/ceilf-tests (Files): Likewise.
5440         * modules/ceill-tests (Files): Likewise.
5441         * modules/chown-tests (Files): Likewise.
5442         * modules/cloexec-tests (Files): Likewise.
5443         * modules/copy-file-tests (Files): Likewise.
5444         * modules/count-one-bits-tests (Files): Likewise.
5445         * modules/dprintf-posix-tests (Files): Likewise.
5446         * modules/dup2-tests (Files): Likewise.
5447         * modules/dup3-tests (Files): Likewise.
5448         * modules/duplocale-tests (Files): Likewise.
5449         * modules/fbufmode-tests (Files): Likewise.
5450         * modules/fchdir-tests (Files): Likewise.
5451         * modules/fcntl-safer-tests (Files): Likewise.
5452         * modules/fcntl-tests (Files): Likewise.
5453         * modules/fdopendir-tests (Files): Likewise.
5454         * modules/fdutimensat-tests (Files): Likewise.
5455         * modules/fflush-tests (Files): Likewise.
5456         * modules/filevercmp-tests (Files): Likewise.
5457         * modules/flock-tests (Files): Likewise.
5458         * modules/floorf-tests (Files): Likewise.
5459         * modules/floorl-tests (Files): Likewise.
5460         * modules/fnmatch-tests (Files): Likewise.
5461         * modules/fopen-safer-tests (Files): Likewise.
5462         * modules/fopen-tests (Files): Likewise.
5463         * modules/fpending-tests (Files): Likewise.
5464         * modules/fprintf-posix-tests (Files): Likewise.
5465         * modules/fpurge-tests (Files): Likewise.
5466         * modules/freadable-tests (Files): Likewise.
5467         * modules/freadahead-tests (Files): Likewise.
5468         * modules/freading-tests (Files): Likewise.
5469         * modules/freadptr-tests (Files): Likewise.
5470         * modules/freadseek-tests (Files): Likewise.
5471         * modules/freopen-tests (Files): Likewise.
5472         * modules/frexp-nolibm-tests (Files): Likewise.
5473         * modules/frexp-tests (Files): Likewise.
5474         * modules/frexpl-nolibm-tests (Files): Likewise.
5475         * modules/frexpl-tests (Files): Likewise.
5476         * modules/fseek-tests (Files): Likewise.
5477         * modules/fseeko-tests (Files): Likewise.
5478         * modules/fstrcmp-tests (Files): Likewise.
5479         * modules/fsync-tests (Files): Likewise.
5480         * modules/ftell-tests (Files): Likewise.
5481         * modules/ftello-tests (Files): Likewise.
5482         * modules/func-tests (Files): Likewise.
5483         * modules/futimens-tests (Files): Likewise.
5484         * modules/fwritable-tests (Files): Likewise.
5485         * modules/fwriting-tests (Files): Likewise.
5486         * modules/getcwd-tests (Files): Likewise.
5487         * modules/getdate-tests (Files): Likewise.
5488         * modules/getdelim-tests (Files): Likewise.
5489         * modules/getdtablesize-tests (Files): Likewise.
5490         * modules/getgroups-tests (Files): Likewise.
5491         * modules/getline-tests (Files): Likewise.
5492         * modules/getndelim2-tests (Files): Likewise.
5493         * modules/glob-tests (Files): Likewise.
5494         * modules/hash-tests (Files): Likewise.
5495         * modules/i-ring-tests (Files): Likewise.
5496         * modules/iconv-tests (Files): Likewise.
5497         * modules/iconv_open-utf-tests (Files): Likewise.
5498         * modules/idpriv-drop-tests (Files): Likewise.
5499         * modules/idpriv-droptemp-tests (Files): Likewise.
5500         * modules/inet_ntop-tests (Files): Likewise.
5501         * modules/inet_pton-tests (Files): Likewise.
5502         * modules/isblank-tests (Files): Likewise.
5503         * modules/isfinite-tests (Files): Likewise.
5504         * modules/isinf-tests (Files): Likewise.
5505         * modules/isnan-tests (Files): Likewise.
5506         * modules/isnand-nolibm-tests (Files): Likewise.
5507         * modules/isnand-tests (Files): Likewise.
5508         * modules/isnanf-nolibm-tests (Files): Likewise.
5509         * modules/isnanf-tests (Files): Likewise.
5510         * modules/isnanl-nolibm-tests (Files): Likewise.
5511         * modules/isnanl-tests (Files): Likewise.
5512         * modules/lchown-tests (Files): Likewise.
5513         * modules/ldexpl-tests (Files): Likewise.
5514         * modules/link-tests (Files): Likewise.
5515         * modules/linkat-tests (Files): Likewise.
5516         * modules/linked-list-tests (Files): Likewise.
5517         * modules/linkedhash-list-tests (Files): Likewise.
5518         * modules/localename-tests (Files): Likewise.
5519         * modules/lseek-tests (Files): Likewise.
5520         * modules/lstat-tests (Files): Likewise.
5521         * modules/mbmemcasecmp-tests (Files): Likewise.
5522         * modules/mbmemcasecoll-tests (Files): Likewise.
5523         * modules/mbrtowc-tests (Files): Likewise.
5524         * modules/mbscasecmp-tests (Files): Likewise.
5525         * modules/mbscasestr-tests (Files): Likewise.
5526         * modules/mbschr-tests (Files): Likewise.
5527         * modules/mbscspn-tests (Files): Likewise.
5528         * modules/mbsinit-tests (Files): Likewise.
5529         * modules/mbsncasecmp-tests (Files): Likewise.
5530         * modules/mbsnrtowcs-tests (Files): Likewise.
5531         * modules/mbspbrk-tests (Files): Likewise.
5532         * modules/mbspcasecmp-tests (Files): Likewise.
5533         * modules/mbsrchr-tests (Files): Likewise.
5534         * modules/mbsrtowcs-tests (Files): Likewise.
5535         * modules/mbsspn-tests (Files): Likewise.
5536         * modules/mbsstr-tests (Files): Likewise.
5537         * modules/memchr-tests (Files): Likewise.
5538         * modules/memchr2-tests (Files): Likewise.
5539         * modules/memcmp-tests (Files): Likewise.
5540         * modules/memmem-tests (Files): Likewise.
5541         * modules/memrchr-tests (Files): Likewise.
5542         * modules/mkdir-tests (Files): Likewise.
5543         * modules/mkfifo-tests (Files): Likewise.
5544         * modules/mkfifoat-tests (Files): Likewise.
5545         * modules/mknod-tests (Files): Likewise.
5546         * modules/nanosleep-tests (Files): Likewise.
5547         * modules/nl_langinfo-tests (Files): Likewise.
5548         * modules/obstack-printf-tests (Files): Likewise.
5549         * modules/open-tests (Files): Likewise.
5550         * modules/openat-tests (Files): Likewise.
5551         * modules/pipe-filter-gi-tests (Files): Likewise.
5552         * modules/pipe-filter-ii-tests (Files): Likewise.
5553         * modules/pipe2-tests (Files): Likewise.
5554         * modules/popen-safer-tests (Files): Likewise.
5555         * modules/popen-tests (Files): Likewise.
5556         * modules/posixtm-tests (Files): Likewise.
5557         * modules/pread-tests (Files): Likewise.
5558         * modules/printf-frexp-tests (Files): Likewise.
5559         * modules/printf-frexpl-tests (Files): Likewise.
5560         * modules/printf-posix-tests (Files): Likewise.
5561         * modules/priv-set-tests (Files): Likewise.
5562         * modules/quotearg-tests (Files): Likewise.
5563         * modules/random_r-tests (Files): Likewise.
5564         * modules/rawmemchr-tests (Files): Likewise.
5565         * modules/rbtree-list-tests (Files): Likewise.
5566         * modules/rbtree-oset-tests (Files): Likewise.
5567         * modules/rbtreehash-list-tests (Files): Likewise.
5568         * modules/readlink-tests (Files): Likewise.
5569         * modules/remove-tests (Files): Likewise.
5570         * modules/rename-tests (Files): Likewise.
5571         * modules/renameat-tests (Files): Likewise.
5572         * modules/rmdir-tests (Files): Likewise.
5573         * modules/round-tests (Files): Likewise.
5574         * modules/roundf-tests (Files): Likewise.
5575         * modules/roundl-tests (Files): Likewise.
5576         * modules/safe-alloc-tests (Files): Likewise.
5577         * modules/setenv-tests (Files): Likewise.
5578         * modules/sigaction-tests (Files): Likewise.
5579         * modules/signbit-tests (Files): Likewise.
5580         * modules/sleep-tests (Files): Likewise.
5581         * modules/snprintf-posix-tests (Files): Likewise.
5582         * modules/snprintf-tests (Files): Likewise.
5583         * modules/sprintf-posix-tests (Files): Likewise.
5584         * modules/stat-tests (Files): Likewise.
5585         * modules/stat-time-tests (Files): Likewise.
5586         * modules/strcasestr-tests (Files): Likewise.
5587         * modules/strchrnul-tests (Files): Likewise.
5588         * modules/strerror-tests (Files): Likewise.
5589         * modules/striconv-tests (Files): Likewise.
5590         * modules/striconveh-tests (Files): Likewise.
5591         * modules/striconveha-tests (Files): Likewise.
5592         * modules/strsignal-tests (Files): Likewise.
5593         * modules/strstr-tests (Files): Likewise.
5594         * modules/strtod-tests (Files): Likewise.
5595         * modules/strverscmp-tests (Files): Likewise.
5596         * modules/symlink-tests (Files): Likewise.
5597         * modules/symlinkat-tests (Files): Likewise.
5598         * modules/trunc-tests (Files): Likewise.
5599         * modules/truncf-tests (Files): Likewise.
5600         * modules/truncl-tests (Files): Likewise.
5601         * modules/uname-tests (Files): Likewise.
5602         * modules/unicase/cased-tests (Files): Likewise.
5603         * modules/unicase/ignorable-tests (Files): Likewise.
5604         * modules/unicase/locale-language-tests (Files): Likewise.
5605         * modules/unicase/tolower-tests (Files): Likewise.
5606         * modules/unicase/totitle-tests (Files): Likewise.
5607         * modules/unicase/toupper-tests (Files): Likewise.
5608         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5609         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5610         * modules/unicase/u8-casefold-tests (Files): Likewise.
5611         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5612         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5613         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5614         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5615         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5616         * modules/unicase/u8-tolower-tests (Files): Likewise.
5617         * modules/unicase/u8-totitle-tests (Files): Likewise.
5618         * modules/unicase/u8-toupper-tests (Files): Likewise.
5619         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5620         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5621         * modules/unicase/u16-casefold-tests (Files): Likewise.
5622         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5623         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5624         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5625         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5626         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5627         * modules/unicase/u16-tolower-tests (Files): Likewise.
5628         * modules/unicase/u16-totitle-tests (Files): Likewise.
5629         * modules/unicase/u16-toupper-tests (Files): Likewise.
5630         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5631         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5632         * modules/unicase/u32-casefold-tests (Files): Likewise.
5633         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5634         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5635         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5636         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5637         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5638         * modules/unicase/u32-tolower-tests (Files): Likewise.
5639         * modules/unicase/u32-totitle-tests (Files): Likewise.
5640         * modules/unicase/u32-toupper-tests (Files): Likewise.
5641         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5642         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5643         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5644         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5645         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5646         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5647         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5648         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5649         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5650         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5651         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5652         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5653         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5654         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5655         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5656         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5657         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5658         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5659         * modules/unictype/block-list-tests (Files): Likewise.
5660         * modules/unictype/block-of-tests (Files): Likewise.
5661         * modules/unictype/block-test-tests (Files): Likewise.
5662         * modules/unictype/category-C-tests (Files): Likewise.
5663         * modules/unictype/category-Cc-tests (Files): Likewise.
5664         * modules/unictype/category-Cf-tests (Files): Likewise.
5665         * modules/unictype/category-Cn-tests (Files): Likewise.
5666         * modules/unictype/category-Co-tests (Files): Likewise.
5667         * modules/unictype/category-Cs-tests (Files): Likewise.
5668         * modules/unictype/category-L-tests (Files): Likewise.
5669         * modules/unictype/category-Ll-tests (Files): Likewise.
5670         * modules/unictype/category-Lm-tests (Files): Likewise.
5671         * modules/unictype/category-Lo-tests (Files): Likewise.
5672         * modules/unictype/category-Lt-tests (Files): Likewise.
5673         * modules/unictype/category-Lu-tests (Files): Likewise.
5674         * modules/unictype/category-M-tests (Files): Likewise.
5675         * modules/unictype/category-Mc-tests (Files): Likewise.
5676         * modules/unictype/category-Me-tests (Files): Likewise.
5677         * modules/unictype/category-Mn-tests (Files): Likewise.
5678         * modules/unictype/category-N-tests (Files): Likewise.
5679         * modules/unictype/category-Nd-tests (Files): Likewise.
5680         * modules/unictype/category-Nl-tests (Files): Likewise.
5681         * modules/unictype/category-No-tests (Files): Likewise.
5682         * modules/unictype/category-P-tests (Files): Likewise.
5683         * modules/unictype/category-Pc-tests (Files): Likewise.
5684         * modules/unictype/category-Pd-tests (Files): Likewise.
5685         * modules/unictype/category-Pe-tests (Files): Likewise.
5686         * modules/unictype/category-Pf-tests (Files): Likewise.
5687         * modules/unictype/category-Pi-tests (Files): Likewise.
5688         * modules/unictype/category-Po-tests (Files): Likewise.
5689         * modules/unictype/category-Ps-tests (Files): Likewise.
5690         * modules/unictype/category-S-tests (Files): Likewise.
5691         * modules/unictype/category-Sc-tests (Files): Likewise.
5692         * modules/unictype/category-Sk-tests (Files): Likewise.
5693         * modules/unictype/category-Sm-tests (Files): Likewise.
5694         * modules/unictype/category-So-tests (Files): Likewise.
5695         * modules/unictype/category-Z-tests (Files): Likewise.
5696         * modules/unictype/category-Zl-tests (Files): Likewise.
5697         * modules/unictype/category-Zp-tests (Files): Likewise.
5698         * modules/unictype/category-Zs-tests (Files): Likewise.
5699         * modules/unictype/category-and-not-tests (Files): Likewise.
5700         * modules/unictype/category-and-tests (Files): Likewise.
5701         * modules/unictype/category-byname-tests (Files): Likewise.
5702         * modules/unictype/category-name-tests (Files): Likewise.
5703         * modules/unictype/category-none-tests (Files): Likewise.
5704         * modules/unictype/category-of-tests (Files): Likewise.
5705         * modules/unictype/category-or-tests (Files): Likewise.
5706         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5707         * modules/unictype/combining-class-tests (Files): Likewise.
5708         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5709         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5710         * modules/unictype/ctype-blank-tests (Files): Likewise.
5711         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5712         * modules/unictype/ctype-digit-tests (Files): Likewise.
5713         * modules/unictype/ctype-graph-tests (Files): Likewise.
5714         * modules/unictype/ctype-lower-tests (Files): Likewise.
5715         * modules/unictype/ctype-print-tests (Files): Likewise.
5716         * modules/unictype/ctype-punct-tests (Files): Likewise.
5717         * modules/unictype/ctype-space-tests (Files): Likewise.
5718         * modules/unictype/ctype-upper-tests (Files): Likewise.
5719         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5720         * modules/unictype/decimal-digit-tests (Files): Likewise.
5721         * modules/unictype/digit-tests (Files): Likewise.
5722         * modules/unictype/mirror-tests (Files): Likewise.
5723         * modules/unictype/numeric-tests (Files): Likewise.
5724         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5725         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5726         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5727         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5728         Likewise.
5729         * modules/unictype/property-bidi-block-separator-tests (Files):
5730         Likewise.
5731         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5732         Likewise.
5733         * modules/unictype/property-bidi-common-separator-tests (Files):
5734         Likewise.
5735         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5736         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5737         Likewise.
5738         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5739         Likewise.
5740         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5741         Likewise.
5742         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5743         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5744         Likewise.
5745         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5746         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5747         Likewise.
5748         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5749         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5750         * modules/unictype/property-bidi-segment-separator-tests (Files):
5751         Likewise.
5752         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5753         * modules/unictype/property-byname-tests (Files): Likewise.
5754         * modules/unictype/property-combining-tests (Files): Likewise.
5755         * modules/unictype/property-composite-tests (Files): Likewise.
5756         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5757         * modules/unictype/property-dash-tests (Files): Likewise.
5758         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5759         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5760         Likewise.
5761         * modules/unictype/property-deprecated-tests (Files): Likewise.
5762         * modules/unictype/property-diacritic-tests (Files): Likewise.
5763         * modules/unictype/property-extender-tests (Files): Likewise.
5764         * modules/unictype/property-format-control-tests (Files): Likewise.
5765         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5766         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5767         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5768         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5769         * modules/unictype/property-hyphen-tests (Files): Likewise.
5770         * modules/unictype/property-id-continue-tests (Files): Likewise.
5771         * modules/unictype/property-id-start-tests (Files): Likewise.
5772         * modules/unictype/property-ideographic-tests (Files): Likewise.
5773         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5774         * modules/unictype/property-ids-trinary-operator-tests (Files):
5775         Likewise.
5776         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5777         * modules/unictype/property-iso-control-tests (Files): Likewise.
5778         * modules/unictype/property-join-control-tests (Files): Likewise.
5779         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5780         * modules/unictype/property-line-separator-tests (Files): Likewise.
5781         * modules/unictype/property-logical-order-exception-tests (Files):
5782         Likewise.
5783         * modules/unictype/property-lowercase-tests (Files): Likewise.
5784         * modules/unictype/property-math-tests (Files): Likewise.
5785         * modules/unictype/property-non-break-tests (Files): Likewise.
5786         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5787         * modules/unictype/property-numeric-tests (Files): Likewise.
5788         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5789         * modules/unictype/property-other-default-ignorable-code-point-tests
5790         (Files): Likewise.
5791         * modules/unictype/property-other-grapheme-extend-tests (Files):
5792         Likewise.
5793         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5794         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5795         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5796         * modules/unictype/property-other-math-tests (Files): Likewise.
5797         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5798         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5799         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5800         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5801         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5802         * modules/unictype/property-private-use-tests (Files): Likewise.
5803         * modules/unictype/property-punctuation-tests (Files): Likewise.
5804         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5805         * modules/unictype/property-radical-tests (Files): Likewise.
5806         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5807         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5808         * modules/unictype/property-space-tests (Files): Likewise.
5809         * modules/unictype/property-terminal-punctuation-tests (Files):
5810         Likewise.
5811         * modules/unictype/property-test-tests (Files): Likewise.
5812         * modules/unictype/property-titlecase-tests (Files): Likewise.
5813         * modules/unictype/property-unassigned-code-value-tests (Files):
5814         Likewise.
5815         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5816         * modules/unictype/property-uppercase-tests (Files): Likewise.
5817         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5818         * modules/unictype/property-white-space-tests (Files): Likewise.
5819         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5820         * modules/unictype/property-xid-start-tests (Files): Likewise.
5821         * modules/unictype/property-zero-width-tests (Files): Likewise.
5822         * modules/unictype/scripts-tests (Files): Likewise.
5823         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5824         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5825         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5826         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5827         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5828         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5829         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5830         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5831         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5832         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5833         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5834         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5835         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5836         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5837         * modules/uninorm/composition-tests (Files): Likewise.
5838         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5839         * modules/uninorm/decomposition-tests (Files): Likewise.
5840         * modules/uninorm/filter-tests (Files): Likewise.
5841         * modules/uninorm/nfc-tests (Files): Likewise.
5842         * modules/uninorm/nfd-tests (Files): Likewise.
5843         * modules/uninorm/nfkc-tests (Files): Likewise.
5844         * modules/uninorm/nfkd-tests (Files): Likewise.
5845         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5846         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5847         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5848         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5849         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5850         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5851         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5852         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5853         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5854         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5855         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5856         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5857         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5858         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5859         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5860         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5861         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5862         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5863         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5864         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5865         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5866         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5867         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5868         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5869         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5870         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5871         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5872         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5873         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5874         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5875         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5876         * modules/uniwidth/u8-width-tests (Files): Likewise.
5877         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5878         * modules/uniwidth/u16-width-tests (Files): Likewise.
5879         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5880         * modules/uniwidth/u32-width-tests (Files): Likewise.
5881         * modules/uniwidth/width-tests (Files): Likewise.
5882         * modules/unlink-tests (Files): Likewise.
5883         * modules/unsetenv-tests (Files): Likewise.
5884         * modules/usleep-tests (Files): Likewise.
5885         * modules/utimens-tests (Files): Likewise.
5886         * modules/utimensat-tests (Files): Likewise.
5887         * modules/vasnprintf-posix-tests (Files): Likewise.
5888         * modules/vasnprintf-tests (Files): Likewise.
5889         * modules/vasprintf-posix-tests (Files): Likewise.
5890         * modules/vasprintf-tests (Files): Likewise.
5891         * modules/vdprintf-posix-tests (Files): Likewise.
5892         * modules/vfprintf-posix-tests (Files): Likewise.
5893         * modules/vprintf-posix-tests (Files): Likewise.
5894         * modules/vsnprintf-posix-tests (Files): Likewise.
5895         * modules/vsnprintf-tests (Files): Likewise.
5896         * modules/vsprintf-posix-tests (Files): Likewise.
5897         * modules/wcrtomb-tests (Files): Likewise.
5898         * modules/wcsnrtombs-tests (Files): Likewise.
5899         * modules/wcsrtombs-tests (Files): Likewise.
5900         * modules/wctype-tests (Files): Likewise.
5901         * modules/wcwidth-tests (Files): Likewise.
5902         * modules/xmemdup0-tests (Files): Likewise.
5903         * modules/xprintf-posix-tests (Files): Likewise.
5904         * modules/xvasprintf-tests (Files): Likewise.
5905
5906 2009-12-24  Eric Blake  <ebb9@byu.net>
5907
5908         test-nanosleep: fix typo
5909         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5910         patch.
5911         Reported by Bruno Haible.
5912
5913 2009-12-24  Bruno Haible  <bruno@clisp.org>
5914
5915         Reduce namespace pollution on glibc systems.
5916         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5917         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5918         systems.
5919         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5920         <getopt.h> on glibc systems.
5921         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5922         systems.
5923         * lib/fcntl.c: Include <unistd.h> here instead.
5924
5925 2009-12-24  Bruno Haible  <bruno@clisp.org>
5926
5927         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5928
5929 2009-12-24  Eric Blake  <ebb9@byu.net>
5930
5931         tests: add signature checks
5932         * tests/signature.h (SIGNATURE_CHECK): New file.
5933         * modules/atexit-tests (Files): Use it.
5934         * modules/btowc-tests (Files): Likewise.
5935         * modules/canonicalize-lgpl-tests (Files): Likewise.
5936         * modules/ceilf-tests (Files): Likewise.
5937         * modules/ceill-tests (Files): Likewise.
5938         * modules/chown-tests (Files): Likewise.
5939         * modules/dprintf-posix-tests (Files): Likewise.
5940         * modules/dup2-tests (Files): Likewise.
5941         * modules/dup3-tests (Files): Likewise.
5942         * modules/duplocale-tests (Files): Likewise.
5943         * modules/fchdir-tests (Files): Likewise.
5944         * modules/fcntl-tests (Files): Likewise.
5945         * modules/fdopendir-tests (Files): Likewise.
5946         * modules/fflush-tests (Files): Likewise.
5947         * modules/flock-tests (Files): Likewise.
5948         * modules/floorf-tests (Files): Likewise.
5949         * modules/floorl-tests (Files): Likewise.
5950         * modules/fnmatch-tests (Files): Likewise.
5951         * modules/fopen-tests (Files): Likewise.
5952         * modules/fprintf-posix-tests (Files): Likewise.
5953         * modules/freopen-tests (Files): Likewise.
5954         * modules/frexp-nolibm-tests (Files): Likewise.
5955         * modules/frexp-tests (Files): Likewise.
5956         * modules/frexpl-nolibm-tests (Files): Likewise.
5957         * modules/frexpl-tests (Files): Likewise.
5958         * modules/fseek-tests (Files): Likewise.
5959         * modules/fseeko-tests (Files): Likewise.
5960         * modules/fsync-tests (Files): Likewise.
5961         * modules/ftell-tests (Files): Likewise.
5962         * modules/ftello-tests (Files): Likewise.
5963         * modules/futimens-tests (Files): Likewise.
5964         * modules/getaddrinfo-tests (Files): Likewise.
5965         * modules/getcwd-tests (Files): Likewise.
5966         * modules/getdelim-tests (Files): Likewise.
5967         * modules/getdtablesize-tests (Files): Likewise.
5968         * modules/getgroups-tests (Files): Likewise.
5969         * modules/gethostname-tests (Files): Likewise.
5970         * modules/getline-tests (Files): Likewise.
5971         * modules/getopt-posix-tests (Files): Likewise.
5972         * modules/gettimeofday-tests (Files): Likewise.
5973         * modules/glob-tests (Files): Likewise.
5974         * modules/iconv-tests (Files): Likewise.
5975         * modules/inet_ntop-tests (Files): Likewise.
5976         * modules/inet_pton-tests (Files): Likewise.
5977         * modules/isblank-tests (Files): Likewise.
5978         * modules/lchown-tests (Files): Likewise.
5979         * modules/ldexpl-tests (Files): Likewise.
5980         * modules/link-tests (Files): Likewise.
5981         * modules/linkat-tests (Files): Likewise.
5982         * modules/lseek-tests (Files): Likewise.
5983         * modules/lstat-tests (Files): Likewise.
5984         * modules/mbrtowc-tests (Files): Likewise.
5985         * modules/mbsinit-tests (Files): Likewise.
5986         * modules/mbsnrtowcs-tests (Files): Likewise.
5987         * modules/mbsrtowcs-tests (Files): Likewise.
5988         * modules/memchr-tests (Files): Likewise.
5989         * modules/memcmp-tests (Files): Likewise.
5990         * modules/memmem-tests (Files): Likewise.
5991         * modules/memrchr-tests (Files): Likewise.
5992         * modules/mkdir-tests (Files): Likewise.
5993         * modules/mkfifo-tests (Files): Likewise.
5994         * modules/mkfifoat-tests (Files): Likewise.
5995         * modules/mknod-tests (Files): Likewise.
5996         * modules/nanosleep-tests (Files): Likewise.
5997         * modules/nl_langinfo-tests (Files): Likewise.
5998         * modules/obstack-printf-tests (Files): Likewise.
5999         * modules/open-tests (Files): Likewise.
6000         * modules/openat-tests (Files): Likewise.
6001         * modules/perror-tests (Files): Likewise.
6002         * modules/pipe2-tests (Files): Likewise.
6003         * modules/poll-tests (Files): Likewise.
6004         * modules/popen-tests (Files): Likewise.
6005         * modules/posix_spawn-tests (Files): Likewise.
6006         * modules/posix_spawnp-tests (Files): Likewise.
6007         * modules/pread-tests (Files): Likewise.
6008         * modules/printf-posix-tests (Files): Likewise.
6009         * modules/pty-tests (Files): Likewise.
6010         * modules/random_r-tests (Files): Likewise.
6011         * modules/rawmemchr-tests (Files): Likewise.
6012         * modules/readlink-tests (Files): Likewise.
6013         * modules/remove-tests (Files): Likewise.
6014         * modules/rename-tests (Files): Likewise.
6015         * modules/renameat-tests (Files): Likewise.
6016         * modules/rmdir-tests (Files): Likewise.
6017         * modules/round-tests (Files): Likewise.
6018         * modules/roundf-tests (Files): Likewise.
6019         * modules/roundl-tests (Files): Likewise.
6020         * modules/select-tests (Files): Likewise.
6021         * modules/setenv-tests (Files): Likewise.
6022         * modules/sigaction-tests (Files): Likewise.
6023         * modules/sleep-tests (Files): Likewise.
6024         * modules/snprintf-posix-tests (Files): Likewise.
6025         * modules/snprintf-tests (Files): Likewise.
6026         * modules/sprintf-posix-tests (Files): Likewise.
6027         * modules/stat-tests (Files): Likewise.
6028         * modules/strcasestr-tests (Files): Likewise.
6029         * modules/strchrnul-tests (Files): Likewise.
6030         * modules/strerror-tests (Files): Likewise.
6031         * modules/strsignal-tests (Files): Likewise.
6032         * modules/strstr-tests (Files): Likewise.
6033         * modules/strtod-tests (Files): Likewise.
6034         * modules/strverscmp-tests (Files): Likewise.
6035         * modules/symlink-tests (Files): Likewise.
6036         * modules/symlinkat-tests (Files): Likewise.
6037         * modules/times-tests (Files): Likewise.
6038         * modules/trunc-tests (Files): Likewise.
6039         * modules/truncf-tests (Files): Likewise.
6040         * modules/truncl-tests (Files): Likewise.
6041         * modules/tsearch-tests (Files): Likewise.
6042         * modules/uname-tests (Files): Likewise.
6043         * modules/unlink-tests (Files): Likewise.
6044         * modules/unsetenv-tests (Files): Likewise.
6045         * modules/usleep-tests (Files): Likewise.
6046         * modules/utimensat-tests (Files): Likewise.
6047         * modules/vasprintf-tests (Files): Likewise.
6048         * modules/vdprintf-posix-tests (Files): Likewise.
6049         * modules/vfprintf-posix-tests (Files): Likewise.
6050         * modules/vprintf-posix-tests (Files): Likewise.
6051         * modules/vsnprintf-posix-tests (Files): Likewise.
6052         * modules/vsnprintf-tests (Files): Likewise.
6053         * modules/vsprintf-posix-tests (Files): Likewise.
6054         * modules/wcrtomb-tests (Files): Likewise.
6055         * modules/wcsnrtombs-tests (Files): Likewise.
6056         * modules/wcsrtombs-tests (Files): Likewise.
6057         * modules/wcwidth-tests (Files): Likewise.
6058         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6059         * tests/test-isinf.c (isinf): Likewise.
6060         * tests/test-isnan.c (isnan): Likewise.
6061         * tests/test-signbit.c (signbit): Likewise.
6062         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6063         declaration, either as macro or with correct signature.
6064         (select): Ensure function under test is declared with correct
6065         signature in correct header.
6066         * tests/test-atexit.c (atexit): Likewise.
6067         * tests/test-btowc.c (btowc): Likewise.
6068         * tests/test-canonicalize-lgpl.c (realpath)
6069         (canonicalize_file_name): Likewise.
6070         * tests/test-ceilf1.c (ceilf): Likewise.
6071         * tests/test-ceill.c (ceill): Likewise.
6072         * tests/test-chown.c (chown): Likewise.
6073         * tests/test-dprintf-posix.c (dprintf): Likewise.
6074         * tests/test-dup2.c (dup2): Likewise.
6075         * tests/test-dup3.c (dup3): Likewise.
6076         * tests/test-duplocale.c (duplocale): Likewise.
6077         * tests/test-fchdir.c (fchdir): Likewise.
6078         * tests/test-fchownat.c (fchownat): Likewise.
6079         * tests/test-fcntl.c (fcntl): Likewise.
6080         * tests/test-fdopendir.c (fdopendir): Likewise.
6081         * tests/test-fflush.c (fflush): Likewise.
6082         * tests/test-flock.c (flock): Likewise.
6083         * tests/test-floorf1.c (floorf): Likewise.
6084         * tests/test-floorl.c (floorl): Likewise.
6085         * tests/test-fnmatch.c (fnmatch): Likewise.
6086         * tests/test-fopen.c (fopen): Likewise.
6087         * tests/test-fprintf-posix.c (fprintf): Likewise.
6088         * tests/test-freopen.c (freopen): Likewise.
6089         * tests/test-frexp.c (frexp): Likewise.
6090         * tests/test-frexpl.c (frexpl): Likewise.
6091         * tests/test-fseek.c (fseek): Likewise.
6092         * tests/test-fseeko.c (fseeko): Likewise.
6093         * tests/test-fstatat.c (fstatat): Likewise.
6094         * tests/test-fsync.c (fsync): Likewise.
6095         * tests/test-ftell.c (ftell): Likewise.
6096         * tests/test-ftello.c (ftello): Likewise.
6097         * tests/test-futimens.c (futimens): Likewise.
6098         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6099         (gai_strerror): Likewise.
6100         * tests/test-getcwd.c (getcwd): Likewise.
6101         * tests/test-getdelim.c (getdelim): Likewise.
6102         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6103         * tests/test-getgroups.c (getgroups): Likewise.
6104         * tests/test-gethostname.c (gethostname): Likewise.
6105         * tests/test-getline.c (getline): Likewise.
6106         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6107         Likewise.
6108         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6109         * tests/test-glob.c (glob, globfree): Likewise.
6110         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6111         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6112         * tests/test-inet_pton.c (inet_pton): Likewise.
6113         * tests/test-isblank.c (isblank): Likewise.
6114         * tests/test-lchown.c (lchown): Likewise.
6115         * tests/test-ldexpl.c (ldexpl): Likewise.
6116         * tests/test-link.c (link): Likewise.
6117         * tests/test-linkat.c (linkat): Likewise.
6118         * tests/test-lseek.c (lseek): Likewise.
6119         * tests/test-lstat.c (lstat): Likewise.
6120         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6121         * tests/test-mbsinit.c (mbsinit): Likewise.
6122         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6123         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6124         * tests/test-memchr.c (memchr): Likewise.
6125         * tests/test-memcmp.c (memcmp): Likewise.
6126         * tests/test-memmem.c (memmem): Likewise.
6127         * tests/test-memrchr.c (memrchr): Likewise.
6128         * tests/test-mkdir.c (mkdir): Likewise.
6129         * tests/test-mkdirat.c (mkdirat): Likewise.
6130         * tests/test-mkfifo.c (mkfifo): Likewise.
6131         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6132         * tests/test-mknod.c (mknod): Likewise.
6133         * tests/test-nanosleep.c (nanosleep): Likewise.
6134         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6135         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6136         Likewise.
6137         * tests/test-open.c (open): Likewise.
6138         * tests/test-openat.c (openat): Likewise.
6139         * tests/test-perror.c (perror): Likewise.
6140         * tests/test-pipe2.c (pipe2): Likewise.
6141         * tests/test-poll.c (poll): Likewise.
6142         * tests/test-popen.c (popen, pclose): Likewise.
6143         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6144         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6145         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6146         (posix_spawn_file_actions_destroy)
6147         (posix_spawn_file_actions_addclose)
6148         (posix_spawn_file_actions_addopen)
6149         (posix_spawn_file_actions_adddup2): Likewise.
6150         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6151         * tests/test-pread.c (pread): Likewise.
6152         * tests/test-printf-posix.c (printf): Likewise.
6153         * tests/test-pty.c (openpty, forkpty): Likewise.
6154         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6155         (random_r): Likewise.
6156         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6157         * tests/test-readlink.c (readlink): Likewise.
6158         * tests/test-remove.c (remove): Likewise.
6159         * tests/test-rename.c (rename): Likewise.
6160         * tests/test-renameat.c (renameat): Likewise.
6161         * tests/test-rmdir.c (rmdir): Likewise.
6162         * tests/test-round1.c (round): Likewise.
6163         * tests/test-roundf1.c (roundf): Likewise.
6164         * tests/test-roundl.c (roundl): Likewise.
6165         * tests/test-setenv.c (setenv): Likewise.
6166         * tests/test-sigaction.c (sigaction): Likewise.
6167         * tests/test-sleep.c (sleep): Likewise.
6168         * tests/test-snprintf.c (snprintf): Likewise.
6169         * tests/test-sprintf-posix.c (sprintf): Likewise.
6170         * tests/test-stat.c (stat): Likewise.
6171         * tests/test-stpncpy.c (stpncpy): Likewise.
6172         * tests/test-strcasestr.c (strcasestr): Likewise.
6173         * tests/test-strchrnul.c (strchrnul): Likewise.
6174         * tests/test-strerror.c (strerror): Likewise.
6175         * tests/test-strsignal.c (strsignal): Likewise.
6176         * tests/test-strstr.c (strstr): Likewise.
6177         * tests/test-strtod.c (strtod): Likewise.
6178         * tests/test-strverscmp.c (strverscmp): Likewise.
6179         * tests/test-symlink.c (symlink): Likewise.
6180         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6181         * tests/test-times.c (times): Likewise.
6182         * tests/test-trunc1.c (trunc): Likewise.
6183         * tests/test-truncf1.c (truncf): Likewise.
6184         * tests/test-truncl.c (truncl): Likewise.
6185         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6186         Likewise.
6187         * tests/test-uname.c (uname): Likewise.
6188         * tests/test-unlink.c (unlink): Likewise.
6189         * tests/test-unlinkat.c (unlinkat): Likewise.
6190         * tests/test-unsetenv.c (unsetenv): Likewise.
6191         * tests/test-usleep.c (usleep): Likewise.
6192         * tests/test-utimensat.c (utimensat): Likewise.
6193         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6194         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6195         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6196         * tests/test-vprintf-posix.c (vprintf): Likewise.
6197         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6198         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6199         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6200         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6201         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6202         * tests/test-wcwidth.c (wcwidth): Likewise.
6203
6204         build: pull in conditional headers during GNULIB_POSIXCHECK
6205         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6206         definitions from any conditionally-included headers.
6207         * lib/stdlib.in.h (includes): Likewise.
6208         * lib/unistd.in.h (includes): Likewise.
6209
6210 2009-12-24  Bruno Haible  <bruno@clisp.org>
6211
6212         * tests/test-argv-iter.c: Include header file being tested immediately
6213         after config.h.
6214         * tests/test-base64.c: Likewise.
6215         * tests/test-flock.c: Likewise.
6216         * tests/test-fsync.c: Likewise.
6217         * tests/test-getdate.c: Likewise.
6218         * tests/test-getndelim2.c: Likewise.
6219         * tests/test-isfinite.c: Likewise.
6220         * tests/test-isinf.c: Likewise.
6221         * tests/test-strerror.c: Likewise.
6222         * tests/test-strsignal.c: Likewise.
6223
6224 2009-12-23  Eric Blake  <ebb9@byu.net>
6225
6226         unistd: work around cygwin bug
6227         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6228         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6229         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6230
6231 2009-12-23  Bruno Haible  <bruno@clisp.org>
6232
6233         localename: More tests.
6234         * tests/test-localename.c (SIZEOF): New macro.
6235         (categories): New variable.
6236         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6237         test_locale_name_default): Add test w.r.t. thread locale.
6238         (test_locale_name_thread): New function.
6239         (main): Invoke it.
6240
6241         localename: Make aware of thread locale.
6242         * lib/localename.h (gl_locale_name_thread): New declaration.
6243         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6244         behaviour with respect to thread locale.
6245         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6246         <langinfo.h>, glthread/lock.h.
6247         (SIZE_BITS): New macro.
6248         (string_hash): New function.
6249         (struct hash_node): New type.
6250         (HASH_TABLE_SIZE): New macro.
6251         (struniq_hash_table, struniq_lock): New variables.
6252         (struniq): New function.
6253         (gl_locale_name_thread): New function.
6254         (gl_locale_name): Invoke it.
6255         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6256         * modules/localename (Depends-on): Add lock.
6257         Reported by Mike Gran <spk121@yahoo.com>.
6258
6259 2009-12-23  Eric Blake  <ebb9@byu.net>
6260
6261         va-args: new module
6262         * modules/va-args: New file.
6263         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6264         * MODULES.html.sh (Core language properties): Mention it.
6265
6266         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6267         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6268         named alias for __attribute__((__unused__)).
6269         * lib/chown.c: Update client.
6270         * lib/fchmodat.c: Likewise.
6271         * lib/fts.c: Likewise.
6272         * lib/getdate.y: Likewise.
6273         * lib/getgroups.c: Likewise.
6274         * lib/getopt.c: Likewise.
6275         * lib/getugroups.c: Likewise.
6276         * lib/mkdir.c: Likewise.
6277         * lib/mkfifo.c: Likewise.
6278         * lib/mkfifoat.c: Likewise.
6279         * lib/mknod.c: Likewise.
6280         * lib/mknodat.c: Likewise.
6281         * lib/readlink.c: Likewise.
6282         * lib/se-context.in.h: Likewise.
6283         * lib/se-selinux.in.h: Likewise.
6284         * lib/sockets.c: Likewise.
6285         * lib/symlink.c: Likewise.
6286         * lib/symlinkat.c: Likewise.
6287         * lib/unicodeio.c: Likewise.
6288         * lib/unistr.h: Likewise.
6289         * tests/test-areadlink.c: Likewise.
6290         * tests/test-areadlinkat.c: Likewise.
6291         * tests/test-filenamecat.c: Likewise.
6292         * tests/test-fseeko.c: Likewise.
6293         * tests/test-ftello.c: Likewise.
6294         * tests/test-getdate.c: Likewise.
6295         * tests/test-getgroups.c: Likewise.
6296         * tests/test-gethostname.c: Likewise.
6297         * tests/test-quotearg.c: Likewise.
6298         * tests/test-version-etc.c: Likewise.
6299         * tests/test-xalloc-die.c: Likewise.
6300         * tests/test-xfprintf-posix.c: Likewise.
6301         * tests/test-xprintf-posix.c: Likewise.
6302         * tests/test-xvasprintf.c: Likewise.
6303
6304         tests: avoid compiler warnings
6305         * tests/test-fcntl.c (main): Delete unused parameters.
6306         * tests/test-freopen-safer.c (main): Likewise.
6307         * tests/test-xalloc-die.c (main): Mark unused parameters.
6308         * tests/test-fseeko.c (main): Likewise.
6309         * tests/test-ftello.c (main): Likewise.
6310         * tests/test-nanosleep.c (main): Avoid declaration warning.
6311         * tests/test-sleep.c (main): Likewise.
6312         * tests/test-unsetenv.c (main): Silence warning about string
6313         literal.
6314         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6315
6316 2009-12-23  Bruno Haible  <bruno@clisp.org>
6317
6318         * tests/test-localename.c (test_locale_name): New function, extracted
6319         from main. Also test mixed situations.
6320         (test_locale_name_posix, test_locale_name_environ,
6321         test_locale_name_default): New functions.
6322         (main): Invoke them all.
6323         * modules/localename-tests (configure.ac): Test for newlocale.
6324
6325 2009-12-23  Bruno Haible  <bruno@clisp.org>
6326
6327         unistd: Ensure getcwd gets declared before being overridden.
6328         * lib/unistd.in.h: Conditionally include <io.h>.
6329
6330 2009-12-22  Bruno Haible  <bruno@clisp.org>
6331
6332         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6333         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6334         (gl_WCHAR_H): Invoke it.
6335         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6336         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6337         Reported by Karl Berry <karl@freefriends.org>.
6338
6339 2009-12-22  Eric Blake  <ebb9@byu.net>
6340
6341         math, unistd: avoid redundant includes
6342         * lib/math.in.h (isnan): No need to re-include <math.h>.
6343         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6344
6345         getsubopt: work around cygwin bug
6346         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6347         avoid conflicting with system getsubopt.
6348         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6349         bug.
6350
6351         getopt: synchronize from glibc
6352         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6353         parameter order.  Adjust all callers.
6354         (_getopt_internal_r, main): Adjust quoting in error messages.
6355         Drop considerations for outdated POSIX 1003.2 error message.
6356         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6357         callers.
6358         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6359
6360         test-getopt: test stderr behavior
6361         * modules/getopt-posix-tests (Depends-on): Add dup2.
6362         * tests/test-getopt.c (ASSERT): Avoid stderr.
6363         (main): Move stderr to a temporary file.
6364         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6365         Instead, add parameter to inform caller if output occurred.
6366         (test_getopt): Adjust all existing tests to expect silence, and
6367         add new tests of leading ":".
6368         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6369         glibc shortcomings with leading "-:" or "+:" in optstring.
6370         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6371         Likewise.
6372         * doc/posix-functions/getopt.texi (getopt): Likewise.
6373
6374         test-getopt: enhance test
6375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6376         supports optind=0.
6377         * tests/test-getopt.c (OPTIND_MIN): Move...
6378         * tests/test-getopt.h (OPTIND_MIN): ...here.
6379         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6380         Require that optind=0 works, since modern BSD supports it in
6381         addition to optreset, and since coreutils expects it.
6382         (test_getopt_long_only): New test.
6383         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6384         glibc shortcomings with 'W;', and enforcement of optind=0.
6385         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6386         Likewise.
6387
6388 2009-12-21  Bruno Haible  <bruno@clisp.org>
6389
6390         localename: Improvements for MacOS X and Cygwin.
6391         * lib/localename.h (gl_locale_name_environ): New declaration.
6392         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6393         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6394         (gl_locale_name_posix): Invoke it.
6395         (gl_locale_name_default): Add comments. Use Windows native API also on
6396         Cygwin.
6397
6398 2009-12-21  Bruno Haible  <bruno@clisp.org>
6399
6400         Update list of Win32 locale ids.
6401         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6402         (LANG_SAMI): Renamed from LANG_SAAMI.
6403         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6404         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6405         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6406         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6407         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6408         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6409         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6410         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6411         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6412         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6413         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6414         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6415         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6416         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6417         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6418         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6419         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6420         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6421         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6422         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6423         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6424         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6425         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6426         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6427         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6428         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6429         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6430         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6431         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6432         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6433         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6434         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6435         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6436         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6437         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6438         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6439         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6440         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6441         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6442         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6443         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6444         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6445         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6446         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6447         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6448         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6449         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6450         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6451         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6452         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6453         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6454         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6455         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6456         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6457         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6458         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6459         Add more languages and countries for Sami, Sorbian. Add more countries
6460         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6461         for Pashto. Change country for Syriac, Tswana.
6462
6463 2009-12-21  Eric Blake  <ebb9@byu.net>
6464
6465         test-utimens: avoid spurious failure
6466         * tests/test-chown.h (nap): Factor...
6467         * tests/nap.h: ...into new file.
6468         * tests/test-lchown.h (nap): Avoid duplication.
6469         * tests/test-utimens-common.h (nap): Use shared implementation,
6470         necessary on file systems with 1-second resolution.
6471         * modules/chown-tests (Files): Include new file.
6472         * modules/fdutimensat-tests (Files): Likewise.
6473         * modules/futimens-tests (Files): Likewise.
6474         * modules/lchown-tests (Files): Likewise.
6475         * modules/openat-tests (Files): Likewise.
6476         * modules/utimens-tests (Files): Likewise.
6477         * modules/utimensat-tests (Files): Likewise.
6478
6479 2009-12-19  Eric Blake  <ebb9@byu.net>
6480
6481         futimens, utimensat: work around Linux bug
6482         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6483         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6484         * lib/utimensat.c (rpl_utimensat): Work around it.
6485         * lib/futimens.c (rpl_futimens): Adjust comment.
6486
6487         utimens: work around Linux ctime bug
6488         * lib/utimens.c (detect_ctime_bug): New helper function.
6489         (update_timespec): Differentiate between workaround needed for
6490         this bug vs. what is needed for systems that lack utimensat.
6491         (fdutimens, lutimens): Work around bug.
6492
6493         utimens: check for ctime update
6494         * tests/test-utimens-common.h (check_ctime): Define.
6495         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6496         * tests/test-futimens.h (test_futimens): Likewise.
6497         * tests/test-lutimens.h (test_lutimens): Likewise.
6498         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6499         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6500
6501 2009-12-19  Bruno Haible  <bruno@clisp.org>
6502
6503         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6504         * tests/test-dprintf-posix2.sh: New file.
6505         * tests/test-dprintf-posix2.c: New file.
6506         * modules/dprintf-posix-tests (Files): Add them.
6507         (configure.ac): Check for getrlimit and setrlimit.
6508         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6509
6510 2009-12-19  Bruno Haible  <bruno@clisp.org>
6511
6512         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6513         * tests/test-fprintf-posix3.sh: New file.
6514         * tests/test-fprintf-posix3.c: New file.
6515         * modules/fprintf-posix-tests (Files): Add them.
6516         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6517
6518 2009-12-19  Eric Blake  <ebb9@byu.net>
6519
6520         dirfd: fix prototype
6521         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6522         * lib/dirfd.c (dirfd): Likewise.
6523
6524         canonicalize: reduce memory usage
6525         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6526         allocation to size.
6527         Reported by Solar Designer <solar@openwall.com>.
6528
6529 2009-12-19  Bruno Haible  <bruno@clisp.org>
6530
6531         New module attribute 'Applicability'.
6532         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6533         * gnulib-tool: New option --extract-applicability.
6534         (func_usage): Document it.
6535         (sed_extract_prog): Recognize it.
6536         (func_get_applicability): New function.
6537         (func_import): Generalize handling of 'link-warning' module.
6538         * modules/link-warning (Applicability): New section.
6539         * modules/arg-nonnull (Applicability): New section.
6540         Repoted by Simon Josefsson <simon@josefsson.org>.
6541
6542 2009-12-19  Bruno Haible  <bruno@clisp.org>
6543
6544         fflush: tweak
6545         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6546         * lib/fseeko.c (rpl_fseeko): Likewise.
6547
6548 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6549
6550         * lib/gl_list.h: Fix typo in comment.
6551
6552 2009-12-16  Eric Blake  <ebb9@byu.net>
6553
6554         fcntl: use to simplify other modules
6555         * modules/cloexec (Depends-on): Add fcntl.
6556         * modules/fchdir (Depends-on): Likewise.
6557         * modules/fd-safer-flag (Depends-on): Likewise.
6558         * modules/unistd-safer (Depends-on): Likewise.
6559         * modules/dup3 (configure.ac): Set module indicator.
6560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6561         missing.
6562         * lib/fchdir.c (_gl_register_dup): Fix comment.
6563         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6564         * lib/dup-safer.c (dup_safer): Likewise.
6565         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6566         * lib/dup3.c (dup3): Likewise.
6567         * tests/test-fchdir.c (main): Enhance test.
6568         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6569
6570         fcntl: port portions of fcntl to mingw
6571         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6572         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6573         replacement for mingw.
6574         * modules/fcntl (Description): Update.
6575         (Depends-on): Add dup2.
6576         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6577         * modules/fcntl-h (Makefile.am): Substitute it.
6578         * lib/fcntl.in.h (fcntl): Update declaration.
6579         (F_DUPFD, F_GETFD): New macros, when needed.
6580         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6581         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6582         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6583         we now guarantee.
6584
6585         fcntl: work around cygwin bug in F_DUPFD
6586         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6587         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6588         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6589         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6590         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6591
6592         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6593         * modules/fcntl (Files): List new files.
6594         (configure.ac): Run a test.
6595         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6596         * lib/fcntl.c (rpl_fcntl): Likewise.
6597         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6598         (gl_FCNTL_H): Always replace fcntl.h.
6599         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6600         * lib/fcntl.in.h (fcntl): Declare replacement.
6601         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6602         needed, plus a witness.
6603         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6604         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6605         * tests/test-fcntl.c: New file.
6606         * modules/fcntl-tests: Likewise.
6607
6608         binary-io: avoid potential compilation warning
6609         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6610         directives.
6611
6612         fflush: avoid compilation error on NetBSD
6613         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6614         between off_t and fpos_t, since the latter is sometimes a struct.
6615         * lib/fseeko.c (rpl_fseeko): Likewise.
6616         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6617
6618 2009-12-15  Eric Blake  <ebb9@byu.net>
6619
6620         fcntl-h, stdio, sys_ioctl: fix declarations
6621         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6622         function must not take arguments.
6623         * lib/sys_ioctl.in.h (ioctl): Likewise.
6624         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6625         (open): Add a link warning.
6626
6627 2009-12-15  Jim Meyering  <meyering@redhat.com>
6628
6629         areadlink, areadlink-with-size: relax license to LGPLv2+
6630         * modules/areadlink (License): Relax to LGPLv2+.
6631         * modules/areadlink-with-size (License): Likewise.
6632
6633 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6634             Bruno Haible  <bruno@clisp.org>
6635
6636         *printf: Fix memory leak.
6637         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6638         * lib/vfprintf.c (vfprintf): Likewise.
6639         * lib/dprintf.c (dprintf): Likewise.
6640         * lib/vdprintf.c (vdprintf): Likewise.
6641
6642 2009-12-14  Eric Blake  <ebb9@byu.net>
6643
6644         accept4: adjust module dependencies
6645         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6646
6647         utimens: one more try at avoiding compiler warning
6648         * lib/utimens.c (lutimens): Lower scope of result.
6649
6650 2009-12-13  Bruno Haible  <bruno@clisp.org>
6651
6652         Move the malloc checking from module 'list' to new module 'xlist'.
6653         * modules/xlist: New file.
6654         * lib/gl_xlist.h: New file.
6655         * lib/gl_xlist.c: New file.
6656         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6657         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6658         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6659         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6660         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6661         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6662         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6663         gl_sortedlist_nx_add): New declarations.
6664         (struct gl_list_implementation): Rename and change methods accordingly.
6665         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6666         (gl_list_nx_create): Renamed from gl_list_create.
6667         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6668         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6669         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6670         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6671         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6672         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6673         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6674         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6675         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6676         gl_list_create_empty.
6677         (gl_list_nx_create): Renamed from gl_list_create.
6678         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6679         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6680         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6681         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6682         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6683         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6684         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6685         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6686         * lib/gl_array_list.c: Don't include xalloc.h.
6687         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6688         NULL upon out-of-memory.
6689         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6690         out-of-memory.
6691         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6692         Change return type to 'int'.
6693         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6694         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6695         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6696         upon out-of-memory.
6697         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6698         upon out-of-memory.
6699         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6700         upon out-of-memory.
6701         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6702         upon out-of-memory.
6703         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6704         out-of-memory.
6705         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6706         Update.
6707         (gl_array_list_implementation): Update.
6708         * lib/gl_carray_list.c: Don't include xalloc.h.
6709         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6710         Return NULL upon out-of-memory.
6711         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6712         out-of-memory.
6713         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6714         Change return type to 'int'.
6715         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6716         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6717         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6718         upon out-of-memory.
6719         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6720         upon out-of-memory.
6721         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6722         out-of-memory.
6723         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6724         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6725         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6726         Update.
6727         (gl_carray_list_implementation): Update.
6728         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6729         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6730         gl_linked_create_empty. Return NULL upon out-of-memory.
6731         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6732         out-of-memory.
6733         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6734         Change return type to 'int'. Return -1 upon out-of-memory.
6735         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6736         out-of-memory.
6737         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6738         upon out-of-memory.
6739         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6740         upon out-of-memory.
6741         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6742         NULL upon out-of-memory.
6743         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6744         upon out-of-memory.
6745         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6746         out-of-memory.
6747         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6748         Update.
6749         * lib/gl_linked_list.c: Don't include xalloc.h.
6750         (gl_linked_list_implementation): Update.
6751         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6752         (add_to_bucket): Change return type to 'int'.
6753         (gl_linkedhash_list_implementation): Update.
6754         * lib/gl_anytree_list1.h (free_subtree): New function.
6755         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6756         gl_tree_create_empty. Return NULL upon out-of-memory.
6757         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6758         Change return type to 'int'. Return -1 upon out-of-memory.
6759         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6760         out-of-memory.
6761         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6762         (gl_tree_remove_node): New function, moved here from
6763         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6764         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6765         Update.
6766         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6767         malloc, not xmalloc. Return NULL upon out-of-memory.
6768         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6769         out-of-memory.
6770         (gl_tree_remove_node_from_tree): New function, extracted from
6771         gl_tree_remove_node.
6772         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6773         upon out-of-memory.
6774         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6775         out-of-memory.
6776         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6777         upon out-of-memory.
6778         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6779         upon out-of-memory.
6780         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6781         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6782         not xmalloc. Return NULL upon out-of-memory.
6783         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6784         out-of-memory.
6785         (gl_tree_remove_node_from_tree): New function, extracted from
6786         gl_tree_remove_node.
6787         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6788         upon out-of-memory.
6789         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6790         out-of-memory.
6791         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6792         upon out-of-memory.
6793         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6794         upon out-of-memory.
6795         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6796         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6797         gl_anytree_list1.h before gl_anyavltree_list2.h.
6798         (gl_avltree_list_implementation): Update.
6799         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6800         gl_anytree_list1.h before gl_anyavltree_list2.h.
6801         (gl_rbtree_list_implementation): Update.
6802         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6803         Change return type to 'int'. Return -1 upon out-of-memory. Use
6804         __builtin_expect.
6805         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6806         (gl_avltreehash_list_implementation): Update.
6807         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6808         (gl_rbtreehash_list_implementation): Update.
6809         * modules/array-list (Depends-on): Remove xalloc.
6810         * modules/carray-list (Depends-on): Likewise.
6811         * modules/linked-list (Depends-on): Likewise.
6812         * modules/linkedhash-list (Depends-on): Likewise.
6813         * modules/avltree-list (Depends-on): Likewise.
6814         * modules/rbtree-list (Depends-on): Likewise.
6815         * modules/avltreehash-list (Depends-on): Likewise.
6816         * modules/rbtreehash-list (Depends-on): Likewise.
6817
6818         * modules/xsublist: New file.
6819         * lib/gl_xsublist.h: New file.
6820         * lib/gl_xsublist.c: New file.
6821         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6822         (gl_sublist_nx_create): New declaration.
6823         * lib/gl_sublist.c: Don't include xalloc.h.
6824         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6825         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6826         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6827         Change return type to 'int'. Return -1 upon out-of-memory.
6828         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6829         upon out-of-memory.
6830         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6831         NULL upon out-of-memory.
6832         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6833         upon out-of-memory.
6834         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6835         NULL upon out-of-memory.
6836         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6837         NULL upon out-of-memory.
6838         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6839         upon out-of-memory.
6840         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6841         (gl_sublist_list_implementation): Update.
6842         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6843         upon out-of-memory.
6844         * modules/sublist (Depends-on): Remove xalloc.
6845
6846         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6847         * tests/test-carray_list.c: Likewise.
6848         * tests/test-linked_list.c: Likewise.
6849         * tests/test-linkedhash_list.c: Likewise.
6850         * tests/test-avltree_list.c: Likewise.
6851         * tests/test-rbtree_list.c: Likewise.
6852         * tests/test-avltreehash_list.c: Likewise.
6853         * tests/test-rbtreehash_list.c: Likewise.
6854         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6855         * modules/carray-list-tests (Makefile.am): Likewise.
6856         * modules/linked-list-tests (Makefile.am): Likewise.
6857         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6858         * modules/avltree-list-tests (Makefile.am): Likewise.
6859         * modules/rbtree-list-tests (Makefile.am): Likewise.
6860         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6861         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6862
6863         * NEWS: Mention the changes.
6864
6865         * lib/clean-temp.c: Include gl_xlist.h.
6866         * modules/clean-temp (Depends-on): Add xlist.
6867
6868         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6869         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6870
6871         * tests/test-array_oset.c: Include gl_xlist.h.
6872         * modules/array-oset-tests (Depends-on): Add xlist.
6873
6874         Reported by José E. Marchesi <jemarch@gnu.org>.
6875
6876 2009-12-13  Bruno Haible  <bruno@clisp.org>
6877
6878         Move the malloc checking from module 'oset' to new module 'xoset'.
6879         * modules/xoset: New file.
6880         * lib/gl_xoset.h: New file.
6881         * lib/gl_xoset.c: New file.
6882         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6883         declarations.
6884         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6885         (struct gl_oset_implementation): Rename and change methods accordingly.
6886         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6887         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6888         'int'. Mark as __warn_unused_result__.
6889         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6890         gl_oset_create_empty.
6891         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6892         'int'.
6893         * lib/gl_array_oset.c: Don't include xalloc.h.
6894         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6895         malloc, not xmalloc.
6896         (grow): Change return type to 'int'. Don't call xalloc_die.
6897         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6898         to 'int'.
6899         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6900         'int'.
6901         (gl_array_oset_implementation): Update.
6902         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6903         gl_tree_create_empty.
6904         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6905         'int'.
6906         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6907         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6908         xmalloc.
6909         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6910         not xmalloc.
6911         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6912         xmalloc.
6913         (gl_avltree_oset_implementation): Update.
6914         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6915         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6916         xmalloc.
6917         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6918         not xmalloc.
6919         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6920         xmalloc.
6921         (gl_rbtree_oset_implementation): Update.
6922         * modules/array-oset (Depends-on): Remove xalloc.
6923         * modules/avltree-oset (Depends-on): Likewise.
6924         * modules/rbtree-oset (Depends-on): Likewise.
6925         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6926         * tests/test-avltree_oset.c: Likewise.
6927         * tests/test-rbtree_oset.c: Likewise.
6928         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6929         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6930         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6931         * NEWS: Mention the change.
6932
6933 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6934
6935         maint.mk: allow a project to override release-prep commands
6936         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6937         commands into a new rule.
6938         (release-prep): New rule.
6939         (release-prep-hook): New overridable variable.
6940
6941 2009-12-13  Bruno Haible  <bruno@clisp.org>
6942
6943         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6944
6945 2009-12-13  Jim Meyering  <meyering@redhat.com>
6946
6947         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6948         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6949
6950 2009-12-12  Bruno Haible  <bruno@clisp.org>
6951
6952         duplocale: Tweak.
6953         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6954
6955 2009-12-12  Karl Berry  <karl@gnu.org>
6956
6957         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6958
6959 2009-12-12  Bruno Haible  <bruno@clisp.org>
6960
6961         * m4/po.m4: Undo incorrect untabification.
6962
6963 2009-12-12  Bruno Haible  <bruno@clisp.org>
6964
6965         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6966         * modules/c-strtod (Depends-on): Add locale.
6967         * modules/c-strtold (Depends-on): Likewise.
6968
6969 2009-12-12  Bruno Haible  <bruno@clisp.org>
6970
6971         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6972
6973 2009-12-11  Eric Blake  <ebb9@byu.net>
6974
6975         setenv: relax requirement in light of POSIX ruling
6976         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6977         not NULL.
6978         * tests/test-setenv.c (main): Relax test.
6979         * tests/test-unsetenv.c (main): Likewise.
6980         * doc/posix-functions/setenv.texi (setenv): Document this.
6981         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6982
6983 2009-12-11  Bruno Haible  <bruno@clisp.org>
6984
6985         New module 'fd-safer-flag'.
6986         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6987         * lib/dup-safer.c (dup_safer_flag): Remove function.
6988         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6989         * lib/fd-safer.c (fd_safer_flag): Remove function.
6990         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6991         * modules/cloexec (configure.ac): Drop indicator macro.
6992         * modules/fd-safer-flag: New file.
6993         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6994         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6995         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6996
6997 2009-12-11  Bruno Haible  <bruno@clisp.org>
6998
6999         Tests for module 'nl_langinfo'.
7000         * modules/nl_langinfo-tests: New file.
7001         * tests/test-nl_langinfo.sh: New file.
7002         * tests/test-nl_langinfo.c: New file.
7003
7004         New module 'nl_langinfo'.
7005         * lib/nl_langinfo.c: New file.
7006         * m4/nl_langinfo.m4: New file.
7007         * modules/nl_langinfo: New file.
7008         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7009
7010 2009-12-11  Bruno Haible  <bruno@clisp.org>
7011
7012         Tests for module 'langinfo'.
7013         * modules/langinfo-tests: New file.
7014         * tests/test-langinfo.c: New file.
7015
7016         New module 'langinfo'.
7017         * lib/langinfo.in.h: New file.
7018         * m4/langinfo_h.m4: New file.
7019         * modules/langinfo: New file.
7020         * doc/posix-headers/langinfo.texi: Mention the new module.
7021
7022 2009-12-11  Bruno Haible  <bruno@clisp.org>
7023
7024         * lib/config.charset: Untabify.
7025
7026 2009-12-11  Bruno Haible  <bruno@clisp.org>
7027
7028         * modules/unistd-safer (configure.ac): Drop indicator macro.
7029
7030 2009-12-11  Bruno Haible  <bruno@clisp.org>
7031
7032         Move pipe2-safer code to its own file.
7033         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7034         * lib/pipe-safer.c (pipe2_safer): Remove function.
7035         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7036         (Makefile.am): Add it to lib_SOURCES.
7037
7038 2009-12-10  Bruno Haible  <bruno@clisp.org>
7039
7040         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7041
7042 2009-12-10  Bruno Haible  <bruno@clisp.org>
7043
7044         Declare which arguments expect non-NULL values, for GCC and clang.
7045         * build-aux/arg-nonnull.h: New file.
7046         * modules/arg-nonnull: New file.
7047         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7048         (inet_ntop, inet_pton): Use it.
7049         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7050         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7051         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7052         (open, openat): Use it.
7053         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7054         (fnmatch): Use it.
7055         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7056         (getopt, getopt_long, getopt_long_only): Use it.
7057         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7058         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7059         Use it.
7060         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7061         (iconv_open): Use it.
7062         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7063         (strtoimax, strtoumax): Use it.
7064         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7065         (duplocale): Use it.
7066         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7067         (frexp, frexpl): Use it.
7068         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7069         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7070         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7071         (tsearch, tfind, tdelete, twalk): Use it.
7072         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7073         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7074         sigpending): Use it.
7075         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7076         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7077         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7078         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7079         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7080         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7081         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7082         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7083         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7084         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7085         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7086         Use it.
7087         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7088         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7089         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7090         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7091         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7092         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7093         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7094         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7095         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7096         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7097         strtoull, unsetenv): Use it.
7098         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7099         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7100         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7101         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7102         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7103         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7104         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7105         (strcasecmp, strncasecmp): Use it.
7106         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7107         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7108         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7109         rpl_setsockopt): Use it.
7110         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7111         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7112         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7113         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7114         (gettimeofday): Use it.
7115         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7116         (times): Use it.
7117         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7118         (uname): Use it.
7119         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7120         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7121         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7122         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7123         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7124         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7125         unlinkat, write): Use it.
7126         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7127         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7128         * lib/argv-iter.h: Include arg-nonnull.h.
7129         (_ATTRIBUTE_NONNULL_): Remove macro.
7130         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7131         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7132         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7133         optimization.
7134         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7135         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7136         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7137         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7138         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7139         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7140         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7141         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7142         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7143         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7144         * modules/dirent (Depends-on): Add arg-nonnull.
7145         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7146         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7147         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7148         * modules/fnmatch (Depends-on): Add arg-nonnull.
7149         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7150         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7151         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7152         * modules/glob (Depends-on): Add arg-nonnull.
7153         (Makefile.am): Insert arg-nonnull.h into glob.h.
7154         * modules/iconv_open (Depends-on): Add arg-nonnull.
7155         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7156         * modules/inttypes (Depends-on): Add arg-nonnull.
7157         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7158         * modules/locale (Depends-on): Add arg-nonnull.
7159         (Makefile.am): Insert arg-nonnull.h into locale.h.
7160         * modules/math (Depends-on): Add arg-nonnull.
7161         (Makefile.am): Insert arg-nonnull.h into math.h.
7162         * modules/netdb (Depends-on): Add arg-nonnull.
7163         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7164         * modules/search (Depends-on): Add arg-nonnull.
7165         (Makefile.am): Insert arg-nonnull.h into search.h.
7166         * modules/signal (Depends-on): Add arg-nonnull.
7167         (Makefile.am): Insert arg-nonnull.h into signal.h.
7168         * modules/spawn (Depends-on): Add arg-nonnull.
7169         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7170         * modules/stdio (Depends-on): Add arg-nonnull.
7171         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7172         * modules/stdlib (Depends-on): Add arg-nonnull.
7173         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7174         * modules/string (Depends-on): Add arg-nonnull.
7175         (Makefile.am): Insert arg-nonnull.h into string.h.
7176         * modules/strings (Depends-on): Add arg-nonnull.
7177         (Makefile.am): Insert arg-nonnull.h into strings.h.
7178         * modules/sys_socket (Depends-on): Add arg-nonnull.
7179         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7180         * modules/sys_stat (Depends-on): Add arg-nonnull.
7181         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7182         * modules/sys_time (Depends-on): Add arg-nonnull.
7183         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7184         * modules/sys_times (Depends-on): Add arg-nonnull.
7185         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7186         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7187         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7188         * modules/time (Depends-on): Add arg-nonnull.
7189         (Makefile.am): Insert arg-nonnull.h into time.h.
7190         * modules/unistd (Depends-on): Add arg-nonnull.
7191         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7192         * modules/wchar (Depends-on): Add arg-nonnull.
7193         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7194         * modules/argv-iter (Depends-on): Add arg-nonnull.
7195         * tests/test-canonicalize.c (null_ptr): New function.
7196         (main): Use it.
7197         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7198         (main): Use it.
7199         * tests/test-memmem.c (null_ptr): New function.
7200         (main): Use it.
7201         Reported by Jim Meyering.
7202
7203 2009-12-10  Bruno Haible  <bruno@clisp.org>
7204
7205         Use spaces for indentation, not tabs.
7206         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7207         * m4/*.m4: Untabify.
7208         * build-aux/*.h: Untabify.
7209         * tests/**/*.[hc]: Untabify.
7210         * README: New section "Indent with spaces, not TABs", based on
7211         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7212         * NEWS: Mention the change.
7213
7214 2009-12-10  Bruno Haible  <bruno@clisp.org>
7215
7216         pty test: Fix link error.
7217         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7218         test_pty_LDADD.
7219
7220 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7221
7222         * modules/pty: New file.
7223         * modules/pty-tests: New file.
7224         * m4/pty.m4: New file.
7225         * tests/test-pty.c: New file.
7226         * doc/glibc-headers/pty.texi: Modified.
7227         * doc/glibc-functions/forkpty.texi: Modified.
7228         * doc/glibc-functions/openpty.texi: Modified.
7229
7230 2009-12-10  Bruno Haible  <bruno@clisp.org>
7231
7232         Avoid syntax error in C++ mode.
7233         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7234
7235 2009-12-10  Bruno Haible  <bruno@clisp.org>
7236
7237         Use sed with option -e.
7238         * gnulib-tool (func_version, func_emit_copyright_notice,
7239         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7240         option -e to sed.
7241         * modules/link-warning (Makefile.am): Likewise.
7242
7243 2009-12-10  Jim Meyering  <meyering@redhat.com>
7244
7245         mgetgroups: do not write bytes beyond end of malloc'd buffer
7246         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7247         username, we call getgroups with a one-element-shorter buffer,
7248         but still told it the length was original, max_n_groups.
7249
7250 2009-12-09  Eric Blake  <ebb9@byu.net>
7251
7252         cloexec: relax license
7253         * modules/cloexec (Maintainer): Add myself.
7254         (License): Use LGPL, not GPL.
7255
7256         link-warning: optimize generation
7257         * modules/link-warning (Makefile.am): Reduce process usage.
7258
7259 2009-12-09  Bruno Haible  <bruno@clisp.org>
7260
7261         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7262         workaround was added on 2009-11-17.
7263
7264 2009-12-09  Jim Meyering  <meyering@redhat.com>
7265             Bruno Haible  <bruno@clisp.org>
7266
7267         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7268         * modules/link-warning (Makefile.am): Make the comment-removing sed
7269         command more robust in the face of bootstrap-prepended comment lines.
7270
7271 2009-12-09  Bruno Haible  <bruno@clisp.org>
7272
7273         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7274         most one group.
7275
7276 2009-12-09  Simon Josefsson <simon@josefsson.org>
7277             Bruno Haible  <bruno@clisp.org>
7278
7279         * build-aux/link-warning.h: Add copyright notice.
7280         * modules/link-warning (Makefile.am): Generate link-warning.h from
7281         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7282         * NEWS: Mention change in link-warning module.
7283         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7284         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7285         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7286         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7287         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7288         * modules/math (Makefile.am): Add dependency to math.h.
7289         * modules/search (Makefile.am): Add dependency to search.h.
7290         * modules/signal (Makefile.am): Add dependency to signal.h.
7291         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7292         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7293         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7294         * modules/string (Makefile.am): Add dependency to string.h.
7295         * modules/strings (Makefile.am): Add dependency to strings.h.
7296         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7297         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7298         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7299         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7300         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7301         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7302         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7303         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7304         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7305
7306 2009-12-09  Bruno Haible  <bruno@clisp.org>
7307
7308         fchdir: Optimize away rpl_fstat when possible.
7309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7310         REPLACE_OPEN_DIRECTORY.
7311         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7312
7313 2009-12-09  Bruno Haible  <bruno@clisp.org>
7314
7315         * lib/fchdir.c: Update comment.
7316
7317 2009-12-09  Bruno Haible  <bruno@clisp.org>
7318
7319         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7320
7321 2009-12-08  Eric Blake  <ebb9@byu.net>
7322
7323         fchdir: avoid memory leak on re-registration.
7324         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7325
7326 2009-12-08  Jim Meyering  <meyering@redhat.com>
7327
7328         init.sh: avoid Solaris 10 /bin/sh portability problem
7329         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7330         sourced script:
7331           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7332           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7333           bar
7334         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7335         and two tests used that idiom.
7336         * tests/init.sh: Update suggested usage comments.
7337         (path_prepend_): New function, to be used in place
7338         of the --src-path=DIR option.
7339         (setup_): Move PATH-prepending code into path_prepend_.
7340         * tests/test-pread.sh: Adapt to new usage.
7341         * tests/test-xalloc-die.sh: Likewise.
7342
7343 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7344
7345         * doc/gnulib.texi (Glibc pty.h): Add.
7346         * doc/glibc-functions/forkpty.texi: Add.
7347         * doc/glibc-functions/openpty.texi: Add.
7348         Suggested by Bruno Haible.
7349
7350 2009-12-08  Eric Blake  <ebb9@byu.net>
7351
7352         fchdir: fix logic bugs
7353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7354         * tests/test-fchdir.c (main): Enhance test.
7355         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7356         is in use.
7357
7358         dup2: fix logic bugs
7359         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7360         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7361         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7362         exists.
7363         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7364
7365 2009-12-07  Eric Blake  <ebb9@byu.net>
7366
7367         unlink: fix m4 detection
7368         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7369
7370         unistd-safer: add unit test
7371         * modules/unistd-safer-tests: New file.
7372         * tests/test-dup-safer.c: Likewise.
7373         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7374         * tests/test-dup2.c (setmode): Likewise.
7375         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7376
7377         cloexec: preserve text vs. binary across dup_cloexec
7378         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7379         mode.
7380         * modules/dup2-tests (Depends-on): Add binary-io.
7381         * modules/cloexec-tests (Depends-on): Likewise.
7382         * tests/test-dup2.c (setmode, is_mode): New helpers.
7383         (main): Add tests that translation mode is preserved.
7384         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7385         Reported by Bruno Haible.
7386
7387         mgetgroups: reduce duplicate listings
7388         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7389         resulting array.
7390         * tests/test-chown.h (test_chown): Simplify client.
7391         * tests/test-lchown.h (test_lchown): Likewise.
7392
7393 2009-12-06  Bruno Haible  <bruno@clisp.org>
7394
7395         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7396         value.
7397
7398 2009-12-06  Bruno Haible  <bruno@clisp.org>
7399
7400         * lib/progname.c: Include stdio.h, stdlib.h.
7401         (set_program_name): Reject a NULL argument.
7402
7403 2009-12-05  Eric Blake  <ebb9@byu.net>
7404
7405         pipe2-safer: new module
7406         * modules/pipe2-safer: New file.
7407         * lib/unistd-safer.h (pipe2_safer): New prototype.
7408         * lib/unistd--.h (pipe2): New wrapper.
7409         * lib/pipe-safer.c (pipe2_safer): New function.
7410         * modules/pipe (Depends-on): Add pipe2-safer.
7411         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7412
7413         stdlib-safer: preserve cloexec flag for mkostemp[s]
7414         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7415         fd_safer_flag.
7416
7417         unistd-safer: allow preservation of cloexec status via flag
7418         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7419         prototypes.
7420         * lib/dup-safer.c (dup_safer_flag): New function.
7421         * lib/fd-safer.c (fd_safer_flag): Likewise.
7422         * modules/cloexec (configure.ac): Set witness.
7423
7424         test-dup2: enhance test
7425         * modules/dup2-tests (Depends-on): Add cloexec.
7426         * tests/test-dup2.c (main): Enhance test.
7427
7428         cloexec: add dup_cloexec
7429         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7430         header and comments.
7431         * lib/cloexec.c (set_cloexec_flag): Add comments.
7432         (dup_cloexec): New function, with mingw implementation borrowed
7433         from...
7434         * lib/w32spawn.h (dup_noinherit): ...here.
7435         * modules/execute (Depends-on): Add cloexec.
7436         * modules/pipe (Depends-on): Likewise.
7437         * modules/cloexec (Depends-on): Add dup2.
7438         * modules/cloexec-tests (Files): New file.
7439         * tests/test-cloexec.c: Likewise.
7440
7441         test-xalloc-die: fix test for mingw
7442         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7443         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7444         directory and .exe suffix off argv[0] output.
7445
7446         test-fseeko: fix test for mingw
7447         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7448         than undefining fseek, so test will pass on mingw.
7449
7450 2009-12-05  Bruno Haible  <bruno@clisp.org>
7451
7452         * lib/progname.h (set_program_name): Clarify specification.
7453         * lib/progname.c (set_program_name): Likewise.
7454         Reported by Jim Meyering.
7455
7456 2009-12-05  Jim Meyering  <meyering@redhat.com>
7457
7458         maint.mk: backslash-escape parens in default regexp
7459         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7460         backslash-escape the literal parentheses.
7461
7462         maint.mk: news-date-check: use grep -E
7463         * top/maint.mk (today): Define a Make variable, not a...
7464         (news-date-check): ...shell variable.
7465         (news-date-regexp): Use the Make variable.
7466         Use grep's -E option.  Change the failing diagnostic to mention
7467         the variable, $(news-date-regexp).
7468
7469 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7470
7471         maintainer-makefile: allow customization of NEWS entry format
7472         * top/maint.mk (news-date-regexp): New overridable variable.
7473         (news-date-check): Use it.
7474
7475 2009-12-04  Eric Blake  <ebb9@byu.net>
7476
7477         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7478         * lib/mgetgroups.h (xgetgroups): New prototype.
7479         * lib/mgetgroups.c (xgetgroups): New wrapper.
7480         (mgetgroups): Handle ENOSYS.
7481         * modules/mgetgroups (Depends-on): Add realloc.
7482         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7483
7484         mgetgroups: avoid argument promotion issues with -1
7485         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7486         for invalid gid_t.
7487         * tests/test-chown.h (getegid, test_chown): Likewise.
7488         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7489
7490 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7491
7492         exclude: Fix header file problems.
7493         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7494
7495 2009-12-01  Jim Meyering  <meyering@redhat.com>
7496
7497         fts: fts_open: do not let an empty string cause immediate failure
7498         This is required in support of GNU rm, for which the command
7499         "rm A '' B" must process and remove both A and B, in spite of
7500         the empty string argument.
7501         * lib/fts.c (fts_open): Do not let the presence of an empty string
7502         cause fts_open to fail immediately.  Most fts-using tools must be
7503         able to process all arguments, in order, and can be expected to
7504         diagnose such arguments themselves.
7505
7506 2009-11-30  Eric Blake  <ebb9@byu.net>
7507
7508         utimens: fix compilation error
7509         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7510         Declare variable at right scope.
7511
7512 2009-11-29  Jim Meyering  <meyering@redhat.com>
7513
7514         bootstrap: handle perl-5.11's changed --version output
7515         * build-aux/bootstrap (get_version): Handle perl separately,
7516         since perl-5.11's --version output is different.
7517
7518 2009-11-28  Jim Meyering  <meyering@redhat.com>
7519
7520         userspec: depend on the inttostr module, too
7521         * modules/userspec (Depends-on): Add inttostr.
7522
7523         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7524         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7525         number of MAXUID when it evaluates to (uid_t) -1.
7526         Likewise for group ID.  Reported by Matt McCutchen in
7527         <http://savannah.gnu.org/bugs/?28113>
7528
7529         userspec: reformat to use spaces, not TABs
7530         * lib/userspec.c: Expand TABs to spaces.
7531         Add Emacs' "indent-tabs-mode: nil" hint.
7532
7533 2009-11-27  Eric Blake  <ebb9@byu.net>
7534
7535         getopt-gnu: flush out another BSD bug
7536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7537         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7538         flush out BSD bug.
7539         * tests/test-getopt.h (test_getopt): End lists with NULL.
7540         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7541         (test_getopt_long_posix): Enhance test.
7542         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7543         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7544         getopt-gnu.
7545         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7546         Likewise.
7547
7548 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7549
7550         * modules/idpriv-droptemp-tests (Notice): Fix text.
7551
7552 2009-11-27  Jim Meyering  <meyering@redhat.com>
7553
7554         test-xalloc-die: avoid spurious failure due to libtool argv difference
7555         In a libtool-enabled project, this test would fail due to a difference
7556         in the emitted program name, e.g.,
7557         -test-xalloc-die: memory exhausted
7558         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7559         Use program to avoid that.
7560         * modules/xalloc-die-tests (Depends-on): Add progname.
7561         * tests/test-xalloc-die.c: Include progname.h".
7562         (program_name): Remove decl.
7563         (main): Call set_program_name.
7564         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7565
7566 2009-11-26  Richard Jones  <rjones@redhat.com>
7567
7568         w32sock: leave win32 error in place.
7569         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7570
7571 2009-11-26  Eric Blake  <ebb9@byu.net>
7572
7573         init.sh: suggest to use skip_ and fail_ functions in comments
7574         * tests/init.sh: Add a sentence.
7575
7576 2009-11-25  Bruno Haible  <bruno@clisp.org>
7577
7578         init.sh: add documentation in comments
7579         * tests/init.sh: Add some developer and user documentation.
7580
7581 2009-11-26  Jim Meyering  <meyering@redhat.com>
7582
7583         init.sh: accommodate even those who specify bogus srcdir manually
7584         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7585         configure-time tests to be sanitized, so that there is no need to
7586         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7587         (with no double quotes) suffices.  However, since tests may be
7588         invoked manually, and since you may explicitly set srcdir to the
7589         name of a directory containing spaces, do quote its uses here.
7590         * tests/test-pread.sh: Likewise.
7591         Suggested by Bruno Haible.
7592
7593         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7594         * tests/test-pread.sh: Write no data into the pipe, because
7595         test-pread actually reads none.  This avoids a diagnostic,
7596         "bash: echo: write error: Broken pipe", that arises in the unusual
7597         event something is ignoring SIGPIPE, and might be interpreted
7598         as some sort of failure.  Reported by Bruno Haible.
7599
7600 2009-11-25  Jim Meyering  <meyering@redhat.com>
7601
7602         test-pread: cover failure with ESPIPE and EINVAL
7603         * tests/test-pread.c (main): Test for failure, too.
7604         * tests/test-pread.sh: Invoke with stdin on a pipe.
7605         Suggested by Eric Blake.
7606
7607         pread: improvement and fix
7608         * modules/pread (Depends-on): Depend on lseek, for portability to
7609         e.g., mingw.  Suggested by Eric Blake.
7610         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7611
7612         unistd.in.h: correct declaration of pread
7613         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7614         Reported by Richard W.M. Jones.
7615
7616         test-pread.sh: distribute the test script
7617         * modules/pread-tests (Files): Include test-pread.sh.
7618
7619         test-pread.sh: clean up
7620         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7621         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7622         That is unnecessary, since it's always ".".
7623         Suggestion from Eric Blake.
7624
7625         test-pread.sh: make executable
7626         * tests/test-pread.sh: Set executable bit.
7627         Reported by Eric Blake.
7628
7629         correct typo in test-pread.sh
7630         * tests/test-pread.sh: Add #! line.
7631
7632         test pread
7633         * tests/test-pread.c: New file.
7634         * tests/test-pread.sh: Likewise.
7635         * modules/pread-tests: Likewise.
7636
7637         pread: new module
7638         * modules/pread: New file.
7639         * lib/unistd.in.h (pread): Define/declare.
7640         * lib/pread.c (pread): New file.
7641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7642         * modules/unistd (Makefile.am): Substitute witnesses.
7643         * doc/posix-functions/pread.texi (pread): Update.
7644         * MODULES.html.sh: Add pread.
7645
7646 2009-11-25  Jim Meyering  <meyering@redhat.com>
7647
7648         tests/init.sh: new file to be used via most *.sh tests
7649         * tests/init.sh: New file.
7650
7651 2009-11-25  Eric Blake  <ebb9@byu.net>
7652
7653         utimens: work around older Linux failure with symlinks
7654         * lib/utimens.c (lutimensat_works_really): New variable.
7655         (fdutimens, lutimens): Use it to manage kernels that support
7656         nanosecond times on files, but not on symlinks.
7657         Reported by Ondřej Vašík.
7658
7659         utimes: fix configure grammar
7660         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7661
7662 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7663
7664         regex: Fix fastmap for multibyte character ranges.
7665         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7666         characters when a multibyte character range is included.
7667
7668 2009-11-22  Andy Wingo  <wingo@pobox.com>
7669
7670         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7671         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7672
7673 2009-11-24  Bruno Haible  <bruno@clisp.org>
7674
7675         doc: Most *_l functions exist in MacOS X 10.5.
7676         * doc/posix-functions/duplocale.texi: Update platforms list.
7677         * doc/posix-functions/freelocale.texi: Likewise.
7678         * doc/posix-functions/newlocale.texi: Likewise.
7679         * doc/posix-functions/uselocale.texi: Likewise.
7680         * doc/posix-functions/isalnum_l.texi: Likewise.
7681         * doc/posix-functions/isalpha_l.texi: Likewise.
7682         * doc/posix-functions/isblank_l.texi: Likewise.
7683         * doc/posix-functions/iscntrl_l.texi: Likewise.
7684         * doc/posix-functions/isdigit_l.texi: Likewise.
7685         * doc/posix-functions/isgraph_l.texi: Likewise.
7686         * doc/posix-functions/islower_l.texi: Likewise.
7687         * doc/posix-functions/isprint_l.texi: Likewise.
7688         * doc/posix-functions/ispunct_l.texi: Likewise.
7689         * doc/posix-functions/isspace_l.texi: Likewise.
7690         * doc/posix-functions/isupper_l.texi: Likewise.
7691         * doc/posix-functions/iswalnum_l.texi: Likewise.
7692         * doc/posix-functions/iswalpha_l.texi: Likewise.
7693         * doc/posix-functions/iswblank_l.texi: Likewise.
7694         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7695         * doc/posix-functions/iswctype_l.texi: Likewise.
7696         * doc/posix-functions/iswdigit_l.texi: Likewise.
7697         * doc/posix-functions/iswgraph_l.texi: Likewise.
7698         * doc/posix-functions/iswlower_l.texi: Likewise.
7699         * doc/posix-functions/iswprint_l.texi: Likewise.
7700         * doc/posix-functions/iswpunct_l.texi: Likewise.
7701         * doc/posix-functions/iswspace_l.texi: Likewise.
7702         * doc/posix-functions/iswupper_l.texi: Likewise.
7703         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7704         * doc/posix-functions/isxdigit_l.texi: Likewise.
7705         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7706         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7707         * doc/posix-functions/strcoll_l.texi: Likewise.
7708         * doc/posix-functions/strfmon_l.texi: Likewise.
7709         * doc/posix-functions/strftime_l.texi: Likewise.
7710         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7711         * doc/posix-functions/strxfrm_l.texi: Likewise.
7712         * doc/posix-functions/tolower_l.texi: Likewise.
7713         * doc/posix-functions/toupper_l.texi: Likewise.
7714         * doc/posix-functions/towctrans_l.texi: Likewise.
7715         * doc/posix-functions/towlower_l.texi: Likewise.
7716         * doc/posix-functions/towupper_l.texi: Likewise.
7717         * doc/posix-functions/wcscoll_l.texi: Likewise.
7718         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7719         * doc/posix-functions/wctrans_l.texi: Likewise.
7720         * doc/posix-functions/wctype_l.texi: Likewise.
7721         * doc/glibc-functions/strptime_l.texi: Likewise.
7722         * doc/glibc-functions/strtod_l.texi: Likewise.
7723         * doc/glibc-functions/strtof_l.texi: Likewise.
7724         * doc/glibc-functions/strtol_l.texi: Likewise.
7725         * doc/glibc-functions/strtold_l.texi: Likewise.
7726         * doc/glibc-functions/strtoll_l.texi: Likewise.
7727         * doc/glibc-functions/strtoul_l.texi: Likewise.
7728         * doc/glibc-functions/strtoull_l.texi: Likewise.
7729         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7730         * doc/glibc-functions/wcstod_l.texi: Likewise.
7731         * doc/glibc-functions/wcstof_l.texi: Likewise.
7732         * doc/glibc-functions/wcstol_l.texi: Likewise.
7733         * doc/glibc-functions/wcstold_l.texi: Likewise.
7734         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7735         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7736         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7737
7738 2009-11-24  Bruno Haible  <bruno@clisp.org>
7739
7740         duplocale: Fix logic bug.
7741         * lib/duplocale.c: Don't include <langinfo.h>.
7742         (_NL_LOCALE_NAME): Remove macro.
7743         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7744         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7745
7746 2009-11-23  Jim Meyering  <meyering@redhat.com>
7747
7748         test-update-copyright: don't hard-code /usr/bin/perl
7749         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7750         perl to print the current year.  Gilles Espinasse reported that
7751         the replaced use of perl was hard-coded as /usr/bin/perl.
7752
7753 2009-11-23  Bruno Haible  <bruno@clisp.org>
7754
7755         duplocale: Add support for glibc 2.3.x.
7756         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7757
7758 2009-11-22  Bruno Haible  <bruno@clisp.org>
7759
7760         vasnprintf: Tiny optimization.
7761         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7762         MacOS X.
7763
7764 2009-11-22  Bruno Haible  <bruno@clisp.org>
7765
7766         Tests for module 'duplocale'.
7767         * modules/duplocale-tests: New file.
7768         * tests/test-duplocale.c: New file.
7769
7770         New module 'duplocale'.
7771         * m4/duplocale.m4: New file.
7772         * lib/locale.in.h (duplocale): New declaration.
7773         * lib/duplocale.c: New file.
7774         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7775         gl_LOCALE_H_DEFAULTS): New macros.
7776         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7777         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7778         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7779         REPLACE_DUPLOCALE.
7780         * modules/duplocale: New file.
7781         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7782
7783 2009-11-22  Bruno Haible  <bruno@clisp.org>
7784
7785         * modules/locale-tests (configure.ac): Test for newlocale function.
7786         * tests/test-locale.c: When the system has extended locale functions,
7787         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7788
7789         locale: Make locale_t available when possible.
7790         * lib/locale.in.h: Include <xlocale.h> when it exists.
7791         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7792         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7793         * modules/locale (Depends-on): Add extensions.
7794         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7795         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7796
7797 2009-11-22  Bruno Haible  <bruno@clisp.org>
7798
7799         Add comments.
7800         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7801         invocation.
7802         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7803         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7804         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7805
7806 2009-11-22  Bruno Haible  <bruno@clisp.org>
7807
7808         error: account for the possibility of freopen (stdout).
7809         * lib/error.c: Include <unistd.h>.
7810         (flush_stdout): New function, extracted from error and error_at_line.
7811         Determine stdout's fd dynamically.
7812         (error, error_at_line): Invoke flush_stdout.
7813         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7814         * modules/error (Depends-on): Add unistd.
7815
7816 2009-11-22  Bruno Haible  <bruno@clisp.org>
7817
7818         diffseq: Add comment.
7819         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7820
7821 2009-11-22  Jim Meyering  <meyering@redhat.com>
7822
7823         c-stack: avoid defining an unused static function
7824         * lib/c-stack.c (find_stack_direction): Do not define this function
7825         when it will not be used.
7826
7827         diffseq: avoid spurious gcc warnings
7828         * lib/diffseq.h (IF_LINT2): Define.
7829         (compareseq): Use it to initialize two members of "part".
7830         This avoids two used-uninitialized warnings.
7831
7832 2009-11-21  Jim Meyering  <meyering@redhat.com>
7833
7834         c-stack: avoid "ignoring return value of `write'" warning
7835         * lib/c-stack.c: Include "ignore-value.h".
7836         (die): Explicitly ignore each write return value.
7837         * modules/c-stack (Depends-on): Add ignore-value.
7838
7839 2009-11-21  Bruno Haible  <bruno@clisp.org>
7840
7841         diffseq: reduce scope of variable 'best'.
7842         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7843         variable, earlier used for two different purposes.
7844
7845 2009-11-21  Jim Meyering  <meyering@redhat.com>
7846
7847         diffseq: remove useless assignment to "best"
7848         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7849         assignment.  At that point "best" is already guaranteed to be zero.
7850
7851 2009-11-20  Eric Blake  <ebb9@byu.net>
7852
7853         build: mention ftp redirector in release announcements
7854         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7855         values that used to come from cfg.mk; mention FTP redirect URL.
7856         * build-aux/announce-gen: Mention the mirror list.
7857         Suggested by Karl Berry.
7858
7859         nanosleep: improve port to mingw
7860         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7862         LIB_NANOSLEEP, but only when needed.
7863         * modules/select (Link): Document LIBSOCKET.
7864         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7865         enough.
7866
7867         nanosleep: work around cygwin bug
7868         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7869         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7870         bug.
7871         (getnow): Delete, not needed.
7872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7873         LIB_CLOCK_GETTIME.
7874         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7875         clock-time, gettime.
7876         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7877         bug.
7878         * modules/nanosleep-tests: New test.
7879         * tests/test-nanosleep.c: New file.
7880
7881         sleep: work around cygwin bug
7882         * lib/sleep.c (rpl_sleep): Work around the bug.
7883         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7884         (gl_PREREQ_SLEEP): Delete unused macro.
7885         * modules/sleep (Depends-on): Add verify.
7886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7887         * modules/unistd (Makefile.am): Substitute witness.
7888         * lib/unistd.in.h (sleep): Update prototype.
7889         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7890         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7891         * modules/sleep-tests (Depends-on): Check for alarm.
7892
7893 2009-11-20  Jim Meyering  <meyering@redhat.com>
7894
7895         maint.mk: improve sc_prohibit_magic_number_exit
7896         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7897         so it does not match uses like System.exit(1).
7898         Add comments showing how to correct all offenders.
7899
7900 2009-11-19  Eric Blake  <ebb9@byu.net>
7901
7902         xalloc-die-tests: add missing library
7903         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7904
7905         test-xvasprintf: silence compiler warnings
7906         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7907         empty string from gcc.
7908
7909 2009-11-19  Jim Meyering  <meyering@redhat.com>
7910
7911         xfreopen: new module, from coreutils
7912         * modules/xfreopen: New module.
7913         * lib/xfreopen.c: New file.
7914         * lib/xfreopen.h: New file.
7915         * MODULES.html.sh (File stream based Input/Output"): Add it.
7916
7917 2009-11-19  Eric Blake  <ebb9@byu.net>
7918
7919         manywarnings: depend on warnings
7920         * modules/manywarnings (Depends-on): Add warnings.
7921
7922         build: avoid compiler warnings
7923         * lib/select.c (rpl_select): Delete unused variable.
7924         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7925
7926 2009-11-18  Eric Blake  <ebb9@byu.net>
7927
7928         tests: avoid false negative with --with-packager
7929         * tests/test-version-etc.sh: Discard packager information.
7930         * tests/test-argp-version-etc-1.sh: Likewise.
7931         Reported by Mike Frysinger.
7932
7933         utimens: fix regression on Solaris
7934         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7935         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7936         can only change fd timestamps via futimesat.  Instead, use an
7937         additional witness macro to avoid BSD bug.
7938         Reported by Jim Meyering.
7939
7940 2009-11-17  Eric Blake  <ebb9@byu.net>
7941
7942         usleep: use it to simplify tests
7943         * modules/stat-time-tests (Depends-on): Add usleep.
7944         (configure.ac): Drop usleep check.
7945         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7946         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7947         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7948         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7949         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7950         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7951         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7952         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7953         Likewise.
7954         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7955         * tests/test-lchown.h (nap): Likewise.
7956         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7957         * tests/test-stat-time.c (nap): Likewise.
7958         * tests/test-utimens-common.h (nap): Update comments.
7959
7960         usleep: new module
7961         * modules/usleep: New file.
7962         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7963         * lib/usleep.c (usleep): Likewise.
7964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7965         * modules/unistd (Makefile.am): Substitute witnesses.
7966         * lib/unistd.in.h (usleep): Add declaration.
7967         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7968         * MODULES.html.sh (Date and time): Likewise.
7969         * modules/usleep-tests (Depends-on): New test.
7970         * tests/test-usleep.c: New file.
7971
7972         chown: work around OpenBSD bug
7973         * lib/chown.c (rpl_chown): Work around the bug.
7974         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7975         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7976         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7977         * modules/chown (Depends-on): Add stdbool.
7978         * modules/lchown (Depends-on): Likewise.
7979         * doc/posix-functions/chown.texi (chown): Document the bug.
7980         * doc/posix-functions/lchown.texi (lchown): Likewise.
7981         * tests/test-lchown.h (test_chown): Relax test.
7982
7983         mkstemp: avoid conflict with C++ keyword template
7984         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7985         * lib/mkostemp.c (mkostemp): Likewise.
7986         * lib/mkostemps.c (mkostemps): Likewise.
7987         * lib/mkstemp.c (mkstemp): Likewise.
7988         * lib/mkstemps.c (mkstemps): Likewise.
7989
7990         xalloc-die-tests: optimize
7991         * tests/test-xalloc-die.sh: Reduce number of processes.
7992
7993 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7994
7995         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7996         patch from ludo@gnu.org (Ludovic Courtès).
7997
7998 2009-11-17  Jim Meyering  <meyering@redhat.com>
7999
8000         version-etc: use proper license string
8001         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8002         * modules/version-etc-fsf: Likewise.
8003
8004 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8005
8006         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8007         printed to stdout.  Deal with EOL differences.
8008
8009 2009-11-17  Eric Blake  <ebb9@byu.net>
8010
8011         unsetenv: work around Solaris bug
8012         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8013         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8014         Reported by Jim Meyering.
8015
8016         vasnprintf: avoid compiler warnings
8017         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8018         variables.
8019         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8020
8021 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8022
8023         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8024         settings since xalloc-die is no longer the self test,
8025         xalloc-die.sh is.
8026
8027 2009-11-17  Jim Meyering  <meyering@redhat.com>
8028
8029         test-xalloc-die.sh: make the code agree with the commit log
8030         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8031         at the end, just in case you happen to have a test-xalloc-die
8032         program in some other PATH directory.
8033
8034         test-xalloc-die.sh: fix a portability bug
8035         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8036         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8037         Otherwise, argv[0] (as often seen in diagnostics) would be too
8038         system-dependent, sometimes with, and sometimes without the leading "./".
8039
8040         version-etc-fsf: relax license to LGPLv3+
8041         * modules/version-etc-fsf (License): Relax license.
8042
8043 2009-11-16  Eric Blake  <ebb9@byu.net>
8044
8045         xalloc-die-tests: avoid printing null pointer
8046         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8047         shell script.
8048         * tests/test-xalloc-die.c (program_name): Declare.
8049         * tests/test-xalloc-die.sh (tmpfiles): New file.
8050
8051         setenv, unsetenv: work around various bugs
8052         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8053         (setenv) [HAVE_SETENV]: Work around bugs.
8054         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8056         for bugs.
8057         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8058         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8060         * modules/stdlib (Makefile.am): Update substitutions.
8061         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8062         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8063         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8064         * modules/setenv-tests: New test.
8065         * modules/unsetenv-tests: Likewise.
8066         * tests/test-setenv.c: New file.
8067         * tests/test-unsetenv.c: Likewise.
8068
8069 2009-11-16  Jim Meyering  <meyering@redhat.com>
8070
8071         version-etc: relax license to LGPLv3+
8072         * modules/version-etc (License): Relax license.
8073
8074         better AC_REQUIRE expanded-before-required-warning avoidance
8075         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8076         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8077         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8078         which is no longer needed.
8079
8080 2009-11-16  Eric Blake  <ebb9@byu.net>
8081
8082         test-freading: clean up temporary file
8083         * tests/test-freading.c (main): Remove file on success, and use
8084         ASSERT more liberally.
8085         Reported by Jim Meyering.
8086
8087 2009-11-16  Jim Meyering  <meyering@redhat.com>
8088
8089         avoid new AC_REQUIRE expanded-before-required warnings
8090         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8091         merely using it.
8092         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8093         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8094
8095 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8096
8097         * tests/test-xalloc-die.c: New file.
8098         * modules/xalloc-die-tests: New file.
8099         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8100         XFAIL_TESTS so it can be appended by modules.
8101
8102 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8103
8104         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8105         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8106
8107 2009-11-14  Eric Blake  <ebb9@byu.net>
8108
8109         fnmatch: avoid compiler warning
8110         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8111         to silence compiler warning about mismatch signedness in ?:.
8112         Reported by Robert Millan.
8113
8114         intprops: add double-inclusion guard
8115         * lib/intprops.h: Allow idempotent includes.
8116         Suggested by Bruce Korb.
8117
8118         openat: detect Solaris fchownat bug
8119         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8120         penalizing glibc chownat when only lchownat is broken.
8121         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8122         trailing slash bugs.
8123         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8124         * modules/openat-tests (Files): Include more files.
8125         (Depends-on): Add mgetgroups, sleep, stat-time.
8126         (configure.ac): Add additional checks.
8127         (Makefile.am): Build new test.
8128         * tests/test-fchownat.c: New file.
8129
8130         lchown: detect Solaris and FreeBSD bug
8131         * lib/lchown.c (rpl_lchown): Work around bug.
8132         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8134         * modules/unistd (Makefile.am): Populate it.
8135         * lib/unistd.in.h (lchown): Update declaration.
8136         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8137         * modules/lchown-tests: New file.
8138         * tests/test-lchown.h (test_lchown): Likewise.
8139         * tests/test-lchown.c (main): Likewise.
8140
8141         chown: detect Solaris and FreeBSD bug
8142         * lib/chown.c (rpl_chown): Work around bug.
8143         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8144         (gl_PREREQ_CHOWN): Delete.
8145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8146         * modules/unistd (Makefile.am): Populate it.
8147         * lib/unistd.in.h (chown): Update declaration.
8148         * lib/lchown.c (chown): Update client.
8149         * modules/lchown (Depends-on): Add lstat.
8150         * doc/posix-functions/chown.texi (chown): Document the bug.
8151         * doc/posix-functions/getgroups.texi (getgroups): Document
8152         getgroups pitfall.
8153         * modules/chown-tests: New file.
8154         * tests/test-chown.h (test_chown): Likewise.
8155         * tests/test-chown.c (main): Likewise.
8156
8157 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8158
8159         gnulib-tool: correctly detect absence of m4 directories
8160         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8161
8162 2009-11-14  Jim Meyering  <meyering@redhat.com>
8163
8164         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8165         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8166
8167 2009-11-14  John W. Eaton  <jwe@gnu.org>
8168
8169         strftime.h: wrap funtion declaration in extern "C" block
8170         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8171
8172 2009-11-13  Eric Blake  <ebb9@byu.net>
8173
8174         getgroups: avoid compiler warning
8175         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8176
8177         getgroups: work around FreeBSD bug
8178         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8179         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8180         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8181         * tests/test-getgroups.c (main): Fix buffer overrun.
8182
8183         getgroups: avoid compilation failure
8184         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8185         * modules/getgroups (Depends-on): Add stdint.
8186
8187 2009-11-13  Jim Meyering  <meyering@redhat.com>
8188
8189         test-getgroups: avoid compilation failure
8190         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8191
8192 2009-11-13  Eric Blake  <ebb9@byu.net>
8193
8194         mgetgroups: new module, taken from coreutils
8195         * modules/mgetgroups: New file.
8196         * lib/mgetgroups.h: Likewise.
8197         * lib/mgetgroups.c (mgetgroups): Likewise.
8198         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8199         * MODULES.html.sh (Users and groups): Mention it.
8200
8201         getgroups: don't expose GETGROUPS_T to user
8202         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8203         an element at a time if GETGROUPS_T is wrong size.
8204         * lib/getugroups.h (getugroups): Change signature.
8205         * lib/unistd.in.h (getgroups): Likewise.
8206         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8207         signature needs fixing.
8208         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8209         AC_TYPE_GETGROUPS.
8210         * modules/group-member (Depends-on): Add getgroups.
8211         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8212         (group_member): Rely on getgroups replacement.
8213         * lib/getugroups.c (getugroups): Use gid_t.
8214         * tests/test-getgroups.c (main): Likewise.
8215         * NEWS: Mention the signature change.
8216         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8217         problem with signature.
8218         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8219         GETGROUPS_T is still useful for setgroups.
8220
8221         getgroups, getugroups: provide stubs for mingw
8222         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8223         * lib/getugroups.c (getugroups): Likewise.
8224         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8225         function.  Modernize replacement scheme.
8226         (gl_PREREQ_GETGROUPS): Delete.
8227         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8228         * modules/getgroups (configure.ac): Declare witness.
8229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8230         * modules/unistd (Depends-on): Substitute witness.
8231         * lib/unistd.in.h (getgroups): Declare replacement.
8232
8233         getgroups: avoid calling exit
8234         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8235         drop xalloc.
8236         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8237         dependencies.
8238         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8239         exiting, in the rare case of malloc failure.
8240
8241         getgroups: fix logic error
8242         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8243         has more than 20 groups.
8244         * modules/getgroups-tests: New test.
8245         * tests/test-getgroups.c: New file.
8246
8247 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8248
8249         * tests/test-base64.c: Improve.
8250
8251 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8252
8253         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8254         Blake <ebb9@byu.net>.
8255
8256 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8257
8258         * tests/test-xvasprintf.c: Add %s%s related checks.
8259
8260 2009-11-12  Eric Blake  <ebb9@byu.net>
8261
8262         version-etc: match standards.texi style
8263         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8264         and use <> only for URLs.
8265
8266 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8267
8268         fts: do not fail on a submount during traversal
8269         * lib/fts.c (fts_build): Read the stat info again after opening
8270         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8271         Original report at http://bugzilla.redhat.com/501848.
8272
8273 2009-11-12  Jim Meyering  <meyering@redhat.com>
8274
8275         bootstrap: sync from coreutils
8276         * build-aux/bootstrap (bootstrap_epilogue): New function.
8277         Use git_modules_config in one more place.  This make bootstrap's
8278         --gnulib-srcdir option more useful for testing.
8279
8280         bootstrap: generalize autoheader check
8281         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8282         AC_CONFIG_HEADERS.
8283
8284 2009-11-11  Eric Blake  <ebb9@byu.net>
8285
8286         mkfifoat: use new modules for Solaris and BSD bugs
8287         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8288         * lib/mkfifoat.c (mknodat): Split...
8289         * lib/mknodat.c (mknodat): ...into new file.
8290         * modules/mkfifoat (Files): Ship new file.
8291         (Depends-on): Add mkfifo, mknod.
8292         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8293         (Depends-on): Add symlink.
8294         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8295         redundant with test_mkfifo.h.
8296         (do_mkfifoat, do_mknodat): New helpers.
8297
8298         mknod: new module
8299         * modules/mknod: New file.
8300         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8301         * lib/mknod.c (mknod): Likewise.
8302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8303         defaults.
8304         * modules/sys_stat (Makefile.am): Substitute them.
8305         * lib/sys_stat.in.h (mknod): Declare replacement.
8306         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8307         Document it.
8308         * doc/posix-functions/mknod.texi (mknod): Likewise.
8309         * modules/mknod-tests: New test.
8310         * tests/test-mknod.c: Likewise.
8311
8312         mkfifo: new module
8313         * modules/mkfifo: New file.
8314         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8315         * lib/mkfifo.c (mkfifo): Likewise.
8316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8317         defaults.
8318         * modules/sys_stat (Makefile.am): Substitute them.
8319         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8320         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8321         Document it.
8322         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8323         * modules/mkfifo-tests: New test.
8324         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8325         from test-mkfifoat.c.
8326         * tests/test-mkfifo.c: New file.
8327
8328         readlink: detect FreeBSD bug
8329         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8330         slash on symlink.
8331         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8332         * tests/test-readlink.h (test_readlink): Enhance test.
8333
8334         symlink: detect FreeBSD bug
8335         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8336         slash on symlink.
8337         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8338         * tests/test-symlink.h (test_symlink): Enhance test.
8339
8340 2009-11-10  Eric Blake  <ebb9@byu.net>
8341
8342         link: detect FreeBSD bug
8343         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8344         symlink.
8345         * doc/posix-functions/link.texi (link): Document the bug.
8346         * tests/test-link.h (test_link): Enhance test.
8347         * tests/test-linkat.c (main): Update caller.
8348
8349         unlink, remove: detect FreeBSD bug
8350         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8351         slash on symlink.
8352         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8353         * doc/posix-functions/remove.texi (remove): Likewise.
8354         * tests/test-unlink.h (test_unlink): Enhance test.
8355         * tests/test-remove.c (main): Likewise.
8356
8357 2009-11-09  Eric Blake  <ebb9@byu.net>
8358
8359         rename: detect FreeBSD bug
8360         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8361         slash on symlink.
8362         * modules/renameat-tests (Depends-on): Add filenamecat.
8363         * tests/test-rename.h (test_rename): Allow one more errno.
8364         * tests/test-renameat.c (main): Likewise.
8365         * doc/posix-functions/rename.texi (rename): Document the bug.
8366
8367         open: detect FreeBSD bug
8368         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8369         symlink.
8370         * doc/posix-functions/open.texi (open): Document the bug.
8371         * doc/posix-functions/utimes.texi (utimes): Likewise.
8372         * tests/test-open.h (test_open): Add parameters, and test symlink
8373         handling.
8374         * tests/test-open.c (main): Adjust caller.
8375         * tests/test-fcntl-safer.c (main): Likewise.
8376         * modules/open-tests (Depends-on): Add stdbool, symlink.
8377         * modules/fcntl-safer-tests (Depends-on): Likewise.
8378         * tests/test-openat.c (main): Add test-open tests.
8379
8380         stat: detect FreeBSD bug
8381         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8382         symlink.
8383         * doc/posix-functions/stat.texi (stat): Document the bug.
8384         * tests/test-stat.h (test_stat_func): Add argument.
8385         * tests/test-stat.c (main): Adjust caller.
8386         * tests/test-fstatat.c (main): Likewise.
8387         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8388         Reported by Jim Meyering.
8389
8390 2009-11-09  James Youngman  <jay@gnu.org>
8391
8392         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8393         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8394
8395 2009-11-08  Jim Meyering  <meyering@redhat.com>
8396
8397         utimens: remove invalid futimesat call
8398         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8399         It used the file descriptor of the target file as the DIR_FD
8400         parameter and NULL as the file name.  That caused failure with
8401         errno == EFAULT on FreeBSD-8.0-rc2
8402
8403 2009-11-07  Eric Blake  <ebb9@byu.net>
8404
8405         fflush, freadseek: use fseeko, not fseek
8406         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8407         (clear_ungetc_buffer): Avoid potential problems on large files.
8408         * lib/freadseek.c (freadseek): Likewise.
8409         * modules/freadseek (Depends-on): Add fseeko.
8410         * modules/fseek (configure.ac): Set a witness.
8411         * tests/test-fflush.c (main): Use fseeko.
8412         * tests/test-fpurge.c (fseek): Disable link warning.
8413         * tests/test-freadable.c (fseek): Likewise.
8414         * tests/test-freading.c (fseek): Likewise.
8415         * tests/test-fseeko.c (fseek): Likewise.
8416         * tests/test-ftell.c (fseek): Likewise.
8417         * tests/test-ftello.c (fseek): Likewise.
8418         * tests/test-fwritable.c (fseek): Likewise.
8419         * tests/test-fwriting.c (fseek): Likewise.
8420
8421 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8422
8423         * modules/memchr (Depends-on): Drop getpagesize dependency.
8424
8425 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8426
8427         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8428         Reported by Ludovic Courtès.
8429         * build-aux/pmccabe2html: Improve example usage.
8430         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8431
8432 2009-11-06  Jim Meyering  <meyering@redhat.com>
8433
8434         do-release-commit-and-tag: New module.
8435         Automate the release-commit and tag process.
8436         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8437         * modules/do-release-commit-and-tag: New file.
8438         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8439
8440 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8441
8442         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8443         because test-select.c uses inet_pton.
8444
8445 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8446
8447         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8448         GETADDRINFO_LIB.  Bump serial number.
8449         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8450         Suggested by Eric Blake <ebb9@byu.net>.
8451
8452 2009-11-05  Eric Blake  <ebb9@byu.net>
8453
8454         strtod: detect darwin bug
8455         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8456         Reported by Leo Davis.
8457
8458         freopen-safer: new module
8459         * modules/freopen-safer: New module.
8460         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8461         * lib/freopen-safer.c (freopen_safer): New file.
8462         * lib/stdio-safer.h (freopen_safer): New declaration.
8463         * lib/stdio--.h (freopen): New override.
8464         * MODULES.html.sh (File stream based Input/Output): Mention it.
8465         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8466         freopen-safer module.
8467         * doc/posix-functions/stderr.texi (stderr): Likewise.
8468         * doc/posix-functions/stdin.texi (stdin): Likewise.
8469         * doc/posix-functions/stdout.texi (stdout): Likewise.
8470         * modules/freopen-safer-tests: New test.
8471         * tests/test-reopen-safer.c: New file.
8472
8473 2009-11-05  Jim Meyering  <meyering@redhat.com>
8474
8475         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8476         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8477
8478 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8479
8480         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8481
8482 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8483
8484         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8485
8486 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8487
8488         Fix link error.
8489         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8490         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8491
8492 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8493
8494         * tests/test-func.c: Also test value of __func__.
8495
8496 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8497
8498         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8499         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8500
8501 2009-11-05  Bruno Haible  <bruno@clisp.org>
8502
8503         Fix link error.
8504         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8505         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8506         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8507
8508 2009-11-05  Bruno Haible  <bruno@clisp.org>
8509
8510         Tests for module 'inet_pton'.
8511         * modules/inet_pton-tests: New file.
8512         * tests/test-inet_pton.c: New file.
8513
8514 2009-11-05  Bruno Haible  <bruno@clisp.org>
8515
8516         Tests for module 'inet_ntop'.
8517         * modules/inet_ntop-tests: New file.
8518         * tests/test-inet_ntop.c: New file.
8519
8520 2009-11-04  Eric Blake  <ebb9@byu.net>
8521
8522         stdlib-safer: wrap all mkstemp variants
8523         * modules/mkostemp (configure.ac): Set witness.
8524         * modules/mkostemps (configure.ac): Likewise.
8525         * modules/mkstemps (configure.ac): Likewise.
8526         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8527         (mkstemps_safer): Wrap more functions.
8528         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8529         wrapping.
8530         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8531         (mkstemps_safer): Implement the wrappers.
8532
8533         mkstemps, mkostemps: new modules
8534         * modules/mkostemps: New module.
8535         * modules/mkstemps: Likewise.
8536         * lib/mkostemps.c (mkostemps): New file.
8537         * lib/mkstemps.c (mkstemps): Likewise.
8538         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8539         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8541         * modules/stdlib (Makefile.am): Substitute them.
8542         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8543         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8544         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8545         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8546         * MODULES.html.sh (File system functions): Mention them.
8547
8548         tempname: resync from glibc
8549         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8550         same values for __GT_FILE as glibc.  Abort even when assertions
8551         are disabled.
8552         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8553         match its value otherwise.  Allow idempotent inclusion.
8554         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8555         * lib/mkostemp.c (mkostemp): Likewise.
8556         * lib/mkstemp.c (mkstemp): Likewise.
8557         * lib/tmpfile.c (tmpfile): Likewise.
8558         * NEWS: Document this.
8559
8560         utimens: fix use of futimens on older Linux
8561         * lib/utimens.c (fdutimens): Use updated, rather than original,
8562         timespec to avoid bug in older Linux kernel.
8563         Reported by Simon Josefsson.
8564
8565 2009-11-04  Bruno Haible  <bruno@clisp.org>
8566
8567         Make num_processors more flexible and consistent.
8568         * lib/nproc.h (enum nproc_query): New type.
8569         (num_processors): Add a 'query' argument.
8570         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8571         (num_processors): Add a 'query' argument. Test the value of the
8572         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8573         mingw, count the number of CPUs available for the current process.
8574         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8575         Check for sched_getaffinity and sched_getaffinity_np.
8576         * modules/nproc (Depends-on): Add c-ctype, extensions.
8577         * NEWS: Mention the change.
8578
8579 2009-11-03  Bruno Haible  <bruno@clisp.org>
8580
8581         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8582
8583 2009-11-03  Jim Meyering  <meyering@redhat.com>
8584
8585         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8586         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8587         if it is defined.
8588
8589 2009-11-02  Eric Blake  <ebb9@byu.net>
8590
8591         mktime, timegm: share common declaration
8592         * lib/mktime-internal.h: New file.
8593         * lib/mktime.c: Use it rather than open-coding a declaration.
8594         * lib/timegm.c: Likewise.
8595         * modules/mktime (Files): Ship it.
8596         * modules/timegm (Files): Likewise.
8597         Suggested by Bruno Haible.
8598
8599         test-update-copyright: update test to match script changes
8600         * tests/test-update-copyright.sh: Avoid hard-coding perl
8601         location.  Don't update *.bak created by earlier runs.
8602
8603 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8604             Simon Josefsson  <simon@josefsson.org>
8605             Bruno Haible  <bruno@clisp.org>
8606
8607         Fix link error on Solaris 8.
8608         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8609         also in libnsl. Define also INET_PTON_LIB.
8610         * modules/inet_pton (Link): New section.
8611
8612 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8613             Bruno Haible  <bruno@clisp.org>
8614
8615         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8616         * modules/inet_ntop (Link): New section.
8617         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8618
8619 2009-11-02  Eric Blake  <ebb9@byu.net>
8620
8621         maint: avoid compiler warnings in m4 macros
8622         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8623         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8624
8625 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8626
8627         * m4/pmccabe2html.m4: Remove file.
8628         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8629         function.  Change maintainer.
8630         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8631         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8632         Courtès).
8633
8634 2009-10-31  Eric Blake  <ebb9@byu.net>
8635
8636         fseeko: fix m4 regression
8637         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8638         regression from 2009-10-27.
8639         Reported by Ralf Wildenhues.
8640
8641 2009-10-31  Jim Meyering  <meyering@redhat.com>
8642
8643         inttostr: aesthetics and improved (compile-time) safety
8644         Define inttype_is_signed rather than inttype_is_unsigned,
8645         since the sole use is via "#if inttype_is_signed".
8646         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8647         inttype_is_unsigned.
8648         * lib/offtostr.c (inttype_is_signed): Likewise.
8649         * lib/uinttostr.c (inttype_is_signed): Likewise.
8650         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8651         * lib/inttostr.c (inttostr): Use verify to cross-check the
8652         inttype_is_signed value and the signedness of the actual type.
8653         * modules/inttostr (Depends-on): Add verify.
8654
8655 2009-10-30  Eric Blake  <ebb9@byu.net>
8656
8657         build: avoid compiler warnings
8658         * lib/fchmodat.c (lchmod): Mark unused variables.
8659         * lib/getopt.c (_getopt_initialize): Likewise.
8660         * lib/mktime.c (__mktime_internal): Provide prototype.
8661         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8662         older gcc that do not understand #pragma GCC diagnostic.
8663         * lib/uinttostr.c (inttype_is_unsigned): Define.
8664         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8665
8666 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8667
8668         stat: fix compilation on AIX
8669         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8670         only see struct stat64.
8671
8672 2009-10-30  Eric Blake  <ebb9@byu.net>
8673
8674         exclude: make more robust
8675         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8676         rather than masking a coding bug.
8677         Suggested by Bruno Haible.
8678
8679 2009-10-30  Jim Meyering  <meyering@redhat.com>
8680
8681         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8682         Rather than putting #!/usr/bin/perl on the first line,
8683         start with a variant of what's recommended by "man perlrun" that
8684         invokes the first "perl" program from your shell's search path.
8685         * build-aux/gitlog-to-changelog: Replace #!... as above.
8686         Add a "Local Variables" perl mode setting.
8687         Prompted by a patch from Ludovic Courtès.
8688         Improved by Eric Blake.
8689         * build-aux/useless-if-before-free: Likewise.
8690         * build-aux/announce-gen: Likewise.
8691         * build-aux/update-copyright: Likewise.
8692
8693 2009-10-29  Eric Blake  <ebb9@byu.net>
8694
8695         filenamecat-lgpl: adjust clients
8696         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8697         filenamecat.
8698         * modules/renameat (Depends-on): Likewise.
8699
8700         filenamecat: split into filenamecat-lgpl
8701         * modules/filenamecat-lgpl: New module.
8702         * modules/filenamecat (Files): Move library-safe files into
8703         filenamecat-lgpl.
8704         (Depends-on): Add filenamecat-lgpl.
8705         (configure.ac): Declare witness.
8706         * lib/filenamecat.h (file_name_concat): Only declare when using
8707         GPL module.
8708         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8709         Move...
8710         * lib/filenamecat-lgpl.c: ...into new file.
8711         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8712         (gl_FILE_NAME_CONCAT): Use it.
8713         * MODULES.html.sh (File system functions): Mention new module.
8714
8715         argp: avoid memory leak
8716         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8717         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8718         base_name, since the latter malloc()s and can call exit().
8719         Leak introduced 2006-07-03.
8720
8721         dirname-lgpl: adjust clients that don't need full dirname
8722         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8723         * modules/filenamecat (Depends-on): Likewise.
8724         * modules/linkat (Depends-on): Likewise.
8725         * modules/mkancesdirs (Depends-on): Likewise.
8726         * modules/mkdir (Depends-on): Likewise.
8727         * modules/openat (Depends-on): Likewise.
8728         * modules/savewd (Depends-on): Likewise.
8729         * modules/rename (Depends-on): Likewise.
8730         (License): Relax license.
8731         * modules/mkdir-tests (Depends-on): Drop progname.
8732         (Makefile.am): Delete unneeded LDADD.
8733         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8734
8735         dirname: split into dirname-lgpl
8736         * modules/dirname-lgpl: New module.
8737         * modules/dirname (Files): Move library-safe files into
8738         dirname-lgpl.
8739         (Depends-on): Add dirname-lgpl.
8740         (configure.ac): Declare witness.
8741         * modules/double-slash-root (License): Relax license.
8742         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8743         module.
8744         * lib/dirname.c (dir_len, mdir_name): Move...
8745         * lib/dirname-lgpl.c: ...into new file.
8746         * lib/basename.c (last_component, base_len): Move...
8747         * lib/basename-lgpl.c: ...into new file.
8748         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8749         (gl_DIRNAME): Use it.
8750         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8751         Mention new module.
8752         * modules/dirname-tests (Depends-on): Add progname.
8753         * tests/test-dirname.c (program_name): Delete.
8754
8755         mkdir: make safe for libraries
8756         * modules/mkdir (Depends-on): Drop xalloc.
8757         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8758         exit.
8759
8760         tests: avoid some compiler warnings
8761         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8762         literals.
8763         * tests/test-memchr.c (main): Avoid type mismatch.
8764         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8765         * tests/test-base64.c (main): Likewise.
8766         * tests/test-getdelim.c (main): Likewise.
8767         * tests/test-gethostname.c (main): Likewise.
8768         * tests/test-getline.c (main): Likewise.
8769         * tests/test-netinet_in.c (main): Likewise.
8770         * tests/test-select.c (open_server_socket, main): Likewise.
8771         * tests/test-select-stdin.c (main): Likewise.
8772         * tests/test-sockets.c (main): Likewise.
8773         * tests/test-strsignal.c (main): Likewise.
8774         * tests/test-sys_select.c (main): Likewise.
8775         * tests/test-sys_socket.c (main): Likewise.
8776         * tests/test-u64.c (main): Likewise.
8777         * tests/test-xfprintf-posix.c (main): Likewise.
8778         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8779
8780         sockets: avoid compiler warning
8781         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8782
8783         maint: detect usage(1) and other suspicious exits
8784         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8785
8786 2009-10-29  Jim Meyering  <meyering@redhat.com>
8787
8788         timespec: long-to-int truncation could make timespec_cmp malfunction
8789         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8790         a multiple of 2^32 nanoseconds as no difference.
8791
8792 2009-10-28  Jim Meyering  <meyering@redhat.com>
8793
8794         fprintftime: wrap macro code argument in "do {...} while(0)"
8795         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8796         cpy macro must be a statement that can be followed by a semicolon.
8797         Now that the else clause contains a comment and is hence longer
8798         than one line, I require curly braces.  That in turn requires
8799         that we wrap this code block in the standard do...while(0).
8800
8801         fprintftime: remove stray semicolon from previous change
8802         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8803
8804         fprintftime: avoid a warning about ignored fwrite return value
8805         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8806         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8807         that is unsafe.
8808         * modules/fprintftime (Depends-on): Add ignore-value.
8809
8810         exclude: avoid an unwarranted warning
8811         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8812
8813 2009-10-27  Eric Blake  <ebb9@byu.net>
8814
8815         fseek: avoid compilation failure when fflush is replaced
8816         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8817         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8818         module is in use.
8819         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8820         module is not in use; since REPLACE_FSEEK worked otherwise.
8821         (GNULIB_FTELLO): Likewise for ftell.
8822         Reported by Ian Beckwith and others.
8823
8824 2009-10-27  Bruno Haible  <bruno@clisp.org>
8825
8826         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8827         Reported by Jim Meyering.
8828
8829 2009-10-27  Jim Meyering  <jim@meyering.net>
8830             Bruno Haible  <bruno@clisp.org>
8831
8832         Avoid warning despite dropping the return value of fwrite.
8833         * lib/unicodeio.c: Include ignore-value.h.
8834         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8835         * modules/unicodeio (Depends-on): Add ignore-value.
8836
8837 2009-10-26  Eric Blake  <ebb9@byu.net>
8838
8839         areadlinkat: fix fallback path
8840         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8841         pointer and zero.
8842
8843 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8844
8845         Use a better IO block size for modern systems
8846         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8847         * lib/md2.c: Likewise.
8848         * lib/md4.c: Likewise.
8849         * lib/md5.c: Likewise.
8850         * lib/sha1.c: Likewise.
8851         * lib/sha256.c: Likewise.
8852         * lib/sha512.c: Likewise.
8853
8854 2009-10-22  Eric Blake  <ebb9@byu.net>
8855
8856         tests: avoid several compiler warnings
8857         * tests/test-getcwd.c (main): Avoid buffer underflow.
8858         * tests/test-getdate.c (main): String literals are not safe with
8859         putenv, so use setenv.  Declare unused argument.
8860         * modules/getdate-tests (Depends-on): Add setenv.
8861         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8862         problems with string literals in char *.
8863         * tests/test-hash.c (main): Avoid shadowing declaration.
8864         (insert_new): Treat string literals as char const *.
8865         * tests/test-getopt.h (test_getopt): Likewise.
8866         (getopt_loop): Alter types to minimize casting elsewhere.
8867         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8868         (test_getopt_long_posix): Likewise.
8869         (do_getopt_long): Add wrapper to minimize casting.
8870         * tests/test-atexit.c (clear_temp_file): Use void.
8871         * tests/test-areadlink-with-size.c (main): Declare unused
8872         arguments.
8873         * tests/test-areadlink.c (main): Likewise.
8874         * tests/test-areadlinkat-with-size.c (main): Likewise.
8875         * tests/test-areadlinkat.c (main): Likewise.
8876         * tests/test-canonicalize-lgpl.c (main): Likewise.
8877         * tests/test-canonicalize.c (main): Likewise.
8878         * tests/test-dirent-safer.c (main): Likewise.
8879         * tests/test-dirname.c (main): Likewise.
8880         * tests/test-dup2.c (main): Likewise.
8881         * tests/test-fchdir.c (main): Likewise.
8882         * tests/test-fcntl-h.c (main): Likewise.
8883         * tests/test-fcntl-safer.c (main): Likewise.
8884         * tests/test-fdopendir.c (main): Likewise.
8885         * tests/test-fdutimensat.c (main): Likewise.
8886         * tests/test-fflush.c (main): Likewise.
8887         * tests/test-filenamecat.c (main): Likewise.
8888         * tests/test-filevercmp.c (main): Likewise.
8889         * tests/test-fopen-safer.c (main): Likewise.
8890         * tests/test-fopen.c (main): Likewise.
8891         * tests/test-fpending.c (main): Likewise.
8892         * tests/test-fpurge.c (main): Likewise.
8893         * tests/test-freading.c (main): Likewise.
8894         * tests/test-fstatat.c (main): Likewise.
8895         * tests/test-fsync.c (main): Likewise.
8896         * tests/test-futimens.c (main): Likewise.
8897         * tests/test-getndelim2.c (main): Likewise.
8898         * tests/test-gettimeofday.c (main): Likewise.
8899         * tests/test-getopt.c (main): Likewise.
8900         * tests/test-i-ring.c (main): Likewise.
8901         * tests/test-inttypes.c (main): Likewise.
8902         * tests/test-link.c (main): Likewise.
8903         * tests/test-lstat.c (main): Likewise.
8904         * tests/test-math.c (main): Likewise.
8905         * tests/test-md5.c (main): Likewise.
8906         * tests/test-memchr2.c (main): Likewise.
8907         * tests/test-memrchr.c (main): Likewise.
8908         * tests/test-mkdir.c (main): Likewise.
8909         * tests/test-mkdirat.c (main): Likewise.
8910         * tests/test-mkfifoat.c (main): Likewise.
8911         * tests/test-open.c (main): Likewise.
8912         * tests/test-openat-safer.c (main): Likewise.
8913         * tests/test-openat.c (main): Likewise.
8914         * tests/test-quotearg.c (main): Likewise.
8915         * tests/test-rawmemchr.c (main): Likewise.
8916         * tests/test-readlink.c (main): Likewise.
8917         * tests/test-remove.c (main): Likewise.
8918         * tests/test-rename.c (main): Likewise.
8919         * tests/test-renameat.c (main): Likewise.
8920         * tests/test-rmdir.c (main): Likewise.
8921         * tests/test-sha1.c (main): Likewise.
8922         * tests/test-signal.c (main): Likewise.
8923         * tests/test-sigaction.c (main): Likewise.
8924         * tests/test-stat.c (main): Likewise.
8925         * tests/test-stat-time.c (main): Likewise.
8926         * tests/test-stddef.c (main): Likewise.
8927         * tests/test-stdint.c (main): Likewise.
8928         * tests/test-stdio.c (main): Likewise.
8929         * tests/test-stdlib.c (main): Likewise.
8930         * tests/test-strchrnul.c (main): Likewise.
8931         * tests/test-strerror.c (main): Likewise.
8932         * tests/test-string.c (main): Likewise.
8933         * tests/test-strtod.c (main): Likewise.
8934         * tests/test-strverscmp.c (main): Likewise.
8935         * tests/test-symlink.c (main): Likewise.
8936         * tests/test-symlinkat.c (main): Likewise.
8937         * tests/test-sys_stat.c (main): Likewise.
8938         * tests/test-sys_time.c (main): Likewise.
8939         * tests/test-time.c (main): Likewise.
8940         * tests/test-unistd.c (main): Likewise.
8941         * tests/test-unlink.c (main): Likewise.
8942         * tests/test-unlinkat.c (main): Likewise.
8943         * tests/test-utimens.c (main): Likewise.
8944         * tests/test-utimensat.c (main): Likewise.
8945         * tests/test-version-etc.c (main): Likewise.
8946         * tests/test-wchar.c (main): Likewise.
8947         * tests/test-wctype.c (main): Likewise.
8948         * tests/test-xprintf-posix.c (main): Likewise.
8949         * tests/test-posixtm.c (main): Likewise.
8950         (STREQ): Delete unused macro.
8951         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8952         shadowed variables.
8953         * tests/test-memchr.c (main): Likewise.
8954
8955 2009-10-21  Eric Blake  <ebb9@byu.net>
8956
8957         areadlinkat: avoid failure on older glibc
8958         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8959         rather than mis-comparing 0 against FUNC_RESULT of char*.
8960
8961 2009-10-21  Bruno Haible  <bruno@clisp.org>
8962
8963         * modules/stpncpy (License): Relicense under LGPLv2+.
8964         Reported by David Lutterkort <lutter@redhat.com>.
8965
8966 2009-10-20  Eric Blake  <ebb9@byu.net>
8967
8968         utimensat: work around Solaris 9 bug
8969         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8970         has trailing slash bugs.
8971         * tests/test-lutimens.h (test_lutimens): Enhance test.
8972         * tests/test-utimens.h (test_utimens): Likewise.
8973         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8974         * doc/posix-functions/utimes.texi (utimes): Likewise.
8975         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8976         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8977         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8978         * doc/posix-functions/futimens.texi (futimens): Likewise.
8979
8980         fdutimensat: new module
8981         * modules/fdutimensat: New file.
8982         * lib/fdutimensat.c (fdutimensat): Likewise.
8983         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8984         * MODULES.html.sh (File system functions): Mention module.
8985         * modules/fdutimensat-tests: New test.
8986         * tests/test-fdutimensat.c: Likewise.
8987
8988         doc: regenerate INSTALL
8989         * doc/INSTALL: Reflect recent autoconf update.
8990         * doc/INSTALL.ISO: Likewise.
8991         * doc/INSTALL.UTF-8: Likewise.
8992
8993 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8994
8995         acl: warn if ACL support is not detected
8996         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8997
8998 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8999
9000         * lib/nproc.h: Add extern "C" block for C++.
9001
9002 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9003             Bruno Haible  <bruno@clisp.org>
9004
9005         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9006         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9007         * doc/posix-functions/isalpha.texi: Likewise.
9008         * doc/posix-functions/isblank.texi: Likewise.
9009         * doc/posix-functions/iscntrl.texi: Likewise.
9010         * doc/posix-functions/isdigit.texi: Likewise.
9011         * doc/posix-functions/isgraph.texi: Likewise.
9012         * doc/posix-functions/islower.texi: Likewise.
9013         * doc/posix-functions/isprint.texi: Likewise.
9014         * doc/posix-functions/ispunct.texi: Likewise.
9015         * doc/posix-functions/isspace.texi: Likewise.
9016         * doc/posix-functions/isupper.texi: Likewise.
9017         * doc/posix-functions/isxdigit.texi: Likewise.
9018
9019 2009-10-18  Bruno Haible  <bruno@clisp.org>
9020
9021         Tests for module 'isblank'.
9022         * modules/isblank-tests: New file.
9023         * tests/test-isblank.c: New file.
9024
9025         New module 'isblank'.
9026         * lib/isblank.c: New file.
9027         * m4/isblank.m4: New file.
9028         * modules/isblank: New file.
9029         * doc/posix-functions/isblank.texi: Mention the new module.
9030
9031 2009-10-18  Bruno Haible  <bruno@clisp.org>
9032
9033         New module 'ctype'.
9034         * lib/ctype.in.h: New file.
9035         * m4/ctype.m4: New file.
9036         * modules/ctype: New file.
9037         * doc/posix-headers/ctype.texi: Mention the new module.
9038
9039 2009-10-18  Jim Meyering  <meyering@redhat.com>
9040
9041         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9042         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9043         right after its initialization, rather than farther down.
9044         Keeping these in close proximity makes it easier to ensure
9045         that each such variable is initialized.  E.g.,
9046
9047             LIB_CLOCK_GETTIME=
9048             AC_SUBST([LIB_CLOCK_GETTIME])
9049
9050         This change also increments these serial numbers.
9051         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9052         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9054
9055 2009-10-18  Bruno Haible  <bruno@clisp.org>
9056
9057         Don't let environment variables perturb build.
9058         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9059         (gl_PREREQ_GETHRXTIME): ... not here.
9060
9061 2009-10-18  Bruno Haible  <bruno@clisp.org>
9062
9063         Avoid symlink attack in localcharset module.
9064         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9065         (O_NOFOLLOW): Define fallback.
9066         (get_charset_aliases): Don't open the file if it is a symbolic link.
9067         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9068         gl_FCNTL_H.
9069         (gl_FCNTL_H): Require it.
9070         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9071         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9072         Reported by Fergal Glynn <fglynn@veracode.com>.
9073
9074 2009-10-18  Bruno Haible  <bruno@clisp.org>
9075
9076         Implement nproc for mingw.
9077         * lib/nproc.c: Include <windows.h>
9078         (num_processors): On native Windows platforms, try GetSystemInfo.
9079
9080 2009-10-18  Bruno Haible  <bruno@clisp.org>
9081
9082         Implement nproc for IRIX.
9083         * lib/nproc.c: Include <sys/sysmp.h>.
9084         (num_processors): On IRIX systems, try sysmp.
9085         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9086
9087 2009-10-18  Bruno Haible  <bruno@clisp.org>
9088
9089         Implement nproc for HP-UX.
9090         * lib/nproc.c: Include <sys/pstat.h>
9091         (num_processors): On HP-UX systems, try pstat_getdynamic.
9092         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9093         pstat_getdynamic.
9094
9095 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9096             Bruno Haible  <bruno@clisp.org>
9097
9098         Implement nproc for NetBSD, OpenBSD.
9099         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9100         (ARRAY_SIZE): New macro.
9101         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9102         * m4/nproc.m4: New file.
9103         * modules/nproc (Files): Add m4/nproc.m4.
9104         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9105         (Makefile.am): Instead, augment lib_SOURCES.
9106
9107 2009-10-18  Bruno Haible  <bruno@clisp.org>
9108
9109         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9110         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9111         sys/param.h.
9112
9113 2009-10-16  Eric Blake  <ebb9@byu.net>
9114
9115         utimensat: new module
9116         * modules/utimensat: New file.
9117         * lib/utimensat.c (utimensat): Likewise.
9118         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9119         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9120         so we can work around Linux bugs.
9121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9122         * modules/sys_stat (Makefile.am): Substitute them.
9123         * lib/sys_stat.in.h (utimensat): Declare it.
9124         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9125         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9126         * modules/utimensat-tests: New test.
9127         * tests/test-utimensat.c: Likewise.
9128
9129         utimens: let lutimens work on non-symlinks
9130         * lib/utimens.c (lutimens): Fall back to utimens rather than
9131         failing with ENOSYS, when file is not a symlink.
9132         (utimens): Reduce redirection.
9133         * tests/test-lutimens.h (test_lutimens): Update test to cover
9134         non-symlinks.
9135         * tests/test-utimens.h (test_utimens): Update test to cover
9136         symlinks.
9137         * tests/test-utimens.c (main): Update caller.
9138
9139         utimens: cache whether utimensat syscall works
9140         * lib/utimens.c (utimensat_works_really): New cache variable.
9141         (fdutimens, lutimens): Use it to avoid failing syscall.
9142
9143         test-stat-time, test-utimens: improve portability
9144         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9145         ext4 on alpha, and for cygwin.
9146         * tests/test-utimens-common.h: New file.
9147         (nap): Factor delays into single function.
9148         * tests/test-lutimens.h (test_lutimens): Use new header.
9149         * tests/test-futimens.h (test_futimens): Likewise.
9150         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9151         timestamps to occur from same machine, as was done previously for
9152         test_utimens.
9153         * modules/utimens-tests (Files): Ship new file.
9154         * modules/futimens-tests (Files): Likewise.
9155         Reported in part by Jim Meyering.
9156
9157         sys_stat: sort replacement declarations
9158         * lib/sys_stat.in.h: Sort declarations.
9159         * lib/futimens.c (futimens): Fix typo.
9160
9161 2009-10-15  Jim Meyering  <meyering@redhat.com>
9162
9163         don't let environment settings perturb build
9164         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9165         could cause a configure-time and/or build-time malfunction.
9166         Typically, a configure-time function-in-library test is performed
9167         via code like this:
9168
9169           LIB_VAR=
9170           AC_SUBST([LIB_VAR])
9171           prefix_saved_LIBS=$LIBS
9172             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9173                        [test "$ac_cv_search_FUNC" = "none required" ||
9174                         LIB_VAR=$ac_cv_search_FUNC])
9175           LIBS=$prefix_saved_LIBS
9176
9177         However, in each of the files affected by this change, the LIB_VAR=
9178         initialization was omitted.  Thus, when set in the environment, its
9179         value would propagate into generated Makefiles when FUNC is not found
9180         in LIB_NAME.
9181         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9182         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9184
9185 2009-10-14  Eric Blake  <ebb9@byu.net>
9186
9187         fchdir: avoid infinite recursion in mingw
9188         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9189         recursing.
9190
9191         test-stat-time: port to mingw
9192         * tests/test-stat-time.c (force_unlink): Return a value.
9193         (test_ctime) [W32]: Fix compilation error.
9194         (nap): Don't call usleep with too large an argument.  Use
9195         force_unlink.
9196         * doc/pastposix-functions/usleep.texi (usleep): Document the
9197         portability issue.
9198
9199 2009-10-13  Jim Meyering  <meyering@redhat.com>
9200
9201         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9202         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9203         * modules/pipe-filter-ii: Likewise.
9204         * modules/sys_socket-tests: Likewise.
9205         * modules/tsearch-tests: Likewise.
9206         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9207         (check): Depend on it.
9208
9209 2009-10-12  Eric Blake  <ebb9@byu.net>
9210
9211         utimens-tests: port to NFS file systems
9212         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9213         comparisons to avoid spurious failures from timestamp drift
9214         between NFS machines.
9215
9216 2009-10-12  Eric Blake  <ebb9@byu.net>
9217
9218         stat-time-tests: minor cleanups
9219         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9220         * tests/test-stat-time.c (nap): Separate assignment from call.
9221         Suggested by Paolo Bonzini and Bruno Haible.
9222
9223         sys_stat: guarantee struct timespec
9224         * lib/sys_stat.in.h (includes): Always include <time.h>
9225         * modules/sys_stat (Depends-on): Add time.
9226         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9227         mode_t permission values.
9228         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9229         get at subsecond timestamps.
9230
9231 2009-10-10  Eric Blake  <ebb9@byu.net>
9232
9233         futimens: new module
9234         * modules/futimens: New file.
9235         * lib/futimens.c (futimens): Likewise.
9236         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9237         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9238         we can work around Linux bugs.
9239         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9240         * modules/sys_stat (Makefile.am): Substitute them.
9241         * lib/sys_stat.in.h (futimens): Declare it.
9242         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9243         * doc/posix-functions/futimens.texi (futimens): Likewise.
9244         * modules/futimens-tests: New test.
9245         * tests/test-futimens.c: Likewise.
9246
9247         utimens: introduce fdutimens
9248         * lib/utimens.h (fdutimens): New prototype.
9249         * lib/utimens.c (gl_futimens): Move guts...
9250         (fdutimens): ...to new interface.
9251         * tests/test-utimens.c (do_fdutimens): Use it.
9252
9253         utimens: add UTIME_NOW and UTIME_OMIT support
9254         * lib/utimens.c (validate_timespec, update_timespec): New helper
9255         functions.
9256         (gl_futimens, lutimens): Use them.
9257         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9258         stdbool, sys_stat.
9259         (Link): Mention resulting library dependency.
9260         * modules/utimecmp (Link): Likewise.
9261         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9262         (Makefile.am): Pick up library dependency.
9263         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9264         definition.
9265         * tests/test-sys_stat.c: Test the definitions.
9266         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9267         * NEWS: Document library dependency.
9268
9269         utimecmp: support symlink timestamps
9270         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9271         hashing when possible.  Use pathconf when available.
9272         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9273         * modules/utimecmp (Depends-on): Add lstat.
9274
9275         utimens: add lutimens interface
9276         * lib/utimens.c (lutimens): New function.
9277         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9278         * lib/utimens.h (lutimens): Declare new interface.
9279         * tests/test-utimens.c (main): Enhance test.
9280         * tests/test-lutimens.h (test_lutimens): New file.
9281         * modules/utimens-tests (Files): Distribute it.
9282         (Depends-on): Add symlink.
9283         (configure.ac): Check for usleep.
9284
9285         utimens: validate futimens usage
9286         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9287         fewer syscalls on failure later on.  Avoid compiler warning on
9288         mingw.
9289         * modules/utimens (Depends-on): Add dup2.
9290
9291         utimens: add test
9292         * modules/utimens-tests: New test.
9293         * tests/test-utimens.h: New file.
9294         * tests/test-futimens.h: Likewise.
9295         * tests/test-utimens.c: Likewise.
9296
9297         doc: mention timestamp portability issues
9298         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9299         instead.
9300         * doc/posix-functions/utime.texi (utime): Likewise.
9301         * doc/posix-functions/utimes.texi (utimes): Likewise.
9302         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9303         instead.
9304         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9305         module.
9306         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9307         Mention weakness with symlink timestamps.
9308         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9309         to utimensat/futimens instead.
9310         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9311
9312         test-dup2: enhance test
9313         * tests/test-dup2.c (main): Also check AT_FDCWD.
9314
9315         test-stat-time: avoid more spurious failures
9316         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9317         xfs; and avoid race if the two timestamps cross quantization edge.
9318
9319         relocatable: prefer 'file system' over 'filesystem'
9320         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9321         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9322         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9323         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9324         * lib/relocatable.c (compute_curr_prefix): Likewise.
9325
9326 2009-10-10  Jim Meyering  <meyering@redhat.com>
9327
9328         stat-time-tests: check for the usleep function
9329         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9330
9331 2009-10-10  Bruno Haible  <bruno@clisp.org>
9332
9333         * modules/xnanosleep: Put the Link section after the Include section.
9334
9335 2009-10-09  Eric Blake  <ebb9@byu.net>
9336
9337         dup2: work around FreeBSD 6.1 bug
9338         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9339         * doc/posix-functions/dup2.texi (dup2): Document it.
9340         Reported by Nelson H. F. Beebe and Jim Meyering.
9341
9342         test-stat-time: port to buggy NFS clients
9343         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9344         (test_ctime): Also skip test if mtime and ctime are skewed.
9345
9346         maint: prefer 'file system' over 'filesystem'
9347         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9348         * doc/posix-functions/lstat.texi (lstat): Likewise.
9349         * lib/file-has-acl.c (file_has_acl): Likewise.
9350         * lib/fwriteerror.c [TEST]: Likewise.
9351         * tests/test-areadlink.h (test_areadlink): Likewise.
9352         * tests/test-areadlinkat-with-size.c (main): Likewise.
9353         * tests/test-areadlinkat.c (main): Likewise.
9354         * tests/test-canonicalize-lgpl.c (main): Likewise.
9355         * tests/test-canonicalize.c (main): Likewise.
9356         * tests/test-fstatat.c (main): Likewise.
9357         * tests/test-linkat.c (main): Likewise.
9358         * tests/test-lstat.h (test_lstat_func): Likewise.
9359         * tests/test-mkdir.h (test_mkdir): Likewise.
9360         * tests/test-readlink.h (test_readlink): Likewise.
9361         * tests/test-remove.c (main): Likewise.
9362         * tests/test-rename.h (test_rename): Likewise.
9363         * tests/test-renameat.c (main): Likewise.
9364         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9365         * tests/test-symlink.h (test_symlink): Likewise.
9366         * tests/test-symlinkat.c (main): Likewise.
9367         * tests/test-unlink.h (test_unlink_func): Likewise.
9368         * tests/test-unlinkat.c (main): Likewise.
9369
9370         maint: make realtime library usage explicit
9371         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9372         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9373         * modules/settime (Link): Likewise.
9374         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9375
9376         test-stat-time: speed up execution
9377         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9378         warning on mingw.
9379         (nap): New helper function.
9380         (prepare_test): Use it to reduce sleep time.
9381         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9382         execution.
9383         * modules/stat-time-tests (configure.ac): Check for usleep.
9384
9385 2009-10-09  Jim Meyering  <meyering@redhat.com>
9386
9387         selinux-h: always use getfilecon wrappers
9388         * lib/getfilecon.c: New file.
9389         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9390         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9391         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9392         (fgetfilecon): Provide a stub.
9393         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9394         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9395         file unconditionally.
9396         When <selinux/selinux.h> is found, arrange to use wrappers.
9397         * modules/selinux-h (Files): Add getfilecon.c.
9398         (Makefile.am): Substitute include-next-related bits
9399         into the now-always-generated selinux/selinux.h file.
9400         * doc/glibc-functions/lgetfilecon.texi: New file.
9401         * doc/glibc-functions/fgetfilecon.texi: New file.
9402         * doc/glibc-functions/getfilecon.texi: New file.
9403         * doc/glibc-functions/getfilecon-desc.texi: New file.
9404         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9405         which to pull in the new files.
9406         * MODULES.html.sh (Misc): Add selinux-h.
9407
9408 2009-10-08  Jim Meyering  <meyering@redhat.com>
9409
9410         unistd: fix comment typo
9411         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9412
9413 2009-10-08  Eric Blake  <ebb9@byu.net>
9414
9415         areadlink: use SIZE_MAX consistently
9416         * modules/areadlink (Depends-on): Add stdint.
9417         * modules/areadlink-with-size (Depends-on): Likewise.
9418         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9419         gives NULL; drop sys/types, since unistd gives size_t; and add
9420         stdint for SIZE_MAX.
9421         (SIZE_MAX): Rely on headers.
9422         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9423         and add stdint.
9424         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9425         (SIZE_MAX): Likewise.
9426         (INITIAL_BUF_SIZE): Turn into enum.
9427         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9428
9429 2009-10-08  Jim Meyering  <meyering@redhat.com>
9430
9431         areadlinkat: avoid compilation failure
9432         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9433         Fix typo in comment.
9434
9435 2009-10-07  Eric Blake  <ebb9@byu.net>
9436
9437         areadlinkat-with-size: new module
9438         * modules/areadlinkat-with-size: New module.
9439         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9440         * lib/areadlink.h (areadlinkat): Declare it.
9441         * MODULES.html.sh (File system functions): Mention it.
9442         * modules/areadlinkat-with-size-tests: New test.
9443         * tests/test-areadlinkat-with-size.c: New file.
9444
9445         xreadlinkat: new module
9446         * modules/xreadlinkat: New module.
9447         * lib/xreadlinkat.c (xreadlinkat): New file.
9448         * lib/xreadlink.h (xreadlinkat): Declare it.
9449         * MODULES.html.sh (File system functions): Mention it.
9450
9451         areadlinkat: new module
9452         * lib/at-func.c (FUNC_FAIL): New define.
9453         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9454         * modules/areadlinkat: New module.
9455         * lib/linkat.c (areadlinkat): Move...
9456         * lib/areadlinkat.c (areadlinkat): ...to new file.
9457         * lib/areadlink.h (areadlinkat): Declare it.
9458         * modules/linkat (Depends-on): Add areadlinkat.
9459         * MODULES.html.sh (File system functions): Mention it.
9460         * modules/areadlinkat-tests: New test.
9461         * tests/test-areadlinkat.c: New file.
9462
9463         areadlink, areadlink-with-size: add tests
9464         * modules/areadlink-tests: New test.
9465         * modules/areadlink-with-size-tests: Likewise.
9466         * tests/test-areadlink.h: New file.
9467         * tests/test-areadlink.c: Likewise.
9468         * tests/test-areadlink-with-size.c: Likewise.
9469
9470         maint: minor cleanups
9471         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9472         _UNUSED_PARAMETER_ instead.
9473         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9474         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9475         * modules/linkat-tests (Files): Distribute test-link.h.
9476
9477         openat, utimens: whitespace cleanup
9478         * lib/openat.c: Prefer space throughout, rather than mix of 8
9479         spaces vs. tabs.
9480         * lib/at-func.c: Likewise.
9481         * lib/utimens.c: Likewise.
9482
9483         openat: avoid using wrong fd
9484         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9485         working directory chooses same fd.
9486         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9487
9488         mkdir, mkdirat: fix cygwin 1.5.x bug
9489         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9491         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9492         bug.
9493         (gl_PREREQ_MKDIR): Delete unused macro.
9494         * modules/mkdir (Files): Track file rename.
9495         (configure.ac): Update macro name.
9496         * modules/openat (Depends-on): Add mkdir.
9497         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9498
9499         mkdir, mkdirat: add tests
9500         * modules/mkdir-tests: New test.
9501         * tests/test-mkdir.h: New file.
9502         * tests/test-mkdir.c: Likewise.
9503         * tests/test-mkdirat.c: Likewise.
9504         * modules/openat-tests (Files): Add new files.
9505         (Makefile.am): Run new test.
9506
9507 2009-10-06  Eric Blake  <ebb9@byu.net>
9508
9509         doc: tweak *at function documentation
9510         * doc/posix-functions/faccessat.texi (faccessat): Mention
9511         known issue with replacement.
9512         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9513         * doc/posix-functions/linkat.texi (linkat): Likewise.
9514         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9515         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9516         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9517         * doc/posix-functions/renameat.texi (renameat): Likewise.
9518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9519
9520         openat: fix GNU/Hurd bug in unlinkat
9521         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9522         broken.
9523         * doc/posix-functions/unlink.texi (unlink): Document this.
9524         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9525
9526         fdopendir: fix GNU/Hurd bug
9527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9528         allowing non-directory fds.
9529         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9531         * modules/dirent (Makefile.am): Substitute it.
9532         * lib/dirent.in.h (fdopendir): Declare replacement.
9533         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9534         * tests/test-fdopendir.c (main): Test something other than
9535         /dev/null, since on Hurd that behaves like a directory.
9536
9537         test-symlink: port to GNU/Hurd
9538         * tests/test-symlink.h (test_symlink): Relax expected errno.
9539
9540         doc: tweak more cygwin information
9541         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9542         now compatible with glibc.
9543         * doc/posix-functions/getopt.texi (getopt): Likewise.
9544
9545         getopt-gnu: add another test
9546         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9547         guarantee behavior relied on by m4.
9548         * tests/test-getopt.c (main): Use it.
9549         * modules/getopt-posix-tests (Depends-on): Add setenv.
9550         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9551
9552         getopt: fix compilation on darwin
9553         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9554         include.
9555         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9556         Reported by Ludovic Courtès.
9557
9558 2009-10-06  Bruno Haible  <bruno@clisp.org>
9559
9560         * modules/size_max (Description): Discourage its use.
9561         Reported by Simon Josefsson.
9562
9563 2009-10-06  Jim Meyering  <meyering@redhat.com>
9564
9565         linkat: avoid compilation failure
9566         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9567
9568 2009-10-05  Eric Blake  <ebb9@byu.net>
9569
9570         linkat: support Linux 2.6.17
9571         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9572         linkat on Linux, but allow cache variable override.
9573         * lib/linkat.c (rpl_linkat): Define override.
9574         * modules/linkat (Depends-on): Add symlinkat.
9575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9576         * modules/unistd (Makefile.am): Substitute it.
9577         * lib/unistd.in.h (linkat): Declare replacement.
9578         Reported by Pádraig Brady.
9579
9580         quotearg: port test to systems with C.UTF-8 locale
9581         * tests/test-quotearg.c (struct result_strings): Add another
9582         member, differentiating between C.ASCII and C.UTF-8 handling.
9583         (compare_strings): Add parameter.
9584         (main): Adjust all callers.
9585
9586         getopt: avoid clash with FreeBSD _getopt_internal
9587         * lib/getopt.in.h (_getopt_internal): Override the name.
9588         * lib/getopt_int.h (includes): Pick up any overrides.
9589         Reported by Reuben Thomas.
9590
9591         hash: allow C89 compilation
9592         * lib/hash.c (check_tuning): Move declaration before statement.
9593         Reported by Reuben Thomas.
9594
9595 2009-10-05  Karl Berry  <karl@gnu.org>
9596
9597         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9598
9599 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9600             Bruno Haible  <bruno@clisp.org>
9601
9602         * lib/uname.c (uname): Use a table-driven algorithm to compute
9603         Windows NT versions.
9604
9605 2009-10-04  Bruno Haible  <bruno@clisp.org>
9606
9607         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9608         program_invocation_short_name.
9609         * modules/progname (configure.ac): Test for presence of
9610         program_invocation_short_name.
9611         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9612
9613 2009-10-04  Bruno Haible  <bruno@clisp.org>
9614
9615         * lib/progname.c (set_program_name): Fix comment.
9616         Reported by Jim Meyering.
9617
9618 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9619             Bruno Haible  <bruno@clisp.org>
9620
9621         * lib/uname.c: Include <string.h>.
9622         (uname): Do only one call to GetVersionEx in the common case.
9623
9624 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9625             Bruno Haible  <bruno@clisp.org>
9626
9627         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9628         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9629         (uname): Add support for Windows CE and various non-x86 CPU types.
9630
9631 2009-10-03  Bruno Haible  <bruno@clisp.org>
9632
9633         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9634         invocation to tests/configure.ac.
9635         Reported by Ian Beckwith <ianb@erislabs.net>.
9636
9637 2009-10-02  Eric Blake  <ebb9@byu.net>
9638
9639         fchdir: avoid compiler warning
9640         * lib/fchdir.c (canonicalize_file_name)
9641         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9642
9643         test-open: support mingw errno values
9644         * tests/test-open.h (test_open): Relax test.
9645         * tests/test-fopen.h (test_fopen): Likewise.
9646         * tests/test-openat-safer.c (main): Likewise.
9647
9648         open: fix opening directory on mingw
9649         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9650
9651         test-open: on GNU/Hurd, /dev/null is a directory
9652         * tests/test-fopen.h (main): Rename...
9653         (test_fopen): ...to this.  Use a guaranteed non-directory when
9654         confirming open behavior on trailing slash.
9655         * tests/test-openat-safer.c (main): Likewise.
9656         * tests/test-open.h (main): Likewise....
9657         (test_open): ...to this.
9658         * tests/test-fopen.c (main): Adjust caller.
9659         * tests/test-fopen-safer.c (main): Likewise.
9660         * tests/test-open.c (main): Likewise.
9661         * tests/test-fcntl-safer.c (main): Likewise.
9662         Reported by Samuel Thibault.
9663
9664         rename, fchdir: don't ignore chdir failure
9665         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9666         * lib/rename.c (rpl_rename) [W32]: Likewise.
9667         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9668         an empty destination directory if source cannot be renamed,
9669         although there is still possibility for failure.
9670         * doc/posix-functions/rename.texi (rename): Document the race.
9671         Reported by Jim Meyering.
9672
9673         maint: cleanup whitespace in recent commits
9674         * lib/rename.c (rpl_rename): Remove tabs.
9675         * tests/test-link.h (test_link): Likewise.
9676         * lib/fchdir.c (get_name): Likewise.
9677         Reported by Jim Meyering.
9678
9679 2009-10-02  Ben Pfaff  <blp@gnu.org>
9680
9681         relocatable-prog-wrapper: Add missing dependency on
9682         double-slash-root.
9683         * modules/relocatable-prog-wrapper: Add dependency.
9684         Reported by Ian Beckwith <ianb@erislabs.net>.
9685
9686 2009-10-02  Eric Blake  <ebb9@byu.net>
9687
9688         renameat: fix Solaris bugs
9689         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9690         needed fixing.
9691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9692         * modules/stdio (Makefile.am): Substitute it.
9693         * lib/stdio.in.h (renameat): Declare replacement.
9694         * lib/renameat.c (rpl_renameat): Implement fix.
9695
9696         renameat: new module
9697         * modules/renameat: New file.
9698         * lib/renameat.c (renameat): Likewise.
9699         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9701         * modules/stdio (Makefile.am): Substitute them.
9702         * lib/stdio.in.h (renameat): Declare it.
9703         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9704         * doc/posix-functions/renameat.texi (renameat): Likewise.
9705         * modules/renameat-tests: New test.
9706         * tests/test-renameat.c: Likewise.
9707
9708         rename: fix mingw bugs
9709         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9710         directory overwrite bugs.
9711
9712         rename: fix another cygwin 1.5 bug
9713         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9714         checks.
9715         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9716         unnecessary cygwin workarounds.  Also work around bug with moving
9717         full directory onto an empty one.
9718         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9719
9720         rename-dest-slash: merge into rename module
9721         * modules/rename-dest-slash (Status): Mark obsolete.
9722         (Depends-on): Add rename.
9723         (Files): Let rename do it all.
9724         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9725         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9726         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9727         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9728         * lib/rename.c (rpl_rename): Update comments.
9729
9730         rename: fix cygwin 1.5.x bugs
9731         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9732         * lib/rename.c (rpl_rename): Work around them.
9733         * modules/rename (Depends-on): Add same-inode.
9734
9735         rename: fix Solaris 10 bug
9736         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9737         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9738         was the only bug.
9739
9740         rename: fix Solaris 9 bug
9741         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9742         on non-directory.  Avoid calling exit.
9743         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9744         strdup.
9745         * modules/rename-tests (Depends-on): Drop lstat.
9746         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9747         (gl_PREREQ_RENAME): Delete unused macro.
9748
9749         rename-dest-slash: fix NetBSD bug
9750         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9751         links.
9752         * modules/rename-dest-slash (Depends-on): Add same-inode.
9753
9754         rename-tests: new test, exposes several platform bugs
9755         * modules/rename-tests: New file.
9756         * tests/test-rename.h: Likewise.
9757         * tests/test-rename.c: Likewise.
9758         * doc/posix-functions/rename.texi (rename): Improve documentation,
9759         including bugs that will eventually be fixed in gnulib.
9760
9761 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9762
9763         * lib/uname.c: Include <stdlib.h>
9764         (uname): Assume version info is available.
9765
9766 2009-10-02  Jim Meyering  <meyering@redhat.com>
9767
9768         gnu-web-doc-update: correct --help output
9769         * build-aux/gnu-web-doc-update: Make --help output relevant.
9770
9771         gnu-web-doc-update: add standard options
9772         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9773
9774         gnu-web-doc-update: New module.
9775         Use this script to automatically update the on-line web documentation
9776         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9777         * modules/gnu-web-doc-update: New file, from coreutils.
9778         * build-aux/gnu-web-doc-update: New script.
9779
9780 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9781
9782         link: LoadLibrary is not needed.
9783         * lib/link.c: Use GetModuleHandle.
9784
9785 2009-10-01  Eric Blake  <ebb9@byu.net>
9786
9787         getopt: bump serial number
9788         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9789         change.
9790
9791         tests: tighten link, rmdir, and remove tests
9792         * tests/test-link.h (includes): No need to use <config.h> here.
9793         Clean up if directory hard link was created, otherwise test for
9794         trailing '.'.
9795         * tests/test-linkat.c (main): Simplify.
9796         * tests/test-remove.c (main): Enhance test for trailing '.'.
9797         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9798
9799 2009-10-01  Jim Meyering  <meyering@redhat.com>
9800
9801         maint.mk: requiring "make major" was annoying, for a "minor" release.
9802         What is intended is "stable", to contrast with alpha and beta,
9803         so require "make stable", not "make major".
9804         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9805         (get_tool_versions): Likewise.
9806         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9807
9808 2009-09-30  Ben Pfaff  <blp@gnu.org>
9809
9810         Fix broken build of replacement for Windows tmpfile().
9811         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9812         flags argument added along with the 'mkostemp' module.
9813
9814 2009-09-28  Bruno Haible  <bruno@clisp.org>
9815
9816         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9817         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9818         to 'remove_elt'.
9819         (gl_list_remove): Update.
9820         * lib/gl_list.c (gl_list_remove): Update.
9821         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9822         to 'remove_elt'.
9823         (gl_oset_remove): Update.
9824         * lib/gl_list.c (gl_oset_remove): Update.
9825         Reported by Eric Blake.
9826
9827 2009-09-28  Eric Blake  <ebb9@byu.net>
9828
9829         doc: mention yet more cygwin 1.7 status
9830         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9831         cygwin.
9832         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9833         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9834
9835         argp: fix test failure
9836         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9837         that are not upper-case.  Pass correct range to tolower.
9838
9839 2009-09-27  Jim Meyering  <meyering@redhat.com>
9840
9841         test-yesno: work around sparc-dash here-document infelicity
9842         Without this change, the literal \177 byte in a here document
9843         would make dash 0.5.5.1-3 access uninitialized memory.
9844         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9845         Instead, use a marker, "@", and filter through tr to create the desired
9846         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9847
9848 2009-09-27  Bruno Haible  <bruno@clisp.org>
9849
9850         Disable untested support for new flavours of ACLs on AIX.
9851         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9852         progress.
9853         * lib/set-mode-acl.c (qset_acl): Likewise.
9854
9855 2008-12-07  Bruno Haible  <bruno@clisp.org>
9856
9857         Add support for new flavours of ACLs on AIX. (Untested.)
9858         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9859         (file_has_acl): Add support for newer AIX.
9860         * lib/set-mode-acl.c (qset_acl): Likewise.
9861         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9862         Rainer Tammer <tammer@tammer.net>.
9863
9864 2009-09-26  Eric Blake  <ebb9@byu.net>
9865
9866         argp: fix compilation of getopt
9867         * lib/getopt.in.h (includes): Use different guard than glibc.
9868         Reported by Sergey Poznyakoff.
9869
9870         doc: mention more cygwin 1.7 status
9871         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9872         bug.
9873         * doc/posix-functions/execl.texi (execl): Likewise.
9874         * doc/posix-functions/execle.texi (execle): Likewise.
9875         * doc/posix-functions/execlp.texi (execlp): Likewise.
9876         * doc/posix-functions/execv.texi (execv): Likewise.
9877         * doc/posix-functions/execve.texi (execve): Likewise.
9878         * doc/posix-functions/execvp.texi (execvp): Likewise.
9879         * doc/glibc-functions/canonicalize_file_name.texi
9880         (canonicalize_file_name): Cygwin 1.7 now provides this.
9881         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9882         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9883         on AT_SYMLINK_NOFOLLOW.
9884
9885 2009-09-24  Eric Blake  <ebb9@byu.net>
9886
9887         test-linkat: make test more robust
9888         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9889
9890         getopt: fix inclusion guards for cygwin
9891         * modules/getopt-posix (Depends-on): Add include-next.
9892         (Makefile.am): Substitute more items in replacement header.
9893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9894         <getopt.h>.
9895         * lib/getopt.in.h (includes): Use split inclusion guard, and
9896         prefer <getopt.h> over include <unistd.h> when one is present.
9897         (option): Also override name of 'struct option'.
9898
9899         same-inode: revert prior change; it is not yet ready
9900         * NEWS: Undo mention of this change.
9901         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9902         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9903         * lib/cycle-check.c (cycle_check): Likewise.
9904         * lib/same.c (same_name): Likewise.
9905         * lib/at-func2.c (at_func2): Likewise.
9906
9907 2009-09-23  Eric Blake  <ebb9@byu.net>
9908
9909         linkat: new module
9910         * modules/linkat: New file.
9911         * lib/at-func2.c (at_func2): Likewise.
9912         * lib/linkat.c (linkat): Likewise.
9913         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9914         * lib/openat-priv.h (at_func2): Add declaration.
9915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9916         * modules/unistd (Makefile.am): Substitute them.
9917         * lib/unistd.in.h (linkat): Declare it.
9918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9919         * doc/posix-functions/linkat.texi (linkat): Likewise.
9920         * doc/posix-functions/link.texi (link): Tweak wording.
9921         * tests/test-link.c (main): Move guts...
9922         * tests/test-link.h (test_link): ...into new file.
9923         * modules/linkat-tests: New test.
9924         * tests/test-linkat.c: Likewise.
9925         * modules/link-tests (Files): Ship new file.
9926         (Depends-on): Add stdbool.
9927
9928         dirname: add library-safe mdir_name
9929         * lib/dirname.h (mdir_name): New prototype.
9930         * lib/dirname.c (dir_name): Move guts...
9931         (mdir_name): ...to new function that avoids xalloc_die.
9932
9933         fchdir: another mingw fix
9934         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9935         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9936         on mingw (where it has not yet been ported), and make it optional
9937         elsewhere.
9938         (_gl_register_fd): Use it.
9939
9940         same-inode: make SAME_INODE tri-state, to port to mingw
9941         * NEWS: Mention this change.
9942         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9943         st_ino always being 0.
9944         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9945         * lib/cycle-check.c (cycle_check): Likewise.
9946         * lib/same.c (same_name): Likewise.
9947
9948         lstat: avoid mingw compilation error
9949         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9950         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9951         lstat ourselves.
9952         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9953         was adequate.
9954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9955         the checks for lstat.
9956         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9957
9958         link: fix test failure on Solaris 9
9959         * lib/link.c (rpl_link): Don't assume link will catch bogus
9960         trailing slash on source.
9961
9962         test-symlinkat: enhance test
9963         * tests/test-readlink.c (main): Move guts...
9964         * tests/test-readlink.h (test_readlink): ...into new file.
9965         * tests/test-symlink.c (main): Move guts...
9966         * tests/test-symlink.h (test_symlink): ...into new file.
9967         * tests/test-symlinkat.c (main): Use new files for further
9968         coverage.
9969         (do_symlink, do_readlink): New helper functions.
9970         * modules/symlink-tests (Files): Ship new file.
9971         (Depends-on): Add stdbool.
9972         * modules/readlink-tests (Files): Ship new file.
9973         (Depends-on): Add stdbool.
9974         * modules/symlinkat-tests (Files): Use new files.
9975
9976 2009-09-23  Eric Blake  <ebb9@byu.net>
9977
9978         readlink: document portability issue with symlink length
9979         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9980         systems have bogus st_size on symlinks, and mention the
9981         areadlink-with-size module.
9982         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9983         * doc/posix-functions/readlink.texi (readlink): Mention the
9984         areadlink module, and ERANGE failure.
9985         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9986         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9987
9988         readlink: fix Solaris 9 bug with trailing slash
9989         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9990         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9991         * doc/posix-functions/readlink.texi (readlink): Document this.
9992         * modules/readlink-tests: New test.
9993         * tests/test-readlink.c: Likewise.
9994
9995         readlink: fix cygwin 1.5.x bug with return type
9996         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9997         * lib/unistd.in.h (readlink): Use ssize_t.
9998         * lib/readlink.c (readlink): Likewise.
9999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10000         * modules/unistd (Makefile.am): Substitute it.
10001         * lib/unistd.in.h (readlink): Declare replacement.
10002         * doc/posix-functions/readlink.texi (readlink): Document this.
10003
10004         symlink: use throughout gnulib
10005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10006         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10007         symlink is not used.
10008         * modules/symlinkat (Depends-on): Add symlink.
10009         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10010         * modules/canonicalize-tests (Depends-on): Likewise.
10011         * modules/lstat-tests (Depends-on): Likewise.
10012         * modules/openat-tests (Depends-on): Likewise.
10013         * modules/remove-tests (Depends-on): Likewise.
10014         * modules/rmdir-tests (Depends-on): Likewise.
10015         * modules/unlink-tests (Depends-on): Likewise.
10016         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10017         * tests/test-canonicalize.c (symlink): Likewise.
10018         * tests/test-fstatat.c (symlink): Likewise.
10019         * tests/test-lstat.c (symlink): Likewise.
10020         * tests/test-remove.c (symlink): Likewise.
10021         * tests/test-rmdir.c (symlink): Likewise.
10022         * tests/test-unlink.c (symlink): Likewise.
10023         * tests/test-unlinkat.c (symlink): Likewise.
10024
10025         symlink: new module, for Solaris 9 bug
10026         * modules/symlink: New file.
10027         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10028         * lib/symlink.c: Likewise.
10029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10030         * modules/unistd (Makefile.am): Substitute them.
10031         * lib/unistd.in.h (symlink): Declare replacement.
10032         * MODULES.html.sh (File system functions): Mention it.
10033         * doc/posix-functions/symlink.texi (symlink): Likewise.
10034         * modules/symlink-tests: New test.
10035         * tests/test-symlink.c: Likewise.
10036
10037 2009-09-23  Bruno Haible  <bruno@clisp.org>
10038
10039         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10040         when needed.
10041         Test case: gnulib-tool --import --with-tests atexit inttypes.
10042         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10043
10044 2009-09-23  Bruno Haible  <bruno@clisp.org>
10045
10046         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10047         subcommand, not in a subshell.
10048
10049 2009-09-22  Eric Blake  <ebb9@byu.net>
10050
10051         unistd: sort replacement declarations
10052         * lib/unistd.in.h: Sort declarations.
10053
10054         open, openat: minor optimization
10055         * lib/open.c (open): If open succeeded, len is non-zero.
10056         * lib/openat.c (rpl_openat): Likewise.
10057
10058         link-follow: ensure correct result
10059         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10060         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10061         distinguish between possible failures.
10062
10063 2009-09-21  Eric Blake  <ebb9@byu.net>
10064
10065         fts: avoid compiler warning
10066         * lib/fts.c (dirent_inode_sort_may_be_useful)
10067         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10068
10069 2009-09-19  Bruno Haible  <bruno@clisp.org>
10070
10071         * lib/progreloc.c (canonicalize_file_name): New declaration.
10072
10073 2009-09-19  Eric Blake  <ebb9@byu.net>
10074
10075         link: fix quoting
10076         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10077
10078         openat: fix openat bugs on Solaris 9
10079         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10080         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10081         * modules/openat (Depends-on): Add open.
10082         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10083         * modules/fcntl-h (Makefile.am): Substitute it.
10084         * lib/fcntl.in.h (openat): Declare replacement.
10085         * doc/posix-functions/openat.texi (openat): Document this.
10086
10087         openat: move fstatat and unlinkat into correct files
10088         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10089         compiled.
10090         * lib/openat.c (fstatat, unlinkat): Move...
10091         * lib/fstatat.c (fstatat): ...into correct files.
10092         * lib/unlinkat.c (unlinkat): Likewise.
10093
10094         openat: fix unlinkat bugs on Solaris 9
10095         * lib/unlinkat.c (unlinkat): New file.
10096         * modules/openat (Depends-on): Add unlink.
10097         (Files): Distribute it.
10098         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10099         trailing slash behavior is broken.
10100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10101         * modules/unistd (Makefile.am): Substitute it.
10102         * lib/unistd.in.h (unlinkat): Declare replacement.
10103         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10104
10105         openat: fix fstatat bugs on Solaris 9
10106         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10107         stat.
10108         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10109
10110         test-unlinkat: enhance test, to expose Solaris 9 bug
10111         * tests/test-unlink.c (main): Factor guts...
10112         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10113         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10114         * tests/test-rmdir.c (main): Adjust caller.
10115         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10116         (unlinker): New helper function.
10117         (rmdirat): Enhance check.
10118         * modules/rmdir-tests (Depends-on): Add stdbool.
10119         * modules/unlink-tests (Depends-on): Likewise.
10120         (Files): Add test-unlink.h.
10121         * modules/openat-tests (Files): Likewise.
10122         (Depends-on): Add unlinkdir.
10123
10124         test-fstatat: new test, to expose Solaris 9 bugs
10125         * tests/test-stat.c (main): Factor guts...
10126         * tests/test-stat.h (test_stat_func): ...into new file.
10127         * tests/test-lstat.c (main): Factor guts...
10128         * tests/test-lstat.h (test_lstat_func): ...into new file.
10129         * tests/test-fstatat.c: New file.
10130         * modules/stat-tests (Files): Add test-stat.h.
10131         * modules/lstat-tests (Files): Add test-lstat.h.
10132         (Depends-on): Add stdbool.
10133         * modules/openat-tests (Depends-on): Add pathmax.
10134         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10135         (Makefile.am): Run new test.
10136
10137         remove: new module, for mingw and Solaris 9 bugs
10138         * modules/remove: New file.
10139         * lib/remove.c: Likewise.
10140         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10142         * modules/stdio (Makefile.am): Use them.
10143         * lib/stdio.in.h (remove): Declare replacement.
10144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10145         * doc/posix-functions/remove.texi (remove): Likewise.
10146         * modules/remove-tests: New test.
10147         * tests/test-remove.c: Likewise.
10148
10149         unlink: new module, for Solaris 9 bug
10150         * modules/unlink: New file.
10151         * lib/unlink.c: Likewise.
10152         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10154         * modules/unistd (Makefile.am): Use them.
10155         * lib/unistd.in.h (stat): Declare replacement.
10156         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10157         * doc/posix-functions/unlink.texi (unlink): Likewise.
10158         * modules/unlink-tests: New test.
10159         * tests/test-unlink.c: Likewise.
10160
10161         lstat: fix Solaris 9 bug
10162         * lib/lstat.c (lstat): Also check for trailing slash on
10163         non-symlink, non-directories.  Use stat module to simplify logic.
10164         * doc/posix-functions/lstat.texi (lstat): Document it.
10165         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10166         (configure.ac): Check for symlink.
10167         * tests/test-lstat.c (main): Add more tests.
10168
10169         stat: add as dependency to other modules
10170         * modules/chown (Depends-on): Add stat.
10171         * modules/euidaccess (Depends-on): Likewise.
10172         * modules/fchdir (Depends-on): Likewise.
10173         * modules/isdir (Depends-on): Likewise.
10174         * modules/link (Depends-on): Likewise.
10175         * modules/lstat (Depends-on): Likewise.
10176         * modules/mkdir-p (Depends-on): Likewise.
10177         * modules/modechange (Depends-on): Likewise.
10178         * modules/open (Depends-on): Likewise.
10179         * modules/readlink (Depends-on): Likewise.
10180         * modules/same (Depends-on): Likewise.
10181
10182         stat: fix Solaris 9 bug
10183         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10184         slash.
10185         * lib/stat.c (rpl_stat): Work around it.
10186         * doc/posix-functions/stat.texi (stat): Update documentation.
10187
10188         stat: new module, for mingw bug
10189         * modules/stat: New file.
10190         * lib/stat.c: Likewise.
10191         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10192         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10193         * modules/sys_stat (Makefile.am): Use them.
10194         * lib/sys_stat.in.h (stat): Declare replacement.
10195         * lib/openat.c (fstatat): Deal with lstat and stat being function
10196         macros.
10197         * modules/openat (Depends-on): Add inline.
10198         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10199         * doc/posix-functions/stat.texi (stat): Likewise.
10200         * modules/stat-tests: New test.
10201         * tests/test-stat.c: Likewise.
10202
10203 2009-09-19  Jim Meyering  <meyering@redhat.com>
10204
10205         syntax-check: detect unnecessary inclusion of canonicalize.h
10206         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10207
10208 2009-09-19  Eric Blake  <ebb9@byu.net>
10209
10210         canonicalize-lgpl: adjust clients to use correct header
10211         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10212         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10213         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10214         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10215         * lib/progreloc.c (includes): Likewise.
10216
10217 2009-09-19  Jim Meyering  <meyering@redhat.com>
10218
10219         test-posixtm.c: correct a comment
10220         * tests/test-posixtm.c: Correct first-line comment.
10221         Spotted by Eric Blake.
10222
10223 2009-09-16  Jim Meyering  <meyering@redhat.com>
10224
10225         posixtm-tests: make T const-correct; add a test case
10226         * tests/test-posixtm.c (T): Declare const.
10227         Add a test for -(2^31+1).
10228         Remove useless can-succeed-only-in-2002 test.
10229
10230         posixtm-tests: adjust the sole failing test
10231         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10232         expected output matches what mktime now produces.  Cross-checked via
10233         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10234
10235         posixtm: move #ifdef'd tests into a new module
10236         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10237         * tests/test-posixtm.c: ... this new file.
10238         * modules/posixtm-tests: New module.
10239
10240 2009-09-19  Eric Blake  <ebb9@byu.net>
10241
10242         openat: simplify use of at-func.c
10243         * lib/at-func.c (includes): Include prerequisites here, to
10244         simplify requirements on client files.
10245         * lib/openat-priv.h: Add double-inclusion guard.
10246         * lib/faccessat.c (includes): Simplify.
10247         * lib/fchmodat.c (includes): Likewise.
10248         * lib/fchownat.c (includes): Likewise.
10249         * lib/mkdirat.c (includes): Likewise.
10250         * lib/mkfifoat.c (includes): Likewise.
10251         * lib/symlinkat.c (includes): Likewise.
10252
10253         openat: allow return of fd 0
10254         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10255         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10256         unistd-safer.
10257         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10258         <fcntl.h>; this module does not leak fds.
10259         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10260         must be allowed to return 0, leaving openat_safer to add the
10261         safety.
10262         (openat_permissive): Avoid writing to just-opened fd 2 if
10263         restoring the current directory fails.
10264         * lib/openat-die.c (openat_restore_fail): Add comment.
10265         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10266         (save_cwd): Guarantee safe fd, but without use of open_safer.
10267         * tests/test-openat.c: New test.
10268         * modules/openat-tests (Files, Makefile.am): Distribute and build
10269         new file.
10270
10271         relocatable-prog-wrapper: fix build
10272         * modules/relocatable-prog-wrapper (Files): Update name of
10273         canonicalize m4 file, broken on 2009-09-17.
10274         Reported by emad hajjar <aleppos@hotmail.com>.
10275
10276 2009-09-19  Bruno Haible  <bruno@clisp.org>
10277
10278         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10279         * lib/safe-alloc.c: Likewise.
10280         Reported by Ian Beckwith <ianb@erislabs.net>.
10281
10282 2009-09-18  Bruno Haible  <bruno@clisp.org>
10283
10284         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10285         Reported by <erobles@sensacd.com.mx>.
10286
10287 2009-09-17  Eric Blake  <ebb9@byu.net>
10288
10289         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10290         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10291         slashes when checking if last component is missing.
10292         * tests/test-canonicalize.c (main): Test this.
10293
10294         canonicalize, canonicalize-lgpl: honor // if distinct from /
10295         * modules/canonicalize (Files): Add double-slash-root.m4.
10296         * modules/canonicalize-lgpl (Files): Likewise.
10297         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10298         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10299         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10300         fallback definition.
10301         (canonicalize_filename_mode): Use it to protect //.
10302         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10303         (__realpath): Likewise.
10304         * tests/test-canonicalize.c (main): Test this.
10305         * tests/test-canonicalize-lgpl.c (main): Likewise.
10306         * modules/canonicalize-tests (Depends-on): Add same-inode.
10307         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10308
10309         canonicalize-lgpl: fix glibc bug with trailing slash
10310         * m4/canonicalize-lgpl.m4: Move contents...
10311         * m4/canonicalize.m4: ...here.
10312         (gl_CANONICALIZE_LGPL): Factor realpath check...
10313         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10314         glibc 2.3.5 bug, fixed 2005-04-27.
10315         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10316         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10317         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10318         * modules/canonicalize-lgpl (Files): Manage file rename.
10319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10320         * modules/stdlib (Makefile.am): Substitute witness.
10321         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10322         is needed.
10323         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10324         replacement is required.
10325         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10326         * doc/glibc-functions/canonicalize_file_name.texi
10327         (canonicalize_file_name): Document this.
10328         * doc/posix-functions/realpath.texi (realpath): Likewise.
10329
10330         canonicalize-lgpl: reject non-directory with trailing slash
10331         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10332         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10333         catches failures in glibc 2.3.5.
10334         * tests/test-canonicalize.c (main): Likewise.
10335
10336         canonicalize-lgpl: use native realpath if it works
10337         * lib/canonicalize-lgpl.c (realpath): Guard with
10338         FUNC_REALPATH_WORKS.
10339         * lib/stdlib.in.h (realpath): Make declaration optional based on
10340         HAVE_REALPATH.
10341         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10342         native realpath works.
10343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10344         * modules/stdlib (Makefile.am): Substitute witness.
10345
10346         canonicalize, canonicalize-lgpl: use <stdlib.h>
10347         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10348         (Include): Mention <stdlib.h>.
10349         (configure.ac): Mention functions we provide.
10350         * modules/canonicalize (configure.ac): Likewise.
10351         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10352         realpath if canonicalize_file_name is missing.
10353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10354         * modules/stdlib (Makefile.am): Substitute witnesses.
10355         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10356         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10357         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10358         * NEWS: Document this.
10359         * doc/glibc-functions/canonicalize_file_name.texi
10360         (canonicalize_file_name): Likewise.
10361         * doc/posix-functions/realpath.texi (realpath): Likewise.
10362         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10363
10364         test-canonicalize: consolidate into single C program
10365         * tests/test-canonicalize.sh: Delete; move setup into...
10366         * tests/test-canonicalize.c (main): ...the program, making it
10367         easier to run in debugger.  Add some tests.
10368         * modules/canonicalize-tests (Files): Remove unused file.
10369         (Depends-on): Add progname.
10370         (configure.ac, Makefile.am): Simplify.
10371
10372         test-canonicalize-lgpl: consolidate into single C program
10373         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10374         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10375         easier to run in debugger.  Add some tests.
10376         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10377         (configure.ac, Makefile.am): Simplify.
10378
10379         canonicalize: avoid resolvepath
10380         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10381         unnecessary checks.
10382         * lib/canonicalize.c (includes): Simplify.
10383         (canonicalize_file_name): Drop resolvepath implementation.
10384         * modules/canonicalize (Depends-on): Drop filenamecat.
10385
10386         canonicalize: don't lose errno
10387         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10388         over calls to free.
10389
10390         canonicalize: simplify errno handling
10391         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10392         assignment.
10393
10394         canonicalize, canonicalize-lgpl: update module dependencies
10395         * modules/canonicalize (Depends-on): Add extensions, lstat,
10396         pathmax, stdlib.
10397         (Files): Drop pathmax.h.
10398         (configure.ac): Adjust macro name.
10399         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10400         lstat, stdlib, sys_stat.
10401         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10402         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10403         extensions.
10404         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10405         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10406         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10407         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10408         declaration, if available.
10409         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10410         we can rely on the readlink module.
10411         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10412         (includes): Use <unistd.h> unconditionally.
10413
10414 2009-09-17  Eric Blake  <ebb9@byu.net>
10415
10416         maint: make Include sections of modules consistent
10417         * modules/alloca: Use only header name; no need to list #include.
10418         * modules/alloca-opt: Likewise.
10419         * modules/arpa_inet: Likewise.
10420         * modules/canon-host: Likewise.
10421         * modules/configmake: Likewise.
10422         * modules/dirent: Likewise.
10423         * modules/eealloc: Likewise.
10424         * modules/environ: Likewise.
10425         * modules/fchdir: Likewise.
10426         * modules/fcntl: Likewise.
10427         * modules/fcntl-h: Likewise.
10428         * modules/gethrxtime: Likewise.
10429         * modules/gettime: Likewise.
10430         * modules/ignore-value: Likewise.
10431         * modules/inet_ntop: Likewise.
10432         * modules/inet_pton: Likewise.
10433         * modules/inttypes: Likewise.
10434         * modules/isnand-nolibm: Likewise.
10435         * modules/isnanf-nolibm: Likewise.
10436         * modules/mbchar: Likewise.
10437         * modules/mbfile: Likewise.
10438         * modules/mbiter: Likewise.
10439         * modules/mbuiter: Likewise.
10440         * modules/netdb: Likewise.
10441         * modules/netinet_in: Likewise.
10442         * modules/nproc: Likewise.
10443         * modules/pagealign_alloc: Likewise.
10444         * modules/poll: Likewise.
10445         * modules/printf-frexp: Likewise.
10446         * modules/pthread: Likewise.
10447         * modules/putenv: Likewise.
10448         * modules/random_r: Likewise.
10449         * modules/relocatable-prog: Likewise.
10450         * modules/search: Likewise.
10451         * modules/select: Likewise.
10452         * modules/selinux-h: Likewise.
10453         * modules/settime: Likewise.
10454         * modules/signal: Likewise.
10455         * modules/size_max: Likewise.
10456         * modules/socklen: Likewise.
10457         * modules/ssize_t: Likewise.
10458         * modules/stdarg: Likewise.
10459         * modules/stdbool: Likewise.
10460         * modules/stddef: Likewise.
10461         * modules/stdint: Likewise.
10462         * modules/stdio: Likewise.
10463         * modules/stdlib: Likewise.
10464         * modules/string: Likewise.
10465         * modules/strings: Likewise.
10466         * modules/sys_file: Likewise.
10467         * modules/sys_ioctl: Likewise.
10468         * modules/sys_select: Likewise.
10469         * modules/sys_socket: Likewise.
10470         * modules/sys_stat: Likewise.
10471         * modules/sys_time: Likewise.
10472         * modules/sys_times: Likewise.
10473         * modules/sys_utsname: Likewise.
10474         * modules/sys_wait: Likewise.
10475         * modules/sysexits: Likewise.
10476         * modules/time: Likewise.
10477         * modules/times: Likewise.
10478         * modules/tmpfile: Likewise.
10479         * modules/trim: Likewise.
10480         * modules/unistd: Likewise.
10481         * modules/wchar: Likewise.
10482         * modules/wctype: Likewise.
10483
10484 2009-09-17  Bruno Haible  <bruno@clisp.org>
10485
10486         Make getdate.y compile on QNX and NetBSD 5 / i386.
10487         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10488         TIME_T_FITS_IN_LONG_INT.
10489         * lib/getdate.y (long_time_t): New type.
10490         (relative_time): Change type of 'seconds' field to long_time_t.
10491         (get_date): Update types of local variables. Check against overflow
10492         during conversion from long_time_t to time_t.
10493         Reported by Matt Kraai <kraai@ftbfs.org>
10494         and Hasso Tepper <hasso@netbsd.org>.
10495
10496 2009-09-17  Bruno Haible  <bruno@clisp.org>
10497
10498         * modules/COPYING: Update copyright years.
10499         * modules/README: Likeiwse.
10500         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10501         Reported by Ian Beckwith <ianb@erislabs.net>.
10502
10503 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10504
10505         * users.txt: Update references for gnuit package.
10506
10507 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10508
10509         * m4/getdelim.m4: Fix typo in copyright line.
10510
10511 2009-09-17  Bruno Haible  <bruno@clisp.org>
10512
10513         * lib/atoll.c: Use the standard header with GPL copyright.
10514         * lib/argz.in.h: Likewise.
10515         * lib/glob.c: Likewise.
10516         * lib/glob-libc.h: Likewise.
10517         * lib/random_r.c: Likewise.
10518         * lib/siglist.h: Likewise.
10519         * lib/strsignal.c: Likewise.
10520         Reported by Ian Beckwith <ianb@erislabs.net>.
10521
10522 2009-09-17  Eric Blake  <ebb9@byu.net>
10523
10524         rmdir: ensure correct dependency order
10525         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10526
10527 2009-09-17  Bruno Haible  <bruno@clisp.org>
10528
10529         Disable assertion that fails on NetBSD 5 / i386.
10530         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10531         Reported by Sam Steingold <sds@gnu.org>
10532         and Hasso Tepper <hasso@netbsd.org>.
10533
10534 2009-09-16  Eric Blake  <ebb9@byu.net>
10535
10536         unlinkdir: port to mingw
10537         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10538         on which no one can unlink a directory.
10539
10540         stdlib: sort witness names
10541         * modules/stdlib (Makefile.am): Sort replacements.
10542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10543         * lib/stdlib.in.h: Likewise.
10544
10545         parse-duration-tests: avoid link failure
10546         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10547         LIBINTL.
10548         Reported by Tom G. Christensen.
10549
10550         openat-tests: ensure unlinkat behaves like rmdir
10551         * tests/test-rmdir.c (main): Factor guts...
10552         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10553         * modules/rmdir-tests (Files): Ship new file.
10554         * modules/openat-tests: New test.
10555         * tests/test-unlinkat.c: Likewise.
10556
10557         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10558         * modules/rmdir-errno (Status, Notice): Now obsolete.
10559
10560         rmdir: work around cygwin 1.5.x and mingw bugs
10561         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10562         * lib/rmdir.c (rmdir): Work around it.
10563         * modules/rmdir (Status, Notice): No longer obsolete.
10564         (Files): Add dos.m4.
10565         (Depends-on): Add unistd.
10566         (configure.ac): Set witnesses.
10567         (License): Relax to LGPLv2+.
10568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10569         * modules/unistd (Makefile.am): Substitute witnesses.
10570         * lib/unistd.in.h (rmdir): Declare replacement.
10571         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10572         * modules/rmdir-tests: New tests.
10573         * tests/test-rmdir.c: Likewise.
10574
10575 2009-09-15  Eric Blake  <ebb9@byu.net>
10576
10577         fchdir: improve use of replacement functions
10578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10581         REPLACE_CLOSEDIR.
10582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10583         * modules/sys_stat (Makefile.am): Substitute correct witness.
10584         * modules/dirent (Makefile.am): Likewise.
10585         * modules/unistd (Makefile.am): Likewise.
10586         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10587         * lib/unistd.in.h (dup): Likewise.
10588         * lib/sys_stat.in.h (fstat): Likewise.
10589
10590         maint: ignore gnulib-tool temp files
10591         * .gitignore: Ignore files created during gnulib-tool --test.
10592
10593 2009-09-13  Jim Meyering  <meyering@redhat.com>
10594
10595         posixtm: don't reject a time that specify "60" as the number of seconds
10596         * lib/posixtm.c (posixtime): The code to reject invalid dates
10597         would also reject a time specified with the .60 suffix.
10598         But POSIX allows that, in order to accommodate leap seconds.
10599         So don't reject it.
10600         (main): Adjust tests accordingly.
10601         * modules/posixtm (Depends-on): Add stpcpy.
10602
10603 2009-09-11  Jim Meyering  <meyering@redhat.com>
10604
10605         announce-gen: include [$release_type] in emitted Subject:
10606         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10607         e.g., [stable] in the emitted Subject: line.
10608
10609 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10610
10611         Remove obsolete macros from several modules.
10612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10613         obsolete Autoconf macros with their modern counterparts.
10614         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10615         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10617         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10618         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10619         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10621         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10622         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10623         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10624         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10626         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10627         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10628         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10629         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10630         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10631         * m4/time_r.m4 (gl_TIME_R): Likewise.
10632         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10633         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10634         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10635
10636         Fix copyright header in build-aux scripts.
10637         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10638         recommendation.
10639         * build-aux/ncftpput-ftp: Likewise.
10640         * build-aux/update-copyright: Likewise.
10641
10642 2009-09-09  Eric Blake  <ebb9@byu.net>
10643
10644         test-link: allow Linux choice of errno
10645         * tests/test-link.c (main): Relax test for alternate error.
10646
10647         strndup: fix improper m4 caching
10648         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10649         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10650         (gl_PREREQ_STRNDUP): Delete.
10651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10652         * modules/string (Makefile.am): Substitute it.
10653         * lib/string.in.h (strndup): Modernize prototype.
10654
10655         getcwd: port to mingw
10656         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10657         different from the POSIX assumptions made throughout the getcwd
10658         module; fortunately, the mingw getcwd does not need replacement.
10659         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10660         * modules/getcwd-tests: New test.
10661         * tests/test-getcwd.c: Likewise.
10662
10663         link: fix platform bugs
10664         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10665         * lib/link.c (link): Work around them.  Fix related mingw bug.
10666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10667         * modules/unistd (Makefile.am): Substitute it.
10668         * lib/unistd.in.h (link): Declare replacement.
10669         * doc/posix-functions/link.texi (link): Document this.
10670         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10671
10672         test-link: consolidate into single C program, test more cases
10673         * tests/test-link.sh: Delete.
10674         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10675         at least Cygwin and Solaris.
10676         * modules/link-tests (Files): Remove unused file.
10677         (Depends-on): Add errno, sys_stat.
10678         (Makefile.am): Simplify.
10679
10680 2009-09-08  Bruno Haible  <bruno@clisp.org>
10681
10682         Work around towlower, towupper bug on mingw.
10683         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10684         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10685         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10686         * doc/posix-functions/towupper.texi: Likewise.
10687         Reported by Eric Blake.
10688
10689 2009-09-08  Jim Meyering  <meyering@redhat.com>
10690
10691         build: don't try to run autoheader if we don't use it
10692         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10693         is not used in configure.ac.
10694
10695 2009-09-08  Eric Blake  <ebb9@byu.net>
10696
10697         euidaccess: fix compilation error
10698         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10699
10700         rawmemchr: relax license
10701         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10702         okay.
10703         Reported by Jim Meyering.
10704
10705         mkfifoat: new module
10706         * modules/mkfifoat: New file.
10707         * lib/mkfifoat.c: Likewise.
10708         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10710         * modules/sys_stat (Makefile.am): Use them.
10711         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10712         * MODULES.html.sh (File system functions): Mention module.
10713         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10714         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10715         * modules/mkfifoat-tests: New test.
10716         * tests/test-mkfifoat.c: Likewise.
10717
10718         strchrnul: relax license
10719         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10720         okay.
10721         Reported by Jim Meyering.
10722
10723 2009-09-08  Eric Blake  <ebb9@byu.net>
10724
10725         fstatat: fix compilation on Solaris
10726         * lib/fstatat.c (includes): Add fcntl.h.
10727         Reported by Pádraig Brady.
10728
10729 2009-09-07  Eric Blake  <ebb9@byu.net>
10730
10731         rename: modernize replacement
10732         * modules/rename (Depends-on): Add stdio.
10733         (configure.ac): Declare witness.
10734         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10735         stdio take care of replacement.
10736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10737         * modules/stdio (Makefile.am): Substitute them.
10738         * lib/stdio.in.h (rename): Declare replacement.
10739         * lib/rename.c (includes): Allow cross-compilation to non-windows
10740         machines.
10741         * doc/posix-functions/rename.texi (rename): Improve
10742         documentation.
10743
10744         stdio: sort witness names
10745         * modules/stdio (Makefile.am): Sort replacements.
10746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10747         * lib/stdio.in.h: Likewise.
10748
10749         getcwd: minor cleanups
10750         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10751         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10752
10753         openat: provide more convenience names
10754         * modules/faccessat (configure.ac): Add C witness.
10755         * lib/unistd.in.h (readlinkat): Fix typo.
10756         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10757         convenience wrappers.
10758         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10759         wrappers in syntax checks.
10760
10761 2009-09-06  Eric Blake  <ebb9@byu.net>
10762
10763         doc: fix comments in recent patches
10764         * lib/faccessat.c: Mention correct function.
10765         * lib/fchmodat.c: Likewise.
10766         * lib/fchownat.c: Likewise.
10767         * lib/symlinkat.c: Likewise.
10768         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10769         constants.
10770
10771         faccessat, symlinkat: continue cleanup of previous patch
10772         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10773         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10774         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10776         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10777         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10778         set.
10779
10780 2009-09-06  Bruno Haible  <bruno@clisp.org>
10781
10782         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10783         (fstatat): Declare if GNULIB_FSTATAT is set.
10784         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10785         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10786         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10787         * modules/fcntl-h (Files): Remove m4/openat.m4.
10788         * modules/sys_stat (Files): Remove m4/openat.m4.
10789         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10790         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10791         * modules/unistd (Files): Remove m4/openat.m4.
10792         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10793         GNULIB_OPENAT.
10794         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10795         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10797         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10798         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10799         gl_OPENAT_DEFAULTS.
10800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10801         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10802         Don't require gl_OPENAT_DEFAULTS.
10803         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10804         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10805         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10806         (gl_OPENAT_DEFAULTS): Remove macro.
10807
10808 2009-09-06  Bruno Haible  <bruno@clisp.org>
10809
10810         * modules/openat (configure.ac): Remove unneeded witness.
10811
10812 2009-09-06  Bruno Haible  <bruno@clisp.org>
10813
10814         Set errno to ENOSYS when a function is entirely unsupported.
10815         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10816         EOPNOTSUPP.
10817         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10818         * modules/chown (Depends-on): Remove errno.
10819
10820 2009-09-06  Bruno Haible  <bruno@clisp.org>
10821
10822         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10823
10824 2009-09-06  Bruno Haible  <bruno@clisp.org>
10825
10826         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10827
10828 2009-09-06  Ben Pfaff  <blp@gnu.org>
10829             Bruno Haible  <bruno@clisp.org>
10830
10831         Work around a glibc bug in strtok_r.
10832         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10833         Undefine if UNDEFINE_STRTOK_R is set.
10834         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10836         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10837         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10838         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10839         UNDEFINE_STRTOK_R.
10840         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10841
10842 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10843
10844         exclude: minor fix
10845         * lib/exclude.c: Include wctype.h
10846
10847 2009-09-06  Akim Demaille  <demaille@gostai.com>
10848
10849         bootstrap: improve error message
10850         * build-aux/bootstrap (find_tool): Upon failure, report the list
10851         of candidates.
10852         Honor the initial value of the envvar.
10853
10854 2009-09-05  Eric Blake  <ebb9@byu.net>
10855
10856         symlinkat: new module
10857         * modules/symlinkat: New file.
10858         * lib/symlinkat.c: Likewise.
10859         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10861         * modules/unistd (Makefile.am): Use them.
10862         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10863         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10864         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10865         * MODULES.html.sh (File system functions): Mention module.
10866         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10867         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10868         * modules/symlinkat-tests: New test.
10869         * tests/test-symlinkat.c: Likewise.
10870
10871         test-openat-safer: add more checks
10872         * tests/test-openat-safer.c (main): Check more code paths.
10873
10874 2009-09-05  Jim Meyering  <meyering@redhat.com>
10875
10876         syntax-check: detect unnecessary inclusion of openat.h
10877         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10878
10879 2009-09-05  Bruno Haible  <bruno@clisp.org>
10880
10881         Support towlower, towupper.
10882         * doc/posix-functions/towlower.texi: Mention module wctype.
10883         * doc/posix-functions/towupper.texi: Likewise.
10884         * lib/wctype.in.h (towlower, towupper): New functions.
10885         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10886         (ASSERT): New macro.
10887         (e): New variable.
10888         (main): Test also towlower, towupper. Test WEOF argument.
10889         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10890
10891 2009-09-05  Bruno Haible  <bruno@clisp.org>
10892
10893         Fix conversion behaviour when the input is invalid.
10894         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10895         mark occurring in first pass of indirect conversion.
10896         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10897         input.
10898         Found by clang's static analyzer.
10899
10900 2009-09-05  Bruno Haible  <bruno@clisp.org>
10901
10902         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10903         where direct conversion is possible.
10904
10905 2009-09-04  Eric Blake  <ebb9@byu.net>
10906
10907         openat: fail with ENOENT on empty name
10908         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10909         buffer.
10910
10911         link-follow: fix logic bug in prior patch
10912         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10913         reversed sense of yes and no in prior patch.  Avoid confusing
10914         compilation failure with desired semantics.
10915
10916         link-follow: accomodate mingw and cross-compilation
10917         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10918         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10919         cross-compilation results to -1, to make linkat easier to
10920         implement when cross-compiling.  Trivially support mingw.
10921         * modules/link-follow (configure.ac): Call new name.
10922         * NEWS: Mention this.
10923
10924 2009-09-03  Eric Blake  <ebb9@byu.net>
10925
10926         faccessat: compile replacement
10927         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10928         needed.
10929
10930         fts: fix compilation error
10931         * lib/fts.c (includes): Re-add "openat.h", for
10932         openat_needs_fchdir.
10933
10934         faccessat: new module
10935         * modules/faccessat: New file.
10936         * lib/faccessat.c: Likewise.
10937         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10939         * modules/unistd (Makefile.am): Use it.
10940         * lib/unistd.in.h (faccessat): Declare it.
10941         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10942         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10943         * MODULES.html.sh (File system functions): Mention it.
10944         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10945         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10946
10947         euidaccess: prefer POSIX over non-standard implementation
10948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10949         * lib/euidaccess.c (euidaccess): Use it if available.
10950
10951         openat: make template easier to use
10952         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10953         AT_FUNC_F2 to be undefined.
10954         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10955         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10956         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10957         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10958         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10959         Likewise.
10960         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10961         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10962         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10963         Likewise.
10964
10965         openat: declare in POSIX headers
10966         * NEWS: Mention this.
10967         * modules/openat (configure.ac): Declare witnesses.
10968         (Depends-on): Add fcntl-h, sys_stat, unistd.
10969         (Include): Mention correct headers.
10970         * modules/fcntl-h (Depends-on): Add link-warning.
10971         (Files): Add openat.m4.
10972         (Makefile.am): Substitute witnesses.
10973         * modules/sys_stat (Files, Makefile.am): Likewise.
10974         * modules/unistd (Files, Makefile.am): Likewise.
10975         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10976         (gl_OPENAT_DEFAULTS): New macro.
10977         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10980         (SYS_STAT_H): Remove unused variable.
10981         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10982         * lib/fcntl--.h (includes): Remove unneeded header.
10983         * lib/openat-safer.c (includes): Likewise.
10984         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10985         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10986         appropriate headers.
10987         (__OPENAT_PREFIX): Delete.
10988         * lib/fcntl.in.h (openat): Provide declaration.
10989         (AT_FDCWD): Fix Solaris bug.
10990         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10991         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10992         * lib/fchmodat.c (includes):  Adjust to find declaration.
10993         * lib/fchownat.c (includes): Likewise.
10994         * lib/mkdirat.c (includes): Likewise.
10995         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10996         still visible.
10997
10998 2009-09-02  Eric Blake  <ebb9@byu.net>
10999
11000         errno: use consistently
11001         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11002         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11003         * lib/canonicalize.c (ELOOP): Likewise.
11004         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11005         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11006         * lib/lchown.c (EOPNOTSUPP): Likewise.
11007         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11008         * lib/savewd.c (ESTALE): Likewise.
11009         * lib/settime.c (ENOSYS): Likewise.
11010         * lib/utimens.c (ENOSYS): Likewise.
11011         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11012         * lib/chdir-safer.c (ELOOP): Likewise.
11013         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11014         * modules/c-stack (Depends-on): Add errno.
11015         * modules/canonicalize (Depends-on): Likewise.
11016         * modules/chdir-safer (Depends-on): Likewise.
11017         * modules/fdopendir (Depends-on): Likewise.
11018         * modules/inet_ntop (Depends-on): Likewise.
11019         * modules/inet_pton (Depends-on): Likewise.
11020         * modules/lchown (Depends-on): Likewise.
11021         * modules/openat (Depends-on): Likewise.
11022         * modules/savewd (Depends-on): Likewise.
11023         * modules/settime (Depends-on): Likewise.
11024         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11025
11026         fts: avoid leaking fds
11027         * modules/fts (Depends-on): Add cloexec.
11028         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11029         flag.
11030
11031         fts: make directory fds more robust
11032         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11033         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11034
11035         backupfile, chdir-long, fts, savedir: make safer
11036         * lib/backupfile.c (includes): Use "dirent--.h", since
11037         numbered_backup can write to stderr during readdir.
11038         * lib/savedir.c (includes): Likewise.
11039         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11040         emulation can write to stderr on failure.
11041         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11042         * lib/getcwd.c: Document why opendir_safer is unused.
11043         * lib/glob.c: Likewise.
11044         * lib/scandir.c: Likewise.
11045         * lib/openat-proc.c: Likewise, for open_safer.
11046         * modules/backupfile (Depends-on): Add dirent-safer.
11047         * modules/savedir (Depends-on): Likewise.
11048         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11049         * modules/chdir-long (Depends-on): Add openat-safer.
11050
11051         openat-safer: new module
11052         * modules/openat-safer: New file.
11053         * lib/openat-safer.c: Likewise.
11054         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11055         * lib/fcntl-safer.h (openat_safer): Declare.
11056         * lib/fcntl--.h (openat): Override.
11057         * MODULES.html.sh (File descriptor based I/O): Mention it.
11058         * lib/openat.h: Add double-inclusion guards.
11059         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11060         "fcntl--.h", so we can implement openat.
11061         * modules/openat-safer-tests: New test.
11062         * tests/test-openat-safer.c: New file.
11063
11064         dirent-safer: new module
11065         * modules/dirent-safer: New file.
11066         * lib/dirent--.h: Likewise.
11067         * lib/dirent-safer.h: Likewise.
11068         * lib/opendir-safer.c: Likewise.
11069         * m4/dirent-safer.m4: Likewise.
11070         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11071         * modules/dirent-safer-tests: New test.
11072         * tests/test-dirent-safer.c: New file.
11073         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11074
11075         fdopendir: optimize on mingw
11076         * lib/unistd.in.h (_gl_directory_name): New prototype.
11077         * lib/fchdir.c (_gl_directory_name): Implement it.
11078         (fchdir): Use it to simplify implementation.
11079         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11080         fchdir, when available, to avoid calling [f]chdir().
11081
11082         fdopendir: split into its own module
11083         * lib/openat.c (fdopendir): Move...
11084         * lib/fdopendir.c: ...into new file.
11085         * modules/fdopendir: New module.
11086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11087         * modules/openat (Depends-on): Add fdopendir.
11088         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11089         fdopendir here.
11090         * modules/savedir (Depends-on): Only need fdopendir, not full
11091         openat.
11092         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11093         * lib/openat.h (fdopendir): Drop prototype.
11094         * lib/dirent.in.h (fdopendir): Provide prototype.
11095         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11096         * modules/dirent (Makefile.am): Substitute them.
11097         * MODULES.html.sh (File system functions): Mention it.
11098         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11099         * modules/fdopendir-tests: New file.
11100         * tests/test-fdopendir.c: Likewise.
11101
11102         fchdir: use more consistent macro convention
11103         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11104         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11105         REPLACE_FCHDIR, rather than relying on config.h macros.
11106         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11107         inside a single make-time REPLACE_FCHDIR block, rather than using
11108         the config.h FCHDIR_REPLACEMENT.
11109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11110         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11111         Manage fstat replacement.
11112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11113         REPLACE_FCHDIR.
11114         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11115         (Makefile.am): Substitute REPLACE_FCHDIR.
11116         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11117         FCHDIR_REPLACEMENT.
11118         * lib/dup-safer.c (dup_safer): Likewise.
11119         * lib/dup2.c (rpl_dup2): Likewise.
11120         * lib/dup3.c (rpl_dup3): Likewise.
11121         * lib/open.c (rpl_open): Likewise.
11122
11123         fchdir: simplify error handling, and support dup3
11124         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11125         stdbool, malloc-posix, realloc-posix.
11126         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11127         (ensure_dirs_slot): Return false on allocation failure.
11128         (rpl_dup2): Delete.
11129         (_gl_register_dup): New function.
11130         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11131         (_gl_register_fd): Close fd on allocation failure.
11132         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11133         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11134         prototype.
11135         (rpl_dup2_fchdir): Delete prototype.
11136         * lib/open.c (open): Update caller.
11137         * lib/dup2.c (dup2): Track fchdir metadata.
11138         * lib/dup3.c (dup3): Likewise.
11139         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11141
11142 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11143
11144         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11145         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11146         don't pass arguments to AC_OUTPUT.
11147
11148 2009-09-02  Bruno Haible  <bruno@clisp.org>
11149
11150         * modules/mkdtemp (License): Relicense under LGPLv2+.
11151         Reported by Paolo Bonzini.
11152
11153 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11154
11155         Replace uses of obsolete autoconf macros in Jim's modules.
11156         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11157         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11158         can evoke a warning from autoconf when run with -Wobsolete
11159         enabled.  They were declared obsolete for good reasons (see
11160         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11161         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11162         should not continue using the deprecated macros.
11163         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11164         obsolete Autoconf macros with modern counterparts.
11165         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11166         * m4/dos.m4 (gl_AC_DOS): Likewise.
11167         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11169         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11170         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11171         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11172         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11173         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11174         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11175         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11176         Likewise.
11177         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11178         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11179         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11180         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11181         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11182         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11183
11184 2009-09-01  Eric Blake  <ebb9@byu.net>
11185
11186         fchdir: fix off-by-one bug in previous patch
11187         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11188         (_gl_unregister_fd): Delete useless if.
11189
11190 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11191
11192         maint.mk: sort the list of syntax-check rules
11193         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11194         easier to get a sense of progress when the rules are run sequentially
11195         and take a long time.
11196
11197 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11198
11199         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11200         * modules/netinet_in: Likewise.
11201         * modules/sys_file: Likewise.
11202         * modules/sys_ioctl: Likewise.
11203         * modules/sys_select: Likewise.
11204         * modules/sys_socket: Likewise.
11205         * modules/sys_stat: Likewise.
11206         * modules/sys_time: Likewise.
11207         * modules/sys_times: Likewise.
11208         * modules/sys_utsname: Likewise.
11209         * modules/sys_wait: Likewise.
11210
11211 2009-09-01  Jim Meyering  <meyering@redhat.com>
11212
11213         fts: help ensure that return values are not ignored
11214         * lib/fts_.h (__GNUC_PREREQ): Define.
11215         (__attribute_warn_unused_result__): Define.
11216         (fts_children, fts_close, fts_open, fts_read): Declare with
11217         __attribute_warn_unused_result__.
11218
11219         fts: fts_close now fails also when closing a dir file descriptor fails
11220         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11221         and propagate to caller, along with errno.
11222
11223         announce-gen: correct formatting in --help output
11224         * build-aux/announce-gen (usage): Move the one-line description in
11225         --help output "up", to where it belongs, just after Usage:.
11226
11227 2009-08-31  Eric Blake  <ebb9@byu.net>
11228
11229         fchdir: port to mingw
11230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11231         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11232         opened, then use a substitute.
11233         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11234         replacement.
11235         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11236         (_gl_register_fd): No need to check stat if open already filters
11237         all directories.
11238         (fchdir): Fix error condition to match POSIX.
11239         * modules/fchdir (Depends-on): Add sys_stat.
11240         * doc/posix-functions/open.texi (open): Document the limitation.
11241         * modules/fchdir-tests: New file.
11242         * tests/test-fchdir.c: Likewise.
11243
11244         canonicalize: allow cross-testing from cygwin to mingw
11245         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11246         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11247         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11248         Likewise.
11249         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11250         target does not support symlinks.
11251         * tests/test-canonicalize-lgpl.sh: Likewise.
11252
11253         chown: avoid compilation warning on mingw
11254         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11255         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11256         mingw.
11257         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11258         * modules/chown (Depends-on): Add errno.
11259
11260 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11261
11262         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11263         command.
11264
11265 2009-08-31  Jim Meyering  <meyering@redhat.com>
11266
11267         canonicalize: remove useless initialization
11268         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11269         initialization of local, "end".
11270
11271 2009-08-30  Bruno Haible  <bruno@clisp.org>
11272
11273         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11274         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11275         ENOSYS.
11276
11277 2009-08-30  Bruno Haible  <bruno@clisp.org>
11278
11279         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11280         /usr/xpg4/bin/tr when it exists.
11281         * tests/test-pipe-filter-gi1.sh: Likewise.
11282
11283 2009-08-30  Bruno Haible  <bruno@clisp.org>
11284
11285         Work around deficient /usr/bin/id program on Solaris.
11286         * tests/test-file-has-acl.sh (ID): New variable.
11287         * tests/test-set-mode-acl.sh (ID): Likewise.
11288         * tests/test-copy-acl.sh (ID): Likewise.
11289         * tests/test-copy-file.sh (ID): Likewise.
11290
11291 2009-08-30  Bruno Haible  <bruno@clisp.org>
11292
11293         New module 'xstriconveh'.
11294         * lib/xstriconveh.h: New file.
11295         * lib/xstriconveh.c: New file.
11296         * modules/xstriconveh: New file.
11297
11298 2009-08-30  Bruno Haible  <bruno@clisp.org>
11299
11300         Make it easier to use mem_cd_iconveh.
11301         * lib/striconveh.h (iconveh_t): New type.
11302         (iconveh_open, iconveh_close): New declarations.
11303         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11304         with a single 'const iconveh_t *' argument.
11305         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11306         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11307         with a single 'const iconveh_t *' argument.
11308         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11309         * tests/test-striconveh.c (main): Update.
11310         * NEWS: Mention the change.
11311
11312 2009-08-30  Bruno Haible  <bruno@clisp.org>
11313
11314         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11315         problem.
11316
11317 2009-08-30  Bruno Haible  <bruno@clisp.org>
11318
11319         Work around iconv_open problem on Solaris.
11320         * lib/iconv_open-solaris.gperf: New file.
11321         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11322         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11323         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11324         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11325         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11326         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11327
11328 2009-08-29  Jim Meyering  <meyering@redhat.com>
11329
11330         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11331         * top/maint.mk (cvs-check): Remove target; it was just an alias
11332         to the better-named vc-diff-check.
11333         (maintainer-distcheck): Remove rule.  It was used only from
11334         the (alpha/beta/major) target, and all of its commands but one
11335         were coreutils-specific.
11336         (vc-dist): Remove rule.
11337         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11338         Run vc-diff-check, not vc-dist.
11339         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11340
11341 2009-08-27  Bruno Haible  <bruno@clisp.org>
11342
11343         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11344         of 0.
11345
11346 2009-08-27  Bruno Haible  <bruno@clisp.org>
11347
11348         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11349         compilers.
11350         * doc/func.texi: Document the SunPRO C bug.
11351
11352 2009-08-27  Bruno Haible  <bruno@clisp.org>
11353
11354         Fix link error on Solaris.
11355         * tests/test-parse-duration.c (xstrdup): Remove function.
11356
11357 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11358
11359         ignore-value: handle pointer types, too
11360         * lib/ignore-value.h (__attribute__): Remove definition.
11361         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11362         of a more concise and more-often effective "(void) i" statement.
11363         (ignore_ptr): New function to suppress warnings from functions that
11364         return pointers, and to make it explicit that one function doesn't
11365         handle all cases.
11366
11367 2009-08-25  Bruno Haible  <bruno@clisp.org>
11368
11369         dup2: work around a Linux bug.
11370         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11371         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11372         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11373         Reported by Simon Josefsson.
11374
11375 2009-08-25  Jim Meyering  <meyering@redhat.com>
11376
11377         libguestfs uses gnulib
11378         * users.txt: Add libguestfs.
11379
11380 2009-08-24  Eric Blake  <ebb9@byu.net>
11381
11382         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11383         * lib/pipe2.c (includes): Add binary-io.h.
11384         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11385
11386 2009-08-24  Bruno Haible  <bruno@clisp.org>
11387
11388         Tolerate declared but missing accept4 syscall.
11389         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11390         available.
11391         * lib/sys_socket.in.h (accept4): If the function is already present,
11392         override it.
11393         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11394         * modules/accept4 (Makefile.am): Compile accept4.c always.
11395         Reported by Paolo Bonzini and Eric Blake.
11396
11397 2009-08-23  Bruno Haible  <bruno@clisp.org>
11398
11399         New module 'accept4'.
11400         * lib/sys_socket.in.h (accept4): New declaration.
11401         * lib/accept4.c: New file.
11402         * m4/accept4.m4: New file.
11403         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11404         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11405         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11406         HAVE_ACCEPT4.
11407         * modules/accept4: New file.
11408         * doc/glibc-functions/accept4.texi: Mention the new module.
11409
11410 2009-08-24  Jim Meyering  <meyering@redhat.com>
11411
11412         progname: also set global program_invocation_name, when possible
11413         Before this change, a libtool-enabled program that calls glibc's
11414         error function would report the program name as
11415         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11416         * modules/progname (configure.ac): Check for a declaration of
11417         program_invocation_name.
11418         * lib/progname.c:  Include <errno.h>.
11419         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11420         Set program_invocation_name.
11421
11422 2009-08-23  Bruno Haible  <bruno@clisp.org>
11423
11424         * lib/dup3.c: Include <string.h>.
11425
11426 2009-08-23  Bruno Haible  <bruno@clisp.org>
11427
11428         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11429         * lib/pipe2.c (pipe2): Likewise.
11430         Suggested by Eric Blake.
11431
11432 2009-08-23  Bruno Haible  <bruno@clisp.org>
11433
11434         Tolerate declared but missing dup3 syscall.
11435         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11436         * lib/unistd.in.h (dup3): If the function is already present,
11437         override it.
11438         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11439         * modules/dup3 (Makefile.am): Compile dup3.c always.
11440         Reported by Paolo Bonzini.
11441
11442 2009-08-23  Bruno Haible  <bruno@clisp.org>
11443
11444         Tolerate declared but missing pipe2 syscall.
11445         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11446         available.
11447         * lib/unistd.in.h (pipe2): If the function is already present,
11448         override it.
11449         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11450         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11451         Reported by Paolo Bonzini.
11452
11453 2009-08-23  Bruno Haible  <bruno@clisp.org>
11454
11455         * lib/pipe2.c (pipe2): Move #ifs inside function.
11456
11457 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11458
11459         quotearg: document limitations of quote_these_too
11460         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11461         those limitations are created.
11462         * lib/quotearg.h (set_char_quoting): Document that digits and
11463         letters that are special after backslash are not permitted.
11464         (quotearg_char): Cross-reference set_char_quoting documentation.
11465
11466 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11467
11468         quotearg: implement custom_quoting_style
11469         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11470         right_quote fields.
11471         (set_custom_quoting): New public function.
11472         (quotearg_buffer_restyled): Add left_quote and right_quote
11473         arguments, handle them very much like locale quoting, and update
11474         all uses.
11475         (quotearg_n_custom): New public function.
11476         (quotearg_n_custom_mem): New public function.
11477         (quotearg_custom): New public function.
11478         (quotearg_custom_mem): New public function.
11479         * lib/quotearg.h: Prototype and document new public functions.
11480         (enum quoting_style): For escape_quoting_style and
11481         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11482         ignored even though they're otherwise like c_quoting_style.
11483         Add custom_quoting_style member and document with comparison to
11484         clocale_quoting_style.
11485         * tests/test-quotearg.c (custom_quotes): New array.
11486         (custom_results): New array.
11487         (main): Extend to test custom quoting.
11488
11489 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11490
11491         quotearg: fix right quote escaping when it's in quote_these_too
11492         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11493         quote, be sure to prepend only one backslash.
11494         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11495         (main): Test it.
11496
11497 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11498
11499         quotearg-tests: test escaping of embedded locale quotes
11500         * tests/test-quotearg.c (struct result_strings): Add member for
11501         new input.
11502         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11503         (inputs): Add new input.
11504         (results_g): Add expected results.
11505         (flag_results): Likewise.
11506         (locale_results): Likewise.
11507         (compare_strings): Check those.
11508
11509 2009-08-23  Bruno Haible  <bruno@clisp.org>
11510
11511         Tests for module 'dup3'.
11512         * modules/dup3-tests: New file.
11513         * tests/test-dup3.c: New file.
11514
11515         New module 'dup3'.
11516         * lib/unistd.in.h (dup3): New declaration.
11517         * lib/dup3.c: New file.
11518         * m4/dup3.m4: New file.
11519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11520         HAVE_DUP3.
11521         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11522         * modules/dup3: New file.
11523         * doc/glibc-functions/dup3.texi: Mention the new module.
11524
11525 2009-08-23  Bruno Haible  <bruno@clisp.org>
11526
11527         Tweak the dup2 test.
11528         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11529         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11530         the test file is still empty. Fix argument order of lseek.
11531
11532 2009-08-23  Bruno Haible  <bruno@clisp.org>
11533
11534         Avoid test link errors when the modules getopt-gnu, gettext are used.
11535         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11537
11538 2009-08-23  Bruno Haible  <bruno@clisp.org>
11539
11540         Fix getdtablesize() on mingw.
11541         * lib/getdtablesize.c (getdtablesize): Implement differently.
11542         * lib/unistd.in.h (getdtablesize): Improve comment.
11543
11544 2009-08-23  Bruno Haible  <bruno@clisp.org>
11545
11546         New module 'mkostemp'.
11547         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11548         * lib/stdlib.in.h (mksotemp): New declaration.
11549         * lib/mkostemp.c: New file, from glibc with modifications.
11550         * lib/tempname.h (GT_FILE): Remove outdated comment.
11551         (gen_tempname): Add flags argument.
11552         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11553         (__GT_FILE): Map to 1.
11554         (small_open, large_open): Remove macros.
11555         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11556         * lib/mkstemp.c (mkstemp): Update.
11557         * lib/mkdtemp.c (mkdtemp): Likewise.
11558         * m4/mkostemp.m4: New file.
11559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11560         HAVE_MKOSTEMP.
11561         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11562         HAVE_MKOSTEMP.
11563         * modules/mkostemp: New file, based on modules/mkstemp.
11564         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11565         * NEWS: Mention the change.
11566
11567 2009-08-23  Bruno Haible  <bruno@clisp.org>
11568
11569         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11570         Reported by Eric Blake.
11571
11572 2009-08-23  Bruno Haible  <bruno@clisp.org>
11573
11574         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11575         Reported by Eric Blake.
11576
11577 2009-08-23  Bruno Haible  <bruno@clisp.org>
11578
11579         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11580         * modules/pipe2 (Depends-on): Likewise.
11581
11582 2009-08-23  Eric Blake  <ebb9@byu.net>
11583
11584         fcntl-h: add O_TTY_INIT support
11585         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11586         * tests/test-fcntl-h.c (o): Test it.
11587         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11588
11589         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11590         * modules/fcntl: Move <fcntl.h> header replacement...
11591         * modules/fcntl-h: ...to new name, so as not to collide with
11592         like-named function.
11593         * tests/test-fcntl.c: Rename...
11594         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11595         * modules/fcntl-tests: Rename...
11596         * modules/fcntl-h-tests: ...to this.  Update test file name.
11597         * modules/chdir-long (Depends-on): Update clients.
11598         * modules/chdir-safer (Depends-on): Likewise.
11599         * modules/fcntl-safer (Depends-on): Likewise.
11600         * modules/fts (Depends-on): Likewise.
11601         * modules/mkancesdirs (Depends-on): Likewise.
11602         * modules/mkdir-p (Depends-on): Likewise.
11603         * modules/open (Depends-on): Likewise.
11604         * modules/savewd (Depends-on): Likewise.
11605         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11606         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11607
11608 2009-08-22  Bruno Haible  <bruno@clisp.org>
11609
11610         * modules/binary-io (License): Relicense under LGPL.
11611         * modules/pipe2 (License): Likewise.
11612
11613 2009-08-22  Bruno Haible  <bruno@clisp.org>
11614
11615         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11616         return value.
11617         * lib/pipe-filter-gi.c (filter_init): Likewise.
11618         Reported by Eric Blake.
11619
11620 2009-08-22  Bruno Haible  <bruno@clisp.org>
11621
11622         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11623         * modules/pipe (Depends-on): Add pipe2.
11624
11625 2009-08-22  Bruno Haible  <bruno@clisp.org>
11626
11627         Tests for module 'pipe2'.
11628         * modules/pipe2-tests: New file.
11629         * tests/test-pipe2.c: New file.
11630
11631         New module 'pipe2'.
11632         * lib/unistd.in.h (pipe2): New declaration.
11633         * lib/pipe2.c: New file.
11634         * m4/pipe2.m4: New file.
11635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11636         HAVE_PIPE2.
11637         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11638         * modules/pipe2: New file.
11639         * doc/glibc-functions/pipe2.texi: Mention the new module.
11640
11641 2009-08-22  Bruno Haible  <bruno@clisp.org>
11642
11643         Reference some new glibc functions.
11644         * doc/glibc-functions/accept4.texi: New file.
11645         * doc/glibc-functions/dup3.texi: New file.
11646         * doc/glibc-functions/mkostemp.texi: New file.
11647         * doc/glibc-functions/pipe2.texi: New file.
11648         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11649         (Glibc sys/socket.h): Refer to accept4.
11650         (Glibc unistd.h): Refer to dup3, pipe2.
11651         Reported by Eric Blake.
11652
11653 2009-08-22  Jim Meyering  <meyering@redhat.com>
11654             Bruno Haible  <bruno@clisp.org>
11655
11656         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11657         This makes it so packages using automake-1.11's silent-rules option
11658         can print e.g., a single "GEN    configmake.h" line, rather than
11659         the 30+ statements that perform the job.  If you want to see the
11660         actual commands, you can still run "make V=1".
11661         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11662         so that make output is abbreviated when those variables are defined
11663         appropriately.
11664         * modules/argz: Likewise.
11665         * modules/arpa_inet: Likewise.
11666         * modules/byteswap: Likewise.
11667         * modules/configmake: Likewise.
11668         * modules/dirent: Likewise.
11669         * modules/errno: Likewise.
11670         * modules/fcntl: Likewise.
11671         * modules/float: Likewise.
11672         * modules/fnmatch: Likewise.
11673         * modules/getopt-posix: Likewise.
11674         * modules/glob: Likewise.
11675         * modules/iconv_open: Likewise.
11676         * modules/inttypes: Likewise.
11677         * modules/localcharset: Likewise.
11678         * modules/locale: Likewise.
11679         * modules/math: Likewise.
11680         * modules/netdb: Likewise.
11681         * modules/netinet_in: Likewise.
11682         * modules/poll: Likewise.
11683         * modules/posix_spawnp-tests: Likewise.
11684         * modules/sched: Likewise.
11685         * modules/search: Likewise.
11686         * modules/selinux-h: Likewise.
11687         * modules/signal: Likewise.
11688         * modules/spawn: Likewise.
11689         * modules/stdarg: Likewise.
11690         * modules/stdbool: Likewise.
11691         * modules/stddef: Likewise.
11692         * modules/stdint: Likewise.
11693         * modules/stdio: Likewise.
11694         * modules/stdlib: Likewise.
11695         * modules/string: Likewise.
11696         * modules/strings: Likewise.
11697         * modules/sys_file: Likewise.
11698         * modules/sys_ioctl: Likewise.
11699         * modules/sys_select: Likewise.
11700         * modules/sys_socket: Likewise.
11701         * modules/sys_stat: Likewise.
11702         * modules/sys_time: Likewise.
11703         * modules/sys_times: Likewise.
11704         * modules/sys_utsname: Likewise.
11705         * modules/sys_wait: Likewise.
11706         * modules/sysexits: Likewise.
11707         * modules/time: Likewise.
11708         * modules/unistd: Likewise.
11709         * modules/wchar: Likewise.
11710         * modules/wctype: Likewise.
11711
11712 2009-08-22  Jim Meyering  <meyering@redhat.com>
11713
11714         announce-gen: detect write failure
11715         * build-aux/announce-gen: Add Coda at end.
11716         Remove equivalent-but-more-verbose block at top.
11717
11718 2009-08-19  Akim Demaille  <demaille@gostai.com>
11719
11720         bootstrap: --help to stdout.
11721         * bootstrap (usage): Don't send --help to stderr.
11722         Use a here doc instead of a long string.
11723
11724 2009-08-21  Eric Blake  <ebb9@byu.net>
11725
11726         test-popen-safer: split from test-popen
11727         * tests/test-popen.c (main): Move...
11728         * tests/test-popen.h: ...into new file.
11729         * tests/test-popen-safer2.c: New file.
11730         * modules/popen-tests (Files): Add test-popen.h.
11731         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11732         Suggested by Bruno Haible.
11733
11734         test-fcntl-safer: split from test-open
11735         * tests/test-open.c (main): Move...
11736         * tests/test-open.h: ...into new file.
11737         * tests/test-fcntl-safer.c: New file.
11738         * modules/open-tests (Files): Add test-open.h.
11739         * modules/fcntl-safer-tests: New file.
11740         Suggested by Bruno Haible.
11741
11742         test-fopen-safer: split from test-fopen
11743         * tests/test-fopen.c (main): Move...
11744         * tests/test-fopen.h: ...into new file.
11745         * tests/test-fopen-safer.c: New file.
11746         * modules/fopen-tests (Files): Add test-fopen.h.
11747         * modules/fopen-safer-tests: New file.
11748         Suggested by Bruno Haible.
11749
11750 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11751
11752         popen-safer: test O_CLOEXEC at run-time.
11753         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11754
11755 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11756
11757         fcntl: move more flags to the header
11758         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11759         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11760         * lib/fcntl.in.h: Do both things here.
11761
11762 2009-08-21  Jim Meyering  <meyering@redhat.com>
11763
11764         consistently remove $@-t before redirecting to it
11765         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11766         * modules/alloca-opt: Likewise.
11767         * modules/byteswap: Likewise.
11768         * modules/fnmatch: Likewise.
11769         * modules/getopt-posix: Likewise.
11770         * modules/glob: Likewise.
11771         * modules/poll: Likewise.
11772         * modules/posix_spawnp-tests: Likewise.
11773         * modules/sys_socket: Likewise.
11774         * modules/sysexits: Likewise.
11775
11776 2009-08-21  Eric Blake  <ebb9@byu.net>
11777
11778         popen: simplify access to original popen
11779         * lib/popen.c (rpl_popen): No need to worry about popen being a
11780         macro.
11781         Reported by Bruno Haible.
11782
11783 2009-08-20  Eric Blake  <ebb9@byu.net>
11784
11785         build: avoid some compiler warnings
11786         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11787         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11788         type.
11789         (new_exclude_segment, excluded_file_pattern_p)
11790         (excluded_file_name_p): Reduce scope.
11791         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11792         old-style declaration.
11793
11794 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11795
11796         * tests/test-exclude1.sh: Handle Windows EOL.
11797         * tests/test-exclude2.sh: Likewise.
11798         * tests/test-exclude3.sh: Likewise.
11799         * tests/test-exclude4.sh: Likewise.
11800         * tests/test-exclude5.sh: Likewise.
11801         * tests/test-exclude6.sh: Likewise.
11802         * tests/test-exclude7.sh: Likewise.
11803
11804 2009-08-19  Akim Demaille  <demaille@gostai.com>
11805
11806         bootstrap: find sha1sum when named gsha1sum.
11807         * bootstrap (find_tool): New.
11808         ($SHA1SUM): New.
11809         Use it.
11810
11811 2009-08-20  Jim Meyering  <meyering@redhat.com>
11812
11813         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11814         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11815         expression that converts "." in a file name to "\." in the resulting
11816         regexp.  Start with a dummy statement, so that prior shell variable
11817         definitions are expanded portably.  Reported by Simon Josefsson.
11818
11819 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11820
11821         Fix polling for writeability of a screen buffer.
11822         * lib/poll.c: Distinguish input and screen buffers for the
11823         Win32 implementation.
11824         * lib/select.c: Likewise.
11825
11826 2009-08-19  Eric Blake  <ebb9@byu.net>
11827
11828         popen-safer: prevent popen from clobbering std descriptors
11829         * modules/popen-safer: New file.
11830         * lib/popen-safer.c: Likewise.
11831         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11832         * lib/stdio--.h (popen): Provide override.
11833         * lib/stdio-safer.h (popen_safer): Provide declaration.
11834         * tests/test-popen.c (includes): Partially test this.
11835         * modules/popen-safer-tests: New file, for more tests.
11836         * tests/test-popen-safer.c: Likewise.
11837         * MODULES.html.sh (file stream based Input/Output): Mention it.
11838
11839         tests: test some of the *-safer modules
11840         * modules/fopen-safer (Depends-on): Add fopen.
11841         * modules/fcntl-safer (Depends-on): Add fcntl.
11842         * modules/stdlib-safer (Depends-on): Add stdlib.
11843         (configure.ac): Set indicator.
11844         * modules/unistd-safer (configure.ac): Likewise.
11845         * modules/tmpfile-safer (configure.ac): Likewise.
11846         (Depends-on): Add tmpfile.
11847         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11848         active.
11849         * tests/test-fopen.c (includes): Test safer versions when they are
11850         in use.
11851         * tests/test-open.c (includes): Likewise.
11852
11853         popen: fix cygwin 1.5 bug when stdin closed
11854         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11855         * modules/popen: New file.
11856         * modules/popen-tests: Likewise.
11857         * tests/test-popen.c: Likewise.
11858         * m4/popen.m4: Likewise.
11859         * lib/popen.c: Likewise.
11860         * lib/stdio.in.h (popen): New declaration.
11861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11862         * modules/stdio (Makefile.am): Likewise.
11863         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11864
11865 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11866
11867         maint.mk: give full control over update-copyright exclusions
11868         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11869         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11870         (update-copyright): Don't force inclusion of top-level
11871         ChangeLog.  Don't force exclusion of all COPYING files, but make
11872         them the default exclusion instead.
11873
11874 2009-08-16  Bruno Haible  <bruno@clisp.org>
11875
11876         Fix test failures on Solaris 10.
11877         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11878         tests when Solaris iconv() is used.
11879         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11880         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11881         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11882         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11883         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11884
11885 2009-08-16  Bruno Haible  <bruno@clisp.org>
11886
11887         Fix test failures on Solaris 10.
11888         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11889         'tr' program and pass it as first argument.
11890         * tests/test-pipe-filter-gi1.sh: Likewise.
11891         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11892         program as first argument.
11893         * tests/test-pipe-filter-gi1.c (main): Likewise.
11894
11895 2009-08-16  Eric Blake  <ebb9@byu.net>
11896
11897         fpurge: fix previous commits
11898         * modules/fpurge (Makefile.am): Make replacement conditional,
11899         partially reverting 2007-04-29 change; missed in previous
11900         attempt.
11901         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11902         is missing.
11903
11904 2009-08-16  Bruno Haible  <bruno@clisp.org>
11905
11906         Clarify fpurge's effect on the file position.
11907         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11908         * tests/test-fpurge.c (main): Make a second pass for checking the file
11909         position.
11910
11911 2009-08-16  Bruno Haible  <bruno@clisp.org>
11912
11913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11914         declaration of fpurge is missing.
11915         * tests/test-fpurge.c (main): Check that the file has not more contents
11916         than expected. Close the file before removing it.
11917
11918 2009-08-15  Eric Blake  <ebb9@byu.net>
11919
11920         fpurge: don't wrap working cygwin implementation
11921         * lib/fpurge.c (fpurge): Fix comment typo.
11922         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11923         1.7 to avoid replacement.
11924         * tests/test-fpurge.c (main): Enhance test.
11925
11926 2009-08-15  Eric Blake  <ebb9@byu.net>
11927         and Jim Meyering  <meyering@redhat.com>
11928
11929         test-update-copyright: skip if perl is insufficient
11930         * tests/test-update-copyright.sh: Failure to run maintainer tool
11931         should not cause testsuite failure on cygwin 1.5.
11932
11933 2009-08-14  Eric Blake  <ebb9@byu.net>
11934
11935         doc: mention more functions added in cygwin 1.7.0
11936         * doc/posix-headers/limits.texi (limits.h): Update for recent
11937         cygwin additions.
11938         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11939         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11940         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11941         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11942         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11943
11944 2009-08-14  Eric Blake  <ebb9@byu.net>
11945
11946         maint.mk: simplify update-copyright rule
11947         * top/maint.mk (update-copyright-local): Delete, and document how
11948         to do it in cfg.mk instead.
11949         (update-copyright-exclude-regexp): Delete, and document how to do
11950         it in .x-update-copyright instead.
11951         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11952         exclude ChangeLog.
11953
11954 2009-08-14  Bruno Haible  <bruno@clisp.org>
11955
11956         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11957
11958 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11959
11960         maint.mk: support update-copyright-env
11961         * top/maint.mk (update-copyright-env): Define place-holder.
11962         (update-copyright): Expand $(update-copyright-env) before
11963         invoking update-copyright.
11964
11965 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11966
11967         update-copyright: implement forced reformatting
11968         * build-aux/update-copyright: Implement and document
11969         UPDATE_COPYRIGHT_FORCE.
11970         * tests/test-update-copyright.sh: Test it.
11971
11972 2009-08-14  Eric Blake  <ebb9@byu.net>
11973         and Bruno Haible  <bruno@clisp.org>
11974
11975         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11976         * tests/test-locale.c: Revert previous patch related to NULL.
11977         * tests/test-stdio.c: Likewise.
11978         * tests/test-stdlib.c: Likewise.
11979         * tests/test-string.c: Likewise.
11980         * tests/test-unistd.c: Likewise.
11981         * modules/time-tests (Depends-on): Add verify.
11982         * modules/wchar-tests (Depends-on): Likewise.
11983         * tests/test-time.c: Test for NULL compliance.
11984         * tests/test-wchar.c: Likewise.
11985         * modules/locale (Depends-on): Add stddef.
11986         * modules/stdio (Depends-on): Likewise.
11987         * modules/stdlib (Depends-on): Likewise.
11988         * modules/string (Depends-on): Likewise.
11989         * modules/time (Depends-on): Likewise.
11990         * modules/unistd (Depends-on): Likewise.
11991         * modules/wchar (Depends-on): Likewise.
11992         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11993         * lib/stdlib.in.h (includes): Likewise.
11994         * lib/string.in.h (includes): Likewise.
11995         * lib/time.in.h (includes): Likewise.
11996         * lib/unistd.in.h (includes): Likewise.
11997         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11998         replaced.
11999         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12000         * m4/stddef_h.m4: New file.
12001         * modules/stddef: Likewise.
12002         * lib/stddef.in.h: Likewise.
12003         * modules/stddef-tests: Likewise.
12004         * tests/test-stddef.c: Likewise.
12005         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12006         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12007         * doc/posix-headers/locale.texi (locale.h): Likewise.
12008         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12009         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12010         * doc/posix-headers/string.texi (string.h): Likewise.
12011         * doc/posix-headers/time.texi (time.h): Likewise.
12012         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12013         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12014
12015 2009-08-14  Eric Blake  <ebb9@byu.net>
12016
12017         doc: improve git diff of texinfo files
12018         * .gitattributes: Add rule for *.texi files, with hint on how to
12019         use it.
12020         Copied from m4, and based on a report by Bruno Haible.
12021
12022 2009-08-14  Bruno Haible  <bruno@clisp.org>
12023
12024         Disable multithread support by default on Cygwin 1.5.x for real.
12025         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12026
12027 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12028
12029         update-copyright: much ado about intervals
12030         * build-aux/update-copyright: Implement and document
12031         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12032         of copyright year intervals.
12033         Also, document UPDATE_COPYRIGHT_YEAR.
12034         * tests/test-update-copyright.sh: Test it.
12035
12036         update-copyright: convert 2-digit to 4-digit years
12037         * build-aux/update-copyright: Implement and document.
12038         * tests/test-update-copyright.sh: Update.
12039
12040 2009-08-14  Jim Meyering  <meyering@redhat.com>
12041
12042         test-exclude: avoid coreutils "make check" failure
12043         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12044         just as in test-argmatch.c.
12045
12046 2009-08-13  Eric Blake  <ebb9@byu.net>
12047
12048         test-dup2: fix bad assumption
12049         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12050         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12051
12052         test-version-etc: fix CRLF portability issue
12053         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12054         recognize \r.
12055         * tests/test-argp-version-etc-1.sh: Likewise.
12056
12057         getopt: update client modules
12058         * modules/argp (Depends-on): Use getopt-gnu.
12059         * modules/git-merge-changelog (Depends-on): Likewise.
12060         * modules/long-options (Depends-on): Likewise.
12061         * modules/xstrtol (Depends-on): Likewise.
12062
12063 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12064
12065         * tests/test-version-etc.sh: Don't fail on different
12066         project/version.  Don't fail on CRLF differences.  Rewrite to use
12067         multiple -e instead of multiple sed forks, suggested by Eric Blake
12068         <ebb9@byu.net>.
12069         * tests/test-argp-version-etc-1.sh: Likewise.
12070
12071 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12072
12073         * tests/test-version-etc.sh: Don't fail on different
12074         project/version.
12075
12076 2009-08-12  Bruno Haible  <bruno@clisp.org>
12077
12078         Tests for modules 'getopt-posix', 'getopt-gnu'.
12079         * modules/getopt-posix-tests: New file.
12080         * tests/test-getopt.c: New file.
12081         * tests/test-getopt.h: New file.
12082         * tests/test-getopt_long.h: New file.
12083
12084         New modules 'getopt-posix', 'getopt-gnu'.
12085         * modules/getopt-gnu: New file, renamed from modules/getopt.
12086         * modules/getopt-posix: New file.
12087         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12088         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12089         (gl_GETOPT): Remove macro.
12090         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12091         Disable the test against BSD systems that declare optreset. Test
12092         against mingw bug. Test against lack of support of optional arguments
12093         on many platforms.
12094         * doc/glibc-headers/getopt.texi: Update module name and list of
12095         relevant platforms.
12096         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12097         'getopt-gnu' and more portability problems.
12098         * NEWS: Mention the changes.
12099
12100 2009-08-12  Bruno Haible  <bruno@clisp.org>
12101
12102         Ensure that optarg etc. get declared by <unistd.h>.
12103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12104         AC_USE_SYSTEM_EXTENSIONS.
12105         * modules/getopt (Depends-on): Add 'extensions'.
12106
12107 2009-08-12  Bruno Haible  <bruno@clisp.org>
12108
12109         Avoid test link errors.
12110         * modules/pipe-filter-ii-tests (Makefile.am): Define
12111         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12112         * modules/pipe-filter-gi-tests (Makefile.am): Define
12113         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12115
12116 2009-08-12  Bruno Haible  <bruno@clisp.org>
12117
12118         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12119         gl_GETOPT_SUBSTITUTE before.
12120         (gl_GETOPT): Use it.
12121         * m4/argp.m4 (gl_ARGP): Update.
12122         Reported by Sergey Poznyakoff.
12123
12124         * m4/getopt.m4: Reorder macros.
12125         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12126         (gl_GETOPT_SUBSTITUTE): Remove macro.
12127
12128 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12129
12130         Minor improvement in gitlog-to-changelog
12131
12132         * build-aux/gitlog-to-changelog: New option `--format' makes
12133         output format string configurable.
12134
12135 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12136
12137         Optimize exclude: use hash tables for non-wildcard patterns.
12138
12139         * lib/exclude.c: Include hash.h and mbuiter.h
12140         (struct exclude_pattern, exclude_segment): New data types.
12141         (struct exclude): Rewrite.
12142         (fnmatch_pattern_has_wildcards): New function.
12143         (new_exclude_segment, free_exclude_segment): New functions.
12144         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12145         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12146         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12147         * modules/exclude: Depend on hash and mbuiter.
12148
12149         * modules/exclude-tests: New file.
12150         * tests/test-exclude.c: New file.
12151         * tests/test-exclude1.sh: New file.
12152         * tests/test-exclude2.sh: New file.
12153         * tests/test-exclude3.sh: New file.
12154         * tests/test-exclude4.sh: New file.
12155         * tests/test-exclude5.sh: New file.
12156         * tests/test-exclude6.sh: New file.
12157         * tests/test-exclude7.sh: New file.
12158
12159 2009-08-12  Bruno Haible  <bruno@clisp.org>
12160
12161         Ensure that getopt() gets declared by <unistd.h>.
12162         * lib/unistd.in.h: Conditionally include getopt.h.
12163         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12164         Set GNULIB_UNISTD_H_GETOPT.
12165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12166         GNULIB_UNISTD_H_GETOPT.
12167         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12168
12169 2009-08-12  Bruno Haible  <bruno@clisp.org>
12170
12171         Clarify logic.
12172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12173         gl_replace_getopt instead of GETOPT_H.
12174
12175 2009-08-12  Bruno Haible  <bruno@clisp.org>
12176
12177         * m4/getopt.m4: Add comments.
12178
12179 2009-08-12  Bruno Haible  <bruno@clisp.org>
12180
12181         Disable multithread support by default on Cygwin 1.5.x.
12182         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12183         set gl_use_threads=no if not specified otherwise.
12184
12185 2009-08-11  Bruno Haible  <bruno@clisp.org>
12186
12187         Avoid compilation error on NetBSD 5.0.
12188         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12189         * tests/test-stdio.c: Likewise.
12190         * tests/test-stdlib.c: Likewise.
12191         * tests/test-string.c: Likewise.
12192         * tests/test-unistd.c: Likewise.
12193         Reported by Greg Troxel <gdt@ir.bbn.com>
12194         at <https://savannah.gnu.org/support/?106973>.
12195
12196 2009-08-11  Bruno Haible  <bruno@clisp.org>
12197
12198         * modules/dup2-tests (Depends-on): Remove close.
12199
12200         Undo 2009-07-19 commit.
12201         * modules/acl-tests (Depends-on): Remove close.
12202         * modules/binary-io-tests (Depends-on): Likewise.
12203         * modules/closein-tests (Depends-on): Likewise.
12204         * modules/flock-tests (Depends-on): Likewise.
12205         * modules/fsync-tests (Depends-on): Likewise.
12206         * modules/lseek-tests (Depends-on): Likewise.
12207         * modules/pipe-tests (Depends-on): Likewise.
12208         * modules/posix_spawn-tests (Depends-on): Likewise.
12209         * modules/posix_spawnp-tests (Depends-on): Likewise.
12210         * modules/stat-time-tests (Depends-on): Likewise.
12211         * modules/yesno-tests (Depends-on): Likewise.
12212
12213 2009-08-10  Bruno Haible  <bruno@clisp.org>
12214
12215         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12216
12217 2009-08-10  Bruno Haible  <bruno@clisp.org>
12218
12219         Fix a gcc warning.
12220         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12221
12222 2009-08-10  Bruno Haible  <bruno@clisp.org>
12223
12224         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12225         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12226         not only the first time.
12227         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12228         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12229         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12230         is 1, not only the the first time.
12231
12232 2009-08-10  Bruno Haible  <bruno@clisp.org>
12233
12234         Make it possible to use module 'gethostname' without module 'close'.
12235         * lib/unistd.in.h (close): Evoke a link error only if
12236         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12238         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12239         * modules/unistd (Makefile.am): Substitute
12240         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12241         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12242         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12244         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12245         * modules/sys_ioctl (Makefile.am): Substitute
12246         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12247         * modules/socket (configure.ac): On native Windows, set
12248         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12249         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12250         Reported by Sam Steingold <sds@gnu.org>.
12251
12252 2009-08-10  Bruno Haible  <bruno@clisp.org>
12253
12254         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12255         * modules/ioctl (configure.ac): Likewise.
12256
12257 2009-08-10  Bruno Haible  <bruno@clisp.org>
12258
12259         Avoid collision between gnulib wrapper and libintl wrapper.
12260         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12261         already defined in intl/printf.c.
12262         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12263         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12264
12265 2009-08-09  Bruno Haible  <bruno@clisp.org>
12266
12267         Make <sys/select.h> really self-contained, also on Solaris 10.
12268         * lib/sys_select.in.h: Include <string.h>.
12269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12270         Solaris 10 problem.
12271         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12272         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12273         Reported by Jim Meyering.
12274
12275 2009-08-09  Bruno Haible  <bruno@clisp.org>
12276
12277         Avoid warnings from 'aclocal' that are due to a use of macro name
12278         AM_XGETTEXT_OPTION that is not defined in automake.
12279         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12280         automake.
12281         * modules/error (configure.ac): Likewise.
12282         * modules/propername (configure.ac): Likewise.
12283         * modules/vasprintf (configure.ac): Likewise.
12284         * modules/verror (configure.ac): Likewise.
12285         * modules/xprintf (configure.ac): Likewise.
12286         * modules/xvasprintf (configure.ac): Likewise.
12287
12288 2009-08-08  Bruno Haible  <bruno@clisp.org>
12289
12290         Avoid compilation error in C++ mode.
12291         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12292         Reported by Sam Steingold <sds@gnu.org>.
12293
12294 2009-08-08  Bruno Haible  <bruno@clisp.org>
12295
12296         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12297         for the various Unix platforms.
12298         * doc/posix-headers/limits.texi: Update platforms list regarding
12299         HOST_NAME_MAX.
12300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12301
12302 2009-08-07  Jim Meyering  <meyering@redhat.com>
12303
12304         selinux-at: fix typo in a comment
12305         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12306         Spotted by Paolo Bonzini.
12307
12308         selinux-at: remove redundant m4 code, add documentation
12309         * modules/selinux-at (configure.ac): Remove redundant code.
12310         LIB_SELINUX is already set via the dependent module, selinux-h.
12311         (Include): Add quotes around selinux-at.h.
12312         * lib/selinux-at.h: Add documentation.
12313         Reported by Bruno Haible in
12314         http://marc.info/?l=gnulib-bug&m=124958988300749
12315
12316 2009-08-07  Bruno Haible  <bruno@clisp.org>
12317
12318         Avoid link error on MacOS X 10.3 and 10.4.
12319         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12320         on non-ELF systems.
12321         * lib/argp-pv.c (argp_program_version): Likewise.
12322         Reported by Simon Josefsson.
12323
12324 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12325
12326         * tests/test-version-etc.sh: Use $EXEEXT.
12327
12328 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12329
12330         update-copyright: update documentation to point to maint.mk
12331         * build-aux/update-copyright: Here.
12332
12333 2009-08-06  Jim Meyering  <meyering@redhat.com>
12334
12335         maint.mk: support update-copyright-local
12336         * top/maint.mk (update-copyright-local): Define place-holder.
12337         (update-copyright): Depend on $(update-copyright-local).
12338
12339 2009-08-06  Jim Meyering  <meyering@redhat.com>
12340
12341         selinux-at: new module
12342         Initially written for coreutils, this module will soon be
12343         used by findutils, too.
12344         * MODULES.html.sh [Misc]: Add selinux-at.
12345         * lib/selinux-at.h: New file, from coreutils.
12346         * lib/selinux-at.c: Likewise.
12347         * modules/selinux-at: Likewise.
12348         (License): Change from LGPL to GPL, since it depends
12349         on the GPL'd openat module.
12350
12351         doc: update README
12352         * README: Remove references to cogito.
12353         Remove cvs-repo-updating instructions from 2007.
12354         Don't imply that CVS is better if you have limited disk space.
12355
12356 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12357
12358         update-copyright: support C-style comments
12359         * build-aux/update-copyright: Implement and document.
12360         * tests/test-update-copyright.sh: Test.
12361
12362 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12363
12364         update-copyright: support omitted "(C)"
12365         * build-aux/update-copyright: Implement and document.  Also,
12366         allow variable whitespace before "(C)".
12367         * tests/test-update-copyright.sh: Test.
12368
12369 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12370
12371         update-copyright: don't trip on non-FSF copyright statements
12372         * build-aux/update-copyright: Fix so that the first correctly
12373         formatted FSF copyright statement is recognized no matter what
12374         appears before it.  Update documentation.
12375         * tests/test-update-copyright.sh: Test that.
12376
12377 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12378
12379         update-copyright: clean up code a little
12380         * build-aux/update-copyright: Append "_re" to the name of any
12381         variable holding a regular expression.
12382         Replace "old" and "new" with "stmt" in variable names.
12383         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12384         handled correctly.
12385         Format code more consistently.
12386
12387 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12388
12389         update-copyright-tests: improve portability
12390         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12391         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12392
12393 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12394
12395         update-copyright: support @copyright{} and &copy;
12396         * build-aux/update-copyright: Implement and document.
12397         * tests/test-update-copyright.sh: Test.
12398
12399 2009-08-04  Jim Meyering  <meyering@redhat.com>
12400
12401         update-copyright-tests: correctly test EOL=\r\n handling
12402         * tests/test-update-copyright.sh: Put \r at the end of some lines
12403         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12404
12405         maint.mk: make update-copyright exclusion list more configurable
12406         * top/maint.mk (update-copyright): Default to excluding COPYING,
12407         but allow an override, in case someone does want to update that file.
12408
12409         maint.mk: don't update copyright date in COPYING
12410         * top/maint.mk (update-copyright): Exclude COPYING.
12411
12412         maint.mk: add a copyright-updating rule
12413         * top/maint.mk (update-copyright): New rule.
12414         Derived from coreutils/Makefile.am.
12415
12416         update-copyright: rename some variables
12417         * build-aux/update-copyright: Rename a few variables for clarity.
12418         Tweak syntax.  List Joel E. Denny as coauthor.
12419
12420 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12421
12422         update-copyright: fix bug for 2-digit last year and add tests
12423         * build-aux/update-copyright: Fix bug.
12424         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12425         specified.
12426         * modules/update-copyright-tests: New
12427         * tests/test-update-copyright.sh: New.
12428
12429 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12430
12431         update-copyright: handle leading tabs in line prefix
12432         * build-aux/update-copyright: Count leading tabs as 8 spaces
12433         when computing margin.  This helps with the formatting of
12434         ChangeLogs, for example.
12435         Fix documentation a little.
12436
12437 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12438
12439         update-copyright: support EOL=\r\n
12440         * build-aux/update-copyright: Implement that.
12441
12442 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12443
12444         update-copyright: automatically format copyright statements
12445         * build-aux/update-copyright: Implement that.
12446         Also, be a little more predictable and safer by always failing
12447         when the full copyright format is not perfectly recognized as an
12448         unbroken whole.  Discussed at
12449         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12450         Rewrite documentation.
12451
12452 2009-08-03  Bruno Haible  <bruno@clisp.org>
12453
12454         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12455
12456 2009-08-02  Bruno Haible  <bruno@clisp.org>
12457
12458         Tests for module 'uname'.
12459         * modules/uname-tests: New file.
12460         * tests/test-uname.c: New file.
12461
12462         New module 'uname'.
12463         * lib/uname.c: New file.
12464         * m4/uname.m4: New file.
12465         * modules/uname: New file.
12466         * doc/posix-functions/uname.texi: Mention the new module.
12467
12468 2009-08-02  Bruno Haible  <bruno@clisp.org>
12469
12470         Tests for module 'sys_utsname'.
12471         * modules/sys_utsname-tests: New file.
12472         * tests/test-sys_utsname.c: New file.
12473
12474         New module 'sys_utsname'.
12475         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12476         * m4/sys_utsname_h.m4: New file.
12477         * modules/sys_utsname: New file.
12478         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12479
12480 2009-08-02  Bruno Haible  <bruno@clisp.org>
12481
12482         Implicitly initialize the sockets library.
12483         * lib/gethostname.c: Include sockets.h.
12484         (rpl_gethostname): Invoke gl_sockets_startup.
12485         * lib/socket.c: Include sockets.h.
12486         (rpl_socket): Invoke gl_sockets_startup.
12487         * modules/gethostname (Depends-on): Add sockets.
12488         * modules/socket (Depends-on): Likewise.
12489         * tests/test-poll.c: Don't include sockets.h.
12490         (main): Don't invoke gl_sockets_startup.
12491         * tests/test-select.c: Don't include sockets.h.
12492         (main): Don't invoke gl_sockets_startup.
12493
12494 2009-08-02  Bruno Haible  <bruno@clisp.org>
12495
12496         Allow multiple calls to gl_sockets_startup.
12497         * lib/sockets.c (initialized_sockets_version): New variable.
12498         (gl_sockets_startup): Do nothing if already called for this or a higher
12499         version.
12500         (gl_sockets_cleanup): Reset initialized_sockets_version.
12501
12502 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12503
12504         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12505         different project/version.
12506
12507 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12508             Bruno Haible  <bruno@clisp.org>
12509
12510         Tests for module 'pipe-filter-gi'.
12511         * modules/pipe-filter-gi-tests: New file.
12512         * tests/test-pipe-filter-gi1.sh: New file.
12513         * tests/test-pipe-filter-gi1.c: New file.
12514         * tests/test-pipe-filter-gi2.sh: New file.
12515         * tests/test-pipe-filter-gi2-main.c: New file.
12516         * tests/test-pipe-filter-gi2-child.c: New file.
12517
12518         New module 'pipe-filter-gi'.
12519         * lib/pipe-filter-gi.c: New file.
12520         * modules/pipe-filter-gi: New file.
12521
12522 2009-08-02  Bruno Haible  <bruno@clisp.org>
12523             Paolo Bonzini  <bonzini@gnu.org>
12524
12525         Tests for module 'pipe-filter-ii'.
12526         * modules/pipe-filter-ii-tests: New file.
12527         * tests/test-pipe-filter-ii1.sh: New file.
12528         * tests/test-pipe-filter-ii1.c: New file.
12529         * tests/test-pipe-filter-ii2.sh: New file.
12530         * tests/test-pipe-filter-ii2-main.c: New file.
12531         * tests/test-pipe-filter-ii2-child.c: New file.
12532
12533         New module 'pipe-filter-ii'.
12534         * lib/pipe-filter.h: New file.
12535         * lib/pipe-filter-ii.c: New file.
12536         * lib/pipe-filter-aux.h: New file.
12537         * modules/pipe-filter-ii: New file.
12538
12539 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12540
12541         * lib/gc-libgcrypt.c: Change copyright to FSF.
12542         * lib/gc-gnulib.c: Likewise.
12543
12544 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12545
12546         * lib/gethostname.c: Include limits.h.
12547
12548 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12549             Bruno Haible  <bruno@clisp.org>
12550
12551         Ensure HOST_NAME_MAX as part of the gethostname module.
12552         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12553         define also HOST_NAME_MAX.
12554         * tests/test-gethostname.c: Include <limits.h>.
12555         (main): Check also HOST_NAME_MAX.
12556         * doc/posix-headers/limits.texi: Document the mingw problem.
12557
12558 2009-08-02  Bruno Haible  <bruno@clisp.org>
12559
12560         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12561         Add comments.
12562
12563 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12564
12565         * lib/gethostname.c: Add Windows wrapper.
12566         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12567         * modules/gethostname: Depend on sys_socket & errno, for also
12568         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12569         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12570
12571 2009-07-31  Jim Meyering  <meyering@redhat.com>
12572
12573         getloadavg: fix symbol name in comment
12574         * lib/getloadavg.c: Correct a typo I introduced when adding
12575         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12576         Matt Kraai spotted the problem.
12577
12578 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12579
12580         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12581         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12582         code also if ! defined N_NAME_POINTER.
12583         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12584         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12585         but the n_name member is a 12-byte array.
12586
12587 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12588
12589         update-copyright: generalize comment handling
12590         * build-aux/update-copyright: Handle copyright statements
12591         within more comment styles.
12592         Document usage.
12593         Report any file with an external copyright holder or parse failure.
12594
12595 2009-07-29  Jim Meyering  <meyering@redhat.com>
12596
12597         mktime: correct setting of REPLACE_MKTIME
12598         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12599
12600         update-copyright: new module
12601         * modules/update-copyright: New file.
12602         * build-aux/update-copyright: New file.
12603         * MODULES.html.sh (maint+release support): Add update-copyright.
12604
12605 2009-07-27  Bruno Haible  <bruno@clisp.org>
12606
12607         Fix compilation error when <ctime> is used and mktime is replaced.
12608         * lib/time.in.h (mktime): New declaration.
12609         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12610         REPLACE_MKTIME instead of defining mktime in config.h.
12611         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12612         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12613         Reported by Ross McFarland <rwmcfa1@neces.com>.
12614
12615 2009-07-27  Bruno Haible  <bruno@clisp.org>
12616
12617         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12618         Reported by Matt Kraai <mkraai@beckman.com>.
12619
12620 2009-07-25  Jim Meyering  <meyering@redhat.com>
12621
12622         maint.mk: avoid warnings about missing files
12623         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12624         diagnostic when .prev-version does not exist.
12625         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12626         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12627         nonexistent cfg.mk.
12628         Suggestions from Simon Josefsson.
12629
12630 2009-07-25  Bruno Haible  <bruno@clisp.org>
12631
12632         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12633         defined as macros. Needed on QNX 6.4.1.
12634         Reported by Matt Kraai <mkraai@beckman.com>.
12635
12636 2009-07-23  Jim Meyering  <meyering@redhat.com>
12637
12638         maint.mk: invoke "make dist" with a working value of XZ_OPT
12639         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12640
12641 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12642
12643         Make fseeko.c compile on QNX.
12644         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12645
12646 2009-07-22  Peter Simons  <simons@cryp.to>
12647
12648         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12649         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12650         * lib/md4.h: Likewise.
12651         * lib/md5.h: Likewise.
12652         * lib/sha1.h: Likewise.
12653         * lib/sha256.h: Likewise.
12654         * lib/sha512.h: Likewise.
12655
12656         tests-sha1: don't assign literal string to 'char *' variable
12657         * tests/test-sha1.c (main): Declare locals with "const" to match
12658         attributes of the right hand side.
12659
12660 2009-07-21  Eric Blake  <ebb9@byu.net>
12661
12662         dup2: fix more mingw problems
12663         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12664         fd to itself.
12665         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12666         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12667         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12668         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12669         care of mingw bugs.
12670
12671 2009-07-21  Jim Meyering  <meyering@redhat.com>
12672
12673         vc-list-files: avoid failure when /bin/sh is dash
12674         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12675         On some Debian based systems, /bin/sh is a symlink to dash, and running
12676         this command would omit the "/" following each 'tests' prefix:
12677           dash -x build-aux/vc-list-files -C . tests
12678         That is because bash and dash work differently:
12679           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12680           bash ok
12681           dash odd
12682
12683 2009-07-21  Eric Blake  <ebb9@byu.net>
12684
12685         dup2-tests: test previous patch
12686         * modules/dup2-tests: New file.
12687         * tests/test-dup2.c: Likewise.
12688         * tests/test-open.c (main): Avoid unspecified behavior.
12689         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12690         test.
12691
12692         dup2: work around mingw and cygwin 1.5 bug
12693         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12695         * modules/unistd (Makefile.am): Substitute it.
12696         * lib/unistd.in.h (dup2): Declare the replacement.
12697         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12698         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12699         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12700         * modules/execute (Depends-on): Add dup2.
12701         * modules/fseterr (Depends-on): Likewise.
12702         * modules/pipe (Depends-on): Likewise.
12703         * modules/posix_spawn-internal (Depends-on): Likewise.
12704
12705 2009-07-21  Bruno Haible  <bruno@clisp.org>
12706
12707         * modules/.gitattributes: New file.
12708
12709 2009-07-20  Bruno Haible  <bruno@clisp.org>
12710
12711         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12712         (main): Use it.
12713
12714 2009-07-20  Eric Blake  <ebb9@byu.net>
12715
12716         test-pipe: make a bit more robust.
12717         * tests/test-pipe.c (myerr): Allow error messages regardless of
12718         what we do to stderr.
12719         (test_pipe): Rearrange to avoid deadlock.
12720         (child_main): Try a larger read, to ensure we avoided deadlock.
12721         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12722         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12723         if misused.
12724
12725 2009-07-19  Jim Meyering  <meyering@redhat.com>
12726
12727         fts: avoid false-positive cycle-detection
12728         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12729         for each new command line argument.
12730
12731 2009-07-19  Bruno Haible  <bruno@clisp.org>
12732
12733         Fix build error on mingw with the modules sys_select and unistd.
12734         * modules/acl-tests (Depends-on): Add close.
12735         * modules/binary-io-tests (Depends-on): Likewise.
12736         * modules/closein-tests (Depends-on): Likewise.
12737         * modules/flock-tests (Depends-on): Likewise.
12738         * modules/fsync-tests (Depends-on): Likewise.
12739         * modules/lseek-tests (Depends-on): Likewise.
12740         * modules/pipe-tests (Depends-on): Likewise.
12741         * modules/posix_spawn-tests (Depends-on): Likewise.
12742         * modules/posix_spawnp-tests (Depends-on): Likewise.
12743         * modules/stat-time-tests (Depends-on): Likewise.
12744         * modules/yesno-tests (Depends-on): Likewise.
12745
12746 2009-07-19  Bruno Haible  <bruno@clisp.org>
12747
12748         Unify conditionals.
12749         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12750         macros, not at the compiler macros.
12751         * lib/pipe.c: Likewise.
12752         * lib/execute.c: Likewise.
12753         * lib/spawni.c: Likewise.
12754
12755 2009-07-19  Bruno Haible  <bruno@clisp.org>
12756
12757         Fix handling of closed stdin/stdout/stderr on mingw.
12758         * lib/w32spawn.h: Include unistd.h.
12759         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12760         file descriptor with O_NOINHERIT flag.
12761         (fd_safer_noinherit): New function, based on fd-safer.c.
12762         (dup_safer_noinherit): New function, based on dup-safer.c.
12763         (undup_safer_noinherit): New function.
12764         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12765         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12766         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12767         instead of fd_safer.
12768         * tests/test-pipe.c: Include <windows.h>.
12769         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12770
12771         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12772         from main.
12773         (test_pipe): Pass an extra argument for disambiguation.
12774         (main): Invoke parent_main or child_main.
12775
12776         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12777         consistently.
12778
12779 2009-07-18  Eric Blake  <ebb9@byu.net>
12780
12781         test-pipe: fix mingw build
12782         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12783
12784 2009-07-18  Bruno Haible  <bruno@clisp.org>
12785
12786         * modules/pipe-tests (Makefile.am): Fix typo.
12787
12788 2009-07-18  Eric Blake  <ebb9@byu.net>
12789
12790         error: fix mingw build
12791         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12792         Reported by Bruno Haible.
12793
12794         error: avoid undefined use of stdout
12795         * lib/error.c (error, error_at_line): Check that fd 1 is open
12796         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12797         is handling faults and the close_stdout module wants to report the
12798         detection of closed stdout as an error.
12799
12800 2009-07-17  Eric Blake  <ebb9@byu.net>
12801
12802         pipe: be robust in face of closed fds
12803         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12804         should cause child to misbehave.
12805         * modules/pipe-tests: New module.
12806         * tests/test-pipe.c: New file.
12807         * tests/test-pipe.sh: New file.
12808         Reported by Akim Demaille.
12809
12810 2009-07-14  Bruno Haible  <bruno@clisp.org>
12811
12812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12813         Reported by anonymous kc.
12814
12815 2009-07-07  Jim Meyering  <meyering@redhat.com>
12816
12817         maint.mk: don't look for translatable strings in *.m4 or *.mk
12818         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12819         when searching for translatable strings.
12820
12821 2009-07-05  Jim Meyering  <meyering@redhat.com>
12822
12823         remove superfluous parentheses in STREQ definition
12824         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12825         * lib/getugroups.c (STREQ): Likewise.
12826         * lib/fnmatch.c (STREQ): Likewise.
12827         Spotted by Bruno Haible.
12828
12829 2009-07-04  Jim Meyering  <meyering@redhat.com>
12830
12831         argv-iter: new module
12832         * MODULES.html.sh: Add argv-iter.
12833         * lib/argv-iter.c, lib/argv-iter.h: New files.
12834         * modules/argv-iter: New file.
12835         * modules/argv-iter-tests: New file.
12836         * tests/test-argv-iter.c: Test it.
12837
12838 2009-07-04  Bruno Haible  <bruno@clisp.org>
12839
12840         Fix assertion.
12841         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12842         contains more exact copies of a given entry than file2, leave the extra
12843         copies unpaired rather than aborting.
12844         Reported by Eric Blake.
12845
12846 2009-07-02  Bruno Haible  <bruno@clisp.org>
12847
12848         Speedup git-merge-changelog for git cherry-pick.
12849         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12850         (entries_mapping_get): New function, extracted from compute_mapping.
12851         (entries_mapping_reverse_get): New function.
12852         (compute_mapping): Add a 'full' argument. Return the result in a
12853         'struct entries_mapping'.
12854         (main): Update. Access the mappings through entries_mapping_get.
12855         Reported by Eric Blake.
12856
12857 2009-07-02  Bruno Haible  <bruno@clisp.org>
12858
12859         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12860         best_i.
12861
12862 2009-07-02  Bruno Haible  <bruno@clisp.org>
12863
12864         Speed up approximate search for matching ChangeLog entries.
12865         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12866         argument. Call fstrcmp_bounded instead of fstrcmp.
12867         (compute_mapping, try_split_merged_entry, main): Update callers.
12868
12869 2009-07-02  Bruno Haible  <bruno@clisp.org>
12870
12871         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12872
12873 2009-06-30  Bruno Haible  <bruno@clisp.org>
12874
12875         Reduce the number of uc_is_cased calls.
12876         * lib/unicase.h (casing_suffix_context_t): Add
12877         'first_char_except_ignorable' field.
12878         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12879         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12880         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12881         Update initializer.
12882         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12883         case-ignorable characters.
12884         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12885         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12886         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12887         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12888         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12889
12890 2009-06-30  Bruno Haible  <bruno@clisp.org>
12891
12892         Tests for module 'unicase/ignorable'.
12893         * modules/unicase/ignorable-tests: New file.
12894         * tests/unicase/test-ignorable.c: New file, generated by
12895         gen-uni-tables.
12896
12897         Tests for module 'unicase/cased'.
12898         * modules/unicase/cased-tests: New file.
12899         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12900         * tests/unicase/test-predicate-part1.h: New file, derived from
12901         tests/unictype/test-predicate-part1.h.
12902         * tests/unicase/test-predicate-part2.h: New file, same as
12903         tests/unictype/test-predicate-part2.h.
12904
12905         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12906         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12907         (output_casing_properties): New function.
12908         (main): Call it.
12909         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12910         * lib/unicase/cased.c: Include unictype/bitmap.h.
12911         (uc_is_cased): Define through a bitmap lookup.
12912         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12913         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12914         (uc_is_case_ignorable): Define through a bitmap lookup.
12915         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12916         lib/unictype/bitmap.h.
12917         (Depends-on): Add inline. Clean up.
12918         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12919         lib/unictype/bitmap.h.
12920         (Depends-on): Add inline. Clean up.
12921         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12922         recognition.
12923         * tests/unicase/test-u16-tolower.c (main): Likewise.
12924         * tests/unicase/test-u32-tolower.c (main): Likewise.
12925
12926 2009-06-30  Bruno Haible  <bruno@clisp.org>
12927
12928         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12929         * lib/unicase/u16-casemap.c: Likewise.
12930         * lib/unicase/u32-casemap.c: Likewise.
12931
12932 2009-06-29  Bruno Haible  <bruno@clisp.org>
12933
12934         Define u32_casefold as a wrapper around u32_ct_casefold.
12935         * lib/unicase/u32-casefold.c: Update.
12936         * modules/unicase/u32-casefold (Depends-on): Add
12937         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12938         unicase/empty-suffix-context. Clean up.
12939
12940         Define u16_casefold as a wrapper around u16_ct_casefold.
12941         * lib/unicase/u16-casefold.c: Update.
12942         * modules/unicase/u16-casefold (Depends-on): Add
12943         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12944         unicase/empty-suffix-context. Clean up.
12945
12946         Define u8_casefold as a wrapper around u8_ct_casefold.
12947         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12948         * lib/unicase/u8-casefold.c: Update.
12949         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12950         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12951
12952         Define u32_totitle as a wrapper around u32_ct_totitle.
12953         * lib/unicase/u32-totitle.c: Update.
12954         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12955         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12956
12957         Define u16_totitle as a wrapper around u16_ct_totitle.
12958         * lib/unicase/u16-totitle.c: Update.
12959         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12961
12962         Define u8_totitle as a wrapper around u8_ct_totitle.
12963         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12964         functions.
12965         (FUNC): Delegate to U_CT_TOTITLE.
12966         * lib/unicase/u8-totitle.c: Update.
12967         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12968         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12969
12970         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12971         invocation.
12972         * modules/unicase/u32-tolower (Depends-on): Add
12973         unicase/empty-prefix-context, unicase/empty-suffix-context.
12974
12975         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12976         invocation.
12977         * modules/unicase/u16-tolower (Depends-on): Add
12978         unicase/empty-prefix-context, unicase/empty-suffix-context.
12979
12980         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12981         * modules/unicase/u8-tolower (Depends-on): Add
12982         unicase/empty-prefix-context, unicase/empty-suffix-context.
12983
12984         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12985         invocation.
12986         * modules/unicase/u32-toupper (Depends-on): Add
12987         unicase/empty-prefix-context, unicase/empty-suffix-context.
12988
12989         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12990         invocation.
12991         * modules/unicase/u16-toupper (Depends-on): Add
12992         unicase/empty-prefix-context, unicase/empty-suffix-context.
12993
12994         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12995         * modules/unicase/u8-toupper (Depends-on): Add
12996         unicase/empty-prefix-context, unicase/empty-suffix-context.
12997
12998         New module 'unicase/u32-ct-casefold'.
12999         * lib/unicase/u32-ct-casefold.c: New file.
13000         * modules/unicase/u32-ct-casefold: New file.
13001
13002         New module 'unicase/u16-ct-casefold'.
13003         * lib/unicase/u16-ct-casefold.c: New file.
13004         * modules/unicase/u16-ct-casefold: New file.
13005
13006         New module 'unicase/u8-ct-casefold'.
13007         * lib/unicase/u8-ct-casefold.c: New file.
13008         * lib/unicase/u-ct-casefold.h: New file, derived from
13009         lib/unicase/u-casefold.h.
13010         * modules/unicase/u8-ct-casefold: New file.
13011
13012         New module 'unicase/u32-ct-totitle'.
13013         * lib/unicase/u32-ct-totitle.c: New file.
13014         * modules/unicase/u32-ct-totitle: New file.
13015
13016         New module 'unicase/u16-ct-totitle'.
13017         * lib/unicase/u16-ct-totitle.c: New file.
13018         * modules/unicase/u16-ct-totitle: New file.
13019
13020         New module 'unicase/u8-ct-totitle'.
13021         * lib/unicase/u8-ct-totitle.c: New file.
13022         * lib/unicase/u-ct-totitle.h: New file, derived from
13023         lib/unicase/u-totitle.h.
13024         * modules/unicase/u8-ct-totitle: New file.
13025
13026         New module 'unicase/u32-ct-tolower'.
13027         * lib/unicase/u32-ct-tolower.c: New file.
13028         * modules/unicase/u32-ct-tolower: New file.
13029
13030         New module 'unicase/u16-ct-tolower'.
13031         * lib/unicase/u16-ct-tolower.c: New file.
13032         * modules/unicase/u16-ct-tolower: New file.
13033
13034         New module 'unicase/u8-ct-tolower'.
13035         * lib/unicase/u8-ct-tolower.c: New file.
13036         * modules/unicase/u8-ct-tolower: New file.
13037
13038         New module 'unicase/u32-ct-toupper'.
13039         * lib/unicase/u32-ct-toupper.c: New file.
13040         * modules/unicase/u32-ct-toupper: New file.
13041
13042         New module 'unicase/u16-ct-toupper'.
13043         * lib/unicase/u16-ct-toupper.c: New file.
13044         * modules/unicase/u16-ct-toupper: New file.
13045
13046         New module 'unicase/u8-ct-toupper'.
13047         * lib/unicase/u8-ct-toupper.c: New file.
13048         * modules/unicase/u8-ct-toupper: New file.
13049
13050         Add context arguments to u*_casemap functions.
13051         * lib/unicase/unicasemap.h: Include unicase.h.
13052         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13053         suffix_context arguments.
13054         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13055         functions.
13056         (FUNC): Add prefix_context and suffix_context arguments. Use
13057         uc_is_cased and uc_is_case_ignorable.
13058         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13059         * lib/unicase/u16-casemap.c: Likewise.
13060         * lib/unicase/u32-casemap.c: Likewise.
13061         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13062         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13063         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13064         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13065         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13066         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13067
13068         New module 'unicase/u32-suffix-context'.
13069         * lib/unicase/u32-suffix-context.c: New file.
13070         * modules/unicase/u32-suffix-context: New file.
13071
13072         New module 'unicase/u16-suffix-context'.
13073         * lib/unicase/u16-suffix-context.c: New file.
13074         * modules/unicase/u16-suffix-context: New file.
13075
13076         New module 'unicase/u8-suffix-context'.
13077         * lib/unicase/u8-suffix-context.c: New file.
13078         * lib/unicase/u-suffix-context.h: New file.
13079         * modules/unicase/u8-suffix-context: New file.
13080
13081         New module 'unicase/empty-suffix-context'.
13082         * lib/unicase/empty-suffix-context.c: New file.
13083         * modules/unicase/empty-suffix-context: New file.
13084
13085         New module 'unicase/u32-prefix-context'.
13086         * lib/unicase/u32-prefix-context.c: New file.
13087         * modules/unicase/u32-prefix-context: New file.
13088
13089         New module 'unicase/u16-prefix-context'.
13090         * lib/unicase/u16-prefix-context.c: New file.
13091         * modules/unicase/u16-prefix-context: New file.
13092
13093         New module 'unicase/u8-prefix-context'.
13094         * lib/unicase/u8-prefix-context.c: New file.
13095         * lib/unicase/u-prefix-context.h: New file.
13096         * lib/unicase/context.h: New file.
13097         * modules/unicase/u8-prefix-context: New file.
13098
13099         New module 'unicase/empty-prefix-context'.
13100         * lib/unicase/empty-prefix-context.c: New file.
13101         * modules/unicase/empty-prefix-context: New file.
13102
13103         New module 'unicase/ignorable'.
13104         * lib/unicase/ignorable.c: New file.
13105         * modules/unicase/ignorable: New file.
13106
13107         New module 'unicase/cased'.
13108         * lib/unicase/caseprop.h: New file.
13109         * lib/unicase/cased.c: New file.
13110         * modules/unicase/cased: New file.
13111
13112         New functions for case mapping of substrings.
13113         * lib/unicase.h (casing_prefix_context_t): New type.
13114         (unicase_empty_prefix_context): New variable.
13115         (u8_casing_prefix_context, u16_casing_prefix_context,
13116         u32_casing_prefix_context, u8_casing_prefixes_context,
13117         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13118         declarations.
13119         (casing_suffix_context_t): New type.
13120         (unicase_empty_suffix_context): New variable.
13121         (u8_casing_suffix_context, u16_casing_suffix_context,
13122         u32_casing_suffix_context, u8_casing_suffixes_context,
13123         u16_casing_suffixes_context, u32_casing_suffixes_context,
13124         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13125         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13126         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13127         declarations.
13128
13129 2009-06-28  Jim Meyering  <meyering@redhat.com>
13130
13131         boostrap: indent only with spaces
13132         * build-aux/bootstrap: Indent only with spaces, never TABs.
13133
13134         bootstrap: split long lines
13135         * build-aux/bootstrap: Keep line length < 80.
13136
13137         bootstrap: sync from coreutils
13138         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13139         just as autoreconf does.  Verify a list of prerequisite
13140         package-name,version-number pairs if defined in bootstrap.conf.
13141         Refer to README-prereq, if prerequisites are not satisfied.
13142
13143 2009-06-27  Eric Blake  <ebb9@byu.net>
13144
13145         tests: add test for bogus NULL definition
13146         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13147         * tests/test-stdlib.c: Likewise.
13148         * tests/test-string.c: Likewise.
13149         * tests/test-locale.c: Likewise.
13150         * tests/test-unistd.c: Likewise.
13151         * modules/stdio-tests (Depends-on): Add verify.
13152         * modules/stdlib-tests (Depends-on): Likewise.
13153         * modules/string-tests (Depends-on): Likewise.
13154         * modules/locale-tests (Depends-on): Likewise.
13155         * modules/unistd-tests (Depends-on): Likewise.
13156
13157 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13158
13159         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13160         self-explaining comment.
13161         * m4/selinux-selinux-h: Update serial.
13162         (gl_LIBSELINUX): New macro, adding a warning for missing development
13163         packages to code extracted from...
13164         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13165         Add warning for missing development packages here, too.
13166
13167 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13168
13169         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13170
13171 2009-06-25  Eric Blake  <ebb9@byu.net>
13172
13173         version-etc: fix regression
13174         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13175         gcc.
13176         (version_etc): Use it, to catch bugs with trailing NULL.
13177         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13178         (version_etc_va): Fix logic bug.
13179         * modules/version-etc-tests: Add test.
13180         * tests/test-version-etc.c: New file.
13181         * tests/test-version-etc.sh: Likewise.
13182
13183 2009-06-25  Sam Steingold  <sds@gnu.org>
13184
13185         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13186         mbtowc declaration.
13187
13188 2009-06-25  Eric Blake  <ebb9@byu.net>
13189
13190         fpurge: migrate into <stdio.h>
13191         * lib/fpurge.h: Delete...
13192         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13193         * lib/fpurge.c (fpurge): Change declaring header.
13194         * modules/fpurge (Files): Drop deleted file.
13195         (Depends-on): Add stdio.
13196         (configure.ac): Set witness.
13197         * modules/stdio (Makefile.am): Support fpurge macros.
13198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13199         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13200         * lib/fflush.c: Update client.
13201         * tests/test-fpurge.c: Likewise.
13202         * NEWS: Mention the change.
13203
13204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13205
13206         * lib/argp-version-etc.c (program_authors): Add const
13207         qualifier.
13208         * lib/version-etc.c: Fix typos in the comments.
13209         * modules/argp-version-etc: Depends on version-etc.
13210
13211 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13212
13213         argp-version-etc: new module.
13214
13215         * lib/argp-version-etc.c: New file.
13216         * lib/argp-version-etc.h: New file.
13217         * modules/argp-version-etc: New file.
13218         * modules/argp-version-etc-tests: New file.
13219         * tests/test-argp-version-etc.c: New test.
13220         * tests/test-argp-version-etc-1.sh: New test.
13221
13222 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13223
13224         Provide additional interfaces and documentation for version-etc
13225         module.
13226
13227         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13228         interfaces.
13229         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13230         prototypes.
13231
13232 2009-06-24  Bruno Haible  <bruno@clisp.org>
13233
13234         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13235         HAVE_LIB${NAME} macro.
13236         Reported by Sam Steingold <sds@gnu.org>.
13237
13238 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13239
13240         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13241         needed.
13242
13243 2009-06-21  Bruno Haible  <bruno@clisp.org>
13244
13245         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13246         work.
13247         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13248         together with LIB${NAME}, LTLIB${NAME}.
13249         Reported by Sam Steingold <sds@gnu.org>.
13250
13251 2009-06-20  Jim Meyering  <meyering@redhat.com>
13252
13253         tests: make sc_require_test_exit_idiom more generic
13254         * top/maint.mk (Exit_witness_file): New overridable variable.
13255         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13256         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13257
13258 2009-06-19  Jim Meyering  <meyering@redhat.com>
13259
13260         hash: reverse order of src/dst parameters in an internal interface
13261         * lib/hash.c (transfer_entries): Reverse order of parameters to
13262         put DST before SRC.  Adjust callers.
13263
13264         tests: test-hash: avoid wholesale duplication
13265         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13266         Instead, use a loop and add a single conditional.
13267
13268         tests: test-hash: allow seed selection via a command line argument
13269         * tests/test-hash.c (get_seed): New function.
13270         (main): Use it.
13271
13272 2009-06-19  Eric Blake  <ebb9@byu.net>
13273
13274         hash: avoid memory leak on allocation failure
13275         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13276         failure.  Factor repeated algorithm...
13277         (transfer_entries): ...into new helper routine.
13278         (hash_delete): React to hash_rehash return value.
13279
13280         hash: reduce memory pressure in hash_rehash no-op case
13281         * lib/hash.c (next_prime): Avoid overflow.
13282         (hash_initialize): Factor bucket size computation...
13283         (compute_bucket_size): ...into new helper function.
13284         (hash_rehash): Use new function and open coding to reduce memory
13285         pressure, and avoid a memory leak in USE_OBSTACK code.
13286         Reported by Jim Meyering.
13287
13288 2009-06-18  Eric Blake  <ebb9@byu.net>
13289
13290         hash: make rotation more obvious
13291         * modules/hash (Depends-on): Add bitrotate and stdint.
13292         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13293         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13294         (SIZE_MAX): Rely on headers for definition.
13295         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13296         (raw_hasher): Use rotr_sz.
13297         Suggested by Jim Meyering.
13298
13299         hash: fix memory leak in last patch
13300         * lib/hash.c (hash_rehash): Avoid memory leak.
13301
13302         hash: avoid no-op rehashing
13303         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13304
13305         hash: provide default callback functions
13306         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13307         (hash_initialize): Use them as defaults.
13308         * tests/test-hash.c (main): Test this.
13309
13310         hash: minor optimization
13311         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13312         when possible.
13313         (hash_initialize): Document this promise.
13314         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13315         * tests/test-hash.c (hash_compare_strings): Test this.
13316
13317 2009-06-18  Bruno Haible  <bruno@clisp.org>
13318
13319         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13320         going to be replaced anyway.
13321
13322 2009-06-18  Bruno Haible  <bruno@clisp.org>
13323
13324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13325         in one place.
13326         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13327         be replaced anyway.
13328
13329 2009-06-18  Eric Blake  <ebb9@byu.net>
13330
13331         hash: check for resize before insertion
13332         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13333         threshold before insertion, so that a pathological hash_rehash
13334         that fills every bucket can still trigger another rehash.
13335
13336 2009-06-18  Jim Meyering  <meyering@redhat.com>
13337
13338         hash-tests: add a loop around the small tests
13339         * tests/test-hash.c (main): Repeat small tests with selected
13340         small initial table sizes.
13341
13342 2009-06-17  Eric Blake  <ebb9@byu.net>
13343
13344         hash: minor cleanups
13345         * lib/hash.h (hash_entry): Make opaque, by moving...
13346         * lib/hash.c (hash_entry): ...here.
13347         (hash_insert): Clarify restrictions on what can be inserted.
13348         (hash_get_next): Clarify when it is safe to remove an element
13349         during traversal.
13350         (check_tuning): Skip verification when tuning is known safe.
13351         (hash_initialize): Clarify restrictions on tuning.
13352
13353 2009-06-17  Jim Meyering  <jim@meyering.net>
13354         and Eric Blake  <ebb9@byu.net>
13355
13356         hash-tests: new module
13357         * modules/hash-tests: New file.
13358         * tests/test-hash.c: New file.
13359
13360 2009-06-17  Eric Blake  <ebb9@byu.net>
13361
13362         strstr-simple: document new module
13363         * MODULES.html.sh: Document new module.
13364
13365         strstr, strcasestr: replace on platforms with broken memchr
13366         * modules/strstr: Split into...
13367         * modules/strstr-simple: ...new module that does not care about
13368         performance, but does care about glibc bug.
13369         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13370         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13371         if platform memchr is broken, per Debian bug 521737.
13372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13373         memchr.
13374         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13375         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13377         * modules/mountlist (Depends-on): Add strstr-simple.
13378         * modules/gen-uni-tables (Depends-on): Likewise.
13379         * modules/argz (Depends-on): Add strstr.
13380
13381 2009-06-17  Bruno Haible  <bruno@clisp.org>
13382
13383         * modules/posix_spawn-internal (Depends-on): Add errno.
13384
13385 2009-06-17  Bruno Haible  <bruno@clisp.org>
13386
13387         Define missing ESTALE on Interix 3.5.
13388         * lib/errno.in.h (ESTALE): Assign a value if missing.
13389         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13390         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13391         missing.
13392         * doc/posix-headers/errno.texi: Mention the Interix bug.
13393         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13394
13395 2009-06-15  Eric Blake  <ebb9@byu.net>
13396
13397         memchr, memchr2: add valgrind exception
13398         * lib/memchr.valgrind: New file.
13399         * lib/memchr2.valgrind: New file.
13400         * modules/memchr (Files): Distribute valgrind file.
13401         * modules/memchr2 (Files): Likewise.
13402
13403         docs: memchr is no longer obsolete
13404         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13405         * lib/string.in.h (memchr): Simplify logic.
13406
13407 2009-06-14  Jim Meyering  <meyering@redhat.com>
13408
13409         link-follow: fix the "checking..." message to not mention trailing slash
13410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13411         never considered trailing slashes.
13412
13413 2009-06-14  Bruno Haible  <bruno@clisp.org>
13414
13415         * m4/memchr.m4: Mention also the bug on IA-64.
13416         * doc/posix-functions/memchr.texi: Likewise.
13417
13418 2009-06-12  Eric Blake  <ebb9@byu.net>
13419
13420         memchr: detect broken x86_64 and alpha implementations
13421         * modules/memchr-tests (Depends-on): Move mmap detection...
13422         * modules/memchr (Depends-on): ...here.
13423         (configure.ac): Set indicator.
13424         * lib/string.in.h (memchr): Declare replacement.
13425         * modules/string (Makefile.am): Trigger replacement.
13426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13427         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13428         bugs.
13429         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13430         * modules/getpagesize (License): Relax license.
13431
13432 2009-06-11  Bruno Haible  <bruno@clisp.org>
13433
13434         * lib/idpriv.h: Add more references.
13435
13436 2009-06-08  Bruno Haible  <bruno@clisp.org>
13437
13438         Tests for module 'idpriv-droptemp'.
13439         * modules/idpriv-droptemp-tests: New file.
13440         * tests/test-idpriv-droptemp.sh: New file.
13441         * tests/test-idpriv-droptemp.su.sh: New file.
13442         * tests/test-idpriv-droptemp.c: New file.
13443
13444         New module 'idpriv-droptemp'.
13445         * lib/idpriv-droptemp.c: New file.
13446         * modules/idpriv-droptemp: New file.
13447
13448 2009-06-08  Bruno Haible  <bruno@clisp.org>
13449
13450         Tests for module 'idpriv-drop'.
13451         * modules/idpriv-drop-tests: New file.
13452         * tests/test-idpriv-drop.sh: New file.
13453         * tests/test-idpriv-drop.su.sh: New file.
13454         * tests/test-idpriv-drop.c: New file.
13455
13456         New module 'idpriv-drop'.
13457         * lib/idpriv.h: New file.
13458         * lib-idpriv-drop.c: New file.
13459         * m4/idpriv.m4: New file.
13460         * modules/idpriv-drop: New file.
13461
13462 2009-06-08  Bruno Haible  <bruno@clisp.org>
13463
13464         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13465         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13466         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13467         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13468         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13469         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13470         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13471
13472 2009-06-08  Eric Blake  <ebb9@byu.net>
13473
13474         test-strstr: use memory fence, when possible
13475         * tests/test-strstr.c (main): Use memory fence, in order to be
13476         more likely to trigger Debian bug 521737.
13477         * modules/strstr-tests (Files): Pull in additional files.
13478
13479         memchr: no longer obsolete, for wider field testing
13480         * modules/memchr (Status, Notice): Delete, this module is no
13481         longer obsolete.
13482         * modules/vasnprintf (Depends-on): Add memchr.
13483
13484 2009-06-07  Jim Meyering  <meyering@redhat.com>
13485
13486         hash: declare some functions with the warn_unused_result attribute
13487         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13488
13489 2009-06-07  Bruno Haible  <bruno@clisp.org>
13490
13491         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13492         Reported by Eric Blake.
13493
13494 2009-06-06  Eric Blake  <ebb9@byu.net>
13495
13496         test-alignof: fix typo with long double
13497         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13498         compiler error.
13499
13500 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13501
13502         Escape non-texinfo { and }s.
13503         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13504         markup error.
13505
13506 2009-06-04  Jim Meyering  <meyering@redhat.com>
13507
13508         gitlog-to-changelog: don't infloop on an empty commit log
13509         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13510         Reported by Boris Petersen <transacid@centerim.org>.
13511
13512 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13513
13514         version-etc: extend for packagers
13515         Add three new configure options, intended for packagers:
13516           --with-packager="packager name"
13517           --with-packager-version="packager-specific version"
13518           --with-packager-bug-reports="packager bug reporting"
13519         An example with coreutils:
13520           $ ./configure \
13521             --with-packager=Gentoo \
13522             --with-packager-bug-report=http://bugs.gentoo.org/ \
13523             --with-packager-version="patchset 1.6"
13524           $ ./src/ls --version | head -n2
13525           ls (GNU coreutils) 7.1-dirty
13526           Packaged by Gentoo (patchset 1.6)
13527         Note that the bug reporting info via --help doesn't show up because
13528         coreutils uses its own custom emit_bug_reporting_address() implementation
13529         in src/system.h.  If it didn't, it'd look like:
13530           $ ./src/ls --help | tail -n4
13531           Report bugs to <bug-coreutils@gnu.org>.
13532           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13533           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13534           General help using GNU software: <http://www.gnu.org/gethelp/>.
13535         * lib/version-etc.c: Print new information, if provided.
13536         * m4/version-etc.m4: New file.
13537         * modules/version-etc (Files): Add m4/version-etc.m4.
13538         (configure.ac): Add gl_VERSION_ETC.
13539
13540 2009-05-31  Bruno Haible  <bruno@clisp.org>
13541
13542         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13543         and 'int64_t'.
13544         * modules/alignof-tests (Dependencies): Add stdint.
13545         Reported by Eric Blake.
13546
13547 2009-05-31  Bruno Haible  <bruno@clisp.org>
13548
13549         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13550         restriction due to compiler bugs.
13551         Reported by Eric Blake.
13552
13553 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13554             Bruno Haible  <bruno@clisp.org>
13555
13556         Fix test-alignof failure.
13557         * lib/alignof.h (alignof_slot): New macro.
13558         (alignof_type): New macro, with the same semantics as the previous
13559         'alignof'.
13560         (alignof): Alias to alignof_slot.
13561         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13562         check that the results are usable as constant expressions.
13563
13564 2009-05-31  Bruno Haible  <bruno@clisp.org>
13565
13566         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13567         * tests/test-memchr.c (main): Check that memchr does not read past the
13568         first occurrence of the byte.
13569         * tests/test-strstr.c (main): Update comment.
13570         Suggested by Eric Blake.
13571
13572 2009-05-30  Bruno Haible  <bruno@clisp.org>
13573
13574         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13575         detail how to use dumpbin.
13576         Reported by David Byron <dbyron@dbyron.com>.
13577
13578 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13579
13580         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13581
13582 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13583
13584         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13585
13586 2009-05-28  Bruno Haible  <bruno@clisp.org>
13587
13588         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13589         build-aux/ files.
13590
13591 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13592
13593         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13594
13595 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13596
13597         * gnulib-tool (sed_transform_main_lib_file)
13598         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13599         regexps.
13600
13601 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13602
13603         * tests/test-strstr.c: Add another self-test.
13604         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13605         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13606
13607 2009-05-23  Bruno Haible  <bruno@clisp.org>
13608
13609         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13610         change.
13611
13612 2009-05-21  Bruno Haible  <bruno@clisp.org>
13613
13614         Simplify use of mode_t varargs.
13615         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13616         uses 'mode_t' or 'int'.
13617         * lib/openat.c (openat): Likewise.
13618         * lib/open-safer.c (open_safer): Likewise.
13619         * m4/mode_t.m4: New file.
13620         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13621         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13623         * modules/open (Files): Add m4/mode_t.m4.
13624         * modules/openat (Files): Likewise.
13625         * modules/fcntl-safer (Files): Likewise.
13626         Suggested by Eric Blake.
13627
13628 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13629
13630         * doc/glibc-functions/fallocate.texi: New file.
13631         * doc/gnulib.texi: Include it.
13632
13633 2009-05-21  Eric Blake  <ebb9@byu.net>
13634             Bruno Haible  <bruno@clisp.org>
13635
13636         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13637         invocations.
13638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13639
13640 2009-05-21  Eric Blake  <ebb9@byu.net>
13641             Bruno Haible  <bruno@clisp.org>
13642
13643         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13644         include_next. Fix of 2008-11-20 commit.
13645         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13646         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13647         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13648         NEXT_MATH_H.
13649         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13650         instead of NEXT_MATH_H.
13651
13652 2009-05-21  Bruno Haible  <bruno@clisp.org>
13653
13654         Avoid redefinition warnings for SIZE_MAX.
13655         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13656         Reported by Simon Josefsson.
13657
13658 2009-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13661         AC_CACHE_VAL.
13662
13663 2009-05-20  Bruno Haible  <bruno@clisp.org>
13664
13665         Make zeroptr.h work on mingw.
13666         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13667         mprotect.
13668         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13669         * modules/memchr2-tests (configure.ac): Likewise.
13670         * modules/memcmp-tests (configure.ac): Likewise.
13671         * modules/memmem-tests (configure.ac): Likewise.
13672         * modules/memrchr-tests (configure.ac): Likewise.
13673         Reported by Simon Josefsson.
13674
13675 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13676
13677         * tests/test-glob.c: Include string.h for strcmp prototype.
13678
13679 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13680
13681         * modules/getdelim (Depends-on): Add explicit stdint, although it
13682         was implicitly already pulled in via realloc-posix.
13683         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13684
13685 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13686
13687         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13688         G. Christensen" <tgc@jupiterrise.com>.
13689         * m4/sys_socket_h.m4: Check for sa_family_t.
13690         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13691         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13692         * tests/test-sys_socket.c: Check that sa_family_t works.
13693
13694 2009-05-18  Eric Blake  <ebb9@byu.net>
13695
13696         maint.mk: allow gnulib_dir in VPATH build
13697         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13698
13699 2009-05-15  Jim Meyering  <meyering@redhat.com>
13700
13701         maint.mk: Give gnulib_dir a default definition.
13702         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13703         Thus, most packages no longer need to specify this variable in cfg.mk
13704
13705 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13706
13707         rename.m4: fix typos that would make non-mingw cross-configure fail
13708         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13709
13710 2009-05-13  Eric Blake  <ebb9@byu.net>
13711
13712         mmap-anon: avoid out-of-order autoconf expansion
13713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13714         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13715         * modules/memchr-tests (Depends-on): Add extensions.
13716         * modules/memchr2-tests (Depends-on): Add extensions.
13717         * modules/memcmp-tests (Depends-on): Add extensions.
13718         * modules/memmem-tests (Depends-on): Add extensions.
13719         * modules/memrchr-tests (Depends-on): Add extensions.
13720
13721 2009-05-13  Bruno Haible  <bruno@clisp.org>
13722
13723         Make some tests ISO C 99 compliant.
13724         * tests/zerosize-ptr.h: New file.
13725         * tests/test-memchr.c: Include zerosize-ptr.h.
13726         (main): Use a zero-size object pointer instead of NULL.
13727         * tests/test-memchr2.c: Include zerosize-ptr.h.
13728         (main): Use a zero-size object pointer instead of NULL.
13729         * tests/test-memcmp.c: Include zerosize-ptr.h.
13730         (main): Use a zero-size object pointer instead of NULL.
13731         * tests/test-memmem.c: Include zerosize-ptr.h.
13732         (main): Use a zero-size object pointer instead of NULL.
13733         * tests/test-memrchr.c: Include zerosize-ptr.h.
13734         (main): Use a zero-size object pointer instead of NULL.
13735         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13736         m4/mmap-anon.m4.
13737         (Depends-on): Add getpagesize.
13738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13739         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13740         m4/mmap-anon.m4.
13741         (Depends-on): Add getpagesize.
13742         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13743         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13744         m4/mmap-anon.m4.
13745         (Depends-on): Add getpagesize.
13746         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13747         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13748         m4/mmap-anon.m4.
13749         (Depends-on): Add getpagesize.
13750         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13751         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13752         m4/mmap-anon.m4.
13753         (Depends-on): Add getpagesize.
13754         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13755
13756 2009-05-12  Bruno Haible  <bruno@clisp.org>
13757
13758         Tests for module 'alignof'.
13759         * modules/alignof-tests: New file.
13760         * tests/test-alignof.c: New file.
13761
13762 2009-05-12  Bruno Haible  <bruno@clisp.org>
13763
13764         Fix alignof macro.
13765         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13766         vendor compilers that are always correct.
13767
13768 2009-05-12  Bruno Haible  <bruno@clisp.org>
13769
13770         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13771         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13772         not whether its fully works.
13773
13774 2009-05-12  Bruno Haible  <bruno@clisp.org>
13775
13776         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13777
13778 2009-05-12  Jim Meyering  <meyering@redhat.com>
13779
13780         * top/maint.mk: Adjust backslash alignment.
13781
13782 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13783
13784         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13785
13786 2009-05-11  Eric Blake  <ebb9@byu.net>
13787
13788         argp: avoid undefined behavior
13789         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13790         macros.
13791
13792 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13793
13794         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13795         user.name to prevent git commit from complaining.
13796
13797 2009-05-10  Bruno Haible  <bruno@clisp.org>
13798
13799         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13800         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13801         it rewrites every file name only once.
13802         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13803
13804 2009-05-08  Bruno Haible  <bruno@clisp.org>
13805
13806         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13807         instead of 'max'.
13808
13809 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13810
13811         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13812         sockaddr_storage test.
13813
13814 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13815
13816         * modules/sys_socket (Makefile.am): Substitute
13817         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13818         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13819         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13820         * tests/test-sys_socket.c: Check sockaddr_storage.
13821
13822 2009-05-08  Bruno Haible  <bruno@clisp.org>
13823
13824         New module 'alignof'.
13825         * lib/alignof.h: New file.
13826         * modules/alignof: New file.
13827
13828 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13829             Bruno Haible  <bruno@clisp.org>
13830
13831         Fix test-file-has-acl on FreeBSD.
13832         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13833         mask is implicitly added.
13834         * tests/test-file-has-acl.c: Include <signal.h>.
13835         (main): Terminate the test after 5 seconds.
13836         * modules/acl-tests (configure.ac): Check for alarm function.
13837
13838 2009-05-04  Bruno Haible  <bruno@clisp.org>
13839
13840         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13842         * modules/errno (configure.ac): Drop AC_REQUIRE.
13843         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13844         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13845
13846 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13847
13848         * modules/glob-tests: New module.
13849         * tests/test-glob.c: Add.
13850
13851 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13852
13853         * modules/fnmatch-tests: New module.
13854         * tests/test-fnmatch.c: Add.
13855
13856 2009-05-04  Eric Blake  <ebb9@byu.net>
13857
13858         maint: make the new no-submodule-changes rule VPATH-safe
13859         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13860
13861 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13862             Bruno Haible  <bruno@clisp.org>
13863
13864         acl: Fix infinite loop on FreeBSD.
13865         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13866         of return value from acl_get_entry.
13867         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13868         Likewise.
13869
13870 2009-05-03  Bruno Haible  <bruno@clisp.org>
13871
13872         * lib/acl-internal.h (acl_entries): Clarify return value.
13873         * lib/acl_entries.c (acl_entries): Likewise.
13874
13875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13876
13877         Bug fix in acl module.
13878         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13879
13880 2009-05-03  Bruno Haible  <bruno@clisp.org>
13881
13882         Create gperf-generated file in the source dir, not in the build dir.
13883         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13884         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13885         * modules/unicase/locale-language (unicase/locale-languages.h):
13886         Likewise.
13887         * modules/unicase/special-casing (unicase/special-casing-table.h):
13888         Likewise.
13889         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13890         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13891         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13892         Reported by Ralf Wildenhues.
13893
13894 2009-05-03  Bruno Haible  <bruno@clisp.org>
13895
13896         * modules/fnmatch (Description, configure.ac): Taken from
13897         fnmatch-posix.
13898         * modules/fnmatch-posix: Turn into a symbolic reference to the
13899         'fnmatch' module, and deprecate.
13900         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13901
13902 2009-05-03  Bruno Haible  <bruno@clisp.org>
13903
13904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13905         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13906         Reported by Ralf Wildenhues.
13907
13908 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13909
13910         * m4/fnmatch.m4: Fix fnmatch re-define.
13911
13912 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13913
13914         priv-set: new module and tests; adapt write-any-file
13915         * lib/priv-set.c: New file.
13916         * lib/priv-set.h: New file.
13917         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13918         * lib/write-any-file.c: Simplify by using priv-set module.
13919         * m4/priv-set.m4: New file.
13920         * modules/priv-set: New file.
13921         * modules/unlinkdir: Add dependency on priv-set module.
13922         * modules/write-any-file: Likewise.
13923
13924         Tests for module 'priv-set'.
13925         * modules/priv-set-tests: New file.
13926         * tests/test-priv-set.c: New file.
13927
13928 2009-05-03  Jim Meyering  <meyering@redhat.com>
13929             Bruno Haible  <bruno@clisp.org>
13930
13931         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13932         use the converted UTF-8 variant of the name instead.
13933
13934 2009-05-03  Jim Meyering  <meyering@redhat.com>
13935
13936         tests: tighten some getdate tests
13937         * tests/test-getdate.c (main): Tighten tests: require equality,
13938         not just greater than.  Set TZ envvar to UTC0.
13939
13940 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13941
13942         getdate: correctly interpret "next monday" when run on a Monday
13943         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13944         that e.g., "next tues" (when run on a tuesday) results in a date
13945         that is one week in the future, and not today's date.
13946         I.e., add a week when the wday is the same as the current one.
13947         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13948         and earlier by Martin Bernreuther and Jan Minář.
13949         * tests/test-getdate.c (main): Check that "next DAY" is always in
13950         the future and that "last DAY" is always in the past.
13951
13952 2009-05-02  Jim Meyering  <meyering@redhat.com>
13953
13954         build: ensure that a release build fails when a submodule is unclean
13955         * top/maint.mk (no-submodule-changes): New rule.
13956         (alpha beta major): Depend on it.
13957
13958 2009-05-02  Bruno Haible  <bruno@clisp.org>
13959
13960         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13961         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13962         shell variable gl_fnmatch_required to detect which variant is
13963         requested.
13964         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13965         gl_FUNC_FNMATCH_POSIX.
13966         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13967         exclude fnmatch-posix.
13968
13969 2009-05-02  Bruno Haible  <bruno@clisp.org>
13970
13971         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13972         * modules/mbsrtowcs (License): Change to LGPLv2+.
13973         * modules/strnlen1 (License): Likewise.
13974         Reported by Simon Josefsson.
13975
13976 2009-05-02  Bruno Haible  <bruno@clisp.org>
13977
13978         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13979         "cross".
13980         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13981         gnulib-tool was called with option --source-base=lib.
13982
13983 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13984
13985         Use automake *-local hooks without commands, for extensibility.
13986         * modules/localcharset (Makefile.am): Rename install-exec-local
13987         rule to install-exec-localcharset, and make it a prerequisite of
13988         install-exec-local.  Likewise, rename the uninstall-local rule to
13989         uninstall-localcharset, and make it a prerequisite of the former.
13990
13991 2009-05-01  Bruno Haible  <bruno@clisp.org>
13992
13993         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13994         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13995         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13997         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13998         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13999         m4/locale-zh.m4, m4/codeset.m4.
14000
14001         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14002         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14003         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14004         m4/locale-zh.m4.
14005
14006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14007         REPLACE_WCRTOMB if mbstate_t must be replaced.
14008         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14009         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14010
14011 2009-05-01  Bruno Haible  <bruno@clisp.org>
14012
14013         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14014         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14015         dngettext, dcngettext, textdomain, bindtextdomain,
14016         bind_textdomain_codeset): Undefine before redefining.
14017
14018 2009-04-30  Bruno Haible  <bruno@clisp.org>
14019
14020         Fix bug introduced on 2009-04-25.
14021         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14022         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14023         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14024         is defined.
14025         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14026         is defined.
14027         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14028         is defined.
14029         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14030
14031 2009-04-28  Bruno Haible  <bruno@clisp.org>
14032
14033         Comment tweaks.
14034         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14035         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14036         * lib/unicase.h (u*_casexfrm): Likewise.
14037         Reported by Paolo Bonzini.
14038
14039 2009-04-28  Bruno Haible  <bruno@clisp.org>
14040
14041         Fix a compilation error.
14042         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14043         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14044         Reported by Jim Meyering.
14045
14046 2009-04-27  Bruno Haible  <bruno@clisp.org>
14047
14048         New module 'libunistring'.
14049         * modules/libunistring: New file.
14050         * m4/libunistring.m4: New file.
14051         * MODULES.html.sh (Unicode string functions): Add it.
14052
14053 2009-04-27  Eric Blake  <ebb9@byu.net>
14054
14055         maint.mk: allow package-specific header to provide <config.h>
14056         * top/maint.mk (sc_require_config_h): New variable.
14057         (sc_require_config_h, sc_require_config_h_first): Use it.
14058
14059 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14060
14061         * top/maint.mk (sc_avoid_if_before_free): Except
14062         useless-if-before-free script.
14063
14064 2009-04-27  Eric Blake  <ebb9@byu.net>
14065
14066         maintainer-makefile: depend on all required helper scripts
14067         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14068         useless-if-before-free.
14069         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14070         version, rather than assuming gnulib checkout is available.
14071         Reported by Simen Josefsson.
14072
14073 2009-04-26  Bruno Haible  <bruno@clisp.org>
14074
14075         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14076         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14077         "../" or "..".
14078
14079 2009-04-26  Bruno Haible  <bruno@clisp.org>
14080
14081         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14082         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14083         AC_LIB_HAVE_LINKFLAGS.
14084
14085 2009-04-26  Bruno Haible  <bruno@clisp.org>
14086
14087         Simplify calling convention of u*_conv_from_encoding.
14088         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14089         u32_conv_from_encoding): Expect a resultbuf argument and return the
14090         result directly as a pointer.
14091         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14092         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14093         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14094         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14095         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14096         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14097         Update.
14098         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14099         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14100         * lib/vasnprintf.c (VASNPRINTF): Update.
14101         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14102         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14103         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14104         * NEWS: Mention the change.
14105
14106 2009-04-26  Bruno Haible  <bruno@clisp.org>
14107
14108         Simplify calling convention of u*_conv_to_encoding.
14109         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14110         u32_conv_to_encoding): Expect a resultbuf argument and return the
14111         result directly as a pointer.
14112         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14113         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14114         freeing scaled_offsets if mem_iconveha failed.
14115         * lib/unicase/u-casexfrm.h (FUNC): Update.
14116         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14117         * lib/vasnprintf.c (VASNPRINTF): Update.
14118         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14119         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14120         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14121         * NEWS: Mention the change.
14122
14123 2009-04-26  Bruno Haible  <bruno@clisp.org>
14124
14125         Avoid test failures on AIX and OSF/1.
14126         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14127         malloc(0).
14128         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14129         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14130         Likewise.
14131         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14132         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14133         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14134         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14135         * doc/posix-functions/malloc.texi: Document the portability problem
14136         related to malloc(0).
14137
14138 2009-04-26  Bruno Haible  <bruno@clisp.org>
14139
14140         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14141         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14142         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14143
14144 2009-04-25  Bruno Haible  <bruno@clisp.org>
14145
14146         Avoid link error when creating a namespace clean library.
14147         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14148         as macro with arguments if already defined as an alias.
14149         * lib/signbitf.c (gl_signbitf): Don't undefine.
14150         * lib/signbitd.c (gl_signbitd): Don't undefine.
14151         * lib/signbitl.c (gl_signbitl): Don't undefine.
14152
14153 2009-04-25  Jim Meyering  <meyering@redhat.com>
14154
14155         vc-list-files: fix another quoting bug
14156         * build-aux/vc-list-files: Avoid sed backslash expansion
14157         of pathological directory names.
14158
14159 2009-04-25  Eric Blake  <ebb9@byu.net>
14160
14161         vc-list-files: fix shell quoting error
14162         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14163         timestamp.
14164
14165 2009-04-25  Jim Meyering  <meyering@redhat.com>
14166
14167         vc-list-files: restore lost functionality with subdir argument
14168         * build-aux/vc-list-files: When given a non-"." sub-directory
14169         argument, substitute the $dir/ prefix back onto each resulting name.
14170         Otherwise, coreutils' root_tests check would fail.
14171
14172 2009-04-24  Eric Blake  <ebb9@byu.net>
14173
14174         vc-list-files: ignore git symlinks
14175         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14176         than ls-files, to ignore git symlinks.
14177
14178         maint.mk: import improvements from m4
14179         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14180         (move_if_change): Delete unused macro.
14181         (news-date-check, vc-diff-check): Support VPATH builds.
14182         (announcement): Likewise.  Split --bootstrap-tools list...
14183         (boostrap-tools): ...into separate list, which can be overridden
14184         in cfg.mk.
14185         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14186         requiring dependency on useless-if-before-free module.
14187         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14188         Support VPATH builds.
14189
14190 2009-04-24  Jim Meyering  <meyering@redhat.com>
14191
14192         maint.mk: remove coreutils-specific rules and variables
14193         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14194         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14195         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14196
14197         maint.mk: remove obsolete rule
14198         * top/maint.mk (rel-check): Remove rule.
14199         (WGET, WGETFLAGS): Remove now-unused variables.
14200
14201 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14202
14203         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14204         consistency.
14205
14206         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14207         '$(PATH_SEPARATOR)' instead of ':'.
14208
14209 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14210
14211         * lib/getopt1.c (main): Use 'const' for static array.
14212
14213 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14214
14215         * top/maint.mk: Sync with coreutils.
14216         * NEWS: Explain incompatibilities.
14217
14218 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14219             Bruno Haible  <bruno@clisp.org>
14220
14221         Fix cross-compilation results.
14222         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14223         statement, as third argument of AC_TRY_RUN.
14224         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14225         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14226         Likewise.
14227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14228         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14229         Likewise.
14230         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14232         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14233
14234 2009-04-20  Bruno Haible  <bruno@clisp.org>
14235
14236         Avoid test failure on mingw.
14237         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14238
14239 2009-04-20  Bruno Haible  <bruno@clisp.org>
14240
14241         Avoid compilation error on mingw.
14242         * modules/localename-tests (Depends-on): Add locale.
14243
14244 2009-04-19  Bruno Haible  <bruno@clisp.org>
14245
14246         Support for building a shared library on Windows platforms.
14247         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14248         (main): Test the presence of UNINORM_NFC here.
14249         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14250         (main): Test the presence of UNINORM_NFD here.
14251         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14252         (main): Test the presence of UNINORM_NFKC here.
14253         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14254         (main): Test the presence of UNINORM_NFKD here.
14255
14256 2009-04-19  Bruno Haible  <bruno@clisp.org>
14257
14258         Avoid a compiler warning.
14259         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14260         Change type of variable 'sequence'.
14261
14262 2009-04-19  Bruno Haible  <bruno@clisp.org>
14263
14264         * modules/configmake (Makefile.am): When the contents of configmake.h
14265         does not change, arrange to preserve its modification time.
14266
14267 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14268
14269         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14270         gettext domain.
14271
14272 2009-04-16  Jim Meyering  <meyering@redhat.com>
14273
14274         useless-if-before-free: improve conversion code
14275         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14276         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14277
14278 2009-04-14  Bruno Haible  <bruno@clisp.org>
14279
14280         * modules/fcntl (Depends-on): Add extensions.
14281         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14282
14283 2009-04-12  Ben Pfaff  <blp@gnu.org>
14284
14285         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14286         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14287
14288 2009-03-20  Ben Pfaff  <blp@gnu.org>
14289
14290         Make rename replace existing destinations on Windows.
14291         * m4/rename.m4: Add test for Mingw.
14292         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14293         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14294         * doc/posix-functions/rename.texi: Document.
14295
14296 2009-04-10  Bruno Haible  <bruno@clisp.org>
14297
14298         New include file "iconveh.h".
14299         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14300         * lib/striconveh.h: Include it.
14301         (enum iconv_ilseq_handler): Remove definition.
14302         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14303         striconveh.h.
14304         * lib/striconveha.c: Include striconveh.h.
14305         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14306         * modules/striconveh (Files): Add lib/iconveh.h.
14307         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14308         lib/striconveh.h.
14309
14310 2009-04-10  Bruno Haible  <bruno@clisp.org>
14311
14312         * lib/uniconv.h: Update comment.
14313
14314 2009-04-10  Bruno Haible  <bruno@clisp.org>
14315
14316         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14317         always.
14318         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14319         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14320         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14321         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14322         "unistring-notinline.h", so that the function gets defined always.
14323         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14324         * lib/unistr/u8-uctomb.c: Likewise.
14325         * lib/unistr/u16-mbtouc.c: Likewise.
14326         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14327         * lib/unistr/u16-uctomb.c: Likewise.
14328         * lib/unistr/u32-mbtouc.c: Likewise.
14329         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14330         * lib/unistr/u32-uctomb.c: Likewise.
14331
14332 2009-04-10  Bruno Haible  <bruno@clisp.org>
14333
14334         Mark 'utime' obsolete.
14335         * modules/utime (Status, Notice): New sections.
14336         Suggested by Jim Meyering.
14337
14338         Fix cross-compile guess for utime test.
14339         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14340         autoconf.
14341         * doc/posix-functions/utime.texi: Give more precisions.
14342         Reported by Jan <ipif@ymail.com>.
14343
14344 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14345
14346         filevercmp: correct today's change
14347         * lib/filevercmp.c: Also handle coreutils' test inputs.
14348         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14349
14350         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14351         for reporting it.
14352         * lib/filevercmp.c: Special handle for "", "." and "..".
14353         * tests/test-filevercmp.c: Enlarge the set suite.
14354
14355 2009-04-07  Jim Meyering  <meyering@redhat.com>
14356
14357         useless-if-before-free: show how to remove braced useless free, too
14358         * build-aux/useless-if-before-free: still only in a comment, though.
14359
14360 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14361
14362         maint.mk: import changes to syntax-check macros from coreutils
14363         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14364         Use them in the relevant macros.
14365
14366 2009-04-06  Bruno Haible  <bruno@clisp.org>
14367
14368         Fix unportable use of bit-fields.
14369         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14370         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14371         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14372
14373 2009-04-06  Bruno Haible  <bruno@clisp.org>
14374
14375         Avoid test failures on AIX and OSF/1.
14376         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14377         that malloc(0) = NULL.
14378         * tests/unicase/test-u8-tolower.c (check): Likewise.
14379         * tests/unicase/test-u8-totitle.c (check): Likewise.
14380         * tests/unicase/test-u8-toupper.c (check): Likewise.
14381         * tests/unicase/test-u16-casefold.c (check): Likewise.
14382         * tests/unicase/test-u16-tolower.c (check): Likewise.
14383         * tests/unicase/test-u16-totitle.c (check): Likewise.
14384         * tests/unicase/test-u16-toupper.c (check): Likewise.
14385         * tests/unicase/test-u32-casefold.c (check): Likewise.
14386         * tests/unicase/test-u32-tolower.c (check): Likewise.
14387         * tests/unicase/test-u32-totitle.c (check): Likewise.
14388         * tests/unicase/test-u32-toupper.c (check): Likewise.
14389         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14390         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14391         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14392         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14393         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14394         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14395         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14396         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14397         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14398         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14399         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14400         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14401
14402 2009-04-05  Bruno Haible  <bruno@clisp.org>
14403
14404         Work around an autoconf limitation.
14405         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14406         comment line if it would be longer than 3 KB.
14407
14408 2009-04-05  Bruno Haible  <bruno@clisp.org>
14409
14410         Avoid test failure with libiconv-1.13.
14411         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14412         of the expected test results.
14413
14414 2009-04-05  Bruno Haible  <bruno@clisp.org>
14415
14416         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14417         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14418         that it should be installed.
14419
14420 2009-04-05  Bruno Haible  <bruno@clisp.org>
14421
14422         * gnulib-tool: New option --copy-file.
14423         (func_usage): Document it.
14424         (func_dest_tmpfilename): Moved out of func_import.
14425         (func_add_file, func_update_file): New functions, extracted from
14426         func_import.
14427         (func_import): Update.
14428
14429 2009-04-05  Karl Berry  <karl@gnu.org>
14430
14431         * README: prominently mention gnulib-tool.
14432         Rearrange sections so getting the code is near the top.
14433
14434 2009-04-05  Bruno Haible  <bruno@clisp.org>
14435
14436         * lib/unicase.h: Mention u*_cmp2.
14437         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14438         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14439         * lib/unicase/ulc-casecmp.c: Likewise.
14440         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14441         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14442         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14443         unistr/u8-cmp.
14444         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14445         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14446         unistr/u16-cmp.
14447         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14448         unistr/u32-cmp.
14449
14450         * lib/uninorm.h: Mention u*_cmp2.
14451         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14452         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14453         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14454         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14455         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14456         unistr/u8-cmp.
14457         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14458         unistr/u16-cmp.
14459         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14460         unistr/u32-cmp.
14461
14462         New module 'unistr/u32-cmp2'.
14463         * lib/unistr/u32-cmp2.c: New file.
14464         * modules/unistr/u32-cmp2: New file.
14465
14466         New module 'unistr/u16-cmp2'.
14467         * lib/unistr/u16-cmp2.c: New file.
14468         * modules/unistr/u16-cmp2: New file.
14469
14470         New module 'unistr/u8-cmp2'.
14471         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14472         * lib/unistr/u8-cmp2.c: New file.
14473         * lib/unistr/u-cmp2.h: New file.
14474         * modules/unistr/u8-cmp2: New file.
14475
14476 2009-04-05  Bruno Haible  <bruno@clisp.org>
14477
14478         * lib/unictype.h (uc_property_is_valid): New macro.
14479         * tests/unictype/test-pr_byname.c (main): Use it.
14480
14481         * lib/unistr.h: Doc fixes.
14482         * lib/uniconv.h: Doc fixes.
14483         * lib/unictype.h: Doc fixes.
14484
14485 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14486
14487         Port coreutils 7.2 to Solaris 8.
14488
14489         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14490         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14491         for Solaris 8.  This is a bit of a hack, as it means it's the
14492         caller's responsibility to add -lnsl if needed, but most likely it
14493         won't be needed since only getaddrinfo uses this and getaddrinfo
14494         isn't needed on Solaris 8.
14495
14496         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14497         problem to Solaris 8 encountered with coreutils 7.2, which
14498         resulted in a message "fnmatch.c:292: warning: passing argument 4
14499         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14500         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14501
14502 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14503
14504         * m4/ld-version-script.m4: Add FIXME comment.
14505
14506 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14507
14508         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14509         SOVERSION variable.
14510
14511 2009-04-02  Bruno Haible  <bruno@clisp.org>
14512
14513         * Makefile (info, html, dvi, pdf): Combine the rules.
14514         Suggested by Jim Meyering.
14515
14516 2009-04-01  Bruno Haible  <bruno@clisp.org>
14517
14518         * Makefile (info, html, dvi, pdf): New targets.
14519         Reported by Reuben Thomas <rrt@sc3d.org>.
14520
14521 2009-04-01  Bruno Haible  <bruno@clisp.org>
14522
14523         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14524         can be put into PATH.
14525         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14526
14527 2009-04-01  Bruno Haible  <bruno@clisp.org>
14528
14529         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14530
14531 2009-04-01  Bruno Haible  <bruno@clisp.org>
14532
14533         Rename module 'visibility'.
14534         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14535         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14536         * doc/gnulib.texi: Update.
14537         * MODULES.html.sh (Misc): Update.
14538         * NEWS: Mention the change.
14539
14540 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14541
14542         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14543         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14544         Eric Blake <ebb9@byu.net> for review.
14545         * MODULES.html.sh: Add lib-msvc-compat.
14546         * doc/gnulib.texi: Link to new section.
14547         * m4/ld-output-def.m4: New file.
14548         * doc/ld-output-def.texi: New file.
14549
14550 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14551
14552         Rename ld-version-script to lib-symbol-versions.  Suggested by
14553         Bruno Haible <bruno@clisp.org>.
14554         * modules/ld-version-script: Renamed to lib-symbol-versions.
14555         * doc/ld-version-script.texi: Fix module name.
14556         * MODULES.html.sh: Add lib-symbol-versions.
14557
14558 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14559
14560         * modules/u64-tests: New file.
14561         * tests/test-u64.c: New file.
14562
14563 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14564
14565         * MODULES.html.sh: Mention u64.
14566         * modules/u64: New module.
14567         * modules/crypto/sha512: Depend on u64 module instead of providing
14568         u64.h.
14569
14570 2009-03-27  Eric Blake  <ebb9@byu.net>
14571
14572         test-strerror: make debugging EAI_SYSTEM easier
14573         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14574         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14575         failure was EAI_SYSTEM.
14576
14577 2009-03-25  Bruno Haible  <bruno@clisp.org>
14578
14579         Fix a problem with --enable-relocatable on Solaris 7.
14580         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14581         since 2008-02-24.
14582
14583 2009-03-25  Eric Blake  <ebb9@byu.net>
14584
14585         test-sockets: avoid gcc warning
14586         * tests/test-sockets.c (main): Silence compiler warning.
14587
14588 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14589
14590         New modules nproc, pthread, contributed by Glen Lenker.
14591
14592         * MODULES.html.sh: Add pthread, nproc.
14593         * lib/nproc.c: New file.
14594         * lib/nproc.h: New file.
14595         * lib/pthread.in.h: New file.
14596         * m4/pthread.m4: New file.
14597         * modules/nproc: New file.
14598         * modules/pthread: New file.
14599
14600 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14601
14602         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14603         New variable.
14604
14605 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14606
14607         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14608         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14609         * tests/test-filevercmp.c: Add tests for backup suffixes.
14610
14611 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14612
14613         * modules/stdlib (Depends-on): Add stdint, needed when defining
14614         struct random_data on, for example, HP-UX 10.20.  Reported by
14615         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14616
14617 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14618
14619         * lib/readline.c (readline): Call fflush on stdout after printing
14620         prompt.
14621
14622 2009-03-20  Bruno Haible  <bruno@clisp.org>
14623
14624         Remove dependency from 'close' module to -lws2_32 on native Windows.
14625         * lib/close-hook.h: New file.
14626         * lib/close-hook.c: New file.
14627         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14628         w32sock.h.
14629         (_gl_close_fd_maybe_socket): Remove function.
14630         (rpl_close): Invoke execute_all_close_hooks instead of
14631         _gl_close_fd_maybe_socket.
14632         * lib/sockets.c: Include close-hook.h, w32sock.h.
14633         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14634         (close_sockets_hook): New variable.
14635         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14636         (gl_sockets_cleanup): Unregister it.
14637         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14638         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14639         * modules/close-hook: New file.
14640         * modules/close (Files): Remove lib/w32sock.h.
14641         (Depends-on): Add close-hook.
14642         (Link): Remove section.
14643         * modules/sockets (Files): Add lib/w32sock.h.
14644         (Depends-on): Add close-hook.
14645         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14646         invocation.
14647         * NEWS: Mention that LIB_CLOSE is gone.
14648
14649 2009-03-23  Eric Blake  <ebb9@byu.net>
14650
14651         signal-tests: test previous patch
14652         * tests/test-signal.c: New file.
14653         * modules/signal-tests: Likewise.
14654
14655         signal.h: always support 'volatile sig_atomic_t'
14656         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14657         (gl_SIGNAL_H_DEFAULTS): Add a default.
14658         * modules/signal (Makefile.am): Substitute if needed.
14659         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14660         users can blindly add volatile.
14661         * doc/posix-headers/signal.texi (signal.h): Document it.
14662         Reported by Matthew Woehlke.
14663
14664 2009-03-23  Jim Meyering  <meyering@redhat.com>
14665
14666         pathmax: PATH_MAX: use pathconf only when available
14667         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14668         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14669         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14670         This avoids a link failure in a PSP cross-compilation environment
14671         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14672
14673         * lib/vasnprintf.c (divide): Fix typo in comment.
14674
14675 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14676
14677         * gnulib-tool (func_filter_filelist): Fix comment.
14678
14679 2009-03-20  Bruno Haible  <bruno@clisp.org>
14680
14681         Make sockets.h self-contained.
14682         * lib/sockets.c: Include sockets.h first.
14683         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14684
14685 2009-03-19  Eric Blake  <ebb9@byu.net>
14686
14687         doc: mention more functions added in cygwin 1.7.0
14688         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14689         addition.
14690         * doc/posix-functions/log2f.texi: Likewise.
14691
14692 2009-03-19  Jim Meyering  <meyering@redhat.com>
14693
14694         fsusage: avoid syntax error due to statement-before-declaration
14695         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14696         after all declarations.  Reported by Matthew Woehlke in
14697         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14698
14699 2009-03-18  Eric Blake  <ebb9@byu.net>
14700
14701         build-aux/compile: sync from automake
14702         * build-aux/compile: New file, from automake.
14703         * config/srclist.txt: Mention build-aux/compile.
14704
14705 2009-03-17  Bruno Haible  <bruno@clisp.org>
14706
14707         * lib/git-merge-changelog.c: Fix typo in comment.
14708         Reported by Reuben Thomas <rrt@sc3d.org>.
14709
14710 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14711
14712         * m4/regex.m4: update and improve help for
14713         --without-included-regex.
14714
14715 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14716
14717         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14718         failure on missing include files.
14719
14720 2009-03-17  Eric Blake  <ebb9@byu.net>
14721
14722         doc: mention more functions added in cygwin 1.7.0
14723         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14724         addition.
14725         * doc/posix-functions/fwscanf.texi: Likewise.
14726         * doc/posix-functions/swprintf.texi: Likewise.
14727         * doc/posix-functions/swscanf.texi: Likewise.
14728         * doc/posix-functions/vfwprintf.texi: Likewise.
14729         * doc/posix-functions/vfwscanf.texi: Likewise.
14730         * doc/posix-functions/vswprintf.texi: Likewise.
14731         * doc/posix-functions/vswscanf.texi: Likewise.
14732         * doc/posix-functions/vwprintf.texi: Likewise.
14733         * doc/posix-functions/vwscanf.texi: Likewise.
14734         * doc/posix-functions/wcscasecmp.texi: Likewise.
14735         * doc/posix-functions/wcsdup.texi: Likewise.
14736         * doc/posix-functions/wcsftime.texi: Likewise.
14737         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14738         * doc/posix-functions/wprintf.texi: Likewise.
14739         * doc/posix-functions/wscanf.texi: Likewise.
14740         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14741
14742 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14743
14744         maint.mk: really add $(AM_MAKEFLAGS)
14745         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14746         was inadvertently omitted in the last commit.
14747         Spotted by Bruno Haible.
14748
14749         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14750         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14751         $(AM_MAKEFLAGS)' rather than plain `make'.
14752
14753         gnulib-tool: execute $MAKE not make
14754         * gnulib-tool: Default $MAKE to 'make'.
14755         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14756         than make.  Initialize $MAKE in the do-autobuild script.
14757
14758         gnulib-tool: use $MAKE not make in generated files
14759         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14760         make, in generated files.  Initialize $MAKE in the do-autobuild
14761         script.
14762
14763         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14764
14765         GNUmakefile: disable parallelism only for multiple, recursive targets
14766         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14767         additions in the Makefile.
14768         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14769         by Automake.
14770         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14771         are listed on the command line and at least one of them is
14772         listed in $(ALL_RECURSIVE_TARGETS).
14773
14774 2009-03-14  Bruno Haible  <bruno@clisp.org>
14775
14776         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14777         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14778         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14779         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14780         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14781         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14782         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14783         unistr/u8-uctomb.
14784         * modules/unistr/u8-strchr (Depends-on): Likewise.
14785         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14786         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14787         unistr/u16-uctomb.
14788         * modules/unistr/u16-strchr (Depends-on): Likewise.
14789         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14790
14791 2009-03-12  Bruno Haible  <bruno@clisp.org>
14792
14793         Work around select() bug on Interix 3.5.
14794         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14795         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14796         * m4/select.m4: New file.
14797         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14798         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14799         * modules/select (Files): Add m4/select.m4.
14800         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14801         * modules/nanosleep (Depends-on): Add select.
14802         * modules/poll (Depends-on): Likewise.
14803         * doc/posix-functions/select.texi: Mention the Interix bug.
14804         Reported by Markus Duft <mduft@gentoo.org>.
14805
14806         * lib/select.c: Renamed from lib/winsock-select.c.
14807         * modules/select (Files): Add lib/select.c, remove
14808         lib/winsock-select.c.
14809         (configure.ac): Update.
14810
14811 2009-03-12  Jim Meyering  <meyering@redhat.com>
14812
14813         avoid gcc warnings about unused macro definitions
14814         * lib/readtokens.c (STREQ): Remove unused definition.
14815         * lib/xmalloc.c (SIZE_MAX): Likewise.
14816         * lib/openat-die.c (N_): Likewise.
14817         * lib/mountlist.c (SIZE_MAX): Remove definition.
14818         Instead, include <stdint.h>.
14819         * lib/readutmp.c: Likewise.
14820         * modules/readutmp (Depends-on): Add stdint.
14821         * modules/mountlist (Depends-on): Add stdint.
14822         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14823
14824 2009-03-10  Bruno Haible  <bruno@clisp.org>
14825
14826         Tests for module 'mbmemcasecoll'.
14827         * modules/mbmemcasecoll-tests: New file.
14828         * tests/test-mbmemcasecoll1.sh: New file.
14829         * tests/test-mbmemcasecoll2.sh: New file.
14830         * tests/test-mbmemcasecoll3.sh: New file.
14831         * tests/test-mbmemcasecoll.c: New file.
14832
14833         New module 'mbmemcasecoll'.
14834         * lib/mbmemcasecoll.h: New file.
14835         * lib/mbmemcasecoll.c: New file.
14836         * modules/mbmemcasecoll: New file.
14837
14838         * tests/test-mbmemcasecmp.h: New file, extracted from
14839         tests/test-mbmemcasecmp.c.
14840         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14841         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14842         (main): Update.
14843         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14844
14845 2009-03-09  Bruno Haible  <bruno@clisp.org>
14846
14847         Tests for module 'mbmemcasecmp'.
14848         * modules/mbmemcasecmp-tests: New file.
14849         * tests/test-mbmemcasecmp1.sh: New file.
14850         * tests/test-mbmemcasecmp2.sh: New file.
14851         * tests/test-mbmemcasecmp3.sh: New file.
14852         * tests/test-mbmemcasecmp.c: New file.
14853
14854         New module 'mbmemcasecmp'.
14855         * lib/mbmemcasecmp.h: New file.
14856         * lib/mbmemcasecmp.c: New file.
14857         * modules/mbmemcasecmp: New file.
14858
14859 2009-03-09  Bruno Haible  <bruno@clisp.org>
14860
14861         Tests for module 'unicase/ulc-casecoll'.
14862         * modules/unicase/ulc-casecoll-tests: New file.
14863         * tests/unicase/test-ulc-casecoll1.sh: New file.
14864         * tests/unicase/test-ulc-casecoll2.sh: New file.
14865         * tests/unicase/test-ulc-casecoll.c: New file.
14866
14867         New module 'unicase/ulc-casecoll'.
14868         * lib/unicase.h (ulc_casecoll): New declaration.
14869         * lib/unicase/ulc-casecoll.c: New file.
14870         * modules/unicase/ulc-casecoll: New file.
14871
14872         New module 'unicase/ulc-casexfrm'.
14873         * lib/unicase.h (ulc_casexfrm): New declaration.
14874         * lib/unicase/ulc-casexfrm.c: New file.
14875         * modules/unicase/ulc-casexfrm: New file.
14876
14877 2009-03-09  Bruno Haible  <bruno@clisp.org>
14878
14879         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14880         invocations.
14881
14882         * m4/mbscasecmp.m4: Remove file.
14883         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14884         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14885
14886         * m4/mbscasestr.m4: Remove file.
14887         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14888         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14889
14890         * m4/mbschr.m4: Remove file.
14891         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14892         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14893
14894         * m4/mbscspn.m4: Remove file.
14895         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14896         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14897
14898         * m4/mbslen.m4: Remove file.
14899         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14900         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14901
14902         * m4/mbsncasecmp.m4: Remove file.
14903         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14904         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14905
14906         * m4/mbsnlen.m4: Remove file.
14907         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14908         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14909
14910         * m4/mbspbrk.m4: Remove file.
14911         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14912         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14913
14914         * m4/mbspcasecmp.m4: Remove file.
14915         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14916         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14917
14918         * m4/mbsrchr.m4: Remove file.
14919         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14920         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14921
14922         * m4/mbssep.m4: Remove file.
14923         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14924         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14925
14926         * m4/mbsspn.m4: Remove file.
14927         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14928         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14929
14930         * m4/mbsstr.m4: Remove file.
14931         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14932         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14933
14934         * m4/mbstok_r.m4: Remove file.
14935         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14936         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14937
14938         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14939
14940         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14941         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14942
14943         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14944
14945 2009-03-08  Bruno Haible  <bruno@clisp.org>
14946
14947         Tests for module 'unicase/ulc-casecmp'.
14948         * modules/unicase/ulc-casecmp-tests: New file.
14949         * tests/unicase/test-ulc-casecmp1.sh: New file.
14950         * tests/unicase/test-ulc-casecmp2.sh: New file.
14951         * tests/unicase/test-ulc-casecmp.c: New file.
14952
14953         New module 'unicase/ulc-casecmp'.
14954         * lib/unicase.h (ulc_casecmp): New declaration.
14955         * lib/unicase/ulc-casecmp.c: New file.
14956         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14957         'const SRC_UNIT *'.
14958         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14959         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14960         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14961         * modules/unicase/ulc-casecmp: New file.
14962
14963         Tests for module 'unicase/u32-is-cased'.
14964         * modules/unicase/u32-is-cased-tests: New file.
14965         * tests/unicase/test-u32-is-cased.c: New file.
14966
14967         Tests for module 'unicase/u16-is-cased'.
14968         * modules/unicase/u16-is-cased-tests: New file.
14969         * tests/unicase/test-u16-is-cased.c: New file.
14970
14971         Tests for module 'unicase/u8-is-cased'.
14972         * modules/unicase/u8-is-cased-tests: New file.
14973         * tests/unicase/test-u8-is-cased.c: New file.
14974         * tests/unicase/test-is-cased.h: New file.
14975
14976         New module 'unicase/u32-is-cased'.
14977         * lib/unicase/u32-is-cased.c: New file.
14978         * modules/unicase/u32-is-cased: New file.
14979
14980         New module 'unicase/u16-is-cased'.
14981         * lib/unicase/u16-is-cased.c: New file.
14982         * modules/unicase/u16-is-cased: New file.
14983
14984         New module 'unicase/u8-is-cased'.
14985         * lib/unicase/u8-is-cased.c: New file.
14986         * lib/unicase/u-is-cased.h: New file.
14987         * modules/unicase/u8-is-cased: New file.
14988
14989         Tests for module 'unicase/u32-is-casefolded'.
14990         * modules/unicase/u32-is-casefolded-tests: New file.
14991         * tests/unicase/test-u32-is-casefolded.c: New file.
14992
14993         Tests for module 'unicase/u16-is-casefolded'.
14994         * modules/unicase/u16-is-casefolded-tests: New file.
14995         * tests/unicase/test-u16-is-casefolded.c: New file.
14996
14997         Tests for module 'unicase/u8-is-casefolded'.
14998         * modules/unicase/u8-is-casefolded-tests: New file.
14999         * tests/unicase/test-u8-is-casefolded.c: New file.
15000         * tests/unicase/test-is-casefolded.h: New file.
15001
15002         New module 'unicase/u32-is-casefolded'.
15003         * lib/unicase/u32-is-casefolded.c: New file.
15004         * modules/unicase/u32-is-casefolded: New file.
15005
15006         New module 'unicase/u16-is-casefolded'.
15007         * lib/unicase/u16-is-casefolded.c: New file.
15008         * modules/unicase/u16-is-casefolded: New file.
15009
15010         New module 'unicase/u8-is-casefolded'.
15011         * lib/unicase/u8-is-casefolded.c: New file.
15012         * modules/unicase/u8-is-casefolded: New file.
15013
15014         Tests for module 'unicase/u32-is-titlecase'.
15015         * modules/unicase/u32-is-titlecase-tests: New file.
15016         * tests/unicase/test-u32-is-titlecase.c: New file.
15017
15018         Tests for module 'unicase/u16-is-titlecase'.
15019         * modules/unicase/u16-is-titlecase-tests: New file.
15020         * tests/unicase/test-u16-is-titlecase.c: New file.
15021
15022         Tests for module 'unicase/u8-is-titlecase'.
15023         * modules/unicase/u8-is-titlecase-tests: New file.
15024         * tests/unicase/test-u8-is-titlecase.c: New file.
15025         * tests/unicase/test-is-titlecase.h: New file.
15026
15027         New module 'unicase/u32-is-titlecase'.
15028         * lib/unicase/u32-is-titlecase.c: New file.
15029         * modules/unicase/u32-is-titlecase: New file.
15030
15031         New module 'unicase/u16-is-titlecase'.
15032         * lib/unicase/u16-is-titlecase.c: New file.
15033         * modules/unicase/u16-is-titlecase: New file.
15034
15035         New module 'unicase/u8-is-titlecase'.
15036         * lib/unicase/u8-is-titlecase.c: New file.
15037         * modules/unicase/u8-is-titlecase: New file.
15038
15039         Tests for module 'unicase/u32-is-lowercase'.
15040         * modules/unicase/u32-is-lowercase-tests: New file.
15041         * tests/unicase/test-u32-is-lowercase.c: New file.
15042
15043         Tests for module 'unicase/u16-is-lowercase'.
15044         * modules/unicase/u16-is-lowercase-tests: New file.
15045         * tests/unicase/test-u16-is-lowercase.c: New file.
15046
15047         Tests for module 'unicase/u8-is-lowercase'.
15048         * modules/unicase/u8-is-lowercase-tests: New file.
15049         * tests/unicase/test-u8-is-lowercase.c: New file.
15050         * tests/unicase/test-is-lowercase.h: New file.
15051
15052         New module 'unicase/u32-is-lowercase'.
15053         * lib/unicase/u32-is-lowercase.c: New file.
15054         * modules/unicase/u32-is-lowercase: New file.
15055
15056         New module 'unicase/u16-is-lowercase'.
15057         * lib/unicase/u16-is-lowercase.c: New file.
15058         * modules/unicase/u16-is-lowercase: New file.
15059
15060         New module 'unicase/u8-is-lowercase'.
15061         * lib/unicase/u8-is-lowercase.c: New file.
15062         * modules/unicase/u8-is-lowercase: New file.
15063
15064         Tests for module 'unicase/u32-is-uppercase'.
15065         * modules/unicase/u32-is-uppercase-tests: New file.
15066         * tests/unicase/test-u32-is-uppercase.c: New file.
15067
15068         Tests for module 'unicase/u16-is-uppercase'.
15069         * modules/unicase/u16-is-uppercase-tests: New file.
15070         * tests/unicase/test-u16-is-uppercase.c: New file.
15071
15072         Tests for module 'unicase/u8-is-uppercase'.
15073         * modules/unicase/u8-is-uppercase-tests: New file.
15074         * tests/unicase/test-u8-is-uppercase.c: New file.
15075         * tests/unicase/test-is-uppercase.h: New file.
15076
15077         New module 'unicase/u32-is-uppercase'.
15078         * lib/unicase/u32-is-uppercase.c: New file.
15079         * modules/unicase/u32-is-uppercase: New file.
15080
15081         New module 'unicase/u16-is-uppercase'.
15082         * lib/unicase/u16-is-uppercase.c: New file.
15083         * modules/unicase/u16-is-uppercase: New file.
15084
15085         New module 'unicase/u8-is-uppercase'.
15086         * lib/unicase/u8-is-uppercase.c: New file.
15087         * modules/unicase/u8-is-uppercase: New file.
15088
15089         New module 'unicase/u32-is-invariant'.
15090         * lib/unicase/u32-is-invariant.c: New file.
15091         * modules/unicase/u32-is-invariant: New file.
15092
15093         New module 'unicase/u16-is-invariant'.
15094         * lib/unicase/u16-is-invariant.c: New file.
15095         * modules/unicase/u16-is-invariant: New file.
15096
15097         New module 'unicase/u8-is-invariant'.
15098         * lib/unicase/u8-is-invariant.c: New file.
15099         * lib/unicase/invariant.h: New file.
15100         * lib/unicase/u-is-invariant.h: New file.
15101         * modules/unicase/u8-is-invariant: New file.
15102
15103         Tests for module 'unicase/u32-casecoll'.
15104         * modules/unicase/u32-casecoll-tests: New file.
15105         * tests/unicase/test-u32-casecoll.c: New file.
15106
15107         Tests for module 'unicase/u16-casecoll'.
15108         * modules/unicase/u16-casecoll-tests: New file.
15109         * tests/unicase/test-u16-casecoll.c: New file.
15110
15111         Tests for module 'unicase/u8-casecoll'.
15112         * modules/unicase/u8-casecoll-tests: New file.
15113         * tests/unicase/test-u8-casecoll.c: New file.
15114
15115         New module 'unicase/u32-casecoll'.
15116         * lib/unicase/u32-casecoll.c: New file.
15117         * modules/unicase/u32-casecoll: New file.
15118
15119         New module 'unicase/u16-casecoll'.
15120         * lib/unicase/u16-casecoll.c: New file.
15121         * modules/unicase/u16-casecoll: New file.
15122
15123         New module 'unicase/u8-casecoll'.
15124         * lib/unicase/u8-casecoll.c: New file.
15125         * lib/unicase/u-casecoll.h: New file.
15126         * modules/unicase/u8-casecoll: New file.
15127
15128         New module 'unicase/u32-casexfrm'.
15129         * lib/unicase/u32-casexfrm.c: New file.
15130         * modules/unicase/u32-casexfrm: New file.
15131
15132         New module 'unicase/u16-casexfrm'.
15133         * lib/unicase/u16-casexfrm.c: New file.
15134         * modules/unicase/u16-casexfrm: New file.
15135
15136         New module 'unicase/u8-casexfrm'.
15137         * lib/unicase/u8-casexfrm.c: New file.
15138         * lib/unicase/u-casexfrm.h: New file.
15139         * modules/unicase/u8-casexfrm: New file.
15140
15141         Tests for module 'unicase/u32-casecmp'.
15142         * modules/unicase/u32-casecmp-tests: New file.
15143         * tests/unicase/test-u32-casecmp.c: New file.
15144
15145         Tests for module 'unicase/u16-casecmp'.
15146         * modules/unicase/u16-casecmp-tests: New file.
15147         * tests/unicase/test-u16-casecmp.c: New file.
15148
15149         Tests for module 'unicase/u8-casecmp'.
15150         * modules/unicase/u8-casecmp-tests: New file.
15151         * tests/unicase/test-u8-casecmp.c: New file.
15152         * tests/unicase/test-casecmp.h: New file.
15153
15154         New module 'unicase/u32-casecmp'.
15155         * lib/unicase/u32-casecmp.c: New file.
15156         * modules/unicase/u32-casecmp: New file.
15157
15158         New module 'unicase/u16-casecmp'.
15159         * lib/unicase/u16-casecmp.c: New file.
15160         * modules/unicase/u16-casecmp: New file.
15161
15162         New module 'unicase/u8-casecmp'.
15163         * lib/unicase/u8-casecmp.c: New file.
15164         * lib/unicase/u-casecmp.h: New file.
15165         * modules/unicase/u8-casecmp: New file.
15166
15167         Tests for module 'unicase/u32-casefold'.
15168         * modules/unicase/u32-casefold-tests: New file.
15169         * tests/unicase/test-u32-casefold.c: New file.
15170
15171         Tests for module 'unicase/u16-casefold'.
15172         * modules/unicase/u16-casefold-tests: New file.
15173         * tests/unicase/test-u16-casefold.c: New file.
15174
15175         Tests for module 'unicase/u8-casefold'.
15176         * modules/unicase/u8-casefold-tests: New file.
15177         * tests/unicase/test-u8-casefold.c: New file.
15178
15179         New module 'unicase/u32-casefold'.
15180         * lib/unicase/u32-casefold.c: New file.
15181         * modules/unicase/u32-casefold: New file.
15182
15183         New module 'unicase/u16-casefold'.
15184         * lib/unicase/u16-casefold.c: New file.
15185         * modules/unicase/u16-casefold: New file.
15186
15187         New module 'unicase/u8-casefold'.
15188         * lib/unicase/u8-casefold.c: New file.
15189         * lib/unicase/u-casefold.h: New file.
15190         * modules/unicase/u8-casefold: New file.
15191
15192         New module 'unicase/tocasefold'.
15193         * lib/unicase/casefold.h: New file.
15194         * lib/unicase/tocasefold.c: New file.
15195         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15196         * modules/unicase/tocasefold: New file.
15197
15198         Tests for module 'unicase/u32-totitle'.
15199         * modules/unicase/u32-totitle-tests: New file.
15200         * tests/unicase/test-u32-totitle.c: New file.
15201
15202         Tests for module 'unicase/u16-totitle'.
15203         * modules/unicase/u16-totitle-tests: New file.
15204         * tests/unicase/test-u16-totitle.c: New file.
15205
15206         Tests for module 'unicase/u8-totitle'.
15207         * modules/unicase/u8-totitle-tests: New file.
15208         * tests/unicase/test-u8-totitle.c: New file.
15209
15210         New module 'unicase/u32-totitle'.
15211         * lib/unicase/u32-totitle.c: New file.
15212         * modules/unicase/u32-totitle: New file.
15213
15214         New module 'unicase/u16-totitle'.
15215         * lib/unicase/u16-totitle.c: New file.
15216         * modules/unicase/u16-totitle: New file.
15217
15218         New module 'unicase/u8-totitle'.
15219         * lib/unicase/u8-totitle.c: New file.
15220         * lib/unicase/u-totitle.h: New file.
15221         * modules/unicase/u8-totitle: New file.
15222
15223         Tests for module 'unicase/u32-tolower'.
15224         * modules/unicase/u32-tolower-tests: New file.
15225         * tests/unicase/test-u32-tolower.c: New file.
15226
15227         Tests for module 'unicase/u16-tolower'.
15228         * modules/unicase/u16-tolower-tests: New file.
15229         * tests/unicase/test-u16-tolower.c: New file.
15230
15231         Tests for module 'unicase/u8-tolower'.
15232         * modules/unicase/u8-tolower-tests: New file.
15233         * tests/unicase/test-u8-tolower.c: New file.
15234
15235         New module 'unicase/u32-tolower'.
15236         * lib/unicase/u32-tolower.c: New file.
15237         * modules/unicase/u32-tolower: New file.
15238
15239         New module 'unicase/u16-tolower'.
15240         * lib/unicase/u16-tolower.c: New file.
15241         * modules/unicase/u16-tolower: New file.
15242
15243         New module 'unicase/u8-tolower'.
15244         * lib/unicase/u8-tolower.c: New file.
15245         * modules/unicase/u8-tolower: New file.
15246
15247         Tests for module 'unicase/u32-toupper'.
15248         * modules/unicase/u32-toupper-tests: New file.
15249         * tests/unicase/test-u32-toupper.c: New file.
15250
15251         Tests for module 'unicase/u16-toupper'.
15252         * modules/unicase/u16-toupper-tests: New file.
15253         * tests/unicase/test-u16-toupper.c: New file.
15254
15255         Tests for module 'unicase/u8-toupper'.
15256         * modules/unicase/u8-toupper-tests: New file.
15257         * tests/unicase/test-u8-toupper.c: New file.
15258
15259         New module 'unicase/u32-toupper'.
15260         * lib/unicase/u32-toupper.c: New file.
15261         * modules/unicase/u32-toupper: New file.
15262
15263         New module 'unicase/u16-toupper'.
15264         * lib/unicase/u16-toupper.c: New file.
15265         * modules/unicase/u16-toupper: New file.
15266
15267         New module 'unicase/u8-toupper'.
15268         * lib/unicase/u8-toupper.c: New file.
15269         * modules/unicase/u8-toupper: New file.
15270
15271         New module 'unicase/u32-casemap'.
15272         * lib/unicase/u32-casemap.c: New file.
15273         * modules/unicase/u32-casemap: New file.
15274
15275         New module 'unicase/u16-casemap'.
15276         * lib/unicase/u16-casemap.c: New file.
15277         * modules/unicase/u16-casemap: New file.
15278
15279         New module 'unicase/u8-casemap'.
15280         * lib/unicase/unicasemap.h: New file.
15281         * lib/unicase/u8-casemap.c: New file.
15282         * lib/unicase/u-casemap.h: New file.
15283         * modules/unicase/u8-casemap: New file.
15284
15285         New module 'unicase/special-casing'.
15286         * lib/unicase/special-casing.h: New file.
15287         * lib/unicase/special-casing.c: New file.
15288         * lib/unicase/special-casing-table.gperf: New file, generated by
15289         gen-uni-tables.c.
15290         * modules/unicase/special-casing: New file.
15291
15292         Tests for module 'unicase/locale-language'.
15293         * modules/unicase/locale-language-tests: New file.
15294         * tests/unicase/test-locale-language.sh: New file.
15295         * tests/unicase/test-locale-language.c: New file.
15296
15297         New module 'unicase/locale-language'.
15298         * lib/unicase/locale-language.c: New file.
15299         * lib/unicase/locale-languages.gperf: New file.
15300         * modules/unicase/locale-language: New file.
15301
15302         Generate more tables for case conversion and case folding.
15303         * lib/gen-uni-tables.c (SCC_*): New enum items.
15304         (struct special_casing_rule): New type.
15305         (casing_rules, num_casing_rules, allocated_casing_rules): New
15306         variables.
15307         (add_casing_rule, fill_casing_rules): New functions.
15308         (struct casefold_rule): New type.
15309         (casefolding_rules, num_casefolding_rules,
15310         allocated_casefolding_rules): New variables.
15311         (fill_casefolding_rules): New function.
15312         (unicode_casefold): New variable.
15313         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15314         sort_casing_rules, output_casing_rules): New functions.
15315         (main): Accept to more arguments: SpecialCasing.txt and
15316         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15317         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15318         Output mapping for casefolding.
15319
15320         * lib/unicase.h: Include stdbool.h, uninorm.h.
15321         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15322         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15323         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15324         arguments.
15325         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15326         resultp arguments.
15327         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15328         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15329         resultp arguments.
15330         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15331         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15332         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15333         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15334         declarations.
15335         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15336
15337 2009-03-08  Bruno Haible  <bruno@clisp.org>
15338
15339         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15340         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15341         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15342         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15343
15344 2009-03-07  Bruno Haible  <bruno@clisp.org>
15345
15346         Adjust u*_normcmp, u*_normcoll API.
15347         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15348         u16_normcoll, u32_normcoll): Change failure conventions.
15349         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15350         errno and return -1.
15351         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15352
15353 2009-03-07  Bruno Haible  <bruno@clisp.org>
15354
15355         Tests for module 'uninorm/u32-normcoll'.
15356         * modules/uninorm/u32-normcoll-tests: New file.
15357         * tests/uninorm/test-u32-normcoll.c: New file.
15358
15359         Tests for module 'uninorm/u16-normcoll'.
15360         * modules/uninorm/u16-normcoll-tests: New file.
15361         * tests/uninorm/test-u16-normcoll.c: New file.
15362
15363         Tests for module 'uninorm/u8-normcoll'.
15364         * modules/uninorm/u8-normcoll-tests: New file.
15365         * tests/uninorm/test-u8-normcoll.c: New file.
15366
15367 2009-03-07  Bruno Haible  <bruno@clisp.org>
15368
15369         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15370         tests/uninorm/test-u32-normcmp.c.
15371         * tests/uninorm/test-u32-normcmp.c: Include it.
15372         (test_nonascii): New function, extracted from main. Add some more
15373         tests.
15374         (main): Invoke test_ascii and test_nonascii.
15375         * modules/uninorm/u32-normcmp-tests (Files): Add
15376         tests/uninorm/test-u32-normcmp.h.
15377         (Depends-on): Remove uninorm/u32-normcmp.
15378
15379         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15380         tests/uninorm/test-u16-normcmp.c.
15381         * tests/uninorm/test-u16-normcmp.c: Include it.
15382         (test_nonascii): New function, extracted from main. Add some more
15383         tests.
15384         (main): Invoke test_ascii and test_nonascii.
15385         * modules/uninorm/u16-normcmp-tests (Files): Add
15386         tests/uninorm/test-u16-normcmp.h.
15387         (Depends-on): Remove uninorm/u16-normcmp.
15388
15389         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15390         tests/uninorm/test-u8-normcmp.c.
15391         * tests/uninorm/test-u8-normcmp.c: Include it.
15392         (test_nonascii): New function, extracted from main. Add some more
15393         tests.
15394         (main): Invoke test_ascii and test_nonascii.
15395         * modules/uninorm/u8-normcmp-tests (Files): Add
15396         tests/uninorm/test-u8-normcmp.h.
15397         (Depends-on): Remove uninorm/u8-normcmp.
15398
15399 2009-03-07  Bruno Haible  <bruno@clisp.org>
15400
15401         New module 'uninorm/u32-normcoll'.
15402         * lib/uninorm/u32-normcoll.c: New file.
15403         * modules/uninorm/u32-normcoll: New file.
15404
15405         New module 'uninorm/u16-normcoll'.
15406         * lib/uninorm/u16-normcoll.c: New file.
15407         * modules/uninorm/u16-normcoll: New file.
15408
15409         New module 'uninorm/u8-normcoll'.
15410         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15411         declarations.
15412         * lib/uninorm/u8-normcoll.c: New file.
15413         * lib/uninorm/u-normcoll.h: New file.
15414         * modules/uninorm/u8-normcoll: New file.
15415
15416         New module 'uninorm/u32-normxfrm'.
15417         * lib/uninorm/u32-normxfrm.c: New file.
15418         * modules/uninorm/u32-normxfrm: New file.
15419
15420         New module 'uninorm/u16-normxfrm'.
15421         * lib/uninorm/u16-normxfrm.c: New file.
15422         * modules/uninorm/u16-normxfrm: New file.
15423
15424         New module 'uninorm/u8-normxfrm'.
15425         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15426         declarations.
15427         * lib/uninorm/u8-normxfrm.c: New file.
15428         * lib/uninorm/u-normxfrm.h: New file.
15429         * modules/uninorm/u8-normxfrm: New file.
15430
15431 2009-03-07  Bruno Haible  <bruno@clisp.org>
15432
15433         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15434         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15435         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15436
15437 2009-03-07  Bruno Haible  <bruno@clisp.org>
15438
15439         New module 'memxfrm'.
15440         * lib/memxfrm.h: New file.
15441         * lib/memxfrm.c: New file.
15442         * modules/memxfrm: New file.
15443
15444 2009-03-07  Bruno Haible  <bruno@clisp.org>
15445
15446         New module 'memcmp2'.
15447         * lib/memcmp2.h: New file.
15448         * lib/memcmp2.c: New file.
15449         * modules/memcmp2: New file.
15450
15451 2009-03-07  Bruno Haible  <bruno@clisp.org>
15452
15453         Tests for module 'uninorm/decomposing-form'.
15454         * modules/uninorm/decomposing-form-tests: New file.
15455         * tests/uninorm/test-decomposing-form.c: New file.
15456
15457         New module 'uninorm/decomposing-form'.
15458         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15459         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15460         Add 'decomposing_variant' field.
15461         * lib/uninorm/decomposing-form.c: New file.
15462         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15463         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15464         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15465         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15466         * modules/uninorm/decomposing-form: New file.
15467         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15468         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15469
15470 2009-03-07  Bruno Haible  <bruno@clisp.org>
15471
15472         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15473         strings.
15474
15475 2009-03-06  Bruno Haible  <bruno@clisp.org>
15476
15477         Tests for module 'uninorm/u32-normcmp'.
15478         * tests/uninorm/test-u32-normcmp.c: New file.
15479         * modules/uninorm/u32-normcmp-tests: New file.
15480
15481         Tests for module 'uninorm/u16-normcmp'.
15482         * tests/uninorm/test-u16-normcmp.c: New file.
15483         * modules/uninorm/u16-normcmp-tests: New file.
15484
15485         Tests for module 'uninorm/u8-normcmp'.
15486         * tests/uninorm/test-u8-normcmp.c: New file.
15487         * modules/uninorm/u8-normcmp-tests: New file.
15488
15489         New module 'uninorm/u32-normcmp'.
15490         * lib/uninorm/u32-normcmp.c: New file.
15491         * modules/uninorm/u32-normcmp: New file.
15492
15493         New module 'uninorm/u16-normcmp'.
15494         * lib/uninorm/u16-normcmp.c: New file.
15495         * modules/uninorm/u16-normcmp: New file.
15496
15497         New module 'uninorm/u8-normcmp'.
15498         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15499         declarations.
15500         * lib/uninorm/u8-normcmp.c: New file.
15501         * lib/uninorm/u-normcmp.h: New file.
15502         * modules/uninorm/u8-normcmp: New file.
15503
15504 2009-03-06  Bruno Haible  <bruno@clisp.org>
15505
15506         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15507         Reported by Eric Blake.
15508
15509 2009-03-06  Eric Blake  <ebb9@byu.net>
15510             Bruno Haible  <bruno@clisp.org>
15511
15512         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15513         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15514         condition.
15515         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15516         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15517         condition.
15518         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15519
15520 2009-03-06  Eric Blake  <ebb9@byu.net>
15521
15522         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15523         to avoid compiler warnings.
15524         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15525
15526 2009-03-05  Bruno Haible  <bruno@clisp.org>
15527
15528         * tests/test-ftell.c (main): Disable test beyond end of file on
15529         FreeMiNT.
15530         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15531
15532 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15533
15534         * lib/filevercmp.c: Move hidden files up in ordering.
15535         * tests/test-filevercmp.c: Add tests for hidden files.
15536
15537 2009-03-04  Bruno Haible  <bruno@clisp.org>
15538
15539         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15540         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15541         AM_CFLAGS.
15542         Reported by Simon Josefsson.
15543
15544 2009-03-03  Bruno Haible  <bruno@clisp.org>
15545
15546         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15547         Reported by Simon Josefsson.
15548
15549         * doc/ld-version-script.texi: Update node reference.
15550
15551 2009-03-03  Bruno Haible  <bruno@clisp.org>
15552
15553         * modules/visibility (License): Change to 'unlimited'.
15554         Suggested by Simon Josefsson.
15555
15556 2009-03-03  Jim Meyering  <meyering@redhat.com>
15557
15558         unlinkdir: cannot_unlink_dir may modify process state
15559         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15560         it's neither thread-safe nor appropriate for use in a library.
15561
15562 2009-03-03  Eric Blake  <ebb9@byu.net>
15563
15564         test-closein: silence test under Darwin
15565         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15566         care if it dies from EPIPE or EBADF.
15567
15568 2009-03-03  Bruno Haible  <bruno@clisp.org>
15569
15570         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15571         earlier.
15572         * doc/visibility.texi: Fix @node and @section.
15573
15574 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15575
15576         * doc/gnulib.texi: Link to sections for ld version script and
15577         visibility.
15578         * doc/visibility.texi: Add @node and @section.
15579         * modules/ld-version-script: New module.
15580         * m4/ld-version-script.m4: New file.
15581         * doc/ld-version-script.texi: New file.
15582
15583 2009-03-02  David Lutterkort  <lutter@redhat.com>
15584
15585         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15587
15588 2009-03-02  Bruno Haible  <bruno@clisp.org>
15589
15590         * doc/visibility.texi: Mention libtool's -export-symbols option.
15591
15592 2009-03-02  Jim Meyering  <meyering@redhat.com>
15593
15594         announce-gen: new option: --no-print-checksums
15595         * build-aux/announce-gen (usage): Describe it.
15596         (print_checksums): Print a newline here, not in the [*] footnote.
15597         (main): Honor it.
15598
15599 2009-03-01  Bruno Haible  <bruno@clisp.org>
15600
15601         Use socklen_t in the native Windows replacements prototypes.
15602         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15603         instead of 'int'.
15604         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15605         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15606         * modules/getsockopt (Depends-on): Add socklen.
15607         * modules/setsockopt (Depends-on): Add socklen.
15608
15609 2009-03-01  Bruno Haible  <bruno@clisp.org>
15610
15611         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15612         least 4.2.
15613
15614 2009-03-01  Eric Blake  <ebb9@byu.net>
15615             Bruno Haible  <bruno@clisp.org>
15616
15617         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15618         error messages.
15619         * lib/wait-process.c (wait_subprocess): Omit error message about
15620         deadly signal sent to the child of termsigp != NULL.
15621
15622 2009-03-01  Eric Blake  <ebb9@byu.net>
15623
15624         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15625
15626 2009-03-01  Bruno Haible  <bruno@clisp.org>
15627
15628         Avoid a gcc warning.
15629         * tests/test-sched.c (b): Make global.
15630         Reported by Eric Blake.
15631
15632 2009-01-19  Martin Lambers  <marlam@marlam.de>
15633
15634         Provide POSIX semantics for socket timeout options on W32.
15635         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15636         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15637         * modules/setsockopt: Depend on sys_time module for struct timeval.
15638         * modules/getsockopt: Depend on sys_time module for struct timeval.
15639
15640 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15641
15642         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15643         __USE_GNU, for consistency with netdb.in.h.
15644         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15645
15646 2009-03-01  Bruno Haible  <bruno@clisp.org>
15647
15648         More support for FreeMiNT.
15649         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15650         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15651
15652 2009-03-01  Bruno Haible  <bruno@clisp.org>
15653
15654         More support for FreeMiNT.
15655         * lib/fpurge.c (fpurge): Correct last commit.
15656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15657
15658 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15659
15660         Fix unportable awk script in vc-list-files.
15661         * build-aux/vc-list-files: In the replacement awk script, use
15662         substr with a second argument of 1, not zero.
15663         Report by Simon Josefsson.
15664
15665 2009-02-28  Bruno Haible  <bruno@clisp.org>
15666
15667         More support for FreeMiNT.
15668         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15669         to FreeMiNT today.
15670         * lib/fwriting.c (fwriting): Likewise.
15671         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15672
15673 2009-02-28  Bruno Haible  <bruno@clisp.org>
15674
15675         * tests/test-freadseek.c (main): Disable test beyond end of file on
15676         FreeMiNT.
15677         * tests/test-ftello.c (main): Likewise.
15678         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15679
15680 2009-02-28  Bruno Haible  <bruno@clisp.org>
15681
15682         Add tentative support for FreeMiNT.
15683         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15684         * lib/fpurge.c (fpurge): Likewise.
15685         * lib/freadable.c (freadable): Likewise.
15686         * lib/freading.c (freading): Likewise.
15687         * lib/freadptr.c (freadptr): Likewise.
15688         * lib/freadseek.c (freadptrinc): Likewise.
15689         * lib/fseeko.c (rpl_fseeko): Likewise.
15690         * lib/fseterr.c (fseterr): Likewise.
15691         * lib/fwritable.c (fwritable): Likewise.
15692         * lib/fwriting.c (fwriting): Likewise.
15693         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15694         Hourihane.
15695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15696
15697 2009-02-28  Bruno Haible  <bruno@clisp.org>
15698
15699         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15700         SIGCHLD.
15701         Reported by Jim Meyering.
15702
15703 2009-02-28  Bruno Haible  <bruno@clisp.org>
15704
15705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15706         Mention the results of these tests on various platforms.
15707         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15708         order.
15709         * doc/posix-functions/printf.texi: Likewise.
15710         * doc/posix-functions/snprintf.texi: Likewise.
15711         * doc/posix-functions/sprintf.texi: Likewise.
15712         * doc/posix-functions/vfprintf.texi: Likewise.
15713         * doc/posix-functions/vprintf.texi: Likewise.
15714         * doc/posix-functions/vsnprintf.texi: Likewise.
15715         * doc/posix-functions/vsprintf.texi: Likewise.
15716         * doc/glibc-functions/obstack_printf.texi: Likewise.
15717         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15718
15719 2009-02-28  Bruno Haible  <bruno@clisp.org>
15720
15721         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15722         Reported by Loïc Minier <lool@dooz.org>.
15723
15724 2009-02-27  Bruno Haible  <bruno@clisp.org>
15725
15726         * gnulib-tool (func_import): Make the sed expression used to create the
15727         sed script for updating the .gitignore file POSIX compliant.
15728         Reported by Eric Blake.
15729
15730 2009-02-27  Bruno Haible  <bruno@clisp.org>
15731
15732         * gnulib-tool (sed): Don't alias as "sed --posix".
15733         Reported by Eric Blake.
15734
15735 2009-02-27  Bruno Haible  <bruno@clisp.org>
15736
15737         Avoid test link errors.
15738         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15739         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15740         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15741         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15743
15744 2009-02-27  Bruno Haible  <bruno@clisp.org>
15745
15746         Avoid spurious "(cached)" in configure output.
15747         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15748         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15749         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15750         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15751         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15752         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15753         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15754         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15755         Reported by Eric Blake.
15756
15757 2009-02-27  Eric Blake  <ebb9@byu.net>
15758
15759         printf: fix regression in previous patch
15760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15761
15762 2009-02-27  Bruno Haible  <bruno@clisp.org>
15763
15764         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15765         value.
15766         * lib/stdint.in.h: Likewise.
15767         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15768
15769 2009-02-27  Eric Blake  <ebb9@byu.net>
15770
15771         doc: mention more functions added in cygwin 1.7.0
15772         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15773         addition.
15774         * doc/posix-functions/open_wmemstream.texi: Likewise.
15775         * doc/posix-functions/wcsnlen.texi: Likewise.
15776         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15777         * doc/posix-functions/wcstod.texi: Likewise.
15778         * doc/posix-functions/wcstof.texi: Likewise.
15779         * doc/posix-functions/wcstoimax.texi: Likewise.
15780         * doc/posix-functions/wcstok.texi: Likewise.
15781         * doc/posix-functions/wcstoumax.texi: Likewise.
15782
15783         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15785         * doc/posix-functions/fprintf.texi: Update.
15786         * doc/posix-functions/printf.texi: Update.
15787         * doc/posix-functions/snprintf.texi: Update.
15788         * doc/posix-functions/sprintf.texi: Update.
15789         * doc/posix-functions/vfprintf.texi: Update.
15790         * doc/posix-functions/vprintf.texi: Update.
15791         * doc/posix-functions/vsnprintf.texi: Update.
15792         * doc/posix-functions/vsprintf.texi: Update.
15793         * doc/glibc-functions/obstack_printf.texi: Update.
15794         * doc/glibc-functions/obstack_vprintf.texi: Update.
15795
15796 2009-02-26  Eric Blake  <ebb9@byu.net>
15797
15798         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15799         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15800         compilation bug by using runtime conversion.
15801         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15802         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15803         * modules/ceill-tests (Files): Use nan.h.
15804         * modules/floorl-tests (Files): Likewise.
15805         * modules/frexpl-tests (Files): Likewise.
15806         * modules/isnanl-tests (Files): Likewise.
15807         * modules/ldexpl-tests (Files): Likewise.
15808         * modules/roundl-tests (Files): Likewise.
15809         * modules/truncl-tests (Files): Likewise.
15810         * tests/test-ceill.c (main): Use a working NaN.
15811         * tests/test-floorl.c (main): Likewise.
15812         * tests/test-frexpl.c (main): Likewise.
15813         * tests/test-isnan.c (test_long_double): Likewise.
15814         * tests/test-isnanl.h (main): Likewise.
15815         * tests/test-ldexpl.h (main): Likewise.
15816         * tests/test-roundl.h (main): Likewise.
15817         * tests/test-truncl.h (main): Likewise.
15818         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15819
15820 2009-02-26  Eric Blake  <ebb9@byu.net>
15821             Bruno Haible  <bruno@clisp.org>
15822
15823         Work around a *printf bug with %ls on Solaris.
15824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15825         precision is specified, sprintf stops converting the wide string
15826         argument when the number of bytes that have been produced by this
15827         conversion equals or exceeds the precision.
15828         * doc/posix-functions/fprintf.texi: Update.
15829         * doc/posix-functions/printf.texi: Update.
15830         * doc/posix-functions/snprintf.texi: Update.
15831         * doc/posix-functions/sprintf.texi: Update.
15832         * doc/posix-functions/vfprintf.texi: Update.
15833         * doc/posix-functions/vprintf.texi: Update.
15834         * doc/posix-functions/vsnprintf.texi: Update.
15835         * doc/posix-functions/vsprintf.texi: Update.
15836         * doc/glibc-functions/obstack_printf.texi: Update.
15837         * doc/glibc-functions/obstack_vprintf.texi: Update.
15838
15839 2009-02-26  Eric Blake  <ebb9@byu.net>
15840
15841         stdlib: favor compiler check of random.h
15842         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15843         to avoid an ObjC random.h installed by Swarm.
15844
15845 2009-02-26  Bruno Haible  <bruno@clisp.org>
15846
15847         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15848         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15849         Reported by Gary V. Vaughan <gary@gnu.org>.
15850
15851 2009-02-26  Bruno Haible  <bruno@clisp.org>
15852
15853         Fix *printf behaviour regarding the %ls directive.
15854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15855         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15856         NEED_PRINTF_DIRECTIVE_LS.
15857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15858         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15860         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15861         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15862         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15863         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15868         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15870         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15871         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15872         * doc/posix-functions/fprintf.texi: Update.
15873         * doc/posix-functions/printf.texi: Update.
15874         * doc/posix-functions/snprintf.texi: Update.
15875         * doc/posix-functions/sprintf.texi: Update.
15876         * doc/posix-functions/vfprintf.texi: Update.
15877         * doc/posix-functions/vprintf.texi: Update.
15878         * doc/posix-functions/vsnprintf.texi: Update.
15879         * doc/posix-functions/vsprintf.texi: Update.
15880         * doc/glibc-functions/obstack_printf.texi: Update.
15881         * doc/glibc-functions/obstack_vprintf.texi: Update.
15882         Reported by Eric Blake.
15883
15884 2009-02-25  Bruno Haible  <bruno@clisp.org>
15885
15886         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15887         with known value.
15888         Reported by Gary V. Vaughan <gary@gnu.org>.
15889
15890 2009-02-25  Bruno Haible  <bruno@clisp.org>
15891
15892         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15893         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15894         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15895         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15896         Reported by Gary V. Vaughan <gary@gnu.org>.
15897
15898 2009-02-25  Bruno Haible  <bruno@clisp.org>
15899
15900         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15901         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15902         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15903         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15904         Reported by Gary V. Vaughan <gary@gnu.org>.
15905
15906 2009-02-25  Eric Blake  <ebb9@byu.net>
15907
15908         tests: skip fseek/ftell tests if ungetc is broken
15909         * m4/ungetc.m4: New file.
15910         * modules/fseek-tests: Split test, so ungetc dependency is
15911         separate from rest of test.
15912         * modules/fseeko-tests: Likewise.
15913         * modules/ftell-tests: Likewise.
15914         * modules/ftello-tests: Likewise.
15915         * tests/test-fseek.c (main): Isolate ungetc dependency.
15916         * tests/test-fseeko.c (main): Likewise.
15917         * tests/test-ftell.c (main): Likewise.
15918         * tests/test-ftello.c (main): Likewise.
15919         * tests/test-fseek2.sh: New file.
15920         * tests/test-fseeko2.sh: Likewise.
15921         * tests/test-ftell2.sh: Likewise.
15922         * tests/test-ftello2.sh: Likewise.
15923
15924 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15925
15926         test-getaddrinfo: fix usage of skip return code 77
15927         * tests/test-gettaddrinfo.c: Return skip code 77 only
15928         for first occurance of skip (4x77 is not 77)
15929
15930 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15931
15932         strtod: avoid C99 decl-after-statement
15933         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15934
15935 2009-02-24  Eric Blake  <ebb9@byu.net>
15936
15937         strtod: detect HP-UX 11.31 bug
15938         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15939         Reported by Gary V. Vaughan.
15940
15941 2009-02-23  Bruno Haible  <bruno@clisp.org>
15942
15943         Fix invalid read past end of memory block.
15944         * lib/vasnprintf.c (DCHAR_SET): Define.
15945         (local_wcslen): Define only when needed.
15946         (local_strnlen, local_wcsnlen): New functions.
15947         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15948         directives that involve a conversion ourselves.
15949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15950         wcsnlen, mbrtowc, wcrtomb.
15951         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15952         * tests/test-vasprintf-posix.c (test_function): Likewise.
15953         * tests/test-snprintf-posix.h (test_function): Likewise.
15954         * tests/test-sprintf-posix.h (test_function): Likewise.
15955         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15956
15957 2009-02-22  Bruno Haible  <bruno@clisp.org>
15958
15959         Implement new clarified decomposition of Hangul syllables.
15960         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15961         of type LTV, return only a pairwise decomposition.
15962         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15963         Likewise.
15964         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15965         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15966         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15967
15968 2009-02-22  Bruno Haible  <bruno@clisp.org>
15969
15970         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15971         zero-length results and shrink excess allocated memory.
15972         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15973         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15974         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15975         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15976         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15977         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15978         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15979         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15980         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15981         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15982         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15983         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15984
15985 2009-02-21  Bruno Haible  <bruno@clisp.org>
15986
15987         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15988         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15989         spaces after a period. Put a space between a macro name and its
15990         argument list. Trivial rewordings.
15991         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15992         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15993         (main): Return 0 explicitly.
15994
15995 2009-02-21  Bruno Haible  <bruno@clisp.org>
15996
15997         Tests for module 'uninorm/filter'.
15998         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15999         * modules/uninorm/filter-tests: New file.
16000
16001         New module 'uninorm/filter'.
16002         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16003         uninorm_filter_flush, uninorm_filter_free): New declarations.
16004         * lib/uninorm/uninorm-filter.c: New file.
16005         * modules/uninorm/filter: New file.
16006
16007 2009-02-21  Bruno Haible  <bruno@clisp.org>
16008
16009         Tests for module 'uninorm/nfkc'.
16010         * tests/uninorm/test-nfkc.c: New file.
16011         * tests/uninorm/test-u8-nfkc.c: New file.
16012         * tests/uninorm/test-u16-nfkc.c: New file.
16013         * tests/uninorm/test-u32-nfkc.c: New file.
16014         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16015         * tests/uninorm/test-u32-nfkc-big.c: New file.
16016         * modules/uninorm/nfkc-tests: New file.
16017
16018         New module 'uninorm/nfkc'.
16019         * lib/uninorm/nfkc.c: New file.
16020         * modules/uninorm/nfkc: New file.
16021
16022         Tests for module 'uninorm/nfkd'.
16023         * tests/uninorm/test-nfkd.c: New file.
16024         * tests/uninorm/test-u8-nfkd.c: New file.
16025         * tests/uninorm/test-u16-nfkd.c: New file.
16026         * tests/uninorm/test-u32-nfkd.c: New file.
16027         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16028         * tests/uninorm/test-u32-nfkd-big.c: New file.
16029         * modules/uninorm/nfkd-tests: New file.
16030
16031         New module 'uninorm/nfkd'.
16032         * lib/uninorm/nfkd.c: New file.
16033         * modules/uninorm/nfkd: New file.
16034
16035         Tests for module 'uninorm/nfc'.
16036         * tests/uninorm/test-nfc.c: New file.
16037         * tests/uninorm/test-u8-nfc.c: New file.
16038         * tests/uninorm/test-u16-nfc.c: New file.
16039         * tests/uninorm/test-u32-nfc.c: New file.
16040         * tests/uninorm/test-u32-nfc-big.sh: New file.
16041         * tests/uninorm/test-u32-nfc-big.c: New file.
16042         * modules/uninorm/nfc-tests: New file.
16043
16044         New module 'uninorm/nfc'.
16045         * lib/uninorm/nfc.c: New file.
16046         * modules/uninorm/nfc: New file.
16047
16048         Tests for module 'uninorm/nfd'.
16049         * tests/uninorm/test-nfd.c: New file.
16050         * tests/uninorm/test-u8-nfd.c: New file.
16051         * tests/uninorm/test-u16-nfd.c: New file.
16052         * tests/uninorm/test-u32-nfd.c: New file.
16053         * tests/uninorm/test-u32-nfd-big.sh: New file.
16054         * tests/uninorm/test-u32-nfd-big.c: New file.
16055         * tests/uninorm/test-u32-normalize-big.h: New file.
16056         * tests/uninorm/test-u32-normalize-big.c: New file.
16057         * tests/uninorm/NormalizationTest.txt: New file, created from
16058         Unicode 5.1.0 NormalizationTest.txt.
16059         * modules/uninorm/nfd-tests: New file.
16060
16061         New module 'uninorm/nfd'.
16062         * lib/uninorm/nfd.c: New file.
16063         * modules/uninorm/nfd: New file.
16064
16065         New module 'uninorm/u32-normalize'.
16066         * lib/uninorm/u32-normalize.c: New file.
16067         * modules/uninorm/u32-normalize: New file.
16068
16069         New module 'uninorm/u16-normalize'.
16070         * lib/uninorm/u16-normalize.c: New file.
16071         * modules/uninorm/u16-normalize: New file.
16072
16073         New module 'uninorm/u8-normalize'.
16074         * lib/uninorm/u8-normalize.c: New file.
16075         * lib/uninorm/normalize-internal.h: New file.
16076         * lib/uninorm/u-normalize-internal.h: New file.
16077         * modules/uninorm/u8-normalize: New file.
16078
16079         New module 'uninorm/decompose-internal'.
16080         * lib/uninorm/decompose-internal.c: New file.
16081         * modules/uninorm/decompose-internal: New file.
16082
16083         Tests for module 'uninorm/composition'.
16084         * tests/uninorm/test-composition.c: New file.
16085         * modules/uninorm/composition-tests: New file.
16086
16087         New module 'uninorm/composition'.
16088         * lib/uninorm/composition.c: New file.
16089         * lib/uninorm/composition-table.gperf: New file, generated by
16090         gen-uni-tables.
16091         * modules/uninorm/composition: New file.
16092
16093         Tests for module 'uninorm/compat-decomposition'.
16094         * tests/uninorm/test-compat-decomposition.c: New file.
16095         * modules/uninorm/compat-decomposition-tests: New file.
16096
16097         New module 'uninorm/compat-decomposition'.
16098         * lib/uninorm/decompose-internal.h: New file.
16099         * lib/uninorm/compat-decomposition.c: New file.
16100         * modules/uninorm/compat-decomposition: New file.
16101
16102         Tests for module 'uninorm/canonical-decomposition'.
16103         * tests/uninorm/test-canonical-decomposition.c: New file.
16104         * modules/uninorm/canonical-decomposition-tests: New file.
16105
16106         New module 'uninorm/canonical-decomposition'.
16107         * lib/uninorm/canonical-decomposition.c: New file.
16108         * modules/uninorm/canonical-decomposition: New file.
16109
16110         Tests for module 'uninorm/decomposition'.
16111         * tests/uninorm/test-decomposition.c: New file.
16112         * modules/uninorm/decomposition-tests: New file.
16113
16114         New module 'uninorm/decomposition'.
16115         * lib/uninorm/decomposition.c: New file.
16116         * modules/uninorm/decomposition: New file.
16117
16118         New module 'uninorm/decomposition-table'.
16119         * lib/uninorm/decomposition-table.h: New file.
16120         * lib/uninorm/decomposition-table.c: New file.
16121         * lib/uninorm/decomposition-table1.h: New file, generated by
16122         gen-uni-tables.
16123         * lib/uninorm/decomposition-table2.h: New file, generated by
16124         gen-uni-tables.
16125         * modules/uninorm/decomposition-table: New file.
16126
16127         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16128         (UC_DECOMP_*): New enumeration items.
16129         (get_decomposition): New function.
16130         (struct decomp_table): New type.
16131         (output_decomposition, output_decomposition_tables): New functions.
16132         (unicode_composition_exclusions): New variable.
16133         (fill_composition_exclusions, debug_output_composition_tables): New
16134         functions.
16135         (main): Accept one more argument. Invoke fill_composition_exclusions.
16136         Output decomposition and composition tables.
16137
16138         New module 'uninorm/base'.
16139         * lib/uninorm.h: New file.
16140         * lib/unictype.h: Update comment.
16141         * modules/uninorm/base: New file.
16142
16143 2009-02-21  David Lutterkort  <lutter@redhat.com>
16144
16145         Tests for module 'safe-alloc'.
16146         * tests/test-safe-alloc.c: New file.
16147         * modules/safe-alloc-tests: New file.
16148
16149         New module 'safe-alloc'.
16150         * lib/safe-alloc.h: New file.
16151         * lib/safe-alloc.c: New file.
16152         * m4/safe-alloc.m4: New file.
16153         * modules/safe-alloc: New file.
16154         * doc/safe-alloc.texi: New file.
16155         * doc/gnulib.texi: Include it.
16156         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16157         safe-alloc.
16158
16159 2009-02-18  Bruno Haible  <bruno@clisp.org>
16160
16161         Fix link error on non-glibc systems.
16162         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16163         variable.
16164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16165
16166 2009-02-18  Jim Meyering  <meyering@redhat.com>
16167
16168         fts: avoid used-uninitialized error due to recent change
16169         * lib/fts.c (fts_read): Guard uses of the new member,
16170         parent->fts_n_dirs_remaining, since it's not relevant for
16171         the parent of a directory specified on the command-line.
16172
16173 2009-02-17  James Youngman  <jay@gnu.org>
16174             Bruno Haible  <bruno@clisp.org>
16175
16176         * m4/include_next.m4: Reformulate comment.
16177
16178 2009-02-16  Jim Meyering  <meyering@redhat.com>
16179
16180         fts: add #if guards so that the fts_lgpl module still builds
16181         * lib/fts.c: Guard just-added hash-table-using parts with
16182         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16183         Reported by Simon Josefsson.
16184
16185 2009-02-15  Bruno Haible  <bruno@clisp.org>
16186
16187         * modules/array-mergesort-tests: New file.
16188         * tests/test-array-mergesort.c: New file.
16189
16190         New module 'array-mergesort'.
16191         * modules/array-mergesort: New file.
16192         * lib/array-mergesort.h: New file.
16193
16194 2009-02-15  Bruno Haible  <bruno@clisp.org>
16195
16196         Fix 2009-02-07 commit.
16197         * lib/gen-uni-tables.c (output_predicate, output_category,
16198         output_combclass, output_bidi_category, output_decimal_digit,
16199         output_digit, output_numeric, output_mirror, output_scripts,
16200         output_ident_category, output_simple_mapping): Fix format directives.
16201         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16202
16203 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16204
16205         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16206         fixes are available from IBM.
16207
16208 2009-02-13  Jim Meyering  <meyering@redhat.com>
16209
16210         fts: arrange not to stat non-directories in more cases
16211         This makes GNU find (when it doesn't need to stat each file)
16212         *much* more efficient at traversing reiserfs file systems.
16213         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16214         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16215         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16216         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16217         (leaf_optimization_applies): New function.
16218         (LCO_hash, LCO_compare): New helper functions.
16219         (link_count_optimize_ok): New function.
16220         (fts_stat): Initialize new member (if dir).
16221         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16222         we've just stat'ed a directory.  Skip the stat call when possible.
16223         ---
16224         Note this AFS-related exchange:
16225         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16226         and note find's pioctl call in find/fstype.c.
16227         But that is necessary only if you want to enable the
16228         optimization for AFS, and for now, I don't.
16229
16230         fts: move a function definition "up" (no semantic change)
16231         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16232         "up" to precede upcoming use of a related function.
16233
16234 2009-02-11  Jim Meyering  <meyering@redhat.com>
16235
16236         fts: correct internal computation of nlinks (optimization-related)
16237         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16238         whether the current entry is a directory, so don't test it.
16239
16240 2009-02-10  Bruno Haible  <bruno@clisp.org>
16241
16242         Tests for module 'uniwbrk/ulc-wordbreaks'.
16243         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16244         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16245         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16246
16247         Tests for module 'uniwbrk/u32-wordbreaks'.
16248         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16249         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16250
16251         Tests for module 'uniwbrk/u16-wordbreaks'.
16252         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16253         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16254
16255         Tests for module 'uniwbrk/u8-wordbreaks'.
16256         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16257         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16258
16259 2009-02-10  Bruno Haible  <bruno@clisp.org>
16260
16261         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16262         property.
16263         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16264         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16265         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16266
16267 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16268
16269         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16270         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16271
16272 2009-02-10  Bruno Haible  <bruno@clisp.org>
16273
16274         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16275         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16276         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16277         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16278         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16279         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16280
16281 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16282
16283         * lib/sockets.h (gl_fd_to_handle): New function.
16284
16285         * tests/test-sockets.c: Call gl_fd_to_handle.
16286
16287 2009-02-09  Bruno Haible  <bruno@clisp.org>
16288
16289         * doc/havelib.texi: Document the conventions on bi-arch systems.
16290
16291 2009-02-08  Bruno Haible  <bruno@clisp.org>
16292
16293         Document the AC_LIB_LINKFLAGS macro.
16294         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16295         * doc/gnulib.texi: Include it.
16296
16297 2009-02-08  Bruno Haible  <bruno@clisp.org>
16298
16299         Fix wrong order of sections, compared to TOC.
16300         * doc/gnulib.texi: Include relocatable-maint.texi after the
16301         "Regular expressions" node, not before.
16302
16303 2009-02-08  Bruno Haible  <bruno@clisp.org>
16304
16305         Tests for module 'unicase/totitle'.
16306         * modules/unicase/totitle-tests: New file.
16307
16308         Tests for module 'unicase/tolower'.
16309         * modules/unicase/tolower-tests: New file.
16310
16311         Tests for module 'unicase/toupper'.
16312         * modules/unicase/toupper-tests: New file.
16313         * tests/unicase/test-mapping-part1.h: New file.
16314         * tests/unicase/test-mapping-part2.h: New file.
16315
16316         New module 'unicase/totitle'.
16317         * modules/unicase/totitle: New file.
16318         * lib/unicase/totitle.c: New file.
16319
16320         New module 'unicase/tolower'.
16321         * modules/unicase/tolower: New file.
16322         * lib/unicase/tolower.c: New file.
16323
16324         New module 'unicase/toupper'.
16325         * modules/unicase/toupper: New file.
16326         * lib/unicase/toupper.c: New file.
16327         * lib/unicase/simple-mapping.h: New file.
16328
16329         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16330         (mapping_table): New structure.
16331         (output_simple_mapping): New function.
16332         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16333         * modules/gen-uni-tables (Description): Update.
16334         * lib/unicase/toupper.h: New file, automatically generated by
16335         gen-uni-tables.
16336         * lib/unicase/tolower.h: New file, automatically generated by
16337         gen-uni-tables.
16338         * lib/unicase/totitle.h: New file, automatically generated by
16339         gen-uni-tables.
16340         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16341         gen-uni-tables.
16342         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16343         gen-uni-tables.
16344         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16345         gen-uni-tables.
16346
16347         New module 'unicase/base'.
16348         * modules/unicase/base: New file.
16349         * lib/unicase.h: New file.
16350
16351 2009-02-08  Bruno Haible  <bruno@clisp.org>
16352
16353         New module 'uniwbrk/ulc-wordbreaks'.
16354         * modules/uniwbrk/ulc-wordbreaks: New file.
16355         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16356
16357         New module 'uniwbrk/u32-wordbreaks'.
16358         * modules/uniwbrk/u32-wordbreaks: New file.
16359         * lib/uniwbrk/u32-wordbreaks.c: New file.
16360
16361         New module 'uniwbrk/u16-wordbreaks'.
16362         * modules/uniwbrk/u16-wordbreaks: New file.
16363         * lib/uniwbrk/u16-wordbreaks.c: New file.
16364
16365         New module 'uniwbrk/u8-wordbreaks'.
16366         * modules/uniwbrk/u8-wordbreaks: New file.
16367         * lib/uniwbrk/u8-wordbreaks.c: New file.
16368         * lib/uniwbrk/u-wordbreaks.h: New file.
16369
16370         New module 'uniwbrk/table'.
16371         * modules/uniwbrk/table: New file.
16372         * lib/uniwbrk/wbrktable.h: New file.
16373         * lib/uniwbrk/wbrktable.c: New file.
16374
16375         New module 'uniwbrk/wordbreak-property'.
16376         * modules/uniwbrk/wordbreak-property: New file.
16377         * lib/uniwbrk/wordbreak-property.c: New file.
16378
16379         * lib/gen-uni-tables.c (WBP_*): New enum items.
16380         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16381         (unicode_org_wbp): New variable.
16382         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16383         New functions.
16384         (wbp_table): New structure.
16385         (output_wbp, output_wbrk_tables): New functions.
16386         (main): Accept additional argument. Invoke fill_org_wbp,
16387         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16388         output_wbrk_tables.
16389         * modules/gen-uni-tables (Description): Update.
16390         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16391         gen-uni-tables.
16392
16393         New module 'uniwbrk/base'.
16394         * modules/uniwbrk/base: New file.
16395         * lib/uniwbrk.h: New file.
16396
16397 2009-02-08  Bruno Haible  <bruno@clisp.org>
16398
16399         Update to Unicode 5.1.0.
16400         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16401         U+2185..U+2188.
16402         (is_property_default_ignorable_code_point): Don't include characters
16403         of category Cc or Cs and not-a-characters.
16404         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16405         U+0D79, U+109E, U+109F, U+A60C.
16406         * lib/unictype/bidi_of.h: Regenerated.
16407         * lib/unictype/blocks.h: Regenerated.
16408         * lib/unictype/categ_C.h: Regenerated.
16409         * lib/unictype/categ_Cf.h: Regenerated.
16410         * lib/unictype/categ_Cn.h: Regenerated.
16411         * lib/unictype/categ_L.h: Regenerated.
16412         * lib/unictype/categ_Ll.h: Regenerated.
16413         * lib/unictype/categ_Lm.h: Regenerated.
16414         * lib/unictype/categ_Lo.h: Regenerated.
16415         * lib/unictype/categ_Lu.h: Regenerated.
16416         * lib/unictype/categ_M.h: Regenerated.
16417         * lib/unictype/categ_Mc.h: Regenerated.
16418         * lib/unictype/categ_Me.h: Regenerated.
16419         * lib/unictype/categ_Mn.h: Regenerated.
16420         * lib/unictype/categ_N.h: Regenerated.
16421         * lib/unictype/categ_Nd.h: Regenerated.
16422         * lib/unictype/categ_Nl.h: Regenerated.
16423         * lib/unictype/categ_No.h: Regenerated.
16424         * lib/unictype/categ_P.h: Regenerated.
16425         * lib/unictype/categ_Pd.h: Regenerated.
16426         * lib/unictype/categ_Pe.h: Regenerated.
16427         * lib/unictype/categ_Pf.h: Regenerated.
16428         * lib/unictype/categ_Pi.h: Regenerated.
16429         * lib/unictype/categ_Po.h: Regenerated.
16430         * lib/unictype/categ_Ps.h: Regenerated.
16431         * lib/unictype/categ_S.h: Regenerated.
16432         * lib/unictype/categ_Sk.h: Regenerated.
16433         * lib/unictype/categ_Sm.h: Regenerated.
16434         * lib/unictype/categ_So.h: Regenerated.
16435         * lib/unictype/categ_of.h: Regenerated.
16436         * lib/unictype/combining.h: Regenerated.
16437         * lib/unictype/ctype_alnum.h: Regenerated.
16438         * lib/unictype/ctype_alpha.h: Regenerated.
16439         * lib/unictype/ctype_graph.h: Regenerated.
16440         * lib/unictype/ctype_lower.h: Regenerated.
16441         * lib/unictype/ctype_print.h: Regenerated.
16442         * lib/unictype/ctype_punct.h: Regenerated.
16443         * lib/unictype/ctype_upper.h: Regenerated.
16444         * lib/unictype/decdigit.h: Regenerated.
16445         * lib/unictype/digit.h: Regenerated.
16446         * lib/unictype/mirror.h: Regenerated.
16447         * lib/unictype/numeric.h: Regenerated.
16448         * lib/unictype/pr_alphabetic.h: Regenerated.
16449         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16450         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16451         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16452         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16453         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16454         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16455         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16456         * lib/unictype/pr_combining.h: Regenerated.
16457         * lib/unictype/pr_dash.h: Regenerated.
16458         * lib/unictype/pr_decimal_digit.h: Regenerated.
16459         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16460         * lib/unictype/pr_deprecated.h: Regenerated.
16461         * lib/unictype/pr_diacritic.h: Regenerated.
16462         * lib/unictype/pr_extender.h: Regenerated.
16463         * lib/unictype/pr_format_control.h: Regenerated.
16464         * lib/unictype/pr_grapheme_base.h: Regenerated.
16465         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16466         * lib/unictype/pr_grapheme_link.h: Regenerated.
16467         * lib/unictype/pr_id_continue.h: Regenerated.
16468         * lib/unictype/pr_id_start.h: Regenerated.
16469         * lib/unictype/pr_ideographic.h: Regenerated.
16470         * lib/unictype/pr_ignorable_control.h: Regenerated.
16471         * lib/unictype/pr_lowercase.h: Regenerated.
16472         * lib/unictype/pr_math.h: Regenerated.
16473         * lib/unictype/pr_numeric.h: Regenerated.
16474         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16475         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16476         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16477         * lib/unictype/pr_other_id_continue.h: Regenerated.
16478         * lib/unictype/pr_other_lowercase.h: Regenerated.
16479         * lib/unictype/pr_other_math.h: Regenerated.
16480         * lib/unictype/pr_punctuation.h: Regenerated.
16481         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16482         * lib/unictype/pr_soft_dotted.h: Regenerated.
16483         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16484         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16485         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16486         * lib/unictype/pr_uppercase.h: Regenerated.
16487         * lib/unictype/pr_xid_continue.h: Regenerated.
16488         * lib/unictype/pr_xid_start.h: Regenerated.
16489         * lib/unictype/pr_zero_width.h: Regenerated.
16490         * lib/unictype/scripts.h: Regenerated.
16491         * lib/unictype/scripts_byname.gperf: Regenerated.
16492         * lib/unictype/sy_java_ident.h: Regenerated.
16493         * lib/unilbrk/lbrkprop1.h: Regenerated.
16494         * lib/unilbrk/lbrkprop2.h: Regenerated.
16495         * tests/unictype/test-categ_C.c: Regenerated.
16496         * tests/unictype/test-categ_Cf.c: Regenerated.
16497         * tests/unictype/test-categ_Cn.c: Regenerated.
16498         * tests/unictype/test-categ_L.c: Regenerated.
16499         * tests/unictype/test-categ_Ll.c: Regenerated.
16500         * tests/unictype/test-categ_Lm.c: Regenerated.
16501         * tests/unictype/test-categ_Lo.c: Regenerated.
16502         * tests/unictype/test-categ_Lu.c: Regenerated.
16503         * tests/unictype/test-categ_M.c: Regenerated.
16504         * tests/unictype/test-categ_Mc.c: Regenerated.
16505         * tests/unictype/test-categ_Me.c: Regenerated.
16506         * tests/unictype/test-categ_Mn.c: Regenerated.
16507         * tests/unictype/test-categ_N.c: Regenerated.
16508         * tests/unictype/test-categ_Nd.c: Regenerated.
16509         * tests/unictype/test-categ_Nl.c: Regenerated.
16510         * tests/unictype/test-categ_No.c: Regenerated.
16511         * tests/unictype/test-categ_P.c: Regenerated.
16512         * tests/unictype/test-categ_Pd.c: Regenerated.
16513         * tests/unictype/test-categ_Pe.c: Regenerated.
16514         * tests/unictype/test-categ_Pf.c: Regenerated.
16515         * tests/unictype/test-categ_Pi.c: Regenerated.
16516         * tests/unictype/test-categ_Po.c: Regenerated.
16517         * tests/unictype/test-categ_Ps.c: Regenerated.
16518         * tests/unictype/test-categ_S.c: Regenerated.
16519         * tests/unictype/test-categ_Sk.c: Regenerated.
16520         * tests/unictype/test-categ_Sm.c: Regenerated.
16521         * tests/unictype/test-categ_So.c: Regenerated.
16522         * tests/unictype/test-ctype_alnum.c: Regenerated.
16523         * tests/unictype/test-ctype_alpha.c: Regenerated.
16524         * tests/unictype/test-ctype_graph.c: Regenerated.
16525         * tests/unictype/test-ctype_lower.c: Regenerated.
16526         * tests/unictype/test-ctype_print.c: Regenerated.
16527         * tests/unictype/test-ctype_punct.c: Regenerated.
16528         * tests/unictype/test-ctype_upper.c: Regenerated.
16529         * tests/unictype/test-decdigit.h: Regenerated.
16530         * tests/unictype/test-digit.h: Regenerated.
16531         * tests/unictype/test-numeric.h: Regenerated.
16532         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16533         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16534         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16535         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16536         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16537         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16538         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16539         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16540         * tests/unictype/test-pr_combining.c: Regenerated.
16541         * tests/unictype/test-pr_dash.c: Regenerated.
16542         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16543         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16544         * tests/unictype/test-pr_deprecated.c: Regenerated.
16545         * tests/unictype/test-pr_diacritic.c: Regenerated.
16546         * tests/unictype/test-pr_extender.c: Regenerated.
16547         * tests/unictype/test-pr_format_control.c: Regenerated.
16548         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16549         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16550         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16551         * tests/unictype/test-pr_id_continue.c: Regenerated.
16552         * tests/unictype/test-pr_id_start.c: Regenerated.
16553         * tests/unictype/test-pr_ideographic.c: Regenerated.
16554         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16555         * tests/unictype/test-pr_lowercase.c: Regenerated.
16556         * tests/unictype/test-pr_math.c: Regenerated.
16557         * tests/unictype/test-pr_numeric.c: Regenerated.
16558         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16559         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16560         Regenerated.
16561         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16562         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16563         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16564         * tests/unictype/test-pr_other_math.c: Regenerated.
16565         * tests/unictype/test-pr_punctuation.c: Regenerated.
16566         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16567         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16568         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16569         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16570         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16571         * tests/unictype/test-pr_uppercase.c: Regenerated.
16572         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16573         * tests/unictype/test-pr_xid_start.c: Regenerated.
16574         * tests/unictype/test-pr_zero_width.c: Regenerated.
16575
16576         Update to Unicode 5.1.0.
16577         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16578         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16579         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16580         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16581         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16582         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16583         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16584         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16585         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16586         (nonspacing_table_ind): Update.
16587         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16588
16589         Update to Unicode 5.1.0.
16590         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16591         code transform.
16592         * lib/uniname/uniname.c (unicode_character_name,
16593         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16594         * lib/uniname/uninames.h: Regenerated.
16595         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16596
16597 2009-02-07  Bruno Haible  <bruno@clisp.org>
16598
16599         Merge gen-ctype and gen-lbrk into a single program.
16600         * lib/gen-uni-tables.c: New file, incorporating
16601         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16602         Add directory prefixes to the names of the generated files.
16603         * lib/unictype/gen-ctype.c: Remove file.
16604         * lib/unilbrk/gen-lbrk.c: Remove file.
16605         * modules/gen-uni-tables: New file.
16606         * modules/unictype/gen-ctype: Remove file.
16607         * modules/unilbrk/gen-lbrk: Remove file.
16608
16609 2009-02-07  Bruno Haible  <bruno@clisp.org>
16610
16611         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16612
16613         New module 'unistr/u32-strcoll'.
16614         * modules/unistr/u32-strcoll: New file.
16615         * lib/unistr/u32-strcoll.c: New file.
16616
16617         New module 'unistr/u16-strcoll'.
16618         * modules/unistr/u16-strcoll: New file.
16619         * lib/unistr/u16-strcoll.c: New file.
16620
16621         New module 'unistr/u8-strcoll'.
16622         * modules/unistr/u8-strcoll: New file.
16623         * lib/unistr/u8-strcoll.c: New file.
16624         * lib/unistr/u-strcoll.h: New file.
16625
16626 2009-02-07  Bruno Haible  <bruno@clisp.org>
16627
16628         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16629         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16630         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16631         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16632         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16633         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16634
16635 2009-02-07  Bruno Haible  <bruno@clisp.org>
16636
16637         Make 64-bit clean.
16638         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16639         output_combclass, output_bidi_category, output_decimal_digit,
16640         output_digit, output_numeric, output_mirror, output_scripts,
16641         output_ident_category): Use proper width specifier in format strings.
16642
16643 2009-02-07  Bruno Haible  <bruno@clisp.org>
16644
16645         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16646         failure behaviour.
16647
16648 2009-02-07  Jim Meyering  <meyering@redhat.com>
16649
16650         regex: avoid compilation failure with upcoming gcc-4.4
16651         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16652         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16653         "... error: integer overflow in preprocessor expression".
16654
16655 2009-02-05  Ben Pfaff  <blp@gnu.org>
16656
16657         Fix link errors on Windows when close module is used.
16658         * modules/close: Add $(LIB_CLOSE) to Link section.
16659         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16660         $(LIB_CLOSE) on Windows.
16661
16662 2009-02-05  Jim Meyering  <meyering@redhat.com>
16663
16664         still avoid unused-parameter warnings, but do it cleanly
16665         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16666         (get_fs_usage): Cast to void instead.
16667         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16668         (dev_from_mount_options, read_file_system_list): Cast to void.
16669         Prompted by Bruno Haible.
16670
16671 2009-02-04  Jim Meyering  <meyering@redhat.com>
16672
16673         fsusage.c: correct copyright year
16674         * lib/fsusage.c: Reflect year in which the change is pushed into
16675
16676         avoid misc. warnings
16677         * lib/fsusage.c (UNUSED_PARAM): Define.
16678         (get_fs_usage): Mark parameter "disk" as unused.
16679         * lib/getugroups.c (getgrent): Use "void" in prototype.
16680         * lib/mountlist.c: Mark unused parameters.
16681         (read_file_system_list): Declare a local with "const".
16682         * lib/nanosleep.c (getnow): Declare static.
16683         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16684
16685         dirfd: set errno upon failure
16686         * lib/dirfd.c: Include <errno.h>.
16687         Set errno to ENOTSUP when returning -1.
16688         * modules/dirfd (Depends-on): Add errno.
16689         Suggested by John Kodis <kodis@comcast.net>.
16690
16691 2009-02-01  Bruno Haible  <bruno@clisp.org>
16692
16693         Don't assume sizeof (long) >= sizeof (void *).
16694         * lib/memcmp.c: Include stdint.h.
16695         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16696         srcp2 to 'const byte *'.
16697         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16698         types to uintptr_t.
16699         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16700         * modules/memcmp (Depends-on): Add stdint.
16701         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16702
16703 2009-01-30  Eric Blake  <ebb9@byu.net>
16704
16705         fix more require-before-expand issues
16706         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16707         expand, AC_PROG_AWK.
16708         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16709
16710 2009-01-28  Eric Blake  <ebb9@byu.net>
16711
16712         version-etc: use consistent URL formatting
16713         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16714         Improve formatting.  Use fputs for string without %.
16715
16716 2009-01-28  Jim Meyering  <meyering@redhat.com>
16717
16718         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16719         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16720         "underquoted definition of NAME" from autoconf-2.59.
16721
16722 2009-01-28  Bruno Haible  <bruno@clisp.org>
16723
16724         * doc/gnulib.texi: Add "Obsolete modules" to index.
16725
16726 2009-01-28  Jim Meyering  <meyering@redhat.com>
16727
16728         useless-if-before-free: recognize more variants
16729         * build-aux/useless-if-before-free: Also recognize e.g.,
16730         if (NULL != p) free (p);
16731
16732 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16733
16734         test-getaddrinfo: skip (don't fail) this test when there's no network
16735         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16736         on the presumption that it means you lack network access.
16737
16738 2009-01-26  Jim Meyering  <meyering@redhat.com>
16739
16740         fflush: avoid warnings on modern systems
16741         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16742         pos and result, into scopes where they're used.
16743
16744 2009-01-26  Eric Blake  <ebb9@byu.net>
16745
16746         Silence warning reintroduced by recent extensions patch.
16747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16748         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16749         autoconf.
16750
16751         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16752         * m4/00gnulib.m4: New file.
16753         * gnulib-tool (func_get_filelist): Always use it.
16754         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16755         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16756
16757 2009-01-25  Bruno Haible  <bruno@clisp.org>
16758
16759         Make test-quotearg work on MacOS X and AIX.
16760         * tests/test-quotearg.sh: New file.
16761         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16762         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16763         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16764         include <libintl.h>.
16765         (fake_locale): Remove variable.
16766         (gettext, dgettext, dcgettext): Remove functions.
16767         (main): Instead of setting a fake locale, set a real locale. Call
16768         textdomain and bindtextdomain.
16769         * modules/quotearg-tests (Files): Add the new files.
16770         (Depends-on): Add gettext, setenv, unsetenv.
16771         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16772         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16773         Augment TESTS_ENVIRONMENT.
16774
16775 2009-01-25  Bruno Haible  <bruno@clisp.org>
16776
16777         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16778         fr_FR.ISO8859-1 locale on MacOS X.
16779         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16780         ja_JP.eucJP locale on MacOS X.
16781         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16782         zh_CN.GB18030 locale on MacOS X.
16783
16784 2009-01-25  Bruno Haible  <bruno@clisp.org>
16785
16786         Avoid link errors on MacOS X 10.3.
16787         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16788         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16789
16790 2009-01-25  Bruno Haible  <bruno@clisp.org>
16791
16792         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16793         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16794         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16795         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16796         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16797         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16798         posix_spawnattr_init, posix_spawnattr_setsigmask,
16799         posix_spawnattr_setflags, posix_spawnattr_destroy.
16800
16801         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16802         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16803         * modules/execute (Files): Remove m4/posix_spawn.m4.
16804         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16805         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16806         posix_spawnattr_init, posix_spawnattr_setsigmask,
16807         posix_spawnattr_setflags, posix_spawnattr_destroy.
16808
16809 2009-01-25  Bruno Haible  <bruno@clisp.org>
16810
16811         * lib/glthread/threadlib.c: Include <stdlib.h>.
16812
16813 2009-01-25  Bruno Haible  <bruno@clisp.org>
16814
16815         * lib/glthread/threadlib.c (dummy): New declaration.
16816
16817 2009-01-25  Bruno Haible  <bruno@clisp.org>
16818
16819         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16820         multibyte characters also for the GB18030 encoding. Don't crash when
16821         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16822
16823 2009-01-25  Bruno Haible  <bruno@clisp.org>
16824
16825         Avoid redefining 'struct random_data' on OSF/1 5.1.
16826         * lib/stdlib.in.h: Include <random.h> if it exists.
16827         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16828         HAVE_RANDOM_H. Include <random.h> when testing whether
16829         'struct random_data' exists.
16830         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16831
16832 2009-01-25  Bruno Haible  <bruno@clisp.org>
16833
16834         Don't install charset.alias on MacOS X >= 10.3.
16835         * lib/localcharset.c (DARWIN7): New macro.
16836         (get_charset_aliases): Hardcode the result for Darwin7.
16837         * modules/localcharset (install-exec-local): Don't install
16838         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16839
16840 2009-01-25  Bruno Haible  <bruno@clisp.org>
16841
16842         Don't install charset.alias on mingw and Cygwin.
16843         * modules/localcharset (install-exec-local): Don't install
16844         charset.alias on mingw and Cygwin, if the file does not yet exist.
16845         The result for these platforms is hardcoded in localcharset.c.
16846
16847 2009-01-25  Bruno Haible  <bruno@clisp.org>
16848
16849         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16851         before requiring AC_USE_SYSTEM_EXTENSIONS.
16852
16853 2009-01-25  Jim Meyering  <meyering@redhat.com>
16854
16855         c-strtod: avoid warnings
16856         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16857         "assignment discards qualifiers from pointer target type" warnings.
16858
16859 2009-01-24  Bruno Haible  <bruno@clisp.org>
16860
16861         Add support for non-UTF-8 locales on MacOS X.
16862         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16863         canonical encodings. For Darwin 7 and newer, don't map traditional
16864         encodings to UTF-8.
16865         Reported by Vincent Lefevre <vincent@vinc17.org>
16866         at <http://savannah.gnu.org/bugs/?25235>.
16867
16868 2009-01-24  Bruno Haible  <bruno@clisp.org>
16869
16870         * doc/gnulib.texi (Obsolete modules): New section.
16871         Reported by Mike Frysinger <vapier@gentoo.org>.
16872
16873 2009-01-24  Bruno Haible  <bruno@clisp.org>
16874
16875         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16876         (%.dvi): New rule.
16877
16878 2009-01-24  Bruno Haible  <bruno@clisp.org>
16879
16880         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16881         Reported by Eric Blake.
16882
16883 2009-01-24  Bruno Haible  <bruno@clisp.org>
16884
16885         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16886         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16887         Reported by Gary V. Vaughan <gary@gnu.org>.
16888
16889 2009-01-24  Bruno Haible  <bruno@clisp.org>
16890
16891         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16892
16893 2009-01-23  Bruno Haible  <bruno@clisp.org>
16894
16895         Make c-strtod, c-strtold usable in libraries.
16896         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16897         (C_STRTOD): Call strdup instead of xstrdup.
16898         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16899         * modules/c-strtold (Depends-on): Likewise.
16900         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16901         * NEWS: Mention the change.
16902         Reported by Michael Gold <mgold@ncf.ca>.
16903
16904 2009-01-23  Jim Meyering  <meyering@redhat.com>
16905
16906         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16907         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16908         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16909
16910 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16911
16912         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16913         GNU CoreUtils.
16914         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16915         * modules/version-etc (Description): Update.
16916
16917 2009-01-22  Bruno Haible  <bruno@clisp.org>
16918
16919         Cache the C locale object.
16920         * lib/c-strtod.c (c_locale_cache): New variable.
16921         (c_locale): New function.
16922         (C_STRTOD): Use it, and don't call freelocale.
16923         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16924         Suggested by Paolo Bonzini.
16925
16926 2009-01-21  Bruno Haible  <bruno@clisp.org>
16927
16928         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16929         conditions other than overflow.
16930
16931 2009-01-21  Bruno Haible  <bruno@clisp.org>
16932
16933         * lib/c-strtod.c: Include errno.h.
16934         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16935         value from STRTOD_L and STRTOD.
16936
16937 2009-01-21  Bruno Haible  <bruno@clisp.org>
16938         and Jim Meyering  <meyering@redhat.com>
16939
16940         nanosleep: skip configure test (fail it) for apple universal builds
16941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16942         universal builds, assume that nanosleep does not work.
16943         * modules/nanosleep (Depends-on): Add multiarch.
16944
16945         mktime: skip configure test (fail it) for apple universal builds
16946         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16947         universal builds, assume that mktime does not work.
16948         * modules/mktime (Depends-on): Add multiarch.
16949
16950 2009-01-21  Eric Blake  <ebb9@byu.net>
16951
16952         multiarch: avoid expand-before-require warning
16953         * modules/multiarch (configure.ac): Require, rather than expand,
16954         gl_MULTIARCH.
16955         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16956         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16957         enforce that all clients require it.  Partial reversion of
16958         2008-12-29 patch.
16959
16960         error: avoid expand-before-require warning
16961         * modules/errno (configure.ac): Require, rather than expand,
16962         gl_HEADER_ERRNO_H.
16963         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16964         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16965         enforce that all clients require it.
16966
16967         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16968         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16969         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16970         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16971
16972 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16973
16974         Revert:
16975         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16976
16977         regex: do not depend on obsolete modules.
16978         * modules/regex: Remove memcmp and memmove.
16979
16980 2009-01-20  Bruno Haible  <bruno@clisp.org>
16981
16982         Make the 'link' module link on Windows NT 4.
16983         * lib/link.c (_WIN32_WINNT): Don't define.
16984         (CreateHardLinkFuncType): New type.
16985         (CreateHardLinkFunc, initialized): New variables.
16986         (initialize): New function.
16987         (link): Invoke CreateHardLink indirectly through the function pointer.
16988
16989 2009-01-20  Bruno Haible  <bruno@clisp.org>
16990
16991         Fix compilation failure on mingw.
16992         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16993
16994 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16995
16996         * doc/c-strtod.texi: Mention a couple of restrictions.
16997
16998 2009-01-20  Jim Meyering  <meyering@redhat.com>
16999
17000         gettimeofday: move more declarations out of functions
17001         * lib/gettimeofday.c: Move extern declarations of tzset and
17002         gmtime out of containing functions.  Prompted by Bruno Haible.
17003
17004 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17005
17006         regex: do not depend on obsolete modules.
17007         * modules/regex: Remove memcmp and memmove.
17008
17009 2009-01-19  Bruno Haible  <bruno@clisp.org>
17010
17011         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17012         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17013         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17014         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17015         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17016
17017 2009-01-19  Bruno Haible  <bruno@clisp.org>
17018
17019         * tests/test-link.c: Include <errno.h>.
17020         (main): Exit with code 77 when a hard link cannot be created due to
17021         the file system.
17022         * tests/test-link.sh: Skip test when a hard link cannot be created due
17023         to the file system.
17024         Suggested by Eric Blake.
17025
17026 2009-01-19  Martin Lambers  <marlam@marlam.de>
17027
17028         * modules/link-tests: New file.
17029         * tests/test-link.sh: New file.
17030         * tests/test-link.c: New file.
17031
17032 2009-01-19  Eric Blake  <ebb9@byu.net>
17033
17034         doc: mention another function added in cygwin 1.7.0
17035         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17036         Another new function in cygwin 1.7.
17037
17038 2009-01-19  Bruno Haible  <bruno@clisp.org>
17039
17040         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17041         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17042         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17043         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17044         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17045         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17047         * m4/md4.m4 (gl_MD4): Likewise.
17048         * m4/md5.m4 (gl_MD5): Likewise.
17049         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17050         * m4/sha1.m4 (gl_SHA1): Likewise.
17051         * m4/sha256.m4 (gl_SHA256): Likewise.
17052         * m4/sha512.m4 (gl_SHA512): Likewise.
17053
17054 2009-01-19  Bruno Haible  <bruno@clisp.org>
17055
17056         * modules/uniname/uniname-tests (Depends-on): Add progname.
17057         * tests/uniname/test-uninames.c: Include progname.h.
17058         (main): Call set_program_name.
17059
17060         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17061         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17062         (main): Call set_program_name.
17063
17064         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17065         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17066         (main): Call set_program_name.
17067
17068         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17069         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17070         (main): Call set_program_name.
17071
17072         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17073         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17074         (main): Call set_program_name.
17075
17076         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17077         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17078         (main): Call set_program_name.
17079
17080         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17081         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17082         (main): Call set_program_name.
17083
17084         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17085         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17086         (main): Call set_program_name.
17087
17088         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17089         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17090         (main): Call set_program_name.
17091
17092 2009-01-19  Eric Blake  <ebb9@byu.net>
17093
17094         test-unistd: test previous patch
17095         * tests/test-unistd.c: Test *_FILENO macros.
17096
17097         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17098         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17099         Guarantee a definition.
17100         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17101         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17102         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17103         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17104         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17105         Likewise.
17106         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17107         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17108         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17109         Likewise.
17110         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17111         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17112         (STDERR_FILENO): Likewise.
17113         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17114         (STDERR_FILENO): Likewise.
17115         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17116         (STDERR_FILENO): Likewise.
17117         Reported by Elbert Pol.
17118
17119 2009-01-19  Eric Blake  <ebb9@byu.net>
17120
17121         doc: mention more functions added in cygwin 1.7.0
17122         * doc/posix-functions/abort.texi (abort): Update wording related
17123         to cygwin.
17124         * doc/posix-functions/daylight.texi (daylight): Likewise.
17125         * doc/posix-functions/optarg.texi (optarg): Likewise.
17126         * doc/posix-functions/optarg.texi (opterr): Likewise.
17127         * doc/posix-functions/optarg.texi (optind): Likewise.
17128         * doc/posix-functions/optarg.texi (optopt): Likewise.
17129         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17130         worked in 1.5.x, and was withdrawn in 1.7.
17131         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17132         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17133         cygwin versions.
17134         * doc/posix-functions/perror.texi (perror): Likewise.
17135         * doc/posix-functions/printf.texi (printf): Likewise.
17136         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17137         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17138         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17139         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17140         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17141         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17142         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17143         Likewise.
17144         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17145         Likewise.
17146         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17147         this function.
17148         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17149         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17150         Likewise.
17151         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17152         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17153         * doc/posix-functions/confstr.texi (confstr): Likewise.
17154         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17155         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17156         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17157         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17158         * doc/posix-functions/fputws.texi (fputws): Likewise.
17159         * doc/posix-functions/fwide.texi (fwide): Likewise.
17160         * doc/posix-functions/getwc.texi (getwc): Likewise.
17161         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17162         * doc/posix-functions/putwc.texi (putwc): Likewise.
17163         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17164         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17165         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17166         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17167         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17168         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17169         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17170         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17171         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17172         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17173         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17174
17175 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17176
17177         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17178         * lib/ioctl.c: Include <sys/ioctl.h>.
17179
17180 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17181
17182         * modules/getdate-tests (Depends-on): Add progname.
17183         * tests/test-getdate.c: Use progname module, to avoid link errors
17184         on non-glibc systems.
17185
17186 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17187
17188         * modules/filenamecat-tests (Depends-on): Add progname.
17189         * modules/fstrcmp-tests (Depends-on): Likewise.
17190
17191         * tests/test-filenamecat.c: Use progname module, to avoid link
17192         errors on non-glibc systems.
17193         * tests/test-fstrcmp.c: Likewise.
17194
17195 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17196
17197         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17198         * lib/gettimeofday.c: Move extern declaration out of function.
17199
17200 2009-01-18  Bruno Haible  <bruno@clisp.org>
17201
17202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17203         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17204         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17205
17206 2009-01-18  Bruno Haible  <bruno@clisp.org>
17207
17208         * lib/strftime.c (MEMPCPY): Remove unused macro.
17209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17210
17211 2009-01-18  Martin Lambers  <marlam@marlam.de>
17212
17213         New module 'link'.
17214         * lib/unistd.in.h (link): New declaration.
17215         * lib/link.c: New file.
17216         * m4/link.m4: New file.
17217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17218         HAVE_LINK.
17219         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17220         * modules/link: New file.
17221         * doc/posix-functions/link.texi: Mention the new module.
17222
17223 2009-01-18  Bruno Haible  <bruno@clisp.org>
17224
17225         * tests/test-avltree_list.c (main): Call set_program_name.
17226         * tests/test-avltree_oset.c (main): Likewise.
17227         * tests/test-obstack-printf.c: Include progname.h.
17228         (main): Call set_program_name.
17229         * tests/test-quotearg.c: Include progname.h.
17230         (main): Call set_program_name.
17231         * tests/test-xmemdup0.c: Include progname.h.
17232         (main): Call set_program_name.
17233
17234 2009-01-18  Bruno Haible  <bruno@clisp.org>
17235
17236         New module 'alphasort'.
17237         * lib/dirent.in.h (alphasort): New declaration.
17238         * lib/alphasort.c: New file, from glibc with modifications.
17239         * m4/alphasort.m4: New file.
17240         * modules/alphasort: New file.
17241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17242         HAVE_ALPHASORT.
17243         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17244         HAVE_ALPHASORT.
17245         * doc/posix-functions/alphasort.texi: Mention the new module and the
17246         portability problems.
17247
17248 2009-01-18  Bruno Haible  <bruno@clisp.org>
17249
17250         New module 'scandir'.
17251         * lib/dirent.in.h (scandir): New declaration.
17252         * lib/scandir.c: New file, from glibc with modifications.
17253         * m4/scandir.m4: New file.
17254         * modules/scandir: New file.
17255         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17256         HAVE_SCANDIR.
17257         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17258         HAVE_SCANDIR.
17259         * doc/posix-functions/scandir.texi: Mention the new module and the
17260         portability problems.
17261
17262 2009-01-17  Bruno Haible  <bruno@clisp.org>
17263
17264         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17265         Update documentation.
17266         (func_remove_suffix): Escape all dots in the suffix. Update
17267         documentation.
17268         (func_filter_filelist): Update documentation.
17269         Reported by Ralf Wildenhues.
17270
17271 2009-01-17  Bruno Haible  <bruno@clisp.org>
17272
17273         * modules/dprintf-posix-tests: New file.
17274         * tests/test-dprintf-posix.sh: New file.
17275         * tests/test-dprintf-posix.c: New file.
17276
17277         New modules 'dprintf', 'dprintf-posix'.
17278         * lib/stdio.in.h (dprintf): New declaration.
17279         * lib/dprintf.c: New file.
17280         * m4/dprintf.m4: New file.
17281         * m4/dprintf-posix.m4: New file.
17282         * modules/dprintf: New file.
17283         * modules/dprintf-posix: New file.
17284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17285         HAVE_DPRINTF, REPLACE_DPRINTF.
17286         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17287         HAVE_DPRINTF, REPLACE_DPRINTF.
17288         * doc/posix-functions/dprintf.texi: Mention the new modules.
17289
17290 2009-01-17  Bruno Haible  <bruno@clisp.org>
17291
17292         * modules/vdprintf-posix-tests: New file.
17293         * tests/test-vdprintf-posix.sh: New file.
17294         * tests/test-vdprintf-posix.c: New file.
17295
17296         New modules 'vdprintf', 'vdprintf-posix'.
17297         * lib/stdio.in.h (vdprintf): New declaration.
17298         * lib/vdprintf.c: New file.
17299         * m4/vdprintf.m4: New file.
17300         * m4/vdprintf-posix.m4: New file.
17301         * modules/vdprintf: New file.
17302         * modules/vdprintf-posix: New file.
17303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17304         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17305         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17306         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17307         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17308
17309 2009-01-17  Bruno Haible  <bruno@clisp.org>
17310
17311         Fix replacement of fopen on mingw.
17312         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17313         mingw.
17314
17315 2009-01-17  Bruno Haible  <bruno@clisp.org>
17316
17317         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17318         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17319
17320 2009-01-17  Bruno Haible  <bruno@clisp.org>
17321
17322         Avoid test-fflush2.sh failure on mingw.
17323         * tests/test-fflush2.c: Include binary-io.h.
17324         (main): Put standard input into binary mode.
17325         * modules/fflush-tests (Depends-on): Add binary-io.
17326
17327 2009-01-17  Bruno Haible  <bruno@clisp.org>
17328
17329         * lib/wchar.in.h: In another particular situation, include only the
17330         system's <wchar.h> file.
17331         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17332         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17333         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17334
17335 2009-01-17  Bruno Haible  <bruno@clisp.org>
17336
17337         Support for stripping executables in --enable-relocatable.
17338         * build-aux/install-reloc: Expect one more argument, or an environment
17339         variable RELOC_STRIP_PROG. If set, strip the destination program and
17340         its wrapper.
17341         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17342         RELOC_STRIP_PROG.
17343         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17344         to set RELOCATABLE_STRIP.
17345         * NEWS: Mention the new Makefile requirement.
17346
17347 2009-01-17  Bruno Haible  <bruno@clisp.org>
17348
17349         * build-aux/install-reloc: Remove debugging information left over by
17350         C compiler on MacOS X.
17351
17352 2009-01-17  Bruno Haible  <bruno@clisp.org>
17353
17354         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17355         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17356         _NSGetExecutablePath.
17357
17358 2009-01-16  Jim Meyering  <meyering@redhat.com>
17359
17360         strerror: avoid warnings about discarding "const"
17361         * lib/strerror.c (rpl_strerror): Instead of returning a const
17362         string from each and every "case", use a variable, and add a single
17363         cast after the switch.
17364
17365 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17366
17367         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17368
17369 2009-01-16  Bruno Haible  <bruno@clisp.org>
17370
17371         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17372         array initializer syntax that also works in C++ mode.
17373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17374
17375 2009-01-16  Jim Meyering  <meyering@redhat.com>
17376
17377         poll: suppress a warning
17378         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17379         to ignore "...unsigned expression < 0 is always false" warnings.
17380
17381 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17382
17383         poll: remove declarations of unused variables
17384         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17385         sockbuf and optlen.
17386
17387 2009-01-15  Bruno Haible  <bruno@clisp.org>
17388
17389         Make fflush-after-ungetc POSIX compliant on BSD systems.
17390         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17391         (clear_ungetc_buffer): Implement also for other systems.
17392         (rpl_fflush): On glibc systems, invoke
17393         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17394         clear_ungetc_buffer after fetching the stream's position, not before.
17395
17396 2009-01-15  Bruno Haible  <bruno@clisp.org>
17397
17398         Make fflush-after-ungetc POSIX compliant on glibc systems.
17399         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17400         after ungetc.
17401         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17402         (rpl_fflush): On glibc systems, simply call the system's fflush
17403         function after clearing the ungetc buffer.
17404         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17405         Instead, lseek only to the end of file, then use the system's fseeko
17406         for the rest. On glibc systems, reset the EOF indicator bit.
17407
17408 2009-01-15  Jim Meyering  <meyering@redhat.com>
17409
17410         openmp.m4: revert quote-adding change, for portability to older autoconf
17411         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17412         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17413         Simon Josefsson noticed the problem when using autoconf-2.61.
17414
17415 2009-01-15  Bruno Haible  <bruno@clisp.org>
17416
17417         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17418         * tests/test-fflush2.c (ASSERT): Always fail.
17419         (main): Add two tests for fflush() after ungetc(), taking into account
17420         the Austin Group's clarification.
17421         Suggested by Eric Blake.
17422
17423 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17424
17425         mktime.m4: remove K&R-style function prototypes
17426         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17427         for the Sun C++ compiler.
17428
17429 2009-01-14  Bruno Haible  <bruno@clisp.org>
17430
17431         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17432         while including <wchar.h>.
17433         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17434         the system's <wchar.h> file.
17435         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17436
17437 2009-01-14  Bruno Haible  <bruno@clisp.org>
17438
17439         * m4/csharp.m4: Don't mention gettext on the serial number line.
17440         * m4/csharpexec.m4: Likewise.
17441         * m4/eaccess.m4: Likewise.
17442         * m4/javaexec.m4: Likewise.
17443         * m4/sig_atomic_t.m4: Likewise.
17444         * m4/tmpdir.m4: Likewise.
17445         * m4/intldir.m4: Bump gettext version.
17446         * m4/lib-ld.m4: Likewise.
17447
17448 2009-01-14  Bruno Haible  <bruno@clisp.org>
17449
17450         * lib/progname.c (set_program_name): Add more comments.
17451         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17452
17453 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17454
17455         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17456         were sys/stat.h does not define it.
17457
17458 2009-01-14  Jim Meyering  <meyering@redhat.com>
17459
17460         many *.m4 files: improve m4 quoting
17461         99% of this change was performed by running the following commands:
17462         git ls-files | grep '\.m4$' | xargs perl -pi \
17463           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17464           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17465           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17466           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17467         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17468         The remainder were to add Copyright dates, increment serial numbers,
17469         undo some changes in comments, exclude m4/intl.m4, and add quotes
17470         around the "1" in ",1" where the unusual spacing prohibited the
17471         above regexps from doing the job.  For more details, see
17472         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17473         * m4/acl.m4: Modified.
17474         * m4/afs.m4: Likewise.
17475         * m4/alloca.m4: Likewise.
17476         * m4/argp.m4: Likewise.
17477         * m4/argz.m4: Likewise.
17478         * m4/atexit.m4: Likewise.
17479         * m4/bison-i18n.m4: Likewise.
17480         * m4/bison.m4: Likewise.
17481         * m4/byteswap.m4: Likewise.
17482         * m4/c-stack.m4: Likewise.
17483         * m4/c-strtod.m4: Likewise.
17484         * m4/calloc.m4: Likewise.
17485         * m4/canonicalize-lgpl.m4: Likewise.
17486         * m4/chown.m4: Likewise.
17487         * m4/clock_time.m4: Likewise.
17488         * m4/codeset.m4: Likewise.
17489         * m4/copy-file.m4: Likewise.
17490         * m4/csharp.m4: Likewise.
17491         * m4/csharpcomp.m4: Likewise.
17492         * m4/csharpexec.m4: Likewise.
17493         * m4/d-ino.m4: Likewise.
17494         * m4/d-type.m4: Likewise.
17495         * m4/dirfd.m4: Likewise.
17496         * m4/double-slash-root.m4: Likewise.
17497         * m4/eaccess.m4: Likewise.
17498         * m4/eealloc.m4: Likewise.
17499         * m4/environ.m4: Likewise.
17500         * m4/errno_h.m4: Likewise.
17501         * m4/euidaccess.m4: Likewise.
17502         * m4/execute.m4: Likewise.
17503         * m4/fatal-signal.m4: Likewise.
17504         * m4/fchdir.m4: Likewise.
17505         * m4/fcntl_h.m4: Likewise.
17506         * m4/fileblocks.m4: Likewise.
17507         * m4/filenamecat.m4: Likewise.
17508         * m4/findprog.m4: Likewise.
17509         * m4/flexmember.m4: Likewise.
17510         * m4/fnmatch.m4: Likewise.
17511         * m4/fopen.m4: Likewise.
17512         * m4/fpending.m4: Likewise.
17513         * m4/fprintf-posix.m4: Likewise.
17514         * m4/free.m4: Likewise.
17515         * m4/frexp.m4: Likewise.
17516         * m4/frexpl.m4: Likewise.
17517         * m4/fsusage.m4: Likewise.
17518         * m4/ftruncate.m4: Likewise.
17519         * m4/gc-camellia.m4: Likewise.
17520         * m4/gc-random.m4: Likewise.
17521         * m4/gc.m4: Likewise.
17522         * m4/getaddrinfo.m4: Likewise.
17523         * m4/getcwd-abort-bug.m4: Likewise.
17524         * m4/getcwd-path-max.m4: Likewise.
17525         * m4/getdate.m4: Likewise.
17526         * m4/getdomainname.m4: Likewise.
17527         * m4/getgroups.m4: Likewise.
17528         * m4/gethostname.m4: Likewise.
17529         * m4/gethrxtime.m4: Likewise.
17530         * m4/getline.m4: Likewise.
17531         * m4/getloadavg.m4: Likewise.
17532         * m4/getndelim2.m4: Likewise.
17533         * m4/getpass.m4: Likewise.
17534         * m4/gettext.m4: Likewise.
17535         * m4/gettime.m4: Likewise.
17536         * m4/gettimeofday.m4: Likewise.
17537         * m4/gnulib-common.m4: Likewise.
17538         * m4/group-member.m4: Likewise.
17539         * m4/host-os.m4: Likewise.
17540         * m4/iconv.m4: Likewise.
17541         * m4/iconv_open.m4: Likewise.
17542         * m4/inet_ntop.m4: Likewise.
17543         * m4/inet_pton.m4: Likewise.
17544         * m4/inline.m4: Likewise.
17545         * m4/intldir.m4: Likewise.
17546         * m4/intlmacosx.m4: Likewise.
17547         * m4/intmax.m4: Likewise.
17548         * m4/intmax_t.m4: Likewise.
17549         * m4/inttypes.m4: Likewise.
17550         * m4/inttypes_h.m4: Likewise.
17551         * m4/inttypes-pri.m4: Likewise.
17552         * m4/isapipe.m4: Likewise.
17553         * m4/isnand.m4: Likewise.
17554         * m4/isnanf.m4: Likewise.
17555         * m4/isnanl.m4: Likewise.
17556         * m4/javacomp.m4: Likewise.
17557         * m4/javaexec.m4: Likewise.
17558         * m4/jm-winsz1.m4: Likewise.
17559         * m4/jm-winsz2.m4: Likewise.
17560         * m4/lchown.m4: Likewise.
17561         * m4/lcmessage.m4: Likewise.
17562         * m4/ldexpl.m4: Likewise.
17563         * m4/lib-ld.m4: Likewise.
17564         * m4/lib-link.m4: Likewise.
17565         * m4/libsigsegv.m4: Likewise.
17566         * m4/link-follow.m4: Likewise.
17567         * m4/localcharset.m4: Likewise.
17568         * m4/locale-fr.m4: Likewise.
17569         * m4/locale-ja.m4: Likewise.
17570         * m4/locale-tr.m4: Likewise.
17571         * m4/locale-zh.m4: Likewise.
17572         * m4/lock.m4: Likewise.
17573         * m4/longlong.m4: Likewise.
17574         * m4/ls-mntd-fs.m4: Likewise.
17575         * m4/lstat.m4: Likewise.
17576         * m4/malloc.m4: Likewise.
17577         * m4/mathl.m4: Likewise.
17578         * m4/mbrtowc.m4: Likewise.
17579         * m4/mbstate_t.m4: Likewise.
17580         * m4/mbswidth.m4: Likewise.
17581         * m4/memchr.m4: Likewise.
17582         * m4/memcmp.m4: Likewise.
17583         * m4/memcpy.m4: Likewise.
17584         * m4/memmem.m4: Likewise.
17585         * m4/memmove.m4: Likewise.
17586         * m4/mempcpy.m4: Likewise.
17587         * m4/memrchr.m4: Likewise.
17588         * m4/memset.m4: Likewise.
17589         * m4/minmax.m4: Likewise.
17590         * m4/mkdir-slash.m4: Likewise.
17591         * m4/mkdtemp.m4: Likewise.
17592         * m4/mktime.m4: Likewise.
17593         * m4/mmap-anon.m4: Likewise.
17594         * m4/mountlist.m4: Likewise.
17595         * m4/nanosleep.m4: Likewise.
17596         * m4/nls.m4: Likewise.
17597         * m4/nocrash.m4: Likewise.
17598         * m4/open.m4: Likewise.
17599         * m4/openat.m4: Likewise.
17600         * m4/openmp.m4: Likewise.
17601         * m4/pathmax.m4: Likewise.
17602         * m4/perl.m4: Likewise.
17603         * m4/physmem.m4: Likewise.
17604         * m4/pipe.m4: Likewise.
17605         * m4/po.m4: Likewise.
17606         * m4/poll.m4: Likewise.
17607         * m4/posixtm.m4: Likewise.
17608         * m4/posixver.m4: Likewise.
17609         * m4/printf-frexp.m4: Likewise.
17610         * m4/printf-frexpl.m4: Likewise.
17611         * m4/printf-posix.m4: Likewise.
17612         * m4/printf-posix-rpl.m4: Likewise.
17613         * m4/printf.m4: Likewise.
17614         * m4/progtest.m4: Likewise.
17615         * m4/putenv.m4: Likewise.
17616         * m4/readline.m4: Likewise.
17617         * m4/readlink.m4: Likewise.
17618         * m4/readutmp.m4: Likewise.
17619         * m4/realloc.m4: Likewise.
17620         * m4/regex.m4: Likewise.
17621         * m4/relocatable.m4: Likewise.
17622         * m4/relocatable-lib.m4: Likewise.
17623         * m4/rename-dest-slash.m4: Likewise.
17624         * m4/rename.m4: Likewise.
17625         * m4/rmdir-errno.m4: Likewise.
17626         * m4/rmdir.m4: Likewise.
17627         * m4/roundf.m4: Likewise.
17628         * m4/roundl.m4: Likewise.
17629         * m4/rpmatch.m4: Likewise.
17630         * m4/save-cwd.m4: Likewise.
17631         * m4/selinux-selinux-h.m4: Likewise.
17632         * m4/setenv.m4: Likewise.
17633         * m4/settime.m4: Likewise.
17634         * m4/sig2str.m4: Likewise.
17635         * m4/sig_atomic_t.m4: Likewise.
17636         * m4/signalblocking.m4: Likewise.
17637         * m4/signbit.m4: Likewise.
17638         * m4/sigpipe.m4: Likewise.
17639         * m4/sockets.m4: Likewise.
17640         * m4/sockpfaf.m4: Likewise.
17641         * m4/st_dm_mode.m4: Likewise.
17642         * m4/stat-time.m4: Likewise.
17643         * m4/stdbool.m4: Likewise.
17644         * m4/stdint.m4: Likewise.
17645         * m4/stdint_h.m4: Likewise.
17646         * m4/stpcpy.m4: Likewise.
17647         * m4/stpncpy.m4: Likewise.
17648         * m4/strcase.m4: Likewise.
17649         * m4/strchrnul.m4: Likewise.
17650         * m4/strcspn.m4: Likewise.
17651         * m4/strdup.m4: Likewise.
17652         * m4/strftime.m4: Likewise.
17653         * m4/strndup.m4: Likewise.
17654         * m4/strnlen.m4: Likewise.
17655         * m4/strpbrk.m4: Likewise.
17656         * m4/strptime.m4: Likewise.
17657         * m4/strsep.m4: Likewise.
17658         * m4/strtod.m4: Likewise.
17659         * m4/strtoimax.m4: Likewise.
17660         * m4/strtok_r.m4: Likewise.
17661         * m4/strtol.m4: Likewise.
17662         * m4/strtoll.m4: Likewise.
17663         * m4/strtoul.m4: Likewise.
17664         * m4/strtoull.m4: Likewise.
17665         * m4/strtoumax.m4: Likewise.
17666         * m4/strverscmp.m4: Likewise.
17667         * m4/threadlib.m4: Likewise.
17668         * m4/timegm.m4: Likewise.
17669         * m4/tm_gmtoff.m4: Likewise.
17670         * m4/tmpdir.m4: Likewise.
17671         * m4/tmpfile.m4: Likewise.
17672         * m4/tzset.m4: Likewise.
17673         * m4/uintmax_t.m4: Likewise.
17674         * m4/unlinkdir.m4: Likewise.
17675         * m4/unlocked-io.m4: Likewise.
17676         * m4/uptime.m4: Likewise.
17677         * m4/userspec.m4: Likewise.
17678         * m4/utimbuf.m4: Likewise.
17679         * m4/utime.m4: Likewise.
17680         * m4/utimes-null.m4: Likewise.
17681         * m4/utimes.m4: Likewise.
17682         * m4/vararrays.m4: Likewise.
17683         * m4/vasnprintf.m4: Likewise.
17684         * m4/vfprintf-posix.m4: Likewise.
17685         * m4/vprintf-posix.m4: Likewise.
17686         * m4/wait-process.m4: Likewise.
17687         * m4/wchar_t.m4: Likewise.
17688         * m4/wint_t.m4: Likewise.
17689         * m4/write-any-file.m4: Likewise.
17690         * m4/yield.m4: Likewise.
17691
17692 2009-01-13  Bruno Haible  <bruno@clisp.org>
17693
17694         Avoid test-copy-file.sh failures when ACL support insufficient.
17695         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17696         TESTS_ENVIRONMENT.
17697         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17698         Reported by Jim Meyering.
17699
17700 2009-01-13  Bruno Haible  <bruno@clisp.org>
17701
17702         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17703         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17704         * modules/unistdio/u8-printf-parse (Files): Likewise.
17705         * modules/unistdio/u32-printf-parse (Files): Likewise.
17706         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17707
17708 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17709
17710         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17711         and m4/inttypes_h.m4 too.
17712
17713 2009-01-12  Eric Blake  <ebb9@byu.net>
17714
17715         tests: IRIX 6.2 cc can't compile -0.0 into .data
17716         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17717         rather than at compile-time.
17718         * tests/test-floorl.c (minus_zero): Likewise.
17719         * tests/test-frexpl.c (minus_zero): Likewise.
17720         * tests/test-isnan.c (minus_zerol): Likewise.
17721         * tests/test-isnanl.h (minus_zero): Likewise.
17722         * tests/test-ldexpl.c (minus_zero): Likewise.
17723         * tests/test-roundl.c (minus_zero): Likewise.
17724         * tests/test-signbit.c (minus_zerol): Likewise.
17725         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17726         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17727         * tests/test-truncl.c (minus_zero): Likewise.
17728         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17729         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17730         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17731
17732 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17733
17734         regex: fix glibc bug 9697
17735         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17736         handling.
17737
17738 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17739
17740         regex: fix glibc bug 697
17741         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17742         being NULL also if there are no backreferences.
17743
17744 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17745
17746         regex: merge glibc changes
17747         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17748         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17749         re_string_skip_chars, re_string_reconstruct): Likewise.
17750         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17751
17752 2009-01-07  Jim Meyering  <meyering@redhat.com>
17753
17754         poll: filter through cppi
17755         * lib/poll.c: Indent cpp directives to reflect nesting.
17756
17757 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17758
17759         poll: don't return uninitialized
17760         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17761
17762 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17763
17764         avoid compile failure on AIX 6.1
17765         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17766         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17767
17768 2009-01-04  Jim Meyering  <meyering@redhat.com>
17769
17770         remove duplicate inclusion of <stdio.h>
17771         * tests/test-fprintf-posix.c: Likewise.
17772         * tests/test-printf-posix.c: Likewise.
17773         * tests/test-snprintf-posix.c: Likewise.
17774         * tests/test-sprintf-posix.c: Likewise.
17775         * tests/test-vasprintf-posix.c: Likewise.
17776         * tests/test-vfprintf-posix.c: Likewise.
17777         * tests/test-vprintf-posix.c: Likewise.
17778         * tests/test-vsnprintf-posix.c: Likewise.
17779         * tests/test-vsprintf-posix.c: Likewise.
17780
17781 2009-01-03  Jim Meyering  <meyering@redhat.com>
17782
17783         gnulib-tool: fix sed-based filtering
17784         * gnulib-tool (func_filter_filelist): Remove extra backslash
17785         in sed_fff_filter definition.
17786
17787 2009-01-02  Jim Meyering  <meyering@redhat.com>
17788
17789         strftime: avoid compilation failure on Solaris 2.6
17790         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17791         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17792         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17793         be available.  Reported by Tom G. Christensen.  Details in
17794         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17795
17796 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17797             Bruno Haible  <bruno@clisp.org>
17798
17799         Speed up gnulib-tool by doing more string processing through shell
17800         built-ins.
17801         * gnulib-tool (fast_func_append): New variable.
17802         (func_remove_prefix, func_remove_suffix): New functions.
17803         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17804         (func_filter_filelist): New function.
17805         (func_get_dependencies): Use func_remove_suffix instead of sed.
17806         (func_get_automake_snippet): Use func_filter_filelist instead of a
17807         subshell and sed invocation.
17808
17809 2009-01-01  Bruno Haible  <bruno@clisp.org>
17810
17811         Fix a security bug.
17812         * gnulib-tool (func_import, import, update): Don't allow the characters
17813         '"', '$', '`', '\' in macro arguments that become part of commands that
17814         are evaluated.
17815
17816 2009-01-01  Bruno Haible  <bruno@clisp.org>
17817
17818         * gnulib-tool (func_reset_sigpipe): Add more comments.
17819
17820 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17821
17822         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17823         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17824         already know the answer.
17825
17826 2009-01-01  Jim Meyering  <meyering@redhat.com>
17827
17828         * lib/version-etc.c (version_etc_va): Update copyright year.
17829
17830 2008-12-30  Bruno Haible  <bruno@clisp.org>
17831
17832         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17833         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17834         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17835
17836 2008-12-29  Eric Blake  <ebb9@byu.net>
17837
17838         multiarch: avoid autoconf AC_REQUIRE bug
17839         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17840         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17841         2.63 and older.
17842         Reported by Bruno Haible, and analyzed in
17843         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17844
17845 2008-12-29  Bruno Haible  <bruno@clisp.org>
17846
17847         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17848         files in subdirectories correctly.
17849         Reported by Ralf Wildenhues.
17850
17851 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17852
17853         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17854         rather than 'join FILE -', for Solaris join.
17855
17856 2008-12-29  Bruno Haible  <bruno@clisp.org>
17857
17858         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17859         quoting.
17860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17861         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17862         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17863         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17864         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17865         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17866         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17867         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17868         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17869         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17870         * m4/nls.m4 (AM_NLS): Likewise.
17871         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17872         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17873         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17874         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17875         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17876         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17877         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17878         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17879         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17880         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17881         * m4/xsize.m4 (gl_XSIZE): Likewise.
17882         Suggested by Jim Meyering.
17883
17884 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17885
17886         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17887         * lib/parse-duration.c: use a switch instead of cascading if's.
17888
17889 2008-12-29  Eric Blake  <ebb9@byu.net>
17890
17891         wchar.h: supply WEOF on Irix 5.3
17892         * lib/wchar.in.h (wint_t): Also supply WEOF.
17893         * lib/wctype.in.h (wint_t): Likewise.
17894         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17895         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17896         Reported by Tom G. Christensen.
17897
17898 2008-12-26  Bruno Haible  <bruno@clisp.org>
17899
17900         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17901         i486, i586, i686.
17902
17903 2008-12-26  Bruno Haible  <bruno@clisp.org>
17904
17905         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17906
17907 2008-12-26  Bruno Haible  <bruno@clisp.org>
17908
17909         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17910         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17911         not __STDC_CONSTANT_MACROS.
17912         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17913
17914 2008-12-25  Bruno Haible  <bruno@clisp.org>
17915
17916         Add support for universal builds to vasnprintf.
17917         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17918         universal builds, guess no.
17919         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17920         * modules/vasprintf-posix (Depends-on): Likewise.
17921         * modules/fprintf-posix (Depends-on): Likewise.
17922         * modules/vfprintf-posix (Depends-on): Likewise.
17923         * modules/snprintf-posix (Depends-on): Likewise.
17924         * modules/vsnprintf-posix (Depends-on): Likewise.
17925         * modules/sprintf-posix (Depends-on): Likewise.
17926         * modules/vsprintf-posix (Depends-on): Likewise.
17927         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17934
17935         Add support for universal builds to <inttypes.h>.
17936         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17937         _SCNu64_PREFIX): In Apple
17938         universal builds, define directly, using _LP64.
17939         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17940         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17941         * modules/inttypes (Depends-on): Add multiarch.
17942         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17943
17944         Add support for universal builds to <stdint.h>.
17945         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17946         universal builds, define directly, using _LP64.
17947         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17948         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17949         and size_t.
17950         * modules/stdint (Depends-on): Add multiarch.
17951         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17952
17953         New module 'multiarch'.
17954         * modules/multiarch: New file.
17955         * m4/multiarch.m4: New file.
17956
17957 2008-12-25  Bruno Haible  <bruno@clisp.org>
17958
17959         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17960
17961 2008-12-25  Bruno Haible  <bruno@clisp.org>
17962
17963         * modules/btowc (License): Relicense under LGPLv2+.
17964         * modules/mbsinit (License): Likewise.
17965         * modules/mbrtowc (License): Likewise.
17966         * modules/wcrtomb (License): Likewise.
17967         * modules/streq (License): Likewise.
17968         Reported by David Lutterkort <lutter@redhat.com>.
17969
17970 2008-12-23  Bruno Haible  <bruno@clisp.org>
17971
17972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17973
17974 2008-12-23  Bruno Haible  <bruno@clisp.org>
17975
17976         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17978         GETADDRINFO_LIB, not in LIBS.
17979         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17980         * modules/canon-host (Link): Likewise.
17981         * NEWS: Mention the change.
17982         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17983         GETADDRINFO_LIB.
17984
17985 2008-12-22  Bruno Haible  <bruno@clisp.org>
17986
17987         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17988         * doc/posix-functions/iswalpha_l.texi: Likewise.
17989         * doc/posix-functions/iswblank_l.texi: Likewise.
17990         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17991         * doc/posix-functions/iswctype_l.texi: Likewise.
17992         * doc/posix-functions/iswdigit_l.texi: Likewise.
17993         * doc/posix-functions/iswgraph_l.texi: Likewise.
17994         * doc/posix-functions/iswlower_l.texi: Likewise.
17995         * doc/posix-functions/iswprint_l.texi: Likewise.
17996         * doc/posix-functions/iswpunct_l.texi: Likewise.
17997         * doc/posix-functions/iswspace_l.texi: Likewise.
17998         * doc/posix-functions/iswupper_l.texi: Likewise.
17999         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18000         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18001         * doc/posix-functions/open_wmemstream.texi: Likewise.
18002         * doc/posix-functions/swscanf.texi: Likewise.
18003         * doc/posix-functions/towctrans_l.texi: Likewise.
18004         * doc/posix-functions/towlower.texi: Likewise.
18005         * doc/posix-functions/towlower_l.texi: Likewise.
18006         * doc/posix-functions/towupper.texi: Likewise.
18007         * doc/posix-functions/towupper_l.texi: Likewise.
18008         * doc/posix-functions/vfwprintf.texi: Likewise.
18009         * doc/posix-functions/vfwscanf.texi: Likewise.
18010         * doc/posix-functions/vswscanf.texi: Likewise.
18011         * doc/posix-functions/vwprintf.texi: Likewise.
18012         * doc/posix-functions/vwscanf.texi: Likewise.
18013         * doc/posix-functions/wcpcpy.texi: Likewise.
18014         * doc/posix-functions/wcpncpy.texi: Likewise.
18015         * doc/posix-functions/wcscasecmp.texi: Likewise.
18016         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18017         * doc/posix-functions/wcscoll_l.texi: Likewise.
18018         * doc/posix-functions/wcsdup.texi: Likewise.
18019         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18020         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18021         * doc/posix-functions/wcsnlen.texi: Likewise.
18022         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18023         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18024         * doc/posix-functions/wctrans_l.texi: Likewise.
18025         * doc/posix-functions/wctype_l.texi: Likewise.
18026         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18027         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18028         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18029         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18030         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18031         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18032         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18033         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18034         * doc/glibc-functions/wcschrnul.texi: Likewise.
18035         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18036         * doc/glibc-functions/wcstod_l.texi: Likewise.
18037         * doc/glibc-functions/wcstof_l.texi: Likewise.
18038         * doc/glibc-functions/wcstol_l.texi: Likewise.
18039         * doc/glibc-functions/wcstold_l.texi: Likewise.
18040         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18041         * doc/glibc-functions/wcstoq.texi: Likewise.
18042         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18043         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18044         * doc/glibc-functions/wcstouq.texi: Likewise.
18045         * doc/glibc-functions/wmempcpy.texi: Likewise.
18046
18047 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18048             Eric Blake  <ebb9@byu.net>
18049             Paolo Bonzini  <bonzini@gnu.org>
18050             Bruno Haible  <bruno@clisp.org>
18051
18052         Make c-stack work on Haiku.
18053         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18054         (c_stack_action): Use SA_ONSTACK flag.
18055
18056 2008-12-22  Bruno Haible  <bruno@clisp.org>
18057
18058         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18059
18060 2008-12-22  Bruno Haible  <bruno@clisp.org>
18061
18062         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18063         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18064         being overridden.
18065         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18066         New macros.
18067         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18069         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18070         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18071
18072 2008-12-22  Bruno Haible  <bruno@clisp.org>
18073
18074         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18075         from test code.
18076
18077 2008-12-22  Eric Blake  <ebb9@byu.net>
18078
18079         Avoid gcc warnings on cygwin.
18080         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18081         Avoid unused variable.
18082         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18083         Likewise.
18084
18085 2008-12-22  Bruno Haible  <bruno@clisp.org>
18086
18087         Remove HAVE_MBRTOWC conditionals.
18088         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18089         (mbscasecmp): Assume mbrtowc function.
18090         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18091         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18092         * lib/mbschr.c: Include mbuiter.h unconditionally.
18093         (mbschr): Assume mbrtowc function.
18094         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18095         (mbscspn): Assume mbrtowc function.
18096         * lib/mbslen.c: Include mbuiter.h unconditionally.
18097         (mbslen): Assume mbrtowc function.
18098         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18099         (mbsncasecmp): Assume mbrtowc function.
18100         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18101         (mbsnlen): Assume mbrtowc function.
18102         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18103         (mbspbrk): Assume mbrtowc function.
18104         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18105         (mbspcasecmp): Assume mbrtowc function.
18106         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18107         (mbsrchr): Assume mbrtowc function.
18108         * lib/mbssep.c: Include mbuiter.h unconditionally.
18109         (mbssep): Assume mbrtowc function.
18110         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18111         (mbsspn): Assume mbrtowc function.
18112         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18113         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18114         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18115         (mbstok_r): Assume mbrtowc function.
18116         * lib/propername.c: Include mbuiter.h unconditionally.
18117         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18118         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18119         (trim2): Assume mbrtowc function.
18120         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18121         (mbsnwidth): Assume mbrtowc function.
18122         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18123         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18124         fallback definitions.
18125         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18126
18127 2008-12-22  Bruno Haible  <bruno@clisp.org>
18128
18129         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18130
18131 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18132
18133         * modules/regex: Request emulations for the mb*/wc* functions we need.
18134         * m4/regex.m4: Don't look for those functions here.
18135         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18136
18137 2008-12-22  Bruno Haible  <bruno@clisp.org>
18138
18139         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18140
18141 2008-12-21  Bruno Haible  <bruno@clisp.org>
18142
18143         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18144         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18145         (Include): Remove conditionalization.
18146         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18147         (Include): Remove conditionalization.
18148         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18149         (Include): Remove conditionalization.
18150         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18151         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18152         * NEWS: Mention the change.
18153         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18154         via Sergey Poznyakoff <gray@gnu.org.ua>.
18155
18156 2008-12-21  Bruno Haible  <bruno@clisp.org>
18157
18158         * MODULES.html.sh (Extended multibyte and wide character utilities
18159         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18160         wcrtomb, wcsrtombs.
18161         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18162         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18163         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18164         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18165
18166 2008-12-21  Bruno Haible  <bruno@clisp.org>
18167
18168         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18169
18170 2008-12-21  Bruno Haible  <bruno@clisp.org>
18171
18172         * modules/wcsnrtombs-tests: New file.
18173         * tests/test-wcsnrtombs1.sh: New file.
18174         * tests/test-wcsnrtombs2.sh: New file.
18175         * tests/test-wcsnrtombs3.sh: New file.
18176         * tests/test-wcsnrtombs4.sh: New file.
18177         * tests/test-wcsnrtombs.c: New file.
18178
18179         New module 'wcsnrtombs'.
18180         * lib/wchar.in.h (wcsnrtombs): New declaration.
18181         * lib/wcsnrtombs.c: New file.
18182         * lib/wcsrtombs-state.c: New file.
18183         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18184         (internal_state): Remove variable.
18185         * m4/wcsnrtombs.m4: New file.
18186         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18187         compilation units.
18188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18189         HAVE_WCSNRTOMBS.
18190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18191         HAVE_WCSNRTOMBS.
18192         * modules/wcsnrtombs: New file.
18193         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18194         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18195
18196 2008-12-21  Bruno Haible  <bruno@clisp.org>
18197
18198         * modules/wcsrtombs-tests: New file.
18199         * tests/test-wcsrtombs1.sh: New file.
18200         * tests/test-wcsrtombs2.sh: New file.
18201         * tests/test-wcsrtombs3.sh: New file.
18202         * tests/test-wcsrtombs4.sh: New file.
18203         * tests/test-wcsrtombs.c: New file.
18204
18205         New module 'wcsrtombs'.
18206         * lib/wchar.in.h (wcsrtombs): New declaration.
18207         * lib/wcsrtombs.c: New file.
18208         * m4/wcsrtombs.m4: New file.
18209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18210         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18212         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18213         * modules/wcsrtombs: New file.
18214         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18215         bugs.
18216
18217 2008-12-21  Bruno Haible  <bruno@clisp.org>
18218
18219         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18220         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18222         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18223         if not correct.
18224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18225         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18226         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18227         m4/locale-zh.m4, m4/codeset.m4.
18228         * doc/posix-functions/wcrtomb.texi: Document the bug.
18229
18230 2008-12-21  Bruno Haible  <bruno@clisp.org>
18231
18232         Work around a btowc() bug on IRIX 6.5.
18233         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18234         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18235         REPLACE_WTOBC if not.
18236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18237         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18238         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18239
18240 2008-12-21  Bruno Haible  <bruno@clisp.org>
18241
18242         * modules/wcrtomb-tests: New file.
18243         * tests/test-wcrtomb.sh: New file.
18244         * tests/test-wcrtomb.c: New file.
18245
18246         New module 'wcrtomb'.
18247         * lib/wchar.in.h (wcrtomb): New declaration.
18248         * lib/wcrtomb.c: New file.
18249         * m4/wcrtomb.m4: New file.
18250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18251         HAVE_WCRTOMB.
18252         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18253         HAVE_WCRTOMB.
18254         * modules/wcrtomb: New file.
18255         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18256
18257 2008-12-21  Bruno Haible  <bruno@clisp.org>
18258
18259         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18260         * modules/mbsrtowcs (Files): Likewise.
18261         * modules/wctob (Files): Likewise.
18262         * modules/c-strcase-tests (Files): Likewise.
18263         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18264         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18265         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18266         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18267         * modules/vasnprintf-posix-tests (Files): Likewise.
18268
18269 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18270
18271         gitlog-to-changelog: pass all command-line arguments to git-log
18272         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18273         it is sometimes convenient to filter the commits in various ways.
18274         gitlog-to-changelog only allows --since to specify a start date,
18275         but git-log itself supports many other filtering mechanisms.
18276         At the moment, I want to filter by branch name.  Rather than
18277         adding a --branch option to gitlog-to-changelog, it seems more
18278         flexible to simply pass all options directly to git-log and let
18279         git do the work.  Notice that this effectively makes --since a
18280         redundant option for gitlog-to-changelog, but removing it would
18281         require current usage to change since calls would then require
18282         an additional '--'.
18283
18284 2008-12-21  Bruno Haible  <bruno@clisp.org>
18285
18286         * modules/mbsnrtowcs-tests: New file.
18287         * tests/test-mbsnrtowcs1.sh: New file.
18288         * tests/test-mbsnrtowcs2.sh: New file.
18289         * tests/test-mbsnrtowcs3.sh: New file.
18290         * tests/test-mbsnrtowcs4.sh: New file.
18291         * tests/test-mbsnrtowcs.c: New file.
18292
18293         New module 'mbsnrtowcs'.
18294         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18295         * lib/mbsnrtowcs.c: New file.
18296         * lib/mbsrtowcs-state.c: New file.
18297         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18298         (internal_state): Remove variable.
18299         * m4/mbsnrtowcs.m4: New file.
18300         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18301         compilation units.
18302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18303         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18304         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18305         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18306         * modules/mbsnrtowcs: New file.
18307         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18308         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18309         portability problem.
18310
18311 2008-12-21  Bruno Haible  <bruno@clisp.org>
18312
18313         Work around mbsrtowcs bug.
18314         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18315         (gl_FUNC_MBSRTOWCS): Invoke it.
18316         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18317         m4/locale-zh.m4.
18318         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18319
18320 2008-12-21  Bruno Haible  <bruno@clisp.org>
18321
18322         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18323
18324 2008-12-21  Bruno Haible  <bruno@clisp.org>
18325
18326         Update doc for AIX.
18327         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18328         16-bit wchar_t type.
18329         * doc/posix-functions/btowc.texi: Likewise.
18330         * doc/posix-functions/fgetwc.texi: Likewise.
18331         * doc/posix-functions/fgetws.texi: Likewise.
18332         * doc/posix-functions/fputwc.texi: Likewise.
18333         * doc/posix-functions/fputws.texi: Likewise.
18334         * doc/posix-functions/fwide.texi: Likewise.
18335         * doc/posix-functions/fwprintf.texi: Likewise.
18336         * doc/posix-functions/fwscanf.texi: Likewise.
18337         * doc/posix-functions/getwchar.texi: Likewise.
18338         * doc/posix-functions/getwc.texi: Likewise.
18339         * doc/posix-functions/iswalnum.texi: Likewise.
18340         * doc/posix-functions/iswalpha.texi: Likewise.
18341         * doc/posix-functions/iswblank.texi: Likewise.
18342         * doc/posix-functions/iswcntrl.texi: Likewise.
18343         * doc/posix-functions/iswctype.texi: Likewise.
18344         * doc/posix-functions/iswdigit.texi: Likewise.
18345         * doc/posix-functions/iswgraph.texi: Likewise.
18346         * doc/posix-functions/iswlower.texi: Likewise.
18347         * doc/posix-functions/iswprint.texi: Likewise.
18348         * doc/posix-functions/iswpunct.texi: Likewise.
18349         * doc/posix-functions/iswspace.texi: Likewise.
18350         * doc/posix-functions/iswupper.texi: Likewise.
18351         * doc/posix-functions/iswxdigit.texi: Likewise.
18352         * doc/posix-functions/mbrtowc.texi: Likewise.
18353         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18354         * doc/posix-functions/mbstowcs.texi: Likewise.
18355         * doc/posix-functions/mbtowc.texi: Likewise.
18356         * doc/posix-functions/putwchar.texi: Likewise.
18357         * doc/posix-functions/putwc.texi: Likewise.
18358         * doc/posix-functions/swprintf.texi: Likewise.
18359         * doc/posix-functions/tolower.texi: Likewise.
18360         * doc/posix-functions/toupper.texi: Likewise.
18361         * doc/posix-functions/towctrans.texi: Likewise.
18362         * doc/posix-functions/ungetwc.texi: Likewise.
18363         * doc/posix-functions/vswprintf.texi: Likewise.
18364         * doc/posix-functions/wcrtomb.texi: Likewise.
18365         * doc/posix-functions/wcscat.texi: Likewise.
18366         * doc/posix-functions/wcschr.texi: Likewise.
18367         * doc/posix-functions/wcscmp.texi: Likewise.
18368         * doc/posix-functions/wcscoll.texi: Likewise.
18369         * doc/posix-functions/wcscpy.texi: Likewise.
18370         * doc/posix-functions/wcscspn.texi: Likewise.
18371         * doc/posix-functions/wcsftime.texi: Likewise.
18372         * doc/posix-functions/wcslen.texi: Likewise.
18373         * doc/posix-functions/wcsncat.texi: Likewise.
18374         * doc/posix-functions/wcsncmp.texi: Likewise.
18375         * doc/posix-functions/wcsncpy.texi: Likewise.
18376         * doc/posix-functions/wcspbrk.texi: Likewise.
18377         * doc/posix-functions/wcsrchr.texi: Likewise.
18378         * doc/posix-functions/wcsrtombs.texi: Likewise.
18379         * doc/posix-functions/wcsspn.texi: Likewise.
18380         * doc/posix-functions/wcsstr.texi: Likewise.
18381         * doc/posix-functions/wcstod.texi: Likewise.
18382         * doc/posix-functions/wcstof.texi: Likewise.
18383         * doc/posix-functions/wcstoimax.texi: Likewise.
18384         * doc/posix-functions/wcstok.texi: Likewise.
18385         * doc/posix-functions/wcstold.texi: Likewise.
18386         * doc/posix-functions/wcstoll.texi: Likewise.
18387         * doc/posix-functions/wcstol.texi: Likewise.
18388         * doc/posix-functions/wcstombs.texi: Likewise.
18389         * doc/posix-functions/wcstoull.texi: Likewise.
18390         * doc/posix-functions/wcstoul.texi: Likewise.
18391         * doc/posix-functions/wcstoumax.texi: Likewise.
18392         * doc/posix-functions/wcswidth.texi: Likewise.
18393         * doc/posix-functions/wcsxfrm.texi: Likewise.
18394         * doc/posix-functions/wctob.texi: Likewise.
18395         * doc/posix-functions/wctomb.texi: Likewise.
18396         * doc/posix-functions/wctrans.texi: Likewise.
18397         * doc/posix-functions/wctype.texi: Likewise.
18398         * doc/posix-functions/wcwidth.texi: Likewise.
18399         * doc/posix-functions/wmemchr.texi: Likewise.
18400         * doc/posix-functions/wmemcmp.texi: Likewise.
18401         * doc/posix-functions/wmemcpy.texi: Likewise.
18402         * doc/posix-functions/wmemmove.texi: Likewise.
18403         * doc/posix-functions/wmemset.texi: Likewise.
18404         * doc/posix-functions/wprintf.texi: Likewise.
18405         * doc/posix-functions/wscanf.texi: Likewise.
18406
18407 2008-12-21  Bruno Haible  <bruno@clisp.org>
18408
18409         Update doc for HP-UX 11.11.
18410         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18411         in HP-UX version 11.00, not in all versions of HP-UX 11.
18412         * doc/posix-functions/fwide.texi: Likewise.
18413         * doc/posix-functions/fwprintf.texi: Likewise.
18414         * doc/posix-functions/fwscanf.texi: Likewise.
18415         * doc/posix-functions/inet_ntop.texi: Likewise.
18416         * doc/posix-functions/inet_pton.texi: Likewise.
18417         * doc/posix-functions/mbrlen.texi: Likewise.
18418         * doc/posix-functions/mbrtowc.texi: Likewise.
18419         * doc/posix-functions/mbsinit.texi: Likewise.
18420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18421         * doc/posix-functions/swprintf.texi: Likewise.
18422         * doc/posix-functions/swscanf.texi: Likewise.
18423         * doc/posix-functions/towctrans.texi: Likewise.
18424         * doc/posix-functions/vfwprintf.texi: Likewise.
18425         * doc/posix-functions/vswprintf.texi: Likewise.
18426         * doc/posix-functions/vwprintf.texi: Likewise.
18427         * doc/posix-functions/wcrtomb.texi: Likewise.
18428         * doc/posix-functions/wcsrtombs.texi: Likewise.
18429         * doc/posix-functions/wcsstr.texi: Likewise.
18430         * doc/posix-functions/wctob.texi: Likewise.
18431         * doc/posix-functions/wctrans.texi: Likewise.
18432         * doc/posix-functions/wmemchr.texi: Likewise.
18433         * doc/posix-functions/wmemcmp.texi: Likewise.
18434         * doc/posix-functions/wmemcpy.texi: Likewise.
18435         * doc/posix-functions/wmemmove.texi: Likewise.
18436         * doc/posix-functions/wmemset.texi: Likewise.
18437         * doc/posix-functions/wprintf.texi: Likewise.
18438         * doc/posix-functions/wscanf.texi: Likewise.
18439
18440 2008-12-21  Bruno Haible  <bruno@clisp.org>
18441
18442         Work around a portability problem.
18443         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18444         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18445
18446 2008-12-20  Bruno Haible  <bruno@clisp.org>
18447
18448         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18449         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18450         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18452         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18453
18454         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18455         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18456         set.
18457         (GNULIB_defined_mbstate_t): New macro.
18458         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18459         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18460         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18461         reuses the system's mbrtowc function but works around the bugs.
18462         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18463         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18464         macros.
18465         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18466         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18467         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18469         REPLACE_MBSINIT if mbsinit needs to be overridden.
18470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18471         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18472         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18473         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18474         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18475         m4/locale-zh.m4.
18476         (Depends): Add mbsinit.
18477         * modules/mbsinit (Depends): Add mbrtowc.
18478         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18479
18480 2008-12-20  Bruno Haible  <bruno@clisp.org>
18481
18482         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18483         so that there are no conversion errors on AIX.
18484         * tests/test-mbsrtowcs.c (main): LIkewise.
18485
18486 2008-12-20  Bruno Haible  <bruno@clisp.org>
18487
18488         Work around wctob bug on Solaris <= 9.
18489         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18490         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18492         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18493         * modules/wctob (Files): Add m4/locale-fr.m4.
18494         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18495
18496 2008-12-20  Bruno Haible  <bruno@clisp.org>
18497
18498         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18499         /dev/null.
18500         * tests/test-select-in.sh: Likewise.
18501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18502
18503 2008-12-20  Bruno Haible  <bruno@clisp.org>
18504
18505         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18506         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18507         Cygwin 1.5.x.
18508
18509 2008-12-20  Bruno Haible  <bruno@clisp.org>
18510
18511         Ensure mbstate_t is defined on HP-UX 11.11.
18512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18513         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18514         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18515         AC_USE_SYSTEM_EXTENSIONS.
18516         * modules/fnmatch (Depends-on): Add extensions.
18517         * modules/mbrlen (Depends-on): Likewise.
18518         * modules/mbrtowc (Depends-on): Likewise.
18519         * modules/mbsinit (Depends-on): Likewise.
18520         * modules/mbsrtowcs (Depends-on): Likewise.
18521         * modules/mbswidth (Depends-on): Likewise.
18522         * modules/quotearg (Depends-on): Likewise.
18523         * modules/strftime (Depends-on): Likewise.
18524
18525 2008-12-20  Bruno Haible  <bruno@clisp.org>
18526
18527         Ensure wctob is declared on IRIX 6.5.
18528         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18529         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18530         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18532         of HAVE_WCTOB.
18533         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18534         HAVE_WCTOB.
18535         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18536
18537 2008-12-19  Bruno Haible  <bruno@clisp.org>
18538
18539         * modules/mbsrtowcs-tests: New file.
18540         * tests/test-mbsrtowcs1.sh: New file.
18541         * tests/test-mbsrtowcs2.sh: New file.
18542         * tests/test-mbsrtowcs3.sh: New file.
18543         * tests/test-mbsrtowcs4.sh: New file.
18544         * tests/test-mbsrtowcs.c: New file.
18545
18546         New module 'mbsrtowcs'.
18547         * lib/wchar.in.h (mbsrtowcs): New declaration.
18548         * lib/mbsrtowcs.c: New file.
18549         * m4/mbsrtowcs.m4: New file.
18550         * modules/mbsrtowcs: New file.
18551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18552         HAVE_MBSRTOWCS.
18553         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18554         HAVE_MBSRTOWCS.
18555         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18556
18557 2008-12-19  Bruno Haible  <bruno@clisp.org>
18558
18559         New module 'mbrlen'.
18560         * lib/wchar.in.h (mbrlen): New declaration.
18561         * lib/mbrlen.c: New file.
18562         * m4/mbrlen.m4: New file.
18563         * modules/mbrlen: New file.
18564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18565         HAVE_MBRLEN.
18566         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18567         HAVE_MBRLEN.
18568         * doc/posix-functions/mbrlen.texi: Document the new module.
18569
18570 2008-12-19  Bruno Haible  <bruno@clisp.org>
18571
18572         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18573         * modules/mbrtowc (Depends-on): Add verify.
18574         Suggested by Paul Eggert.
18575
18576 2008-12-18  Bruno Haible  <bruno@clisp.org>
18577
18578         * modules/mbsinit-tests: New file.
18579         * tests/test-mbsinit.sh: New file.
18580         * tests/test-mbsinit.c: New file.
18581
18582 2008-12-18  Bruno Haible  <bruno@clisp.org>
18583
18584         * modules/mbrtowc-tests: New file.
18585         * tests/test-mbrtowc1.sh: New file.
18586         * tests/test-mbrtowc2.sh: New file.
18587         * tests/test-mbrtowc3.sh: New file.
18588         * tests/test-mbrtowc4.sh: New file.
18589         * tests/test-mbrtowc.c: New file.
18590
18591         New module 'mbrtowc'.
18592         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18593         mbsinit and mbrtowc.
18594         (mbrtowc): New declaration.
18595         * lib/mbrtowc.c: New file.
18596         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18597         * modules/mbrtowc: New file.
18598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18599         HAVE_MBRTOWC.
18600         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18601         HAVE_MBRTOWC.
18602         * doc/posix-functions/mbrtowc.texi: Document the new module.
18603
18604 2008-12-18  Bruno Haible  <bruno@clisp.org>
18605
18606         New module 'wctob'.
18607         * lib/wchar.in.h (wctob): New declaration.
18608         * lib/wctob.c: New file.
18609         * m4/wctob.m4: New file.
18610         * modules/wctob: New file.
18611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18612         HAVE_WCTOB.
18613         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18614         * doc/posix-functions/wctob.texi: Document the new module.
18615
18616 2008-12-18  Bruno Haible  <bruno@clisp.org>
18617
18618         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18619         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18620
18621 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18622
18623         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18624         G. Christensen" <tgc@jupiterrise.com>.
18625
18626         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18627         G. Christensen" <tgc@jupiterrise.com>.
18628
18629         * lib/flock.c: Need to include string.h.  Reported by "Tom
18630         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18631         <ebb9@byu.net>.
18632
18633 2008-12-18  Bruno Haible  <bruno@clisp.org>
18634
18635         * m4/locale-ja.m4: New file, from GNU gettext.
18636
18637 2008-12-17  Bruno Haible  <bruno@clisp.org>
18638
18639         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18640         Suggested by Eric Blake.
18641
18642 2008-12-17  Bruno Haible  <bruno@clisp.org>
18643
18644         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18645
18646 2008-12-17  Bruno Haible  <bruno@clisp.org>
18647
18648         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18649         * modules/mbsinit (Depends-on): Add verify.
18650         Suggested by Paul Eggert.
18651
18652 2008-12-17  Bruno Haible  <bruno@clisp.org>
18653
18654         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18655         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18656         gl_FUNC_MBRTOWC.
18657         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18658         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18659         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18660         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18661         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18662         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18663         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18664         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18665         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18666         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18667         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18668         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18669         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18670         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18671         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18672         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18673         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18674         * modules/trim (configure.ac): Likewise.
18675
18676 2008-12-17  Bruno Haible  <bruno@clisp.org>
18677
18678         * modules/btowc-tests: New file.
18679         * tests/test-btowc1.sh: New file.
18680         * tests/test-btowc2.sh: New file.
18681         * tests/test-btowc.c: New file.
18682
18683         New module 'btowc'.
18684         * lib/wchar.in.h (btowc): New declaration.
18685         * lib/btowc.c: New file.
18686         * m4/btowc.m4: New file.
18687         * modules/btowc: New file.
18688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18689         HAVE_BTOWC.
18690         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18691         * doc/posix-functions/btowc.texi: Document the new module.
18692
18693 2008-12-17  Bruno Haible  <bruno@clisp.org>
18694
18695         New module 'mbsinit'.
18696         * lib/wchar.in.h (mbsinit): New declaration.
18697         * lib/mbsinit.c: New file.
18698         * m4/mbsinit.m4: New file.
18699         * modules/mbsinit: New file.
18700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18701         HAVE_MBSINIT.
18702         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18703         HAVE_MBSINIT.
18704         * doc/posix-functions/mbsinit.texi: Document the new module.
18705
18706 2008-12-16  Bruno Haible  <bruno@clisp.org>
18707
18708         * lib/unistd.in.h: Add comment.
18709         * tests/test-environ.c: Don't include <stdlib.h>.
18710
18711 2008-12-16  Bruno Haible  <bruno@clisp.org>
18712
18713         * lib/parse-duration.h (parse_duration): Document return value
18714         convention.
18715         * lib/parse-duration.c: Include specification header first. Add
18716         comments.
18717         (_): Remove macro.
18718         (parse_year_month_day, parse_hour_minute_second): Move side effects
18719         outside of strchr call.
18720         (parse_non_iso8601): Move side effects outside of isspace call.
18721         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18722         call.
18723
18724 2008-12-16  Bruno Haible  <bruno@clisp.org>
18725
18726         * tests/test-parse-duration.sh: Produce no output when the test
18727         succeeds.
18728
18729 2008-12-16  Bruno Haible  <bruno@clisp.org>
18730
18731         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18732         expressions.
18733
18734 2008-12-15  Bruno Haible  <bruno@clisp.org>
18735
18736         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18737         * doc/glibc-functions/flistxattr.texi: Likewise.
18738         * doc/glibc-functions/fopencookie.texi: Likewise.
18739         * doc/glibc-functions/fremovexattr.texi: Likewise.
18740         * doc/glibc-functions/fsetxattr.texi: Likewise.
18741         * doc/glibc-functions/getxattr.texi: Likewise.
18742         * doc/glibc-functions/lgetxattr.texi: Likewise.
18743         * doc/glibc-functions/listxattr.texi: Likewise.
18744         * doc/glibc-functions/llistxattr.texi: Likewise.
18745         * doc/glibc-functions/lremovexattr.texi: Likewise.
18746         * doc/glibc-functions/lsetxattr.texi: Likewise.
18747         * doc/glibc-functions/removexattr.texi: Likewise.
18748         * doc/glibc-functions/setxattr.texi: Likewise.
18749         * doc/posix-functions/open_memstream.texi: Likewise.
18750
18751 2008-12-15  Eric Blake  <ebb9@byu.net>
18752
18753         Update doc for cygwin 1.7.
18754         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18755         functions.
18756         * doc/posix-functions/fchmodat.texi: Likewise.
18757         * doc/posix-functions/fchownat.texi: Likewise.
18758         * doc/posix-functions/fdopendir.texi: Likewise.
18759         * doc/posix-functions/fmemopen.texi: Likewise.
18760         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18761         * doc/posix-functions/fstatat.texi: Likewise.
18762         * doc/posix-functions/futimens.texi: Likewise.
18763         * doc/posix-functions/gai_strerror.texi: Likewise.
18764         * doc/posix-functions/getaddrinfo.texi: Likewise.
18765         * doc/posix-functions/getnameinfo.texi: Likewise.
18766         * doc/posix-functions/if_freenameindex.texi: Likewise.
18767         * doc/posix-functions/if_indextoname.texi: Likewise.
18768         * doc/posix-functions/if_nameindex.texi: Likewise.
18769         * doc/posix-functions/if_nametoindex.texi: Likewise.
18770         * doc/posix-functions/insque.texi: Likewise.
18771         * doc/posix-functions/linkat.texi: Likewise.
18772         * doc/posix-functions/llrint.texi: Likewise.
18773         * doc/posix-functions/llrintf.texi: Likewise.
18774         * doc/posix-functions/llrintl.texi: Likewise.
18775         * doc/posix-functions/lockf.texi: Likewise.
18776         * doc/posix-functions/lrintl.texi: Likewise.
18777         * doc/posix-functions/mkdirat.texi: Likewise.
18778         * doc/posix-functions/mkfifoat.texi: Likewise.
18779         * doc/posix-functions/mknodat.texi: Likewise.
18780         * doc/posix-functions/mq_close.texi: Likewise.
18781         * doc/posix-functions/mq_getattr.texi: Likewise.
18782         * doc/posix-functions/mq_notify.texi: Likewise.
18783         * doc/posix-functions/mq_open.texi: Likewise.
18784         * doc/posix-functions/mq_receive.texi: Likewise.
18785         * doc/posix-functions/mq_send.texi: Likewise.
18786         * doc/posix-functions/mq_setattr.texi: Likewise.
18787         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18788         * doc/posix-functions/mq_timedsend.texi: Likewise.
18789         * doc/posix-functions/mq_unlink.texi: Likewise.
18790         * doc/posix-functions/open_memstream.texi: Likewise.
18791         * doc/posix-functions/openat.texi: Likewise.
18792         * doc/posix-functions/posix_fadvise.texi: Likewise.
18793         * doc/posix-functions/posix_fallocate.texi: Likewise.
18794         * doc/posix-functions/posix_madvise.texi: Likewise.
18795         * doc/posix-functions/posix_memalign.texi: Likewise.
18796         * doc/posix-functions/posix_openpt.texi: Likewise.
18797         * doc/posix-functions/readlinkat.texi: Likewise.
18798         * doc/posix-functions/remque.texi: Likewise.
18799         * doc/posix-functions/renameat.texi: Likewise.
18800         * doc/posix-functions/rintl.texi: Likewise.
18801         * doc/posix-functions/sem_unlink.texi: Likewise.
18802         * doc/posix-functions/shm_open.texi: Likewise.
18803         * doc/posix-functions/shm_unlink.texi: Likewise.
18804         * doc/posix-functions/signgam.texi: Likewise.
18805         * doc/posix-functions/sigset.texi: Likewise.
18806         * doc/posix-functions/stpcpy.texi: Likewise.
18807         * doc/posix-functions/stpncpy.texi: Likewise.
18808         * doc/posix-functions/strerror.texi: Likewise.
18809         * doc/posix-functions/strtod.texi: Likewise.
18810         * doc/posix-functions/symlinkat.texi: Likewise.
18811         * doc/posix-functions/unlinkat.texi: Likewise.
18812         * doc/posix-functions/utimensat.texi: Likewise.
18813         * doc/glibc-functions/bindresvport.texi: Likewise.
18814         * doc/glibc-functions/dn_expand.texi: Likewise.
18815         * doc/glibc-functions/exp10.texi: Likewise.
18816         * doc/glibc-functions/exp10f.texi: Likewise.
18817         * doc/glibc-functions/fgetxattr.texi: Likewise.
18818         * doc/glibc-functions/flistxattr.texi: Likewise.
18819         * doc/glibc-functions/fopencookie.texi: Likewise.
18820         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18821         * doc/glibc-functions/fremovexattr.texi: Likewise.
18822         * doc/glibc-functions/fsetxattr.texi: Likewise.
18823         * doc/glibc-functions/getifaddrs.texi: Likewise.
18824         * doc/glibc-functions/getxattr.texi: Likewise.
18825         * doc/glibc-functions/lgetxattr.texi: Likewise.
18826         * doc/glibc-functions/listxattr.texi: Likewise.
18827         * doc/glibc-functions/llistxattr.texi: Likewise.
18828         * doc/glibc-functions/lremovexattr.texi: Likewise.
18829         * doc/glibc-functions/lsetxattr.texi: Likewise.
18830         * doc/glibc-functions/pow10.texi: Likewise.
18831         * doc/glibc-functions/pow10f.texi: Likewise.
18832         * doc/glibc-functions/rcmd_af.texi: Likewise.
18833         * doc/glibc-functions/removexattr.texi: Likewise.
18834         * doc/glibc-functions/res_init.texi: Likewise.
18835         * doc/glibc-functions/res_mkquery.texi: Likewise.
18836         * doc/glibc-functions/res_query.texi: Likewise.
18837         * doc/glibc-functions/res_querydomain.texi: Likewise.
18838         * doc/glibc-functions/res_send.texi: Likewise.
18839         * doc/glibc-functions/rresvport_af.texi: Likewise.
18840         * doc/glibc-functions/setxattr.texi: Likewise.
18841         * doc/glibc-functions/strcasestr.texi: Likewise.
18842
18843 2008-12-15  Bruno Haible  <bruno@clisp.org>
18844
18845         Fix compilation error on OSF/1 4.0.
18846         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18847         <sys/time.h>, simply delegate to the system header.
18848         Reported by Daniel Richard G. <oss@teragram.com>.
18849
18850 2008-12-15  Bruno Haible  <bruno@clisp.org>
18851
18852         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18853         * doc/posix-functions/fchmodat.texi: Likewise.
18854         * doc/posix-functions/fchownat.texi: Likewise.
18855         * doc/posix-functions/fdopendir.texi: Likewise.
18856         * doc/posix-functions/fstatat.texi: Likewise.
18857         * doc/posix-functions/mkdirat.texi: Likewise.
18858         * doc/posix-functions/unlinkat.texi: Likewise.
18859
18860 2008-12-14  Bruno Haible  <bruno@clisp.org>
18861
18862         Update doc for POSIX:2008.
18863         * doc/posix-functions/faccessat.texi: New file.
18864         * doc/posix-functions/fchmodat.texi: New file.
18865         * doc/posix-functions/fchownat.texi: New file.
18866         * doc/posix-functions/fdopendir.texi: New file.
18867         * doc/posix-functions/fstatat.texi: New file.
18868         * doc/posix-functions/futimens.texi: New file.
18869         * doc/posix-functions/linkat.texi: New file.
18870         * doc/posix-functions/mkdirat.texi: New file.
18871         * doc/posix-functions/mkfifoat.texi: New file.
18872         * doc/posix-functions/mknodat.texi: New file.
18873         * doc/posix-functions/open_wmemstream.texi: New file.
18874         * doc/posix-functions/openat.texi: New file.
18875         * doc/posix-functions/psiginfo.texi: New file.
18876         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18877         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18878         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18879         * doc/posix-functions/readlinkat.texi: New file.
18880         * doc/posix-functions/renameat.texi: New file.
18881         * doc/posix-functions/strerror_l.texi: New file.
18882         * doc/posix-functions/symlinkat.texi: New file.
18883         * doc/posix-functions/unlinkat.texi: New file.
18884         * doc/posix-functions/utimensat.texi: New file.
18885         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18886
18887 2008-12-14  Bruno Haible  <bruno@clisp.org>
18888
18889         Update doc for POSIX:2008.
18890         * doc/posix-functions/alphasort.texi: Renamed from
18891         doc/glibc-functions/alphasort.texi.
18892         * doc/posix-functions/dirfd.texi: Renamed from
18893         doc/glibc-functions/dirfd.texi.
18894         * doc/posix-functions/dprintf.texi: Renamed from
18895         doc/glibc-functions/dprintf.texi.
18896         * doc/posix-functions/duplocale.texi: Renamed from
18897         doc/glibc-functions/duplocale.texi.
18898         * doc/posix-functions/fexecve.texi: Renamed from
18899         doc/glibc-functions/fexecve.texi.
18900         * doc/posix-functions/fmemopen.texi: Renamed from
18901         doc/glibc-functions/fmemopen.texi.
18902         * doc/posix-functions/freelocale.texi: Renamed from
18903         doc/glibc-functions/freelocale.texi.
18904         * doc/posix-functions/getdate_err.texi: Renamed from
18905         doc/glibc-functions/getdate_err.texi.
18906         * doc/posix-functions/isalnum_l.texi: Renamed from
18907         doc/glibc-functions/isalnum_l.texi.
18908         * doc/posix-functions/isalpha_l.texi: Renamed from
18909         doc/glibc-functions/isalpha_l.texi.
18910         * doc/posix-functions/isblank_l.texi: Renamed from
18911         doc/glibc-functions/isblank_l.texi.
18912         * doc/posix-functions/iscntrl_l.texi: Renamed from
18913         doc/glibc-functions/iscntrl_l.texi.
18914         * doc/posix-functions/isdigit_l.texi: Renamed from
18915         doc/glibc-functions/isdigit_l.texi.
18916         * doc/posix-functions/isgraph_l.texi: Renamed from
18917         doc/glibc-functions/isgraph_l.texi.
18918         * doc/posix-functions/islower_l.texi: Renamed from
18919         doc/glibc-functions/islower_l.texi.
18920         * doc/posix-functions/isprint_l.texi: Renamed from
18921         doc/glibc-functions/isprint_l.texi.
18922         * doc/posix-functions/ispunct_l.texi: Renamed from
18923         doc/glibc-functions/ispunct_l.texi.
18924         * doc/posix-functions/isspace_l.texi: Renamed from
18925         doc/glibc-functions/isspace_l.texi.
18926         * doc/posix-functions/isupper_l.texi: Renamed from
18927         doc/glibc-functions/isupper_l.texi.
18928         * doc/posix-functions/iswalnum_l.texi: Renamed from
18929         doc/glibc-functions/iswalnum_l.texi.
18930         * doc/posix-functions/iswalpha_l.texi: Renamed from
18931         doc/glibc-functions/iswalpha_l.texi.
18932         * doc/posix-functions/iswblank_l.texi: Renamed from
18933         doc/glibc-functions/iswblank_l.texi.
18934         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18935         doc/glibc-functions/iswcntrl_l.texi.
18936         * doc/posix-functions/iswctype_l.texi: Renamed from
18937         doc/glibc-functions/iswctype_l.texi.
18938         * doc/posix-functions/iswdigit_l.texi: Renamed from
18939         doc/glibc-functions/iswdigit_l.texi.
18940         * doc/posix-functions/iswgraph_l.texi: Renamed from
18941         doc/glibc-functions/iswgraph_l.texi.
18942         * doc/posix-functions/iswlower_l.texi: Renamed from
18943         doc/glibc-functions/iswlower_l.texi.
18944         * doc/posix-functions/iswprint_l.texi: Renamed from
18945         doc/glibc-functions/iswprint_l.texi.
18946         * doc/posix-functions/iswpunct_l.texi: Renamed from
18947         doc/glibc-functions/iswpunct_l.texi.
18948         * doc/posix-functions/iswspace_l.texi: Renamed from
18949         doc/glibc-functions/iswspace_l.texi.
18950         * doc/posix-functions/iswupper_l.texi: Renamed from
18951         doc/glibc-functions/iswupper_l.texi.
18952         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18953         doc/glibc-functions/iswxdigit_l.texi.
18954         * doc/posix-functions/isxdigit_l.texi: Renamed from
18955         doc/glibc-functions/isxdigit_l.texi.
18956         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18957         doc/glibc-functions/mbsnrtowcs.texi.
18958         * doc/posix-functions/mkdtemp.texi: Renamed from
18959         doc/glibc-functions/mkdtemp.texi.
18960         * doc/posix-functions/newlocale.texi: Renamed from
18961         doc/glibc-functions/newlocale.texi.
18962         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18963         doc/glibc-functions/nl_langinfo_l.texi.
18964         * doc/posix-functions/open_memstream.texi: Renamed from
18965         doc/glibc-functions/open_memstream.texi.
18966         * doc/posix-functions/opterr.texi: Renamed from
18967         doc/glibc-functions/opterr.texi.
18968         * doc/posix-functions/optind.texi: Renamed from
18969         doc/glibc-functions/optind.texi.
18970         * doc/posix-functions/optopt.texi: Renamed from
18971         doc/glibc-functions/optopt.texi.
18972         * doc/posix-functions/psignal.texi: Renamed from
18973         doc/glibc-functions/psignal.texi.
18974         * doc/posix-functions/scandir.texi: Renamed from
18975         doc/glibc-functions/scandir.texi.
18976         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18977         doc/glibc-functions/sched_get_priority_min.texi.
18978         * doc/posix-functions/signgam.texi: Renamed from
18979         doc/glibc-functions/signgam.texi.
18980         * doc/posix-functions/stpcpy.texi: Renamed from
18981         doc/glibc-functions/stpcpy.texi.
18982         * doc/posix-functions/stpncpy.texi: Renamed from
18983         doc/glibc-functions/stpncpy.texi.
18984         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18985         doc/glibc-functions/strcasecmp_l.texi.
18986         * doc/posix-functions/strcoll_l.texi: Renamed from
18987         doc/glibc-functions/strcoll_l.texi.
18988         * doc/posix-functions/strfmon_l.texi: Renamed from
18989         doc/glibc-functions/strfmon_l.texi.
18990         * doc/posix-functions/strftime_l.texi: Renamed from
18991         doc/glibc-functions/strftime_l.texi.
18992         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18993         doc/glibc-functions/strncasecmp_l.texi.
18994         * doc/posix-functions/strndup.texi: Renamed from
18995         doc/glibc-functions/strndup.texi.
18996         * doc/posix-functions/strnlen.texi: Renamed from
18997         doc/glibc-functions/strnlen.texi.
18998         * doc/posix-functions/strsignal.texi: Renamed from
18999         doc/glibc-functions/strsignal.texi.
19000         * doc/posix-functions/strxfrm_l.texi: Renamed from
19001         doc/glibc-functions/strxfrm_l.texi.
19002         * doc/posix-functions/timer_gettime.texi: Renamed from
19003         doc/glibc-functions/timer_gettime.texi.
19004         * doc/posix-functions/tolower_l.texi: Renamed from
19005         doc/glibc-functions/tolower_l.texi.
19006         * doc/posix-functions/toupper_l.texi: Renamed from
19007         doc/glibc-functions/toupper_l.texi.
19008         * doc/posix-functions/towctrans_l.texi: Renamed from
19009         doc/glibc-functions/towctrans_l.texi.
19010         * doc/posix-functions/towlower_l.texi: Renamed from
19011         doc/glibc-functions/towlower_l.texi.
19012         * doc/posix-functions/towupper_l.texi: Renamed from
19013         doc/glibc-functions/towupper_l.texi.
19014         * doc/posix-functions/uselocale.texi: Renamed from
19015         doc/glibc-functions/uselocale.texi.
19016         * doc/posix-functions/vdprintf.texi: Renamed from
19017         doc/glibc-functions/vdprintf.texi.
19018         * doc/posix-functions/wcpcpy.texi:
19019         Renamed from doc/glibc-functions/wcpcpy.texi.
19020         * doc/posix-functions/wcpncpy.texi: Renamed from
19021         doc/glibc-functions/wcpncpy.texi.
19022         * doc/posix-functions/wcscasecmp.texi: Renamed from
19023         doc/glibc-functions/wcscasecmp.texi.
19024         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19025         doc/glibc-functions/wcscasecmp_l.texi.
19026         * doc/posix-functions/wcscoll_l.texi: Renamed from
19027         doc/glibc-functions/wcscoll_l.texi.
19028         * doc/posix-functions/wcsdup.texi: Renamed from
19029         doc/glibc-functions/wcsdup.texi.
19030         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19031         doc/glibc-functions/wcsncasecmp.texi.
19032         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19033         doc/glibc-functions/wcsncasecmp_l.texi.
19034         * doc/posix-functions/wcsnlen.texi: Renamed from
19035         doc/glibc-functions/wcsnlen.texi.
19036         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19037         doc/glibc-functions/wcsnrtombs.texi.
19038         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19039         doc/glibc-functions/wcsxfrm_l.texi.
19040         * doc/posix-functions/wctrans_l.texi: Renamed from
19041         doc/glibc-functions/wctrans_l.texi.
19042         * doc/posix-functions/wctype_l.texi: Renamed from
19043         doc/glibc-functions/wctype_l.texi.
19044         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19045         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19046         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19047         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19048         these subsections.
19049         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19050         Remove sections.
19051
19052 2008-12-14  Bruno Haible  <bruno@clisp.org>
19053
19054         Update doc for POSIX:2008.
19055         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19056
19057 2008-12-14  Bruno Haible  <bruno@clisp.org>
19058
19059         Update doc for POSIX:2008.
19060         * doc/pastposix-functions/bcmp.texi: Renamed from
19061         doc/posix-functions/bcmp.texi.
19062         * doc/pastposix-functions/bcopy.texi: Renamed from
19063         doc/posix-functions/bcopy.texi.
19064         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19065         doc/posix-functions/bsd_signal.texi.
19066         * doc/pastposix-functions/bzero.texi: Renamed from
19067         doc/posix-functions/bzero.texi.
19068         * doc/pastposix-functions/ecvt.texi: Renamed from
19069         doc/posix-functions/ecvt.texi.
19070         * doc/pastposix-functions/fcvt.texi: Renamed from
19071         doc/posix-functions/fcvt.texi.
19072         * doc/pastposix-functions/ftime.texi: Renamed from
19073         doc/posix-functions/ftime.texi.
19074         * doc/pastposix-functions/gcvt.texi: Renamed from
19075         doc/posix-functions/gcvt.texi.
19076         * doc/pastposix-functions/getcontext.texi: Renamed from
19077         doc/posix-functions/getcontext.texi.
19078         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19079         doc/posix-functions/gethostbyaddr.texi.
19080         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19081         doc/posix-functions/gethostbyname.texi.
19082         * doc/pastposix-functions/getwd.texi: Renamed from
19083         doc/posix-functions/getwd.texi.
19084         * doc/pastposix-functions/h_errno.texi: Renamed from
19085         doc/posix-functions/h_errno.texi.
19086         * doc/pastposix-functions/index.texi: Renamed from
19087         doc/posix-functions/index.texi.
19088         * doc/pastposix-functions/makecontext.texi: Renamed from
19089         doc/posix-functions/makecontext.texi.
19090         * doc/pastposix-functions/mktemp.texi: Renamed from
19091         doc/posix-functions/mktemp.texi.
19092         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19093         doc/posix-functions/pthread_attr_getstackaddr.texi.
19094         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19095         doc/posix-functions/pthread_attr_setstackaddr.texi.
19096         * doc/pastposix-functions/rindex.texi: Renamed from
19097         doc/posix-functions/rindex.texi.
19098         * doc/pastposix-functions/scalb.texi: Renamed from
19099         doc/posix-functions/scalb.texi.
19100         * doc/pastposix-functions/setcontext.texi: Renamed from
19101         doc/posix-functions/setcontext.texi.
19102         * doc/pastposix-functions/swapcontext.texi: Renamed from
19103         doc/posix-functions/swapcontext.texi.
19104         * doc/pastposix-functions/ualarm.texi: Renamed from
19105         doc/posix-functions/ualarm.texi.
19106         * doc/pastposix-functions/usleep.texi: Renamed from
19107         doc/posix-functions/usleep.texi.
19108         * doc/pastposix-functions/vfork.texi: Renamed from
19109         doc/posix-functions/vfork.texi.
19110         * doc/pastposix-functions/wcswcs.texi: Renamed from
19111         doc/posix-functions/wcswcs.texi.
19112         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19113         (Function Substitutes): Update.
19114
19115 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19116
19117         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19118         m4/strerror.m4.
19119
19120 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19121             Bruno Haible  <bruno@clisp.org>
19122
19123         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19124
19125 2008-12-13  Bruno Haible  <bruno@clisp.org>
19126
19127         * modules/strtoull (Depends-on): Remove unistd.
19128
19129 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19130
19131         * modules/strtoull (Depends-on): Add stdlib.
19132
19133 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19134
19135         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19136
19137 2008-12-10  Jim Meyering  <meyering@redhat.com>
19138
19139         gl_ASSERT: don't say assertions are disabled when they're not
19140         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19141         "checking whether to enable assertions... no", when they are in
19142         fact enabled.  This is solely a bug in the output of configure.
19143         In spite of saying "no", NDEBUG was not defined in that case.
19144         Also, as noted by Eric Blake, leave assertions enabled upon
19145         --enable-assert=INVALID.
19146
19147 2008-12-10  Bruno Haible  <bruno@clisp.org>
19148
19149         Change MODULES.html to refer to POSIX:2008 where possible.
19150         * MODULES.html.sh (POSIX2008_URL): New variable.
19151         (posix_headers): Remove sys/timeb, ucontext.
19152         (posix2001_headers): New variable.
19153         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19154         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19155         index, makecontext, mktemp, pthread_attr_getstackaddr,
19156         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19157         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19158         (posix2001_functions): New variable.
19159         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19160         otherwise.
19161
19162 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19163
19164         add missing include to parse-duration.c
19165         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19166         * modules/parse-duration (Depends-on): Add xalloc.
19167
19168         fix sed script reading maint.mk
19169         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19170         (syntax-check-rules): Use it.
19171
19172 2008-12-09  Bruno Haible  <bruno@clisp.org>
19173
19174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19175         MacOS X 10.4/PowerPC.
19176         Reported by Simon Josefsson.
19177
19178 2008-12-08  Jim Meyering  <meyering@redhat.com>
19179
19180         work around mingw's lack of some S_IF definitions
19181         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19182         Reported by Simon Josefsson.
19183
19184 2008-12-08  Bruno Haible  <bruno@clisp.org>
19185
19186         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19187         applied to variables. Needed on MacOS X 10.4/PowerPC.
19188         Reported by Simon Josefsson.
19189
19190 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19191         and Eric Blake  <ebb9@byu.net>
19192
19193         assert: honor --enable-assert
19194         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19195         order to honor --enable-assert, rather than treating it as a
19196         synonym for --disable-assert.
19197
19198 2008-12-08  Jim Meyering  <meyering@redhat.com>
19199
19200         * lib/posixtm.c: Remove now-useless declaration of mktime.
19201
19202         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19203
19204 2008-12-07  Bruno Haible  <bruno@clisp.org>
19205
19206         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19207         test_once): Mark functions as static.
19208         * tests/test-tls.c (test_tls): Likewise.
19209
19210 2008-12-07  Bruno Haible  <bruno@clisp.org>
19211
19212         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19213         iconv_register_autodetect.
19214
19215 2008-12-07  Jim Meyering  <meyering@redhat.com>
19216
19217         posixtm.c: avoid a warning
19218         * lib/posixtm.c (posixtime): Don't initialize tm0.
19219         It's no longer needed to placate gcc4's -Wuninitialized,
19220         and the attempt to placate would elicit a new warning.
19221
19222         unicodeio.c: mark unused parameters
19223         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19224         (fallback_failure_callback): Likewise.
19225
19226 2008-12-07  Bruno Haible  <bruno@clisp.org>
19227
19228         * gnulib-tool (func_create_testdir): When building the tests
19229         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19230         Reported by Simon Josefsson.
19231
19232 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19233
19234         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19235
19236 2008-12-06  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19239         Suggested by Eric Blake.
19240
19241 2008-12-06  Bruno Haible  <bruno@clisp.org>
19242
19243         Fix a c-stack test failure on MacOS X.
19244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19245         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19246         handler for SIGBUS as well.
19247         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19248         install a signal handler for SIGBUS as well.
19249         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19250
19251 2008-12-06  Bruno Haible  <bruno@clisp.org>
19252
19253         Advocacy documentation.
19254         * doc/gnulib-intro.texi (Benefits): New section.
19255         * doc/gnulib.texi: Update.
19256
19257 2008-12-06  Bruno Haible  <bruno@clisp.org>
19258
19259         Document the 'manywarnings' module.
19260         * doc/manywarnings.texi: New file.
19261         * doc/gnulib.texi: Include it.
19262
19263 2008-12-05  Eric Blake  <ebb9@byu.net>
19264
19265         tests: silence some gcc warnings
19266         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19267         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19268         type mismatches.
19269
19270 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19271             Bruno Haible  <bruno@clisp.org>
19272
19273         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19274
19275 2008-11-29  Jim Meyering  <meyering@redhat.com>
19276
19277         unicodeio.c: mark unused parameters
19278         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19279         (fallback_failure_callback): Likewise.
19280
19281         fts: fix a thinko
19282         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19283         (set_stat_type): Return S_IF*-valued "type" directly.
19284         Prompted by James Youngman's spotting a related bug.
19285         Confirmed by further testing through find.
19286
19287         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19288         * lib/fts.c (D_TYPE): Define.
19289         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19290         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19291         (s_ifmt_shift_bits): New function.
19292         (set_stat_type): New function.
19293         (fts_build): When not calling fts_stat, call set_stat_type
19294         to propagate dirent.d_type info to fts_read caller.
19295         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19296         fts_statp->st_mode type information may be valid.
19297
19298 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19299
19300         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19301         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19302         <sds@gnu.org>.
19303
19304 2008-11-20  Bruno Haible  <bruno@clisp.org>
19305
19306         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19307         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19308         INCLUDE_NEXT.
19309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19310         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19311         * modules/math (Makefile.am): Substitute
19312         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19314
19315 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19316             Bruno Haible  <bruno@clisp.org>
19317
19318         * lib/stdint.in.h: Define all type macros so that their expansion is
19319         a single typedef'ed token. Fixes a compilation failure in Boost which
19320         does "using ::int8_t;".
19321
19322 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19323
19324         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19325         gl_MANYWARN_ALL_GCC.
19326         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19327         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19328         * modules/manywarnings: New file.
19329         * MODULES.html.sh: Mention manywarnings module.
19330
19331 2008-11-18  Bruno Haible  <bruno@clisp.org>
19332
19333         * doc/gnulib-tool.texi (Unit tests): New section.
19334
19335 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19336
19337         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19338         paths like 'lib/po/foo.po'.
19339
19340 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19341
19342         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19343         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19344
19345 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19346
19347         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19348         parameter works.
19349
19350 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19351
19352         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19353
19354 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19355
19356         * modules/parse-duration-tests: New file.
19357         * tests/test-parse-duration.sh: New file.
19358         * tests/test-parse-duration.c: New file.
19359
19360         New module 'parse-duration'.
19361         * lib/parse-duration.h: New file.
19362         * lib/parse-duration.c: New file.
19363         * modules/parse-duration: New file.
19364
19365 2008-11-17  Bruno Haible  <bruno@clisp.org>
19366
19367         * tests/test-select-out.sh: Comment out the first pipe test.
19368         Reported by Simon Josefsson.
19369
19370 2008-11-17  Bruno Haible  <bruno@clisp.org>
19371
19372         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19374         gl_HOSTENT.
19375
19376 2008-11-17  Bruno Haible  <bruno@clisp.org>
19377
19378         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19379         -lnetwork and -lnet. Needed for Haiku and BeOS.
19380
19381 2008-11-16  Bruno Haible  <bruno@clisp.org>
19382
19383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19384
19385 2008-11-16  Bruno Haible  <bruno@clisp.org>
19386
19387         Avoid test failure on Haiku.
19388         * tests/test-fsync.c: Include <errno.h>.
19389         (main): Don't require that fsync (0) fails.
19390
19391 2008-11-15  Bruno Haible  <bruno@clisp.org>
19392
19393         New module 'hostent'.
19394         * modules/hostent: New file.
19395         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19396
19397 2008-11-15  Bruno Haible  <bruno@clisp.org>
19398
19399         New module 'servent'.
19400         * modules/servent: New file.
19401         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19402
19403 2008-11-15  Bruno Haible  <bruno@clisp.org>
19404
19405         Avoid generating same test program with two different rules.
19406         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19407         test-frexp to test-frexp-nolibm.
19408         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19409         test-frexpl to test-frexpl-nolibm.
19410
19411 2008-11-15  Bruno Haible  <bruno@clisp.org>
19412
19413         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19414         $(FREXPL_LIBM).
19415
19416 2008-11-15  Bruno Haible  <bruno@clisp.org>
19417
19418         * lib/netdb.in.h: Activate the definitions also when the system's
19419         <netdb.h> has 'struct addrinfo'.
19420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19421         EAI_OVERFLOW or AI_NUMERICSERV.
19422         * doc/posix-headers/netdb.texi: Document the problem.
19423
19424 2008-11-15  Bruno Haible  <bruno@clisp.org>
19425
19426         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19427
19428         Make the 'sched' module work on platforms where <sched.h> exists but
19429         is incomplete (such as Haiku).
19430         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19431         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19432         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19433         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19434         HAVE_STRUCT_SCHED_PARAM.
19435         * modules/sched (Depends-on): Add include_next.
19436         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19437         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19438         * doc/posix-headers/sched.texi: Document the issue.
19439
19440 2008-11-13  Jim Meyering  <meyering@redhat.com>
19441
19442         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19443         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19444         test would fail due to the difference in the Report bugs to ...
19445         line.  The expected address is empty, "<>", while the actual
19446         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19447
19448 2008-11-12  Bruno Haible  <bruno@clisp.org>
19449
19450         lstat: don't compile lstat.c on systems lacking lstat
19451         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19452         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19453         Reported by Daniel P. Berrange via Jim Meyering.
19454
19455 2008-11-12  Jim Meyering  <meyering@redhat.com>
19456
19457         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19458
19459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19460
19461         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19462         instead.
19463
19464 2008-11-12  Bruno Haible  <bruno@clisp.org>
19465
19466         * lib/unicodeio.c: Include unistr.h.
19467         (utf8_wctomb): Remove function.
19468         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19469
19470 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19471
19472         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19473         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19474         <bruno@clisp.org>.
19475         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19476
19477 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19478
19479         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19480         * doc/gnulib.texi: Add section for warnings.
19481
19482 2008-11-11  Bruno Haible  <bruno@clisp.org>
19483
19484         * lib/sockets.h: Add a comment.
19485
19486 2008-11-11  Karl Berry  <karl@gnu.org>
19487
19488         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19489
19490 2008-11-11  Eric Blake  <ebb9@byu.net>
19491
19492         fdl.texi: avoid git symlinks
19493         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19494
19495 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19496
19497         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19498
19499 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19500
19501         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19502         (gl_WARN_ADD): Substitute $2 if literal.
19503
19504 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19505
19506         * m4/warning.m4: Remove.
19507
19508 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19509
19510         * m4/warnings.m4: Almost complete rewrite. :-)
19511
19512 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19513
19514         * modules/warnings: New module.
19515         * m4/warnings.m4: New file.
19516         * MODULES.html.sh: Mention warnings module.
19517         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19518         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19519
19520 2008-11-10  Eric Blake  <ebb9@byu.net>
19521
19522         fdl.texi: make a symlink to the latest version
19523         * doc/standards.texi: Revert today's earlier change.
19524         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19525         * doc/fdl.texi: ...and replace this with a symlink to the newer
19526         fdl-1.3.texi.
19527
19528 2008-11-10  Bruno Haible  <bruno@clisp.org>
19529
19530         * tests/test-select-fd.c (main): Accept the result file name as fourth
19531         argument.
19532         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19533         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19534
19535 2008-11-10  Bruno Haible  <bruno@clisp.org>
19536
19537         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19538         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19539         as autoconf-substituted macros.
19540         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19542         gl_NETDB_H_DEFAULTS. Set these variables.
19543         * modules/netdb (Makefile.am): Substitute these variables.
19544
19545 2008-11-10  Eric Blake  <ebb9@byu.net>
19546
19547         standards.texi: include correct file for FDL 1.3
19548         * doc/standards.texi (GNU Free Documentation License): Change
19549         include file to pull in FDL 1.3, not 1.2.
19550
19551         fdl.texi: revert accidental change to license
19552         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19553
19554 2008-11-10  Bruno Haible  <bruno@clisp.org>
19555
19556         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19557         cross-compiling guesses also when the native compile gives no result.
19558
19559 2008-11-10  Bruno Haible  <bruno@clisp.org>
19560
19561         * lib/spawni.c (__spawni): Force variable into the stack.
19562
19563 2008-11-10  Bruno Haible  <bruno@clisp.org>
19564
19565         Add support for Haiku.
19566         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19567         glibc and BeOS, but also on Haiku.
19568         * lib/fpurge.c (fpurge): Likewise.
19569         * lib/freadable.c (freadable): Likewise.
19570         * lib/freadahead.c (freadahead): Likewise.
19571         * lib/freading.c (freading): Likewise.
19572         * lib/freadptr.c (freadptr): Likewise.
19573         * lib/freadseek.c (freadptrinc): Likewise.
19574         * lib/fseeko.c (rpl_fseeko): Likewise.
19575         * lib/fseterr.c (fseterr): Likewise.
19576         * lib/fwritable.c (fwritable): Likewise.
19577         * lib/fwriting.c (fwriting): Likewise.
19578         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19579
19580 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19581
19582         * lib/config.charset: Treat Haiku like BeOS.
19583
19584 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19585
19586         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19587         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19588
19589 2008-11-08  Bruno Haible  <bruno@clisp.org>
19590
19591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19592         AC_CACHE_CHECK.
19593
19594 2008-11-08  Bruno Haible  <bruno@clisp.org>
19595
19596         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19597
19598 2008-11-08  Bruno Haible  <bruno@clisp.org>
19599
19600         * tests/test-select-fd.c: New file.
19601         * tests/test-select-in.sh: New file.
19602         * tests/test-select-out.sh: New file.
19603         * tests/test-select-stdin.c: New file.
19604         * modules/select-tests (Files): Add the new files.
19605         (Depends-on): Add gettimeofday.
19606         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19607         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19608         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19609
19610 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19611             Bruno Haible  <bruno@clisp.org>
19612
19613         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19614
19615 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19616
19617         * build-aux/pmccabe2html: Added support for C++ source files.
19618
19619 2008-11-05  Ben Pfaff  <blp@gnu.org>
19620
19621         Fix lib/close.c build on Windows.
19622         * modules/close (Files): Add lib/w32sock.h.
19623
19624 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19625
19626         Accept Bison's NEWS format.
19627         * build-aux/announce-gen (print_news_deltas): Tweak
19628         $re_prefix.
19629
19630 2008-11-04  Bruno Haible  <bruno@clisp.org>
19631
19632         * modules/random_r (Maintainer): Add glibc.
19633
19634 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19635
19636         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19637         by karl@freefriends.org (Karl Berry).
19638         * doc/alloca.texi: Likewise.
19639         * doc/c-ctype.texi: Likewise.
19640         * doc/c-strcase.texi: Likewise.
19641         * doc/c-strcaseeq.texi: Likewise.
19642         * doc/c-strcasestr.texi: Likewise.
19643         * doc/c-strstr.texi: Likewise.
19644         * doc/c-strtod.texi: Likewise.
19645         * doc/c-strtold.texi: Likewise.
19646         * doc/ctime.texi: Likewise.
19647         * doc/error.texi: Likewise.
19648         * doc/fdl.texi: Likewise.
19649         * doc/gcd.texi: Likewise.
19650         * doc/getdate.texi: Likewise.
19651         * doc/gnulib-intro.texi: Likewise.
19652         * doc/gnulib-tool.texi: Likewise.
19653         * doc/gnulib.texi: Likewise.
19654         * doc/inet_ntoa.texi: Likewise.
19655         * doc/maintain.texi: Likewise.
19656         * doc/make-stds.texi: Likewise.
19657         * doc/quote.texi: Likewise.
19658         * doc/regexprops-generic.texi: Likewise.
19659         * doc/standards.texi: Likewise.
19660         * doc/verify.texi: Likewise.
19661         * doc/visibility.texi: Likewise.
19662         * doc/gnulib.texi (GNU Free Documentation License): Include
19663         fdl-1.3.texi instead of fdl.texi.
19664
19665 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19666
19667         * doc/fdl-1.3.texi: New file, from
19668         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19669         * modules/fdl-1.3: Add.
19670         * MODULES.html.sh: Add fdl-1.3.
19671
19672 2008-11-03  Bruno Haible  <bruno@clisp.org>
19673
19674         Make determination of absolute name of header file work with AIX xlc.
19675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19676         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19677         preprocessing.
19678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19679         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19680
19681 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19682
19683         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19684         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19685         <ludo@gnu.org>.
19686
19687 2008-11-02  Bruno Haible  <bruno@clisp.org>
19688
19689         Mark 'strpbrk' obsolete.
19690         * modules/strpbrk (Status, Notice): New sections.
19691         * modules/strtok_r (Depends-on): Add strpbrk.
19692
19693 2008-11-02  Bruno Haible  <bruno@clisp.org>
19694
19695         Mark 'strdup' obsolete.
19696         * modules/strdup (Status, Notice): New sections.
19697         * modules/findprog (Depends-on): Add strdup.
19698         * modules/getaddrinfo (Depends-on): Likewise.
19699         * modules/localename (Depends-on): Likewise.
19700         * modules/relocatable-lib (Depends-on): Likewise.
19701         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19702         * modules/relocatable-prog (Depends-on): Likewise.
19703         * modules/trim (Depends-on): Likewise.
19704         * modules/unictype/gen-ctype (Depends-on): Likewise.
19705         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19706
19707 2008-11-02  Bruno Haible  <bruno@clisp.org>
19708
19709         Mark 'strcspn' obsolete.
19710         * modules/strcspn (Status, Notice): New sections.
19711
19712 2008-11-02  Bruno Haible  <bruno@clisp.org>
19713
19714         Mark 'rmdir' obsolete.
19715         * modules/rmdir (Status, Notice): New sections.
19716         * modules/clean-temp (Depends-on): Add rmdir.
19717         * modules/openat (Depends-on): Likewise.
19718
19719 2008-11-02  Bruno Haible  <bruno@clisp.org>
19720
19721         Mark 'raise' obsolete.
19722         * modules/raise (Status, Notice): New sections.
19723         (Include): Specify <signal.h>.
19724         * modules/stdio (Depends-on): Add raise.
19725         * modules/write (Depends-on): Likewise.
19726
19727 2008-11-02  Bruno Haible  <bruno@clisp.org>
19728
19729         Mark 'memset' obsolete.
19730         * modules/memset (Status, Notice): New sections.
19731
19732 2008-11-02  Bruno Haible  <bruno@clisp.org>
19733
19734         Mark 'memmove' obsolete.
19735         * modules/memmove (Status, Notice): New sections.
19736         * modules/argp (Depends-on): Add memmove.
19737         * modules/argz (Depends-on): Likewise.
19738         * modules/canonicalize (Depends-on): Likewise.
19739         * modules/canonicalize-lgpl (Depends-on): Likewise.
19740         * modules/fts (Depends-on): Likewise.
19741         * modules/getcwd (Depends-on): Likewise.
19742         * modules/human (Depends-on): Likewise.
19743         * modules/regex (Depends-on): Likewise.
19744         * modules/striconveh (Depends-on): Likewise.
19745         * modules/trim (Depends-on): Likewise.
19746         * modules/unistr/u8-move (Depends-on): Likewise.
19747         * modules/unistr/u16-move (Depends-on): Likewise.
19748         * modules/unistr/u32-move (Depends-on): Likewise.
19749
19750 2008-11-02  Bruno Haible  <bruno@clisp.org>
19751
19752         Mark 'memcpy' obsolete.
19753         * modules/memcpy (Status, Notice): New sections.
19754
19755 2008-11-02  Bruno Haible  <bruno@clisp.org>
19756
19757         Mark 'memcmp' obsolete.
19758         * modules/memcmp (Status, Notice): New sections.
19759         * modules/argmatch (Depends-on): Add memchr.
19760         * modules/backupfile (Depends-on): Likewise.
19761         * modules/c-strcasestr (Depends-on): Likewise.
19762         * modules/crypto/des (Depends-on): Likewise.
19763         * modules/csharpcomp (Depends-on): Likewise.
19764         * modules/fnmatch (Depends-on): Likewise.
19765         * modules/git-merge-changelog (Depends-on): Likewise.
19766         * modules/isnand (Depends-on): Likewise.
19767         * modules/isnand-nolibm (Depends-on): Likewise.
19768         * modules/isnanf (Depends-on): Likewise.
19769         * modules/isnanf-nolibm (Depends-on): Likewise.
19770         * modules/isnanl (Depends-on): Likewise.
19771         * modules/isnanl-nolibm (Depends-on): Likewise.
19772         * modules/mbchar (Depends-on): Likewise.
19773         * modules/memcoll (Depends-on): Likewise.
19774         * modules/quotearg (Depends-on): Likewise.
19775         * modules/regex (Depends-on): Likewise.
19776         * modules/relocatable-prog (Depends-on): Likewise.
19777         * modules/same (Depends-on): Likewise.
19778         * modules/signbit (Depends-on): Likewise.
19779         * modules/strcasestr-simple (Depends-on): Likewise.
19780         * modules/unictype/gen-ctype (Depends-on): Likewise.
19781         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19782         * modules/uniname/uniname (Depends-on): Likewise.
19783         * modules/unistr/u8-cmp (Depends-on): Likewise.
19784
19785 2008-11-02  Bruno Haible  <bruno@clisp.org>
19786
19787         Mark 'memchr' obsolete.
19788         * modules/memchr (Status, Notice): New sections.
19789         * modules/argp (Depends-on): Add memchr.
19790         * modules/base64 (Depends-on): Likewise.
19791         * modules/c-strcasestr (Depends-on): Likewise.
19792         * modules/chdir-long (Depends-on): Likewise.
19793         * modules/fnmatch (Depends-on): Likewise.
19794         * modules/getsubopt (Depends-on): Likewise.
19795         * modules/git-merge-changelog (Depends-on): Likewise.
19796         * modules/glob (Depends-on): Likewise.
19797         * modules/strcasestr-simple (Depends-on): Likewise.
19798         * modules/strnlen (Depends-on): Likewise.
19799
19800 2008-11-02  Bruno Haible  <bruno@clisp.org>
19801
19802         Mark 'atexit' obsolete.
19803         * modules/atexit (Status, Notice): New sections.
19804         * modules/chdir-long (Depends-on): Add atexit.
19805         * modules/wait-process (Depends-on): Likewise.
19806
19807 2008-11-02  Bruno Haible  <bruno@clisp.org>
19808
19809         * gnulib-tool: New option --with-obsolete.
19810         (func_usage): Document it.
19811         (func_modules_transitive_closure): Drop obsolete dependencies if
19812         incobsolete is not true.
19813         (func_import): Read and save the incobsolete variable to the cache.
19814
19815 2008-11-02  Bruno Haible  <bruno@clisp.org>
19816
19817         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19818         * gnulib-tool: New option --extract-status.
19819         (func_usage): Document it.
19820         (sed_extract_prog): Recognize it.
19821         (func_get_status): New function.
19822
19823 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19824
19825         * modules/sockets (License): Change from LGPL to LGPLv2+.
19826
19827 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19828
19829         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19830
19831 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19832
19833         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19834         Mention times and sys_times.
19835         * modules/sys_times, modules/sys_times-tests: New modules.
19836         * modules/times, modules/times-tests: Likewise
19837         * m4/sys_times_h.m4: New file.
19838         * lib/sys_times.in.h: Likewise
19839         * lib/times.c: Likewise.
19840         * tests/test-sys_times.c: Likewise.
19841         * tests/test-times.c: Likewise.
19842         * doc/posix-headers/sys_times.texi: Update.
19843         * doc/posix-functions/times.texi: Update.
19844
19845 2008-10-28  Jim Meyering  <meyering@redhat.com>
19846
19847         * modules/tempname (Depends-on): Add lstat.
19848
19849         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19850
19851 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19852
19853         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19854         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19855         using idiom used elsewhere in gnulib.
19856
19857 2008-10-27  Jim Meyering  <meyering@redhat.com>
19858
19859         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19860
19861 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19862
19863         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19864         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19865         programs.
19866         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19867
19868 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19869
19870         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19871
19872 2008-10-27  Bruno Haible  <bruno@clisp.org>
19873
19874         * tests/test-lstat.c: Include <stdio.h>.
19875
19876 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19877
19878         * modules/lstat-tests: New module.
19879         * tests/test-lstat.c: New file.
19880
19881 2008-10-26  Jim Meyering  <meyering@redhat.com>
19882
19883         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19884
19885 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19886             Bruno Haible  <bruno@clisp.org>
19887
19888         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19889         * modules/configmake (Include): Add a note that the include must come
19890         after all system headers.
19891         * lib/javaversion.c: Include configmake.h after all other includes.
19892
19893 2008-10-26  Bruno Haible  <bruno@clisp.org>
19894
19895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19896         HAVE_STRUCT_RANDOM_DATA to 1.
19897         (gl_STDLIB_H): Simplify.
19898
19899 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19900
19901         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19902         substitute HAVE_STRUCT_RANDOM_DATA.
19903         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19904         random_data.
19905         * modules/stdlib (Makefile.am): Substitute
19906         HAVE_STRUCT_RANDOM_DATA.
19907
19908 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19909
19910         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19911         * doc/gnulib-intro.texi (Copyright): Likewise.
19912
19913 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19914
19915         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19916         findings.
19917
19918 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19919             Bruno Haible  <bruno@clisp.org>
19920
19921         * lib/unistd.in.h: Include <winsock2.h>.
19922         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19923         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19924         Provide dummy declarations.
19925         (gethostname): Override.
19926         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19927         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19928         gl_PREREQ_SYS_H_WINSOCK2.
19929         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19930         * doc/posix-functions/gethostname.texi: More details.
19931
19932 2008-10-25  Bruno Haible  <bruno@clisp.org>
19933
19934         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19935         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19936         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19937
19938         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19939         here ...
19940         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19942         gl_UNISTD_H_DEFAULTS.
19943
19944 2008-10-25  Eric Blake  <ebb9@byu.net>
19945
19946         signbit: avoid spurious compiler failure
19947         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19948         declarations inside function.
19949
19950 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19951             Bruno Haible  <bruno@clisp.org>
19952
19953         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19954         * modules/random_r (Depends-on): Add stdint.
19955
19956 2008-10-24  Bruno Haible  <bruno@clisp.org>
19957
19958         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19959         Eggert.
19960         * modules/strerror (License): Likewise.
19961
19962 2008-10-24  Jim Meyering  <meyering@redhat.com>
19963
19964         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19965         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19966
19967 2008-10-24  Eric Blake  <ebb9@byu.net>
19968
19969         getgroups: fix compilation when getgroups is available
19970         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19971         but with <config.h> override of getgroups disabled.
19972
19973 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19974
19975         * doc/gnulib.texi (Header files): Add note about C++ problems.
19976         Explained by Bruno Haible <bruno@clisp.org>.
19977
19978 2008-10-23  Bruno Haible  <bruno@clisp.org>
19979
19980         Define a dummy SA_NODEFER macro on Interix.
19981         * lib/signal.in.h (SA_NODEFER): Define fallback.
19982         Reported by Aleksey Cheusov <cheusov@tut.by> via
19983         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19984
19985 2008-10-23  Bruno Haible  <bruno@clisp.org>
19986
19987         * modules/freadahead (License): Change to LGPLv2+.
19988         Suggested by Simon Josefsson.
19989
19990 2008-10-23  Jim Meyering  <meyering@redhat.com>
19991
19992         random_r: new module
19993         * modules/random_r: New file.
19994         * m4/random_r.m4: New file.
19995         * lib/random_r.c: New file, from glibc.
19996         * modules/random_r-tests: New file.
19997         * tests/test-random_r.c: New file.
19998         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19999          Declare.
20000         (RAND_MAX): Define.
20001         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20002         * modules/stdlib: Substitute them, too.
20003         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20004         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20005         * doc/glibc-functions/random_r.texi: Likewise.
20006         * doc/glibc-functions/setstate_r.texi: Likewise.
20007         * doc/glibc-functions/srandom_r.texi: Likewise.
20008         * config/srclist.txt: Mention it.
20009
20010 2008-10-23  David Lutterkort  <lutter@redhat.com>
20011
20012         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20013         link requirement
20014
20015 2008-10-23  Jim Meyering  <meyering@redhat.com>
20016
20017         selinux-h: mark parameters of stub functions as intentionally unused
20018         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20019         * lib/se-context.in.h: Likewise.
20020
20021 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20022
20023         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20024
20025 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20026
20027         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20028
20029 2008-10-22  Eric Blake  <ebb9@byu.net>
20030
20031         glthread/thread: avoid compiler warning
20032         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20033         Add unreachable abort to silence compiler.
20034
20035 2008-10-22  Eric Blake  <ebb9@byu.net>
20036
20037         netdb: also supply struct addrinfo for cygwin 1.5.x
20038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20039         older cygwin.
20040         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20041         cygwin.
20042         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20043
20044 2008-10-22  Bruno Haible  <bruno@clisp.org>
20045
20046         * users.txt: Update entry about pspp.
20047
20048 2008-10-21  Bruno Haible  <bruno@clisp.org>
20049
20050         Simplification.
20051         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20052         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20053
20054         Simplification.
20055         * lib/ioctl.c (ioctl): Don't undefine.
20056         * lib/socket.c (socket): Don't undefine.
20057
20058         Remove unused module indicator macros.
20059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20060         GNULIB_$1 as a C macro.
20061
20062         * doc/posix-functions/close.texi: Undo last change.
20063         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20064         Windows platforms.
20065
20066 2008-10-21  Bruno Haible  <bruno@clisp.org>
20067
20068         Add gethostname() declaration to <unistd.h>.
20069         * lib/unistd.in.h (gethostname): New declaration.
20070         * lib/gethostname.c: Include <unistd.h>.
20071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20072         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20074         and HAVE_GETHOSTNAME.
20075         * modules/gethostname (Depends-on): Add unistd.
20076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20077         (Include): Specify <unistd.h>.
20078         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20079         HAVE_GETHOSTNAME.
20080         * tests/test-gethostname.c: Include <unistd.h> first.
20081
20082 2008-10-21  Bruno Haible  <bruno@clisp.org>
20083
20084         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20085         * modules/select-tests (Depends-on): Likewise.
20086         Reported by Simon Josefsson.
20087
20088 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20089
20090         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20091         * lib/accept.c: New file, based on winsock.c.
20092         * lib/bind.c: New file, based on winsock.c.
20093         * lib/connect.c: New file, based on winsock.c.
20094         * lib/getpeername.c: New file, based on winsock.c.
20095         * lib/getsockname.c: New file, based on winsock.c.
20096         * lib/getsockopt.c: New file, based on winsock.c.
20097         * lib/ioctl.c: New file, based on winsock.c.
20098         * lib/listen.c: New file, based on winsock.c.
20099         * lib/recv.c: New file, based on winsock.c.
20100         * lib/recvfrom.c: New file, based on winsock.c.
20101         * lib/send.c: New file, based on winsock.c.
20102         * lib/sendto.c: New file, based on winsock.c.
20103         * lib/setsockopt.c: New file, based on winsock.c.
20104         * lib/shutdown.c: New file, based on winsock.c.
20105         * lib/socket.c: New file, based on winsock.c.
20106         * lib/w32sock.h: New file, based on winsock.c.
20107         * lib/winsock.c: Remove file.
20108         * modules/accept: Likewise.
20109         * modules/bind: Likewise.
20110         * modules/connect: Likewise.
20111         * modules/getpeername: Likewise.
20112         * modules/getsockname: Likewise.
20113         * modules/getsockopt: Likewise.
20114         * modules/ioctl: Likewise.
20115         * modules/listen: Likewise.
20116         * modules/recv: Likewise.
20117         * modules/recvfrom: Likewise.
20118         * modules/send: Likewise.
20119         * modules/sendto: Likewise.
20120         * modules/setsockopt: Likewise.
20121         * modules/shutdown: Likewise.
20122         * modules/socket: Use socket.c instead of winsock.c.
20123         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20124         * doc/posix-functions/accept.texi: Doc fix.
20125         * doc/posix-functions/bind.texi: Doc fix.
20126         * doc/posix-functions/close.texi: Doc fix.
20127         * doc/posix-functions/connect.texi: Doc fix.
20128         * doc/posix-functions/getpeername.texi: Doc fix.
20129         * doc/posix-functions/getsockname.texi: Doc fix.
20130         * doc/posix-functions/getsockopt.texi: Doc fix.
20131         * doc/posix-functions/ioctl.texi: Doc fix.
20132         * doc/posix-functions/listen.texi: Doc fix.
20133         * doc/posix-functions/recv.texi: Doc fix.
20134         * doc/posix-functions/recvfrom.texi: Doc fix.
20135         * doc/posix-functions/send.texi: Doc fix.
20136         * doc/posix-functions/sendto.texi: Doc fix.
20137         * doc/posix-functions/setsockopt.texi: Doc fix.
20138         * doc/posix-functions/shutdown.texi: Doc fix.
20139         * doc/posix-functions/socket.texi: Doc fix.
20140
20141 2008-10-20  Bruno Haible  <bruno@clisp.org>
20142
20143         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20144         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20145         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20146         as an alias for SIGABRT.
20147         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20148         (sigaction): Map it to SIGABRT.
20149         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20150
20151 2008-10-20  Bruno Haible  <bruno@clisp.org>
20152
20153         * lib/fts.c: Don't include lstat.h.
20154         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20155
20156         Move the lstat() declaration to <sys/stat.h>.
20157         * lib/lstat.h: Remove file.
20158         * lib/sys_stat.in.h: Add special invocation convention.
20159         (lstat): New declaration.
20160         * lib/lstat.c (orig_lstat): New function.
20161         (rpl_lstat): Use orig_lstat instead of lstat.
20162         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20163         AC_C_INLINE. Set REPLACE_LSTAT.
20164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20165         and REPLACE_LSTAT.
20166         * modules/lstat (Files): Remove lib/lstat.h.
20167         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20168         (Include): Specify <sys/stat.h> instead of lstat.h.
20169         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20170         REPLACE_LSTAT.
20171         * NEWS: Mention the change.
20172
20173 2008-10-20  Bruno Haible  <bruno@clisp.org>
20174
20175         * modules/posix_spawn-tests: New file.
20176         * tests/test-posix_spawn3.c: New file.
20177
20178 2008-10-20  Bruno Haible  <bruno@clisp.org>
20179
20180         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20181         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20182         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20183         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20184         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20185
20186 2008-10-20  Bruno Haible  <bruno@clisp.org>
20187
20188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20189         of posix_spawn on AIX 5.3.
20190
20191 2008-10-20  Bruno Haible  <bruno@clisp.org>
20192
20193         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20194
20195 2008-10-20  Bruno Haible  <bruno@clisp.org>
20196
20197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20198         of AC_LANG_PROGRAM.
20199
20200 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20201
20202         * lib/netdb.in.h: Don't define GNU specific constants until they
20203         are supported or needed.  Reported by Bruno Haible
20204         <bruno@clisp.org>.
20205
20206 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20207
20208         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20209
20210 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20211
20212         * lib/getaddrinfo.h: Remove file.
20213         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20214         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20215         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20216         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20217         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20218         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20219         * tests/test-getaddrinfo.c: Likewise.
20220         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20221         * NEWS: Mention change.
20222
20223 2008-10-19  Bruno Haible  <bruno@clisp.org>
20224
20225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20226
20227 2008-10-19  Bruno Haible  <bruno@clisp.org>
20228
20229         * lib/wait-process.c: Include simply <sys/wait.h>.
20230         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20231         WIFSTOPPED): Remove fallback definitions.
20232         * modules/wait-process (Depends-on): Add sys_wait.
20233
20234         New module 'sys_wait'.
20235         * modules/sys_wait: New file.
20236         * lib/sys_wait.in.h: New file, partially copied from
20237         lib/wait-process.c.
20238         * m4/sys_wait_h.m4: New file.
20239         * doc/posix-headers/sys_wait.texi: Mention the new module.
20240
20241 2008-10-19  Bruno Haible  <bruno@clisp.org>
20242
20243         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20244
20245 2008-10-19  Bruno Haible  <bruno@clisp.org>
20246
20247         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20248         * lib/wait-process.c (WAIT_T): Remove type.
20249         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20250         (wait_subprocess): Update.
20251
20252 2008-10-19  Bruno Haible  <bruno@clisp.org>
20253
20254         New module 'atoll'.
20255         * modules/atoll: New file.
20256         * lib/stdlib.in.h (atoll): New declaration.
20257         * lib/atoll.c: New file, from glibc with modifications.
20258         * m4/atoll.m4: New file.
20259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20260         HAVE_ATOLL.
20261         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20262         * doc/posix-functions/atoll.texi: Mention the new module.
20263
20264 2008-10-19  Bruno Haible  <bruno@clisp.org>
20265
20266         Add strtoull() declaration to <stdlib.h>.
20267         * lib/stdlib.in.h (strtoull): New declaration.
20268         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20269         Set HAVE_STRTOULL.
20270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20271         HAVE_STRTOULL.
20272         * modules/strtoull (Depends-on): Add stdlib.
20273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20274         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20275         HAVE_STRTOULL.
20276
20277 2008-10-19  Bruno Haible  <bruno@clisp.org>
20278
20279         Add strtoll() declaration to <stdlib.h>.
20280         * lib/stdlib.in.h (strtoll): New declaration.
20281         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20282         Set HAVE_STRTOLL.
20283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20284         HAVE_STRTOLL.
20285         * modules/strtoll (Depends-on): Add stdlib.
20286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20287         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20288
20289 2008-10-19  Bruno Haible  <bruno@clisp.org>
20290
20291         * modules/bcopy (Depends-on): Add strings.
20292         (Include): Specify <strings.h>.
20293
20294 2008-10-19  Bruno Haible  <bruno@clisp.org>
20295
20296         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20297
20298 2008-10-19  Bruno Haible  <bruno@clisp.org>
20299
20300         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20301         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20302         mingw.
20303
20304 2008-10-19  Bruno Haible  <bruno@clisp.org>
20305
20306         * lib/atanl.c: Don't include isnanl.h.
20307         * lib/cosl.c: Likewise.
20308         * lib/ldexpl.c: Likewise.
20309         * lib/logl.c: Likewise.
20310         * lib/sinl.c: Likewise.
20311         * lib/sqrtl.c: Likewise.
20312         * lib/tanl.c: Likewise.
20313
20314         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20315         * lib/isnanf.h: Remove file.
20316         * lib/isnand.h: Remove file.
20317         * lib/isnanl.h: Remove file.
20318         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20319         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20320         macros.
20321         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20322         HAVE_ISNANF, don't define it as a C macro.
20323         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20324         HAVE_ISNAND, don't define it as a C macro.
20325         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20326         HAVE_ISNANL, don't define it as a C macro.
20327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20328         HAVE_ISNAN[FDL].
20329         * modules/isnanf (Files): Remove lib/isnanf.h.
20330         (Depends-on): Add math.
20331         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20332         (Include): Specify <math.h> instead of isnanf.h.
20333         * modules/isnand (Files): Remove lib/isnand.h.
20334         (Depends-on): Add math.
20335         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20336         (Include): Specify <math.h> instead of isnand.h.
20337         * modules/isnanl (Files): Remove lib/isnanl.h.
20338         (Depends-on): Add math.
20339         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20340         (Include): Specify <math.h> instead of isnanl.h.
20341         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20342         HAVE_ISNAN[FDL].
20343         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20344         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20345         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20346         * NEWS: Mention the change.
20347
20348 2008-10-18  Bruno Haible  <bruno@clisp.org>
20349
20350         Add getusershell(), setusershell(), endusershell() declarations to
20351         <unistd.h>.
20352         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20353         declarations.
20354         * lib/getusershell.c: Include unistd.h.
20355         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20356         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20357         HAVE_GETUSERSHELL.
20358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20359         and HAVE_GETUSERSHELL.
20360         * modules/getusershell (Depends-on): Add unistd, extensions.
20361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20362         (Include): Specify <unistd.h>.
20363         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20364         HAVE_GETUSERSHELL.
20365
20366 2008-10-18  Bruno Haible  <bruno@clisp.org>
20367
20368         Add a getloadavg() declaration to <stdlib.h>.
20369         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20370         getloadavg declaration.
20371         (getloadavg): New declaration.
20372         * lib/getloadavg.c: Include <stdlib.h> first.
20373         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20374         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20375         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20377         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20378         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20379         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20380         (Include): Specify <stdlib.h>.
20381         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20382         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20383
20384 2008-10-18  Bruno Haible  <bruno@clisp.org>
20385
20386         * lib/dirchownmod.c: Don't include lchmod.h.
20387
20388         Move the lchmod() declaration to <sys/stat.h>.
20389         * lib/lchmod.h: Remove file.
20390         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20391         (lchmod): New declaration, moved here from lib/lchown.h.
20392         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20393         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20395         and HAVE_LCHMOD.
20396         * modules/lchmod (Files): Remove lib/lchmod.h.
20397         (Depends-on): Add sys_stat, extensions.
20398         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20399         (Include): Specify <sys/stat.h> instead of lchmod.h.
20400         * modules/sys_stat (Depends-on): Add link-warning.
20401         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20402         definition of GL_LINK_WARNING.
20403         * NEWS: Mention the change.
20404
20405 2008-10-18  Bruno Haible  <bruno@clisp.org>
20406
20407         * lib/fchdir.c: Don't include dirfd.h.
20408         * lib/fts.c: Likewise.
20409         * lib/getcwd.c: Likewise.
20410         * lib/glob.c: Likewise.
20411
20412         Move the dirfd() declaration to <dirent.h>.
20413         * lib/dirfd.h: Remove file.
20414         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20415         (dirfd): New declaration.
20416         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20418         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20419         HAVE_DECL_DIRFD.
20420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20421         HAVE_DECL_DIRFD.
20422         * modules/dirfd (Files): Remove lib/dirfd.h.
20423         (Depends-on): Add dirent, extensions.
20424         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20425         (Include): Specify <dirent.h> instead of dirfd.h.
20426         * modules/dirent (Depends-on): Add link-warning.
20427         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20428         definition of GL_LINK_WARNING.
20429         * NEWS: Mention the change.
20430
20431 2008-10-18  Bruno Haible  <bruno@clisp.org>
20432
20433         Move the euidaccess() declaration to <unistd.h>.
20434         * lib/euidaccess.h: Remove file.
20435         * lib/unistd.in.h (euidaccess): New declaration.
20436         * lib/euidaccess.c: Don't include euidaccess.h.
20437         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20438         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20440         and HAVE_EUIDACCESS.
20441         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20442         (Depends-on): Add unistd.
20443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20444         (Include): Specify <unistd.h> instead of euidaccess.h.
20445         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20446         HAVE_EUIDACCESS.
20447         * NEWS: Mention the change.
20448
20449 2008-10-18  Bruno Haible  <bruno@clisp.org>
20450
20451         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20452
20453         Move the getdomainname() declaration to <unistd.h>.
20454         * lib/getdomainname.h: Remove file.
20455         * lib/unistd.in.h (getdomainname): New declaration.
20456         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20457         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20458         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20459         HAVE_GETDOMAINNAME.
20460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20461         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20462         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20463         (Depends-on): Add unistd, extensions.
20464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20465         (Includes): Specify <unistd.h> instead of getdomainname.h.
20466         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20467         HAVE_GETDOMAINNAME.
20468         * NEWS: Mention the change.
20469
20470 2008-10-18  Bruno Haible  <bruno@clisp.org>
20471
20472         * modules/dirent: New file.
20473         * m4/dirent_h.m4: New file.
20474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20475         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20476         * modules/fchdir (Files): Remove lib/dirent.in.h.
20477         (Depends-on): Add dirent.
20478         (Makefile.am): Move rules to modules/dirent.
20479         * doc/posix-headers/dirent.texi: Mention the new module.
20480
20481 2008-10-18  Bruno Haible  <bruno@clisp.org>
20482
20483         Avoid -Wunused-parameter warnings in public gnulib header files.
20484         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20485         macro.
20486         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20487
20488 2008-10-18  Bruno Haible  <bruno@clisp.org>
20489
20490         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20491         * doc/glibc-functions/error.texi: Mention the module 'error'.
20492         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20493         * doc/glibc-functions/getdomainname.texi: Mention the module
20494         'getdomainname'.
20495         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20496         * doc/glibc-functions/getpagesize.texi: Mention the module
20497         'getpagesize'.
20498         * doc/glibc-functions/getusershell.texi: Mention the module
20499         'getusershell'.
20500         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20501         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20502         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20503         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20504         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20505         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20506         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20507         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20508         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20509         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20510         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20511         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20512         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20513         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20514
20515 2008-10-17  Bruno Haible  <bruno@clisp.org>
20516
20517         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20518         HP-UX and IRIX, use -0.0L.
20519         * tests/test-ceill.c (minus_zero): Likewise.
20520         * tests/test-floorl.c (minus_zero): Likewise.
20521         * tests/test-frexpl.c (minus_zero): Likewise.
20522         * tests/test-isnan.c (minus_zerol): Likewise.
20523         * tests/test-isnanl.h (minus_zero): Likewise.
20524         * tests/test-ldexpl.c (minus_zero): Likewise.
20525         * tests/test-roundl.c (minus_zero): Likewise.
20526         * tests/test-signbit.c (minus_zerol): Likewise.
20527         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20528         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20529         * tests/test-truncl.c (minus_zero): Likewise.
20530         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20531         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20532         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20533         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20534
20535 2008-10-17  Bruno Haible  <bruno@clisp.org>
20536
20537         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20538         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20539         that it gets activated only for gcc >= 3.0.
20540         * lib/dirent.in.h: Likewise.
20541         * lib/errno.in.h: Likewise.
20542         * lib/fcntl.in.h: Likewise.
20543         * lib/float.in.h: Likewise.
20544         * lib/iconv.in.h: Likewise.
20545         * lib/inttypes.in.h: Likewise.
20546         * lib/locale.in.h: Likewise.
20547         * lib/math.in.h: Likewise.
20548         * lib/netdb.in.h: Likewise.
20549         * lib/netinet_in.in.h: Likewise.
20550         * lib/search.in.h: Likewise.
20551         * lib/signal.in.h: Likewise.
20552         * lib/spawn.in.h: Likewise.
20553         * lib/stdarg.in.h: Likewise.
20554         * lib/stdint.in.h: Likewise.
20555         * lib/stdio.in.h: Likewise.
20556         * lib/stdlib.in.h: Likewise.
20557         * lib/string.in.h: Likewise.
20558         * lib/strings.in.h: Likewise.
20559         * lib/sys_file.in.h: Likewise.
20560         * lib/sys_ioctl.in.h: Likewise.
20561         * lib/sys_select.in.h: Likewise.
20562         * lib/sys_socket.in.h: Likewise.
20563         * lib/sys_stat.in.h: Likewise.
20564         * lib/sys_time.in.h: Likewise.
20565         * lib/sysexits.in.h: Likewise.
20566         * lib/time.in.h: Likewise.
20567         * lib/unistd.in.h: Likewise.
20568         * lib/wchar.in.h: Likewise.
20569         * lib/wctype.in.h: Likewise.
20570         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20571
20572 2008-10-17  Jim Meyering  <meyering@redhat.com>
20573
20574         ignore-value: don't depend on inline module
20575         * modules/ignore-value (Depends-on): Remove 'inline'.
20576         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20577         Suggestion from Bruno Haible.
20578
20579 2008-10-17  Bruno Haible  <bruno@clisp.org>
20580
20581         New implementation of condition variables for Win32.
20582         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20583         (gl_linked_waitqueue_t): New type.
20584         (gl_cond_t): Use it.
20585         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20586         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20587         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20588         (glthread_cond_init_func, glthread_cond_wait_func,
20589         glthread_cond_timedwait_func, glthread_cond_signal_func,
20590         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20591         Reimplemented on the basis of gl_linked_waitqueue_t.
20592         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20593         gl_waitqueue_t.
20594         (gl_rwlock_t): Update.
20595         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20596
20597 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20598
20599         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20600         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20601
20602 2008-10-17  Jim Meyering  <meyering@redhat.com>
20603
20604         ignore-value: new module
20605         * modules/ignore-value: New file.
20606         * lib/ignore-value.h: New file.
20607         * MODULES.html.sh (Compiler warning management): New section,
20608         just for this module.  More to come.
20609
20610 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20611
20612         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20613         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20614         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20615
20616 2008-10-16  Jim Meyering  <meyering@redhat.com>
20617
20618         openat-die.c: avoid 'no previous prototype' warning
20619         * lib/openat-die.c: Include "openat.h".
20620         Reported by Reuben Thomas <rrt@sc3d.org>.
20621
20622 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20623
20624         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20625         * lib/netdb.in.h: Fix typo.
20626         Reported by Bruno Haible  <bruno@clisp.org>
20627
20628         * lib/netdb.in.h: Include sys/socket.h for platforms without
20629         netdb.h, to get structures like hostent on MinGW.
20630         * modules/netdb (Depends-on): Add sys_socket.
20631
20632 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20633
20634         * modules/netdb, modules/netdb-tests: New file.
20635         * m4/netdb_h.m4: New file.
20636         * lib/netdb.in.h: Add, currently just an empty file pending
20637         definitions.
20638         * tests/test-netdb.c: New file.
20639         * doc/posix-headers/netdb.texi: Mention that we replace it if
20640         needed.
20641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20642         netdb.
20643
20644 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20645
20646         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20647         with code.
20648
20649 2008-10-13  Bruno Haible  <bruno@clisp.org>
20650
20651         * lib/glthread/cond.c (glthread_cond_wait_func,
20652         glthread_cond_timedwait_func): Add a comment.
20653
20654 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20655
20656         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20657         * tests/test-select.c: Likewise,
20658
20659 2008-10-13  Bruno Haible  <bruno@clisp.org>
20660
20661         * lib/glthread/cond.c (glthread_cond_wait_func,
20662         glthread_cond_timedwait_func): Fix variable name.
20663         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20664
20665 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20666
20667         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20668         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20669         struct sockaddr.sa_len.
20670         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20671
20672 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20673
20674         * build-aux/pmccabe2html: Add css and css_url parameters.
20675
20676 2008-10-12  Bruno Haible  <bruno@clisp.org>
20677
20678         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20679         calling aclx_get.
20680         Reported by Rainer Tammer <tammer@tammer.net>.
20681
20682 2008-10-12  Bruno Haible  <bruno@clisp.org>
20683
20684         Use msvcrt aware primitives for creation/termination of Win32 threads.
20685         * lib/glthread/thread.c: Include <process.h>.
20686         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20687         (wrapper_func): Update signature.
20688         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20689
20690 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20691             Bruno Haible  <bruno@clisp.org>
20692
20693         Provide a Win32 implementation of the 'cond' module.
20694         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20695         * lib/glthread/cond.c (glthread_cond_init_func,
20696         glthread_cond_wait_func, glthread_cond_timedwait_func,
20697         glthread_cond_signal_func, glthread_cond_broadcast_func,
20698         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20699         * modules/cond (Dependencies): Add gettimeofday.
20700
20701 2008-10-11  Bruno Haible  <bruno@clisp.org>
20702
20703         Make sleep work on older versions of mingw.
20704         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20705         only whether it exists.
20706         * doc/posix-functions/sleep.texi: Mention the problem with older
20707         versions of mingw.
20708
20709 2008-10-11  Bruno Haible  <bruno@clisp.org>
20710
20711         New module 'shutdown'.
20712         * modules/shutdown: New file.
20713         * lib/sys_socket.in.h (shutdown): New declaration.
20714         * lib/winsock.c (shutdown): New function.
20715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20716         GNULIB_SHUTDOWN.
20717         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20718         * doc/posix-functions/shutdown.texi: Document the new module.
20719
20720 2008-10-11  Jim Meyering  <meyering@redhat.com>
20721
20722         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20723
20724 2008-10-11  Bruno Haible  <bruno@clisp.org>
20725
20726         New module 'fclose'.
20727         * modules/fclose: New file.
20728         * lib/stdio.in.h (fclose): New declaration.
20729         * lib/fclose.c: New file.
20730         * m4/fclose.m4: New file.
20731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20732         REPLACE_FCLOSE.
20733         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20734         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20735         REPLACE_FCLOSE.
20736         * modules/close (Depends-on): fclose.
20737         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20738
20739 2008-10-11  Bruno Haible  <bruno@clisp.org>
20740
20741         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20742         set errno and don't call _close.
20743
20744 2008-10-10  Bruno Haible  <bruno@clisp.org>
20745
20746         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20747         ACL, not afterwards. Fixes test failure on Cygwin.
20748
20749 2008-10-09  Ben Pfaff  <blp@gnu.org>
20750
20751         * build-aux/announce-gen: Fix gnulib version related part of usage
20752         message.  Die with a useful error message if no tarballs are
20753         found.
20754
20755 2008-10-10  Jim Meyering  <meyering@redhat.com>
20756
20757         bootstrap: use git's --depth=N option only if it's supported
20758         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20759         recognize the --depth option.  Reported by Pádraig Brady.
20760
20761 2008-10-09  Bruno Haible  <bruno@clisp.org>
20762
20763         New module 'ioctl'.
20764         * modules/ioctl: New file.
20765         * lib/sys_socket.in.h (ioctl): Remove declaration.
20766         * lib/winsock.c: Include <sys/ioctl.h>.
20767         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20769         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20770         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20771         * doc/posix-functions/ioctl.texi: Mention the new module.
20772
20773 2008-10-09  Bruno Haible  <bruno@clisp.org>
20774
20775         New module 'sys_ioctl'.
20776         * lib/sys_ioctl.in.h: New file.
20777         * m4/sys_ioctl_h.m4: New file.
20778         * modules/sys_ioctl: New file.
20779         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20780
20781 2008-10-09  Bruno Haible  <bruno@clisp.org>
20782
20783         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20784         * lib/winsock.c: Include <stdarg.h>.
20785         (rpl_ioctl): Change to second argument 'int' and then varargs.
20786
20787 2008-10-09  Bruno Haible  <bruno@clisp.org>
20788
20789         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20790         when the sys_socket module is present and the system has <winsock2.h>.
20791
20792 2008-10-09  Bruno Haible  <bruno@clisp.org>
20793
20794         * doc/posix-functions/close.texi: Mention module 'close' instead of
20795         module 'sys_socket'.
20796
20797 2008-10-09  Bruno Haible  <bruno@clisp.org>
20798
20799         * doc/glibc-headers/sys_ioctl.texi: New file.
20800         * doc/gnulib.texi: Include it.
20801
20802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20803             Bruno Haible  <bruno@clisp.org>
20804
20805         Combine the two replacements of 'close'.
20806         * lib/sys_socket.in.h (close): Define to a reminder to include
20807         <unistd.h>.
20808         (_gl_close_fd_maybe_socket): New declaration.
20809         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20810         * lib/winsock.c (close): Remove undefinition.
20811         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20812         needed for the gnulib module 'close'.
20813         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20814         define to an error symbol or to a warning, if suitable.
20815         * lib/close.c: Include <sys/socket.h>.
20816         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20817         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20818         UNISTD_H_HAVE_WINSOCK2_H.
20819         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20821         UNISTD_H_HAVE_WINSOCK2_H.
20822         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20823         (configure.ac): Set a module indicator.
20824         (Makefile.am): Substitute GNULIB_CLOSE.
20825         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20826         * modules/poll-tests (Depends-on): Add close.
20827         * modules/select-tests (Depends-on): Likewise.
20828
20829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20830             Bruno Haible  <bruno@clisp.org>
20831
20832         New module 'close'.
20833         * modules/close: New file.
20834         * lib/unistd.in.h (close): Move declaration out of the
20835         FCHDIR_REPLACEMENT scope.
20836         (_gl_unregister_fd): New declaration.
20837         * lib/close.c: New file.
20838         * lib/fchdir.c (rpl_close): Remove function.
20839         * m4/close.m4: New file.
20840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20841         close.
20842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20843         REPLACE_CLOSE.
20844         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20845         REPLACE_CLOSE.
20846         * modules/fchdir (Depends-on): Add close.
20847
20848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20849             Bruno Haible  <bruno@clisp.org>
20850
20851         * lib/fcntl.in.h (open): Simplify conditionals.
20852         (_gl_register_fd): New declaration.
20853         * lib/fchdir.c (rpl_open): Remove function.
20854         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20855         also.
20856         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20858         open.
20859
20860 2008-10-09  Jim Meyering  <meyering@redhat.com>
20861
20862         GNUmakefile: use the more name-space-friendly "_version"
20863         * top/GNUmakefile (_dummy): Update.
20864         (_version): Rename from "version".
20865
20866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20867             Bruno Haible  <bruno@clisp.org>
20868
20869         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20870         rpl_close.
20871         (_gl_register_fd): New function, extracted from rpl_open.
20872         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20873         (rpl_open, rpl_opendir): Use _gl_register_fd.
20874
20875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20876
20877         Fix organization of 'open' replacement.
20878         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20879         (gl_FUNC_OPEN): Use it.
20880         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20881
20882 2008-10-08  Bruno Haible  <bruno@clisp.org>
20883
20884         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20885
20886 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20887
20888         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20889         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20890         listen).
20891
20892 2008-10-08  Eric Blake  <ebb9@byu.net>
20893
20894         GNUmakefile: add 'make version' target
20895         * top/GNUmakefile (_curr-ver): Split version update rules...
20896         (version): ...into a target.
20897
20898 2008-10-07  Bruno Haible  <bruno@clisp.org>
20899
20900         Use a more portable replacement expression for -0.0L.
20901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20902         instead of -0.0L. Fix m4 quotation.
20903
20904         * tests/test-signbit.c: Include <float.h>.
20905         (minus_zero): New variable.
20906         (test_signbitl): Use minus_zero instead of -zero.
20907         * modules/signbit-tests (Depends-on): Add float.
20908
20909         * tests/test-ceill.c: Include <float.h>.
20910         (zero): Remove variable.
20911         (minus_zero): New variable.
20912         (main): Use minus_zero instead of -zero.
20913         * modules/ceill-tests (Depends-on): Add float.
20914
20915         * tests/test-floorl.c: Include <float.h>.
20916         (zero): Remove variable.
20917         (minus_zero): New variable.
20918         (main): Use minus_zero instead of -zero.
20919         * modules/floorl-tests (Depends-on): Add float.
20920
20921         * tests/test-roundl.c: Include <float.h>.
20922         (zero): Remove variable.
20923         (minus_zero): New variable.
20924         (main): Use minus_zero instead of -zero.
20925         * modules/roundl-tests (Depends-on): Add float.
20926
20927         * tests/test-truncl.c: Include <float.h>.
20928         (zero): Remove variable.
20929         (minus_zero): New variable.
20930         (main): Use minus_zero instead of -zero.
20931         * modules/truncl-tests (Depends-on): Add float.
20932
20933         * tests/test-frexpl.c (zero): Remove variable.
20934         (minus_zero): New variable.
20935         (main): Use minus_zero instead of -zero.
20936         * modules/frexpl-tests (Depends-on): Add float.
20937
20938         * tests/test-isnan.c (zerol): Remove variable.
20939         (minus_zerol): New variable.
20940         (test_long_double): Use minus_zerol instead of -zerol.
20941         * modules/isnan-tests (Depends-on): Add float.
20942
20943         * tests/test-isnanl.h (zero): Remove variable.
20944         (minus_zero): New variable.
20945         (main): Use minus_zero instead of -zero.
20946         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20947         * modules/isnanl-tests (Depends-on): Add float.
20948
20949         * tests/test-ldexpl.c (zero): Remove variable.
20950         (minus_zero): New variable.
20951         (main): Use minus_zero instead of -zero.
20952         * modules/ldexpl-tests (Depends-on): Add float.
20953
20954         * tests/test-snprintf-posix.h (zerol): Remove variable.
20955         (minus_zerol): New variable.
20956         (test_function): Use minus_zerol instead of -zerol.
20957         * modules/snprintf-posix-tests (Depends-on): Add float.
20958         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20959
20960         * tests/test-sprintf-posix.h (zerol): Remove variable.
20961         (minus_zerol): New variable.
20962         (test_function): Use minus_zerol instead of -zerol.
20963         * modules/sprintf-posix-tests (Depends-on): Add float.
20964         * modules/vsprintf-posix-tests (Depends-on): Add float.
20965
20966         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20967         (minus_zerol): New variable.
20968         (test_function): Use minus_zerol instead of -zerol.
20969         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20970
20971         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20972         (minus_zerol): New variable.
20973         (test_function): Use minus_zerol instead of -zerol.
20974         * modules/vasprintf-posix-tests (Depends-on): Add float.
20975
20976 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20977
20978         * MODULES.html.sh (Support for building documentation): Mention
20979         pmccabe2html.  Sort entries.
20980
20981         Add pmccabe2html module, from gnupdf.
20982         * build-aux/pmccabe.css: New file.
20983         * build-aux/pmccabe2html: New file.
20984         * m4/pmccabe2html.m4: New file.
20985         * modules/pmccabe2html: New file.
20986
20987 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20988
20989         flock: new module
20990         * MODULES.html.sh: Add to list of modules.
20991         * lib/flock.c: flock implementation for Windows and Unix systems
20992         which have fcntl.
20993         * doc/glibc-functions/flock.texi: Update documentation.
20994         * lib/sys_file.in.h: <sys/file.h> header file.
20995         * m4/flock.m4: M4 macros.
20996         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20997         * modules/flock: flock module.
20998         * modules/flock-tests: flock tests module.
20999         * modules/sys_file: sys/file.h module.
21000         * tests/test-flock.c: test suite for flock.
21001
21002 2008-10-06  Jim Meyering  <meyering@redhat.com>
21003
21004         bootstrap: check for LT_INIT more portably still ;-)
21005         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21006         Spotted by Bruno Haible.
21007
21008 2008-10-06  Eric Blake  <ebb9@byu.net>
21009
21010         test-signbit: avoid tripping Irix cc bug on -0.0L
21011         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21012         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21013         entire testsuite consistent and avoids an Irix 6.2 bug.
21014
21015 2008-10-05  Bruno Haible  <bruno@clisp.org>
21016             Jim Meyering  <jim@meyering.net>
21017
21018         Add an option for ignoring EPIPE during close_stdout.
21019         * lib/closeout.h: Include <stdbool.h>.
21020         (close_stdout_set_ignore_EPIPE): New declaration.
21021         * lib/closeout.c: Include <stdbool.h>.
21022         (ignore_EPIPE): New variable.
21023         (close_stdout_set_ignore_EPIPE): New function.
21024         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21025         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21026         failure.
21027         * modules/closeout (Depends-on): Add stdbool.
21028
21029 2008-10-05  Bruno Haible  <bruno@clisp.org>
21030
21031         * modules/accept: New file.
21032         * modules/bind: New file.
21033         * modules/connect: New file.
21034         * modules/getpeername: New file.
21035         * modules/getsockname: New file.
21036         * modules/getsockopt: New file.
21037         * modules/listen: New file.
21038         * modules/recv: New file.
21039         * modules/recvfrom: New file.
21040         * modules/send: New file.
21041         * modules/sendto: New file.
21042         * modules/setsockopt: New file.
21043         * modules/socket: New file.
21044         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21045         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21046         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21047         the particular module is requested. Add a link warning when the
21048         particular module is not requested.
21049         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21050         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21051         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21052         the particular module is requested.
21053         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21054         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21055         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21056         * modules/sys_socket (Depends-on): Add link-warning.
21057         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21058         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21059         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21060         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21061         GL_LINK_WARNING.
21062         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21063         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21064         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21065         * doc/posix-functions/getpeername.texi: Mention the new module
21066         'getpeername'.
21067         * doc/posix-functions/getsockname.texi: Mention the new module
21068         'getsockname'.
21069         * doc/posix-functions/getsockopt.texi: Mention the new module
21070         'getsockopt'.
21071         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21072         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21073         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21074         * doc/posix-functions/send.texi: Mention the new module 'send'.
21075         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21076         * doc/posix-functions/setsockopt.texi: Mention the new module
21077         'setsockopt'.
21078         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21079         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21080         listen, connect, accept.
21081         * modules/select-tests (Depends-on): Likewise.
21082
21083 2008-10-05  Bruno Haible  <bruno@clisp.org>
21084
21085         * lib/winsock.c (strerror): Remove unused #undef.
21086         (rpl_close): Remove unused local variable.
21087
21088         * modules/sys_socket (Depends-on); Add errno.
21089
21090 2008-10-05  Bruno Haible  <bruno@clisp.org>
21091
21092         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21093         (select): Add a link warning when the 'select' module is not used.
21094         * modules/sys_select (Depends-on): Add link-warning.
21095         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21096         Suggested by Paolo Bonzini.
21097
21098 2008-10-05  Jim Meyering  <meyering@redhat.com>
21099
21100         bootstrap: check for LT_INIT more portably
21101         * build-aux/bootstrap: Avoid using grep -E, since it's not
21102         portable enough.  Suggestion from Bruno Haible.
21103
21104 2008-10-05  Bruno Haible  <bruno@clisp.org>
21105
21106         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21107         as being fixed by gnulib.
21108
21109 2008-10-05  Bruno Haible  <bruno@clisp.org>
21110
21111         * modules/select-tests: New file, mostly copied from
21112         modules/sys_select-tests.
21113         * tests/test-select.c: New file, mostly copied from
21114         tests/test-sys_select.c.
21115         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21116         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21117         (Makefile.am): Remove test_sys_select_LDADD.
21118
21119         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21120         to an undefined symbol, for an error message.
21121         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21122         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21123         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21124         winsock-select.c here.
21125         * modules/sys_select (Files): Remove lib/winsock-select.c.
21126         (Depends-on): Remove alloca.
21127         (Makefile.am): Substitute GNULIB_SELECT.
21128         * modules/select: New file.
21129         * doc/posix-functions/select.texi: Update.
21130
21131 2008-10-05  Bruno Haible  <bruno@clisp.org>
21132
21133         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21134         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21135         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21136         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21137         getdtablesize.
21138         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21139         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21140
21141 2008-10-05  Bruno Haible  <bruno@clisp.org>
21142
21143         * modules/getdtablesize-tests: New file.
21144         * tests/test-getdtablesize.c: New file.
21145
21146         New module 'getdtablesize'.
21147         * lib/unistd.in.h (getdtablesize): New declaration.
21148         * lib/getdtablesize.c: New file.
21149         * m4/getdtablesize.m4: New file.
21150         * modules/getdtablesize: New file.
21151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21152         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21153         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21154         HAVE_GETDTABLESIZE.
21155         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21156
21157 2008-10-05  Bruno Haible  <bruno@clisp.org>
21158
21159         * modules/sched (Makefile.am): Fix typo.
21160         Reported by Simon Josefsson.
21161
21162 2008-10-05  Jim Meyering  <meyering@redhat.com>
21163
21164         bootstrap: check for LT_INIT, too
21165         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21166         are deprecated.  Suggestion from Ralf Wildenhues.
21167
21168 2008-10-05  Bruno Haible  <bruno@clisp.org>
21169
21170         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21171         overriding them by ours.
21172         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21173
21174 2008-10-05  Jim Meyering  <meyering@redhat.com>
21175
21176         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21177         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21178         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21179
21180 2008-10-04  Bruno Haible  <bruno@clisp.org>
21181
21182         * modules/dup2 (License): Change to LGPLv2+.
21183         * modules/sleep (License): Likewise.
21184         * modules/perror (License): Likewise.
21185         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21186         Blake.
21187         * modules/signal (License): Likewise.
21188         * modules/sigprocmask (License): Likewise.
21189         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21190         Meyering.
21191
21192 2008-10-04  Bruno Haible  <bruno@clisp.org>
21193
21194         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21195         Reported by Rainer Tammer <tammer@tammer.net>.
21196
21197 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21198             Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21201         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21202         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21203
21204 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21205
21206         filevercmp: new module
21207         * lib/filevercmp.h: New function filevercmp comparing version strings.
21208         * lib/filevercmp.c: Implementation of filevercmp function.
21209         * modules/filevercmp: Module metadata.
21210         * tests/test-filevercmp.c: Unit test for new module.
21211         * modules/filevercmp-tests: Unit test metadata.
21212         * MODULES.html.sh: Add filevercmp module.
21213
21214 2008-10-03  Bruno Haible  <bruno@clisp.org>
21215
21216         * lib/c-ctype.h: Add comment.
21217         Reported by Jim Meyering.
21218
21219 2008-10-02  Bruno Haible  <bruno@clisp.org>
21220
21221         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21222
21223 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21224
21225         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21226         name of bootstrap.conf accordingly.
21227
21228 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21229
21230         * build-aux/bootstrap: Install git-merge-changelog configuration
21231         items into .gitconfig if needed.
21232
21233 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21234
21235         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21236         git repository, and initialize/update it accordingly.
21237
21238 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21239
21240         * modules/fsync-tests: New file.
21241         * tests/test-fsync.c: New file.
21242
21243         New module 'fsync'.
21244         * lib/fsync.c: New file.
21245         * m4/fsync.m4: New file.
21246         * modules/fsync: New file.
21247         * lib/unistd.in.h (fsync): New declaration.
21248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21249         GNULIB_FSYNC and HAVE_FSYNC.
21250         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21251         * MODULES.html.sh (posix_functions): Add fsync.
21252         * doc/posix-functions/fsync.texi: Mention the new module.
21253
21254 2008-10-02  Jim Meyering  <meyering@redhat.com>
21255
21256         fts.c: sync with similar code from coreutils' remove.c
21257         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21258         Guard also with "#if defined __linux__", since for now at least,
21259         this code is Linux-kernel-specific.
21260
21261 2008-10-02  Jim Meyering  <meyering@redhat.com>
21262
21263         fts: bug fixes
21264         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21265         Include <sys/vfs.h>, not <sys/statfs.h>.
21266
21267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21268         Include <sys/vfs.h>, not <sys/statfs.h>.
21269
21270 2008-10-01  Bruno Haible  <bruno@clisp.org>
21271
21272         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21274         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21275         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21276         * doc/posix-functions/posix_spawnp.texi: Likewise.
21277         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21278         whether posix_spawn actually works.
21279         * m4/pipe.m4 (gl_PIPE): Likewise.
21280         * modules/execute (Files): Add m4/posix_spawn.m4.
21281         * modules/pipe (Files): Add m4/posix_spawn.m4.
21282         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21283
21284 2008-10-01  Jim Meyering  <meyering@redhat.com>
21285
21286         remove trailing spaces
21287         * NEWS: Likewise.
21288         * lib/poll.c (poll): Likewise.
21289         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21290         * lib/winsock.c (rpl_close): Likewise.
21291         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21292         * modules/yield: Likewise.
21293         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21294         * tests/test-sys_select.c (connect_to_socket): Likewise.
21295
21296         fts.c: adjust a new interface to be more generally useful
21297         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21298         (fts_build): Adjust caller.
21299
21300 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21301
21302         * modules/cond-tests: New file.
21303         * tests/test-cond.c: New file.
21304
21305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21306             Bruno Haible  <bruno@clisp.org>
21307
21308         * modules/cond (Dependencies): Add errno, time.
21309         * lib/glthread/cond.h: Include <time.h>.
21310         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21311         across platforms.
21312
21313 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21314             Bruno Haible  <bruno@clisp.org>
21315
21316         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21317
21318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21319             Bruno Haible  <bruno@clisp.org>
21320
21321         * modules/tls-tests (Depends-on): Add thread, yield.
21322         (configure.ac): Remove all checks.
21323         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21324         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21325         gl_thread_self): Remove definitions. Include glthread/thread.h and
21326         glthread/yield.h instead.
21327         (test_tls): Pass an additional NULL argument to gl_thread_join.
21328
21329 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21330             Bruno Haible  <bruno@clisp.org>
21331
21332         * modules/lock-tests (Depends-on): Add thread, yield.
21333         (configure.ac): Remove all checks.
21334         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21335         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21336         gl_thread_self): Remove definitions. Include glthread/thread.h and
21337         glthread/yield.h instead.
21338         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21339         additional NULL argument to gl_thread_join.
21340
21341 2008-09-30  Bruno Haible  <bruno@clisp.org>
21342
21343         Fix the Win32 implementation of the 'thread' module.
21344         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21345         pointer type.
21346         (gl_thread_self): Invoke gl_thread_self_func.
21347         (gl_thread_self_func): New declaration.
21348         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21349         (do_init_self_key, init_self_key): New functions.
21350         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21351         Remove some fields.
21352         (running_threads, running_lock): Remove variables.
21353         (get_current_thread_handle): New function.
21354         (gl_thread_self_func, wrapper_func, glthread_create_func,
21355         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21356         simplified.
21357
21358 2008-09-30  Bruno Haible  <bruno@clisp.org>
21359
21360         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21361         files.
21362
21363 2008-09-30  Jim Meyering  <meyering@redhat.com>
21364
21365         fts.m4: correct the test for statfs.f_type
21366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21367         when checking for statfs.f_type.
21368
21369 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21370
21371         tests: avoid some compiler warnings
21372         * tests/test-memchr.c (main): Pass NULL indirectly.
21373         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21374
21375 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21376
21377         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21378         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21379         exactly specified dayshifts.
21380         (dayshift): New rule.
21381         (rel): Add dayshift.
21382         (relative_time_table) [tomorrow, yesterday, today, now]:
21383         Use tDAY_SHIFT in place of tDAY_UNIT.
21384         * tests/test-getdate.c: Add tests for now-disallowed countable
21385         dayshifts, e.g., "4 yesterday ago".
21386
21387 2008-09-29  Bruno Haible  <bruno@clisp.org>
21388
21389         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21390         * tests/test-posix_spawn1.in.sh: Renamed from
21391         tests/test-posix_spawn.in.sh.
21392         * tests/test-posix_spawn2.c: New file.
21393         * tests/test-posix_spawn2.in.sh: New file.
21394         * modules/posix_spawnp-tests (Files): Update.
21395         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21396
21397 2008-09-29  Bruno Haible  <bruno@clisp.org>
21398
21399         Propagate effects of putenv/setenv/unsetenv to child processes.
21400         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21401         * lib/pipe.c (create_pipe): Likewise.
21402
21403 2008-09-29  Bruno Haible  <bruno@clisp.org>
21404
21405         Enable use of shell scripts as executables in mingw.
21406         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21407         run the program as a shell script.
21408         * lib/pipe.c (create_pipe): Likewise.
21409         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21410         resulting array.
21411
21412 2008-09-29  Eric Blake  <ebb9@byu.net>
21413
21414         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21415
21416 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21417
21418         * doc/posix-functions/accept.texi: Update mingw problems.
21419         * doc/posix-functions/bind.texi: Update mingw problems.
21420         * doc/posix-functions/close.texi: Update mingw problems.
21421         * doc/posix-functions/connect.texi: Update mingw problems.
21422         * doc/posix-functions/getpeername.texi: Update mingw problems.
21423         * doc/posix-functions/getsockname.texi: Update mingw problems.
21424         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21425         * doc/posix-functions/ioctl.texi: Update mingw problems.
21426         * doc/posix-functions/listen.texi: Update mingw problems.
21427         * doc/posix-functions/recv.texi: Update mingw problems.
21428         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21429         * doc/posix-functions/select.texi: Update mingw problems.
21430         * doc/posix-functions/send.texi: Update mingw problems.
21431         * doc/posix-functions/sendto.texi: Update mingw problems.
21432         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21433         * doc/posix-functions/socket.texi: Update mingw problems.
21434
21435 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21436             Bruno Haible  <bruno@clisp.org>
21437
21438         * lib/sys_select.in.h: Include sys/time.h.
21439         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21440         * modules/sys_select: Depend on sys_time.
21441         * tests/test-sys_select.c: Test that sys/select.h defines struct
21442         timeval fully.
21443
21444 2008-09-29  Bruno Haible  <bruno@clisp.org>
21445
21446         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21447         * lib/sys_select.in.h: Likewise.
21448
21449 2008-09-29  Bruno Haible  <bruno@clisp.org>
21450
21451         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21452
21453 2008-09-29  Bruno Haible  <bruno@clisp.org>
21454
21455         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21456         Set LIBSOCKET instead of augmenting LIBS.
21457         * modules/sockets (Link): New section.
21458         * modules/sockets-tests (test_sockets_LDADD): New variable.
21459         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21460         * modules/poll-tests (test_poll_LDADD): New variable.
21461         * NEWS: Document the change.
21462
21463 2008-09-29  Bruno Haible  <bruno@clisp.org>
21464
21465         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21466         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21467         ARPA_INET_H directly.
21468         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21469
21470 2008-09-28  Bruno Haible  <bruno@clisp.org>
21471
21472         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21473         from gl_HEADER_SYS_SOCKET.
21474         (gl_HEADER_SYS_SOCKET): Invoke it.
21475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21476
21477 2008-09-28  Bruno Haible  <bruno@clisp.org>
21478
21479         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21480         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21481         Needed on OSF/1 4.0.
21482
21483 2008-09-28  Bruno Haible  <bruno@clisp.org>
21484
21485         Override open more carefully.
21486         * lib/open.c (orig_open): New function.
21487         (rpl_open): Use orig_open instead of open.
21488         * lib/fcntl.in.h: Add special invocation convention.
21489         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21490         (gl_FUNC_OPEN): Invoke it.
21491
21492         Override freopen more carefully.
21493         * lib/freopen.c (orig_freopen): New function.
21494         (rpl_freopen): Use orig_freopen instead of freopen.
21495         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21496         (gl_FUNC_FREOPEN): Invoke it.
21497
21498         Override fopen more carefully.
21499         * lib/fopen.c (orig_fopen): New function.
21500         (rpl_fopen): Use orig_fopen instead of fopen.
21501         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21502         (gl_FUNC_FOPEN): Invoke it.
21503         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21504
21505 2008-09-28  Bruno Haible  <bruno@clisp.org>
21506
21507         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21508         SIGPIPE.
21509
21510 2008-09-28  Bruno Haible  <bruno@clisp.org>
21511
21512         * tests/test-sigaction.c (handler, main): Disable the check whether
21513         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21514         glibc systems with LinuxThreads.
21515
21516 2008-09-28  Bruno Haible  <bruno@clisp.org>
21517
21518         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21519
21520         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21521         with AIX xlc.
21522         * lib/fcntl.in.h (open): Likewise.
21523         Reported by Rainer Tammer <tammer@tammer.net>.
21524
21525 2008-09-28  Bruno Haible  <bruno@clisp.org>
21526
21527         * modules/posix_spawnp-tests: New file.
21528         * tests/test-posix_spawn.c: New file.
21529         * tests/test-posix_spawn.in.sh: New file.
21530
21531         New module 'posix_spawnp'.
21532         * modules/posix_spawnp: New file.
21533         * lib/spawnp.c: New file, from GNU libc with modifications.
21534         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21535
21536         New module 'posix_spawn'.
21537         * modules/posix_spawn: New file.
21538         * lib/spawn.c: New file, from GNU libc with modifications.
21539         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21540
21541         New module 'posix_spawnattr_destroy'.
21542         * modules/posix_spawnattr_destroy: New file.
21543         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21544         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21545         module.
21546
21547         New module 'posix_spawnattr_setsigmask'.
21548         * modules/posix_spawnattr_setsigmask: New file.
21549         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21550         modifications.
21551         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21552         new module.
21553
21554         New module 'posix_spawnattr_getsigmask'.
21555         * modules/posix_spawnattr_getsigmask: New file.
21556         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21557         modifications.
21558         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21559         new module.
21560
21561         New module 'posix_spawnattr_setsigdefault'.
21562         * modules/posix_spawnattr_setsigdefault: New file.
21563         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21564         modifications.
21565         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21566         new module.
21567
21568         New module 'posix_spawnattr_getsigdefault'.
21569         * modules/posix_spawnattr_getsigdefault: New file.
21570         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21571         modifications.
21572         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21573         new module.
21574
21575         New module 'posix_spawnattr_setschedpolicy'.
21576         * modules/posix_spawnattr_setschedpolicy: New file.
21577         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21578         modifications.
21579         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21580         new module.
21581
21582         New module 'posix_spawnattr_getschedpolicy'.
21583         * modules/posix_spawnattr_getschedpolicy: New file.
21584         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21585         modifications.
21586         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21587         new module.
21588
21589         New module 'posix_spawnattr_setschedparam'.
21590         * modules/posix_spawnattr_setschedparam: New file.
21591         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21592         modifications.
21593         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21594         new module.
21595
21596         New module 'posix_spawnattr_getschedparam'.
21597         * modules/posix_spawnattr_getschedparam: New file.
21598         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21599         modifications.
21600         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21601         new module.
21602
21603         New module 'posix_spawnattr_setpgroup'.
21604         * modules/posix_spawnattr_setpgroup: New file.
21605         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21606         modifications.
21607         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21608         module.
21609
21610         New module 'posix_spawnattr_getpgroup'.
21611         * modules/posix_spawnattr_getpgroup: New file.
21612         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21613         modifications.
21614         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21615         module.
21616
21617         New module 'posix_spawnattr_setflags'.
21618         * modules/posix_spawnattr_setflags: New file.
21619         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21620         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21621         module.
21622
21623         New module 'posix_spawnattr_getflags'.
21624         * modules/posix_spawnattr_getflags: New file.
21625         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21626         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21627         module.
21628
21629         New module 'posix_spawnattr_init'.
21630         * modules/posix_spawnattr_init: New file.
21631         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21632         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21633         module.
21634
21635         New module 'posix_spawn_file_actions_destroy'.
21636         * modules/posix_spawn_file_actions_destroy: New file.
21637         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21638         modifications.
21639         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21640         the new module.
21641
21642         New module 'posix_spawn_file_actions_addopen'.
21643         * modules/posix_spawn_file_actions_addopen: New file.
21644         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21645         modifications.
21646         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21647         the new module.
21648
21649         New module 'posix_spawn_file_actions_adddup2'.
21650         * modules/posix_spawn_file_actions_adddup2: New file.
21651         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21652         modifications.
21653         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21654         the new module.
21655
21656         New module 'posix_spawn_file_actions_addclose'.
21657         * modules/posix_spawn_file_actions_addclose: New file.
21658         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21659         modifications.
21660         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21661         the new module.
21662
21663         New module 'posix_spawn_file_actions_init'.
21664         * modules/posix_spawn_file_actions_init: New file.
21665         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21666         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21667         new module.
21668
21669         New module 'posix_spawn-internal'.
21670         * modules/posix_spawn-internal: New file.
21671         * lib/spawn_int.h: New file, from GNU libc with modifications.
21672         * lib/spawni.c: New file, from GNU libc with modifications.
21673         * m4/posix_spawn.m4: New file.
21674
21675         New module 'spawn'.
21676         * modules/spawn: New file.
21677         * lib/spawn.in.h: New file, from GNU libc with modifications.
21678         * m4/spawn_h.m4: New file.
21679         * doc/posix-headers/spawn.texi: Mention the new module.
21680
21681 2008-09-28  Bruno Haible  <bruno@clisp.org>
21682
21683         * modules/sched-tests: New file.
21684         * tests/test-sched.c: New file.
21685
21686         New module 'sched'.
21687         * modules/sched: New file.
21688         * lib/sched.in.h: New file.
21689         * m4/sched_h.m4: New file.
21690         * doc/posix-headers/sched.texi: Mention the new module.
21691
21692 2008-09-27  Eric Blake  <ebb9@byu.net>
21693
21694         Fix previous patch, and tweak references to $0.
21695         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21696         (func_version, func_gnulib_dir): Don't call this program
21697         gnulib-tool.
21698         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21699         with using $0 in function.
21700         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21701         (func_fatal_error): Reuse the name the user invoked us with.
21702
21703 2008-09-27  Bruno Haible  <bruno@clisp.org>
21704
21705         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21706         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21707         (gl_ICONV_H): Not here.
21708         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21709         instead of assigning ICONV_H directly.
21710
21711         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21713         WCHAR_H directly.
21714
21715 2008-09-27  Bruno Haible  <bruno@clisp.org>
21716
21717         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21718         * modules/arpa_inet (Depends-on): Add link-warning.
21719         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21720         * modules/unistd (Makefile.am): Likewise.
21721
21722 2008-09-26  Bruno Haible  <bruno@clisp.org>
21723
21724         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21725         variables.
21726         (func_version): Essentially copied from gnulib-tool.
21727         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21728         func_readlink): Copied from gnulib-tool.
21729
21730 2008-09-26  Bruno Haible  <bruno@clisp.org>
21731
21732         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21733         invoking git-version-gen.
21734
21735 2008-09-26  Bruno Haible  <bruno@clisp.org>
21736
21737         * posix-modules: Update to directory names changed on 2008-01-19.
21738         Remove commas in output before splitting into words. No more need to
21739         avoid 'ftruncate' since 2007-02-19.
21740
21741 2008-09-26  Bruno Haible  <bruno@clisp.org>
21742
21743         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21744
21745 2008-09-26  Bruno Haible  <bruno@clisp.org>
21746
21747         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21748         * modules/fwriteerror (Depends-on): Add errno.
21749
21750 2008-09-26  Bruno Haible  <bruno@clisp.org>
21751
21752         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21753         * tests/test-vc-list-files-cvs.sh: Likewise.
21754
21755 2008-09-26  Bruno Haible  <bruno@clisp.org>
21756
21757         * doc/posix-headers/sys_resource.texi: Reorder items.
21758
21759 2008-09-26  Jim Meyering  <meyering@redhat.com>
21760
21761         fts: tweak inode comparison function
21762         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21763         inode numbers, as documented.
21764
21765         fts: sort dirent entries on inode number before traversing
21766         This avoids a quadratic, seek-related performance penalty when
21767         operating on a directory containing many entries (measurable at 10k;
21768         3.5 hours at 2 million entries with a cold cache) on certain types
21769         of file systems, including ext3 and ext4, but not tmpfs.
21770         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21771         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21772         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21773         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21774         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21775         (fts_build): Set the stat.st_ino member from D_INO.
21776         If it is likely to be useful, sort dirent entries on inode number.
21777
21778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21779         and the struct statfs.f_type member.
21780         * modules/fts (Depends-on): Add d-ino.
21781
21782 2008-09-26  Bruno Haible  <bruno@clisp.org>
21783
21784         * modules/sigpipe-die (Depends-on): Add sigpipe.
21785
21786         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21787         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21788         and GNULIB_STDIO_H_SIGPIPE are set.
21789         * lib/stdio-write.c: New file.
21790         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21791         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21792         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21793         REPLACE_STDIO_WRITE_FUNCS.
21794         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21795         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21796         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21797         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21798         * modules/stdio (Files): Add lib/stdio-write.c.
21799         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21800         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21801         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21802         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21803         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21804         REPLACE_FPRINTF_POSIX.
21805         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21806         REPLACE_PRINTF_POSIX.
21807         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21808         REPLACE_VFPRINTF_POSIX.
21809         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21810         REPLACE_VPRINTF_POSIX.
21811         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21812         SIGPIPE issue.
21813         * doc/posix-functions/fputc.texi: Likewise.
21814         * doc/posix-functions/fputs.texi: Likewise.
21815         * doc/posix-functions/fwrite.texi: Likewise.
21816         * doc/posix-functions/printf.texi: Likewise.
21817         * doc/posix-functions/putc.texi: Likewise.
21818         * doc/posix-functions/putchar.texi: Likewise.
21819         * doc/posix-functions/puts.texi: Likewise.
21820         * doc/posix-functions/vfprintf.texi: Likewise.
21821         * doc/posix-functions/vprintf.texi: Likewise.
21822
21823         * modules/safe-write (Depends-on): Add write.
21824
21825         * modules/sigpipe-tests: New file.
21826         * tests/test-sigpipe.c: New file.
21827         * tests/test-sigpipe.sh: New file.
21828
21829         * modules/write: New file.
21830         * lib/unistd.in.h: Include <sys/types.h>.
21831         (write): New declaration.
21832         * lib/write.c: New file.
21833         * m4/write.m4: New file.
21834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21835         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21836         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21837         GNULIB_WRITE, REPLACE_WRITE.
21838         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21839         and the SIGPIPE issue.
21840
21841         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21842         (raise): New declaration.
21843         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21844         (ext_signal): New function.
21845         (rpl_raise): New function.
21846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21847         GNULIB_SIGNAL_H_SIGPIPE.
21848         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21849         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21850
21851         * modules/sigpipe: New file.
21852         * m4/sigpipe.m4: New file.
21853
21854 2008-09-25  Derek Price  <derek@ximbiot.com>
21855             Bruno Haible  <bruno@clisp.org>
21856
21857         * gnulib-tool (func_import): Report all license incompatibilities, not
21858         just the first one.
21859
21860 2008-09-25  Bruno Haible  <bruno@clisp.org>
21861
21862         * gnulib-tool (func_import): When computing the edits, consider not
21863         only the Makefile.ams that exist but also those that will be generated.
21864
21865 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21866
21867         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21868         fixes gnulib-tool --test warning about duplicate dependency.
21869
21870 2008-09-25  Bruno Haible  <bruno@clisp.org>
21871
21872         * gnulib-tool: Don't ask the user to perform edits in the generated
21873         Makefile.ams.
21874         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21875         apply to the Makefile.am being generated.
21876         (func_emit_tests_Makefile_am): Execute edits that apply to the
21877         Makefile.am being generated.
21878         (func_import): Setup list of Makefile.am edits before emitting the
21879         Makefile.ams, not at the end.
21880         (func_create_testdir): Update.
21881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21882
21883 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21884
21885         * gnulib-tool (func_import): Store the --tests-base option in the
21886         comment in gnulib-cache.m4.
21887
21888 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21889
21890         * NEWS: Document increased portability that sys_select now provides.
21891
21892         * lib/sys_select.in.h: Install select wrapper.
21893         * lib/sys_socket.in.h: Use more descriptive name when there is no
21894         select wrapper.
21895         * lib/winsock-select.c: New.
21896         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21897         Require gl_HEADER_SYS_SOCKET.
21898         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21899         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21900         * tests/test-sys_select.c: Add functional tests.
21901
21902 2008-09-24  Eric Blake  <ebb9@byu.net>
21903
21904         open, fopen: close fd leak in last patch
21905         * lib/open.c (rpl_open): Close fd before returning error.
21906         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21907         * doc/posix-functions/open.texi (open): Document that Irix also
21908         has the bug.
21909         * doc/posix-functions/fopen.texi (fopen): Likewise.
21910         Reported by Paolo Bonzini.
21911
21912 2008-09-24  Bruno Haible  <bruno@clisp.org>
21913
21914         Ensure that a filename ending in a slash cannot be used to access a
21915         non-directory.
21916         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21917         to check whether it's really a directory.
21918         * lib/fopen.c: Include fcntl.h, unistd.h.
21919         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21920         and fdopen().
21921         * modules/fopen (Depends-on): Add unistd.
21922         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21923         * tests/test-fopen.c (main): Likewise.
21924         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21925         * doc/posix-functions/fopen.texi: Likewise.
21926         Reported by Eric Blake.
21927
21928 2008-09-23  Eric Blake  <ebb9@byu.net>
21929
21930         c-stack: avoid compiler optimizations when provoking overflow
21931         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21932         recursion harder to optimize, to ensure a stack overflow occurs.
21933         * tests/test-c-stack.c (recurse): Likewise.
21934         Borrowed from libsigsegv.
21935
21936         c-stack: work around Irix sigaltstack bug
21937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21938         whether sigaltstack uses wrong end of stack_t (copied in part from
21939         libsigsegv).
21940         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21941         Irix bug, without requiring an over-allocation.
21942         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21943         bug.
21944
21945         fopen: document mingw bug on directories
21946         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21947         not allowing a stream visiting a directory, even though reading
21948         from such a stream is not portable.
21949
21950 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21951
21952         * lib/poll.c: Rewrite.
21953         * modules/poll: Depend on alloca.
21954
21955 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21956
21957         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21958         instead define prototypes for a full set of wrappers.  Ensure
21959         that Cygwin does not use the compatibility code, which is only
21960         for MinGW.
21961         * lib/winsock.c: New.
21962         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21963         * modules/sys_socket: Add lib/winsock.c.
21964
21965         * modules/poll-tests: Add errno and perror.
21966         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21967
21968 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21969
21970         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21971
21972 2008-09-23  Bruno Haible  <bruno@clisp.org>
21973
21974         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21975         * doc/glibc-functions/*: Likewise.
21976
21977 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21978
21979         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21980         success.
21981
21982 2008-09-22  Eric Blake  <ebb9@byu.net>
21983             Bruno Haible  <bruno@clisp.org>
21984
21985         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21986         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21987         supply %A but mishandle pseudo-NaN.
21988         Reported by Simon Josefsson.
21989
21990 2008-09-21  Bruno Haible  <bruno@clisp.org>
21991
21992         * tests/test-lock.c (main): Tweak skip message.
21993         * tests/test-tls.c (main): Likewise.
21994
21995 2008-09-21  Bruno Haible  <bruno@clisp.org>
21996
21997         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21998         whether 'struct sigaction' has sa_sigaction here...
21999         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22000         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22001
22002 2008-09-21  Bruno Haible  <bruno@clisp.org>
22003
22004         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22005         section.
22006         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22007         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22008         the new section.
22009         (Support for obsolete systems lacking POSIX:2001): New section.
22010         (String handling <string.h>): Move strdup to the new section.
22011         Suggested by Simon Josefsson and Paolo Bonzini.
22012
22013 2008-09-21  Bruno Haible  <bruno@clisp.org>
22014
22015         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22016         exponents in %e and %g results on 'long double'. Needed for mingw's
22017         improved *printf functions.
22018         * tests/test-vasprintf-posix.c (test_function): Likewise.
22019         * tests/test-snprintf-posix.h (test_function): Likewise.
22020         * tests/test-sprintf-posix.h (test_function): Likewise.
22021         Reported by Eric Blake.
22022
22023 2008-09-21  Bruno Haible  <bruno@clisp.org>
22024
22025         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22026         * tests/test-sprintf-posix.h (test_function): Likewise.
22027
22028 2008-09-21  Bruno Haible  <bruno@clisp.org>
22029
22030         * modules/getpass (Depends-on): Add strdup-posix.
22031
22032         New module 'strdup-posix'.
22033         * modules/strdup-posix: New file.
22034         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22035         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22037         REPLACE_STRDUP.
22038         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22039         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22041         strdup-posix.
22042
22043         * modules/strdup (Depends-on): Remove malloc-posix.
22044
22045 2008-09-20  Bruno Haible  <bruno@clisp.org>
22046
22047         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22048         Wildenhues.
22049
22050 2008-09-20  Bruno Haible  <bruno@clisp.org>
22051
22052         Ensure that wint_t gets defined on IRIX 5.3.
22053         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22054         * lib/wctype.in.h (wint_t): Likewise.
22055         (__wctype_wint_t): Remove type.
22056         (isw*): Use wint_t instead of __wctype_wint_t.
22057         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22058         * modules/wchar (Files): Add m4/wint_t.m4.
22059         (Makefile.am): Substitute HAVE_WINT_T.
22060         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22061         * tests/test-wctype.c: Check that wint_t is defined.
22062         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22063         * doc/posix-headers/wctype.texi: Likewise.
22064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22065
22066 2008-09-18  Bruno Haible  <bruno@clisp.org>
22067
22068         * gnulib-tool (func_exit): Update comment.
22069
22070 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22071
22072         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22073         assumes strdup exists and does not depend on strdup to return
22074         ENOMEM on out of memory conditions.
22075
22076 2008-09-18  Bruno Haible  <bruno@clisp.org>
22077
22078         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22079         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22080         digits for the exponent.
22081
22082 2008-09-18  Jim Meyering  <meyering@redhat.com>
22083             Bruno Haible  <bruno@clisp.org>
22084
22085         * lib/vasnprintf.c (decimal_point_char): Define also if
22086         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22087
22088 2008-09-16  Bruno Haible  <bruno@clisp.org>
22089         and Eric Blake  <ebb9@byu.net>
22090
22091         vasnprintf: support Irix 5.3
22092         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22093         that mishandle long double infinity.
22094         Reported by Tom G. Christensen.
22095
22096 2008-09-16  Bruno Haible  <bruno@clisp.org>
22097
22098         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22099         Solaris 9.
22100         * doc/glibc-functions/alphasort.texi: Likewise.
22101         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22102
22103 2008-09-16  Jim Meyering  <meyering@redhat.com>
22104
22105         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22106         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22107         a umask modification leak out of a subshell.  Otherwise, the
22108         opensolaris /bin/sh would be accepted and thus cause unwarranted
22109         failures in the coreutils test suite.
22110
22111 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22112
22113         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22114         to succeed.
22115
22116 2008-09-16  Jim Meyering  <meyering@redhat.com>
22117
22118         avoid spurious test failure when library is built without ACL support
22119         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22120         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22121         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22122         * tests/test-copy-acl.sh: Likewise.
22123
22124 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22125
22126         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22127         based on character occurrence counts.
22128
22129 2008-09-15  Eric Blake  <ebb9@byu.net>
22130
22131         tests: avoid some compiler warnings
22132         * tests/test-memchr.c (main): Pass NULL indirectly.
22133         * tests/test-closein.c (main): Avoid unused variable.
22134
22135 2008-09-15  Bruno Haible  <bruno@clisp.org>
22136
22137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22138         are missing on OpenBSD 4.0 individually.
22139         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22140
22141 2008-09-15  Bruno Haible  <bruno@clisp.org>
22142
22143         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22144         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22145         * doc/posix-functions/perror.texi: Likewise.
22146         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22147         is missing.
22148         Reported by Eric Blake.
22149
22150         * lib/errno.in.h: Use replacement values >= 2000.
22151         Reported by Eric Blake.
22152
22153 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22154
22155         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22156         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22157         limit.
22158         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22159         compareseq was aborted.
22160
22161 2008-09-14  Bruno Haible  <bruno@clisp.org>
22162
22163         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22164         yvec_edit_count.
22165         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22166         (fstrcmp_bounded): Simplify result computation accordingly.
22167
22168 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22169
22170         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22171         (fstrcmp): Define in terms of fstrcmp_bounded.
22172         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22173         lower_bound argument.
22174         Return quickly if the result is certainly < lower_bound.
22175         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22176
22177 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22178
22179         * lib/diffseq.h (EARLY_ABORT): New macro.
22180         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22181         evaluates to true.
22182
22183 2008-09-14  Bruno Haible  <bruno@clisp.org>
22184
22185         * modules/perror-tests: New file.
22186         * tests/test-perror.sh: New file.
22187         * tests/test-perror.c: New file.
22188
22189         New module 'perror'.
22190         * lib/stdio.in.h (perror): New declaration.
22191         * lib/perror.c: New file.
22192         * m4/perror.m4: New file.
22193         * modules/perror: New file.
22194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22195         * doc/posix-functions/perror.texi: Mention the perror module.
22196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22197         REPLACE_PERROR.
22198         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22199         REPLACE_PERROR.
22200
22201 2008-09-14  Bruno Haible  <bruno@clisp.org>
22202
22203         * modules/stdio (Makefile.am): Reorder to match the order in
22204         lib/stdio.in.h.
22205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22206
22207 2008-09-13  Bruno Haible  <bruno@clisp.org>
22208
22209         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22210
22211 2008-09-13  Bruno Haible  <bruno@clisp.org>
22212
22213         Extend strerror to cover the added errno values.
22214         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22215         (rpl_strerror): Provide error messages for the added errno values and
22216         for the WSA* values.
22217         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22218         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22219         strerror.
22220         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22221         * modules/strerror (Depends-on): Add errno.
22222         * doc/posix-functions/strerror.texi: Document the change.
22223         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22224         and EOVERFLOW.
22225
22226 2008-09-13  Bruno Haible  <bruno@clisp.org>
22227
22228         * modules/EOVERFLOW: Remove file.
22229         * m4/eoverflow.m4: Remove file.
22230         * modules/EOVERFLOW-tests: Remove file.
22231         * tests/test-EOVERFLOW.c: Remove file.
22232         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22233         * modules/ftell (Depends-on): Likewise.
22234         * modules/getdelim (Depends-on): Likewise.
22235         * modules/getugroups (Depends-on): Likewise.
22236         * modules/poll (Depends-on): Likewise.
22237         * modules/snprintf (Depends-on): Likewise.
22238         * modules/sprintf-posix (Depends-on): Likewise.
22239         * modules/vasnprintf (Depends-on): Likewise.
22240         * modules/vasprintf (Depends-on): Likewise.
22241         * modules/vfprintf-posix (Depends-on): Likewise.
22242         * modules/vsnprintf (Depends-on): Likewise.
22243         * modules/vsprintf-posix (Depends-on): Likewise.
22244         * modules/xvasprintf (Depends-on): Likewise.
22245         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22246         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22247         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22248         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22250         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22251         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22252         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22253         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22254         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22255         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22256         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22258         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22259         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22260         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22262         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22263         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22264         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22265         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22266         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22267         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22268         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22269         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22271         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22272         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22273         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22274         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22275         * MODULES.html.sh: Remove EOVERFLOW.
22276         * NEWS: Mention the change.
22277
22278 2008-09-13  Bruno Haible  <bruno@clisp.org>
22279
22280         * modules/errno-tests: New file.
22281         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22282
22283         * lib/errno.in.h: New file.
22284         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22285         * modules/errno: New file.
22286         * doc/posix-headers/errno.texi: Update documentation.
22287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22288
22289 2008-09-13  Bruno Haible  <bruno@clisp.org>
22290
22291         * tests/test-poll.c: Use #if for native Windows, rather than testing
22292         __MSVCRT__.
22293
22294 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22295             Bruno Haible  <bruno@clisp.org>
22296
22297         * lib/glob.c: Don't include <pwd.h> on native Windows.
22298         (WINDOWS32): New macro.
22299         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22300
22301 2008-09-13  Bruno Haible  <bruno@clisp.org>
22302
22303         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22304         (ETIMEDOUT): Remove macro.
22305         (glthread_cond_timedwait_multithreaded): New declaration.
22306         (glthread_cond_timedwait): Use it.
22307         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22308         (glthread_cond_timedwait_multithreaded): New function.
22309
22310 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22311
22312         * modules/poll-tests: Do not check for io.h.
22313         * tests/test-poll.c: Check for __MSVCRT__ instead.
22314
22315 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22316
22317         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22318         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22319         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22320
22321 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22322
22323         * modules/poll-tests: New.
22324         * tests/test-poll.c: New.
22325
22326 2008-09-12  Eric Blake  <ebb9@byu.net>
22327
22328         frexp: test for NetBSD failure on -0.0
22329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22330         not all, bugs from NetBSD 3.0 have been fixed.
22331         * doc/posix-functions/frexp.texi (frexp): Document bug.
22332         Reported by Thomas Klausner.
22333
22334         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22335         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22336         literal -0.0.
22337         Reported by Jonathan C. Patschke <jp@centtech.com>.
22338
22339 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22340
22341         * lib/glthread/cond.h: Use dummy implementation also if
22342         USE_WIN32_THREADS.
22343
22344 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22345
22346         * modules/fnmatch-posix (License): Change to LGPLv2+.
22347         * modules/fnmatch-gnu (License): Likewise.
22348
22349 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22350
22351         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22352
22353 2008-09-11  Jim Meyering  <meyering@redhat.com>
22354
22355         * users.txt: Add gtk-vnc.
22356
22357 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22358
22359         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22360         rotate amounts.
22361
22362         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22363         required for 16-bit and 8-bit rotates.
22364         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22365         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22366         UINT8_MAX instead of hard-coded constants.
22367         Suggested by Paul Eggert.
22368
22369 2008-09-07  Bruno Haible  <bruno@clisp.org>
22370
22371         * tests/test-striconveh.c (main): Check behaviour when converting from
22372         UTF-7.
22373
22374         Make striconveh work better with stateful encodings.
22375         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22376         that iconv does not increment the inptr when returning -1/EINVAL.
22377
22378 2008-09-07  Bruno Haible  <bruno@clisp.org>
22379
22380         * build-aux/config.rpath: Update according to libtool-2.2.6.
22381         * build-aux/config.libpath: Likewise.
22382
22383 2008-09-06  Bruno Haible  <bruno@clisp.org>
22384
22385         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22386         * lib/freadptr.c (freadptr): Likewise.
22387         * lib/freadseek.c (freadptrinc): Likewise.
22388         Reported by Simon Josefsson.
22389
22390 2008-09-06  Bruno Haible  <bruno@clisp.org>
22391
22392         * modules/freadptr (License): Change to LGPLv2+.
22393         * modules/freadseek (License): Likewise.
22394         Suggested by Eric Blake.
22395
22396         * modules/memchr2 (License): Change to LGPLv2+.
22397         Approved by Eric Blake.
22398
22399 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22400             Bruno Haible  <bruno@clisp.org>
22401
22402         Make gnulib-tool work with native 'sed' on AIX.
22403         * gnulib-tool (sed_noop): New variable.
22404         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22405         func_add_or_update, func_create_testdir): Use it to initialize sed
22406         script variables.
22407         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22408
22409 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22410             Bruno Haible  <bruno@clisp.org>
22411
22412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22413         also works after #include directives.
22414
22415 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22416
22417         getdate.y: reject an out-of-range timezone value
22418         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22419         the range [-24...+24].  When specified with only one or two digits,
22420         * tests/test-getdate.c: Tests for the fix.
22421         * doc/getdate.texi: Document this change.
22422
22423 2008-09-03  Bruno Haible  <bruno@clisp.org>
22424
22425         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22426
22427 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22428
22429         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22430         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22431         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22432         Blake <ebb9@byu.net>.
22433
22434         * tests/test-bitrotate.c: Add more test vectors.
22435
22436 2008-09-02  Eric Blake  <ebb9@byu.net>
22437
22438         vasnprintf-posix: handle large precision via %.*d
22439         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22440         when handling it ourselves.
22441         * tests/test-vasnprintf-posix.c (test_function): Add test.
22442         * tests/test-snprintf-posix.h (test_function): Likewise.
22443         * tests/test-sprintf-posix.h (test_function): Likewise.
22444         * tests/test-vasprintf-posix.c (test_function): Likewise.
22445         Reported by Alain Guibert.
22446
22447 2008-09-01  Eric Blake  <ebb9@byu.net>
22448
22449         c-stack: make configure-time check more robust
22450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22451         successful sigaction call.
22452         Reported by Tom G. Christensen.
22453
22454 2008-09-01  Bruno Haible  <bruno@clisp.org>
22455
22456         New module 'findprog-lgpl'.
22457         * modules/findprog-lgpl: New file.
22458         * lib/findprog-lgpl.c: New file.
22459         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22460         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22461         to decide whether to use strdup or xstrdup, concatenated_filename or
22462         xconcatenated_filename.
22463
22464 2008-09-01  Bruno Haible  <bruno@clisp.org>
22465
22466         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22467         'xconcat-filename' (GPL).
22468         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22469         (License): Change to LGPLv2+.
22470         * modules/xconcat-filename: New file.
22471         * lib/concat-filename.h (concatenated_filename): Change specification.
22472         (xconcatenated_filename): New declaration.
22473         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22474         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22475         memory situations.
22476         * lib/xconcat-filename.c: New file.
22477         * NEWS: Mention the change.
22478         * lib/findprog.c: Include concat-filename.h, not filename.h.
22479         (find_in_path): Use xconcatenated_filename instead of
22480         concatenated_filename.
22481         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22482         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22483         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22484         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22485         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22486         instead of concatenated_filename.
22487         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22488         (execute_java_class): Use xconcatenated_filename instead of
22489         concatenated_filename.
22490         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22491         * modules/javacomp (Depends-on): Likewise.
22492         * modules/javaexec (Depends-on): Likewise.
22493
22494 2008-09-01  Bruno Haible  <bruno@clisp.org>
22495
22496         Split module 'filename' into 'filename' and 'concat-filename'.
22497         * modules/filename: Keep only lib/filename.h.
22498         (License): Change to LGPLv2+.
22499         * modules/concat-filename: New file, extracted from modules/filename.
22500         * lib/filename.h (concatenated_filename): Remove declaration.
22501         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22502         * lib/concat-filename.c: Include concat-filename.h.
22503         * NEWS: Mention the change.
22504
22505 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22506
22507         * lib/bitrotate.h (rotl8, rotr8): Add.
22508
22509         * modules/bitrotate (configure.ac): Need
22510         AC_REQUIRE([AC_C_INLINE]).
22511         (Description): Mention stdint.h.  Reported by Bruno Haible
22512         <bruno@clisp.org>.
22513
22514         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22515         Paolo Bonzini <bonzini@gnu.org>.
22516
22517 2008-08-31  Bruno Haible  <bruno@clisp.org>
22518
22519         Assume Solaris specific bi-arch conventions on Solaris systems.
22520         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22521         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22523         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22524         like acl_libdirstem.
22525         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22526         acl_libdirstem.
22527         * NEWS: Mention the change.
22528         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22529
22530 2008-08-31  Jim Meyering  <meyering@redhat.com>
22531
22532         * lib/strftime.h: Add comments describing the two added arguments.
22533
22534         remove duplicate #include directives
22535         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22536         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22537
22538 2008-08-31  Bruno Haible  <bruno@clisp.org>
22539
22540         New module 'sigpipe-die'.
22541         * modules/sigpipe-die: New file.
22542         * lib/sigpipe-die.h: New file.
22543         * lib/sigpipe-die.c: New file.
22544         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22545
22546 2008-08-31  Bruno Haible  <bruno@clisp.org>
22547
22548         Don't override previously installed signal handlers.
22549         * lib/fatal-signal.c (saved_sigactions): New variable.
22550         (uninstall_handlers): Reset the signal to the saved handler, not
22551         to SIG_DFL (except when ignored).
22552         (install_handlers): Save the previous handlers.
22553
22554 2008-08-30  Bruno Haible  <bruno@clisp.org>
22555
22556         * gnulib-tool (func_reset_sigpipe): New function.
22557         (func_get_automake_snippet, func_modules_transitive_closure,
22558         func_import): Invoke it before a join command that reads from stdin,
22559         to avoid "echo: write error: Broken pipe" error messages on stderr.
22560         Reported by Sam Steingold <sds@gnu.org>.
22561
22562 2008-08-30  Bruno Haible  <bruno@clisp.org>
22563
22564         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22565         Code copied from m4/open.m4.
22566         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22567         access and the filename ends in a slash. Code copied from lib/open.c.
22568         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22569         * tests/test-fopen.c (main): Check against bug with trailing slash.
22570
22571 2008-08-29  Bruno Haible  <bruno@clisp.org>
22572
22573         Avoid some "gcc -pedantic" warnings.
22574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22575         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22576         * lib/dirent.in.h: Likewise.
22577         * lib/fcntl.in.h: Likewise.
22578         * lib/float.in.h: Likewise.
22579         * lib/iconv.in.h: Likewise.
22580         * lib/inttypes.in.h: Likewise.
22581         * lib/locale.in.h: Likewise.
22582         * lib/math.in.h: Likewise.
22583         * lib/netinet_in.in.h: Likewise.
22584         * lib/search.in.h: Likewise.
22585         * lib/signal.in.h: Likewise.
22586         * lib/stdarg.in.h: Likewise.
22587         * lib/stdint.in.h: Likewise.
22588         * lib/stdio.in.h: Likewise.
22589         * lib/stdlib.in.h: Likewise.
22590         * lib/string.in.h: Likewise.
22591         * lib/strings.in.h: Likewise.
22592         * lib/sys_select.in.h: Likewise.
22593         * lib/sys_socket.in.h: Likewise.
22594         * lib/sys_stat.in.h: Likewise.
22595         * lib/sys_time.in.h: Likewise.
22596         * lib/sysexits.in.h: Likewise.
22597         * lib/time.in.h: Likewise.
22598         * lib/unistd.in.h: Likewise.
22599         * lib/wchar.in.h: Likewise.
22600         * lib/wctype.in.h: Likewise.
22601         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22602         * modules/fchdir (Makefile.am): Likewise.
22603         * modules/fcntl (Makefile.am): Likewise.
22604         * modules/float (Makefile.am): Likewise.
22605         * modules/iconv_open (Makefile.am): Likewise.
22606         * modules/inttypes (Makefile.am): Likewise.
22607         * modules/locale (Makefile.am): Likewise.
22608         * modules/math (Makefile.am): Likewise.
22609         * modules/netinet_in (Makefile.am): Likewise.
22610         * modules/search (Makefile.am): Likewise.
22611         * modules/signal (Makefile.am): Likewise.
22612         * modules/stdarg (Makefile.am): Likewise.
22613         * modules/stdint (Makefile.am): Likewise.
22614         * modules/stdio (Makefile.am): Likewise.
22615         * modules/stdlib (Makefile.am): Likewise.
22616         * modules/string (Makefile.am): Likewise.
22617         * modules/strings (Makefile.am): Likewise.
22618         * modules/sys_select (Makefile.am): Likewise.
22619         * modules/sys_socket (Makefile.am): Likewise.
22620         * modules/sys_stat (Makefile.am): Likewise.
22621         * modules/sys_time (Makefile.am): Likewise.
22622         * modules/sysexits (Makefile.am): Likewise.
22623         * modules/time (Makefile.am): Likewise.
22624         * modules/unistd (Makefile.am): Likewise.
22625         * modules/wchar (Makefile.am): Likewise.
22626         * modules/wctype (Makefile.am): Likewise.
22627         Reported by Reuben Thomas <rrt@sc3d.org>.
22628
22629 2008-08-29  Bruno Haible  <bruno@clisp.org>
22630
22631         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22632         any more.
22633
22634 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22635
22636         * MODULES.html.sh (Misc): Add bitrotate.
22637
22638         * modules/bitrotate: New file.
22639
22640         * lib/bitrotate.h: New file.
22641
22642         * modules/bitrotate-tests: New file.
22643
22644         * tests/test-bitrotate.c: New file.
22645
22646         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22647         on the bitrotate module.
22648
22649         * lib/arctwo.c: Use new bitrotate module.
22650
22651 2008-08-29  Jim Meyering  <meyering@redhat.com>
22652
22653         bootstrap: merge changes from coreutils
22654         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22655         of copied files.  Remove a kludge, now that this is fixed.
22656         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22657         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22658         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22659
22660 2008-08-29  Bruno Haible  <bruno@clisp.org>
22661
22662         * MODULES.html.sh: Remove --cvs-urls option.
22663
22664 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22665
22666         maint.mk: adjust to file name change
22667         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22668
22669 2008-08-28  Jim Meyering  <meyering@redhat.com>
22670
22671         * modules/getndelim2 (License): Relicense to LGPLv2+.
22672         Approved by Richard Stallman for the version of 1995, and by
22673         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22674
22675 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22676
22677         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22678         dummy if one is not available.  Do not touch them if
22679         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22680         (getc_maybe_unlocked): New.
22681         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22682
22683 2008-08-26  Eric Blake  <ebb9@byu.net>
22684
22685         doc/INSTALL: resync from autoconf
22686         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22687         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22688         moving...
22689         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22690         * INSTALL: Regenerate.
22691         * INSTALL.ISO: New file.
22692         * INSTALL.UTF-8: Likewise.
22693
22694 2008-08-26  Jim Meyering  <meyering@redhat.com>
22695
22696         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22697         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22698         these definitions conditional, so that they may be overridden, too.
22699
22700 2008-08-26  Bruno Haible  <bruno@clisp.org>
22701
22702         Generate INSTALL file variants with prettier quotes.
22703         * doc/Makefile (INSTALL_PRELUDE): New macro.
22704         (INSTALL): Use it.
22705         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22706
22707 2008-08-26  Bruno Haible  <bruno@clisp.org>
22708
22709         Run makeinfo in an English locale.
22710         * doc/Makefile (MAKEINFO): New variable.
22711
22712 2008-08-26  Bruno Haible  <bruno@clisp.org>
22713
22714         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22715         Suggested by Eric Blake.
22716
22717 2008-08-25  Bruno Haible  <bruno@clisp.org>
22718
22719         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22720
22721 2008-08-25  Eric Blake  <ebb9@byu.net>
22722
22723         c-stack: test that stack overflow can be caught
22724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22725         that platform allows handling stack overflow; at least OS/2 EMX
22726         has sigaltstack, but crashes before transferring control to
22727         handler on stack overflow.
22728         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22729         check for HAVE_STACK_OVERFLOW_HANDLING.
22730         Reported by Elbert Pol.
22731
22732 2008-08-25  Bruno Haible  <bruno@clisp.org>
22733
22734         * doc/posix-functions/strftime.texi: Fix description of strftime
22735         module.
22736
22737 2008-08-24  Bruno Haible  <bruno@clisp.org>
22738
22739         * tests/uniwidth/test-uc_width2.c: New file.
22740         * tests/uniwidth/test-uc_width2.sh: New file.
22741         * modules/uniwidth/width-tests (Files): Add the new files.
22742         (TESTS): Add uniwidth/test-uc_width2.sh.
22743         (TESTS_ENVIRONMENT): New variable.
22744         (check_PROGRAMS): Add test-uc_width2.
22745         (test_uc_width2_SOURCES): New variable.
22746
22747         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22748         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22749         not 0x00AB.
22750         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22751
22752 2008-08-22  Eric Blake  <ebb9@byu.net>
22753
22754         test-lock, test-tls: mention why a test is skipped
22755         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22756         skipped.
22757         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22758
22759         count-one-bits: relax license
22760         * modules/count-one-bits (License): Relicense to LGPLv2+.
22761         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22762
22763 2008-08-22  Andreas Schwab  <schwab@suse.de>
22764
22765         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22766         Remove spurious space in assignment.
22767
22768 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22769
22770         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22771         Paul Eggert <eggert@CS.UCLA.EDU>.
22772
22773 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22774
22775         * modules/gettext: Add m4/threadlib.m4.
22776
22777 2008-08-19  Eric Blake  <ebb9@byu.net>
22778
22779         test-c-stack: fix compilation failure on FreeBSD 5.0
22780         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22781         headers before <sys/resource.h>.
22782         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22783         the bug.
22784         Reported by Nelson H. F. Beebe.
22785
22786         strverscmp: migrate from "strverscmp.h" to <string.h>
22787         * modules/string (Makefile.am): Add new hooks.
22788         * modules/strverscmp (Files): Remove strverscmp.h.
22789         (Depends-on): Add string.
22790         (configure.ac): Add indicator.
22791         (Include): Mention new header.
22792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22793         defaults.
22794         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22795         results.
22796         * lib/strverscmp.h: Delete.
22797         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22798         * tests/test-strverscmp.c (includes): Adjust client.
22799         * lib/check-version.c (includes): Likewise.
22800         * NEWS: Document the change.
22801
22802         strverscmp: add unit test
22803         * modules/strverscmp-tests: New file.
22804         * tests/test-strverscmp.c: Likewise.
22805
22806 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22807
22808         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22809         regarding Windows crypto stuff, from Mono.
22810
22811 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22812
22813         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22814         if present, for intel RND.  Return error on failures.
22815
22816 2008-08-18  Ben Pfaff  <blp@gnu.org>
22817
22818         gitlog-to-changelog: give better diagnostic for failed pipe-open
22819         * build-aux/gitlog-to-changelog: Improve error message: suggest
22820         that the version of Git may be too old.
22821
22822 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22823
22824         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22825         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22826
22827 2008-08-18  Bruno Haible  <bruno@clisp.org>
22828
22829         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22830         pthread_in_use().
22831
22832 2008-08-18  Bruno Haible  <bruno@clisp.org>
22833
22834         * lib/glthread/threadlib.c: Include <pthread.h>.
22835
22836 2008-08-18  Bruno Haible  <bruno@clisp.org>
22837
22838         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22839         glthread_recursive_lock_* macros.
22840         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22841         Fix syntax error.
22842
22843 2008-08-18  Bruno Haible  <bruno@clisp.org>
22844
22845         * lib/glthread/thread.c: Avoid forcing a context switch right after
22846         thread creation.
22847
22848 2008-08-17  Bruno Haible  <bruno@clisp.org>
22849
22850         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22851         * lib/glthread/thread.h: Provide Win32 specific implementation.
22852         * modules/thread (Files): Add lib/glthread/thread.c.
22853         (Depends-on): Add lock.
22854         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22855
22856 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22857
22858         New module 'yield'.
22859         * modules/yield: New file.
22860         * lib/glthread/yield.h: New file.
22861         * m4/yield.m4: New file.
22862         * MODULES.html.sh (Multithreading): Add yield.
22863
22864 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22865
22866         New module 'thread'.
22867         * modules/thread: New file.
22868         * lib/glthread/thread.h: New file.
22869         * m4/thread.m4: New file.
22870         * MODULES.html.sh (Multithreading): Add thread.
22871
22872 2008-08-17  Bruno Haible  <bruno@clisp.org>
22873
22874         * lib/glthread/lock.h: Include <stdlib.h> always.
22875         * lib/glthread/tls.h: Likewise.
22876         * lib/glthread/cond.h: Likewise.
22877
22878 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22879
22880         New module 'cond'.
22881         * modules/cond: New file.
22882         * lib/glthread/cond.h: New file.
22883         * lib/glthread/cond.c: New file.
22884         * m4/cond.m4: New file.
22885         * MODULES.html.sh (Multithreading): Add cond.
22886
22887 2008-08-16  Eric Blake  <ebb9@byu.net>
22888
22889         c-stack: fix regression on Irix 5.3 from 2008-06-21
22890         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22891         sa_sigaction...
22892         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22893         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22894         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22895         * modules/signal (Makefile.am): Use the value.
22896         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22897         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22898         * doc/posix-headers/signal.texi (signal.h): Document this
22899         portability issue.
22900         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22901         Reported by Tom G. Christensen.
22902
22903 2008-08-17  Bruno Haible  <bruno@clisp.org>
22904
22905         New module 'threadlib'.
22906         * modules/threadlib: New file.
22907         * lib/glthread/threadlib.c: New file, extracted from
22908         lib/glthread/lock.c.
22909         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22910         functions.
22911         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22912         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22913         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22914         macros.
22915         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22916         (gl_DISABLE_THREADS): Remove macro.
22917         * modules/lock (Files): Remove build-aux/config.rpath.
22918         (Depends-on): Remove havelib. Add threadlib.
22919         (configure.ac-early): Remove section.
22920         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22921         * modules/tls (Depends-on): Remove lock. Add threadlib.
22922         (Link): New section, copied from threadlib.
22923         * MODULES.html.sh (Multithreading): Add threadlib.
22924
22925 2008-08-14  Bruno Haible  <bruno@clisp.org>
22926
22927         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22928         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22929         glthread_rwlock_unlock, glthread_rwlock_destroy,
22930         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22931         glthread_recursive_lock_destroy): Define as macros always.
22932         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22933         glthread_lock_lock.
22934         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22935         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22936         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22937         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22938         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22939         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22940         (glthread_recursive_lock_lock_func): Renamed from
22941         glthread_recursive_lock_lock.
22942         (glthread_recursive_lock_unlock_func): Renamed from
22943         glthread_recursive_lock_unlock.
22944         (glthread_recursive_lock_destroy_func): Renamed from
22945         glthread_recursive_lock_destroy.
22946
22947 2008-08-14  Bruno Haible  <bruno@clisp.org>
22948
22949         * lib/glthread/lock.h: Renamed from lib/lock.h.
22950         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22951         * lib/glthread/tls.h: Renamed from lib/tls.h.
22952         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22953         * lib/fstrcmp.c: Update includes.
22954         * lib/strsignal.c: Update includes.
22955         * modules/lock (Files, Makefile.am): Update.
22956         (Include): Change to "glthread/lock.h".
22957         * modules/tls (Files, Makefile.am): Update.
22958         (Include): Change to "glthread/tls.h".
22959         * tests/test-lock.c: Update includes.
22960         * tests/test-tls.c: Update includes.
22961         * NEWS: Mention the renamed header files.
22962
22963 2008-08-11  Jim Meyering  <meyering@redhat.com>
22964
22965         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22966
22967 2008-08-11  Eric Blake  <ebb9@byu.net>
22968
22969         test-c-stack: avoid C99-ism
22970         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22971         before statement.
22972         Reported by Alain Guibert.
22973
22974 2008-08-10  Jim Meyering  <meyering@redhat.com>
22975
22976         ensure that return value of uinttostr et al are not ignored
22977         * lib/inttostr.h (__GNUC_PREREQ): Define.
22978         (__attribute_warn_unused_result__): Define.
22979         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22980
22981 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22982
22983         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22984         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22985
22986 2008-08-07  Jim Meyering  <meyering@redhat.com>
22987
22988         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22989
22990         * modules/mkstemp (License): Relicense under LGPLv2+.
22991         * modules/tempname (License): Likewise.
22992
22993 2008-08-06  Bruno Haible  <bruno@clisp.org>
22994
22995         * lib/poll.c (poll): Further micro-optimization.
22996
22997 2008-08-06  Jim Meyering  <meyering@redhat.com>
22998
22999         inet_pton.c: use locale-independent tolower
23000         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23001         (inet_pton6): Use c_tolower rather than tolower.
23002         * modules/inet_pton (Depends-on): Add c-ctype.
23003
23004 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23005
23006         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23007         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23008
23009 2008-08-06  Jim Meyering  <meyering@redhat.com>
23010
23011         * modules/inet_pton (License): Relicense under LGPLv2+.
23012
23013 2008-08-03  Bruno Haible  <bruno@clisp.org>
23014
23015         Additional non-aborting API for lock and tls.
23016         * lib/lock.h: Include <errno.h>.
23017         (glthread_lock_init): New macro/function.
23018         (gl_lock_init): Define as wrapper around glthread_lock_init.
23019         (glthread_lock_lock): New macro/function.
23020         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23021         (glthread_lock_unlock): New macro/function.
23022         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23023         (glthread_lock_destroy): New macro/function.
23024         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23025         (glthread_rwlock_init): New macro/function.
23026         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23027         (glthread_rwlock_rdlock): New macro/function.
23028         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23029         (glthread_rwlock_wrlock): New macro/function.
23030         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23031         (glthread_rwlock_unlock): New macro/function.
23032         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23033         (glthread_rwlock_destroy): New macro/function.
23034         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23035         (glthread_recursive_lock_init): New macro/function.
23036         (gl_recursive_lock_init): Define as wrapper around
23037         glthread_recursive_lock_init.
23038         (glthread_recursive_lock_lock): New macro/function.
23039         (gl_recursive_lock_lock): Define as wrapper around
23040         glthread_recursive_lock_lock.
23041         (glthread_recursive_lock_unlock): New macro/function.
23042         (gl_recursive_lock_unlock): Define as wrapper around
23043         glthread_recursive_lock_unlock.
23044         (glthread_recursive_lock_destroy): New macro/function.
23045         (gl_recursive_lock_destroy): Define as wrapper around
23046         glthread_recursive_lock_destroy.
23047         (glthread_once): New macro/function.
23048         (gl_once): Define as wrapper around glthread_once.
23049         Update function declarations.
23050         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23051         glthread_rwlock_init. Return error code.
23052         (glthread_rwlock_rdlock_multithreaded): Renamed from
23053         glthread_rwlock_rdlock. Return error code.
23054         (glthread_rwlock_wrlock_multithreaded): Renamed from
23055         glthread_rwlock_wrlock. Return error code.
23056         (glthread_rwlock_unlock_multithreaded): Renamed from
23057         glthread_rwlock_unlock. Return error code.
23058         (glthread_rwlock_destroy_multithreaded): Renamed from
23059         glthread_rwlock_destroy. Return error code.
23060         (glthread_recursive_lock_init_multithreaded): Renamed from
23061         glthread_recursive_lock_init. Return error code.
23062         (glthread_recursive_lock_lock_multithreaded): Renamed from
23063         glthread_recursive_lock_lock. Return error code.
23064         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23065         glthread_recursive_lock_unlock. Return error code.
23066         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23067         glthread_recursive_lock_destroy. Return error code.
23068         (glthread_once_call): Make static.
23069         (glthread_once_multithreaded): Renamed from glthread_once.
23070         * lib/tls.h: Include <errno.h>.
23071         (glthread_tls_key_init): New macro/function.
23072         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23073         (glthread_tls_set): New macro/function.
23074         (gl_tls_set): Define as wrapper around glthread_tls_set.
23075         (glthread_tls_key_destroy): New macro/function.
23076         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23077         Update function declarations.
23078         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23079         glthread_tls_get.
23080         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23081
23082 2008-08-04  Eric Blake  <ebb9@byu.net>
23083
23084         gnumakefile: use space, not TAB, outside of targets
23085         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23086
23087 2008-08-02  Jim Meyering  <meyering@redhat.com>
23088
23089         getdate.y: avoid locale-dependent date parsing failure
23090         In Turkish locales, getdate would fail to recognize keywords
23091         containing a lowercase "i".  The solution is not to rely on
23092         locale-sensitive case-conversion.
23093         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23094         (lookup_word): Use c_toupper in place of toupper.
23095         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23096         Reported by Vefa Bicakci <bicave@superonline.com> in
23097         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23098         * modules/getdate (Depends-on): Add c-ctype.
23099
23100 2008-08-02  Bruno Haible  <bruno@clisp.org>
23101
23102         * gnulib-tool (func_import): When updating or creating a .gitignore
23103         file, prepend each added line with a slash, and ignore leading slashes
23104         from the existing lines.
23105         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23106
23107 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23108
23109         Portability fix for GNU make 3.79.1.
23110         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23111         versions do not understand.
23112
23113 2008-08-01  Bruno Haible  <bruno@clisp.org>
23114
23115         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23116         * tests/test-isnanf.h (zero): New variable.
23117         (main): Avoid literal -0.0f.
23118         * tests/test-isnand.h (zero): New variable.
23119         (main): Avoid literal -0.0.
23120         * tests/test-isnanl.h (zero): New variable.
23121         (main): Avoid literal -0.0L.
23122         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23123         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23124         -0.0, -0.0L.
23125         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23126         (test_signbitd): Avoid literal -0.0.
23127         (test_signbitl): Avoid literal -0.0L.
23128         * tests/test-ceilf1.c (zero): New variable.
23129         (main): Avoid literal -0.0f.
23130         * tests/test-ceill.c (zero): New variable.
23131         (main): Avoid literal -0.0L.
23132         * tests/test-floorf1.c (zero): New variable.
23133         (main): Avoid literal -0.0f.
23134         * tests/test-floorl.c (zero): New variable.
23135         (main): Avoid literal -0.0L.
23136         * tests/test-roundf1.c (zero): New variable.
23137         (main): Avoid literal -0.0f.
23138         * tests/test-round1.c (zero): New variable.
23139         (main): Avoid literal -0.0.
23140         * tests/test-roundl.c (zero): New variable.
23141         (main): Avoid literal -0.0L.
23142         * tests/test-truncf1.c (zero): New variable.
23143         (main): Avoid literal -0.0f.
23144         * tests/test-trunc1.c (zero): New variable.
23145         (main): Avoid literal -0.0.
23146         * tests/test-truncl.c (zero): New variable.
23147         (main): Avoid literal -0.0L.
23148         * tests/test-frexp.c (zero): New variable.
23149         (main): Avoid literal -0.0.
23150         * tests/test-frexpl.c (zero): New variable.
23151         (main): Avoid literal -0.0L.
23152         * tests/test-ldexpl.c (zero): New variable.
23153         (main): Avoid literal -0.0L.
23154         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23155         (zerod, zerol): New variables.
23156         (test_function): Avoid literals -0.0, -0.0L.
23157         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23158         (zerod, zerol): New variables.
23159         (test_function): Avoid literals -0.0, -0.0L.
23160         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23161         (zerod, zerol): New variables.
23162         (test_function): Avoid literals -0.0, -0.0L.
23163         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23164         (zerod, zerol): New variables.
23165         (test_function): Avoid literals -0.0, -0.0L.
23166         * tests/test-strtod.c (zero): New variable.
23167         (main): Avoid literal -0.0.
23168         Reported by Jonathan C. Patschke <jp@centtech.com>.
23169
23170 2008-07-31  Jim Meyering  <meyering@redhat.com>
23171
23172         sha256.h: correct definition of SHA224_DIGEST_SIZE
23173         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23174         Reported by Paulie Pena IV <paulie4@gmail.com>.
23175         Define as 224 / 8, rather than as a literal.
23176         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23177         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23178         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23179
23180 2008-07-31  Bruno Haible  <bruno@clisp.org>
23181
23182         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23183         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23184         Reported by Jonathan Patschke <jp@centtech.com>.
23185
23186 2008-07-31  Bruno Haible  <bruno@clisp.org>
23187
23188         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23189         Reported by Paolo Bonzini <bonzini@gnu.org>.
23190
23191 2008-07-30  Eric Blake  <ebb9@byu.net>
23192
23193         test-strtod: allow compilation without -lm
23194         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23195         Reported by Dennis Clarke <blastwave@gmail.com>.
23196
23197 2008-07-28  Jim Meyering  <meyering@redhat.com>
23198
23199         bootstrap: work also when there are no .po files in po/
23200         * build-aux/bootstrap (update_po_files): Complete the change
23201         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23202
23203 2008-07-27  Jim Meyering  <meyering@redhat.com>
23204
23205         * users.txt: Add zile.
23206
23207 2008-07-26  Ben Pfaff  <blp@gnu.org>
23208
23209         Add missing dependencies on new m4/exponent[fdl].m4 files.
23210         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23211         * modules/isnand-nolibm: Add m4/exponentd.m4.
23212         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23213         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23214         m4/isnan[fdl].m4, because the macros actually used moved.
23215         Reported by Jim Meyering.
23216
23217 2008-07-14  Ben Pfaff  <blp@gnu.org>
23218
23219         Add isinf module.
23220         * lib/isinf.c: New file.
23221         * lib/math.in.h: Define isinf macro if we have decided to replace
23222         it.
23223         * m4/isinf.m4: New file.
23224         * m4/math_h.m4: Initialize and substitute variables for isinf
23225         module.
23226         * modules/isinf: New file.
23227         * modules/isinf-tests: New file.
23228         * modules/math: Add substitutions for new module.
23229         * tests/test-isinf.c: New file.
23230         * doc/posix-functions/isinf.texi: Mention new module.
23231         * MODULES.html.sh: Mention new module.
23232
23233 2008-07-14  Ben Pfaff  <blp@gnu.org>
23234
23235         Factor out some macros for use by additional modules.
23236         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23237         exponentf.m4.
23238         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23239         exponentd.m4.
23240         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23241         file exponentl.m4.
23242         * m4/exponentf.m4: New file.
23243         * m4/exponentd.m4: New file.
23244         * m4/exponentl.m4: New file.
23245         * modules/isnanf: Use new file m4/exponentf.m4.
23246         * modules/isnand: Use new file m4/exponentd.m4.
23247         * modules/isnanl: Use new file m4/exponentl.m4.
23248
23249 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23250
23251         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23252         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23253         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23254         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23255
23256         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23257         readlink on platforms without PATH_MAX.
23258
23259 2008-07-21  Eric Blake  <ebb9@byu.net>
23260
23261         Warn, not fail, on stale version.
23262         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23263
23264         Don't allow installation with stale devel version number.
23265         * top/GNUmakefile (_is-install-target): New macro.
23266         (_curr-ver): Forbid installation with stale version number.
23267
23268 2008-07-20  Bruno Haible  <bruno@clisp.org>
23269
23270         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23271         TESTS_ENVIRONMENT.
23272         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23273
23274 2008-07-20  Bruno Haible  <bruno@clisp.org>
23275
23276         * lib/c-stack.h (c_stack_action): Add documentation.
23277         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23278
23279 2008-07-20  Bruno Haible  <bruno@clisp.org>
23280
23281         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23282         * modules/readlink (License): Likewise.
23283
23284 2008-07-17  Eric Blake  <ebb9@byu.net>
23285
23286         * modules/c-stack (Link): Fix typo.
23287
23288         Make c-stack use libsigsegv, when available.
23289         * modules/c-stack (Depends-on): Add libsigsegv.
23290         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23291         needed.
23292         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23293         (segv_handler, overflow_handler, c_stack_action)
23294         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23295         implementation when libsigsegv is available, but only when using
23296         the library is necessary.
23297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23298         comment, explaining why XSI check fails on Linux.
23299         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23300         * tests/test-c-stack2.sh: Tweak skip message.
23301         * NEWS: Document new link-time requirements.
23302
23303 2008-07-16  Eric Blake  <ebb9@byu.net>
23304
23305         c-stack: Expose false positives when not using libsigsegv.
23306         * modules/c-stack-tests (Files): Expand test.
23307         * tests/test-c-stack.c (main): Add means to conditionally trigger
23308         non-overflow SIGSEGV.
23309         * tests/test-c-stack2.sh: New file.
23310
23311 2008-07-14  Bruno Haible  <bruno@clisp.org>
23312
23313         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23314         Reported by Eric Blake.
23315
23316 2008-07-14  Sam Steingold  <sds@gnu.org>
23317             Bruno Haible  <bruno@clisp.org>
23318
23319         New module libsigsegv.
23320         * modules/libsigsegv: New file.
23321         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23322         modifications.
23323         * MODULES.html.sh (Signal handling): New section.
23324
23325 2008-07-14  Bruno Haible  <bruno@clisp.org>
23326
23327         * modules/unictype/ctype-* (Description): Add the word "function".
23328         Improves the resulting doc in MODULES.html.
23329
23330 2008-07-12  Ben Pfaff  <blp@gnu.org>
23331
23332         Add longlong module.
23333         * modules/longlong: New file.
23334
23335 2008-07-12  Bruno Haible  <bruno@clisp.org>
23336
23337         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23338         to empty.
23339
23340 2008-07-10  Ben Pfaff  <blp@gnu.org>
23341
23342         Add isnan module.
23343         * doc/posix-functions/isnan.texi: Mention new module.
23344         * lib/math.in.h: Define isnan macro if we have decided to replace
23345         it.
23346         * m4/isnan.m4: New file.
23347         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23348         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23349         also.
23350         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23351         redundancy.
23352         * m4/math_h.m4: Initialize and substitute variables for isnan
23353         module.
23354         * modules/isnan: New file.
23355         * modules/isnan-tests: New file.
23356         * modules/math: Add substitutions for new module.
23357         * tests/test-isnan.c: New file.
23358         * MODULES.html.sh: Mention new module.
23359
23360 2008-07-10  Ben Pfaff  <blp@gnu.org>
23361
23362         Add isnanf module.
23363         * lib/isnanf.m4: New file.
23364         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23365         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23366         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23367         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23368         * modules/isnanf: New file.
23369         * modules/isnanf-tests: New file.
23370         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23371         files.
23372         * tests/test-isnanf-nolibm.c: factored most of its contents into
23373         new file tests/test-isnanf.h.
23374         * tests/test-isnanf.h: New file.
23375         * tests/test-isnanf.c: New file.
23376         * MODULES.html.sh: Mention new module.
23377         * doc/glibc-functions/isnanf.texi: Mention new module.
23378
23379 2008-07-10  Ben Pfaff  <blp@gnu.org>
23380
23381         Add isnand module.
23382         * lib/isnand.h: New file.
23383         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23384         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23385         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23386         functionality also.
23387         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23388         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23389         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23390         * modules/isnand: New file.
23391         * modules/isnand-tests: New file.
23392         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23393         files.
23394         * tests/test-isnand-nolibm.c: factored most of its contents into
23395         new file tests/test-isnand.h.
23396         * tests/test-isnand.h: New file.
23397         * tests/test-isnand.c: New file.
23398         * MODULES.html.sh: Mention new module.
23399
23400 2008-07-10  Ben Pfaff  <blp@gnu.org>
23401
23402         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23403         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23404         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23405         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23406         * modules/isnanf-nolibm: Update references to renamed files.
23407         * modules/isnand-nolibm: Likewise.
23408         * modules/isnanf-nolibm-tests: Likewise.
23409         * modules/isnand-nolibm-tests: Likewise.
23410         * lib/frexp.c: Likewise.
23411         * lib/isfinite.c: Likewise.
23412         * lib/signbitd.c: Likewise.
23413         * lib/signbitf.c: Likewise.
23414         * lib/vasnprintf.c: Likewise.
23415         * tests/test-ceilf1.c: Likewise.
23416         * tests/test-ceilf2.c: Likewise.
23417         * tests/test-floorf1.c: Likewise.
23418         * tests/test-floorf2.c: Likewise.
23419         * tests/test-frexp.c: Likewise.
23420         * tests/test-round1.c: Likewise.
23421         * tests/test-round2.c: Likewise.
23422         * tests/test-roundf1.c: Likewise.
23423         * tests/test-strtod.c: Likewise.
23424         * tests/test-trunc1.c: Likewise.
23425         * tests/test-trunc2.c: Likewise.
23426         * tests/test-truncf1.c: Likewise.
23427         * tests/test-truncf2.c: Likewise.
23428         * NEWS: Mention the renamed header files.
23429
23430 2008-07-11  Jim Meyering  <meyering@redhat.com>
23431
23432         vc-list-files: make the last-resort awk code more portable
23433         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23434         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23435         does not support it.
23436
23437 2008-07-10  Eric Blake  <ebb9@byu.net>
23438
23439         Work with tar's bootstrap.
23440         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23441         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23442         an m4 comment.
23443
23444 2008-07-09  Jim Meyering  <meyering@redhat.com>
23445
23446         posix-shell.m4: fix typo that made this test malfunction
23447         * m4/posix-shell.m4: Remove capitalization in variable name.
23448
23449 2008-07-08  Bruno Haible  <bruno@clisp.org>
23450
23451         * m4/onceonly.m4: Update comments.
23452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23453
23454 2008-07-04  Jim Meyering  <meyering@redhat.com>
23455
23456         * users.txt: Add vc-dwim.
23457         (bison, coreutils): Use the gitweb URL.
23458
23459 2008-07-03  Jim Meyering  <meyering@redhat.com>
23460
23461         * users.txt: Add libffcall.  From Sam Steingold.
23462
23463 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23464
23465         getdate.y: do not ignore TZ with relative day, month or year offset
23466         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23467         relative-date-handling, since otherwise, the latter would clobber the
23468         sole output (an updated Start value) of the tz-handling block.
23469         * tests/test-getdate.c: Tests for the fix
23470
23471 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23472
23473         Recognize 'foo_LIBRARIES += libgnu.a'.
23474         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23475         makefile snippet has already specified an installation location,
23476         also using '+='.
23477
23478 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23479
23480         getdate.y: factor out common actions
23481         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23482         Use them in place of open-coded actions.
23483
23484 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23485
23486         Add self-test for getdate module.
23487         * modules/getdate-tests: New file.
23488         * tests/test-getdate.c: New file.
23489
23490 2008-06-29  Bruno Haible  <bruno@clisp.org>
23491
23492         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23493         .gitignore.
23494         Reported by Sylvain Beucler <beuc@beuc.net>.
23495
23496 2008-06-29  Bruno Haible  <bruno@clisp.org>
23497
23498         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23499         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23500
23501 2008-06-29  Bruno Haible  <bruno@clisp.org>
23502
23503         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23504         EXTRA_DIST.
23505         Reported by Sylvain Beucler <beuc@beuc.net>.
23506
23507 2008-06-26  Jim Meyering  <meyering@redhat.com>
23508
23509         make several modules depend on the "open" module
23510         This provides slightly increased consistency when opening-for-write
23511         the name of a non-directory spelled with a trailing slash.
23512         * modules/chdir-safer: Likewise.
23513         * modules/chown: Likewise.
23514         * modules/clean-temp: Likewise.
23515         * modules/copy-file: Likewise.
23516         * modules/fchdir: Likewise.
23517         * modules/fcntl-safer: Likewise.
23518         * modules/pipe: Likewise.
23519         * modules/utime: Likewise.
23520         Prompted by Eric Blake and Bruno Haible.
23521
23522 2008-06-24  Andreas Schwab  <schwab@suse.de>
23523
23524         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23525         literals can be used as initializers for global variables.
23526
23527 2008-06-23  Eric Blake  <ebb9@byu.net>
23528
23529         Make gnulib-cache.m4 easier to diff.
23530         * gnulib-tool (func_import): Allow newlines when reading cached
23531         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23532
23533 2008-06-23  Bruno Haible  <bruno@clisp.org>
23534
23535         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23536         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23537         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23538         m4/signalblocking.m4.
23539         (gl_PREREQ_SIGACTION): Don't invoke it.
23540         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23541         gl_PREREQ_SIG_HANDLER_H.
23542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23543         Don't check for sigaction here.
23544
23545 2008-06-23  Bruno Haible  <bruno@clisp.org>
23546
23547         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23548         (install_handlers): Don't set the SA_RESETHAND flag.
23549
23550 2008-06-23  Bruno Haible  <bruno@clisp.org>
23551
23552         * m4/sigaction.m4: Comment fixes.
23553         * lib/signal.in.h: Likewise.
23554
23555 2008-06-23  Eric Blake  <ebb9@byu.net>
23556
23557         Fix typo.
23558         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23559
23560         Avoid SA_ namespace.
23561         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23562         Reported by Ralf Wildenhues.
23563
23564         Avoid test failure due to SA_RESTORER.
23565         * tests/test-sigaction.c (SA_MASK): New macro.
23566         (main): Avoid failing due to extension flags being set.
23567         Reported by Jim Meyering.
23568
23569         Revert use of sig-handler.h in sigprocmask.c.
23570         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23571         it requires the existence of struct sigaction.
23572         * lib/sigprocmask.c (handler_t): Restore typedef.
23573         (rpl_signal, old_handlers): Use local type.
23574
23575 2008-06-22  Bruno Haible  <bruno@clisp.org>
23576
23577         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23578         conditionally.
23579         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23580
23581 2008-06-22  Bruno Haible  <bruno@clisp.org>
23582
23583         * doc/posix-functions/siginterrupt.texi: Move note.
23584
23585         * lib/signal.in.h (SA_RESTART): New macro.
23586         * lib/sigaction.c: Update comment.
23587
23588         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23589
23590         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23591         (gl_PREREQ_SIGPROCMASK): Invoke it.
23592         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23593
23594         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23595
23596         * lib/sigprocmask.c: Update a comment.
23597
23598 2008-06-21  Eric Blake  <ebb9@byu.net>
23599
23600         Use sigaction module rather than signal().
23601         * modules/c-stack (Depends-on): Add sigaction.
23602         * modules/fatal-signal (Depends-on): Likewise.
23603         * modules/nanosleep (Depends-on): Likewise.
23604         * modules/sigprocmask (Files): Add sig-handler.h.
23605         * modules/sigaction (Files): Likewise.
23606         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23607         Eggert.
23608         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23609         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23610         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23611         (init_fatal_signals): Likewise.
23612         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23613         (siginterrupt): Delete fallback.
23614         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23615         instead.
23616         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23617         siginterrupt.
23618
23619         New module sigaction, for mingw.
23620         * modules/sigaction: New module...
23621         * modules/sigaction-tests: ...and its test.
23622         * m4/sigaction.m4: New file.
23623         * lib/sigaction.c: Likewise.
23624         * tests/test-sigaction.c: Likewise.
23625         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23626         * modules/signal (Makefile.am): Likewise.
23627         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23628         needed.
23629         * doc/posix-headers/signal.texi (signal.h): Mention provided
23630         types.
23631         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23632         that sigaction is preferable.
23633         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23634         module.
23635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23636         sigaction.
23637
23638         Improve robustness of sigprocmask by overriding signal.
23639         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23640         is in use.
23641         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23642         (SIGKILL, SIGSTOP): Provide fallbacks.
23643         (rpl_signal): Implement.
23644         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23645         signal can be called inside handlers.
23646
23647         Fix nanosleep module on mingw.
23648         * modules/nanosleep (Depends-on): Add sys_select.
23649         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23650
23651         Fix licensing of sigprocmask.
23652         * modules/raise (License): Relicense as LGPL.
23653
23654 2008-06-21  Bruno Haible  <bruno@clisp.org>
23655
23656         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23657         result if it contains question marks.
23658         Reported by Michael Geng <linux@michaelgeng.de>.
23659
23660 2008-06-19  Bruno Haible  <bruno@clisp.org>
23661
23662         Fix CVS-ism.
23663         * doc/gnulib.texi: Include updated-stamp.texi.
23664         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23665         (updated-stamp.texi): New rule.
23666         (gnulib.info): Depend on it.
23667         * doc/.gitignore: Add updated-stamp.texi.
23668         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23669
23670 2008-06-19  Bruno Haible  <bruno@clisp.org>
23671
23672         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23673         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23674
23675 2008-06-19  Eric Blake  <ebb9@byu.net>
23676
23677         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23678         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23679         Reported by Stepan Kasal.
23680
23681 2008-06-18  Bruno Haible  <bruno@clisp.org>
23682
23683         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23684         Reported by Eric Blake.
23685
23686 2008-06-18  Eric Blake  <ebb9@byu.net>
23687
23688         Work around cygwin 1.5.25 strsignal bug.
23689         * tests/test-strsignal.c: Allow for const char *.
23690         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23691
23692 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23693
23694         * users.txt: Update URL to article and add author/date
23695         information.
23696
23697 2008-06-17  Bruno Haible  <bruno@clisp.org>
23698
23699         New macro gl_DISABLE_THREADS.
23700         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23701         if the user did not pass --enable-threads or --disable-threads option.
23702         (gl_DISABLE_THREADS): New macro.
23703         Reported by Eric Blake <ebb9@byu.net>.
23704
23705 2008-06-17  Bruno Haible  <bruno@clisp.org>
23706
23707         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23708         when the macro ignores it.
23709         Based on a patch by Eric Blake <ebb9@byu.net>.
23710
23711 2008-06-17  Bruno Haible  <bruno@clisp.org>
23712
23713         * modules/tls (License): Change to LGPLv2+.
23714         Reported by Eric Blake.
23715
23716 2008-06-17  Eric Blake  <ebb9@byu.net>
23717
23718         Simplify c-stack prerequisites.
23719         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23721         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23722         check.
23723         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23724         <sys/resource.h>.
23725
23726         Move c-stack test into testsuite.
23727         * modules/c-stack-tests: New file.
23728         * lib/c-stack.c [DEBUG]: Move test program...
23729         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23730         fail test if sigaltstack is lacking.
23731         * tests/test-c-stack.sh: New driver file.
23732
23733 2008-06-16  Eric Blake  <ebb9@byu.net>
23734
23735         Use raise module consistently.
23736         * modules/fatal-signal (Depends-on): Add raise.
23737         * modules/sigprocmask (Depends-on): Likewise.
23738         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23739         * lib/sigprocmask.c (sigprocmask): Likewise.
23740         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23741         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23742
23743         Fix compliance bug in sigpending.
23744         * lib/sigprocmask.c (sigpending): Return pending array via
23745         parameter, not return value.
23746
23747 2008-06-14  Eric Blake  <ebb9@byu.net>
23748
23749         Improve obstack-printf test code.
23750         * tests/test-obstack-printf.c (test_function): Fix comment, and
23751         simplify usage of obstack_* in macros.  Add a test for coverage.
23752         Reported by Bruno Haible.
23753
23754 2008-06-14  Bruno Haible  <bruno@clisp.org>
23755
23756         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23757         array size as a constant, not as a const variable.
23758         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23759         AC_USE_SYSTEM_EXTENSIONS.
23760         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23761         Test whether the obstack_printf function actually exists.
23762         * modules/obstack-printf (Depends-on): Add extensions.
23763         (Include): Remove obstack.h.
23764         * modules/obstack-printf-posix (Depends-on): Add extensions.
23765         (Include): Remove obstack.h.
23766
23767 2008-06-13  Eric Blake  <ebb9@byu.net>
23768
23769         Add obstack-printf and obstack-printf-posix modules.
23770         * modules/obstack-printf: New file.
23771         * modules/obstack-printf-posix: Likewise.
23772         * MODULES.html.sh (Misc): Mention them.
23773         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23774         Likewise.
23775         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23776         Likewise.
23777         * modules/stdio (Makefile.am): Accomodate new modules.
23778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23779         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23780         Declare.
23781         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23782         functions.
23783         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23784         (gl_REPLACE_OBSTACK_PRINTF): New macros
23785         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23786         * tests/test-obstack-printf.c: New file.
23787         * modules/obstack-printf-tests: Likewise.
23788         * modules/obstack-printf-posix-tests: Likewise.
23789
23790 2008-06-11  Bruno Haible  <bruno@clisp.org>
23791
23792         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23793         * lib/open.c: Include errno.h.
23794         (open): Fail when attempting to write to a file that has a trailing
23795         slash.
23796         * tests/test-open.c (main): Test against trailing slash bug.
23797         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23798
23799 2008-06-10  Bruno Haible  <bruno@clisp.org>
23800
23801         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23802         for $? to work inside the trap command, with various /bin/sh-s.
23803         * tests/test-vc-list-files-cvs.sh: Likewise.
23804
23805 2008-06-10  Bruno Haible  <bruno@clisp.org>
23806
23807         * lib/acl-internal.h: Don't include gettext.h here.
23808         * lib/set-mode-acl.c: Include gettext.h here.
23809         * lib/copy-acl.c: Likewise.
23810
23811 2008-06-10  Bruno Haible  <bruno@clisp.org>
23812
23813         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23814         * lib/wait-process.c (wait_subprocess): Likewise.
23815         * lib/execute.h (execute): Add termsigp argument.
23816         * lib/execute.c (execute): Likewise.
23817         * lib/csharpcomp.c (compile_csharp_using_pnet,
23818         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23819         * lib/csharpexec.c (execute_csharp_using_pnet,
23820         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23821         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23822         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23823         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23824         is_jikes_present): Update.
23825         * lib/javaexec.c (execute_java_class): Update.
23826         * lib/javaversion.c (execute_and_read_line): Update.
23827         * NEWS: Document the changes.
23828         Reported by Eric Blake.
23829
23830 2008-06-10  Eric Blake  <ebb9@byu.net>
23831
23832         Add missing include.
23833         * tests/test-strstr.c (includes): Add <signal.h>.
23834         * tests/test-strcasestr.c (includes): Likewise.
23835         * tests/test-memmem.c (includes): Likewise.
23836
23837 2008-06-10  Bruno Haible  <bruno@clisp.org>
23838
23839         * lib/wait-process.c (wait_subprocess): Add an assertion.
23840
23841 2008-06-10  Bruno Haible  <bruno@clisp.org>
23842
23843         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23844
23845 2008-06-10  Bruno Haible  <bruno@clisp.org>
23846
23847         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23848         using alarm().
23849         * tests/test-strcasestr.c (main): Likewise.
23850         * tests/test-strstr.c (main): Likewise.
23851
23852 2008-06-09  Bruno Haible  <bruno@clisp.org>
23853
23854         Work around the Solaris 10 ACE ACLs ABI change.
23855         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23856         declare if ACL_NO_TRIVIAL is present.
23857         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23858         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23859         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23860         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23861         define if ACL_NO_TRIVIAL is present.
23862         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23863         and use the current ABI.
23864         (file_has_acl): Use same #if condition as elsewhere.
23865         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23866         in use, and use the current ABI.
23867         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23868         Reported by Jim Meyering.
23869
23870 2008-06-09  Eric Blake  <ebb9@byu.net>
23871
23872         Work around environments that (stupidly) ignore SIGALRM.
23873         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23874         before using alarm().
23875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23877         Reported by Ian Beckwith <ianb@erislabs.net>.
23878
23879         Produce autobuild blurb earlier in log.
23880         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23881
23882 2008-06-09  Jim Meyering  <meyering@redhat.com>
23883         and Ondřej Vašík  <ovasik@redhat.com>
23884
23885         utimens.c: correct kernel bug work-around
23886         Ondřej Vašík found that the invalid return value of 280 indicates
23887         failure, not success, and the kernel bug we're trying to work
23888         around affects not just the utimensat call, but also the fallback
23889         futimens call.
23890         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23891         not success.
23892         [HAVE_FUTIMENS]: Use the same work-around, here.
23893
23894 2008-06-09  Jim Meyering  <meyering@redhat.com>
23895
23896         add more guards around definition of ACE_-related code
23897         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23898         ALLOW and ACE_OWNER are also defined.
23899
23900 2008-06-08  Bruno Haible  <bruno@clisp.org>
23901
23902         * lib/acl-internal.h: Add me as co-author.
23903         * lib/file-has-acl.c: Likewise.
23904         * lib/set-mode-acl.c: Likewise.
23905         * lib/copy-acl.c: Likewise.
23906
23907 2008-06-08  Bruno Haible  <bruno@clisp.org>
23908
23909         Add support for AIX ACLs.
23910         * lib/acl-internal.h (acl_nontrivial): New declaration.
23911         * lib/file-has-acl.c (acl_nontrivial): New function.
23912         (file_has_acl): Add implementation using AIX 4 ACL API.
23913         * lib/set-mode-acl.c (qset_acl): Likewise.
23914         * lib/copy-acl.c (qcopy_acl): Likewise.
23915
23916 2008-06-08  Bruno Haible  <bruno@clisp.org>
23917
23918         Add support for HP-UX ACLs.
23919         * lib/acl-internal.h (acl_nontrivial): New declaration.
23920         * lib/file-has-acl.c (acl_nontrivial): New function.
23921         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23922         * lib/set-mode-acl.c (qset_acl): Likewise.
23923         * lib/copy-acl.c (qcopy_acl): Likewise.
23924
23925 2008-06-08  Bruno Haible  <bruno@clisp.org>
23926
23927         Add support for Cygwin ACLs.
23928         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23929         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23930         the chmod_or_fchmod call.
23931         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23932
23933 2008-06-08  Bruno Haible  <bruno@clisp.org>
23934
23935         Fix bug with setuid modes in Solaris 10+ code.
23936         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23937         succeeded, when the mode contains some special bits.
23938
23939 2008-06-08  Bruno Haible  <bruno@clisp.org>
23940
23941         Add support for Solaris 7..10 ACLs.
23942         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23943         declarations.
23944         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23945         functions.
23946         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23947         * lib/set-mode-acl.c (qset_acl): Likewise.
23948         * lib/copy-acl.c (qcopy_acl): Likewise.
23949
23950 2008-06-08  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23953         declaration.
23954         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23955         (acl_access_nontrivial): Remove MacOS X case.
23956         (file_has_acl): Use acl_extended_nontrivial.
23957         * lib/copy-acl.c (qcopy_acl): Likewise.
23958
23959 2008-06-08  Bruno Haible  <bruno@clisp.org>
23960
23961         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23962
23963 2008-06-08  Jim Meyering  <meyering@redhat.com>
23964
23965         * modules/acl (Maintainer): Add Bruno Haible.
23966
23967 2008-06-07  Bruno Haible  <bruno@clisp.org>
23968
23969         Improve support for Tru64 ACLs.
23970         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23971         ACL on OSF/1.
23972
23973 2008-06-07  Bruno Haible  <bruno@clisp.org>
23974
23975         Add support for MacOS X ACLs.
23976         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23977         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23978         * lib/set-mode-acl.c (qset_acl): Likewise.
23979         * lib/copy-acl.c (qcopy_acl): Likewise.
23980
23981 2008-06-07  Bruno Haible  <bruno@clisp.org>
23982
23983         Fix memory leak introduced on 2008-05-22.
23984         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23985         use.
23986
23987 2008-06-07  Bruno Haible  <bruno@clisp.org>
23988
23989         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23990         to construct an empty ACL.
23991
23992 2008-06-07  Bruno Haible  <bruno@clisp.org>
23993
23994         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23995         precisely.
23996         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23997
23998 2008-06-07  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24001         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24002
24003 2008-06-07  Bruno Haible  <bruno@clisp.org>
24004
24005         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24006         regardless of POSIX.
24007         * doc/posix-functions/_longjmp.texi: Likewise.
24008         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24009         SystemV platform in this case.
24010
24011 2008-06-06  Eric Blake  <ebb9@byu.net>
24012
24013         Document abort() bugs.
24014         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24015
24016         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24017         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24018         sigsetjmp.
24019         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24020         siglongjmp, but only as a macro.
24021         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24022         is obsolete.
24023         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24024
24025         Tweak documentation to cover cygwin argz bugs.
24026         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24027         argz bug fix; no code change needed since no cygwin releases
24028         occurred between the last fix and the bug being tested.
24029         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24030         module and recently fixed cygwin bugs.
24031         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24032         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24033         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24034         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24035         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24036         Likewise.
24037         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24038         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24039         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24040         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24041         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24042         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24043         Likewise.
24044
24045         Avoid gcc warning on cygwin.
24046         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24047         !ACL_NO_TRIVIAL]: Avoid unused variable.
24048
24049 2008-06-05  Eric Blake  <ebb9@byu.net>
24050
24051         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24052         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24053         git-version-gen fails to come up with a version.
24054         Reported by Simon Josefsson.
24055
24056 2008-06-05  Jim Meyering  <meyering@redhat.com>
24057             Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         utimens.c: work around a probable Linux kernel bug
24060         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24061         appears to be a kernel bug that causes utimensat to return 280
24062         instead of 0, indicating success.
24063
24064 2008-06-04  Bruno Haible  <bruno@clisp.org>
24065
24066         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24067         2008-06-01 commit.
24068
24069 2008-06-04  Bruno Haible  <bruno@clisp.org>
24070
24071         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24072         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24073         (file_has_acl): Use it. Save errno afterwards.
24074         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24075
24076 2008-06-03  Bruno Haible  <bruno@clisp.org>
24077
24078         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24079         draft code. Simplify #ifs.
24080         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24081         Put Solaris code after POSIX-draft code. Fix comments regarding
24082         Solaris 10, HP-UX. Mention Cygwin.
24083         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24084
24085 2008-06-03  Eric Blake  <ebb9@byu.net>
24086
24087         Provide fallback for older kernels.
24088         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24089         Provide runtime fallback if kernel lacks support.
24090         Reported by Mike Frysinger.
24091
24092 2008-06-02  Bruno Haible  <bruno@clisp.org>
24093
24094         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24095         it exists.
24096
24097 2008-06-02  Bruno Haible  <bruno@clisp.org>
24098
24099         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24100         * lib/copy-acl.c (qcopy_acl): Update comment.
24101
24102 2008-06-02  Bruno Haible  <bruno@clisp.org>
24103
24104         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24105         like ACL APIs.
24106
24107 2008-06-02  Bruno Haible  <bruno@clisp.org>
24108
24109         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24110         * tests/test-set-mode-acl.sh: Likewise.
24111         * tests/test-copy-acl.sh: Likewise.
24112         * tests/test-copy-file.sh: Likewise.
24113
24114 2008-06-02  Bruno Haible  <bruno@clisp.org>
24115
24116         * tests/test-file-has-acl.sh: Remove unused code.
24117
24118 2008-06-01  Bruno Haible  <bruno@clisp.org>
24119
24120         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24121         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24122         messages.
24123         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24124
24125 2008-06-01  Bruno Haible  <bruno@clisp.org>
24126
24127         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24128         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24129         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24130         APIs.
24131         * modules/acl-tests (configure.ac): Remove tests now contained in
24132         m4/acl.m4.
24133
24134 2008-06-02  Jim Meyering  <meyering@redhat.com>
24135
24136         announce-gen: use a better key-server host name
24137         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24138         it may be more consistently reliable.  Suggested by Werner Koch
24139         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24140
24141 2008-06-01  Bruno Haible  <bruno@clisp.org>
24142
24143         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24144         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24145
24146 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24147
24148         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24149
24150 2008-06-01  Bruno Haible  <bruno@clisp.org>
24151
24152         New ACL tests.
24153         * tests/test-file-has-acl.sh: New file.
24154         * tests/test-file-has-acl.c: New file.
24155         * tests/test-set-mode-acl.sh: New file.
24156         * tests/test-set-mode-acl.c: New file.
24157         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24158         * tests/test-copy-acl.c: New file.
24159         * modules/acl-tests: New file, based on modules/copy-file-tests.
24160         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24161         (Depends-on): Add acl-tests.
24162         (configure.ac): Remove checks.
24163         (Makefile.am): Don't create test-sameacls program here any more.
24164
24165 2008-06-01  Bruno Haible  <bruno@clisp.org>
24166
24167         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24168         * tests/test-sameacls.c: Include progname.h.
24169         (main): Invoke set_program_name. Portability fixes for MacOS X,
24170         Solaris, HP-UX.
24171
24172 2008-06-01  Bruno Haible  <bruno@clisp.org>
24173
24174         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24175         function.
24176         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24177
24178 2008-06-01  Bruno Haible  <bruno@clisp.org>
24179
24180         * modules/rpmatch (Depends-on): Add strdup.
24181
24182 2008-06-01  Bruno Haible  <bruno@clisp.org>
24183
24184         * lib/pipe.c: Include unistd-safer.h.
24185         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24186         * modules/pipe (Depends-on): Add unistd-safer.
24187
24188 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24189
24190         * modules/autobuild (configure.ac): Call AB_INIT.
24191
24192 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24193
24194         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24195         Suggested by Bruno Haible <bruno@clisp.org>.
24196
24197 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24198
24199         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24200         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24201         <bruno@clisp.org>.
24202
24203 2008-05-29  Eric Blake  <ebb9@byu.net>
24204
24205         Prefer new POSIX 200x interfaces over futimesat.
24206         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24207         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24208         when available.
24209         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24210
24211 2008-05-28  Bruno Haible  <bruno@clisp.org>
24212
24213         * modules/stpcpy (License): Change to LGPLv2+.
24214         Requested by David Lutterkort <dlutter@redhat.com>.
24215
24216 2008-05-27  Bruno Haible  <bruno@clisp.org>
24217
24218         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24219         current mingw.
24220         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24221
24222 2008-05-27  Bruno Haible  <bruno@clisp.org>
24223
24224         * modules/iconv_open (Link): New section, from module 'iconv'.
24225         * modules/striconv (Link): Likewise.
24226         * modules/striconveh (Link): Likewise.
24227         * modules/xstriconv (Link): Likewise.
24228         * modules/unicodeio (Link): Likewise.
24229         * modules/propername (Link): Likewise.
24230         Reported by Jim Meyering.
24231
24232 2008-05-26  Jim Meyering  <meyering@redhat.com>
24233
24234         sha256: do not artificially restrict buffer length to be < 2^32
24235         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24236         uint32_t to size_t.
24237         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24238         to match.
24239
24240         avoid unaligned access errors, e.g., on sparc
24241         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24242         direct access through a possibly-unaligned uint64* pointer.
24243         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24244         direct access through a possibly-unaligned uint32* pointer.
24245         Prompted by this patch from Tom "spot" Callaway:
24246         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24247
24248         sha512.c: fix typo in comment
24249         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24250
24251 2008-05-25  Bruno Haible  <bruno@clisp.org>
24252
24253         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24254         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24255         (Makefile.am): Update lib_SOURCES.
24256
24257 2008-05-25  Bruno Haible  <bruno@clisp.org>
24258
24259         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24260
24261 2008-05-25  Jim Meyering  <meyering@redhat.com>
24262
24263         useless-if-before-free: freed expr may have white-space differences
24264         * build-aux/useless-if-before-free: Recognize cases in which the
24265         freed expression differs from the tested one in embedded white
24266         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24267         $1 was used, so we can't make any regexp shy.  Improved tests now
24268         detect this.
24269
24270         useless-if-before-free: accept white space in the expression.
24271         * build-aux/useless-if-before-free: For now, any white space
24272         in the expression must be identical in the free argument.
24273
24274         useless-if-before-free: efficiency tweak
24275         * build-aux/useless-if-before-free: Make the expression-matching
24276         regexp "shy".
24277         Make the *outer* regexp shy, not the expr-matching one.
24278
24279         update code-in-comment to accept cast of free arg
24280         * build-aux/useless-if-before-free: Update regexp.
24281
24282 2008-05-25  Bruno Haible  <bruno@clisp.org>
24283
24284         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24285         * modules/copy-file-tests (Files, Makefile.am): Update.
24286         * tests/test-copy-file.c (func_test_copy): Update.
24287
24288 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24289
24290         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24291
24292 2008-05-23  Bruno Haible  <bruno@clisp.org>
24293
24294         Improve support for ACLs on OSF/1.
24295         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24296         Remove fallback for unknown flavors of ACLs.
24297
24298 2008-05-22  Bruno Haible  <bruno@clisp.org>
24299
24300         Add support for ACLs on OSF/1.
24301         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24302         replacements.
24303         (acl_free_text): New macro fallback.
24304         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24305         acl_free.
24306         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24307         acl_free_text function. Require AC_C_INLINE.
24308
24309 2008-05-22  Bruno Haible  <bruno@clisp.org>
24310
24311         Make copy_acl work on MacOS X 10.5.
24312         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24313         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24314         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24315         If MODE_INSIDE_ACL, don't assume that every system has the same text
24316         representation for ACLs as FreeBSD.
24317         * lib/copy-acl.c (copy_acl): Add support for platforms with
24318         !MODE_INSIDE_ACL.
24319         * lib/file-has-acl.c (file_has_acl): Likewise.
24320         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24321         FreeBSD, MacOS X, or IRIX, respectively.
24322
24323 2008-05-22  Bruno Haible  <bruno@clisp.org>
24324
24325         * lib/acl.h: Don't include <sys/acl.h>.
24326         (GETACLCNT): Move fallback to lib/acl-internal.h.
24327         * lib/acl-internal.h: Include <sys/acl.h> here.
24328         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24329
24330 2008-05-22  Bruno Haible  <bruno@clisp.org>
24331
24332         Split off copy_acl function to separate file.
24333         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24334         * lib/acl.c (copy_acl): Moved function to separate file.
24335         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24336         * modules/acl (Files): Add lib/copy-acl.c.
24337         (Makefiles.am): Augment lib_SOURCES.
24338
24339 2008-05-22  Bruno Haible  <bruno@clisp.org>
24340
24341         * modules/copy-file-tests: New file.
24342         * tests/test-copy-file.sh: New file.
24343         * tests/test-copy-file.c: New file.
24344         * tests/test-copy-file-sameacls.c: New file.
24345
24346 2008-05-22  Eric Blake  <ebb9@byu.net>
24347
24348         Avoid gcc warning.
24349         * tests/test-memcmp.c (main): Pass NULL indirectly.
24350
24351 2008-05-21  Bruno Haible  <bruno@clisp.org>
24352
24353         Add reference doc about ACLs.
24354         * doc/acl-resources.txt: New file.
24355         * doc/acl-cygwin.txt: New file.
24356
24357 2008-05-21  Bruno Haible  <bruno@clisp.org>
24358
24359         Avoid one more warning from gcc.
24360         * lib/vasnprintf.c (IF_LINT): Update comments.
24361         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24362
24363 2008-05-21  Jim Meyering  <meyering@redhat.com>
24364
24365         avoid a warning from gcc
24366         * lib/vasnprintf.c (IF_LINT): Define.
24367         (scale10_round_decimal_long_double):
24368         Use it to avoid a "may be used uninitialized" warning.
24369         (scale10_round_decimal_double): Likewise.
24370
24371 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24372
24373         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24374         declared.
24375
24376 2008-05-20  Bruno Haible  <bruno@clisp.org>
24377
24378         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24379         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24380
24381 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24382
24383         * modules/memcmp-tests: New file.
24384         * tests/test-memcmp.c: New file.
24385
24386 2008-05-19  Bruno Haible  <bruno@clisp.org>
24387
24388         * modules/propername (Notice, configure.ac): Put quoted "..." into
24389         --keyword option.
24390         * lib/propername.h: Update comments accordingly.
24391         Reported by Eric Blake.
24392
24393 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24394
24395         * modules/getpass-gnu (Depends-on): Add fseeko.
24396
24397 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24398
24399         * modules/base64-tests: New file.
24400
24401 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24402
24403         * lib/base64.c (base64_decode_ctx): If a decode context structure
24404         was passed in use it to ignore newlines.  If a context structure
24405         was _not_ passed in, continue to treat newlines as garbage (this
24406         is the historical behavior).  Formerly base64_decode.
24407         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24408         takes a decode context structure.
24409         * lib/base64.h (base64_decode): Macro for four-argument calls.
24410         (base64_decode_alloc): Likewise.
24411         * lib/base64.c (base64_decode_ctx): If a decode context structure
24412         was passed in use it to ignore newlines.  If a context structure
24413         was _not_ passed in, continue to treat newlines as garbage (this
24414         is the historical behavior).  Formerly base64_decode.
24415         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24416         takes a decode context structure.
24417         * lib/base64.h (base64_decode): Macro for four-argument calls.
24418         (base64_decode_alloc): Likewise.
24419
24420 2008-05-19  Jim Meyering  <meyering@redhat.com>
24421
24422         avoid a warning from gcc
24423         * lib/trim.c (IF_LINT): Define.
24424         (trim2): Use it to avoid a "may be used uninitialized" warning.
24425
24426         Fix doc typo.
24427         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24428
24429 2008-05-19  Bruno Haible  <bruno@clisp.org>
24430
24431         * doc/glibc-functions/getpass.texi: Document limits of other
24432         implementations.
24433
24434 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24435             Bruno Haible <bruno@clisp.org>
24436
24437         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24438
24439 2008-05-18  Bruno Haible  <bruno@clisp.org>
24440
24441         * modules/propername: New file, from GNU gettext.
24442         * lib/propername.h: New file, from GNU gettext.
24443         * lib/propername.c: New file, from GNU gettext.
24444         * MODULES.html.sh (Internationalization functions): Add propername.
24445
24446 2008-05-16  Jim Meyering  <meyering@redhat.com>
24447             Bruno Haible  <bruno@clisp.org>
24448
24449         Avoid some warnings from "gcc -Wshadow".
24450         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24451
24452 2008-05-15  Eric Blake  <ebb9@byu.net>
24453
24454         Extend previous patch to cygwin 1.7.0.
24455         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24456         fast implementation in cygwin >= 1.7.0.
24457         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24459
24460 2008-05-15  Bruno Haible  <bruno@clisp.org>
24461
24462         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24463         implementation in glibc >= 2.9.
24464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24466
24467 2008-05-15  Bruno Haible  <bruno@clisp.org>
24468
24469         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24470         (Unicode string functions): Add unilbrk/*.
24471         Reported by Karl Berry.
24472
24473 2008-05-15  Eric Blake  <ebb9@byu.net>
24474
24475         Fix violation of <stdbool.h> replacement in regex.
24476         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24477         * lib/regexec.c (re_search_internal): Likewise.
24478         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24479
24480 2008-05-15  Jim Meyering  <meyering@redhat.com>
24481
24482         avoid distracting test output when git or cvs is not found
24483         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24484         * tests/test-vc-list-files-git.sh: Likewise.
24485
24486 2008-05-15  Eric Blake  <ebb9@byu.net>
24487
24488         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24489         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24490         glibc version.
24491         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24492         * doc/posix-functions/strstr.texi (strstr): Likewise.
24493         * lib/str-two-way.h (MAX): Sychronize with glibc.
24494
24495 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24496
24497         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24498         opr.ctx_type.
24499         (calc_first): Initialize constraint field.
24500         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24501         Fix grammar.
24502         (duplicate_node): Merge constraint field for all node types.
24503         (calc_eclosure_iter): Look at constraint field for all node types.
24504         * lib/regex_internal.c (create_cd_newstate): Don't look at
24505         opr.ctx_type.
24506
24507 2008-05-14  Bruno Haible  <bruno@clisp.org>
24508
24509         Help GCC to do better code generation.
24510         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24511         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24512         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24513         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24514         Declare with attribute 'malloc' if supported.
24515
24516 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24517
24518         use "echo STR|wc -c" rather than unportable "expr length STR"
24519         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24520         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24521
24522 2008-05-14  Jim Meyering  <meyering@redhat.com>
24523
24524         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24525         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24526         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24527         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24528         via Collin Lasse.
24529
24530 2008-05-14  Eric Blake  <ebb9@byu.net>
24531
24532         Avoid quadratic growth in gl_LIBSOURCES.
24533         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24534         Suggested by Bruno Haible.
24535
24536         Test xmemdup0.
24537         * modules/xmemdup0-tests: New file.
24538         * tests/test-xmemdup0.c: Likewise.
24539
24540 2008-05-13  Eric Blake  <ebb9@byu.net>
24541
24542         Split xmemdup0 into its own module.
24543         * modules/xmemdup0: New file.
24544         * lib/xmemdup0.h: Likewise.
24545         * lib/xmemdup0.c: Likewise.
24546         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24547         * lib/xalloc.h (xmemdup0): Remove.
24548         * lib/xmalloc.c (xmemdup0): Likewise.
24549
24550 2008-05-13  Eric Blake  <ebb9@byu.net>
24551             Bruno Haible  <bruno@clisp.org>
24552
24553         Reduce number of forks required during autoconf.
24554         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24555         and gl_LIBSOURCES_DIR.
24556         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24557         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24558         m4_syscmd per file.
24559         <m4_foreach_w>: Move...
24560         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24561
24562 2008-05-13  Eric Blake  <ebb9@byu.net>
24563
24564         * gnulib-tool: Fix various comment typos.
24565
24566 2008-05-12  Bruno Haible  <bruno@clisp.org>
24567
24568         Tailor the linebreaking algorithm.
24569         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24570
24571 2008-05-12  Bruno Haible  <bruno@clisp.org>
24572
24573         Update to Unicode 5.0.0.
24574         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24575         LBP_JV, LBP_JT. Redistribute values.
24576         (unilbrk_table): Change size.
24577         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24578         Unicode TR#14 rev. 22.
24579         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24580         LBP_JV, LBP_JT. Redistribute values.
24581         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24582         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24583         Update.
24584         * lib/unilbrk/lbrkprop1.h: Regenerated.
24585         * lib/unilbrk/lbrkprop2.h: Regenerated.
24586         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24587         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24588         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24589         Likewise.
24590         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24591         Likewise.
24592         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24593         result.
24594         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24595         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24596         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24597         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24598         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24599         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24600
24601 2008-05-11  Bruno Haible  <bruno@clisp.org>
24602
24603         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24604
24605 2008-05-11  Bruno Haible  <bruno@clisp.org>
24606
24607         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24608         * modules/unilbrk/gen-lbrk: New file.
24609
24610 2008-05-11  Bruno Haible  <bruno@clisp.org>
24611
24612         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24613         * m4/sha512.m4 (gl_SHA512): Likewise.
24614
24615 2008-05-11  Jim Meyering  <meyering@redhat.com>
24616
24617         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24618         * modules/crypto/sha256: New file.
24619         * modules/crypto/sha512: Likewise.
24620         * lib/sha256.c: Likewise.
24621         * lib/sha256.h: Likewise.
24622         * lib/sha512.c: Likewise.
24623         * lib/sha512.h: Likewise.
24624         * lib/u64.h: Likewise.
24625         * m4/sha256.m4: Likewise.
24626         * m4/sha512.m4: Likewise.
24627         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24628
24629 2008-05-10  Bruno Haible  <bruno@clisp.org>
24630
24631         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24632         (Input/Output <stdio.h>): Add xprintf.
24633         (Signal handling <signal.h>): Add strsignal.
24634         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24635         (Core language properties): Add func.
24636         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24637         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24638         strings.
24639         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24640         (Input/output): New section.
24641         (File system functions): Add openat-die, stat-macros.
24642         (Networking functions): Add sockets.
24643         (Unicode string functions): Add unictype/*.
24644         (Support for building libraries and executables): Add gperf.
24645         (Support for building documentation): Add agpl-3.0.
24646         (Misc): Add nocrash.
24647
24648 2008-05-10  Bruno Haible  <bruno@clisp.org>
24649
24650         * modules/unictype/gen-ctype: New file.
24651
24652 2008-05-10  Jim Meyering  <meyering@redhat.com>
24653
24654         Make chdir-safer.c more efficient on a system with no symlinks.
24655         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24656         also if ELOOP is zero.  Suggested by Bruno Haible.
24657
24658         Make chdir-safer.c slightly safer.
24659         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24660         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24661
24662         Avoid compile failure on systems without ELOOP (like mingw).
24663         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24664         Reported by Bruno Haible.
24665
24666 2008-05-10  Bruno Haible  <bruno@clisp.org>
24667
24668         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24669         (is_utf8_encoding): Use a case-insensitive comparison.
24670         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24671         streq.
24672
24673 2008-05-10  Bruno Haible  <bruno@clisp.org>
24674
24675         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24676         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24677         * lib/unilbrk/ulc-common.h (iconv_string_length,
24678         iconv_string_keeping_offsets): Remove declarations.
24679         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24680         Don't include <iconv.h>, streq.h, xsize.h.
24681         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24682         conversion.
24683         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24684         <iconv.h>, streq.h, xsize.h.
24685         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24686         conversion.
24687         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24688         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24689         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24690         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24691
24692 2008-05-10  Bruno Haible  <bruno@clisp.org>
24693
24694         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24695         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24696
24697         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24698         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24699
24700         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24701         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24702
24703         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24704         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24705
24706         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24707         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24708
24709         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24710         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24711
24712         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24713         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24714
24715         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24716         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24717
24718 2008-05-10  Bruno Haible  <bruno@clisp.org>
24719
24720         Split up 'linebreak' module.
24721         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24722         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24723         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24724         modifications.
24725         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24726         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24727         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24728         lib/linebreak.c.
24729         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24730         lib/linebreak.c.
24731         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24732         lib/linebreak.c.
24733         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24734         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24735         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24736         lib/linebreak.c.
24737         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24738         lib/linebreak.c.
24739         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24740         lib/linebreak.c.
24741         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24742         lib/linebreak.c.
24743         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24744         lib/linebreak.c.
24745         * modules/unilbrk/base: New file.
24746         * modules/unilbrk/tables: New file.
24747         * modules/unilbrk/u8-possible-linebreaks: New file.
24748         * modules/unilbrk/u16-possible-linebreaks: New file.
24749         * modules/unilbrk/u32-possible-linebreaks: New file.
24750         * modules/unilbrk/ulc-common: New file.
24751         * modules/unilbrk/ulc-possible-linebreaks: New file.
24752         * modules/unilbrk/u8-width-linebreaks: New file.
24753         * modules/unilbrk/u16-width-linebreaks: New file.
24754         * modules/unilbrk/u32-width-linebreaks: New file.
24755         * modules/unilbrk/ulc-width-linebreaks: New file.
24756         * lib/linebreak.h: Remove file.
24757         * lib/linebreak.c: Remove file.
24758         * m4/linebreak.m4: Remove file.
24759         * modules/linebreak: Remove file.
24760         * NEWS: Mention the changes.
24761
24762 2008-05-09  Eric Blake  <ebb9@byu.net>
24763
24764         Add xmemdup0.
24765         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24766         implementation.
24767         * lib/xmalloc.c (xmemdup0): New C implementation.
24768
24769 2008-05-08  Bruno Haible  <bruno@clisp.org>
24770
24771         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24772
24773 2008-05-07  Eric Blake  <ebb9@byu.net>
24774
24775         Support cross-compilation of <wctype.h>.
24776         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24777         AC_CACHE_CHECK.
24778
24779 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24780
24781         * build-aux/vc-list-files: Add support for bzr.
24782
24783 2008-05-03  Jim Meyering  <meyering@redhat.com>
24784
24785         avoid failed assertion with tight malloc
24786         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24787
24788 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24789
24790         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24791         are needed from arpa/inet.h.
24792         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24793         Reported by Bruno Haible.
24794
24795 2008-05-02  Jim Meyering  <meyering@redhat.com>
24796
24797         avoid compilation error on FreeBSD 6
24798         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24799
24800 2008-05-01  Jim Meyering  <meyering@redhat.com>
24801
24802         useless-if-before-free: correct --help's exit status description
24803         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24804         for one or more matches, etc.  Reported by Bruno Haible.
24805
24806         vc-list-files: make the stand-alone gnulib test work
24807         * modules/vc-list-files-tests (configure.ac):
24808         Define and AC_SUBST abs_aux_dir.
24809         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24810         $(abs_top_srcdir) to each script and having each of them
24811         duplicate the work of setting PATH, set PATH here, using
24812         the new variable, abs_aux_dir instead.
24813         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24814         * tests/test-vc-list-files-git.sh: Likewise.
24815         Reported by Bruno Haible.
24816
24817 2008-05-01  Bruno Haible  <bruno@clisp.org>
24818
24819         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24820         reallocation. Rename 'done' to 'found_delimiter'.
24821
24822 2008-05-01  Jim Meyering  <meyering@redhat.com>
24823
24824         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24825         * build-aux/vc-list-files: Use `...`, not $(...).
24826
24827 2008-04-30  Jim Meyering  <meyering@redhat.com>
24828
24829         add tests for vc-list-files
24830         * modules/vc-list-files-tests: New module.
24831         * tests/test-vc-list-files-cvs.sh: New file.
24832         * tests/test-vc-list-files-git.sh: New file.
24833
24834         avoid a warning from gcc
24835         * lib/getndelim2.c (IF_LINT): Define.
24836         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24837
24838         vc-list-files: work properly with build-aux/cvsu, too
24839         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24840         to all cvs-based clauses.
24841
24842         vc-list-files: work properly in the CVS+awk case, too
24843         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24844
24845         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24846         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24847         take more than one file argument, so .  Add quotes, just in case $dir
24848         ever contains a shell meta-character.  Prompted by Soren Hansen in
24849         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24850
24851 2008-04-29  Eric Blake  <ebb9@byu.net>
24852
24853         Optimize getndelim2 to use block operations when possible.
24854         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24855         freadseek, and memchr2.
24856         * lib/getndelim2.c (getndelim2): Use them for block reads.
24857
24858 2008-04-29  Bruno Haible  <bruno@clisp.org>
24859
24860         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24861         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24862         * modules/inet_ntop (Depends-on): Add extensions.
24863         * modules/inet_pton (Depends-on): Likewise.
24864         Reported by Simon Josefsson.
24865
24866 2008-04-29  Jim Meyering  <meyering@redhat.com>
24867
24868         When the is more than one match in a block, match all of them.
24869         * build-aux/useless-if-before-free: Iterate through each block
24870         until there are no more matches.
24871
24872         Fix broken useless-if-before-free script.
24873         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24874         the expression to match cast of argument to free-like function.
24875
24876 2008-04-29  Eric Blake  <ebb9@byu.net>
24877
24878         Use new header.
24879         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24880
24881 2008-04-29  Jim Meyering  <meyering@redhat.com>
24882
24883         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24884         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24885         by gnulib to exist and to declare e.g., inet_ntop.
24886         Don't include "inet_ntop.h", now removed.
24887
24888         * m4/arpa_inet_h.m4: Remove trailing blanks.
24889
24890 2008-04-29  Eric Blake  <ebb9@byu.net>
24891
24892         Silence valgrind on safe reads beyond potential array bounds.
24893         * lib/rawmemchr.valgrind: New file.
24894         * lib/strchrnul.valgrind: Likewise.
24895         * modules/rawmemchr (Files): Distribute new file.
24896         * modules/strchrnul (Files): Likewise.
24897         Suggested by Bruno Haible.
24898
24899 2008-04-29  Bruno Haible  <bruno@clisp.org>
24900
24901         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24902         (inet_ntop, inet_pton): Change portability warning's wording.
24903         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24904         Invoke gl_CHECK_NEXT_HEADERS.
24905         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24906         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24907         set ARPA_INET_H.
24908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24909         * modules/arpa_inet (Description): No longer only for systems that
24910         lack it.
24911         (Depends-on): Add include_next.
24912         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24913         HAVE_ARPA_INET_H.
24914
24915 2008-04-29  Jim Meyering  <meyering@redhat.com>
24916
24917         * modules/mkdir (License): Re-license as LGPLv2+.
24918
24919 2008-04-29  Bruno Haible  <bruno@clisp.org>
24920
24921         * modules/rawmemchr (Maintainer): Set to Eric.
24922         * modules/strchrnul (Maintainer): Likewise.
24923
24924 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24925
24926         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24927         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24928
24929         * modules/arpa_inet (arpa/inet.h): Use them.
24930
24931 2008-04-28  Eric Blake  <ebb9@byu.net>
24932
24933         Test getndelim2.
24934         * modules/getndelim2-tests: New file.
24935         * tests/test-getndelim2.c: Likewise.
24936         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24937         stream.
24938         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24939
24940         * MODULES.html.sh: Document new module.
24941
24942 2008-04-20  Bruno Haible  <bruno@clisp.org>
24943
24944         * lib/c-stack.c (die): Use raise.
24945         * modules/c-stack (Depends-on): Add raise.
24946
24947 2008-04-28  Bruno Haible  <bruno@clisp.org>
24948
24949         Expect rpmatch to be declared.
24950         * lib/yesno.c (rpmatch): Remove declaration.
24951
24952         Declare rpmatch.
24953         * lib/stdlib.in.h (rpmatch): New declaration.
24954         * lib/rpmatch.c: Include <stdlib.h> first.
24955         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24956         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24958         HAVE_RPMATCH.
24959         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24961         (Include): Set to <stdlib.h>.
24962         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24963         HAVE_RPMATCH.
24964         * NEWS: Document the change.
24965
24966 2008-04-28  Bruno Haible  <bruno@clisp.org>
24967
24968         Change rpmatch to use nl_langinfo when appropriate.
24969         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24970         (N_): New macro.
24971         (localized_pattern): New function/macro.
24972         (try): Remove match, nomatch arguments. Copy the pattern into safe
24973         memory before caching it.
24974         (rpmatch): Use localized_pattern. Add translator comments.
24975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24976         Suggested by Eric Blake.
24977         * modules/rpmatch (Depends-on): Add stdbool.
24978
24979 2008-04-28  Eric Blake  <ebb9@byu.net>
24980
24981         Add rawmemchr module, matching glibc.
24982         * modules/string (Makefile.am): New indicator.
24983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24984         * lib/string.in.h (rawmemchr): Declare when appropriate.
24985         * modules/rawmemchr: New file.
24986         * m4/rawmemchr.m4: Likewise.
24987         * lib/rawmemchr.c: Likewise.
24988         * modules/rawmemchr-tests: Likewise.
24989         * tests/test-rawmemchr.c: Likewise.
24990         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24991         module.
24992         * modules/strchrnul (Depends-on): Add rawmemchr.
24993         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24994
24995         Whitespace cleanup.
24996         * tests/test-strchrnul.c: Reindent.
24997         * lib/strchrnul.c: Likewise.
24998
24999         Optimize and test strchrnul.
25000         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25001         * modules/strchrnul-tests: New file.
25002         * tests/test-strchrnul.c: Likewise.
25003
25004         Remove intprops dependency.
25005         * modules/memchr (Depends-on): Remove intprops.
25006         * modules/memrchr (Depends-on): Likewise.
25007         * modules/memchr2 (Depends-on): Likewise.
25008         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25009         * lib/memrchr.c (__memrchr): Likewise.
25010         * lib/memrchr2.c (memchr2): Likewise.
25011         Reported by Simon Josefsson.
25012
25013 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25014
25015         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25016         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25017
25018 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25019
25020         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25021
25022         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25023
25024         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25025
25026         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25027         declarations.
25028         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25029
25030         * m4/inet_pton.m4: Don't check for header files.
25031
25032         * m4/inet_ntop.m4: Don't check for header files.
25033
25034 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25035
25036         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25037         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25038         trigger for cygwin).
25039         Reported by Bruno Haible  <bruno@clisp.org>.
25040
25041 2008-04-28  Bruno Haible  <bruno@clisp.org>
25042
25043         * doc/posix-functions/strdup.texi: Mention mingw problem.
25044
25045 2008-04-27  Bruno Haible  <bruno@clisp.org>
25046
25047         * modules/stat-time-tests (Depends-on): Add sleep.
25048         * tests/test-stat-time.c (force_unlink): New function.
25049         (cleanup): Use it.
25050         (test_mtime): Remove the ctime related tests.
25051         (test_ctime): New function, containing the ctime related tests.
25052         (main): Call test_ctime, except on native Windows platforms.
25053
25054 2008-04-27  Bruno Haible  <bruno@clisp.org>
25055
25056         * lib/rpmatch.c (rpmatch): Add some comments.
25057         Reported by James Youngman <jay@gnu.org>.
25058
25059 2008-04-27  Bruno Haible  <bruno@clisp.org>
25060
25061         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25062         quiet NaNs.
25063
25064 2008-04-27  Bruno Haible  <bruno@clisp.org>
25065
25066         Make test-yesno.sh work on mingw.
25067         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25068         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25069         (main): Set stdin to binary mode.
25070         * modules/yesno-tests (Depends-on): Add binary-io.
25071
25072 2008-04-27  Bruno Haible  <bruno@clisp.org>
25073
25074         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25075         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25076         argument that lie outside the IEEE 854 domain.
25077         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25078         (gl_ISFINITE): Use it.
25079         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25080
25081 2008-04-27  Bruno Haible  <bruno@clisp.org>
25082
25083         Allow local renaming in config.h.
25084         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25085
25086 2008-04-27  Bruno Haible  <bruno@clisp.org>
25087
25088         * lib/memchr.c (__memchr): Change type of 'i'.
25089         * lib/memchr2.c (memchr2): Likewise.
25090
25091 2008-04-26  Eric Blake  <ebb9@byu.net>
25092         and Bruno Haible  <bruno@clisp.org>
25093
25094         Optimize and test memrchr.
25095         * modules/memrchr (Depends-on): Add intprops.
25096         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25097         * modules/memrchr-tests: New file.
25098         * tests/test-memrchr.c: New file.
25099
25100 2008-04-26  Bruno Haible  <bruno@clisp.org>
25101
25102         Add tentative support for DragonFly BSD.
25103         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25104         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25105         fp.
25106         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25107         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25108         * lib/fpurge.c (fpurge): Likewise.
25109         * lib/freadable.c (freaadable): Likewise.
25110         * lib/freadahead.c (freadahead): Likewise.
25111         * lib/freading.c (freading): Likewise.
25112         * lib/freadptr.c (freadptr): Likewise.
25113         * lib/freadseek.c (freadptrinc): Likewise.
25114         * lib/fseeko.c (fseeko): Likewise.
25115         * lib/fseterr.c (fseterr): Likewise.
25116         * lib/fwritable.c (fwritable): Likewise.
25117         * lib/fwriting.c (fwriting): Likewise.
25118
25119 2008-04-26  Bruno Haible  <bruno@clisp.org>
25120
25121         * lib/stdio-impl.h: New file.
25122         * lib/fbufmode.c: Include stdio-impl.h.
25123         (fbufmode): Use fp_, remove redundant #defines.
25124         * lib/fflush.c: Include stdio-impl.h.
25125         (clear_ungetc_buffer): Remove redundant #defines.
25126         * lib/fpurge.c: Include stdio-impl.h.
25127         (fpurge): Remove redundant #defines.
25128         * lib/freadable.c: Include stdio-impl.h.
25129         (freadable): Remove redundant #defines.
25130         * lib/freadahead.c: Include stdio-impl.h.
25131         (freadahead): Remove redundant #defines.
25132         * lib/freading.c: Include stdio-impl.h.
25133         (freading): Remove redundant #defines.
25134         * lib/freadptr.c: Include stdio-impl.h.
25135         (freadptr): Remove redundant #defines.
25136         * lib/freadseek.c: Include stdio-impl.h.
25137         (freadptrinc): Remove redundant #defines.
25138         * lib/fseeko.c: Include stdio-impl.h.
25139         (rpl_fseeko): Remove redundant #defines.
25140         * lib/fseterr.c: Include stdio-impl.h.
25141         (fseterr): Remove redundant #defines.
25142         * lib/fwritable.c: Include stdio-impl.h.
25143         (fwritable: Remove redundant #defines.
25144         * lib/fwriting.c: Include stdio-impl.h.
25145         (fwriting): Remove redundant #defines.
25146         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25147         * modules/fflush (Files): Likewise.
25148         * modules/fpurge (Files): Likewise.
25149         * modules/freadable (Files): Likewise.
25150         * modules/freadahead (Files): Likewise.
25151         * modules/freading (Files): Likewise.
25152         * modules/freadptr (Files): Likewise.
25153         * modules/freadseek (Files): Likewise.
25154         * modules/fseeko (Files): Likewise.
25155         * modules/fseterr (Files): Likewise.
25156         * modules/fwritable (Files): Likewise.
25157         * modules/fwriting (Files): Likewise.
25158
25159 2008-04-26  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25162         restore_seek_optimization, update_fpos_cache): New functions, extracted
25163         from rpl_fflush.
25164         (rpl_fflush): Use them.
25165         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25166         (gl_REPLACE_FFLUSH): Use it.
25167
25168 2008-04-26  Bruno Haible  <bruno@clisp.org>
25169
25170         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25171         on Solaris.
25172         * tests/test-xstrtoimax.sh: Likewise.
25173         * tests/test-xstrtoumax.sh: Likewise.
25174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25175
25176 2008-04-26  Bruno Haible  <bruno@clisp.org>
25177
25178         * modules/memchr-tests: New file.
25179         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25180
25181 2008-04-26  Eric Blake  <ebb9@byu.net>
25182             Bruno Haible  <bruno@clisp.org>
25183
25184         * lib/memchr.c: Include intprops.h.
25185         (__memchr): Optimize parallel detection of matching bytes. Rename local
25186         variables. Add explanatory comments.
25187
25188 2008-04-26  Bruno Haible  <bruno@clisp.org>
25189
25190         Fix module 'memchr', broken since 2000-10-28.
25191         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25192
25193 2008-04-26  Bruno Haible  <bruno@clisp.org>
25194
25195         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25196         comments.
25197
25198 2008-04-25  Eric Blake  <ebb9@byu.net>
25199
25200         Use native fstatat on cygwin 1.7.0.
25201         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25202         first.
25203
25204 2008-04-23  Eric Blake  <ebb9@byu.net>
25205
25206         Improve memchr2 performance.
25207         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25208         NUL bytes.
25209         * modules/memchr2 (Depends-on): Use intprops.h.
25210
25211 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25212
25213         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25214         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25215         <blp@cs.stanford.edu>.
25216
25217 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25218
25219         * lib/arpa_inet.in.h: New file.
25220
25221         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25222         (Makefile.am): Sed in substitute header file.
25223
25224         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25225         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25226
25227         * modules/inet_ntop (configure.ac): Use
25228         gl_ARPA_INET_MODULE_INDICATOR.
25229
25230         * modules/inet_pton (configure.ac): Use
25231         gl_ARPA_INET_MODULE_INDICATOR.
25232
25233 2008-04-22  Jim Meyering  <meyering@redhat.com>
25234
25235         * modules/verify (License): Re-license as LGPLv2+.
25236
25237 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25238
25239         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25240         parameter to void* as per POSIX standard (MinGW uses char*).
25241
25242 2008-04-21  Bruno Haible  <bruno@clisp.org>
25243
25244         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25246         Define to replacements if REPLACE_ISWCNTRL is 1.
25247         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25248         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25249         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25250         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25251         what it fixes.
25252         * doc/posix-functions/iswalpha.texi: Likewise.
25253         * doc/posix-functions/iswblank.texi: Likewise.
25254         * doc/posix-functions/iswcntrl.texi: Likewise.
25255         * doc/posix-functions/iswdigit.texi: Likewise.
25256         * doc/posix-functions/iswgraph.texi: Likewise.
25257         * doc/posix-functions/iswlower.texi: Likewise.
25258         * doc/posix-functions/iswprint.texi: Likewise.
25259         * doc/posix-functions/iswpunct.texi: Likewise.
25260         * doc/posix-functions/iswspace.texi: Likewise.
25261         * doc/posix-functions/iswupper.texi: Likewise.
25262         * doc/posix-functions/iswxdigit.texi: Likewise.
25263         Reported by Alain Guibert.
25264
25265 2008-04-21  Bruno Haible  <bruno@clisp.org>
25266
25267         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25268         Patch by Alain Guibert.
25269
25270 2008-04-21  Bruno Haible  <bruno@clisp.org>
25271
25272         Fix test failures on mingw.
25273         * tests/test-xstrtol.c (print_no_progname): New function.
25274         (main): Install it in error_print_progname hook.
25275         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25276         * tests/test-xstrtoimax.sh: Likewise.
25277         * tests/test-xstrtoumax.sh: Likewise.
25278
25279 2008-04-21  Bruno Haible  <bruno@clisp.org>
25280
25281         Fix test failure on mingw.
25282         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25283
25284 2008-04-21  Bruno Haible  <bruno@clisp.org>
25285
25286         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25287         Actually assign a value.
25288
25289 2008-04-20  Bruno Haible  <bruno@clisp.org>
25290
25291         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25292         take 2.
25293         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25294         'canonicalize-lgpl' module is also used.
25295         * lib/canonicalize-lgpl.c: Undo last change.
25296         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25297
25298 2008-04-20  Bruno Haible  <bruno@clisp.org>
25299
25300         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25301         config.h. Provide _mkdir based fallback for mingw.
25302         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25303         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25305         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25306         rather than defining mkdir in config.h.
25307         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25308         (gl_SYS_STAT_H_DEFAULTS): New macro.
25309         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25310         HAVE_IO_H any more.
25311         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25312         HAVE_DECL_MKDIR and HAVE_IO_H.
25313
25314 2008-04-20  Bruno Haible  <bruno@clisp.org>
25315
25316         * lib/isapipe.c: Port to native Windows platforms.
25317
25318 2008-04-20  Bruno Haible  <bruno@clisp.org>
25319
25320         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25321
25322 2008-04-21  Eric Blake  <ebb9@byu.net>
25323
25324         Work around preprocessors that don't handle UINTMAX_MAX.
25325         * lib/memchr2.c (memchr2): Avoid embedded #if.
25326         Reported by Alain Guibert, fix suggested by Bruno Haible.
25327
25328 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25329
25330         * doc/posix-functions/strftime.texi (strftime): Explain better
25331         Windows incompatibility.  Suggested by Micah Cowan
25332         <micah@cowan.name>.
25333
25334 2008-04-20  Bruno Haible  <bruno@clisp.org>
25335
25336         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25337         unistr/u8-mblen.
25338
25339 2008-04-20  Bruno Haible  <bruno@clisp.org>
25340
25341         Fix test failure on platforms with non-GNU iconv.
25342         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25343         (U_TO_U8): Use it, rather than u16_to_u8.
25344         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25345         units at the end of the input string.
25346         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25347
25348 2008-04-20  Bruno Haible  <bruno@clisp.org>
25349
25350         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25351         when the resulting length is 0.
25352         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25353
25354 2008-04-20  Bruno Haible  <bruno@clisp.org>
25355
25356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25357         works.
25358         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25359
25360 2008-04-20  Bruno Haible  <bruno@clisp.org>
25361
25362         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25363         * modules/tsearch-tests (configure.ac): Test for initstate function.
25364
25365 2008-04-20  Bruno Haible  <bruno@clisp.org>
25366
25367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25368         for nlink_t if missing.
25369         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25370
25371 2008-04-19  Bruno Haible  <bruno@clisp.org>
25372
25373         Work around snprintf bug on Linux libc5.
25374         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25376         gl_SNPRINTF_SIZE1.
25377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25378         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25379         that test failed.
25380         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25381         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25382         * modules/snprintf (Files): Add m4/printf.m4.
25383         * modules/vsnprintf (Files): Likewise.
25384         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25385         * doc/posix-functions/vsnprintf.texi: Likewise.
25386
25387 2008-04-19  Bruno Haible  <bruno@clisp.org>
25388
25389         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25390         from 0.0058 to less than 10^-7.
25391
25392 2008-04-19  Bruno Haible  <bruno@clisp.org>
25393
25394         Fix rounding when a precision is given.
25395         * lib/vasnprintf.c (is_borderline): New function.
25396         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25397         9...9x.
25398         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25399         %e, %g.
25400         * tests/test-vasprintf-posix.c (test_function): Likewise.
25401         * tests/test-snprintf-posix.h (test_function): Likewise.
25402         * tests/test-sprintf-posix.h (test_function): Likewise.
25403         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25404         * tests/test-printf-posix.h (test_function): Likewise.
25405         * tests/test-printf-posix.output: Update.
25406         Reported by John Darrington <john@darrington.wattle.id.au> via
25407         Ben Pfaff <blp@cs.stanford.edu>.
25408
25409 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25410
25411         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25412         Suggested by Bruno Haible <bruno@clisp.org>.
25413
25414 2008-04-17  Bruno Haible  <bruno@clisp.org>
25415
25416         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25417         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25418         implementation.
25419         Patch by Bruce Merry <bmerry@gmail.com>.
25420
25421 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25422
25423         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25424         doesn't work under Windows.
25425
25426 2008-04-16  Bruno Haible  <bruno@clisp.org>
25427
25428         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25429         New macros.
25430         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25431         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25432         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25433         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25434         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25435         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25436         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25437         macros.
25438         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25439         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25440         Northern Sotho, Uighur.
25441
25442 2008-04-16  Bruno Haible  <bruno@clisp.org>
25443
25444         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25445         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25446         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25447         Reported by Daniel Bergström <daniel@octocode.com>.
25448
25449 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25450             Bruno Haible  <bruno@clisp.org>
25451
25452         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25453         function.
25454         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25455         New functions, mostly extracted from gl_locale_name_default.
25456         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25457
25458 2008-04-16  Eric Blake  <ebb9@byu.net>
25459
25460         Adjust strtod detection to catch glibc 2.7 bug.
25461         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25462         Reported by John Gatewood Ham.
25463
25464 2008-04-16  Bruno Haible  <bruno@clisp.org>
25465
25466         Add tentative support for Linux libc5.
25467         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25468         * lib/fpurge.c (fpurge): Likewise.
25469         * lib/freadable.c (freadable): Likewise.
25470         * lib/freadahead.c (freadahead): Likewise.
25471         * lib/freading.c (freading): Likewise.
25472         * lib/freadptr.c (freadptr): Likewise.
25473         * lib/freadseek.c (freadptrinc): Likewise.
25474         * lib/fseeko.c (rpl_fseeko): Likewise.
25475         * lib/fseterr.c (fseterr): Likewise.
25476         * lib/fwritable.c (fwritable): Likewise.
25477         * lib/fwriting.c (fwriting): Likewise.
25478         Reported by Alain Guibert <alguibert+bts@free.fr>.
25479
25480 2008-04-15  Bruno Haible  <bruno@clisp.org>
25481
25482         * modules/mathl (configure.ac): Define module indicator.
25483
25484 2008-04-15  Bruno Haible  <bruno@clisp.org>
25485
25486         * lib/logl.c (logl): Remove unused variables.
25487
25488 2008-04-15  Bruno Haible  <bruno@clisp.org>
25489
25490         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25491         fails.
25492
25493 2008-04-15  Bruno Haible  <bruno@clisp.org>
25494
25495         * lib/trim.c (trim2): Fix argument of isspace() macro.
25496
25497 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25498
25499         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25500         to 0.
25501         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25502
25503 2008-04-14  Bruno Haible  <bruno@clisp.org>
25504
25505         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25506         AC_LANG_PROGRAM argument.
25507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25508         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25511         * m4/math_h.m4 (gl_MATH_H): Likewise.
25512         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25514         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25515         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25516         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25517         * m4/regex.m4 (gl_REGEX): Likewise.
25518         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25519         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25522         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25523         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25526
25527 2008-04-14  Jim Meyering  <meyering@redhat.com>
25528
25529         test-strtod: fix typos: s/abs/fabs/
25530         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25531
25532 2008-04-13  Bruno Haible  <bruno@clisp.org>
25533
25534         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25535         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25536         module is also used and while not building the reloc-wrapper.
25537
25538 2008-04-13  Bruno Haible  <bruno@clisp.org>
25539
25540         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25541
25542 2008-04-13  Bruno Haible  <bruno@clisp.org>
25543
25544         Fix AIX compilation failure introduced on 2008-04-02.
25545         * tests/test-frexp.c (exp): Undefine before redefining.
25546         * tests/test-frexpl.c (exp): Likewise.
25547
25548 2008-04-13  Bruno Haible  <bruno@clisp.org>
25549
25550         Work around a HP-UX stdio bug.
25551         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25552         * tests/test-ftello.c (main): Likewise.
25553         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25554         * doc/posix-functions/ftello.texi: Likewise.
25555
25556 2008-04-13  Bruno Haible  <bruno@clisp.org>
25557
25558         Make test-signbit pass on HP-UX/hppa.
25559         * tests/test-signbit.c (minus_zerol): New variable.
25560         (test_signbitl): Use it.
25561
25562 2008-04-13  Bruno Haible  <bruno@clisp.org>
25563
25564         Make truncl work on OSF/1 4.0.
25565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25566         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25567         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25569         HAVE_DECL_TRUNCL.
25570         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25571         HAVE_DECL_TRUNCL.
25572         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25573
25574 2008-04-13  Bruno Haible  <bruno@clisp.org>
25575
25576         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25577
25578 2008-04-13  Bruno Haible  <bruno@clisp.org>
25579
25580         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25581         expression, so as to avoid HP-UX 11 cc compiler bug.
25582
25583 2008-04-13  Bruno Haible  <bruno@clisp.org>
25584
25585         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25586
25587 2008-04-13  Bruno Haible  <bruno@clisp.org>
25588
25589         * lib/git-merge-changelog.c: Remove empty declaration outside of
25590         functions.
25591
25592 2008-04-13  Bruno Haible  <bruno@clisp.org>
25593
25594         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25595
25596 2008-04-13  Bruno Haible  <bruno@clisp.org>
25597
25598         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25599         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25601         also if it exists but lacks definitions of the SHUT_* macros.
25602         * modules/sys_socket (Description): Update.
25603         Reported by Elbert Pol <e.pol@chello.nl>.
25604
25605 2008-04-13  Bruno Haible  <bruno@clisp.org>
25606
25607         * lib/localcharset.c (OS2): Don't redefine if already defined.
25608         Reported by Elbert Pol <e.pol@chello.nl>.
25609
25610 2008-04-13  Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/binary-io.h [__EMX__]: Include <io.h>.
25613         Reported by Elbert Pol <e.pol@chello.nl>.
25614
25615 2008-04-12  Bruno Haible  <bruno@clisp.org>
25616
25617         * lib/fpucw.h: Enable the definitions also for x86_64.
25618         Needed for NetBSD/x86_64.
25619         Reported by Thomas Klausner <tk@giga.or.at>.
25620
25621 2008-04-12  Bruno Haible  <bruno@clisp.org>
25622
25623         * tests/test-strtod.c: Include isnand.h.
25624         (main): Use isnand instead of isnan.
25625         Reported by Jim Meyering.
25626
25627 2008-04-12  Bruno Haible  <bruno@clisp.org>
25628
25629         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25630         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25631
25632 2008-04-12  Jim Meyering  <meyering@redhat.com>
25633
25634         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25635
25636 2008-04-12  Bruno Haible  <bruno@clisp.org>
25637
25638         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25639         Reported by Elbert Pol <e.pol@chello.nl>.
25640
25641 2008-04-12  Eric Blake  <ebb9@byu.net>
25642
25643         Work around Solaris 10 math.h bug.
25644         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25645         (gl_MATH_H_DEFAULTS): Set up default.
25646         * modules/math (Makefile.am): Replace new indicators.
25647         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25648         * tests/test-math.c (main): Test this.
25649         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25650         * doc/posix-headers/math.texi (math.h): Mention bug.
25651         Reported by Nelson H. F. Beebe and Jim Meyering.
25652
25653 2008-04-11  Bruno Haible  <bruno@clisp.org>
25654
25655         Adapt to future versions of Apple GCC.
25656         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25657         Reported by Peter O'Gorman <peter@pogma.com>.
25658
25659 2008-04-11  Bruno Haible  <bruno@clisp.org>
25660
25661         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25662
25663 2008-04-11  Bruno Haible  <bruno@clisp.org>
25664
25665         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25666
25667         * modules/getaddrinfo-tests (Makefile.am): Define
25668         test_getaddrinfo_LDADD.
25669
25670 2008-04-11  Bruno Haible  <bruno@clisp.org>
25671
25672         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25673         (init): Fix syntax error.
25674         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25675         is declared.
25676
25677 2008-04-11  Bruno Haible  <bruno@clisp.org>
25678
25679         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25680         * modules/glob (Depends-on): Add stdbool.
25681
25682 2008-04-11  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/trim.c: Include <string.h>.
25685
25686 2008-04-11  Eric Blake  <ebb9@byu.net>
25687
25688         Avoid compile failure on OS/2.
25689         * lib/regex_internal.h (internal_function): Disable optimization
25690         on OS/2 (__EMX__), where it caused compiler error.
25691         Reported by Elbert Pol.
25692
25693 2008-04-11  Bruno Haible  <bruno@clisp.org>
25694
25695         Flush the standard error stream before aborting. Needed on mingw.
25696         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25697         * tests/test-array_list.c (ASSERT): Likewise.
25698         * tests/test-array_oset.c (ASSERT): Likewise.
25699         * tests/test-avltree_list.c (ASSERT): Likewise.
25700         * tests/test-avltree_oset.c (ASSERT): Likewise.
25701         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25702         * tests/test-binary-io.c (ASSERT): Likewise.
25703         * tests/test-byteswap.c (ASSERT): Likewise.
25704         * tests/test-c-ctype.c (ASSERT): Likewise.
25705         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25706         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25707         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25708         * tests/test-c-strstr.c (ASSERT): Likewise.
25709         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25710         * tests/test-canonicalize.c (ASSERT): Likewise.
25711         * tests/test-carray_list.c (ASSERT): Likewise.
25712         * tests/test-ceilf1.c (ASSERT): Likewise.
25713         * tests/test-ceilf2.c (ASSERT): Likewise.
25714         * tests/test-ceill.c (ASSERT): Likewise.
25715         * tests/test-count-one-bits.c (ASSERT): Likewise.
25716         * tests/test-fbufmode.c (ASSERT): Likewise.
25717         * tests/test-fflush2.c (ASSERT): Likewise.
25718         * tests/test-floorf1.c (ASSERT): Likewise.
25719         * tests/test-floorf2.c (ASSERT): Likewise.
25720         * tests/test-floorl.c (ASSERT): Likewise.
25721         * tests/test-fopen.c (ASSERT): Likewise.
25722         * tests/test-fpending.c (ASSERT): Likewise.
25723         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25724         * tests/test-fpurge.c (ASSERT): Likewise.
25725         * tests/test-freadable.c (ASSERT): Likewise.
25726         * tests/test-freadahead.c (ASSERT): Likewise.
25727         * tests/test-freading.c (ASSERT): Likewise.
25728         * tests/test-freadptr.c (ASSERT): Likewise.
25729         * tests/test-freadptr2.c (ASSERT): Likewise.
25730         * tests/test-freadseek.c (ASSERT): Likewise.
25731         * tests/test-freopen.c (ASSERT): Likewise.
25732         * tests/test-frexp.c (ASSERT): Likewise.
25733         * tests/test-frexpl.c (ASSERT): Likewise.
25734         * tests/test-fseek.c (ASSERT): Likewise.
25735         * tests/test-fseeko.c (ASSERT): Likewise.
25736         * tests/test-fstrcmp.c (ASSERT): Likewise.
25737         * tests/test-ftell.c (ASSERT): Likewise.
25738         * tests/test-ftello.c (ASSERT): Likewise.
25739         * tests/test-func.c (ASSERT): Likewise.
25740         * tests/test-fwritable.c (ASSERT): Likewise.
25741         * tests/test-fwriting.c (ASSERT): Likewise.
25742         * tests/test-getdelim.c (ASSERT): Likewise.
25743         * tests/test-getline.c (ASSERT): Likewise.
25744         * tests/test-i-ring.c (ASSERT): Likewise.
25745         * tests/test-iconv-utf.c (ASSERT): Likewise.
25746         * tests/test-iconv.c (ASSERT): Likewise.
25747         * tests/test-isfinite.c (ASSERT): Likewise.
25748         * tests/test-isnand.c (ASSERT): Likewise.
25749         * tests/test-isnanf.c (ASSERT): Likewise.
25750         * tests/test-isnanl.h (ASSERT): Likewise.
25751         * tests/test-ldexpl.c (ASSERT): Likewise.
25752         * tests/test-linked_list.c (ASSERT): Likewise.
25753         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25754         * tests/test-localename.c (ASSERT): Likewise.
25755         * tests/test-lseek.c (ASSERT): Likewise.
25756         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25757         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25758         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25759         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25760         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25761         * tests/test-mbschr.c (ASSERT): Likewise.
25762         * tests/test-mbscspn.c (ASSERT): Likewise.
25763         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25764         * tests/test-mbspbrk.c (ASSERT): Likewise.
25765         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25766         * tests/test-mbsrchr.c (ASSERT): Likewise.
25767         * tests/test-mbsspn.c (ASSERT): Likewise.
25768         * tests/test-mbsstr1.c (ASSERT): Likewise.
25769         * tests/test-mbsstr2.c (ASSERT): Likewise.
25770         * tests/test-mbsstr3.c (ASSERT): Likewise.
25771         * tests/test-memchr2.c (ASSERT): Likewise.
25772         * tests/test-memmem.c (ASSERT): Likewise.
25773         * tests/test-open.c (ASSERT): Likewise.
25774         * tests/test-printf-frexp.c (ASSERT): Likewise.
25775         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25776         * tests/test-printf-posix.c (ASSERT): Likewise.
25777         * tests/test-quotearg.c (ASSERT): Likewise.
25778         * tests/test-rbtree_list.c (ASSERT): Likewise.
25779         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25780         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25781         * tests/test-round1.c (ASSERT): Likewise.
25782         * tests/test-roundf1.c (ASSERT): Likewise.
25783         * tests/test-roundl.c (ASSERT): Likewise.
25784         * tests/test-signbit.c (ASSERT): Likewise.
25785         * tests/test-sleep.c (ASSERT): Likewise.
25786         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25787         * tests/test-snprintf.c (ASSERT): Likewise.
25788         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25789         * tests/test-stat-time.c (ASSERT): Likewise.
25790         * tests/test-strcasestr.c (ASSERT): Likewise.
25791         * tests/test-strerror.c (ASSERT): Likewise.
25792         * tests/test-striconv.c (ASSERT): Likewise.
25793         * tests/test-striconveh.c (ASSERT): Likewise.
25794         * tests/test-striconveha.c (ASSERT): Likewise.
25795         * tests/test-strsignal.c (ASSERT): Likewise.
25796         * tests/test-strstr.c (ASSERT): Likewise.
25797         * tests/test-strtod.c (ASSERT): Likewise.
25798         * tests/test-trunc1.c (ASSERT): Likewise.
25799         * tests/test-trunc2.c (ASSERT): Likewise.
25800         * tests/test-truncf1.c (ASSERT): Likewise.
25801         * tests/test-truncf2.c (ASSERT): Likewise.
25802         * tests/test-truncl.c (ASSERT): Likewise.
25803         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25804         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25805         * tests/test-vasnprintf.c (ASSERT): Likewise.
25806         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25807         * tests/test-vasprintf.c (ASSERT): Likewise.
25808         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25809         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25810         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25811         * tests/test-vsnprintf.c (ASSERT): Likewise.
25812         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25813         * tests/test-wcwidth.c (ASSERT): Likewise.
25814         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25815         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25816         * tests/test-xvasprintf.c (ASSERT): Likewise.
25817         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25818         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25819         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25820         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25821         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25822         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25823         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25824         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25825         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25826         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25827         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25828         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25829         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25830         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25831         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25832         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25833         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25834         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25835         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25836         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25837         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25838         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25839         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25840         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25841         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25842         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25843         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25844         * tests/unictype/test-combining.c (ASSERT): Likewise.
25845         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25846         * tests/unictype/test-digit.c (ASSERT): Likewise.
25847         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25848         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25849         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25850         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25851         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25852         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25853         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25854         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25855         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25856         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25857         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25858         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25859         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25860         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25861         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25862         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25863         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25864         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25865         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25866         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25867         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25868         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25869         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25870         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25871         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25872         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25873         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25874         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25875         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25876         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25877         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25878         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25879         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25880         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25881         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25882         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25883         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25884         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25885         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25886         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25887         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25888         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25889         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25890         Reported by Eric Blake.
25891
25892 2008-04-11  Bruno Haible  <bruno@clisp.org>
25893
25894         * lib/wchar.in.h: Tweak comment.
25895
25896 2008-04-11  Bruno Haible  <bruno@clisp.org>
25897
25898         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25899         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25900         gl_COMMON.
25901         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25902
25903 2008-04-11  Bruno Haible  <bruno@clisp.org>
25904
25905         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25906
25907 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25908
25909         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25910         of attempting to use non-existing /dev/*random.  Based on patch
25911         from Adam Strzelecki <ono@java.pl> in
25912         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25913
25914 2008-04-08  Bruno Haible  <bruno@clisp.org>
25915
25916         Add tentative support for emx+gcc.
25917         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25918         * lib/fpurge.c (fpurge): Likewise.
25919         * lib/freadable.c (freadable): Likewise.
25920         * lib/freadahead.c (freadahead): Likewise.
25921         * lib/freading.c (freading): Likewise.
25922         * lib/freadptr.c (freadptr): Likewise.
25923         * lib/freadseek.c (freadptrinc): Likewise.
25924         * lib/fseeko.c (rpl_fseeko): Likewise.
25925         * lib/fseterr.c (fseterr): Likewise.
25926         * lib/fwritable.c (fwritable): Likewise.
25927         * lib/fwriting.c (fwriting): Likewise.
25928         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25929
25930 2008-04-09  Eric Blake  <ebb9@byu.net>
25931
25932         Avoid some autoconf warnings.
25933         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25934         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25935         * m4/afs.m4 (gl_AFS): Likewise.
25936         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25937         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25938         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25939         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25940         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25941         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25942         (AC_CHECK_DECLS_ONCE): Likewise.
25943         Rename file...
25944         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25945         gnulib-tool requires autoconf 2.59 or better.
25946         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25947
25948 2008-04-08  Eric Blake  <ebb9@byu.net>
25949
25950         Use 'git describe --match' if present (added in git 1.5.5).
25951         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25952         if possible.
25953
25954 2008-04-08  Bruno Haible  <bruno@clisp.org>
25955
25956         Add tentative support for OpenServer.
25957         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25958         _ptr, _cnt.
25959         * lib/fpurge.c (fpurge): Likewise.
25960         * lib/freadable.c (freadable): Likewise.
25961         * lib/freadahead.c (freadahead): Likewise.
25962         * lib/freading.c (freading): Likewise.
25963         * lib/freadptr.c (freadptr): Likewise.
25964         * lib/freadseek.c (freadptrinc): Likewise.
25965         * lib/fseeko.c (rpl_fseeko): Likewise.
25966         * lib/fseterr.c (fseterr): Likewise.
25967         * lib/fwritable.c (fwritable): Likewise.
25968         * lib/fwriting.c (fwriting): Likewise.
25969         Reported by Roger Cornelius <rac@tenzing.org> and
25970         Brian K. White <brian@aljex.com>.
25971
25972 2008-04-06  Jim Meyering  <meyering@redhat.com>
25973
25974         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25975
25976 2008-04-06  Bruno Haible  <bruno@clisp.org>
25977
25978         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25979         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25980         * tests/test-printf-posix.sh: Likewise.
25981         * tests/test-vfprintf-posix.sh: Likewise.
25982         * tests/test-vprintf-posix.sh: Likewise.
25983         * tests/test-xprintf-posix.sh: Likewise.
25984
25985 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25986
25987         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25988         hide error from 'ls', needed on OS/2.
25989         Report by Elbert Pol <elbert.pol@gmail.com>.
25990
25991 2008-04-04  Eric Blake  <ebb9@byu.net>
25992
25993         Make test-fseeko.c failures meaningful.
25994         * tests/test-fseeko.c: Print line number on failure.
25995         * tests/test-fseek.c: Likewise.
25996         Reported by Nelson H. F. Beebe.
25997
25998         Improve strtod bug detection check.
25999         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26000         required for Solaris 10.
26001         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26002
26003 2008-04-04  Bruno Haible  <bruno@clisp.org>
26004
26005         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26006         by m4/setenv.m4.
26007
26008 2008-04-03  Eric Blake  <ebb9@byu.net>
26009
26010         Ensure sane .version contents.
26011         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26012         version string.
26013         * build-aux/git-version-gen: Improve documentation.
26014
26015         Make GNU make output nicer.
26016         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26017         MAKECMDGOALS to enforce message for all command line targets.  Set
26018         srcdir for use in maint.mk.
26019
26020         Another maintainer tweak.
26021         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26022         a target that regenerates version.
26023
26024 2008-04-03  Jim Meyering  <meyering@redhat.com>
26025
26026         vc-list-files: don't cause coreutils "make po-check" failure
26027         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26028
26029 2008-04-03  Eric Blake  <ebb9@byu.net>
26030
26031         Allow VPATH usage of vc-list-files.
26032         * build-aux/vc-list-files (scriptversion): Add timestamp.
26033         (options): Add --help, --version, -C.
26034         (CVS): Support installed cvsu.
26035
26036 2008-04-02  Bruno Haible  <bruno@clisp.org>
26037
26038         Avoid some "statement with no effect" warnings from gcc.
26039         * tests/test-wctype.c (main): Explicitly ignore unused values.
26040         Reported by Jim Meyering.
26041
26042 2008-04-02  Jim Meyering  <meyering@redhat.com>
26043
26044         Avoid some warnings from "gcc -Wshadow".
26045         * tests/test-frexp.c (exp): Define to a different identifier.
26046         * tests/test-frexpl.c (exp): Likewise.
26047
26048 2008-04-03  Jim Meyering  <meyering@redhat.com>
26049
26050         bootstrap: remove dangling *.[ch] symlinks from lib
26051         * build-aux/bootstrap [dangling symlink removal]: Move find's
26052         -depth option to precede all others, to avoid a warning.
26053         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26054
26055 2008-04-02  Bruno Haible  <bruno@clisp.org>
26056
26057         Avoid some warnings from "gcc -Wshadow".
26058         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26059         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26060         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26061         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26062         Reported by Jim Meyering.
26063
26064 2008-04-01  Bruno Haible  <bruno@clisp.org>
26065
26066         Fix test to work on IRIX 6.5 with cc.
26067         * tests/test-math.c (numeric_equal): New function.
26068         (main): Use it.
26069
26070 2008-04-01  Bruno Haible  <bruno@clisp.org>
26071
26072         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26073
26074 2008-04-01  Bruno Haible  <bruno@clisp.org>
26075
26076         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26077         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26078         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26079         (Depends-on): Remove math.
26080
26081         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26082         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26083         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26084         (Depends-on): Remove math.
26085
26086         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26087         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26088         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26089         (Depends-on): Remove math.
26090         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26091         (Depends-on): Remove math.
26092
26093         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26094         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26095         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26096         (Depends-on): Remove math.
26097         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26098         (Depends-on): Remove math.
26099
26100         * tests/test-round1.c: Include nan.h.
26101         (main): Use NaNd instead of NAN.
26102         * modules/round-tests (Files): Add tests/nan.h.
26103
26104         * tests/test-trunc1.c: Include nan.h.
26105         (main): Use NaNd instead of NAN.
26106         * modules/trunc-tests (Files): Add tests/nan.h.
26107
26108         * tests/test-roundf1.c: Include nan.h.
26109         (main): Use NaNf instead of NAN.
26110         * modules/roundf-tests (Files): Add tests/nan.h.
26111
26112         * tests/test-truncf1.c: Include nan.h.
26113         (main): Use NaNf instead of NAN.
26114         * modules/truncf-tests (Files): Add tests/nan.h.
26115
26116         * tests/test-ceilf1.c: Include nan.h.
26117         (main): Use NaNf instead of NAN.
26118         * modules/ceilf-tests (Files): Add tests/nan.h.
26119
26120         * tests/test-floorf1.c: Include nan.h.
26121         (main): Use NaNf instead of NAN.
26122         * modules/floorf-tests (Files): Add tests/nan.h.
26123
26124         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26125         (main): Use NaNf instead of NAN.
26126         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26127
26128         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26129         (main): Use NaNd instead of NAN.
26130         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26131
26132         * tests/test-frexp.c: Include nan.h.
26133         (main): Use NaNd instead of NAN.
26134         * modules/frexp-tests (Files): Add tests/nan.h.
26135
26136         * lib/isnan.c: Don't include <math.h>.
26137         (FUNC): Don't use NAN macro.
26138         * modules/isnand-nolibm (Depends-on): Remove math.
26139         * modules/isnanf-nolibm (Depends-on): Remove math.
26140         * modules/isnanl (Depends-on): Remove math.
26141         * modules/isnanl-nolibm (Depends-on): Remove math.
26142
26143         * tests/nan.h: New file.
26144
26145 2008-04-01  Eric Blake  <ebb9@byu.net>
26146
26147         Fix typos.
26148         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26149         values to be the right type.
26150
26151         For now, cater to gnulib strtod inaccuracies.
26152         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26153         fractional results.  While not as nice from a QoI perspective, it
26154         is a quicker patch than correctly implementing decimal to binary
26155         rounding.
26156
26157 2008-03-31  Eric Blake  <ebb9@byu.net>
26158
26159         Guarantee a definition of NAN.
26160         * lib/math.in.h (NAN): Define if missing.
26161         * tests/test-math.c (main): Test it.
26162         * doc/posix-headers/math.texi (math.h): Document this.
26163         * lib/isnan.c (rpl_isnand): Use it.
26164         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26165         * tests/test-floorf1.c (NaN): Likewise.
26166         * tests/test-frexp.c (NaN): Likewise.
26167         * tests/test-isnand.c (NaN): Likewise.
26168         * tests/test-isnanf.c (NaN): Likewise.
26169         * tests/test-round1.c (NaN): Likewise.
26170         * tests/test-roundf1.c (NaN): Likewise.
26171         * tests/test-snprintf-posix.h (NaN): Likewise.
26172         * tests/test-sprintf-posix.h (NaN): Likewise.
26173         * tests/test-trunc1.c (NaN): Likewise.
26174         * tests/test-truncf1.c (NaN): Likewise.
26175         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26176         * tests/test-vasprintf-posix.c (NaN): Likewise.
26177         * modules/isnand-nolibm (Depends-on): Add math.
26178         * modules/isnanf-nolibm (Depends-on): Likewise.
26179         * modules/isnanl (Depends-on): Likewise.
26180         * modules/isnanl-nolibm (Depends-on): Likewise.
26181         * modules/snprintf-posix-tests (Depends-on): Likewise.
26182         * modules/sprintf-posix-tests (Depends-on): Likewise.
26183         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26184         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26185         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26186         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26187
26188 2008-03-31  Bruno Haible  <bruno@clisp.org>
26189
26190         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26191         * doc/posix-functions/strtod.texi: Likewise.
26192
26193 2008-03-31  Bruno Haible  <bruno@clisp.org>
26194
26195         * tests/test-strtod.c (main): Don't use C99 syntax.
26196
26197 2008-03-31  Bruno Haible  <bruno@clisp.org>
26198
26199         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26200         Reported by Eric Blake.
26201
26202 2008-03-31  Jim Meyering  <meyering@redhat.com>
26203
26204         Don't compare actual signbit return values.
26205         * tests/test-strtod.c (main): Rather, compare only their
26206         zero/non-zero nature.
26207
26208 2008-03-31  Eric Blake  <ebb9@byu.net>
26209
26210         More strtod documentation.
26211         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26212         failures as distinct bugs.
26213
26214 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26215
26216         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26217         Problem reported by Erik Benada in
26218         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26219
26220 2008-03-30  Bruno Haible  <bruno@clisp.org>
26221
26222         * tests/test-strtod.c: Add comments about which assertion fails on which
26223         platform.
26224         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26225
26226 2008-03-30  Eric Blake  <ebb9@byu.net>
26227
26228         Test signbit behavior on zeros.
26229         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26230         (test_signbitd, test_signbitl): Likewise.
26231
26232         More strtod touchups.
26233         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26234         sign of negative underflow, for now.  Use .5, not .1.
26235         * doc/posix-functions/strtod.texi (strtod): Mention these
26236         limitations.
26237         Reported by Jim Meyering.
26238
26239 2008-03-30  Bruno Haible  <bruno@clisp.org>
26240
26241         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26242         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26243
26244 2008-03-30  Bruno Haible  <bruno@clisp.org>
26245
26246         Avoid failure when attempting to return empty iconv results on some
26247         platforms.
26248         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26249         allocation, don't report ENOMEM when the resulting string is empty.
26250
26251 2008-03-30  Bruno Haible  <bruno@clisp.org>
26252
26253         Fix buffer overrun.
26254         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26255         Don't consider the width for tmp_length. Check count against tmp_length
26256         before doing the padding. Ensure enough allocation during padding.
26257
26258 2008-03-30  Eric Blake  <ebb9@byu.net>
26259
26260         strtod touchups.
26261         * lib/strtod.c (strtod): Avoid compiler warnings.
26262         Reported by Jim Meyering.
26263
26264 2008-03-30  Bruno Haible  <bruno@clisp.org>
26265
26266         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26267         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26268         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26269         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26270         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26271         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26272         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26273         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26274
26275         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26276         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26277         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26278         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26279         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26280         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26281         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26282         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26283
26284         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26285         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26286         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26287         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26288         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26289         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26290         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26291         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26292
26293         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26294         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26295
26296         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26297         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26298
26299         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26300         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26301
26302         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26304         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26305
26306         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26308         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26309
26310         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26312         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26313
26314         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26316         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26317
26318         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26319         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26321         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26322         (Depends-on): Add EOVERFLOW.
26323         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26324         (Depends-on): Add EOVERFLOW.
26325         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26326         (Depends-on): Add EOVERFLOW.
26327         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26328         (Depends-on): Add EOVERFLOW.
26329         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26330         (Depends-on): Add EOVERFLOW.
26331         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26332         (Depends-on): Add EOVERFLOW.
26333         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26334         (Depends-on): Add EOVERFLOW.
26335         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26336         (Depends-on): Add EOVERFLOW.
26337
26338         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26340         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26341
26342         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26344         * modules/snprintf (Depends-on): Add EOVERFLOW.
26345
26346         * lib/poll.c (EOVERFLOW): Remove fallback.
26347         * modules/poll (Depends-on): Add EOVERFLOW.
26348
26349         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26350         * modules/getugroups (Depends-on): Add EOVERFLOW.
26351
26352         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26353         * modules/getdelim (Depends-on): Add EOVERFLOW.
26354
26355         * lib/ftell.c (EOVERFLOW): Remove fallback.
26356         * modules/ftell (Depends-on): Add EOVERFLOW.
26357
26358         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26360         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26361
26362         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26363
26364         * modules/EOVERFLOW-tests: New file.
26365         * tests/test-EOVERFLOW.c: New file.
26366
26367         * modules/EOVERFLOW: New file.
26368         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26369
26370 2008-03-30  Bruno Haible  <bruno@clisp.org>
26371
26372         Fix bug introduced on 2007-06-10.
26373         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26374         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26375
26376 2008-03-30  Bruno Haible  <bruno@clisp.org>
26377
26378         Improve freadseek's efficiency after ungetc.
26379         * lib/freadseek.c: Include freadahead.h.
26380         (freadptrinc): New function, extracted from freadseek.
26381         (freadseek): Use it in a loop. Use freadahead to determine the number
26382         of loop iterations.
26383         * modules/freadseek (Depends-on): Add freadahead.
26384         (configure.ac): Require AC_C_INLINE.
26385
26386 2008-03-30  Bruno Haible  <bruno@clisp.org>
26387
26388         * lib/freadseek.c (freadseek): Don't ignore the return value of
26389         freadptr.
26390
26391 2008-03-29  Eric Blake  <ebb9@byu.net>
26392
26393         Add hex float support.
26394         * modules/strtod (Depends-on): Add c-ctype.
26395         (Link): Mention POW_LIB.
26396         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26397         whitespace between 'e' and exponent.
26398         * tests/test-strtod.c (main): Enable hex float tests.
26399         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26400         now provides.
26401
26402         Document various strtod bugs, with some fixes.
26403         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26404         "-0x", "inf", "nan", and hex constants.
26405         * doc/posix-functions/atof.texi (atof): Likewise.
26406         * modules/stdlib (Makefile.am): Support strtod.
26407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26408         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26409         detect additional strtod bugs.
26410         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26411         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26412         bool where appropriate.  Parse 'inf' and 'nan'.
26413         * tests/test-strtod.c: New file.
26414         * modules/strtod (Depends-on): Add stdbool, stdlib.
26415         (configure.ac): Turn on module indicator.
26416         * modules/strtod-tests: New module.
26417
26418 2008-03-29  Eric Blake  <ebb9@byu.net>
26419
26420         Fix ftell on mingw.
26421         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26422         * modules/ftell-tests (Depends-on): Add binary-io.
26423         * modules/ftello-tests (Depends-on): Likewise.
26424         * tests/test-ftell.c (main): Enhance test to cover behavior after
26425         ungetc.  Enforce binary mode.
26426         * tests/test-ftello.c (main): Likewise.
26427
26428         Pass test-freadseek on cygwin.
26429         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26430         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26431         ungetc buffer.
26432
26433         * tests/test-fflush2.c (main): Fix typo.
26434
26435 2008-03-29  Bruno Haible  <bruno@clisp.org>
26436
26437         * tests/test-fflush2.c (main): Temporarily disable the contents of
26438         this test.
26439         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26440         Reported by Eric Blake.
26441
26442 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26443
26444         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26445         (GC_SHA224_DIGEST_SIZE): Add.
26446
26447         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26448         (gc_hash_digest_length): Likewise.
26449         (gc_hash_buffer): Likewise.
26450
26451 2008-03-25  Bruno Haible  <bruno@clisp.org>
26452
26453         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26454         detail which gettext release to use.
26455         Reported by Simon Josefsson.
26456
26457 2008-03-26  Jim Meyering  <meyering@redhat.com>
26458
26459         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26460         * modules/gnumakefile (clean-GNUmakefile): Also, use
26461         test ... && ... || : syntax rather than if-then ... fi.
26462
26463         gnumakefile: Don't double-quote-expand $(VPATH) value.
26464         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26465
26466 2008-03-24  Eric Blake  <ebb9@byu.net>
26467
26468         Alter GNUmakefile to install into top directory.
26469         * modules/maintainer-makefile: Split, and add dependency...
26470         * modules/gnumakefile: to this new module.
26471         * build-aux/GNUmakefile: Move...
26472         * top/GNUmakefile: ...here.
26473         * build-aux/maint.mk: Move...
26474         * top/maint.mk: ...here.
26475         * MODULES.html.sh (Support for maintaining...): Document new
26476         module.
26477
26478 2008-03-23  Bruno Haible  <bruno@clisp.org>
26479
26480         * gnulib-tool: New options --vc-files, --no-vc-files.
26481         (func_usage): Document them.
26482         (vc_files): New variable.
26483         (func_import): Consider vc_files.
26484         (func_create_testdir): Set vc_files to empty.
26485         Suggested by Jim Meyering and Karl Berry.
26486
26487 2008-03-23  Bruno Haible  <bruno@clisp.org>
26488
26489         Fix regex compilation error on HP-UX 11.
26490         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26491         * modules/regex (Files): Add m4/mbstate_t.m4.
26492         Reported by Ton Voon <ton.voon@altinity.com>.
26493
26494 2008-03-23  Bruno Haible  <bruno@clisp.org>
26495
26496         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26497
26498 2008-03-23  Eric Blake  <ebb9@byu.net>
26499             Bruno Haible  <bruno@clisp.org>
26500
26501         Install files from top/ in the destination directory.
26502         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26503         augmentation also for the files from top/.
26504         (func_import, func_create_testdir): Rewrite file names:
26505         top/filename -> filename.
26506
26507 2008-03-23  Bruno Haible  <bruno@clisp.org>
26508
26509         Tweak "gnulib --version" output.
26510         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26511
26512 2008-03-23  Bruno Haible  <bruno@clisp.org>
26513
26514         Tweak "gnulib --version" output.
26515         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26516         rather than contents of ChangeLog, when possible.
26517
26518 2008-03-21  Eric Blake  <ebb9@byu.net>
26519
26520         More --version tweaks.
26521         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26522         date of last ChangeLog entry.
26523
26524 2008-03-21  Jim Meyering  <meyering@redhat.com>
26525
26526         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26527
26528 2008-03-20  Eric Blake  <ebb9@byu.net>
26529
26530         VPATH fix.
26531         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26532
26533 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26534
26535         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26536         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26537
26538 2008-03-20  Eric Blake  <ebb9@byu.net>
26539
26540         Sync GNUmakefile with coreutils.
26541         * build-aux/GNUmakefile (have-Makefile): Rename...
26542         (_have-Makefile): ...to this, for namespace consideration.
26543         (GNUmakefile.cfg): Include, if present.
26544         (_autoreconf): Define a default.
26545         (_is-dist-target): New rule for rebuilds to pick up intra-release
26546         version.
26547         (maint-cfg.mk): Rename...
26548         (cfg.mk): ...to this.
26549
26550 2008-03-18  Jim Meyering  <meyering@redhat.com>
26551
26552         New script and module: mktempd
26553         * MODULES.html.sh (maint+release support): Add mktempd.
26554         * build-aux/mktempd: New file.
26555         * modules/mktempd: New file.
26556
26557 2008-03-15  Jim Meyering  <meyering@redhat.com>
26558
26559         Undo last change.
26560         * lib/sha1.c, lib/md5.c: 63 != ~63.
26561         Reported by Andreas Schwab.
26562
26563         sha1.c, md5.c: Hoist a redundant expression.
26564         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26565         "ctx->buflen" only once, before calling *_process_block.
26566         * lib/md5.c (md5_process_bytes): Likewise.
26567
26568 2008-03-14  Eric Blake  <ebb9@byu.net>
26569
26570         Bump copyright year in files generated by gnulib-tool.
26571         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26572         gnulib-tool, rather than hard-coding it.
26573
26574         Fix 'gnulib-tool --version' output to work with git.
26575         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26576         (startup): ...here.
26577         (func_version): Use it to invoke git-version-gen, rather than
26578         relying on CVS keyword expansion.  Modernize wording.
26579         (cvsdatestamp, last_checkin_date, version): Kill unused
26580         variables.
26581
26582 2008-03-12  Jim Meyering  <meyering@redhat.com>
26583
26584         Recognize optional cast of the argument to free.
26585         * build-aux/useless-if-before-free: Update regexps.
26586
26587         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26588
26589 2008-03-11  Bruno Haible  <bruno@clisp.org>
26590
26591         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26592         by a single package.
26593         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26594         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26595         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26596         Reported by Sam Steingold <sds@gnu.org>.
26597
26598 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26599
26600         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26601         repositories.
26602
26603 2008-03-11  Bruno Haible  <bruno@clisp.org>
26604
26605         Avoid conflicts between local macro definitions.
26606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26607         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26608
26609 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26610             Bruno Haible  <bruno@clisp.org>
26611
26612         Make va_copy work with some version of xlc on AIX 5.1.
26613         * lib/stdarg.in.h: New file.
26614         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26615         On AIX, use a <stdarg.h> file substitute.
26616         * modules/stdarg (Files): Add lib/stdarg.in.h.
26617         (Depends-on): Add include_next.
26618         (Makefile.am): Build a stdarg.h substitute if requested.
26619         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26620
26621 2008-03-10  Bruno Haible  <bruno@clisp.org>
26622
26623         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26624         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26625         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26626
26627 2008-03-10  Bruno Haible  <bruno@clisp.org>
26628
26629         * modules/stdlib (Depends-on): Add include_next, remove
26630         absolute-header.
26631
26632 2008-03-09  Bruno Haible  <bruno@clisp.org>
26633
26634         * lib/freadahead.h (freadahead): Document more precisely.
26635         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26636         the sum of both buffer sizes.
26637         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26638         * NEWS: Document the change.
26639
26640 2008-03-09  Bruno Haible  <bruno@clisp.org>
26641
26642         Extend freadptr to return also the buffer size.
26643         * lib/freadptr.h (freadptr): Add sizep argument.
26644         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26645         (freadptr): Add sizep argument. Determine buffer size like freadahead
26646         does.
26647         * tests/test-freadptr.c: Don't include freadahead.h.
26648         (main): Adapt for new calling convention of freadptr.
26649         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26650         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26651         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26652         tests/test-freadptr2.sh.
26653         (Depends): Remove freadahead.
26654         (TESTS): Add test-freadptr2.sh.
26655         (check_PROGRAMS): Add test-freadptr2.
26656
26657 2008-03-09  Bruno Haible  <bruno@clisp.org>
26658
26659         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26660         Report and solution by Simon Josefsson.
26661
26662 2008-03-06  Bruno Haible  <bruno@clisp.org>
26663
26664         Make fflush after ungetc work on BSD platforms.
26665         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26666         * tests/test-fflush2.c: New file.
26667         * tests/test-fflush2.sh: New file.
26668         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26669         tests/test-fflush2.c.
26670         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26671         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26672
26673 2008-03-06  Eric Blake  <ebb9@byu.net>
26674
26675         Likewise for ftello.
26676         * modules/ftello (Dependencies): Add extensions.
26677         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26678
26679 2008-03-06  Bruno Haible  <bruno@clisp.org>
26680
26681         * modules/fseeko (Dependencies): Add extensions.
26682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26683         Needed on glibc systems.
26684
26685 2008-03-06  Bruno Haible  <bruno@clisp.org>
26686
26687         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26688         email address.
26689         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26690
26691 2008-03-06  Bruno Haible  <bruno@clisp.org>
26692
26693         * users.txt: Add libgnupdf.
26694
26695 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26696
26697         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26698         (Header File Substitutes, Function Substitutes,
26699         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26700         (Build robot for gnulib): Fix typo.
26701
26702 2008-03-06  Bruno Haible  <bruno@clisp.org>
26703
26704         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26705         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26706
26707 2008-03-06  Bruno Haible  <bruno@clisp.org>
26708
26709         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26710         * doc/gnulib.texi: Include it.
26711
26712 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26713
26714         * modules/func (License): Change license to unlimited; there was
26715         no LGPL parts in the module anyway.
26716
26717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26718
26719         * modules/__func__: Renamed to modules/func.
26720         * modules/__func__-tests: Renamed to modules/func-tests.
26721         * tests/test-__func__.c: Renamed to tests/test-func.c.
26722         * m4/__func__.m4: Renamed to m4/func.m4.
26723         * doc/gnulib.texi (__func__): Section renamed to func.
26724         Suggested by Eric Blake <ebb9@byu.net>.
26725
26726 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26727
26728         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26729         about __func__.  Make example self-contained.  Suggested by Eric
26730         Blake <ebb9@byu.net>.
26731
26732         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26733         Suggested by Eric Blake <ebb9@byu.net>.
26734
26735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26736
26737         * modules/__func__: New file.
26738         * modules/__func__-tests: New file.
26739         * tests/test-__func__.c: New file.
26740         * m4/__func__.m4: New file.
26741         * doc/gnulib.texi (__func__): Document __func__ module.
26742
26743 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26744
26745         * modules/byteswap (License): Re-license as LGPLv2+.
26746
26747 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26748
26749         * doc/Makefile: Add pdf target.
26750
26751 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26752
26753         * modules/inline (License): Use 'unlimited', since there are only
26754         *.m4 files in this module.
26755
26756 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26757             Bruno Haible  <bruno@clisp.org>
26758
26759         Add support for HP C 7.1 on OpenVMS 8.3.
26760         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26761
26762 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26763
26764         Update VMS specifics.
26765         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26766
26767 2008-03-02  Jim Meyering  <meyering@redhat.com>
26768
26769         Remove the last dependency on the "free" module.
26770         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26771         Reported by Bob Proulx.
26772
26773         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26774
26775         Remove useless "if" tests before free.  Deprecate "free" module.
26776         * doc/posix-functions/free.texi: Mention that this
26777         module is no longer useful.
26778         * modules/free (Notice): Say this module is obsolete.
26779         * modules/readutmp (Depends-on): Remove free.
26780         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26781         * lib/putenv.c (putenv): Likewise.
26782         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26783         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26784         * tests/test-c-strcasestr.c (main): Likewise.
26785         * tests/test-c-strstr.c (main): Likewise.
26786         * tests/test-mbscasestr1.c (main): Likewise.
26787         * tests/test-mbscasestr2.c (main): Likewise.
26788         * tests/test-mbsstr1.c (main): Likewise.
26789         * tests/test-mbsstr2.c (main): Likewise.
26790         * tests/test-memmem.c (main): Likewise.
26791         * tests/test-strcasestr.c (main): Likewise.
26792         * tests/test-striconv.c (main): Likewise.
26793         * tests/test-striconveh.c (main): Likewise.
26794         * tests/test-striconveha.c (main): Likewise.
26795         * tests/test-strstr.c (main): Likewise.
26796
26797         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26798
26799         bootstrap: sync from coreutils again
26800         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26801
26802 2008-03-01  Jim Meyering  <meyering@redhat.com>
26803
26804         bootstrap: sync from coreutils
26805         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26806         also when the target doesn't exist.
26807
26808 2008-03-01  Eric Blake  <ebb9@byu.net>
26809
26810         Fix bugs in last patch.
26811         * lib/memchr2.c (memchr2): Fix typo.
26812         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26813         extension.
26814         Reported by Bruce Korb.
26815
26816         New module 'memchr2'.
26817         * modules/memchr2: New file.
26818         * modules/memchr2-tests: Likewise.
26819         * lib/memchr2.h: Likewise.
26820         * lib/memchr2.c: Likewise, based on memchr.c.
26821         * tests/test-memchr2.c: New test.
26822         * MODULES.html.sh (String handling): Add memchr2.
26823
26824 2008-02-29  Bruno Haible  <bruno@clisp.org>
26825
26826         * modules/freadseek-tests: New file.
26827         * tests/test-freadseek.sh: New file.
26828         * tests/test-freadseek.c: New file.
26829
26830         New module 'freadseek'.
26831         * modules/freadseek: New file.
26832         * lib/freadseek.h: New file.
26833         * lib/freadseek.c: New file.
26834         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26835
26836 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26837
26838         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26839         wydawca.
26840
26841         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26842         program_invocation_name and program_invocation_short_name are
26843         present.
26844
26845 2008-02-28  Bruno Haible  <bruno@clisp.org>
26846
26847         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26848         * tests/test-freadptr.sh: Also test non-seekable stdin.
26849
26850 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26851
26852         * build-aux/bootstrap (source_base, m4_base)
26853         (doc_base, tests_base): New variables.
26854         (gnulib_tool_options): Do not hardcode base directories, use
26855         the above variables instead.
26856
26857 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26858
26859         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26860
26861 2008-02-28  Bruno Haible  <bruno@clisp.org>
26862
26863         * modules/freadptr-tests: New file.
26864         * tests/test-freadptr.sh: New file.
26865         * tests/test-freadptr.c: New file.
26866
26867         New module 'freadptr'.
26868         * modules/freadptr: New file.
26869         * lib/freadptr.h: New file.
26870         * lib/freadptr.c: New file.
26871         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26872
26873 2008-02-26  Karl Berry  <karl@freefriends.org>
26874
26875         Sync from Libtool:
26876         * libltdl/argz.c (argz_add, argz_count): New functions.
26877         * libltdl/argz.in.h: Declare them.
26878         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26879
26880 2008-02-22  Bruno Haible  <bruno@clisp.org>
26881
26882         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26883         is a pointer type.  Needed for HP-UX 10.
26884         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26885         * doc/posix-functions/gmtime_r.texi: Likewise.
26886         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26887
26888 2008-02-24  Bruno Haible  <bruno@clisp.org>
26889
26890         * modules/environ-tests: New file.
26891         * tests/test-environ.c: New file.
26892
26893         New module 'environ'.
26894         * modules/environ: New file.
26895         * lib/unistd.in.h (environ): New declaration.
26896         * m4/environ.m4: New file.
26897         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26898         after use.
26899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26900         HAVE_DECL_ENVIRON.
26901         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26902         HAVE_DECL_ENVIRON.
26903         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26904         wrong claim that 'environ' is missing on some systems.
26905         * modules/execute (Depends-on): Add environ.
26906         * lib/execute.c (environ): Remove fallback declaration.
26907         * modules/pipe (Depends-on): Add environ.
26908         * lib/pipe.c (environ): Remove fallback declaration.
26909         * modules/setenv (Depends-on): Add environ.
26910         * lib/setenv.c (environ): Remove fallback declaration.
26911         * modules/unsetenv (Depends-on): Add environ.
26912         * lib/unsetenv.c (environ): Remove fallback declaration.
26913         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26914         m4/environ.m4.
26915         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26916         (gl_PREREQ_UNSETENV): Likewise.
26917
26918 2008-02-24  Bruno Haible  <bruno@clisp.org>
26919
26920         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26921
26922 2008-02-20  Bob Proulx  <bob@proulx.com>
26923
26924         Enable use of older two part flavor 'git describe'.
26925         * build-aux/git-version-gen: If using the older two part flavor of
26926         git version then recreate the third part now present in the
26927         newer three part flavor of git describe.
26928
26929 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26930
26931         * lib/fts.c (fts_build): Typo correction to comment.
26932
26933 2008-02-17  Bruno Haible  <bruno@clisp.org>
26934
26935         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26936         generating no-op conflicts.
26937
26938 2008-02-17  Bruno Haible  <bruno@clisp.org>
26939
26940         Speed up by 10%.
26941         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26942         result_entries, rather than an index-based loop.
26943
26944 2008-02-17  Bruno Haible  <bruno@clisp.org>
26945
26946         Speed up by 25%.
26947         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26948         'hashcode_cached'.
26949         (entry_create): New function.
26950         (entry_hashcode): Use the cached hashcode if possible.
26951         (read_changelog_file, try_split_merged_entry): Use entry_create.
26952
26953 2008-02-17  Bruno Haible  <bruno@clisp.org>
26954
26955         Speed up from O(n^2) to O(n) for long ChangeLog files.
26956         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26957         (read_changelog_file): Change implementation of entries_reversed list
26958         to rbtreehash.
26959         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26960
26961 2008-02-17  Bruno Haible  <bruno@clisp.org>
26962
26963         New option --split-merged-entry.
26964         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26965         (find_paragraph_end, try_split_merged_entry): New functions.
26966         (long_options): Add option --split-merged-entry.
26967         (usage): Document option --split-merged-entry.
26968         (main): Implement option --split-merged-entry.
26969         Reported by Eric Blake.
26970
26971 2008-02-17  Bruno Haible  <bruno@clisp.org>
26972
26973         * lib/git-merge-changelog.c: Include c-strstr.h.
26974         (main): Support the "git pull --rebase" situation.
26975         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26976         Reported by Eric Blake.
26977
26978 2008-02-16  Eric Blake  <ebb9@byu.net>
26979
26980         Avoid doubling \ in common case of "c-maybe" quoting style.
26981         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26982         eliding outer quotes.
26983         * lib/quotearg.h: Document this.
26984         * tests/test-quotearg.c (result_strings, inputs, results_g)
26985         (flag_results, locale_results): Test it by adding a new string to
26986         each test group.
26987         (compare_strings): Test new string.
26988
26989 2008-02-13  Eric Blake  <ebb9@byu.net>
26990
26991         Avoid trigraph quoting in default output.
26992         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26993         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26994         unless explicitly requested.
26995         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26996
26997 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26998
26999         Don't rely on signed integer overflowing to negative value.
27000         * lib/getugroups.c (getugroups): Include <limits.h>.
27001         Instead, compare against INT_MAX, and increment only if the test passes.
27002
27003 2008-02-13  Jim Meyering  <meyering@redhat.com>
27004         and Eric Blake  <ebb9@byu.net>
27005
27006         Avoid shadowing warning and compile errors on Linux.
27007         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27008         forwarding macros on Linux.
27009         (dcgettext): Define a stub, for Linux.
27010         (results_g, main): Avoid warnings.
27011
27012 2008-02-12  Eric Blake  <ebb9@byu.net>
27013
27014         Silence warning in last patch.
27015         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27016
27017         Quotearg part 4: add tests, fix c-maybe colon quoting.
27018         * lib/quotearg.h: Improve documentation.
27019         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27020         escapes when adding outer quotes.  When quoting trigraphs, use
27021         valid C notation.  When quoting NUL, omit extra characters if next
27022         character is not digit.  Alter prototype.
27023         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27024         callers.
27025         * modules/quotearg-tests: New module.
27026         * tests/test-quotearg.c: New test.
27027
27028 2008-02-07  Eric Blake  <ebb9@byu.net>
27029
27030         Quotearg part 3: add flag to control outer quote elision.
27031         * lib/quotearg.h (c_maybe_quoting_style): New style.
27032         (enum quoting_flags): Better documentation of flags.
27033         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27034         c-maybe style.
27035         (quotearg_buffer_restyled): Handle new flag to elide outer
27036         quotes.
27037
27038         Quotearg part 2: add flag that can control NUL elision.
27039         * lib/quotearg.h (set_quoting_flags): New prototype.
27040         * lib/quotearg.c (struct quoting_options): Add flag field.
27041         (set_quoting_flags): New function.
27042         (quotearg_buffer_restyled): Add flags parameter.
27043         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27044         (quotearg_n_options): Set the flag, since length cannot be
27045         returned.
27046         (quoting_options_from_style): Default flags correctly.
27047
27048         Quotearg part 1: more wrappers, restore quotearg_char state.
27049         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27050         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27051         (quotearg_colon_mem): New wrappers.
27052         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27053         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27054         functions.
27055         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27056         (quotearg_colon_mem): New functions.
27057
27058 2008-02-11  Bruno Haible  <bruno@clisp.org>
27059
27060         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27061         library in the current directory: it does not work with parallel make.
27062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27063
27064 2008-02-11  Bruno Haible  <bruno@clisp.org>
27065
27066         * .gitattributes: New file.
27067
27068 2008-02-11  Jim Meyering  <meyering@redhat.com>
27069
27070         useless-if-before-free: Fix reversed exit values.
27071         * build-aux/useless-if-before-free: Use correct values
27072         for EXIT_MATCH and EXIT_NO_MATCH.
27073
27074         * build-aux/useless-if-before-free: Close stdout carefully.
27075
27076 2008-02-10  Bruno Haible  <bruno@clisp.org>
27077
27078         New module 'git-merge-changelog'.
27079         * modules/git-merge-changelog: New file.
27080         * lib/git-merge-changelog.c: New file.
27081
27082 2008-02-10  Jim Meyering  <meyering@redhat.com>
27083
27084         useless-if-before-free: New option: --list (-l).
27085
27086         useless-if-before-free: Don't exit immediately upon open failure.
27087         * build-aux/useless-if-before-free: Exit 2 for errors.
27088         Upon failure to open a file, don't exit immediately.
27089         Rather, just warn and continue with any remaining files.
27090
27091 2008-02-10  Bruno Haible  <bruno@clisp.org>
27092
27093         New abstract list operation 'node_set_value'.
27094         * lib/gl_list.h (gl_list_node_set_value): New function.
27095         (struct gl_list_implementation): New field node_set_value.
27096         * lib/gl_list.c (gl_list_node_set_value): New function.
27097         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27098         (gl_array_list_implementation): Update.
27099         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27100         (gl_carray_list_implementation): Update.
27101         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27102         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27103         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27104         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27105         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27106         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27107         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27108         Update.
27109         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27110         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27111         (gl_sublist_list_implementation): Update.
27112
27113 2008-02-10  Bruno Haible  <bruno@clisp.org>
27114
27115         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27116         Needed when ELEMENT is #defined to 'some_type *'.
27117
27118 2008-02-10  Jim Meyering  <meyering@redhat.com>
27119
27120         New script and module: useless-if-before-free
27121         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27122         * build-aux/useless-if-before-free: New file.
27123         * modules/useless-if-before-free: New file.
27124
27125         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27126
27127         xstrtol_error: Fix typo.
27128         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27129         s/exit_failure/exit_status/.
27130
27131 2008-02-09  Jim Meyering  <meyering@redhat.com>
27132
27133         New script and module: gitlog-to-changelog
27134         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27135         * modules/gitlog-to-changelog: New file.
27136         * build-aux/gitlog-to-changelog: New file.
27137
27138 2008-02-08  Jim Meyering  <meyering@redhat.com>
27139
27140         Avoid two "parameter unused" warnings.
27141         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27142         Mark "st" as used.
27143
27144         Use "git COMMAND", not "git-COMMAND".
27145         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27146         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27147         * build-aux/git-version-gen: Use "git status", not "git-status".
27148
27149 2008-02-07  Bruno Haible  <bruno@clisp.org>
27150
27151         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27152         Avoids a crash on Windows Vista.
27153         Reported by Adam Strzelecki <ono@java.pl> via
27154         Simon Josefsson <simon@josefsson.org>.
27155
27156 2008-02-06  Bruno Haible  <bruno@clisp.org>
27157
27158         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27159         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27160         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27162         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27164         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27165         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27168         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27173         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27174         left-adjust flag.
27175         * tests/test-snprintf-posix.h (test_function): Likewise.
27176         * tests/test-sprintf-posix.h (test_function): Likewise.
27177         * tests/test-vasprintf-posix.c (test_function): Likewise.
27178         * doc/posix-functions/fprintf.texi: Update.
27179         * doc/posix-functions/printf.texi: Update.
27180         * doc/posix-functions/snprintf.texi: Update.
27181         * doc/posix-functions/sprintf.texi: Update.
27182         * doc/posix-functions/vfprintf.texi: Update.
27183         * doc/posix-functions/vprintf.texi: Update.
27184         * doc/posix-functions/vsnprintf.texi: Update.
27185         * doc/posix-functions/vsprintf.texi: Update.
27186         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27187
27188 2008-02-06  Bruno Haible  <bruno@clisp.org>
27189
27190         Fix bug introduced on 2008-01-26.
27191         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27192
27193 2008-02-06  Bruno Haible  <bruno@clisp.org>
27194
27195         Fix bug introduced on 2007-06-10.
27196         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27197         !NEED_PRINTF_FLAG_ZERO.
27198
27199 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27200
27201         getloadavg: use libperfstat on AIX5
27202         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27203
27204 2008-02-03  Bruno Haible  <bruno@clisp.org>
27205
27206         * lib/diffseq.h: Add comments about required #includes.
27207         Reported by Michael Biggs <gnulib@doubleplum.net>.
27208
27209 2008-02-01  Bruno Haible  <bruno@clisp.org>
27210
27211         * users.txt: Add gnuit.
27212
27213 2008-01-31  Bruno Haible  <bruno@clisp.org>
27214
27215         * lib/md4.c (set_uint32): Mark as inline.
27216         * lib/md5.c (set_uint32): Likewise.
27217         * lib/sha1.c (set_uint32): Likewise.
27218         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27219         * m4/md5.m4 (gl_MD5): Likewise.
27220         * m4/sha1.m4 (gl_SHA1): Likewise.
27221
27222 2008-01-31  Jim Meyering  <meyering@redhat.com>
27223
27224         Use "sizeof VAR", rather than a literal "4".
27225         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27226         * lib/md4.c (md4_read_ctx): Likewise.
27227         * lib/sha1.c (sha1_read_ctx): Likewise.
27228
27229 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27230
27231         * tests/test-sha1.c: New file, based on test-md5.c.
27232
27233         * modules/crypto/sha1-tests: New file.
27234
27235 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27236
27237         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27238
27239 2008-01-31  Jim Meyering  <meyering@redhat.com>
27240
27241         Prefer "sizeof v" over the equivalent "4".
27242         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27243         * lib/md5.c (set_uint32): Likewise.
27244         * lib/sha1.c (set_uint32): Likewise.
27245
27246 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27247
27248         * lib/sha1.c (set_uint32): Mark function as static.
27249
27250 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27251
27252         md2: clarify comments to say that alignment is not required.
27253         * lib/md2.h: Remove warning about alignment in comment.
27254         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27255         never been required.
27256
27257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27258
27259         md4: adapt alignment constraint fix from sha1.
27260         * lib/md4.c (set_uint32): New function, from sha1.c
27261         (md4_read_ctx): Use it.
27262         (md4_finish_ctx): Doc fix.
27263         * lib/md4.h: Doc fix.
27264
27265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27266
27267         md5: adapt alignment constraint fix from sha1.
27268         * lib/md5.c (set_uint32): New function, from sha1.c
27269         (md5_read_ctx): Use it.
27270         (md5_finish_ctx): Doc fix.
27271         * lib/md5.h: Doc fix.
27272
27273 2008-01-30  Peter Palfrader  <weasel@debian.org>
27274
27275         sha1: remove the result buffer alignment constraint
27276         * lib/sha1.c (set_uint32): New function.
27277         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27278         constraint.
27279         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27280         * lib/sha1.h: Likewise.
27281
27282 2008-01-30  Andreas Schwab  <schwab@suse.de>
27283             Bruno Haible  <bruno@clisp.org>
27284
27285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27286         correct definition of LDBL_MIN_EXP.
27287
27288 2008-01-30  Karl Berry  <karl@gnu.org>
27289
27290         * config/srclist-update: try to preserve x bit on updates.
27291         * config/srclistvars.sh: update for karl.
27292
27293 2008-01-29  Jim Meyering  <meyering@redhat.com>
27294
27295         vasnprintf.c: Avoid warning about unused label
27296         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27297         "overflow" label definition and associated code with the
27298         same cpp condition that guards the sole use of that label.
27299
27300 2008-01-26  Bruno Haible  <bruno@clisp.org>
27301
27302         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27303         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27304         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27305         * lib/isnanl-nolibm.h (isnanl): Likewise.
27306         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27307
27308 2008-01-26  Bruno Haible  <bruno@clisp.org>
27309
27310         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27311         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27312
27313 2008-01-26  Bruno Haible  <bruno@clisp.org>
27314
27315         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27316         GCC >= 4.0 built-in.
27317         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27318
27319 2008-01-26  Bruno Haible  <bruno@clisp.org>
27320
27321         Rename isnan, applicable to 'double' only, to isnand.
27322         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27323         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27324         (configure.ac): Update.
27325         (Include): Replace "isnan.h" with "isnand.h".
27326         * m4/isnand.m4: Renamed from m4/isnan.m4.
27327         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27328         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27329         instead of isnan.c.
27330         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27331         instead of HAVE_ISNAN_IN_LIBC.
27332         (isnand): Renamed from isnan.
27333         * lib/isnand.c: New file.
27334         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27335         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27336         (Makefile.am): Update.
27337         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27338         Include isnand.h instead of isnan.h.
27339         (main): Test isnand instead of isnan.
27340         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27341         isnan-nolibm.
27342         * modules/frexp (Depends-on): Likewise.
27343         * modules/frexp-tests (Depends-on): Likewise.
27344         * modules/frexp-nolibm (Depends-on): Likewise.
27345         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27346         * modules/isfinite (Depends-on): Likewise.
27347         * modules/round-tests (Depends-on): Likewise.
27348         * modules/signbit (Depends-on): Likewise.
27349         * modules/signbit-tests (Depends-on): Likewise.
27350         * modules/snprintf-posix (Depends-on): Likewise.
27351         * modules/sprintf-posix (Depends-on): Likewise.
27352         * modules/trunc-tests (Depends-on): Likewise.
27353         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27354         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27355         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27356         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27357         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27358         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27359         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27360         * modules/vasnprintf-posix (Depends-on): Likewise.
27361         * modules/vasprintf-posix (Depends-on): Likewise.
27362         * modules/vfprintf-posix (Depends-on): Likewise.
27363         * modules/vsnprintf-posix (Depends-on): Likewise.
27364         * modules/vsprintf-posix (Depends-on): Likewise.
27365         * lib/frexp.c: Include isnand.h instead of isnan.h.
27366         (ISNAN): Set to isnand instead of isnan.
27367         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27368         (gl_isfinited): Use isnand instead of isnan.
27369         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27370         (gl_signbitd): Use isnand instead of isnan.
27371         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27372         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27373         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27374         (main): Use isnand instead of isnan.
27375         * tests/test-round1.c: Include isnand.h.
27376         (main): Use isnand instead of isnan.
27377         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27378         (ISNAN): Set to isnand instead of isnan.
27379         * tests/test-trunc1.c: Include isnand.h.
27380         (main): Use isnand instead of isnan.
27381         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27382         (equal): Use isnand instead of isnan.
27383         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27384         isnand-nolibm.
27385         * NEWS: Mention the change.
27386
27387 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27388             Bruno Haible  <bruno@clisp.org>
27389
27390         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27391         the GCC builtins for signbits are present and set
27392         REPLACE_SIGNBIT_USING_GCC if so.
27393         * lib/math.in.h (signbit): Define using GCC builtins if
27394         REPLACE_SIGNBIT_USING_GCC is set.
27395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27396         REPLACE_SIGNBIT_USING_GCC.
27397         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27398
27399 2008-01-25  Jim Meyering  <meyering@redhat.com>
27400
27401         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27402         * lib/poll.c: Include <config.h>, not "config.h".
27403         * tests/test-getaddrinfo.c: Likewise.
27404
27405 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27406
27407         * modules/sockets-tests: New file.
27408
27409 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27410
27411         * modules/sockets: New module, can be used to call WSA_Startup and
27412         WSA_Cleanup when needed.
27413
27414         * lib/sockets.h, lib/sockets.c: New files.
27415
27416         * m4/sockets.m4: New file.
27417
27418         * tests/test-sockets.c: New file.
27419
27420 2008-01-19  Bruno Haible  <bruno@clisp.org>
27421
27422         * doc/posix-headers: Renamed from doc/headers.
27423         * doc/posix-functions: Renamed from doc/functions.
27424         * doc/gnulib.texi: Update.
27425
27426 2008-01-19  Bruno Haible  <bruno@clisp.org>
27427
27428         * doc/glibc-functions/strcasestr.texi: Include contents of
27429         doc/functions/strcasestr.texi, fixing the list of platforms.
27430         * doc/functions/strcasestr.texi: Remove file.
27431
27432 2008-01-19  Bruno Haible  <bruno@clisp.org>
27433
27434         * doc/glibc-functions/memmem.texi: Include contents of
27435         doc/functions/memmem.texi.
27436         * doc/functions/memmem.texi: Remove file.
27437
27438 2008-01-18  Bruno Haible  <bruno@clisp.org>
27439
27440         * doc/glibc-functions/*.texi: New files.
27441         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27442         to use the new files.
27443
27444 2008-01-17  Bruno Haible  <bruno@clisp.org>
27445
27446         * tests/test-gethostname.c (main): Fix printf statement.
27447
27448 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27449
27450         * modules/gethostname-tests: New file.
27451
27452         * tests/test-gethostname.c: New file.
27453
27454 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27455
27456         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27457         used by the UNAME case.  Reported by Bruno Haible
27458         <bruno@clisp.org>.
27459
27460 2008-01-17  Eric Blake  <ebb9@byu.net>
27461
27462         Convert c-strcasestr to be more efficient.
27463         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27464         (Depends-on): Add c-strcase, remove malloca, strnlen.
27465         * tests/test-c-strcasestr.c (main): Enhance test.
27466         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27467
27468 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27469
27470         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27471         Use it in creating po/Makevars.
27472
27473 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27474
27475         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27476         Applications that requires it should initialize libgcrypt
27477         manually.
27478
27479 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27480
27481         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27482
27483 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27484
27485         Fix problem with getdate on mingw32 reported by Simon Josefsson
27486         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27487         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27488         tzname", when deciding whether to declare tzname.
27489         * lib/strftime.c (tzname): Likewise.
27490
27491 2008-01-15  Bruno Haible  <bruno@clisp.org>
27492
27493         Work around a MacOS X 10.5 bug in frexpl().
27494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27495         * doc/functions/frexpl.texi: Document the bug.
27496         Reported by Elias Pipping <pipping@gentoo.org>.
27497
27498 2008-01-14  Eric Blake  <ebb9@byu.net>
27499
27500         Touch up previous patch.
27501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27502         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27503
27504         Convert strcasestr module to use Two-Way algorithm.
27505         * modules/strcasestr-simple: New module, based on the old
27506         strcasestr, but with Two-Way rather than KMP.
27507         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27508         * lib/string.in.h (rpl_strcasestr): Declare.
27509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27510         performance.
27511         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27512         * modules/string (Makefile.am): Support strcasestr.
27513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27514         * modules/strcasestr-tests (Depends-on): Check for alarm.
27515         * tests/test-strcasestr.c: Augment test.
27516         * lib/str-two-way.h: Clean up stray macro.
27517         * NEWS: Document new module.
27518         * MODULES.html.sh (string handling): Likewise.
27519         * doc/functions/strcasestr.texi: New file.
27520         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27521         here, since it is not a POSIX function.
27522
27523 2008-01-14  Colin Watson  <cjwatson@debian.org>
27524             Bruno Haible  <bruno@clisp.org>
27525
27526         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27527         works fine; if not, set REPLACE_STRSIGNAL.
27528         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27530         REPLACE_STRSIGNAL.
27531         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27532         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27533         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27534
27535 2008-01-14  Bruno Haible  <bruno@clisp.org>
27536
27537         * modules/strsignal (Include): Change to <string.h>.
27538
27539 2008-01-14  Colin Watson  <cjwatson@debian.org>
27540
27541         * modules/argp (Notice): Add a notice recommending to change
27542         XGETTEXT_OPTIONS.
27543         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27544
27545 2008-01-13  Colin Watson  <cjwatson@debian.org>
27546
27547         * modules/strsignal-tests: New file.
27548         * tests/test-strsignal.c: New file.
27549
27550         * lib/strsignal.c: New file, from glibc with modifications.
27551         * lib/siglist.h: New file, from glibc with modifications.
27552         * lib/string.in.h (strsignal): New declaration.
27553         * m4/strsignal.m4: New file.
27554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27555         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27556         * modules/strsignal: New file.
27557         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27558         HAVE_DECL_STRSIGNAL.
27559
27560 2008-01-13  Bruno Haible  <bruno@clisp.org>
27561
27562         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27563         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27564         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27566
27567 2008-01-13  Bruno Haible  <bruno@clisp.org>
27568
27569         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27570         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27571         * lib/argp.h (__attribute__): Likewise.
27572         * lib/c-stack.c (__attribute__): Likewise.
27573         * lib/error.h (__attribute__): Likewise.
27574         * lib/fts.c (__attribute__): Likewise.
27575         * lib/openat.h (__attribute__): Likewise.
27576         * lib/stdio.in.h (__attribute__): Likewise.
27577         * lib/string.in.h (__attribute__): Likewise.
27578         * lib/utimens.c (__attribute__): Likewise.
27579         * lib/vasnprintf.h (__attribute__): Likewise.
27580         * lib/xalloc.h (__attribute__): Likewise.
27581         * lib/xprintf.h (__attribute__): Likewise.
27582         * lib/xstrtol.h (__attribute__): Likewise.
27583         * lib/xvasprintf.h (__attribute__): Likewise.
27584
27585 2008-01-12  Bruno Haible  <bruno@clisp.org>
27586
27587         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27588         * doc/glibc-headers/a.out.texi: New file.
27589         * doc/glibc-headers/aliases.texi: New file.
27590         * doc/glibc-headers/alloca.texi: New file.
27591         * doc/glibc-headers/ar.texi: New file.
27592         * doc/glibc-headers/argp.texi: New file.
27593         * doc/glibc-headers/argz.texi: New file.
27594         * doc/glibc-headers/byteswap.texi: New file.
27595         * doc/glibc-headers/crypt.texi: New file.
27596         * doc/glibc-headers/endian.texi: New file.
27597         * doc/glibc-headers/envz.texi: New file.
27598         * doc/glibc-headers/err.texi: New file.
27599         * doc/glibc-headers/error.texi: New file.
27600         * doc/glibc-headers/execinfo.texi: New file.
27601         * doc/glibc-headers/fpu_control.texi: New file.
27602         * doc/glibc-headers/fstab.texi: New file.
27603         * doc/glibc-headers/fts.texi: New file.
27604         * doc/glibc-headers/getopt.texi: New file.
27605         * doc/glibc-headers/ieee754.texi: New file.
27606         * doc/glibc-headers/ifaddrs.texi: New file.
27607         * doc/glibc-headers/libintl.texi: New file.
27608         * doc/glibc-headers/mcheck.texi: New file.
27609         * doc/glibc-headers/mntent.texi: New file.
27610         * doc/glibc-headers/obstack.texi: New file.
27611         * doc/glibc-headers/paths.texi: New file.
27612         * doc/glibc-headers/printf.texi: New file.
27613         * doc/glibc-headers/pty.texi: New file.
27614         * doc/glibc-headers/resolv.texi: New file.
27615         * doc/glibc-headers/shadow.texi: New file.
27616         * doc/glibc-headers/sysexits.texi: New file.
27617         * doc/glibc-headers/ttyent.texi: New file.
27618
27619 2008-01-12  Jim Meyering  <meyering@redhat.com>
27620
27621         announce-gen: emit Gnulib's git-based version string.
27622         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27623         New option --gnulib-version=V, where V is expected to be
27624         the output of running git describe in the gnulib directory.
27625         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27626         not useful, and plan to stop publishing an xdelta file with each
27627         coreutils release.
27628
27629         * build-aux/announce-gen: Also check for lzma-compressed files.
27630
27631 2008-01-11  Bruno Haible  <bruno@clisp.org>
27632
27633         * tests/test-memmem.c (main): Increase maximum allowed time.
27634         * tests/test-strstr.c (main): Likewise.
27635
27636 2008-01-11  Bruno Haible  <bruno@clisp.org>
27637
27638         * doc/functions/memmem.texi: Add more precisions about platforms.
27639         * doc/functions/strstr.texi: Likewise.
27640
27641 2008-01-10  Eric Blake  <ebb9@byu.net>
27642
27643         * m4/strstr.m4: Delete cruft from copy-n-paste.
27644         Reported by Bruno Haible.
27645
27646 2008-01-10  Bruno Haible  <bruno@clisp.org>
27647
27648         Make c-strstr rely on strstr.
27649         * lib/c-strstr.c: Don't include str-kmp.h.
27650         (c_strstr): Define in terms of strstr.
27651         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27652         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27653
27654 2008-01-10  Bruno Haible  <bruno@clisp.org>
27655
27656         * doc/gnulib.texi (String Functions in C Locale): New section.
27657         * doc/c-ctype.texi: New file.
27658         * doc/c-strcase.texi: New file.
27659         * doc/c-strcaseeq.texi: New file.
27660         * doc/c-strcasestr.texi: New file.
27661         * doc/c-strstr.texi: New file.
27662         * doc/c-strtod.texi: New file.
27663         * doc/c-strtold.texi: New file.
27664
27665 2008-01-10  Eric Blake  <ebb9@byu.net>
27666
27667         * lib/relocatable.h: Fix a comment.
27668
27669 2008-01-10  Eric Blake  <ebb9@byu.net>
27670
27671         Share two-way algorithm.
27672         * lib/str-two-way.h: New file, merged from...
27673         * lib/memmem.c: ...here...
27674         * lib/strstr.c: ...and here.
27675         * modules/memmem (Files): Use it.
27676         * modules/strstr (Files): Likewise.
27677
27678         Avoid quadratic strstr implementations.
27679         * lib/strstr.c: New file.
27680         * m4/strstr.m4: Likewise.
27681         * modules/strstr: Likewise.
27682         * modules/strstr-tests: Likewise.
27683         * tests/test-strstr.c: Likewise.
27684         * lib/string.in.h (rpl_strstr): Declare.
27685         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27687         * modules/string (Makefile.am): Likewise.
27688         * MODULES.html.sh (string handling): Mention new module.
27689         * doc/functions/strstr.texi (strstr): Document the bug.
27690
27691 2008-01-10  Bruno Haible  <bruno@clisp.org>
27692
27693         * lib/relocatable.h (relocate): State whether result is freshly
27694         allocated or not.
27695         * lib/relocatable.c (relocate): Return a freshly allocated string
27696         instead of a pointer to a privately held string.
27697         Reported by Sylvain Beucler <beuc@gnu.org>.
27698
27699 2008-01-10  Colin Watson  <cjwatson@debian.org>
27700
27701         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27702         s/S_ISNLK/S_ISLNK/.
27703
27704 2008-01-09  Bruno Haible  <bruno@clisp.org>
27705
27706         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27707         and other files.
27708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27709         if it's only a guess.
27710         * modules/memmem: Simplify by depending on memmem-simple.
27711
27712 2008-01-09  Bruno Haible  <bruno@clisp.org>
27713
27714         Work around OpenBSD 4.0 tdelete() bug.
27715         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27716         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27717         macros and don't redefine the enum values.
27718         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27719         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27720         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27721
27722 2008-01-09  Bruno Haible  <bruno@clisp.org>
27723
27724         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27725         (main): Don't perform the tests if setlocale did not install a UTF-8
27726         locale. Needed on OpenBSD 4.0.
27727         * modules/wcwidth-tests (Depends-on): Add localcharset.
27728
27729 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27730
27731         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27732         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27733         * NEWS: announce this.
27734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27735
27736 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27737         and Eric Blake  <ebb9@byu.net>
27738
27739         Add memmem-simple module.
27740         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27741         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27742         * modules/memmem-simple: New file.
27743         * modules/memmem (Description): Tweak.
27744         * MODULES.html.sh (string handling): Mention new module.
27745         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27746         addressed by memmem-simple.
27747         * NEWS: Document the difference.
27748
27749 2008-01-09  Eric Blake  <ebb9@byu.net>
27750
27751         Give gcc some memmem optimization hints.
27752         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27753         (strcasestr): Declare as pure.
27754         * modules/memmem (Maintainer): Claim my implementation.
27755
27756 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27757
27758         Support AIX 6.1 and higher.
27759         * build-aux/config.libpath: Likewise.
27760         * build-aux/config.rpath: Likewise.
27761
27762 2008-01-08  Jim Meyering  <meyering@redhat.com>
27763             Bruno Haible  <bruno@clisp.org>
27764
27765         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27766         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27767         Reported by Peter Fales in
27768         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27769
27770 2008-01-08  Bruno Haible  <bruno@clisp.org>
27771
27772         * modules/unictype/category-of (Depends-on): Add
27773         unictype/category-none.
27774         * modules/unictype/category-and-tests (Depends-on): Add
27775         unictype/category-{L,N,Lu,Nd}.
27776         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27777         * modules/unictype/category-or-tests (Depends-on): Add
27778         unictype/category-{L,N}.
27779         * modules/unictype/category-name-tests (Depends-on): Add
27780         unictype/category-{Z,Nl}.
27781         Reported by Simon Josefsson.
27782
27783 2008-01-08  Bruno Haible  <bruno@clisp.org>
27784
27785         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27786         convention better.
27787         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27788         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27789         Reported by Peter Miller <millerp@canb.auug.org.au>.
27790
27791 2008-01-08  Eric Blake  <ebb9@byu.net>
27792
27793         Rewrite memmem to guarantee linear complexity without malloc.
27794         * lib/memmem.c (memmem): Use Two-Way rather than
27795         Knuth-Morris-Pratt, to allow O(1) space usage.
27796         (critical_factorization, two_way_short_needle)
27797         (two_way_long_needle): New functions.
27798         (knuth_morris_pratt): Delete.
27799         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27800         Add stdint.
27801         * tests/test-memmem.c (main): Add tests for periodic needle and
27802         sublinear performance.
27803         * doc/functions/memmem.texi (memmem): Document other deficiencies
27804         in cygwin and older glibc.
27805
27806 2008-01-08  Bruno Haible  <bruno@clisp.org>
27807
27808         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27809         augmentation.
27810
27811 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27812
27813         Add a configure time option: --disable-acl.
27814         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27815         AC_ARG_ENABLE(acl).
27816
27817 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27818
27819         * tests/test-localename.c: Don't include obsolete "setenv.h".
27820
27821         * modules/localename-tests (Depends-on): Need unsetenv.
27822
27823 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27824
27825         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27826
27827 2008-01-06  Colin Watson  <cjwatson@debian.org>
27828
27829         * users.txt: Add man-db.
27830
27831 2008-01-07  Bruno Haible  <bruno@clisp.org>
27832
27833         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27834         previous section name.
27835
27836 2008-01-07  Bruno Haible  <bruno@clisp.org>
27837
27838         * lib/progname.c (set_program_name): Don't strip off a leading
27839         "lt-" prefix outside a .libs directory.
27840         Suggested by Paul Eggert.
27841
27842 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27843             Bruno Haible  <bruno@clisp.org>
27844
27845         Improve memory cleanup in 'relocatable' module.
27846         * lib/relocatable.h (compute_curr_prefix): Change return type to
27847         'char *'.
27848         * lib/relocatable.c (compute_curr_prefix): Change return type to
27849         'char *'. Free curr_installdir after use.
27850         (relocate): Free curr_prefix_better after use.
27851         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27852
27853 2008-01-01  Bruno Haible  <bruno@clisp.org>
27854
27855         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27856         failure on older glibc systems.
27857         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27858
27859 2008-01-05  Eric Blake  <ebb9@byu.net>
27860
27861         Avoid quadratic system memmem.
27862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27863         Reported by Ralf Wildenhues.
27864
27865         Fix memmem test for mingw.
27866         * modules/memmem-tests (configure.ac): Check for alarm.
27867         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27868         it.
27869         * doc/functions/memmem.texi: New file.
27870         * doc/gnulib.texi (Function Substitutes): Add memmem.
27871         Reported by Bruno Haible.
27872
27873 2008-01-04  Bruno Haible  <bruno@clisp.org>
27874
27875         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27876         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27877         gl_HEADER_STRING_H_DEFAULTS.
27878
27879 2008-01-04  Eric Blake  <ebb9@byu.net>
27880
27881         Shorten duration of memmem test.
27882         * tests/test-memmem.c (main): Use alarm to declare failure if test
27883         is taking too long.
27884         Reported by Ralf Wildenhues.
27885
27886 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27887
27888         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27889         string, needed by strerror.
27890
27891 2008-01-03  Colin Watson  <cjwatson@debian.org>
27892             Bruno Haible  <bruno@clisp.org>
27893
27894         * doc/gnulib-tool.texi (Localization): New section.
27895
27896 2008-01-02  Bruno Haible  <bruno@clisp.org>
27897
27898         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27899         variables to 'unsigned char *' type.
27900         Reported by Paul Eggert.
27901
27902 2008-01-02  Jim Meyering  <jim@meyering.net>
27903
27904         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27905
27906 2007-12-31  Jim Meyering  <jim@meyering.net>
27907
27908         Avoid use of private FTS type name.
27909         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27910
27911 2007-12-30  Karl Berry  <karl@gnu.org>
27912
27913         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27914         work around defect in Texinfo and/or the standalone Info browser.
27915
27916 2007-12-30  Bruno Haible  <bruno@clisp.org>
27917
27918         Unify 5 copies of the KMP code.
27919         * lib/str-kmp.h: New file.
27920         * lib/c-strcasestr.c: Include str-kmp.h.
27921         (knuth_morris_pratt): Remove function.
27922         (c_strcasestr): Update.
27923         * lib/c-strstr.c: Include str-kmp.h.
27924         (knuth_morris_pratt): Remove function.
27925         (c_strcasestr): Update.
27926         * lib/mbscasestr.c: Include str-kmp.h.
27927         (knuth_morris_pratt_unibyte): Remove function.
27928         * lib/mbsstr.c: Include str-kmp.h.
27929         (knuth_morris_pratt_unibyte): Remove function.
27930         * lib/strcasestr.c: Include str-kmp.h.
27931         (knuth_morris_pratt): Remove function.
27932         (strcasestr): Update.
27933         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27934         * modules/c-strstr (Files): Likewise.
27935         * modules/mbscasestr (Files): Likewise.
27936         * modules/mbsstr (Files): Likewise.
27937         * modules/strcasestr (Files): Likewise.
27938         Suggested by Paul Eggert.
27939
27940 2007-12-30  Bruno Haible  <bruno@clisp.org>
27941
27942         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27943         defined.
27944
27945 2007-12-30  Bruno Haible  <bruno@clisp.org>
27946
27947         * lib/xmalloca.h: Include xalloc.h.
27948         (xnmalloca): New macro.
27949
27950 2007-12-30  Bruno Haible  <bruno@clisp.org>
27951
27952         * lib/malloca.h (nmalloca): New macro.
27953         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27954         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27955         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27956         knuth_morris_pratt_multibyte): Likewise.
27957         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27958         knuth_morris_pratt_multibyte): Likewise.
27959         * lib/memmem.c (knuth_morris_pratt): Likewise.
27960         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27961
27962 2007-12-25  Bruno Haible  <bruno@clisp.org>
27963
27964         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27965         * lib/glob.c: Don't include openat.h.
27966         (link_exists2_p): Add back the code that deals with the
27967         !GLOB_ALTDIRFUNC case.
27968         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27969         let it do the filename concatenation.
27970         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27971         * modules/glob (Depends-on): Remove openat.
27972
27973 2007-12-31  Bruno Haible  <bruno@clisp.org>
27974
27975         * modules/dirfd (License): Change to LGPLv2+.
27976         Approved by Jim Meyering.
27977
27978 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27979
27980         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27981         when multiplying M by sizeof (size_t).
27982
27983 2007-12-10  Martin Lambers  <marlam@marlam.de>
27984
27985         Override getpagesize on mingw.
27986         * lib/getpagesize.c: New file.
27987         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27988         * modules/getpagesize (Files): Add lib/getpagesize.c.
27989         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27991         REPLACE_GETPAGESIZE.
27992         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27993
27994 2007-12-25  Bruno Haible  <bruno@clisp.org>
27995
27996         * modules/localcharset (Notice): New field.
27997         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27998         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27999
28000 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28001             Bruno Haible  <bruno@clisp.org>
28002
28003         Avoid using the syntax symbol() in formatted documentation.
28004         * MODULES.html.sh (func_module): When replacing symbol() with a
28005         hyperlink, remove the parentheses. Show an error if some remain.
28006         Recognize and render the '...' syntax.
28007         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28008         Rework. Add paragraph about GCC's inlining.
28009         * doc/alloca.texi: Likewise.
28010         * doc/error.texi: Remove parentheses from symbol reference.
28011         * doc/gnulib-intro.texi: Likewise.
28012         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28013         * modules/fnmatch (Description): Reword to say "the ... function".
28014         * modules/full-read (Description): Likewise.
28015         * modules/full-write (Description): Likewise.
28016         * modules/safe-read (Description): Likewise.
28017         * modules/safe-write (Description): Likewise.
28018         * modules/strchrnul (Description): Likewise.
28019         * modules/trim (Description): Likewise.
28020         * modules/error (Description): Remove parentheses from symbol
28021         references.
28022         * modules/verror (Description): Likewise.
28023         Reported by Karl Berry.
28024
28025 2007-12-25  Bruno Haible  <bruno@clisp.org>
28026
28027         Fixup after 2007-10-16 commit.
28028         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28029
28030 2007-12-24  Bruno Haible  <bruno@clisp.org>
28031
28032         Make --enable-relocatable work with DESTDIR.
28033         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28034         to compute installdir from destprog.
28035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28036         also set the RELOC_DESTDIR variable.
28037         Reported by Левашев Иван <octagram@bluebottle.com>.
28038
28039 2007-12-24  Bruno Haible  <bruno@clisp.org>
28040
28041         Fix link error due to xalloc_die().
28042         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28043         of xreadlink.
28044         * lib/relocwrapper.c: Update comments.
28045         * build-aux/install-reloc: Remove xreadlink.c from file list.
28046         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28047         xreadlink.c.
28048         Reported by Левашев Иван <octagram@bluebottle.com>.
28049
28050 2007-12-24  Bruno Haible  <bruno@clisp.org>
28051
28052         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28053         * lib/setenv.h: Remove file.
28054         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28055         lib/setenv.h.
28056         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28057         (Depends-on): Add stdlib.
28058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28059         gl_FUNC_UNSETENV.
28060         (Include): Replace setenv.h with <stdlib.h>.
28061         * modules/unsetenv: New file.
28062         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28063         * lib/unsetenv.c: Include <stdlib.h> first.
28064         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28065         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28066         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28067         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28068         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28069         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28071         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28072         * doc/functions/unsetenv.texi: Update.
28073         * modules/xsetenv (Depends-on): Add unsetenv.
28074         * modules/getdate (Depends-on): Likewise.
28075         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28076         * lib/xsetenv.c: Don't include setenv.h.
28077         * lib/getdate.y: Likewise.
28078         * lib/relocwrapper.c: Likewise.
28079         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28080         (Depends-on): Add stdlib.
28081         * NEWS: Mention the changes.
28082         Reported by Левашев Иван <octagram@bluebottle.com>.
28083
28084 2007-12-23  Bruno Haible  <bruno@clisp.org>
28085
28086         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28087         indentation.
28088
28089 2007-12-23  Bruno Haible  <bruno@clisp.org>
28090
28091         * lib/c-strcasestr.c: Add more comments.
28092         * lib/c-strstr.c: Likewise.
28093         * lib/mbscasestr.c: Likewise.
28094         * lib/mbsstr.c: Likewise.
28095         * lib/strcasestr.c: Likewise.
28096         * lib/memmem.c: Likewise.
28097
28098 2007-12-23  Bruno Haible  <bruno@clisp.org>
28099
28100         * tests/test-memmem.c: Include <string.h> first.
28101
28102 2007-12-22  Bruno Haible  <bruno@clisp.org>
28103
28104         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28105         the contents of $testsbase.
28106         Reported by Ralf Wildenhues.
28107
28108 2007-12-22  Bruno Haible  <bruno@clisp.org>
28109
28110         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28111         two variables local_ldadd_before, local_ldadd_last.
28112
28113 2007-12-20  Eric Blake  <ebb9@byu.net>
28114
28115         Work around circular library issue when cross-compiling.
28116         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28117         that progname.o does not need to pull in rpl_memcmp.
28118
28119 2007-12-19  Eric Blake  <ebb9@byu.net>
28120
28121         Fix memmem to avoid O(n^2) worst-case complexity.
28122         * lib/memmem.c (knuth_morris_pratt): New function.
28123         (memmem): Use it if first few naive iterations fail.
28124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28125         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28126         * modules/memchr (License): Likewise.
28127         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28128         malloca.
28129         * tests/test-memmem.c: Rewrite, borrowing ideas from
28130         test-mbsstr1.c; the old version wouldn't even compile!
28131         * modules/memmem-tests: New file.
28132         * lib/string.in.h (rpl_memmem): Add declaration.
28133         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28135         REPLACE_MEMMEM.
28136
28137 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28138
28139         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28140         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28141         before any system include files, and undef after them all.  This
28142         should fix a problem on VMS reported by John E. Malmberg in
28143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28144
28145 2007-12-17  Eric Blake  <ebb9@byu.net>
28146
28147         Revert addition of verify, for BSD/OS.
28148         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28149         can't handle large files, for the sake of obsolete platforms.
28150         * modules/fseeko (Depends-on): Remove verify.
28151         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28152         * doc/functions/ftello.texi (ftello): Likewise.
28153         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28154         Reported by Larry Jones.
28155
28156 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28157
28158         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28159         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28160
28161 2007-12-17  Jim Meyering  <meyering@redhat.com>
28162
28163         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28164         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28165         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28166         * modules/getcwd (Depends-on): Add openat.
28167         Reported by Petr Salinger.
28168
28169 2007-12-17  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28172         avoid a segmentation fault of the configure test on x86_64 systems.
28173
28174 2007-12-15  Jim Meyering  <meyering@redhat.com>
28175
28176         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28177
28178 2007-12-13  Eric Blake  <ebb9@byu.net>
28179
28180         Another fseek test.
28181         * tests/test-fseek.c (main): Also test ungetc handling.
28182         * tests/test-fseeko.c (main): Likewise.
28183         * modules/fseeko (Depends-on): Add verify.
28184         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28185         large.
28186         Reported by Larry Jones.
28187
28188         Fix fseeko on mingw.
28189         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28190         seek.
28191
28192         Beef up fseek tests.
28193         * tests/test-fseek.c (main): Also test eof handling.
28194         * tests/test-fseeko.c (main): Likewise.
28195         Reported by Larry Jones.
28196
28197 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28198
28199         Fix fseeko on BSD-based platforms.
28200         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28201         successful seek.
28202
28203 2007-12-12  Eric Blake  <ebb9@byu.net>
28204
28205         Allow circular dependency of separate libtests.a
28206         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28207         when use_libtests.
28208
28209 2007-12-11  Eric Blake  <ebb9@byu.net>
28210
28211         Fix bug with -0.0L in previous patch.
28212         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28213         * tests/test-isnan.c (main): Also test on zeroes.
28214         * tests/test-isnanf.c (main): Likewise.
28215         * tests/test-isnanl.h (main): Likewise.
28216
28217         Detect pseudo-denormals on x86 even when cross-compiling.
28218         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28219         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28220         invalid bit patterns that happen to satisfy ==.
28221
28222         Avoid link failures with separate libtests.a.
28223         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28224         last, to satisfy circular dependencies.
28225
28226 2007-12-11  Eric Blake  <ebb9@byu.net>
28227         and Bruno Haible  <bruno@clisp.org>
28228
28229         Fix OpenBSD 4.0 <float.h> handling of long double.
28230         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28231         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28232         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28233
28234 2007-12-11  Jim Meyering  <meyering@redhat.com>
28235
28236         * users.txt: Add libvirt.
28237
28238         Support versions of autoconf prior to 2.59c.
28239         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28240         if it is not already defined.
28241
28242 2007-12-09  Bruno Haible  <bruno@clisp.org>
28243
28244         Let 'gnulib-tool --import' collect sources needed for the tests in
28245         tests/ rather than in lib/.
28246         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28247         argument. If true, add rules to generate libtests.a, and put libtests.a
28248         into $(LDADD). Consider source files in subdirectories and set
28249         uses_subdirs.
28250         (func_emit_initmacro_start, func_emit_initmacro_end,
28251         func_emit_initmacro_done): Pass all arguments explicitly.
28252         (func_import): Determine two module lists main_modules,
28253         testsrelated_modules. Determine use_libtests. Determine two variables
28254         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28255         instead of just sed_transform_lib_file. Determine two variables
28256         main_files and testsrelated_files. Compute 'files' as the union of
28257         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28258         func_add_or_update. In the generated gnulib-comp.m4, collect the
28259         object files for tests/ in different variables than those for lib/.
28260         Substitute LIBTESTS_LIBDEPS.
28261         (func_create_testdir): Combine the uses_subdirs results from
28262         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28263
28264 2007-12-09  Bruno Haible  <bruno@clisp.org>
28265
28266         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28267         the build-aux directory.
28268
28269 2007-12-09  Bruno Haible  <bruno@clisp.org>
28270
28271         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28272         introduced on 2006-09-09.
28273
28274 2007-12-07  Jim Meyering  <meyering@redhat.com>
28275
28276         Let these macros work also with autoconf-2.59.
28277         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28278         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28280
28281 2007-12-06  Jim Meyering  <meyering@redhat.com>
28282
28283         Avoid a configure-time syntax error in gl_FUNC_ACL.
28284         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28285         function in each branch, before testing the cache variable.
28286
28287 2007-12-04  Eric Blake  <ebb9@byu.net>
28288
28289         Make scripts executable.
28290         * build-aux/config.guess: Add execute permissions.
28291         * build-aux/config.sub: Likewise.
28292         * build-aux/gendocs.sh: Likewise.
28293
28294         Fix frexp on mingw.
28295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28296         cross-compiling.
28297         * doc/functions/frexp.texi (frexp): Document the bug.
28298
28299         Make cygwin fseeko check more reliable.
28300         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28301         version numbers, rather than unrelated feature check.
28302         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28303         * doc/functions/ftello.texi (ftello): Likewise.
28304         Reported by Bruno Haible.
28305
28306         * m4/strerror.m4: Bump version number.
28307
28308 2007-12-03  Bruno Haible  <bruno@clisp.org>
28309
28310         * doc/functions/mprotect.texi: Mention the mingw problem.
28311
28312 2007-12-03  Eric Blake  <ebb9@byu.net>
28313
28314         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28315         REPLACE_STRERROR is initialized before this macro.
28316
28317 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28318
28319         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28320         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28321         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28322         put -lsec in even for programs other than 'ls'.  This fixes a problem
28323         for gettext reported by Bruno Haible in
28324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28325         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28326         Add support for Solaris 10.  This isn't efficient, but should get the
28327         job done for now.
28328
28329 2007-12-03  James Youngman  <jay@gnu.org>
28330
28331         * doc/regexprops-generic.texi: change "an close-group" to "a
28332         close-group" and "illegal" to "not allowed".
28333
28334 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28335
28336         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28337         pr_byname.h. Needed for the rare case when the maintainer has done
28338         "make maintainer-clean" in the source directory and then attempts a
28339         build outside the source directory.
28340         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28341         scripts_byname.h.
28342
28343 2007-12-02  Martin Lambers <marlam@marlam.de>
28344             Bruno Haible  <bruno@clisp.org>
28345
28346         * lib/getpagesize.h: Remove file.
28347         * lib/unistd.in.h: Include declaration of getpagesize here.
28348         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28349         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28350         HAVE_SYS_PARAM_H.
28351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28352         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28353         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28354         (Depends-on): Add unistd.
28355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28356         (Include): Use <unistd.h> instead of getpagesize.h.
28357         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28358         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28359         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28360         gl_GETPAGESIZE invocation, already handled by module dependency.
28361         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28362
28363 2007-12-02  Bruno Haible  <bruno@clisp.org>
28364
28365         * modules/strings-tests: New file.
28366         * tests/test-strings.c: New file.
28367
28368         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28369         * lib/strings.in.h: New file.
28370         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28371         * m4/strings_h.m4: New file.
28372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28373         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28374         * modules/strings: New file.
28375         * modules/string (Makefile.am): Update.
28376         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28377         Reported by Karl Berry.
28378
28379 2007-12-01  Eric Blake  <ebb9@byu.net>
28380
28381         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28382         accomodate fix in cygwin 1.5.25.
28383
28384 2007-12-01  Jim Meyering  <meyering@redhat.com>
28385
28386         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28387         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28388         that would inhibit utf8-optimization of a regexp containing line-
28389         or buffer-anchors, e.g., `^', `$'.
28390
28391 2007-11-30  Bruno Haible  <bruno@clisp.org>
28392
28393         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28394         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28395         glthread_recursive_lock_init.
28396         * lib/lock.c (glthread_recursive_lock_init)
28397         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28399
28400 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28401
28402         New function qset_acl, like set_acl but with syscall semantics.
28403         * lib/acl.h (qset_acl): New decl.
28404         * lib/acl.c (qset_acl): New function.
28405         (set_acl): Use new function.  Use more-consistent diagnostics.
28406
28407 2007-11-28  Jim Meyering  <meyering@redhat.com>
28408
28409         * modules/physmem (License): Change from GPL to LGPLv2+.
28410
28411 2007-11-26  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28414         'long double' type has excess precision.
28415         Reported by Jim Meyering in
28416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28417
28418 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28419
28420         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28421         Sync from <http://gnu.org/licenses>.
28422         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28423         with license text from same location.
28424         * doc/maintain.texi, doc/standards.texi:  Sync from
28425         <http://savannah.gnu.org/projects/gnustandards>.
28426
28427 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28428         and Jim Meyering  <meyering@redhat.com>
28429
28430         Adjust getdate' grammar to accept a slightly more regular language.
28431         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28432         Before, the former was rejected.
28433         * lib/getdate.y (digits_to_date_time): New function, factored
28434         out of ...
28435         (number): ...here.  Just call digits_to_date_time.
28436         (hybrid): New non-terminal to handle an <unsigned number,
28437         signed relative offset> sequence consistently.
28438
28439 2007-11-18  Jim Meyering  <meyering@redhat.com>
28440
28441         Pull my changes from coreutils:
28442         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28443         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28444         use of $gnulib_tool_option_extras, so that it's separated from the
28445         preceding argument.
28446
28447         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28448         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28449         parent destination directories before copying a file into place.
28450
28451 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28452
28453         bootstrap: work also with 4-argument variant of AC_INIT
28454         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28455
28456 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28457
28458         Port test-getaddrinfo to Solaris.
28459         Problem reported by Bruno Haible in
28460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28461         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28462         explanation of setting 'hints'.
28463         Don't reject an implementation merely because it returns EAI_SERVICE.
28464         (EAI_SERVICE): Define to 0 if not defined.
28465
28466 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28467
28468         The license of gnu-make and posix-shell is now "GPLed build tool".
28469         * modules/gnu-make (License): Likewise.
28470         * modules/posix-shell (License): Likewise.
28471
28472         New module posix-shell, for determining a POSIX shell
28473         or perhaps something that is close enough to a POSIX shell.
28474         * m4/posix-shell.m4: New file.
28475         * modules/posix-shell: New file.
28476
28477         * MODULES.html.sh: Mention new module.
28478
28479         New module gnu-make, for determining whether we're using GNU Make.
28480         * m4/gnu-make.m4: New file.
28481         * modules/gnu-make: New file.
28482         * MODULES.html.sh: Mention new module.
28483
28484 2007-11-14  Jim Meyering  <meyering@redhat.com>
28485
28486         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28487         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28488         use this macro to create a function _definition_.
28489         Remove useless "#undef ARGMATCH_DIE".
28490
28491 2007-11-14  Bruno Haible  <bruno@clisp.org>
28492
28493         * lib/config.charset: Update for OpenBSD 4.1.
28494         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28495
28496 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28497
28498         Document 64-bit #if problems in stdint.texi.
28499         * doc/headers/stdint.texi (stdint.h): Mention problems with
28500         64-bit-#if, and how to work around them.
28501
28502         Don't insist on 'long long int' support in the preprocessor.  It
28503         breaks too many things.  For example, PRIdMAX still uses a 'long
28504         long int' format with the latest Sun compiler, even though
28505         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28506         preprocessor problem.  This causes the latest coreutils to dump
28507         core on Solaris 10 sparc with the Sun C compiler.
28508         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28509         the troublesome expressions at configure-time, not at #if-time.
28510         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28511         preprocessor.
28512         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28513         compile-time C checks, done at 'configure'-time.
28514         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28515         * modules/inttypes (Makefile): Substitute the new symbols that
28516         gl_INTTYPES_H now generates.
28517         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28518
28519 2007-11-12  Bruno Haible  <bruno@clisp.org>
28520
28521         Tests for Unicode character classification functions.
28522
28523         * modules/unictype/bidicategory-byname-tests: New file.
28524         * modules/unictype/bidicategory-name-tests: New file.
28525         * modules/unictype/bidicategory-of-tests: New file.
28526         * modules/unictype/bidicategory-test-tests: New file.
28527         * modules/unictype/block-list-tests: New file.
28528         * modules/unictype/block-of-tests: New file.
28529         * modules/unictype/block-test-tests: New file.
28530         * modules/unictype/category-C-tests: New file.
28531         * modules/unictype/category-Cc-tests: New file.
28532         * modules/unictype/category-Cf-tests: New file.
28533         * modules/unictype/category-Cn-tests: New file.
28534         * modules/unictype/category-Co-tests: New file.
28535         * modules/unictype/category-Cs-tests: New file.
28536         * modules/unictype/category-L-tests: New file.
28537         * modules/unictype/category-Ll-tests: New file.
28538         * modules/unictype/category-Lm-tests: New file.
28539         * modules/unictype/category-Lo-tests: New file.
28540         * modules/unictype/category-Lt-tests: New file.
28541         * modules/unictype/category-Lu-tests: New file.
28542         * modules/unictype/category-M-tests: New file.
28543         * modules/unictype/category-Mc-tests: New file.
28544         * modules/unictype/category-Me-tests: New file.
28545         * modules/unictype/category-Mn-tests: New file.
28546         * modules/unictype/category-N-tests: New file.
28547         * modules/unictype/category-Nd-tests: New file.
28548         * modules/unictype/category-Nl-tests: New file.
28549         * modules/unictype/category-No-tests: New file.
28550         * modules/unictype/category-P-tests: New file.
28551         * modules/unictype/category-Pc-tests: New file.
28552         * modules/unictype/category-Pd-tests: New file.
28553         * modules/unictype/category-Pe-tests: New file.
28554         * modules/unictype/category-Pf-tests: New file.
28555         * modules/unictype/category-Pi-tests: New file.
28556         * modules/unictype/category-Po-tests: New file.
28557         * modules/unictype/category-Ps-tests: New file.
28558         * modules/unictype/category-S-tests: New file.
28559         * modules/unictype/category-Sc-tests: New file.
28560         * modules/unictype/category-Sk-tests: New file.
28561         * modules/unictype/category-Sm-tests: New file.
28562         * modules/unictype/category-So-tests: New file.
28563         * modules/unictype/category-Z-tests: New file.
28564         * modules/unictype/category-Zl-tests: New file.
28565         * modules/unictype/category-Zp-tests: New file.
28566         * modules/unictype/category-Zs-tests: New file.
28567         * modules/unictype/category-and-not-tests: New file.
28568         * modules/unictype/category-and-tests: New file.
28569         * modules/unictype/category-byname-tests: New file.
28570         * modules/unictype/category-name-tests: New file.
28571         * modules/unictype/category-none-tests: New file.
28572         * modules/unictype/category-of-tests: New file.
28573         * modules/unictype/category-or-tests: New file.
28574         * modules/unictype/category-test-withtable-tests: New file.
28575         * modules/unictype/combining-class-tests: New file.
28576         * modules/unictype/ctype-alnum-tests: New file.
28577         * modules/unictype/ctype-alpha-tests: New file.
28578         * modules/unictype/ctype-blank-tests: New file.
28579         * modules/unictype/ctype-cntrl-tests: New file.
28580         * modules/unictype/ctype-digit-tests: New file.
28581         * modules/unictype/ctype-graph-tests: New file.
28582         * modules/unictype/ctype-lower-tests: New file.
28583         * modules/unictype/ctype-print-tests: New file.
28584         * modules/unictype/ctype-punct-tests: New file.
28585         * modules/unictype/ctype-space-tests: New file.
28586         * modules/unictype/ctype-upper-tests: New file.
28587         * modules/unictype/ctype-xdigit-tests: New file.
28588         * modules/unictype/decimal-digit-tests: New file.
28589         * modules/unictype/digit-tests: New file.
28590         * modules/unictype/mirror-tests: New file.
28591         * modules/unictype/numeric-tests: New file.
28592         * modules/unictype/property-alphabetic-tests: New file.
28593         * modules/unictype/property-ascii-hex-digit-tests: New file.
28594         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28595         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28596         * modules/unictype/property-bidi-block-separator-tests: New file.
28597         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28598         * modules/unictype/property-bidi-common-separator-tests: New file.
28599         * modules/unictype/property-bidi-control-tests: New file.
28600         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28601         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28602         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28603         * modules/unictype/property-bidi-european-digit-tests: New file.
28604         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28605         * modules/unictype/property-bidi-left-to-right-tests: New file.
28606         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28607         * modules/unictype/property-bidi-other-neutral-tests: New file.
28608         * modules/unictype/property-bidi-pdf-tests: New file.
28609         * modules/unictype/property-bidi-segment-separator-tests: New file.
28610         * modules/unictype/property-bidi-whitespace-tests: New file.
28611         * modules/unictype/property-byname-tests: New file.
28612         * modules/unictype/property-combining-tests: New file.
28613         * modules/unictype/property-composite-tests: New file.
28614         * modules/unictype/property-currency-symbol-tests: New file.
28615         * modules/unictype/property-dash-tests: New file.
28616         * modules/unictype/property-decimal-digit-tests: New file.
28617         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28618         * modules/unictype/property-deprecated-tests: New file.
28619         * modules/unictype/property-diacritic-tests: New file.
28620         * modules/unictype/property-extender-tests: New file.
28621         * modules/unictype/property-format-control-tests: New file.
28622         * modules/unictype/property-grapheme-base-tests: New file.
28623         * modules/unictype/property-grapheme-extend-tests: New file.
28624         * modules/unictype/property-grapheme-link-tests: New file.
28625         * modules/unictype/property-hex-digit-tests: New file.
28626         * modules/unictype/property-hyphen-tests: New file.
28627         * modules/unictype/property-id-continue-tests: New file.
28628         * modules/unictype/property-id-start-tests: New file.
28629         * modules/unictype/property-ideographic-tests: New file.
28630         * modules/unictype/property-ids-binary-operator-tests: New file.
28631         * modules/unictype/property-ids-trinary-operator-tests: New file.
28632         * modules/unictype/property-ignorable-control-tests: New file.
28633         * modules/unictype/property-iso-control-tests: New file.
28634         * modules/unictype/property-join-control-tests: New file.
28635         * modules/unictype/property-left-of-pair-tests: New file.
28636         * modules/unictype/property-line-separator-tests: New file.
28637         * modules/unictype/property-logical-order-exception-tests: New file.
28638         * modules/unictype/property-lowercase-tests: New file.
28639         * modules/unictype/property-math-tests: New file.
28640         * modules/unictype/property-non-break-tests: New file.
28641         * modules/unictype/property-not-a-character-tests: New file.
28642         * modules/unictype/property-numeric-tests: New file.
28643         * modules/unictype/property-other-alphabetic-tests: New file.
28644         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28645         * modules/unictype/property-other-grapheme-extend-tests: New file.
28646         * modules/unictype/property-other-id-continue-tests: New file.
28647         * modules/unictype/property-other-id-start-tests: New file.
28648         * modules/unictype/property-other-lowercase-tests: New file.
28649         * modules/unictype/property-other-math-tests: New file.
28650         * modules/unictype/property-other-uppercase-tests: New file.
28651         * modules/unictype/property-paired-punctuation-tests: New file.
28652         * modules/unictype/property-paragraph-separator-tests: New file.
28653         * modules/unictype/property-pattern-syntax-tests: New file.
28654         * modules/unictype/property-pattern-white-space-tests: New file.
28655         * modules/unictype/property-private-use-tests: New file.
28656         * modules/unictype/property-punctuation-tests: New file.
28657         * modules/unictype/property-quotation-mark-tests: New file.
28658         * modules/unictype/property-radical-tests: New file.
28659         * modules/unictype/property-sentence-terminal-tests: New file.
28660         * modules/unictype/property-soft-dotted-tests: New file.
28661         * modules/unictype/property-space-tests: New file.
28662         * modules/unictype/property-terminal-punctuation-tests: New file.
28663         * modules/unictype/property-test-tests: New file.
28664         * modules/unictype/property-titlecase-tests: New file.
28665         * modules/unictype/property-unassigned-code-value-tests: New file.
28666         * modules/unictype/property-unified-ideograph-tests: New file.
28667         * modules/unictype/property-uppercase-tests: New file.
28668         * modules/unictype/property-variation-selector-tests: New file.
28669         * modules/unictype/property-white-space-tests: New file.
28670         * modules/unictype/property-xid-continue-tests: New file.
28671         * modules/unictype/property-xid-start-tests: New file.
28672         * modules/unictype/property-zero-width-tests: New file.
28673         * modules/unictype/scripts-tests: New file.
28674         * modules/unictype/syntax-c-ident-tests: New file.
28675         * modules/unictype/syntax-c-whitespace-tests: New file.
28676         * modules/unictype/syntax-java-ident-tests: New file.
28677         * modules/unictype/syntax-java-whitespace-tests: New file.
28678         * tests/unictype/test-bidi_byname.c: New file.
28679         * tests/unictype/test-bidi_name.c: New file.
28680         * tests/unictype/test-bidi_of.c: New file.
28681         * tests/unictype/test-bidi_test.c: New file.
28682         * tests/unictype/test-block_list.c: New file.
28683         * tests/unictype/test-block_of.c: New file.
28684         * tests/unictype/test-block_test.c: New file.
28685         * tests/unictype/test-categ_and.c: New file.
28686         * tests/unictype/test-categ_and_not.c: New file.
28687         * tests/unictype/test-categ_byname.c: New file.
28688         * tests/unictype/test-categ_name.c: New file.
28689         * tests/unictype/test-categ_none.c: New file.
28690         * tests/unictype/test-categ_of.c: New file.
28691         * tests/unictype/test-categ_or.c: New file.
28692         * tests/unictype/test-categ_test_withtable.c: New file.
28693         * tests/unictype/test-combining.c: New file.
28694         * tests/unictype/test-decdigit.c: New file.
28695         * tests/unictype/test-digit.c: New file.
28696         * tests/unictype/test-mirror.c: New file.
28697         * tests/unictype/test-numeric.c: New file.
28698         * tests/unictype/test-pr_byname.c: New file.
28699         * tests/unictype/test-pr_test.c: New file.
28700         * tests/unictype/test-predicate-part1.h: New file.
28701         * tests/unictype/test-predicate-part2.h: New file.
28702         * tests/unictype/test-scripts.c: New file.
28703         * tests/unictype/test-sy_c_ident.c: New file.
28704         * tests/unictype/test-sy_java_ident.c: New file.
28705
28706         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28707         for Unicode 5.0.0.
28708         * tests/unictype/test-categ_Cc.c: Likewise.
28709         * tests/unictype/test-categ_Cf.c: Likewise.
28710         * tests/unictype/test-categ_Cn.c: Likewise.
28711         * tests/unictype/test-categ_Co.c: Likewise.
28712         * tests/unictype/test-categ_Cs.c: Likewise.
28713         * tests/unictype/test-categ_L.c: Likewise.
28714         * tests/unictype/test-categ_Ll.c: Likewise.
28715         * tests/unictype/test-categ_Lm.c: Likewise.
28716         * tests/unictype/test-categ_Lo.c: Likewise.
28717         * tests/unictype/test-categ_Lt.c: Likewise.
28718         * tests/unictype/test-categ_Lu.c: Likewise.
28719         * tests/unictype/test-categ_M.c: Likewise.
28720         * tests/unictype/test-categ_Mc.c: Likewise.
28721         * tests/unictype/test-categ_Me.c: Likewise.
28722         * tests/unictype/test-categ_Mn.c: Likewise.
28723         * tests/unictype/test-categ_N.c: Likewise.
28724         * tests/unictype/test-categ_Nd.c: Likewise.
28725         * tests/unictype/test-categ_Nl.c: Likewise.
28726         * tests/unictype/test-categ_No.c: Likewise.
28727         * tests/unictype/test-categ_P.c: Likewise.
28728         * tests/unictype/test-categ_Pc.c: Likewise.
28729         * tests/unictype/test-categ_Pd.c: Likewise.
28730         * tests/unictype/test-categ_Pe.c: Likewise.
28731         * tests/unictype/test-categ_Pf.c: Likewise.
28732         * tests/unictype/test-categ_Pi.c: Likewise.
28733         * tests/unictype/test-categ_Po.c: Likewise.
28734         * tests/unictype/test-categ_Ps.c: Likewise.
28735         * tests/unictype/test-categ_S.c: Likewise.
28736         * tests/unictype/test-categ_Sc.c: Likewise.
28737         * tests/unictype/test-categ_Sk.c: Likewise.
28738         * tests/unictype/test-categ_Sm.c: Likewise.
28739         * tests/unictype/test-categ_So.c: Likewise.
28740         * tests/unictype/test-categ_Z.c: Likewise.
28741         * tests/unictype/test-categ_Zl.c: Likewise.
28742         * tests/unictype/test-categ_Zp.c: Likewise.
28743         * tests/unictype/test-categ_Zs.c: Likewise.
28744         * tests/unictype/test-ctype_alnum.c: Likewise.
28745         * tests/unictype/test-ctype_alpha.c: Likewise.
28746         * tests/unictype/test-ctype_blank.c: Likewise.
28747         * tests/unictype/test-ctype_cntrl.c: Likewise.
28748         * tests/unictype/test-ctype_digit.c: Likewise.
28749         * tests/unictype/test-ctype_graph.c: Likewise.
28750         * tests/unictype/test-ctype_lower.c: Likewise.
28751         * tests/unictype/test-ctype_print.c: Likewise.
28752         * tests/unictype/test-ctype_punct.c: Likewise.
28753         * tests/unictype/test-ctype_space.c: Likewise.
28754         * tests/unictype/test-ctype_upper.c: Likewise.
28755         * tests/unictype/test-ctype_xdigit.c: Likewise.
28756         * tests/unictype/test-decdigit.h: Likewise.
28757         * tests/unictype/test-digit.h: Likewise.
28758         * tests/unictype/test-numeric.h: Likewise.
28759         * tests/unictype/test-pr_alphabetic.c: Likewise.
28760         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28761         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28762         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28763         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28764         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28765         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28766         * tests/unictype/test-pr_bidi_control.c: Likewise.
28767         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28768         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28769         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28770         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28771         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28772         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28773         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28774         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28775         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28776         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28777         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28778         * tests/unictype/test-pr_combining.c: Likewise.
28779         * tests/unictype/test-pr_composite.c: Likewise.
28780         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28781         * tests/unictype/test-pr_dash.c: Likewise.
28782         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28783         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28784         * tests/unictype/test-pr_deprecated.c: Likewise.
28785         * tests/unictype/test-pr_diacritic.c: Likewise.
28786         * tests/unictype/test-pr_extender.c: Likewise.
28787         * tests/unictype/test-pr_format_control.c: Likewise.
28788         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28789         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28790         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28791         * tests/unictype/test-pr_hex_digit.c: Likewise.
28792         * tests/unictype/test-pr_hyphen.c: Likewise.
28793         * tests/unictype/test-pr_id_continue.c: Likewise.
28794         * tests/unictype/test-pr_id_start.c: Likewise.
28795         * tests/unictype/test-pr_ideographic.c: Likewise.
28796         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28797         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28798         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28799         * tests/unictype/test-pr_iso_control.c: Likewise.
28800         * tests/unictype/test-pr_join_control.c: Likewise.
28801         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28802         * tests/unictype/test-pr_line_separator.c: Likewise.
28803         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28804         * tests/unictype/test-pr_lowercase.c: Likewise.
28805         * tests/unictype/test-pr_math.c: Likewise.
28806         * tests/unictype/test-pr_non_break.c: Likewise.
28807         * tests/unictype/test-pr_not_a_character.c: Likewise.
28808         * tests/unictype/test-pr_numeric.c: Likewise.
28809         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28810         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28811         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28812         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28813         * tests/unictype/test-pr_other_id_start.c: Likewise.
28814         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28815         * tests/unictype/test-pr_other_math.c: Likewise.
28816         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28817         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28818         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28819         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28820         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28821         * tests/unictype/test-pr_private_use.c: Likewise.
28822         * tests/unictype/test-pr_punctuation.c: Likewise.
28823         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28824         * tests/unictype/test-pr_radical.c: Likewise.
28825         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28826         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28827         * tests/unictype/test-pr_space.c: Likewise.
28828         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28829         * tests/unictype/test-pr_titlecase.c: Likewise.
28830         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28831         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28832         * tests/unictype/test-pr_uppercase.c: Likewise.
28833         * tests/unictype/test-pr_variation_selector.c: Likewise.
28834         * tests/unictype/test-pr_white_space.c: Likewise.
28835         * tests/unictype/test-pr_xid_continue.c: Likewise.
28836         * tests/unictype/test-pr_xid_start.c: Likewise.
28837         * tests/unictype/test-pr_zero_width.c: Likewise.
28838         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28839         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28840
28841 2007-11-12  Bruno Haible  <bruno@clisp.org>
28842
28843         Unicode character classification functions.
28844         * lib/unictype.h: New file.
28845         * modules/unictype/base: New file.
28846         * modules/unictype/category-L: New file.
28847         * modules/unictype/category-Lu: New file.
28848         * modules/unictype/category-Ll: New file.
28849         * modules/unictype/category-Lt: New file.
28850         * modules/unictype/category-Lm: New file.
28851         * modules/unictype/category-Lo: New file.
28852         * modules/unictype/category-M: New file.
28853         * modules/unictype/category-Mn: New file.
28854         * modules/unictype/category-Mc: New file.
28855         * modules/unictype/category-Me: New file.
28856         * modules/unictype/category-N: New file.
28857         * modules/unictype/category-Nd: New file.
28858         * modules/unictype/category-Nl: New file.
28859         * modules/unictype/category-No: New file.
28860         * modules/unictype/category-P: New file.
28861         * modules/unictype/category-Pc: New file.
28862         * modules/unictype/category-Pd: New file.
28863         * modules/unictype/category-Ps: New file.
28864         * modules/unictype/category-Pe: New file.
28865         * modules/unictype/category-Pi: New file.
28866         * modules/unictype/category-Pf: New file.
28867         * modules/unictype/category-Po: New file.
28868         * modules/unictype/category-S: New file.
28869         * modules/unictype/category-Sm: New file.
28870         * modules/unictype/category-Sc: New file.
28871         * modules/unictype/category-Sk: New file.
28872         * modules/unictype/category-So: New file.
28873         * modules/unictype/category-Z: New file.
28874         * modules/unictype/category-Zs: New file.
28875         * modules/unictype/category-Zl: New file.
28876         * modules/unictype/category-Zp: New file.
28877         * modules/unictype/category-C: New file.
28878         * modules/unictype/category-Cc: New file.
28879         * modules/unictype/category-Cf: New file.
28880         * modules/unictype/category-Cs: New file.
28881         * modules/unictype/category-Co: New file.
28882         * modules/unictype/category-Cn: New file.
28883         * modules/unictype/category-or: New file.
28884         * modules/unictype/category-of: New file.
28885         * modules/unictype/category-test: New file.
28886         * modules/unictype/category-test-withtable: New file.
28887         * modules/unictype/category-byname: New file.
28888         * modules/unictype/category-none: New file.
28889         * modules/unictype/category-and: New file.
28890         * modules/unictype/category-and-not: New file.
28891         * modules/unictype/category-name: New file.
28892         * modules/unictype/combining-class: New file.
28893         * modules/unictype/category-all: New file.
28894         * modules/unictype/bidicategory-all: New file.
28895         * modules/unictype/bidicategory-byname: New file.
28896         * modules/unictype/bidicategory-name: New file.
28897         * modules/unictype/bidicategory-of: New file.
28898         * modules/unictype/bidicategory-test: New file.
28899         * modules/unictype/decimal-digit: New file.
28900         * modules/unictype/digit: New file.
28901         * modules/unictype/numeric: New file.
28902         * modules/unictype/mirror: New file.
28903         * modules/unictype/property-white-space: New file.
28904         * modules/unictype/property-alphabetic: New file.
28905         * modules/unictype/property-other-alphabetic: New file.
28906         * modules/unictype/property-not-a-character: New file.
28907         * modules/unictype/property-default-ignorable-code-point: New file.
28908         * modules/unictype/property-other-default-ignorable-code-point: New
28909         file.
28910         * modules/unictype/property-deprecated: New file.
28911         * modules/unictype/property-logical-order-exception: New file.
28912         * modules/unictype/property-variation-selector: New file.
28913         * modules/unictype/property-private-use: New file.
28914         * modules/unictype/property-unassigned-code-value: New file.
28915         * modules/unictype/property-uppercase: New file.
28916         * modules/unictype/property-other-uppercase: New file.
28917         * modules/unictype/property-lowercase: New file.
28918         * modules/unictype/property-other-lowercase: New file.
28919         * modules/unictype/property-titlecase: New file.
28920         * modules/unictype/property-soft-dotted: New file.
28921         * modules/unictype/property-id-start: New file.
28922         * modules/unictype/property-other-id-start: New file.
28923         * modules/unictype/property-id-continue: New file.
28924         * modules/unictype/property-other-id-continue: New file.
28925         * modules/unictype/property-xid-start: New file.
28926         * modules/unictype/property-xid-continue: New file.
28927         * modules/unictype/property-pattern-white-space: New file.
28928         * modules/unictype/property-pattern-syntax: New file.
28929         * modules/unictype/property-join-control: New file.
28930         * modules/unictype/property-grapheme-base: New file.
28931         * modules/unictype/property-grapheme-extend: New file.
28932         * modules/unictype/property-other-grapheme-extend: New file.
28933         * modules/unictype/property-grapheme-link: New file.
28934         * modules/unictype/property-bidi-control: New file.
28935         * modules/unictype/property-bidi-left-to-right: New file.
28936         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28937         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28938         * modules/unictype/property-bidi-european-digit: New file.
28939         * modules/unictype/property-bidi-eur-num-separator: New file.
28940         * modules/unictype/property-bidi-eur-num-terminator: New file.
28941         * modules/unictype/property-bidi-arabic-digit: New file.
28942         * modules/unictype/property-bidi-common-separator: New file.
28943         * modules/unictype/property-bidi-block-separator: New file.
28944         * modules/unictype/property-bidi-segment-separator: New file.
28945         * modules/unictype/property-bidi-whitespace: New file.
28946         * modules/unictype/property-bidi-non-spacing-mark: New file.
28947         * modules/unictype/property-bidi-boundary-neutral: New file.
28948         * modules/unictype/property-bidi-pdf: New file.
28949         * modules/unictype/property-bidi-embedding-or-override: New file.
28950         * modules/unictype/property-bidi-other-neutral: New file.
28951         * modules/unictype/property-hex-digit: New file.
28952         * modules/unictype/property-ascii-hex-digit: New file.
28953         * modules/unictype/property-ideographic: New file.
28954         * modules/unictype/property-unified-ideograph: New file.
28955         * modules/unictype/property-radical: New file.
28956         * modules/unictype/property-ids-binary-operator: New file.
28957         * modules/unictype/property-ids-trinary-operator: New file.
28958         * modules/unictype/property-zero-width: New file.
28959         * modules/unictype/property-space: New file.
28960         * modules/unictype/property-non-break: New file.
28961         * modules/unictype/property-iso-control: New file.
28962         * modules/unictype/property-format-control: New file.
28963         * modules/unictype/property-dash: New file.
28964         * modules/unictype/property-hyphen: New file.
28965         * modules/unictype/property-punctuation: New file.
28966         * modules/unictype/property-line-separator: New file.
28967         * modules/unictype/property-paragraph-separator: New file.
28968         * modules/unictype/property-quotation-mark: New file.
28969         * modules/unictype/property-sentence-terminal: New file.
28970         * modules/unictype/property-terminal-punctuation: New file.
28971         * modules/unictype/property-currency-symbol: New file.
28972         * modules/unictype/property-math: New file.
28973         * modules/unictype/property-other-math: New file.
28974         * modules/unictype/property-paired-punctuation: New file.
28975         * modules/unictype/property-left-of-pair: New file.
28976         * modules/unictype/property-combining: New file.
28977         * modules/unictype/property-composite: New file.
28978         * modules/unictype/property-decimal-digit: New file.
28979         * modules/unictype/property-numeric: New file.
28980         * modules/unictype/property-diacritic: New file.
28981         * modules/unictype/property-extender: New file.
28982         * modules/unictype/property-ignorable-control: New file.
28983         * modules/unictype/property-test: New file.
28984         * modules/unictype/property-byname: New file.
28985         * modules/unictype/property-all: New file.
28986         * modules/unictype/scripts: New file.
28987         * modules/unictype/scripts-all: New file.
28988         * modules/unictype/block-of: New file.
28989         * modules/unictype/block-test: New file.
28990         * modules/unictype/block-list: New file.
28991         * modules/unictype/block-all: New file.
28992         * modules/unictype/syntax-c-whitespace: New file.
28993         * modules/unictype/syntax-java-whitespace: New file.
28994         * modules/unictype/syntax-c-ident: New file.
28995         * modules/unictype/syntax-java-ident: New file.
28996         * modules/unictype/ctype-alnum: New file.
28997         * modules/unictype/ctype-alpha: New file.
28998         * modules/unictype/ctype-cntrl: New file.
28999         * modules/unictype/ctype-digit: New file.
29000         * modules/unictype/ctype-graph: New file.
29001         * modules/unictype/ctype-lower: New file.
29002         * modules/unictype/ctype-print: New file.
29003         * modules/unictype/ctype-punct: New file.
29004         * modules/unictype/ctype-space: New file.
29005         * modules/unictype/ctype-upper: New file.
29006         * modules/unictype/ctype-xdigit: New file.
29007         * modules/unictype/ctype-blank: New file.
29008         * lib/unictype/bidi_byname.c: New file.
29009         * lib/unictype/bidi_name.c: New file.
29010         * lib/unictype/bidi_of.c: New file.
29011         * lib/unictype/bidi_test.c: New file.
29012         * lib/unictype/bitmap.h: New file.
29013         * lib/unictype/block_test.c: New file.
29014         * lib/unictype/blocks.c: New file.
29015         * lib/unictype/categ_C.c: New file.
29016         * lib/unictype/categ_Cc.c: New file.
29017         * lib/unictype/categ_Cf.c: New file.
29018         * lib/unictype/categ_Cn.c: New file.
29019         * lib/unictype/categ_Co.c: New file.
29020         * lib/unictype/categ_Cs.c: New file.
29021         * lib/unictype/categ_L.c: New file.
29022         * lib/unictype/categ_Ll.c: New file.
29023         * lib/unictype/categ_Lm.c: New file.
29024         * lib/unictype/categ_Lo.c: New file.
29025         * lib/unictype/categ_Lt.c: New file.
29026         * lib/unictype/categ_Lu.c: New file.
29027         * lib/unictype/categ_M.c: New file.
29028         * lib/unictype/categ_Mc.c: New file.
29029         * lib/unictype/categ_Me.c: New file.
29030         * lib/unictype/categ_Mn.c: New file.
29031         * lib/unictype/categ_N.c: New file.
29032         * lib/unictype/categ_Nd.c: New file.
29033         * lib/unictype/categ_Nl.c: New file.
29034         * lib/unictype/categ_No.c: New file.
29035         * lib/unictype/categ_P.c: New file.
29036         * lib/unictype/categ_Pc.c: New file.
29037         * lib/unictype/categ_Pd.c: New file.
29038         * lib/unictype/categ_Pe.c: New file.
29039         * lib/unictype/categ_Pf.c: New file.
29040         * lib/unictype/categ_Pi.c: New file.
29041         * lib/unictype/categ_Po.c: New file.
29042         * lib/unictype/categ_Ps.c: New file.
29043         * lib/unictype/categ_S.c: New file.
29044         * lib/unictype/categ_Sc.c: New file.
29045         * lib/unictype/categ_Sk.c: New file.
29046         * lib/unictype/categ_Sm.c: New file.
29047         * lib/unictype/categ_So.c: New file.
29048         * lib/unictype/categ_Z.c: New file.
29049         * lib/unictype/categ_Zl.c: New file.
29050         * lib/unictype/categ_Zp.c: New file.
29051         * lib/unictype/categ_Zs.c: New file.
29052         * lib/unictype/categ_and.c: New file.
29053         * lib/unictype/categ_and_not.c: New file.
29054         * lib/unictype/categ_byname.c: New file.
29055         * lib/unictype/categ_name.c: New file.
29056         * lib/unictype/categ_none.c: New file.
29057         * lib/unictype/categ_of.c: New file.
29058         * lib/unictype/categ_or.c: New file.
29059         * lib/unictype/categ_test.c: New file.
29060         * lib/unictype/combining.c: New file.
29061         * lib/unictype/ctype_alnum.c: New file.
29062         * lib/unictype/ctype_alpha.c: New file.
29063         * lib/unictype/ctype_blank.c: New file.
29064         * lib/unictype/ctype_cntrl.c: New file.
29065         * lib/unictype/ctype_digit.c: New file.
29066         * lib/unictype/ctype_graph.c: New file.
29067         * lib/unictype/ctype_lower.c: New file.
29068         * lib/unictype/ctype_print.c: New file.
29069         * lib/unictype/ctype_punct.c: New file.
29070         * lib/unictype/ctype_space.c: New file.
29071         * lib/unictype/ctype_upper.c: New file.
29072         * lib/unictype/ctype_xdigit.c: New file.
29073         * lib/unictype/decdigit.c: New file.
29074         * lib/unictype/digit.c: New file.
29075         * lib/unictype/identsyntaxmap.h: New file.
29076         * lib/unictype/mirror.c: New file.
29077         * lib/unictype/numeric.c: New file.
29078         * lib/unictype/pr_alphabetic.c: New file.
29079         * lib/unictype/pr_ascii_hex_digit.c: New file.
29080         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29081         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29082         * lib/unictype/pr_bidi_block_separator.c: New file.
29083         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29084         * lib/unictype/pr_bidi_common_separator.c: New file.
29085         * lib/unictype/pr_bidi_control.c: New file.
29086         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29087         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29088         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29089         * lib/unictype/pr_bidi_european_digit.c: New file.
29090         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29091         * lib/unictype/pr_bidi_left_to_right.c: New file.
29092         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29093         * lib/unictype/pr_bidi_other_neutral.c: New file.
29094         * lib/unictype/pr_bidi_pdf.c: New file.
29095         * lib/unictype/pr_bidi_segment_separator.c: New file.
29096         * lib/unictype/pr_bidi_whitespace.c: New file.
29097         * lib/unictype/pr_byname.c: New file.
29098         * lib/unictype/pr_byname.gperf: New file.
29099         * lib/unictype/pr_combining.c: New file.
29100         * lib/unictype/pr_composite.c: New file.
29101         * lib/unictype/pr_currency_symbol.c: New file.
29102         * lib/unictype/pr_dash.c: New file.
29103         * lib/unictype/pr_decimal_digit.c: New file.
29104         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29105         * lib/unictype/pr_deprecated.c: New file.
29106         * lib/unictype/pr_diacritic.c: New file.
29107         * lib/unictype/pr_extender.c: New file.
29108         * lib/unictype/pr_format_control.c: New file.
29109         * lib/unictype/pr_grapheme_base.c: New file.
29110         * lib/unictype/pr_grapheme_extend.c: New file.
29111         * lib/unictype/pr_grapheme_link.c: New file.
29112         * lib/unictype/pr_hex_digit.c: New file.
29113         * lib/unictype/pr_hyphen.c: New file.
29114         * lib/unictype/pr_id_continue.c: New file.
29115         * lib/unictype/pr_id_start.c: New file.
29116         * lib/unictype/pr_ideographic.c: New file.
29117         * lib/unictype/pr_ids_binary_operator.c: New file.
29118         * lib/unictype/pr_ids_trinary_operator.c: New file.
29119         * lib/unictype/pr_ignorable_control.c: New file.
29120         * lib/unictype/pr_iso_control.c: New file.
29121         * lib/unictype/pr_join_control.c: New file.
29122         * lib/unictype/pr_left_of_pair.c: New file.
29123         * lib/unictype/pr_line_separator.c: New file.
29124         * lib/unictype/pr_logical_order_exception.c: New file.
29125         * lib/unictype/pr_lowercase.c: New file.
29126         * lib/unictype/pr_math.c: New file.
29127         * lib/unictype/pr_non_break.c: New file.
29128         * lib/unictype/pr_not_a_character.c: New file.
29129         * lib/unictype/pr_numeric.c: New file.
29130         * lib/unictype/pr_other_alphabetic.c: New file.
29131         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29132         * lib/unictype/pr_other_grapheme_extend.c: New file.
29133         * lib/unictype/pr_other_id_continue.c: New file.
29134         * lib/unictype/pr_other_id_start.c: New file.
29135         * lib/unictype/pr_other_lowercase.c: New file.
29136         * lib/unictype/pr_other_math.c: New file.
29137         * lib/unictype/pr_other_uppercase.c: New file.
29138         * lib/unictype/pr_paired_punctuation.c: New file.
29139         * lib/unictype/pr_paragraph_separator.c: New file.
29140         * lib/unictype/pr_pattern_syntax.c: New file.
29141         * lib/unictype/pr_pattern_white_space.c: New file.
29142         * lib/unictype/pr_private_use.c: New file.
29143         * lib/unictype/pr_punctuation.c: New file.
29144         * lib/unictype/pr_quotation_mark.c: New file.
29145         * lib/unictype/pr_radical.c: New file.
29146         * lib/unictype/pr_sentence_terminal.c: New file.
29147         * lib/unictype/pr_soft_dotted.c: New file.
29148         * lib/unictype/pr_space.c: New file.
29149         * lib/unictype/pr_terminal_punctuation.c: New file.
29150         * lib/unictype/pr_test.c: New file.
29151         * lib/unictype/pr_titlecase.c: New file.
29152         * lib/unictype/pr_unassigned_code_value.c: New file.
29153         * lib/unictype/pr_unified_ideograph.c: New file.
29154         * lib/unictype/pr_uppercase.c: New file.
29155         * lib/unictype/pr_variation_selector.c: New file.
29156         * lib/unictype/pr_white_space.c: New file.
29157         * lib/unictype/pr_xid_continue.c: New file.
29158         * lib/unictype/pr_xid_start.c: New file.
29159         * lib/unictype/pr_zero_width.c: New file.
29160         * lib/unictype/scripts.c: New file.
29161         * lib/unictype/sy_c_ident.c: New file.
29162         * lib/unictype/sy_c_whitespace.c: New file.
29163         * lib/unictype/sy_java_ident.c: New file.
29164         * lib/unictype/sy_java_whitespace.c: New file.
29165
29166         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29167         Unicode 5.0.0.
29168         * lib/unictype/blocks.h: Likewise.
29169         * lib/unictype/categ_C.h: Likewise.
29170         * lib/unictype/categ_Cc.h: Likewise.
29171         * lib/unictype/categ_Cf.h: Likewise.
29172         * lib/unictype/categ_Cn.h: Likewise.
29173         * lib/unictype/categ_Co.h: Likewise.
29174         * lib/unictype/categ_Cs.h: Likewise.
29175         * lib/unictype/categ_L.h: Likewise.
29176         * lib/unictype/categ_Ll.h: Likewise.
29177         * lib/unictype/categ_Lm.h: Likewise.
29178         * lib/unictype/categ_Lo.h: Likewise.
29179         * lib/unictype/categ_Lt.h: Likewise.
29180         * lib/unictype/categ_Lu.h: Likewise.
29181         * lib/unictype/categ_M.h: Likewise.
29182         * lib/unictype/categ_Mc.h: Likewise.
29183         * lib/unictype/categ_Me.h: Likewise.
29184         * lib/unictype/categ_Mn.h: Likewise.
29185         * lib/unictype/categ_N.h: Likewise.
29186         * lib/unictype/categ_Nd.h: Likewise.
29187         * lib/unictype/categ_Nl.h: Likewise.
29188         * lib/unictype/categ_No.h: Likewise.
29189         * lib/unictype/categ_P.h: Likewise.
29190         * lib/unictype/categ_Pc.h: Likewise.
29191         * lib/unictype/categ_Pd.h: Likewise.
29192         * lib/unictype/categ_Pe.h: Likewise.
29193         * lib/unictype/categ_Pf.h: Likewise.
29194         * lib/unictype/categ_Pi.h: Likewise.
29195         * lib/unictype/categ_Po.h: Likewise.
29196         * lib/unictype/categ_Ps.h: Likewise.
29197         * lib/unictype/categ_S.h: Likewise.
29198         * lib/unictype/categ_Sc.h: Likewise.
29199         * lib/unictype/categ_Sk.h: Likewise.
29200         * lib/unictype/categ_Sm.h: Likewise.
29201         * lib/unictype/categ_So.h: Likewise.
29202         * lib/unictype/categ_Z.h: Likewise.
29203         * lib/unictype/categ_Zl.h: Likewise.
29204         * lib/unictype/categ_Zp.h: Likewise.
29205         * lib/unictype/categ_Zs.h: Likewise.
29206         * lib/unictype/categ_of.h: Likewise.
29207         * lib/unictype/combining.h: Likewise.
29208         * lib/unictype/ctype_alnum.h: Likewise.
29209         * lib/unictype/ctype_alpha.h: Likewise.
29210         * lib/unictype/ctype_blank.h: Likewise.
29211         * lib/unictype/ctype_cntrl.h: Likewise.
29212         * lib/unictype/ctype_digit.h: Likewise.
29213         * lib/unictype/ctype_graph.h: Likewise.
29214         * lib/unictype/ctype_lower.h: Likewise.
29215         * lib/unictype/ctype_print.h: Likewise.
29216         * lib/unictype/ctype_punct.h: Likewise.
29217         * lib/unictype/ctype_space.h: Likewise.
29218         * lib/unictype/ctype_upper.h: Likewise.
29219         * lib/unictype/ctype_xdigit.h: Likewise.
29220         * lib/unictype/decdigit.h: Likewise.
29221         * lib/unictype/digit.h: Likewise.
29222         * lib/unictype/mirror.h: Likewise.
29223         * lib/unictype/numeric.h: Likewise.
29224         * lib/unictype/pr_alphabetic.h: Likewise.
29225         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29226         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29227         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29228         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29229         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29230         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29231         * lib/unictype/pr_bidi_control.h: Likewise.
29232         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29233         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29234         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29235         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29236         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29237         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29238         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29239         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29240         * lib/unictype/pr_bidi_pdf.h: Likewise.
29241         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29242         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29243         * lib/unictype/pr_combining.h: Likewise.
29244         * lib/unictype/pr_composite.h: Likewise.
29245         * lib/unictype/pr_currency_symbol.h: Likewise.
29246         * lib/unictype/pr_dash.h: Likewise.
29247         * lib/unictype/pr_decimal_digit.h: Likewise.
29248         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29249         * lib/unictype/pr_deprecated.h: Likewise.
29250         * lib/unictype/pr_diacritic.h: Likewise.
29251         * lib/unictype/pr_extender.h: Likewise.
29252         * lib/unictype/pr_format_control.h: Likewise.
29253         * lib/unictype/pr_grapheme_base.h: Likewise.
29254         * lib/unictype/pr_grapheme_extend.h: Likewise.
29255         * lib/unictype/pr_grapheme_link.h: Likewise.
29256         * lib/unictype/pr_hex_digit.h: Likewise.
29257         * lib/unictype/pr_hyphen.h: Likewise.
29258         * lib/unictype/pr_id_continue.h: Likewise.
29259         * lib/unictype/pr_id_start.h: Likewise.
29260         * lib/unictype/pr_ideographic.h: Likewise.
29261         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29262         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29263         * lib/unictype/pr_ignorable_control.h: Likewise.
29264         * lib/unictype/pr_iso_control.h: Likewise.
29265         * lib/unictype/pr_join_control.h: Likewise.
29266         * lib/unictype/pr_left_of_pair.h: Likewise.
29267         * lib/unictype/pr_line_separator.h: Likewise.
29268         * lib/unictype/pr_logical_order_exception.h: Likewise.
29269         * lib/unictype/pr_lowercase.h: Likewise.
29270         * lib/unictype/pr_math.h: Likewise.
29271         * lib/unictype/pr_non_break.h: Likewise.
29272         * lib/unictype/pr_not_a_character.h: Likewise.
29273         * lib/unictype/pr_numeric.h: Likewise.
29274         * lib/unictype/pr_other_alphabetic.h: Likewise.
29275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29277         * lib/unictype/pr_other_id_continue.h: Likewise.
29278         * lib/unictype/pr_other_id_start.h: Likewise.
29279         * lib/unictype/pr_other_lowercase.h: Likewise.
29280         * lib/unictype/pr_other_math.h: Likewise.
29281         * lib/unictype/pr_other_uppercase.h: Likewise.
29282         * lib/unictype/pr_paired_punctuation.h: Likewise.
29283         * lib/unictype/pr_paragraph_separator.h: Likewise.
29284         * lib/unictype/pr_pattern_syntax.h: Likewise.
29285         * lib/unictype/pr_pattern_white_space.h: Likewise.
29286         * lib/unictype/pr_private_use.h: Likewise.
29287         * lib/unictype/pr_punctuation.h: Likewise.
29288         * lib/unictype/pr_quotation_mark.h: Likewise.
29289         * lib/unictype/pr_radical.h: Likewise.
29290         * lib/unictype/pr_sentence_terminal.h: Likewise.
29291         * lib/unictype/pr_soft_dotted.h: Likewise.
29292         * lib/unictype/pr_space.h: Likewise.
29293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29294         * lib/unictype/pr_titlecase.h: Likewise.
29295         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29296         * lib/unictype/pr_unified_ideograph.h: Likewise.
29297         * lib/unictype/pr_uppercase.h: Likewise.
29298         * lib/unictype/pr_variation_selector.h: Likewise.
29299         * lib/unictype/pr_white_space.h: Likewise.
29300         * lib/unictype/pr_xid_continue.h: Likewise.
29301         * lib/unictype/pr_xid_start.h: Likewise.
29302         * lib/unictype/pr_zero_width.h: Likewise.
29303         * lib/unictype/scripts.h: Likewise.
29304         * lib/unictype/scripts_byname.gperf: Likewise.
29305         * lib/unictype/sy_c_ident.h: Likewise.
29306         * lib/unictype/sy_c_whitespace.h: Likewise.
29307         * lib/unictype/sy_java_ident.h: Likewise.
29308         * lib/unictype/sy_java_whitespace.h: Likewise.
29309
29310         * lib/unictype/Makefile: New file.
29311         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29312         glibc.
29313         * lib/unictype/3level.h: New file, copied from glibc.
29314         * lib/unictype/3levelbit.h: New file.
29315
29316 2007-11-11  Bruno Haible  <bruno@clisp.org>
29317
29318         * modules/gperf: New file.
29319         * modules/iconv_open (Depends-on): Add it.
29320         (Makefile.am): Remove the GPERF definition.
29321
29322 2007-11-11  Bruno Haible  <bruno@clisp.org>
29323
29324         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29325         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29326
29327 2007-11-11  Bruno Haible  <bruno@clisp.org>
29328
29329         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29330         (usage): Remove function.
29331
29332 2007-11-11  Bruno Haible  <bruno@clisp.org>
29333
29334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29335         gl_FUNC_CEILF_LIBS.
29336         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29337         gl_FUNC_CEIL_LIBS.
29338         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29339         gl_FUNC_CEILL_LIBS.
29340         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29341         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29342         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29343
29344 2007-11-11  Bruno Haible  <bruno@clisp.org>
29345
29346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29347         roundf were declared but do not exist on functions.
29348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29349         roundl were declared but do not exist on functions.
29350         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29351         HAVE_FLOORL_AND_CEILL, respectively.
29352         Needed for Sun C on Solaris 10.
29353
29354 2007-11-11  Bruno Haible  <bruno@clisp.org>
29355
29356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29357         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29358         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29359         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29361         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29362         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29363         HAVE_DECL_ROUNDF.
29364         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29365         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29367         of HAVE_DECL_ROUND*.
29368         * modules/math (Makefile.am): Update.
29369
29370 2007-11-10  Bruno Haible  <bruno@clisp.org>
29371
29372         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29373         ptrdiff_t as m4/intl.m4.
29374
29375 2007-11-10  Jim Meyering  <meyering@redhat.com>
29376
29377         Avoid link failure for the argmatch test.
29378         * tests/test-argmatch.c (usage): Define function to avoid a link
29379         failure: argmatch_die requires a usage function.
29380
29381 2007-11-09  Bruno Haible  <bruno@clisp.org>
29382
29383         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29384         * doc/functions/vsnprintf.texi: Likewise.
29385         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29386         with a size argument < 2.
29387
29388 2007-11-09  Bruno Haible  <bruno@clisp.org>
29389
29390         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29391         buffer. Fixes an inefficiency introduced on 2007-11-03.
29392
29393 2007-11-09  Bruno Haible  <bruno@clisp.org>
29394
29395         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29396         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29397
29398 2007-11-08  Jim Meyering  <meyering@redhat.com>
29399
29400         Change cache variable name prefix "jm_" to "gl_" everywhere.
29401         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29402         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29403         * m4/uptime.m4: s/gl_/jm_/
29404
29405 2007-11-07  Bruno Haible  <bruno@clisp.org>
29406
29407         Update to GNU gettext 0.17.
29408         * m4/intl.m4: Update to GNU gettext 0.17.
29409         * m4/po.m4: Likewise.
29410         * modules/gettext (Files): Remove m4/ulonglong.m4.
29411         (configure.ac): Require gettext infrastructure from version 0.17.
29412
29413 2007-11-06  Bruno Haible  <bruno@clisp.org>
29414
29415         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29416         symbolic values are not defined in a public header.
29417         * lib/freadable.c (freadable) [QNX]: Likewise.
29418         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29419         * lib/freading.c (freading) [QNX]: Likewise.
29420         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29421         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29422         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29423         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29424         Reported by Alain Magloire.
29425
29426         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29427
29428 2007-11-05  Bruno Haible  <bruno@clisp.org>
29429
29430         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29431         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29432         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29433         Reported by Eric Blake.
29434
29435 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29436             Bruno Haible  <bruno@clisp.org>
29437
29438         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29439         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29440         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29441         (malloc): Undefine also before including <stdlib.h>.
29442         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29443         Needed on OSF/1 4.0.
29444
29445 2007-11-05  Jim Meyering  <meyering@redhat.com>
29446
29447         git-version-gen: sync from coreutils.
29448         * build-aux/git-version-gen: Add comments.
29449         Change the first '-' to '.' in the snapshot version string,
29450         e.g., 6.9-377-08144 -> 6.9.377-08144
29451         Remove first parameter.
29452         Don't declare a version "-dirty" merely because a time
29453         stamp has changed.
29454
29455 2007-11-04  Bruno Haible  <bruno@clisp.org>
29456
29457         * lib/lock.h: Protect all macro definitions containing an 'if'
29458         statement through a "do { ... } while (0)".
29459         * lib/tls.h: Likewise.
29460
29461 2007-11-04  Bruno Haible  <bruno@clisp.org>
29462
29463         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29464
29465 2007-11-04  Bruno Haible  <bruno@clisp.org>
29466
29467         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29468         * modules/fprintf-posix (Depends-on): Add nocrash.
29469         * modules/snprintf-posix (Depends-on): Likewise.
29470         * modules/sprintf-posix (Depends-on): Likewise.
29471         * modules/vasnprintf-posix (Depends-on): Likewise.
29472         * modules/vasprintf-posix (Depends-on): Likewise.
29473         * modules/vfprintf-posix (Depends-on): Likewise.
29474         * modules/vsnprintf-posix (Depends-on): Likewise.
29475         * modules/vsprintf-posix (Depends-on): Likewise.
29476         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29477         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29478         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29479         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29480         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29481         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29482         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29483
29484 2007-11-04  Bruno Haible  <bruno@clisp.org>
29485
29486         * modules/nocrash: New file.
29487         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29488         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29489
29490 2007-11-04  Bruno Haible  <bruno@clisp.org>
29491
29492         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29493         precision handling.
29494         * tests/test-vasprintf-posix.c (test_function): Likewise.
29495         * tests/test-snprintf-posix.h (test_function): Likewise.
29496         * tests/test-sprintf-posix.h (test_function): Likewise.
29497
29498         Fix *printf behaviour for large precisions on mingw and BeOS.
29499         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29500         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29502         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29504         gl_PRINTF_PRECISION and test its result. Invoke
29505         gl_PREREQ_VASNPRINTF_PRECISION.
29506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29512         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29513         * doc/functions/fprintf.texi: Update.
29514         * doc/functions/printf.texi: Update.
29515         * doc/functions/snprintf.texi: Update.
29516         * doc/functions/sprintf.texi: Update.
29517         * doc/functions/vfprintf.texi: Update.
29518         * doc/functions/vprintf.texi: Update.
29519         * doc/functions/vsnprintf.texi: Update.
29520         * doc/functions/vsprintf.texi: Update.
29521
29522 2007-11-04  Bruno Haible  <bruno@clisp.org>
29523
29524         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29525
29526 2007-11-04  Bruno Haible  <bruno@clisp.org>
29527
29528         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29529         Reported by Sylvain Beucler <beuc@gnu.org>.
29530
29531 2007-11-03  Bruno Haible  <bruno@clisp.org>
29532
29533         * tests/test-fprintf-posix2.sh: New file.
29534         * tests/test-fprintf-posix2.c: New file.
29535         * modules/fprintf-posix-tests (Files): Add them.
29536         (TESTS): Add test-fprintf-posix2.sh.
29537         (configure.ac): Check for getrlimit and setrlimit.
29538         (check_PROGRAMS): Add test-fprintf-posix2.
29539
29540         * tests/test-printf-posix2.sh: New file.
29541         * tests/test-printf-posix2.c: New file.
29542         * modules/printf-posix-tests (Files): Add them.
29543         (TESTS): Add test-printf-posix2.sh.
29544         (configure.ac): Check for getrlimit and setrlimit.
29545         (check_PROGRAMS): Add test-printf-posix2.
29546
29547         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29548         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29549         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29550         (decode_double): New function, copied from decode_long_double.
29551         (scale10_round_decimal_decoded): New function, extracted from
29552         scale10_round_decimal_long_double.
29553         (scale10_round_decimal_long_double): Use it.
29554         (scale10_round_decimal_double): New function.
29555         (floorlog10): New function.
29556         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29560         gl_PRINTF_ENOMEM and test its result. Invoke
29561         gl_PREREQ_VASNPRINTF_ENOMEM.
29562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29569         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29570         * modules/snprintf-posix (Depends-on): Likewise.
29571         * modules/sprintf-posix (Depends-on): Likewise.
29572         * modules/vasnprintf-posix (Depends-on): Likewise.
29573         * modules/vasprintf-posix (Depends-on): Likewise.
29574         * modules/vfprintf-posix (Depends-on): Likewise.
29575         * modules/vsnprintf-posix (Depends-on): Likewise.
29576         * modules/vsprintf-posix (Depends-on): Likewise.
29577         * doc/functions/fprintf.texi: Update.
29578         * doc/functions/printf.texi: Update.
29579         * doc/functions/snprintf.texi: Update.
29580         * doc/functions/sprintf.texi: Update.
29581         * doc/functions/vfprintf.texi: Update.
29582         * doc/functions/vprintf.texi: Update.
29583         * doc/functions/vsnprintf.texi: Update.
29584         * doc/functions/vsprintf.texi: Update.
29585
29586 2007-11-03  Bruno Haible  <bruno@clisp.org>
29587
29588         * modules/frexp-nolibm-tests: New file.
29589
29590         * modules/frexp-nolibm: New file.
29591         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29592
29593 2007-11-03  Bruno Haible  <bruno@clisp.org>
29594
29595         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29596         value is C99 compliant.
29597         Needed for OSF/1 5.1.
29598
29599 2007-11-03  Bruno Haible  <bruno@clisp.org>
29600
29601         Fix out-of-memory handling of vasnprintf.
29602         * lib/printf-parse.c: Include <errno.h>.
29603         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29604         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29605         is already set.
29606
29607 2007-11-02  Eric Blake  <ebb9@byu.net>
29608
29609         Fix tests on cygwin.
29610         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29611
29612 2007-11-01  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29615         warning.
29616         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29617         needed for POSIX compatibility.
29618
29619 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29620
29621         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29622         for compatibility with GNU.
29623
29624 2007-11-01  Bruno Haible  <bruno@clisp.org>
29625
29626         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29627         (putenv): Renamed from rpl_putenv. Change argument type from
29628         'const char *' to 'char *'.
29629         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29630         of defining putenv in config.h, just set REPLACE_PUTENV.
29631         * modules/putenv (Depends-on): Add stdlib.
29632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29633         (Include): Use <stdlib.h>.
29634         * lib/stdlib.in.h (putenv): New declaration.
29635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29636         REPLACE_PUTENV.
29637         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29638         REPLACE_PUTENV.
29639         Needed for MacOS X 10.5.0.
29640         Reported by Peter O'Gorman <peter@pogma.com>.
29641
29642 2007-11-01  Jim Meyering  <meyering@redhat.com>
29643
29644         Treat an empty date string exactly like "0".
29645         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29646         if the remaining date string (to be parsed) is empty, use "0".
29647         Reported by Mischa Molhoek and discussed in this thread:
29648         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29649
29650 2007-10-31  Bruno Haible  <bruno@clisp.org>
29651
29652         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29653         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29654         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29655         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29656         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29657         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29658
29659 2007-10-31  Bruno Haible  <bruno@clisp.org>
29660
29661         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29662         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29663         (AC_TYPE_LONG_LONG_INT): Use it.
29664         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29665         it as well.
29666         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29667         to m4/longlong.m4.
29668         * modules/stdint (Files): Remove m4/ulonglong.m4.
29669         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29670         m4/ulonglong.m4.
29671         * modules/strtoumax (Files): Likewise.
29672
29673 2007-10-30  Bruno Haible  <bruno@clisp.org>
29674
29675         * modules/xvasprintf-posix: New file.
29676         Suggested by Eric Blake.
29677
29678 2007-10-30  Bruno Haible  <bruno@clisp.org>
29679
29680         * modules/xprintf-posix-tests: New file.
29681         * tests/test-xprintf-posix.sh: New file.
29682         * tests/test-xprintf-posix.c: New file.
29683         * tests/test-xfprintf-posix.c: New file.
29684
29685         * modules/xprintf-posix: New file.
29686
29687 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29688
29689         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29690         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29691         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29692
29693 2007-10-29  Bruno Haible  <bruno@clisp.org>
29694
29695         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29696         contain the special marker '_cv_'.
29697         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29698         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29699         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29700         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29701         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29702         Reported by Ralf Wildenhues.
29703
29704 2007-10-29  Bruno Haible  <bruno@clisp.org>
29705
29706         * gnulib-tool (func_import): When --lgpl is not specified, set
29707         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29708         GPLv3.
29709         Reported by Simon Josefsson.
29710
29711 2007-10-28  Bruno Haible  <bruno@clisp.org>
29712
29713         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29714         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29715         HAVE_DECL_ISFINITE.
29716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29717         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29718         HAVE_DECL_ISFINITE.
29719
29720 2007-10-28  Bruno Haible  <bruno@clisp.org>
29721
29722         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29723         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29724
29725 2007-10-28  Bruno Haible  <bruno@clisp.org>
29726
29727         Fix link errors with Sun C 5.0 on Solaris 10.
29728         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29729         function is declared but not present in the compiler's libm.
29730         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29731         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29732         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29733         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29734         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29735         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29736         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29738         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29739         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29740         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29741         HAVE_DECL_FLOORL.
29742
29743 2007-10-28  Bruno Haible  <bruno@clisp.org>
29744
29745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29746         gl_FUNC_FLOORL. Cache the result.
29747         (gl_FUNC_FLOORL): Use it.
29748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29749         gl_FUNC_CEILL. Cache the result.
29750         (gl_FUNC_CEILL): Use it.
29751
29752         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29753         gl_FUNC_FLOOR. Cache the result.
29754         (gl_FUNC_FLOOR): Use it.
29755         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29756         gl_FUNC_CEIL. Cache the result.
29757         (gl_FUNC_CEIL): Use it.
29758
29759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29760         gl_FUNC_FLOORF. Cache the result.
29761         (gl_FUNC_FLOORF): Use it.
29762         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29763         gl_FUNC_CEILF. Cache the result.
29764         (gl_FUNC_CEILF): Use it.
29765
29766 2007-10-28  Bruno Haible  <bruno@clisp.org>
29767
29768         * gnulib-tool: Allow specifying the LGPL version number through
29769         --lgpl=2 or --lgpl=3.
29770         (func_usage): Document --lgpl with argument.
29771         Handle --lgpl=... arguments.
29772         (func_import): Recognize also gl_LGPL calls with an argument. When
29773         --lgpl=2 is used and the module's license is just LGPL, report an
29774         error. Set sed_transform_lib_file according to the lgpl variable. In
29775         the generated files, use --lgpl or gl_LGPL invocations with argument,
29776         if necessary.
29777         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29778         an LGPv2+ license.
29779         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29780         gl_LGPL macro.
29781
29782 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29783             Bruno Haible  <bruno@clisp.org>
29784
29785         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29786         (u16_uctomb_aux): Likewise.
29787         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29788         !HAVE_INLINE.
29789         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29790
29791 2007-10-28  Bruno Haible  <bruno@clisp.org>
29792
29793         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29794         Invoke AM_GETTEXT_OPTION if it exists.
29795         * modules/vasprintf: Likewise.
29796         * modules/verror: Likewise.
29797         * modules/xprintf: Likewise.
29798         * modules/xvasprintf: Likewise.
29799
29800 2007-10-27  Ben Pfaff  <blp@gnu.org>
29801
29802         * lib/math.in.h: Define isfinite macro and prototypes for
29803         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29804         implementations.
29805         * m4/math_h.m4: New substitutions for isfinite module.
29806         * lib/isfinite.c: New file.
29807         * m4/isfinite.m4: New file.
29808         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29809         * modules/isfinite: New file.
29810         * modules/isfinite-tests: New file.
29811         * tests/tests-isfinite.c: New file.
29812         * doc/functions/isfinite.texi: Mention isfinite module.
29813         * MODULES.html.sh: Mention new module.
29814
29815 2007-10-27  Ben Pfaff  <blp@gnu.org>
29816
29817         Ralf Wildenhues reported that Tru64 4.0D declares the round
29818         functions but does not have definitions.
29819         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29820         cannot be found in any library, set the output variable to
29821         "missing" instead of "".
29822         * m4/round.m4: Also use our substitute if we cannot find round in
29823         any library, even if it is declared.
29824         * m4/roundf.m4: Likewise for roundf.
29825         * m4/roundl.m4: Likewise for roundl.
29826         * lib/math.in.h: Undefine roundf, round, roundl before defining
29827         their replacements, to allow for hypothetical systems where these
29828         may be defined as macros but not available in libraries.
29829
29830 2007-10-27  Bruno Haible  <bruno@clisp.org>
29831
29832         * doc/gnulib.texi: Invoke @firstparagraphindent.
29833         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29834         changes in gnulib.
29835         (Source changes): New section.
29836
29837 2007-10-26  Bruno Haible  <bruno@clisp.org>
29838
29839         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29840         borrowed from autoconf.
29841
29842 2007-10-26  Bruno Haible  <bruno@clisp.org>
29843
29844         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29845         strerror returned the empty string. Needed on HP-UX 11.00.
29846
29847 2007-10-24  Micah Cowan  <micah@cowan.name>
29848
29849         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29850         * build-aux/bootstrap: Remove support for now-unnecessary option,
29851         --cvs-user, and envvars CVS_USER, CVS_RSH.
29852
29853 2007-10-24  Jim Meyering  <meyering@redhat.com>
29854
29855         Avoid diagnostics from sha1sum when there is no cached checksum.
29856         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29857         if the po.s1 file hasn't been created yet.
29858
29859         * build-aux/bootstrap: Sync from coreutils:
29860         2007-10-24  Jim Meyering  <meyering@redhat.com>
29861         Get gnulib from the git repository, not from an obsolete cvs one.
29862         * build-aux/bootstrap: Suggestion from Micah Cowan.
29863         2007-10-04  Jim Meyering  <jim@meyering.net>
29864         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29865         (update_po_files): Work also when there are no .po files in po/.
29866
29867 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29868
29869         * README: Append ".git" to git and cg examples.
29870         Problem reported by Benoit Sigoure.
29871
29872 2007-10-23  Micah Cowan  <micah@cowan.name>
29873
29874         * users.txt: Add wget.
29875
29876 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29877
29878         Fix linking of some unistdio tests on FreeBSD.
29879         * modules/unistdio/u16-vsnprintf-tests
29880         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29881         * modules/unistdio/u16-vsprintf-tests
29882         (test_u16_vsnprintf1_LDADD): Likewise.
29883         * modules/unistdio/u32-vsnprintf-tests
29884         (test_u32_vsnprintf1_LDADD): Likewise.
29885         * modules/unistdio/u32-vsprintf-tests
29886         (test_u32_vsprintf1_LDADD): Likewise.
29887         * modules/unistdio/u8-vsnprintf-tests
29888         (test_u8_vsnprintf1_LDADD): Likewise.
29889         * modules/unistdio/u8-vsprintf-tests
29890         (test_u8_vsprintf1_LDADD): Likewise.
29891         * modules/unistdio/ulc-vsnprintf-tests
29892         (test_ulc_vsnprintf1_LDADD): Likewise.
29893         * modules/unistdio/ulc-vsprintf-tests
29894         (test_ulc_vsprintf1_LDADD): Likewise.
29895
29896         Fix linking of some uniconv tests on FreeBSD.
29897         * modules/uniconv/u16-conv-from-enc-tests
29898         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29899         * modules/uniconv/u16-conv-to-enc-tests
29900         (test_u16_conv_to_enc_LDADD): Likewise.
29901         * modules/uniconv/u16-strconv-from-enc-tests
29902         (test_u16_strconv_from_enc_LDADD): Likewise.
29903         * modules/uniconv/u16-strconv-to-enc-tests
29904         (test_u16_strconv_to_enc_LDADD): Likewise.
29905         * modules/uniconv/u32-conv-from-enc-tests
29906         (test_u32_conv_from_enc_LDADD): Likewise.
29907         * modules/uniconv/u32-conv-to-enc-tests
29908         (test_u32_conv_to_enc_LDADD): Likewise.
29909         * modules/uniconv/u32-strconv-from-enc-tests
29910         (test_u32_strconv_from_enc_LDADD): Likewise.
29911         * modules/uniconv/u32-strconv-to-enc-tests
29912         (test_u32_strconv_to_enc_LDADD): Likewise.
29913         * modules/uniconv/u8-conv-from-enc-tests
29914         (test_u8_conv_from_enc_LDADD): Likewise.
29915         * modules/uniconv/u8-conv-to-enc-tests
29916         (test_u8_conv_to_enc_LDADD): Likewise.
29917         * modules/uniconv/u8-strconv-from-enc-tests
29918         (test_u8_strconv_from_enc_LDADD): Likewise.
29919         * modules/uniconv/u8-strconv-to-enc-tests
29920         (test_u8_strconv_to_enc_LDADD): Likewise.
29921
29922 2007-10-22  Bruno Haible  <bruno@clisp.org>
29923
29924         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29925         size.
29926
29927 2007-10-22  Eric Blake  <ebb9@byu.net>
29928
29929         Tweak x*printf documentation.
29930         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29931         variable name and comments.
29932         Suggested by Bruno Haible.
29933
29934 2007-10-22  Bruno Haible  <bruno@clisp.org>
29935
29936         * lib/acl.c (copy_acl): Fix file name in comment.
29937
29938 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29939
29940         Fix Tru64 problem with stdbool.h.
29941         * lib/stdbool.in.h (false, true):
29942         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29943         Don't declare as an enum in this situation; it runs afoul of Tru64.
29944         Problem reported by Steven M. Schweda in
29945         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29946
29947 2007-10-22  Eric Blake  <ebb9@byu.net>
29948
29949         Also wrap vf?printf.
29950         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29951         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29952         (xvprintf, xvfprintf): New functions.
29953
29954 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29955
29956         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29957         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29958
29959         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29960         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29961
29962 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29963
29964         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29965         by Bruno Haible.
29966
29967 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29968
29969         * lib/getloadavg.c
29970         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29971         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29972
29973         * tests/test-i-ring.c: Work for C89.
29974
29975 2007-10-22  Bruno Haible  <bruno@clisp.org>
29976
29977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29978         -1u, in preprocessor expression, so that we don't test for the bug
29979         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29981
29982 2007-10-22  Eric Blake  <ebb9@byu.net>
29983
29984         * tests/test-yesno.sh: Silence stderr during test.
29985
29986 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29987
29988         * modules/crypto/gc-camellia: New file.
29989
29990         * m4/gc-camellia.m4: New file.
29991
29992         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29993
29994         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29995
29996 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29997
29998         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29999         --help to stdout.  Reported by sms@antinode.org (Steven
30000         M. Schweda).
30001
30002 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30003
30004         * users.txt: Fix link to libksba.
30005
30006 2007-10-21  Ben Pfaff  <blp@gnu.org>
30007
30008         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30009         round.c roundf implementation that depends on floorf and ceilf to
30010         be tested unconditionally.
30011
30012 2007-10-21  Ben Pfaff  <blp@gnu.org>
30013
30014         * m4/check-libm-func.m4: Removed.
30015         * m4/check-math-lib.m4: New file.
30016         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30017         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30018         definition and lack of AC_LIBOBJ([roundf]).
30019         * m4/roundl.m4: Ditto, and similarly for roundl.
30020         * modules/round: Reference new m4 file.
30021         * modules/roundf: Ditto.
30022         * modules/roundl: Ditto.
30023         * tests/test-round2.c (main): Use ROUND instead of round.
30024         Bug report from Bruno Haible.
30025
30026 2007-10-21  Bruno Haible  <bruno@clisp.org>
30027
30028         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30029         context.
30030
30031 2007-10-21  Bruno Haible  <bruno@clisp.org>
30032
30033         * tests/test-wcwidth.c (main): Allow negative result for some control
30034         characters.
30035
30036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30037         Needed on OSF/1 5.1.
30038
30039 2007-10-21  Bruno Haible  <bruno@clisp.org>
30040
30041         * tests/test-floorf1.c: Include isnanf.h.
30042         (main): Use isnanf() instead of isnan().
30043         * tests/test-ceilf1.c: Include isnanf.h.
30044         (main): Use isnanf() instead of isnan().
30045         * tests/test-truncf1.c: Include isnanf.h.
30046         (main): Use isnanf() instead of isnan().
30047         * tests/test-roundf1.c: Include isnanf.h.
30048         (main): Use isnanf() instead of isnan().
30049
30050 2007-10-21  Eric Blake  <ebb9@byu.net>
30051
30052         * users.txt: Update URL for m4.
30053
30054 2007-10-21  Bruno Haible  <bruno@clisp.org>
30055
30056         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30057
30058 2007-10-21  Bruno Haible  <bruno@clisp.org>
30059
30060         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30061         Git's management files if the CVS files are not present.
30062
30063 2007-10-20  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30066         gcc-3.4.x.
30067
30068 2007-10-20  Ben Pfaff  <blp@gnu.org>
30069
30070         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30071         implementations.
30072         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30073         * lib/round.c: New file.
30074         * lib/roundf.c: New file.
30075         * lib/roundl.c: New file.
30076         * m4/round.m4: New file.
30077         * m4/roundf.m4: New file.
30078         * m4/roundl.m4: New file.
30079         * m4/check-libm-func-m4: New file.
30080         * modules/math: Replace round, roundf, roundl related @VARS@ in
30081         math.in.h.
30082         * modules/round: New file.
30083         * modules/round-tests: New file.
30084         * modules/roundf: New file.
30085         * modules/roundf-tests: New file.
30086         * modules/roundl: New file.
30087         * modules/roundl-tests: New file.
30088         * tests/test-round1.c: New file.
30089         * tests/test-round2.c: New file.
30090         * tests/test-roundf1.c: New file.
30091         * tests/test-roundf2.c: New file.
30092         * tests/test-roundl.c: New file.
30093         * doc/functions/round.texi: Mention round module.
30094         * doc/functions/roundf.texi: Mention roundf module.
30095         * doc/functions/roundl.texi: Mention roundl module.
30096         * MODULES.html.sh: Mention new modules.
30097         Thanks to Bruno Haible for suggestions.
30098
30099 2007-10-20  Jim Meyering  <meyering@redhat.com>
30100
30101         * lib/xprintf.c: Include <config.h> unconditionally.
30102
30103         Change xprintf's license to GPL.
30104         * modules/xprintf (License): s/LGPL/GPL/, since this module
30105         depends on modules (exit and exitfail) which are GPL.
30106         Suggestion from Bruno Haible.
30107
30108         xprintf fixes.
30109         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30110         Use a clearer diagnostic.
30111         Patch from Bruno Haible.
30112
30113 2007-10-20  Bruno Haible  <bruno@clisp.org>
30114
30115         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30116         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30118
30119 2007-10-20  Bruno Haible  <bruno@clisp.org>
30120
30121         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30122         precision in the comparison result > x - 1 or similar.
30123         * tests/test-ceilf2.c (correct_result_p): Likewise.
30124         * tests/test-truncf2.c (correct_result_p): Likewise.
30125         * tests/test-trunc2.c (correct_result_p): Likewise.
30126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30127
30128 2007-10-20  Bruno Haible  <bruno@clisp.org>
30129
30130         * modules/ceil: New file.
30131         * m4/ceil.m4: New file.
30132         * doc/functions/ceil.texi: Mention the 'ceil' module.
30133
30134 2007-10-20  Bruno Haible  <bruno@clisp.org>
30135
30136         * modules/floor: New file.
30137         * m4/floor.m4: New file.
30138         * doc/functions/floor.texi: Mention the 'floor' module.
30139
30140 2007-10-20  Bruno Haible  <bruno@clisp.org>
30141
30142         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30143         of %a.
30144         * modules/floorf-tests (Depends-on): Likewise.
30145         * modules/truncf-tests (Depends-on): Likewise.
30146         * modules/trunc-tests (Depends-on): Likewise.
30147         Reported by Ben Pfaff.
30148
30149 2007-10-19  Jim Meyering  <meyering@redhat.com>
30150
30151         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30152         Don't bother testing specific errno values.  Just test ferror.
30153
30154         New module: xprintf
30155         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30156
30157 2007-10-19  Bruno Haible  <bruno@clisp.org>
30158
30159         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30160         syntax.
30161         * modules/javaexec (Makefile.am): Likewise.
30162         * modules/relocatable-prog (Makefile.am): Likewise.
30163         Suggested by Jim Meyering.
30164
30165 2007-10-18  Bruno Haible  <bruno@clisp.org>
30166
30167         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30168         Reported by Jim Meyering.
30169
30170 2007-10-18  Eric Blake  <ebb9@byu.net>
30171
30172         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30173
30174 2007-10-18  Bruno Haible  <bruno@clisp.org>
30175
30176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30177         the format string into writable memory. Needed in Fortify conditions.
30178
30179 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30180             Bruno Haible  <bruno@clisp.org>
30181
30182         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30183         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30184         * modules/trim (Depends-on): Add mbchar.
30185         (configure.ac): Add gl_FUNC_MBRTOWC.
30186         (Makefile.am): Augment lib_SOURCES.
30187
30188 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         Modify glob.c to use fstatat and dirfd, to simplify it.
30191         Suggested by Eric Blake.
30192         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30193         Don't include <stdbool.h>; not used.
30194         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30195         (link_exists_p): Simplify implementation, since we can now assume
30196         dirfd and fstatat.
30197         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30198
30199 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30200
30201         * gnulib-tool (func_get_dependencies): Fix sed script to
30202         match only tests.
30203
30204 2007-10-17  Bruno Haible  <bruno@clisp.org>
30205
30206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30207         allow locale names without encoding suffix.
30208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30210
30211 2007-10-16  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30214         * lib/getgroups.c (getgroups): Likewise.
30215         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30216
30217 2007-10-16  Bruno Haible  <bruno@clisp.org>
30218
30219         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30220         * modules/malloc-posix (License): Likewise.
30221         * modules/realloc-posix (License): Likewise.
30222         * modules/calloc-posix (License): Likewise.
30223         * modules/intprops (License): Change from GPL to LGPL, with
30224         Paul Eggert's approval.
30225
30226 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30227
30228         Merge glibc changes into lib/glob.c.
30229
30230         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30231         2007-10-15 04:59:03 UTC.  Here are the changes:
30232
30233         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30234
30235         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30236
30237         * lib/glob.c: Add some branch prediction throughout.
30238
30239         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30240
30241         [BZ #5103]
30242         * lib/glob.c (glob): Recognize patterns starting \/.
30243
30244         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30245
30246         [BZ #3996]
30247         * lib/glob.c (attribute_hidden): Define if not defined.
30248         (glob): Unescape dirname, filename or username when needed and not
30249         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30250         is NULL.  Handle unescaped [ in pattern without closing ].
30251         Don't pass GLOB_CHECK down to recursive glob for directories.
30252         (__glob_pattern_type): New function.
30253         (__glob_pattern_p): Implement using __glob_pattern_type.
30254         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30255         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30256         Remove unreachable code.
30257
30258         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30259
30260         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30261         explain why there are no leaks.
30262
30263         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30264
30265         [BZ #3253]
30266         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30267         time, rather allocate increasingly bigger arrays of pointers, if
30268         possible with alloca, if too large with malloc.
30269
30270 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30271
30272         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30273         Problem reported by H.Merijn Brand in
30274         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30275         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30277
30278 2007-10-15  Bruno Haible  <bruno@clisp.org>
30279
30280         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30281         with explicit rpl_ prefix.
30282         * lib/fopen.c (fopen): Likewise.
30283         * lib/freopen.c (freopen): Likewise.
30284         * lib/iconv.c (iconv): Likewise.
30285         * lib/iconv_close.c (iconv_close): Likewise.
30286
30287 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30288
30289         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30290
30291 2007-10-15  Bruno Haible  <bruno@clisp.org>
30292
30293         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30294         <stddef.h> instead of <stdlib.h> since we only need NULL.
30295         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30296
30297 2007-10-15  Bruno Haible  <bruno@clisp.org>
30298
30299         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30300         Replace paragraph talking about LIBOBJS.
30301         Reported by Colin Watson <cjwatson@debian.org>.
30302
30303 2007-10-15  Bruno Haible  <bruno@clisp.org>
30304
30305         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30306         <stdlib.h> before using NULL.
30307
30308 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30309
30310         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30311         Reported by Albert Chin <china@thewrittenword.com>.
30312
30313 2007-10-14  Bruno Haible  <bruno@clisp.org>
30314
30315         * modules/iconv_open-utf-tests: New file.
30316         * tests/test-iconv-utf.c: New file.
30317
30318         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30319         * modules/iconv_open-utf: New file.
30320         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30321         (iconv, iconv_close): New declarations.
30322         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30323         be defined.
30324         (iconv_open): Add special handling of conversion between UTF-8 and
30325         UTF-{16,32}{BE,LE}.
30326         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30327         * lib/iconv_close.c: New file.
30328         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30329         gl_FUNC_ICONV_OPEN.
30330         (gl_FUNC_ICONV_OPEN): Use it.
30331         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30332         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30333         and REPLACE_ICONV_UTF.
30334         * modules/iconv_open (Depends-on): Add c-strcase.
30335         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30336         ICONV_CONST.
30337         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30338
30339 2007-10-13  Albert Chin  <china@thewrittenword.com>
30340             Bruno Haible  <bruno@clisp.org>
30341
30342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30343         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30344
30345 2007-10-13  Bruno Haible  <bruno@clisp.org>
30346
30347         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30348         defined, use the ISO C99 inline semantics.
30349         * lib/argp.h (ARGP_EI): Likewise.
30350
30351 2007-10-13  Bruno Haible  <bruno@clisp.org>
30352
30353         Handle 'inline' change in gcc 4.3.0.
30354         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30355         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30356         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30357         argp_fmtstream_point): Disable 'extern' declaration if the function
30358         definition is going to be provided inline.
30359         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30360         semantics, not the ISO C99 inline semantics.
30361         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30362         'extern' declaration if the function definition is going to be provided
30363         inline.
30364         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30365         the GNU C inline semantics, not the ISO C99 inline semantics. With
30366         GCC 4.2, avoid a warning.
30367
30368 2007-10-13  Bruno Haible  <bruno@clisp.org>
30369
30370         * lib/freading.h (freading): Enable the use of __freading for
30371         glibc >= 2.7.
30372         * lib/freading.c (freading): Likewise.
30373
30374 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30375
30376         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30377         "warning: C99 inline functions are not supported; using GNU89".
30378
30379 2007-10-12  Bruno Haible  <bruno@clisp.org>
30380
30381         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30382         of 2.
30383         * tests/test-ceilf2.c: New file.
30384         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30385
30386         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30387         * modules/ceilf-tests: Update.
30388
30389 2007-10-12  Bruno Haible  <bruno@clisp.org>
30390
30391         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30392         of 2.
30393         * tests/test-floorf2.c: New file.
30394         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30395
30396         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30397         * modules/floorf-tests: Update.
30398
30399 2007-10-12  Bruno Haible  <bruno@clisp.org>
30400
30401         * tests/test-trunc2.c: New file.
30402         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30403
30404         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30405         * modules/trunc-tests: Update.
30406
30407 2007-10-12  Bruno Haible  <bruno@clisp.org>
30408
30409         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30410         of 2.
30411         * tests/test-truncf2.c: New file.
30412         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30413
30414         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30415         * modules/truncf-tests: Update.
30416
30417 2007-10-11  Eric Blake  <ebb9@byu.net>
30418
30419         Don't claim strerror is broken on Interix.
30420         * doc/functions/strerror.texi (strerror): Known broken systems are
30421         now Solaris 8, and not Interix.
30422         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30423         Interix on cross-compile.
30424         Reported by Martin Koeppe in
30425         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30426
30427 2007-10-11  Bruno Haible  <bruno@clisp.org>
30428
30429         * modules/i-ring-tests: New file.
30430         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30431         instead of assert.
30432
30433 2007-10-11  Bruno Haible  <bruno@clisp.org>
30434
30435         * modules/filenamecat-tests: New file.
30436         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30437         * lib/filenamecat.c: Remove test code.
30438
30439 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30440
30441         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30442
30443         * lib/strerror.c: Include <string.h> always, to test interface,
30444         and to remove the need for the dummy.
30445         Include intprops.h to compute width instead of doing it ourselves
30446         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30447         (strerror): Define it to return NULL if there's no system strerror.
30448         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30449         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30450         ancient pre-strerror Unix systems well any more.  Saying "unknown
30451         system error" is enough.
30452         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30453         simpler strerror.c implementation.
30454         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30455         Simplify the tests to reflect the simpler strerror implementation.
30456         * modules/strerror (Depends-on): Add intprops.
30457
30458 2007-10-09  Eric Blake  <ebb9@byu.net>
30459
30460         Silence test-fpending.
30461         * modules/fpending-tests (Files): Add wrapper script.
30462         * tests/test-fpending.sh: New file.
30463
30464 2007-10-09  Bruno Haible  <bruno@clisp.org>
30465
30466         * MODULES.html.sh (func_module): Don't create a hyperlink for
30467         function names like 'printf_frexp'.
30468         (Misc): Add crc, memxor.
30469         (Characteristics of floating types): New section.
30470         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30471         isnanf-nolibm, signbit, trunc, truncf, truncl.
30472         (Enhancements for ISO C 99 functions): New subsection Input/output.
30473         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30474         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30475         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30476         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30477         (Enhancements for POSIX:2001 functions): Add chdir-long.
30478         (File system functions): Add areadlink, chdir-safer, read-file.
30479         Remove cycle-check.
30480         (File system as inode set): New section.
30481         (Date and time): Add gethrxtime.
30482         (Multithreading): Add openmp.
30483         (Internationalization functions): Add localename.
30484         (Unicode string functions): Add unistr/u*-mbsnlen.
30485         (Support for maintaining and releasing projects): Add git-version-gen.
30486         (Lone files): Remove directories.
30487
30488 2007-10-08  Ben Pfaff  <blp@gnu.org>
30489
30490         * lib/xmalloca.h: Fix typo in comment.
30491
30492 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30493
30494         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30495         when avoiding problems with integer overflow.  Use a portable test
30496         instead.
30497
30498 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30499
30500         * modules/dummy (License): Change to LGPLv2+.
30501         * modules/float (License): Likewise
30502         * modules/realloc (License): Likewise
30503         * modules/stdlib (License): Likewise
30504
30505 2007-10-07  Bruno Haible  <bruno@clisp.org>
30506
30507         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30508         * floor.c (TWO_MANT_DIG): Likewise.
30509         * ceil.c (TWO_MANT_DIG): Likewise.
30510         Reported by Ben Pfaff.
30511
30512 2007-10-07  Bruno Haible  <bruno@clisp.org>
30513
30514         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30515         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30516         * lib/frexp.c (FUNC): Likewise.
30517         * lib/printf-frexp.h (printf_frexp): Likewise.
30518         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30519         * lib/printf-frexp.c (FUNC): Likewise.
30520         Suggested by Jim Meyering.
30521
30522 2007-10-07  Jim Meyering  <meyering@redhat.com>
30523
30524         Make xnanosleep's integer overflow test more robust.
30525         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30526         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30527
30528 2007-10-07  Bruno Haible  <bruno@clisp.org>
30529
30530         * NEWS: Mention the license change.
30531
30532         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30533         abbreviations in the modules files.
30534
30535         Change copyright notice from GPLv2+ to GPLv3+.
30536         * README: Change copyright notice.
30537         * MODULES.html.sh: Likewise.
30538         * build-aux/bootstrap.conf: Likewise.
30539         * build-aux/config.libpath: Likewise.
30540         * build-aux/csharpcomp.sh.in: Likewise.
30541         * build-aux/csharpexec.sh.in: Likewise.
30542         * build-aux/install-reloc: Likewise.
30543         * build-aux/javacomp.sh.in: Likewise.
30544         * build-aux/javaexec.sh.in: Likewise.
30545         * build-aux/ldd.sh.in: Likewise.
30546         * build-aux/reloc-ldflags: Likewise.
30547         * build-aux/relocatable.sh.in: Likewise.
30548         * build-aux/x-to-1.in: Likewise.
30549         * check-module: Likewise.
30550         * config/srclistvars.sh: Likewise.
30551         * gnulib-tool: Likewise.
30552         * lib/acl-internal.h: Likewise.
30553         * lib/acl.c: Likewise.
30554         * lib/acl.h: Likewise.
30555         * lib/acl_entries.c: Likewise.
30556         * lib/areadlink-with-size.c: Likewise.
30557         * lib/areadlink.c: Likewise.
30558         * lib/areadlink.h: Likewise.
30559         * lib/argmatch.c: Likewise.
30560         * lib/argmatch.h: Likewise.
30561         * lib/argp-ba.c: Likewise.
30562         * lib/argp-eexst.c: Likewise.
30563         * lib/argp-fmtstream.c: Likewise.
30564         * lib/argp-fmtstream.h: Likewise.
30565         * lib/argp-fs-xinl.c: Likewise.
30566         * lib/argp-help.c: Likewise.
30567         * lib/argp-namefrob.h: Likewise.
30568         * lib/argp-parse.c: Likewise.
30569         * lib/argp-pin.c: Likewise.
30570         * lib/argp-pv.c: Likewise.
30571         * lib/argp-pvh.c: Likewise.
30572         * lib/argp-xinl.c: Likewise.
30573         * lib/argp.h: Likewise.
30574         * lib/at-func.c: Likewise.
30575         * lib/atanl.c: Likewise.
30576         * lib/backupfile.c: Likewise.
30577         * lib/backupfile.h: Likewise.
30578         * lib/basename.c: Likewise.
30579         * lib/binary-io.h: Likewise.
30580         * lib/byteswap.in.h: Likewise.
30581         * lib/c-stack.c: Likewise.
30582         * lib/c-stack.h: Likewise.
30583         * lib/c-strcasestr.c: Likewise.
30584         * lib/c-strcasestr.h: Likewise.
30585         * lib/c-strstr.c: Likewise.
30586         * lib/c-strstr.h: Likewise.
30587         * lib/c-strtod.c: Likewise.
30588         * lib/calloc.c: Likewise.
30589         * lib/canon-host.c: Likewise.
30590         * lib/canon-host.h: Likewise.
30591         * lib/canonicalize-lgpl.c: Likewise.
30592         * lib/canonicalize.c: Likewise.
30593         * lib/canonicalize.h: Likewise.
30594         * lib/ceil.c: Likewise.
30595         * lib/ceilf.c: Likewise.
30596         * lib/ceill.c: Likewise.
30597         * lib/chdir-long.c: Likewise.
30598         * lib/chdir-long.h: Likewise.
30599         * lib/chdir-safer.c: Likewise.
30600         * lib/chdir-safer.h: Likewise.
30601         * lib/chown.c: Likewise.
30602         * lib/classpath.c: Likewise.
30603         * lib/classpath.h: Likewise.
30604         * lib/clean-temp.c: Likewise.
30605         * lib/clean-temp.h: Likewise.
30606         * lib/cloexec.c: Likewise.
30607         * lib/close-stream.c: Likewise.
30608         * lib/closein.c: Likewise.
30609         * lib/closein.h: Likewise.
30610         * lib/closeout.c: Likewise.
30611         * lib/closeout.h: Likewise.
30612         * lib/concat-filename.c: Likewise.
30613         * lib/copy-file.c: Likewise.
30614         * lib/copy-file.h: Likewise.
30615         * lib/count-one-bits.h: Likewise.
30616         * lib/crc.c: Likewise.
30617         * lib/crc.h: Likewise.
30618         * lib/creat-safer.c: Likewise.
30619         * lib/csharpcomp.c: Likewise.
30620         * lib/csharpcomp.h: Likewise.
30621         * lib/csharpexec.c: Likewise.
30622         * lib/csharpexec.h: Likewise.
30623         * lib/cycle-check.c: Likewise.
30624         * lib/cycle-check.h: Likewise.
30625         * lib/diacrit.c: Likewise.
30626         * lib/diacrit.h: Likewise.
30627         * lib/diffseq.h: Likewise.
30628         * lib/dirchownmod.c: Likewise.
30629         * lib/dirent.in.h: Likewise.
30630         * lib/dirfd.c: Likewise.
30631         * lib/dirfd.h: Likewise.
30632         * lib/dirname.c: Likewise.
30633         * lib/dirname.h: Likewise.
30634         * lib/dummy.c: Likewise.
30635         * lib/dup-safer.c: Likewise.
30636         * lib/dup2.c: Likewise.
30637         * lib/eealloc.h: Likewise.
30638         * lib/error.c: Likewise.
30639         * lib/error.h: Likewise.
30640         * lib/euidaccess.c: Likewise.
30641         * lib/exclude.c: Likewise.
30642         * lib/exclude.h: Likewise.
30643         * lib/execute.c: Likewise.
30644         * lib/execute.h: Likewise.
30645         * lib/exitfail.c: Likewise.
30646         * lib/exitfail.h: Likewise.
30647         * lib/expl.c: Likewise.
30648         * lib/fatal-signal.c: Likewise.
30649         * lib/fatal-signal.h: Likewise.
30650         * lib/fbufmode.c: Likewise.
30651         * lib/fbufmode.h: Likewise.
30652         * lib/fchdir.c: Likewise.
30653         * lib/fchmodat.c: Likewise.
30654         * lib/fchownat.c: Likewise.
30655         * lib/fcntl--.h: Likewise.
30656         * lib/fcntl-safer.h: Likewise.
30657         * lib/fcntl.in.h: Likewise.
30658         * lib/fd-safer.c: Likewise.
30659         * lib/fflush.c: Likewise.
30660         * lib/file-has-acl.c: Likewise.
30661         * lib/file-set.c: Likewise.
30662         * lib/file-type.c: Likewise.
30663         * lib/file-type.h: Likewise.
30664         * lib/fileblocks.c: Likewise.
30665         * lib/filemode.c: Likewise.
30666         * lib/filemode.h: Likewise.
30667         * lib/filename.h: Likewise.
30668         * lib/filenamecat.c: Likewise.
30669         * lib/filenamecat.h: Likewise.
30670         * lib/findprog.c: Likewise.
30671         * lib/findprog.h: Likewise.
30672         * lib/float.in.h: Likewise.
30673         * lib/floor.c: Likewise.
30674         * lib/floorf.c: Likewise.
30675         * lib/floorl.c: Likewise.
30676         * lib/fopen-safer.c: Likewise.
30677         * lib/fopen.c: Likewise.
30678         * lib/fpending.c: Likewise.
30679         * lib/fpending.h: Likewise.
30680         * lib/fprintf.c: Likewise.
30681         * lib/fprintftime.h: Likewise.
30682         * lib/fpucw.h: Likewise.
30683         * lib/fpurge.c: Likewise.
30684         * lib/fpurge.h: Likewise.
30685         * lib/freadable.c: Likewise.
30686         * lib/freadable.h: Likewise.
30687         * lib/freadahead.c: Likewise.
30688         * lib/freadahead.h: Likewise.
30689         * lib/freading.c: Likewise.
30690         * lib/freading.h: Likewise.
30691         * lib/free.c: Likewise.
30692         * lib/freopen.c: Likewise.
30693         * lib/frexp.c: Likewise.
30694         * lib/frexpl.c: Likewise.
30695         * lib/fseek.c: Likewise.
30696         * lib/fseterr.c: Likewise.
30697         * lib/fseterr.h: Likewise.
30698         * lib/fstatat.c: Likewise.
30699         * lib/fstrcmp.c: Likewise.
30700         * lib/fstrcmp.h: Likewise.
30701         * lib/fsusage.c: Likewise.
30702         * lib/fsusage.h: Likewise.
30703         * lib/ftell.c: Likewise.
30704         * lib/ftello.c: Likewise.
30705         * lib/fts-cycle.c: Likewise.
30706         * lib/fts.c: Likewise.
30707         * lib/fts_.h: Likewise.
30708         * lib/full-read.c: Likewise.
30709         * lib/full-read.h: Likewise.
30710         * lib/full-write.c: Likewise.
30711         * lib/full-write.h: Likewise.
30712         * lib/fwritable.c: Likewise.
30713         * lib/fwritable.h: Likewise.
30714         * lib/fwriteerror.c: Likewise.
30715         * lib/fwriteerror.h: Likewise.
30716         * lib/fwriting.c: Likewise.
30717         * lib/fwriting.h: Likewise.
30718         * lib/gcd.c: Likewise.
30719         * lib/gcd.h: Likewise.
30720         * lib/getcwd.c: Likewise.
30721         * lib/getdate.h: Likewise.
30722         * lib/getdate.y: Likewise.
30723         * lib/getdomainname.c: Likewise.
30724         * lib/getdomainname.h: Likewise.
30725         * lib/getgroups.c: Likewise.
30726         * lib/gethostname.c: Likewise.
30727         * lib/gethrxtime.c: Likewise.
30728         * lib/gethrxtime.h: Likewise.
30729         * lib/getloadavg.c: Likewise.
30730         * lib/getndelim2.c: Likewise.
30731         * lib/getndelim2.h: Likewise.
30732         * lib/getnline.c: Likewise.
30733         * lib/getnline.h: Likewise.
30734         * lib/getopt.c: Likewise.
30735         * lib/getopt.in.h: Likewise.
30736         * lib/getopt1.c: Likewise.
30737         * lib/getopt_int.h: Likewise.
30738         * lib/getpagesize.h: Likewise.
30739         * lib/getsubopt.c: Likewise.
30740         * lib/gettime.c: Likewise.
30741         * lib/getugroups.c: Likewise.
30742         * lib/getugroups.h: Likewise.
30743         * lib/getusershell.c: Likewise.
30744         * lib/gl_anyavltree_list1.h: Likewise.
30745         * lib/gl_anyavltree_list2.h: Likewise.
30746         * lib/gl_anyhash_list1.h: Likewise.
30747         * lib/gl_anyhash_list2.h: Likewise.
30748         * lib/gl_anylinked_list1.h: Likewise.
30749         * lib/gl_anylinked_list2.h: Likewise.
30750         * lib/gl_anyrbtree_list1.h: Likewise.
30751         * lib/gl_anyrbtree_list2.h: Likewise.
30752         * lib/gl_anytree_list1.h: Likewise.
30753         * lib/gl_anytree_list2.h: Likewise.
30754         * lib/gl_anytree_oset.h: Likewise.
30755         * lib/gl_anytreehash_list1.h: Likewise.
30756         * lib/gl_anytreehash_list2.h: Likewise.
30757         * lib/gl_array_list.c: Likewise.
30758         * lib/gl_array_list.h: Likewise.
30759         * lib/gl_array_oset.c: Likewise.
30760         * lib/gl_array_oset.h: Likewise.
30761         * lib/gl_avltree_list.c: Likewise.
30762         * lib/gl_avltree_list.h: Likewise.
30763         * lib/gl_avltree_oset.c: Likewise.
30764         * lib/gl_avltree_oset.h: Likewise.
30765         * lib/gl_avltreehash_list.c: Likewise.
30766         * lib/gl_avltreehash_list.h: Likewise.
30767         * lib/gl_carray_list.c: Likewise.
30768         * lib/gl_carray_list.h: Likewise.
30769         * lib/gl_linked_list.c: Likewise.
30770         * lib/gl_linked_list.h: Likewise.
30771         * lib/gl_linkedhash_list.c: Likewise.
30772         * lib/gl_linkedhash_list.h: Likewise.
30773         * lib/gl_list.c: Likewise.
30774         * lib/gl_list.h: Likewise.
30775         * lib/gl_oset.c: Likewise.
30776         * lib/gl_oset.h: Likewise.
30777         * lib/gl_rbtree_list.c: Likewise.
30778         * lib/gl_rbtree_list.h: Likewise.
30779         * lib/gl_rbtree_oset.c: Likewise.
30780         * lib/gl_rbtree_oset.h: Likewise.
30781         * lib/gl_rbtreehash_list.c: Likewise.
30782         * lib/gl_rbtreehash_list.h: Likewise.
30783         * lib/gl_sublist.c: Likewise.
30784         * lib/gl_sublist.h: Likewise.
30785         * lib/group-member.c: Likewise.
30786         * lib/group-member.h: Likewise.
30787         * lib/hard-locale.c: Likewise.
30788         * lib/hard-locale.h: Likewise.
30789         * lib/hash-pjw.c: Likewise.
30790         * lib/hash-pjw.h: Likewise.
30791         * lib/hash-triple.c: Likewise.
30792         * lib/hash.c: Likewise.
30793         * lib/hash.h: Likewise.
30794         * lib/human.c: Likewise.
30795         * lib/human.h: Likewise.
30796         * lib/i-ring.c: Likewise.
30797         * lib/i-ring.h: Likewise.
30798         * lib/idcache.c: Likewise.
30799         * lib/imaxabs.c: Likewise.
30800         * lib/imaxdiv.c: Likewise.
30801         * lib/inet_pton.c: Likewise.
30802         * lib/inet_pton.h: Likewise.
30803         * lib/intprops.h: Likewise.
30804         * lib/inttostr.c: Likewise.
30805         * lib/inttostr.h: Likewise.
30806         * lib/inttypes.in.h: Likewise.
30807         * lib/isapipe.c: Likewise.
30808         * lib/isdir.c: Likewise.
30809         * lib/isnan.c: Likewise.
30810         * lib/isnan.h: Likewise.
30811         * lib/isnanf.c: Likewise.
30812         * lib/isnanf.h: Likewise.
30813         * lib/isnanl-nolibm.h: Likewise.
30814         * lib/isnanl.c: Likewise.
30815         * lib/isnanl.h: Likewise.
30816         * lib/javacomp.c: Likewise.
30817         * lib/javacomp.h: Likewise.
30818         * lib/javaexec.c: Likewise.
30819         * lib/javaexec.h: Likewise.
30820         * lib/javaversion.c: Likewise.
30821         * lib/javaversion.h: Likewise.
30822         * lib/javaversion.java: Likewise.
30823         * lib/lbrkprop.h: Likewise.
30824         * lib/lchmod.h: Likewise.
30825         * lib/lchown.c: Likewise.
30826         * lib/ldexpl.c: Likewise.
30827         * lib/linebreak.c: Likewise.
30828         * lib/linebreak.h: Likewise.
30829         * lib/linebuffer.c: Likewise.
30830         * lib/linebuffer.h: Likewise.
30831         * lib/locale.in.h: Likewise.
30832         * lib/logl.c: Likewise.
30833         * lib/long-options.c: Likewise.
30834         * lib/long-options.h: Likewise.
30835         * lib/lstat.c: Likewise.
30836         * lib/lstat.h: Likewise.
30837         * lib/math.in.h: Likewise.
30838         * lib/mbchar.c: Likewise.
30839         * lib/mbchar.h: Likewise.
30840         * lib/mbfile.h: Likewise.
30841         * lib/mbiter.h: Likewise.
30842         * lib/mbscasecmp.c: Likewise.
30843         * lib/mbscasestr.c: Likewise.
30844         * lib/mbschr.c: Likewise.
30845         * lib/mbscspn.c: Likewise.
30846         * lib/mbslen.c: Likewise.
30847         * lib/mbsncasecmp.c: Likewise.
30848         * lib/mbsnlen.c: Likewise.
30849         * lib/mbspbrk.c: Likewise.
30850         * lib/mbspcasecmp.c: Likewise.
30851         * lib/mbsrchr.c: Likewise.
30852         * lib/mbssep.c: Likewise.
30853         * lib/mbsspn.c: Likewise.
30854         * lib/mbsstr.c: Likewise.
30855         * lib/mbstok_r.c: Likewise.
30856         * lib/mbswidth.c: Likewise.
30857         * lib/mbswidth.h: Likewise.
30858         * lib/mbuiter.h: Likewise.
30859         * lib/memcasecmp.c: Likewise.
30860         * lib/memcasecmp.h: Likewise.
30861         * lib/memchr.c: Likewise.
30862         * lib/memcmp.c: Likewise.
30863         * lib/memcoll.c: Likewise.
30864         * lib/memcoll.h: Likewise.
30865         * lib/memcpy.c: Likewise.
30866         * lib/memrchr.c: Likewise.
30867         * lib/mkancesdirs.c: Likewise.
30868         * lib/mkdir-p.c: Likewise.
30869         * lib/mkdir-p.h: Likewise.
30870         * lib/mkdir.c: Likewise.
30871         * lib/mkdirat.c: Likewise.
30872         * lib/mkdtemp.c: Likewise.
30873         * lib/mkstemp-safer.c: Likewise.
30874         * lib/mkstemp.c: Likewise.
30875         * lib/modechange.c: Likewise.
30876         * lib/modechange.h: Likewise.
30877         * lib/mountlist.c: Likewise.
30878         * lib/mountlist.h: Likewise.
30879         * lib/mpsort.c: Likewise.
30880         * lib/nanosleep.c: Likewise.
30881         * lib/obstack.c: Likewise.
30882         * lib/obstack.h: Likewise.
30883         * lib/open-safer.c: Likewise.
30884         * lib/open.c: Likewise.
30885         * lib/openat-die.c: Likewise.
30886         * lib/openat-priv.h: Likewise.
30887         * lib/openat-proc.c: Likewise.
30888         * lib/openat.c: Likewise.
30889         * lib/openat.h: Likewise.
30890         * lib/pagealign_alloc.c: Likewise.
30891         * lib/pagealign_alloc.h: Likewise.
30892         * lib/physmem.c: Likewise.
30893         * lib/physmem.h: Likewise.
30894         * lib/pipe-safer.c: Likewise.
30895         * lib/pipe.c: Likewise.
30896         * lib/pipe.h: Likewise.
30897         * lib/posixtm.c: Likewise.
30898         * lib/posixtm.h: Likewise.
30899         * lib/posixver.c: Likewise.
30900         * lib/printf-frexp.c: Likewise.
30901         * lib/printf-frexp.h: Likewise.
30902         * lib/printf-frexpl.c: Likewise.
30903         * lib/printf-frexpl.h: Likewise.
30904         * lib/printf.c: Likewise.
30905         * lib/progname.c: Likewise.
30906         * lib/progname.h: Likewise.
30907         * lib/progreloc.c: Likewise.
30908         * lib/putenv.c: Likewise.
30909         * lib/quote.c: Likewise.
30910         * lib/quote.h: Likewise.
30911         * lib/quotearg.c: Likewise.
30912         * lib/quotearg.h: Likewise.
30913         * lib/raise.c: Likewise.
30914         * lib/readline.c: Likewise.
30915         * lib/readline.h: Likewise.
30916         * lib/readlink.c: Likewise.
30917         * lib/readtokens.c: Likewise.
30918         * lib/readtokens.h: Likewise.
30919         * lib/readtokens0.c: Likewise.
30920         * lib/readtokens0.h: Likewise.
30921         * lib/readutmp.c: Likewise.
30922         * lib/readutmp.h: Likewise.
30923         * lib/realloc.c: Likewise.
30924         * lib/relocwrapper.c: Likewise.
30925         * lib/rename-dest-slash.c: Likewise.
30926         * lib/rename.c: Likewise.
30927         * lib/rmdir.c: Likewise.
30928         * lib/rpmatch.c: Likewise.
30929         * lib/safe-read.c: Likewise.
30930         * lib/safe-read.h: Likewise.
30931         * lib/safe-write.c: Likewise.
30932         * lib/safe-write.h: Likewise.
30933         * lib/same-inode.h: Likewise.
30934         * lib/same.c: Likewise.
30935         * lib/same.h: Likewise.
30936         * lib/save-cwd.c: Likewise.
30937         * lib/save-cwd.h: Likewise.
30938         * lib/savedir.c: Likewise.
30939         * lib/savedir.h: Likewise.
30940         * lib/savewd.c: Likewise.
30941         * lib/savewd.h: Likewise.
30942         * lib/search.in.h: Likewise.
30943         * lib/setenv.c: Likewise.
30944         * lib/setenv.h: Likewise.
30945         * lib/settime.c: Likewise.
30946         * lib/sh-quote.c: Likewise.
30947         * lib/sh-quote.h: Likewise.
30948         * lib/sig2str.c: Likewise.
30949         * lib/sig2str.h: Likewise.
30950         * lib/signal.in.h: Likewise.
30951         * lib/signbitd.c: Likewise.
30952         * lib/signbitf.c: Likewise.
30953         * lib/signbitl.c: Likewise.
30954         * lib/sigprocmask.c: Likewise.
30955         * lib/sincosl.c: Likewise.
30956         * lib/sleep.c: Likewise.
30957         * lib/sprintf.c: Likewise.
30958         * lib/sqrtl.c: Likewise.
30959         * lib/stat-time.h: Likewise.
30960         * lib/stdio--.h: Likewise.
30961         * lib/stdio-safer.h: Likewise.
30962         * lib/stdlib--.h: Likewise.
30963         * lib/stdlib-safer.h: Likewise.
30964         * lib/stdlib.in.h: Likewise.
30965         * lib/stpcpy.c: Likewise.
30966         * lib/stpncpy.c: Likewise.
30967         * lib/strchrnul.c: Likewise.
30968         * lib/strcspn.c: Likewise.
30969         * lib/strerror.c: Likewise.
30970         * lib/strftime.c: Likewise.
30971         * lib/strftime.h: Likewise.
30972         * lib/striconveh.c: Likewise.
30973         * lib/striconveh.h: Likewise.
30974         * lib/striconveha.c: Likewise.
30975         * lib/striconveha.h: Likewise.
30976         * lib/stripslash.c: Likewise.
30977         * lib/strnlen1.c: Likewise.
30978         * lib/strnlen1.h: Likewise.
30979         * lib/strtod.c: Likewise.
30980         * lib/strtoimax.c: Likewise.
30981         * lib/strtok_r.c: Likewise.
30982         * lib/strtol.c: Likewise.
30983         * lib/strtoll.c: Likewise.
30984         * lib/strtoul.c: Likewise.
30985         * lib/strtoull.c: Likewise.
30986         * lib/sysexits.in.h: Likewise.
30987         * lib/tempname.c: Likewise.
30988         * lib/tempname.h: Likewise.
30989         * lib/timespec.h: Likewise.
30990         * lib/tls.c: Likewise.
30991         * lib/tls.h: Likewise.
30992         * lib/tmpdir.c: Likewise.
30993         * lib/tmpdir.h: Likewise.
30994         * lib/tmpfile-safer.c: Likewise.
30995         * lib/tmpfile.c: Likewise.
30996         * lib/trigl.c: Likewise.
30997         * lib/trigl.h: Likewise.
30998         * lib/trim.c: Likewise.
30999         * lib/trim.h: Likewise.
31000         * lib/trunc.c: Likewise.
31001         * lib/truncf.c: Likewise.
31002         * lib/truncl.c: Likewise.
31003         * lib/tsearch.c: Likewise.
31004         * lib/unicodeio.c: Likewise.
31005         * lib/unicodeio.h: Likewise.
31006         * lib/unistd--.h: Likewise.
31007         * lib/unistd-safer.h: Likewise.
31008         * lib/unistdio/ulc-fprintf.c: Likewise.
31009         * lib/unistdio/ulc-vfprintf.c: Likewise.
31010         * lib/unlinkdir.c: Likewise.
31011         * lib/unlinkdir.h: Likewise.
31012         * lib/unlocked-io.h: Likewise.
31013         * lib/unsetenv.c: Likewise.
31014         * lib/userspec.c: Likewise.
31015         * lib/utime.c: Likewise.
31016         * lib/utimecmp.c: Likewise.
31017         * lib/utimecmp.h: Likewise.
31018         * lib/utimens.c: Likewise.
31019         * lib/verify.h: Likewise.
31020         * lib/verror.c: Likewise.
31021         * lib/verror.h: Likewise.
31022         * lib/version-etc-fsf.c: Likewise.
31023         * lib/version-etc.c: Likewise.
31024         * lib/version-etc.h: Likewise.
31025         * lib/vfprintf.c: Likewise.
31026         * lib/vprintf.c: Likewise.
31027         * lib/vsprintf.c: Likewise.
31028         * lib/w32spawn.h: Likewise.
31029         * lib/wait-process.c: Likewise.
31030         * lib/wait-process.h: Likewise.
31031         * lib/wcwidth.c: Likewise.
31032         * lib/write-any-file.c: Likewise.
31033         * lib/xalloc-die.c: Likewise.
31034         * lib/xalloc.h: Likewise.
31035         * lib/xasprintf.c: Likewise.
31036         * lib/xgetcwd.c: Likewise.
31037         * lib/xgetcwd.h: Likewise.
31038         * lib/xgetdomainname.c: Likewise.
31039         * lib/xgetdomainname.h: Likewise.
31040         * lib/xgethostname.c: Likewise.
31041         * lib/xmalloc.c: Likewise.
31042         * lib/xmalloca.c: Likewise.
31043         * lib/xmalloca.h: Likewise.
31044         * lib/xmemcoll.c: Likewise.
31045         * lib/xnanosleep.c: Likewise.
31046         * lib/xreadlink.c: Likewise.
31047         * lib/xreadlink.h: Likewise.
31048         * lib/xsetenv.c: Likewise.
31049         * lib/xsetenv.h: Likewise.
31050         * lib/xstriconv.c: Likewise.
31051         * lib/xstriconv.h: Likewise.
31052         * lib/xstrndup.c: Likewise.
31053         * lib/xstrndup.h: Likewise.
31054         * lib/xstrtod.c: Likewise.
31055         * lib/xstrtod.h: Likewise.
31056         * lib/xstrtol-error.c: Likewise.
31057         * lib/xstrtol.c: Likewise.
31058         * lib/xstrtol.h: Likewise.
31059         * lib/xtime.h: Likewise.
31060         * lib/xvasprintf.c: Likewise.
31061         * lib/xvasprintf.h: Likewise.
31062         * lib/yesno.c: Likewise.
31063         * lib/yesno.h: Likewise.
31064         * posix-modules: Likewise.
31065         * tests/test-alloca-opt.c: Likewise.
31066         * tests/test-arcfour.c: Likewise.
31067         * tests/test-arctwo.c: Likewise.
31068         * tests/test-argmatch.c: Likewise.
31069         * tests/test-argp-2.sh: Likewise.
31070         * tests/test-argp.c: Likewise.
31071         * tests/test-arpa_inet.c: Likewise.
31072         * tests/test-array_list.c: Likewise.
31073         * tests/test-array_oset.c: Likewise.
31074         * tests/test-atexit.c: Likewise.
31075         * tests/test-avltree_list.c: Likewise.
31076         * tests/test-avltree_oset.c: Likewise.
31077         * tests/test-avltreehash_list.c: Likewise.
31078         * tests/test-base64.c: Likewise.
31079         * tests/test-binary-io.c: Likewise.
31080         * tests/test-byteswap.c: Likewise.
31081         * tests/test-c-ctype.c: Likewise.
31082         * tests/test-c-strcasecmp.c: Likewise.
31083         * tests/test-c-strcasestr.c: Likewise.
31084         * tests/test-c-strncasecmp.c: Likewise.
31085         * tests/test-c-strstr.c: Likewise.
31086         * tests/test-canonicalize-lgpl.c: Likewise.
31087         * tests/test-canonicalize.c: Likewise.
31088         * tests/test-carray_list.c: Likewise.
31089         * tests/test-ceilf.c: Likewise.
31090         * tests/test-ceill.c: Likewise.
31091         * tests/test-count-one-bits.c: Likewise.
31092         * tests/test-crc.c: Likewise.
31093         * tests/test-dirname.c: Likewise.
31094         * tests/test-fbufmode.c: Likewise.
31095         * tests/test-fcntl.c: Likewise.
31096         * tests/test-fflush.c: Likewise.
31097         * tests/test-floorf.c: Likewise.
31098         * tests/test-floorl.c: Likewise.
31099         * tests/test-fopen.c: Likewise.
31100         * tests/test-fprintf-posix.c: Likewise.
31101         * tests/test-fprintf-posix.h: Likewise.
31102         * tests/test-fpurge.c: Likewise.
31103         * tests/test-freadable.c: Likewise.
31104         * tests/test-freadahead.c: Likewise.
31105         * tests/test-freading.c: Likewise.
31106         * tests/test-freopen.c: Likewise.
31107         * tests/test-frexp.c: Likewise.
31108         * tests/test-frexpl.c: Likewise.
31109         * tests/test-fseek.c: Likewise.
31110         * tests/test-fseeko.c: Likewise.
31111         * tests/test-fseterr.c: Likewise.
31112         * tests/test-fstrcmp.c: Likewise.
31113         * tests/test-ftell.c: Likewise.
31114         * tests/test-ftello.c: Likewise.
31115         * tests/test-fwritable.c: Likewise.
31116         * tests/test-fwriting.c: Likewise.
31117         * tests/test-getaddrinfo.c: Likewise.
31118         * tests/test-getpass.c: Likewise.
31119         * tests/test-gettimeofday.c: Likewise.
31120         * tests/test-hmac-md5.c: Likewise.
31121         * tests/test-hmac-sha1.c: Likewise.
31122         * tests/test-iconv.c: Likewise.
31123         * tests/test-iconvme.c: Likewise.
31124         * tests/test-inttypes.c: Likewise.
31125         * tests/test-isnan.c: Likewise.
31126         * tests/test-isnanf.c: Likewise.
31127         * tests/test-isnanl-nolibm.c: Likewise.
31128         * tests/test-isnanl.c: Likewise.
31129         * tests/test-isnanl.h: Likewise.
31130         * tests/test-ldexpl.c: Likewise.
31131         * tests/test-linked_list.c: Likewise.
31132         * tests/test-linkedhash_list.c: Likewise.
31133         * tests/test-locale.c: Likewise.
31134         * tests/test-localename.c: Likewise.
31135         * tests/test-lock.c: Likewise.
31136         * tests/test-lseek.c: Likewise.
31137         * tests/test-malloca.c: Likewise.
31138         * tests/test-math.c: Likewise.
31139         * tests/test-mbscasecmp.c: Likewise.
31140         * tests/test-mbscasestr1.c: Likewise.
31141         * tests/test-mbscasestr2.c: Likewise.
31142         * tests/test-mbscasestr3.c: Likewise.
31143         * tests/test-mbscasestr4.c: Likewise.
31144         * tests/test-mbschr.c: Likewise.
31145         * tests/test-mbscspn.c: Likewise.
31146         * tests/test-mbsncasecmp.c: Likewise.
31147         * tests/test-mbspbrk.c: Likewise.
31148         * tests/test-mbspcasecmp.c: Likewise.
31149         * tests/test-mbsrchr.c: Likewise.
31150         * tests/test-mbsspn.c: Likewise.
31151         * tests/test-mbsstr1.c: Likewise.
31152         * tests/test-mbsstr2.c: Likewise.
31153         * tests/test-mbsstr3.c: Likewise.
31154         * tests/test-md5.c: Likewise.
31155         * tests/test-memmem.c: Likewise.
31156         * tests/test-netinet_in.c: Likewise.
31157         * tests/test-open.c: Likewise.
31158         * tests/test-printf-frexp.c: Likewise.
31159         * tests/test-printf-frexpl.c: Likewise.
31160         * tests/test-printf-posix.c: Likewise.
31161         * tests/test-printf-posix.h: Likewise.
31162         * tests/test-rbtree_list.c: Likewise.
31163         * tests/test-rbtree_oset.c: Likewise.
31164         * tests/test-rbtreehash_list.c: Likewise.
31165         * tests/test-read-file.c: Likewise.
31166         * tests/test-rijndael.c: Likewise.
31167         * tests/test-search.c: Likewise.
31168         * tests/test-signbit.c: Likewise.
31169         * tests/test-sleep.c: Likewise.
31170         * tests/test-snprintf-posix.c: Likewise.
31171         * tests/test-snprintf-posix.h: Likewise.
31172         * tests/test-snprintf.c: Likewise.
31173         * tests/test-sprintf-posix.c: Likewise.
31174         * tests/test-sprintf-posix.h: Likewise.
31175         * tests/test-stat-time.c: Likewise.
31176         * tests/test-stdbool.c: Likewise.
31177         * tests/test-stdint.c: Likewise.
31178         * tests/test-stdio.c: Likewise.
31179         * tests/test-stdlib.c: Likewise.
31180         * tests/test-stpncpy.c: Likewise.
31181         * tests/test-strcasestr.c: Likewise.
31182         * tests/test-striconv.c: Likewise.
31183         * tests/test-striconveh.c: Likewise.
31184         * tests/test-striconveha.c: Likewise.
31185         * tests/test-string.c: Likewise.
31186         * tests/test-sys_select.c: Likewise.
31187         * tests/test-sys_socket.c: Likewise.
31188         * tests/test-sys_stat.c: Likewise.
31189         * tests/test-sys_time.c: Likewise.
31190         * tests/test-sysexits.c: Likewise.
31191         * tests/test-time.c: Likewise.
31192         * tests/test-tls.c: Likewise.
31193         * tests/test-trunc.c: Likewise.
31194         * tests/test-truncf.c: Likewise.
31195         * tests/test-truncl.c: Likewise.
31196         * tests/test-unistd.c: Likewise.
31197         * tests/test-vasnprintf-posix.c: Likewise.
31198         * tests/test-vasnprintf-posix2.c: Likewise.
31199         * tests/test-vasnprintf.c: Likewise.
31200         * tests/test-vasprintf-posix.c: Likewise.
31201         * tests/test-vasprintf.c: Likewise.
31202         * tests/test-verify.c: Likewise.
31203         * tests/test-vfprintf-posix.c: Likewise.
31204         * tests/test-vprintf-posix.c: Likewise.
31205         * tests/test-vsnprintf-posix.c: Likewise.
31206         * tests/test-vsnprintf.c: Likewise.
31207         * tests/test-vsprintf-posix.c: Likewise.
31208         * tests/test-wchar.c: Likewise.
31209         * tests/test-wctype.c: Likewise.
31210         * tests/test-wcwidth.c: Likewise.
31211         * tests/test-xstrtol.c: Likewise.
31212         * tests/test-xvasprintf.c: Likewise.
31213         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31214         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31215         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31216         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31217         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31218         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31219         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31220         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31221         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31222         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31223         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31224         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31225         * tests/uniname/test-uninames.c: Likewise.
31226         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31227         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31228         * tests/unistdio/test-u16-printf1.h: Likewise.
31229         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31230         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31231         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31232         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31233         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31234         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31235         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31236         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31237         * tests/unistdio/test-u32-printf1.h: Likewise.
31238         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31239         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31240         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31241         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31242         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31243         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31244         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31245         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31246         * tests/unistdio/test-u8-printf1.h: Likewise.
31247         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31248         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31249         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31250         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31251         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31252         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31253         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31254         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31255         * tests/unistdio/test-ulc-printf1.h: Likewise.
31256         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31257         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31258         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31259         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31260         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31261         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31262         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31263         * tests/uniwidth/test-u16-width.c: Likewise.
31264         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31265         * tests/uniwidth/test-u32-width.c: Likewise.
31266         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31267         * tests/uniwidth/test-u8-width.c: Likewise.
31268         * tests/uniwidth/test-uc_width.c: Likewise.
31269         * config/srclist-update: Likewise.
31270         (fixlicense): Update to GPLv3+.
31271
31272         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31273         * tests/test-tsearch.c: Change copyright notice.
31274
31275         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31276         * lib/c-strcaseeq.h: Change copyright notice.
31277         * lib/streq.h: Likewise.
31278         * lib/uniconv.h: Likewise.
31279         * lib/uniconv/u-conv-from-enc.h: Likewise.
31280         * lib/uniconv/u-conv-to-enc.h: Likewise.
31281         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31282         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31283         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31284         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31285         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31286         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31287         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31288         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31289         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31290         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31291         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31292         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31293         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31294         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31295         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31296         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31297         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31298         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31299         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31300         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31301         * lib/uniname.h: Likewise.
31302         * lib/uniname/uniname.c: Likewise.
31303         * lib/unistdio.h: Likewise.
31304         * lib/unistdio/u-asnprintf.h: Likewise.
31305         * lib/unistdio/u-asprintf.h: Likewise.
31306         * lib/unistdio/u-printf-args.c: Likewise.
31307         * lib/unistdio/u-printf-args.h: Likewise.
31308         * lib/unistdio/u-printf-parse.h: Likewise.
31309         * lib/unistdio/u-snprintf.h: Likewise.
31310         * lib/unistdio/u-sprintf.h: Likewise.
31311         * lib/unistdio/u-vasprintf.h: Likewise.
31312         * lib/unistdio/u-vsnprintf.h: Likewise.
31313         * lib/unistdio/u-vsprintf.h: Likewise.
31314         * lib/unistdio/u16-asnprintf.c: Likewise.
31315         * lib/unistdio/u16-asprintf.c: Likewise.
31316         * lib/unistdio/u16-printf-parse.c: Likewise.
31317         * lib/unistdio/u16-snprintf.c: Likewise.
31318         * lib/unistdio/u16-sprintf.c: Likewise.
31319         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31320         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31321         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31322         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31323         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31324         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31325         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31326         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31327         * lib/unistdio/u16-vasnprintf.c: Likewise.
31328         * lib/unistdio/u16-vasprintf.c: Likewise.
31329         * lib/unistdio/u16-vsnprintf.c: Likewise.
31330         * lib/unistdio/u16-vsprintf.c: Likewise.
31331         * lib/unistdio/u32-asnprintf.c: Likewise.
31332         * lib/unistdio/u32-asprintf.c: Likewise.
31333         * lib/unistdio/u32-printf-parse.c: Likewise.
31334         * lib/unistdio/u32-snprintf.c: Likewise.
31335         * lib/unistdio/u32-sprintf.c: Likewise.
31336         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31337         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31338         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31339         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31340         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31341         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31342         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31343         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31344         * lib/unistdio/u32-vasnprintf.c: Likewise.
31345         * lib/unistdio/u32-vasprintf.c: Likewise.
31346         * lib/unistdio/u32-vsnprintf.c: Likewise.
31347         * lib/unistdio/u32-vsprintf.c: Likewise.
31348         * lib/unistdio/u8-asnprintf.c: Likewise.
31349         * lib/unistdio/u8-asprintf.c: Likewise.
31350         * lib/unistdio/u8-printf-parse.c: Likewise.
31351         * lib/unistdio/u8-snprintf.c: Likewise.
31352         * lib/unistdio/u8-sprintf.c: Likewise.
31353         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31354         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31355         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31356         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31357         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31358         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31359         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31360         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31361         * lib/unistdio/u8-vasnprintf.c: Likewise.
31362         * lib/unistdio/u8-vasprintf.c: Likewise.
31363         * lib/unistdio/u8-vsnprintf.c: Likewise.
31364         * lib/unistdio/u8-vsprintf.c: Likewise.
31365         * lib/unistdio/ulc-asnprintf.c: Likewise.
31366         * lib/unistdio/ulc-asprintf.c: Likewise.
31367         * lib/unistdio/ulc-printf-parse.c: Likewise.
31368         * lib/unistdio/ulc-snprintf.c: Likewise.
31369         * lib/unistdio/ulc-sprintf.c: Likewise.
31370         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31371         * lib/unistdio/ulc-vasprintf.c: Likewise.
31372         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31373         * lib/unistdio/ulc-vsprintf.c: Likewise.
31374         * lib/unistr.h: Likewise.
31375         * lib/unistr/u-cpy-alloc.h: Likewise.
31376         * lib/unistr/u-cpy.h: Likewise.
31377         * lib/unistr/u-endswith.h: Likewise.
31378         * lib/unistr/u-move.h: Likewise.
31379         * lib/unistr/u-set.h: Likewise.
31380         * lib/unistr/u-startswith.h: Likewise.
31381         * lib/unistr/u-stpcpy.h: Likewise.
31382         * lib/unistr/u-stpncpy.h: Likewise.
31383         * lib/unistr/u-strcat.h: Likewise.
31384         * lib/unistr/u-strcpy.h: Likewise.
31385         * lib/unistr/u-strcspn.h: Likewise.
31386         * lib/unistr/u-strdup.h: Likewise.
31387         * lib/unistr/u-strlen.h: Likewise.
31388         * lib/unistr/u-strncat.h: Likewise.
31389         * lib/unistr/u-strncpy.h: Likewise.
31390         * lib/unistr/u-strnlen.h: Likewise.
31391         * lib/unistr/u-strpbrk.h: Likewise.
31392         * lib/unistr/u-strspn.h: Likewise.
31393         * lib/unistr/u-strstr.h: Likewise.
31394         * lib/unistr/u-strtok.h: Likewise.
31395         * lib/unistr/u16-check.c: Likewise.
31396         * lib/unistr/u16-chr.c: Likewise.
31397         * lib/unistr/u16-cmp.c: Likewise.
31398         * lib/unistr/u16-cpy-alloc.c: Likewise.
31399         * lib/unistr/u16-cpy.c: Likewise.
31400         * lib/unistr/u16-endswith.c: Likewise.
31401         * lib/unistr/u16-mblen.c: Likewise.
31402         * lib/unistr/u16-mbsnlen.c: Likewise.
31403         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31404         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31405         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31406         * lib/unistr/u16-mbtouc.c: Likewise.
31407         * lib/unistr/u16-mbtoucr.c: Likewise.
31408         * lib/unistr/u16-move.c: Likewise.
31409         * lib/unistr/u16-next.c: Likewise.
31410         * lib/unistr/u16-prev.c: Likewise.
31411         * lib/unistr/u16-set.c: Likewise.
31412         * lib/unistr/u16-startswith.c: Likewise.
31413         * lib/unistr/u16-stpcpy.c: Likewise.
31414         * lib/unistr/u16-stpncpy.c: Likewise.
31415         * lib/unistr/u16-strcat.c: Likewise.
31416         * lib/unistr/u16-strchr.c: Likewise.
31417         * lib/unistr/u16-strcmp.c: Likewise.
31418         * lib/unistr/u16-strcpy.c: Likewise.
31419         * lib/unistr/u16-strcspn.c: Likewise.
31420         * lib/unistr/u16-strdup.c: Likewise.
31421         * lib/unistr/u16-strlen.c: Likewise.
31422         * lib/unistr/u16-strmblen.c: Likewise.
31423         * lib/unistr/u16-strmbtouc.c: Likewise.
31424         * lib/unistr/u16-strncat.c: Likewise.
31425         * lib/unistr/u16-strncmp.c: Likewise.
31426         * lib/unistr/u16-strncpy.c: Likewise.
31427         * lib/unistr/u16-strnlen.c: Likewise.
31428         * lib/unistr/u16-strpbrk.c: Likewise.
31429         * lib/unistr/u16-strrchr.c: Likewise.
31430         * lib/unistr/u16-strspn.c: Likewise.
31431         * lib/unistr/u16-strstr.c: Likewise.
31432         * lib/unistr/u16-strtok.c: Likewise.
31433         * lib/unistr/u16-to-u32.c: Likewise.
31434         * lib/unistr/u16-to-u8.c: Likewise.
31435         * lib/unistr/u16-uctomb-aux.c: Likewise.
31436         * lib/unistr/u16-uctomb.c: Likewise.
31437         * lib/unistr/u32-check.c: Likewise.
31438         * lib/unistr/u32-chr.c: Likewise.
31439         * lib/unistr/u32-cmp.c: Likewise.
31440         * lib/unistr/u32-cpy-alloc.c: Likewise.
31441         * lib/unistr/u32-cpy.c: Likewise.
31442         * lib/unistr/u32-endswith.c: Likewise.
31443         * lib/unistr/u32-mblen.c: Likewise.
31444         * lib/unistr/u32-mbsnlen.c: Likewise.
31445         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31446         * lib/unistr/u32-mbtouc.c: Likewise.
31447         * lib/unistr/u32-mbtoucr.c: Likewise.
31448         * lib/unistr/u32-move.c: Likewise.
31449         * lib/unistr/u32-next.c: Likewise.
31450         * lib/unistr/u32-prev.c: Likewise.
31451         * lib/unistr/u32-set.c: Likewise.
31452         * lib/unistr/u32-startswith.c: Likewise.
31453         * lib/unistr/u32-stpcpy.c: Likewise.
31454         * lib/unistr/u32-stpncpy.c: Likewise.
31455         * lib/unistr/u32-strcat.c: Likewise.
31456         * lib/unistr/u32-strchr.c: Likewise.
31457         * lib/unistr/u32-strcmp.c: Likewise.
31458         * lib/unistr/u32-strcpy.c: Likewise.
31459         * lib/unistr/u32-strcspn.c: Likewise.
31460         * lib/unistr/u32-strdup.c: Likewise.
31461         * lib/unistr/u32-strlen.c: Likewise.
31462         * lib/unistr/u32-strmblen.c: Likewise.
31463         * lib/unistr/u32-strmbtouc.c: Likewise.
31464         * lib/unistr/u32-strncat.c: Likewise.
31465         * lib/unistr/u32-strncmp.c: Likewise.
31466         * lib/unistr/u32-strncpy.c: Likewise.
31467         * lib/unistr/u32-strnlen.c: Likewise.
31468         * lib/unistr/u32-strpbrk.c: Likewise.
31469         * lib/unistr/u32-strrchr.c: Likewise.
31470         * lib/unistr/u32-strspn.c: Likewise.
31471         * lib/unistr/u32-strstr.c: Likewise.
31472         * lib/unistr/u32-strtok.c: Likewise.
31473         * lib/unistr/u32-to-u16.c: Likewise.
31474         * lib/unistr/u32-to-u8.c: Likewise.
31475         * lib/unistr/u32-uctomb.c: Likewise.
31476         * lib/unistr/u8-check.c: Likewise.
31477         * lib/unistr/u8-chr.c: Likewise.
31478         * lib/unistr/u8-cmp.c: Likewise.
31479         * lib/unistr/u8-cpy-alloc.c: Likewise.
31480         * lib/unistr/u8-cpy.c: Likewise.
31481         * lib/unistr/u8-endswith.c: Likewise.
31482         * lib/unistr/u8-mblen.c: Likewise.
31483         * lib/unistr/u8-mbsnlen.c: Likewise.
31484         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31486         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31487         * lib/unistr/u8-mbtouc.c: Likewise.
31488         * lib/unistr/u8-mbtoucr.c: Likewise.
31489         * lib/unistr/u8-move.c: Likewise.
31490         * lib/unistr/u8-next.c: Likewise.
31491         * lib/unistr/u8-prev.c: Likewise.
31492         * lib/unistr/u8-set.c: Likewise.
31493         * lib/unistr/u8-startswith.c: Likewise.
31494         * lib/unistr/u8-stpcpy.c: Likewise.
31495         * lib/unistr/u8-stpncpy.c: Likewise.
31496         * lib/unistr/u8-strcat.c: Likewise.
31497         * lib/unistr/u8-strchr.c: Likewise.
31498         * lib/unistr/u8-strcmp.c: Likewise.
31499         * lib/unistr/u8-strcpy.c: Likewise.
31500         * lib/unistr/u8-strcspn.c: Likewise.
31501         * lib/unistr/u8-strdup.c: Likewise.
31502         * lib/unistr/u8-strlen.c: Likewise.
31503         * lib/unistr/u8-strmblen.c: Likewise.
31504         * lib/unistr/u8-strmbtouc.c: Likewise.
31505         * lib/unistr/u8-strncat.c: Likewise.
31506         * lib/unistr/u8-strncmp.c: Likewise.
31507         * lib/unistr/u8-strncpy.c: Likewise.
31508         * lib/unistr/u8-strnlen.c: Likewise.
31509         * lib/unistr/u8-strpbrk.c: Likewise.
31510         * lib/unistr/u8-strrchr.c: Likewise.
31511         * lib/unistr/u8-strspn.c: Likewise.
31512         * lib/unistr/u8-strstr.c: Likewise.
31513         * lib/unistr/u8-strtok.c: Likewise.
31514         * lib/unistr/u8-to-u16.c: Likewise.
31515         * lib/unistr/u8-to-u32.c: Likewise.
31516         * lib/unistr/u8-uctomb-aux.c: Likewise.
31517         * lib/unistr/u8-uctomb.c: Likewise.
31518         * lib/unitypes.h: Likewise.
31519         * lib/uniwidth.h: Likewise.
31520         * lib/uniwidth/cjk.h: Likewise.
31521         * lib/uniwidth/u16-strwidth.c: Likewise.
31522         * lib/uniwidth/u16-width.c: Likewise.
31523         * lib/uniwidth/u32-strwidth.c: Likewise.
31524         * lib/uniwidth/u32-width.c: Likewise.
31525         * lib/uniwidth/u8-strwidth.c: Likewise.
31526         * lib/uniwidth/u8-width.c: Likewise.
31527         * lib/uniwidth/width.c: Likewise.
31528
31529 2007-10-07  Bruno Haible  <bruno@clisp.org>
31530
31531         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31532         The file is still under LGPL (see modules/inttypes).
31533
31534 2007-10-06  Bruno Haible  <bruno@clisp.org>
31535
31536         * modules/trunc (Dependencies): Add 'extensions'.
31537         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31538         Reported by Ben Pfaff <blp@gnu.org>.
31539
31540 2007-10-06  Bruno Haible  <bruno@clisp.org>
31541
31542         * modules/freopen-tests: New file.
31543         * tests/test-freopen.c: New file.
31544
31545         * modules/fopen-tests: New file.
31546         * tests/test-fopen.c: New file.
31547
31548         * modules/fopen: New file.
31549         * lib/fopen.c: New file.
31550         * m4/fopen.m4: New file.
31551         * modules/freopen: New file.
31552         * lib/freopen.c: New file.
31553         * m4/freopen.m4: New file.
31554         * lib/stdio.in.h (fopen, freopen): New declarations.
31555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31556         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31557         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31558         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31559         * doc/functions/fopen.texi: Mention the 'fopen' module.
31560         * doc/functions/freopen.texi: Mention the 'freopen' module.
31561
31562 2007-10-06  Bruno Haible  <bruno@clisp.org>
31563
31564         * modules/open-tests: New file.
31565         * tests/test-open.c: New file.
31566
31567         * modules/open: New file.
31568         * lib/open.c: New file.
31569         * m4/open.m4: New file.
31570         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31571         lib/open.c does.
31572         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31573         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31574         macros.
31575         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31576         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31577         REPLACE_OPEN.
31578         * doc/functions/open.texi: Mention the 'open' module.
31579
31580 2007-10-04  Bruno Haible  <bruno@clisp.org>
31581
31582         * modules/ceill-tests: New file.
31583         * tests/test-ceill.c: New file.
31584
31585         * modules/ceill: New file.
31586         * lib/ceill.c: Replace entire file.
31587         * m4/ceill.m4: New file.
31588         * lib/math.in.h (ceill): Replace declaration.
31589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31590         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31591         * doc/functions/ceill.texi: Mention the 'ceill' module.
31592         * modules/mathl (Files): Remove lib/ceill.c.
31593         (Depends-on): Add ceill.
31594
31595 2007-10-04  Bruno Haible  <bruno@clisp.org>
31596
31597         * modules/ceilf-tests: New file.
31598         * tests/test-ceilf.c: New file.
31599
31600         * modules/ceilf: New file.
31601         * lib/ceil.c: New file.
31602         * lib/ceilf.c: New file.
31603         * m4/ceilf.m4: New file.
31604         * lib/math.in.h (ceilf): New declaration.
31605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31606         HAVE_DECL_CEILF.
31607         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31608         HAVE_DECL_CEILF.
31609         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31610
31611 2007-10-04  Bruno Haible  <bruno@clisp.org>
31612
31613         * modules/floorl-tests: New file.
31614         * tests/test-floorl.c: New file.
31615
31616         * modules/floorl: New file.
31617         * lib/floorl.c: Replace entire file.
31618         * m4/floorl.m4: New file.
31619         * lib/math.in.h (floorl): Replace declaration.
31620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31621         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31622         * doc/functions/floorl.texi: Mention the 'floorl' module.
31623         * modules/mathl (Files): Remove lib/floorl.c.
31624         (Depends-on): Add floorl.
31625
31626 2007-10-04  Bruno Haible  <bruno@clisp.org>
31627
31628         * modules/floorf-tests: New file.
31629         * tests/test-floorf.c: New file.
31630
31631         * modules/floorf: New file.
31632         * lib/floor.c: New file.
31633         * lib/floorf.c: New file.
31634         * m4/floorf.m4: New file.
31635         * lib/math.in.h (floorf): New declaration.
31636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31637         HAVE_DECL_FLOORF.
31638         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31639         HAVE_DECL_FLOORF.
31640         * doc/functions/floorf.texi: Mention the 'floorf' module.
31641
31642 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31643             Bruno Haible  <bruno@clisp.org>
31644
31645         Advertise for the Git server instead of the CVS server.
31646         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31647         repository instead of the CVS one.
31648         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31649         about all VCS systems generically.
31650         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31651
31652 2007-10-04  Bruno Haible  <bruno@clisp.org>
31653
31654         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31655         means.
31656         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31657
31658 2007-10-04  Bruno Haible  <bruno@clisp.org>
31659
31660         * modules/truncl-tests: New file.
31661         * tests/test-truncl.c: New file.
31662
31663         * modules/truncl: New file.
31664         * lib/truncl.c: New file.
31665         * m4/truncl.m4: New file.
31666         * lib/math.in.h (truncl): New declaration.
31667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31668         HAVE_DECL_TRUNCL.
31669         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31670         HAVE_DECL_TRUNCL.
31671         * doc/functions/truncl.texi: Mention the 'truncl' module.
31672
31673 2007-10-04  Bruno Haible  <bruno@clisp.org>
31674
31675         * modules/truncf-tests: New file.
31676         * tests/test-truncf.c: New file.
31677
31678         * modules/truncf: New file.
31679         * lib/trunc.c: Make paramerizable through USE_* macros.
31680         * lib/truncf.c: New file.
31681         * m4/truncf.m4: New file.
31682         * lib/math.in.h (truncf): New declaration.
31683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31684         HAVE_DECL_TRUNCF.
31685         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31686         HAVE_DECL_TRUNCF.
31687         * doc/functions/truncf.texi: Mention the 'truncf' module.
31688
31689 2007-10-03  Bruno Haible  <bruno@clisp.org>
31690
31691         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31692         augmentation also for tests modules.
31693         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31694         * modules/atexit-tests (Makefile.am): Likewise.
31695         * modules/binary-io-tests (Makefile.am): Likewise.
31696         * modules/c-strcase-tests (Makefile.am): Likewise.
31697         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31698         * modules/canonicalize-tests (Makefile.am): Likewise.
31699         * modules/closein-tests (Makefile.am): Likewise.
31700         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31701         * modules/freadahead-tests (Makefile.am): Likewise.
31702         * modules/fseek-tests (Makefile.am): Likewise.
31703         * modules/fseeko-tests (Makefile.am): Likewise.
31704         * modules/ftell-tests (Makefile.am): Likewise.
31705         * modules/ftello-tests (Makefile.am): Likewise.
31706         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31707         * modules/isnanl-tests (Makefile.am): Likewise.
31708         * modules/lseek-tests (Makefile.am): Likewise.
31709         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31710         * modules/mbscasestr-tests (Makefile.am): Likewise.
31711         * modules/mbschr-tests (Makefile.am): Likewise.
31712         * modules/mbscspn-tests (Makefile.am): Likewise.
31713         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31714         * modules/mbspbrk-tests (Makefile.am): Likewise.
31715         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31716         * modules/mbsrchr-tests (Makefile.am): Likewise.
31717         * modules/mbsspn-tests (Makefile.am): Likewise.
31718         * modules/mbsstr-tests (Makefile.am): Likewise.
31719         * modules/printf-posix-tests (Makefile.am): Likewise.
31720         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31721         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31722         * modules/tsearch-tests (Makefile.am): Likewise.
31723         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31724         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31725         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31726         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31727         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31728         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31729         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31730         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31731         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31732         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31733         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31734         * modules/xstrtol-tests (Makefile.am): Likewise.
31735         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31736         * modules/yesno-tests (Makefile.am): Likewise.
31737
31738 2007-10-03  Bruno Haible  <bruno@clisp.org>
31739
31740         * modules/trunc-tests: New file.
31741         * tests/test-trunc.c: New file.
31742
31743         * modules/trunc: New file.
31744         * lib/trunc.c: New file.
31745         * m4/trunc.m4: New file.
31746         * lib/math.in.h (trunc): New declaration.
31747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31748         HAVE_DECL_TRUNC.
31749         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31750         HAVE_DECL_TRUNC.
31751         * doc/functions/trunc.texi: Mention the 'trunc' module.
31752
31753 2007-10-03  Bruno Haible  <bruno@clisp.org>
31754
31755         * tests/test-fpending.c: New file, mostly copied
31756         from coreutils/lib/t-fpending.c.
31757         * modules/fpending-tests: New file.
31758
31759 2007-10-03  Bruno Haible  <bruno@clisp.org>
31760
31761         Port the stdio extensions to QNX (untested).
31762         * lib/fseterr.c (fseterr): Add support for QNX.
31763         * lib/fbufmode.c (fbufmode): Likewise.
31764         * lib/freadable.c (freadable): Likewise.
31765         * lib/fwritable.c (fwritable): Likewise.
31766         * lib/freading.c (freading): Likewise.
31767         * lib/fwriting.c (fwriting): Likewise.
31768         * lib/freadahead.c (freadahed): Likewise.
31769         * lib/fpurge.c (fpurge): Likewise.
31770         * lib/fseeko.c (rpl_fseeko): Likewise.
31771
31772 2007-10-03  Bruno Haible  <bruno@clisp.org>
31773             Jim Meyering  <jim@meyering.net>
31774             Eric Blake  <ebb9@byu.net>
31775
31776         * doc/relocatable.texi: Use @command instead of @program.
31777
31778 2007-10-02  Jim Meyering  <jim@meyering.net>
31779
31780         Perform one more "_.h" -> ".in.h" substitution.
31781         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31782         instead of unistd_.h here, too.
31783
31784 2007-10-01  Bruno Haible  <bruno@clisp.org>
31785
31786         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31787         Needed for the alloca-opt module.
31788
31789 2007-09-30  Bruno Haible  <bruno@clisp.org>
31790
31791         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31792         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31793         alloca_.h.
31794         * lib/argz.in.h: Renamed from lib/argz_.h.
31795         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31796         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31797         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31798         byteswap_.h.
31799         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31800         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31801         dirent_.h.
31802         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31803         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31804         fcntl_.h.
31805         * lib/float.in.h: Renamed from lib/float_.h.
31806         * modules/float (Files, Makefile.am): Use float.in.h instead of
31807         float_.h.
31808         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31809         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31810         fnmatch_.h.
31811         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31812         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31813         getopt_.h.
31814         * lib/glob.in.h: Renamed from lib/glob_.h.
31815         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31816         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31817         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31818         iconv_.h.
31819         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31820         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31821         inttypes_.h.
31822         * lib/locale.in.h: Renamed from lib/locale_.h.
31823         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31824         locale_.h.
31825         * lib/math.in.h: Renamed from lib/math_.h.
31826         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31827         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31828         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31829         of netinet_in_.h. Add dependency.
31830         * lib/poll.in.h: Renamed from lib/poll_.h.
31831         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31832         * lib/search.in.h: Renamed from lib/search_.h.
31833         * modules/search (Files, Makefile.am): Use search.in.h instead of
31834         search_.h.
31835         * lib/signal.in.h: Renamed from lib/signal_.h.
31836         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31837         _signal.h.
31838         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31839         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31840         stdbool_.h.
31841         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31842         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31843         stdint_.h.
31844         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31845         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31846         stdio_.h.
31847         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31848         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31849         stdlib_.h.
31850         * lib/string.in.h: Renamed from lib/string_.h.
31851         * modules/string (Files, Makefile.am): Use string.in.h instead of
31852         string_.h.
31853         * doc/gnulib-tool.texi (Initial import): Update.
31854         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31855         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31856         of sys_select_.h. Add dependency.
31857         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31858         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31859         of sys_socket_.h.
31860         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31861         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31862         sys_stat_.h.
31863         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31864         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31865         sys_time_.h.
31866         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31867         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31868         sysexits_.h.
31869         * lib/time.in.h: Renamed from lib/time_.h.
31870         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31871         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31872         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31873         unistd_.h.
31874         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31875         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31876         wchar_.h.
31877         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31878         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31879         wctype_.h.
31880         * build-aux/bootstrap (slurp): Update.
31881         * lib/.cppi-disable: Update.
31882
31883 2007-09-30  Bruno Haible  <bruno@clisp.org>
31884
31885         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31886         Needed on BeOS.
31887
31888 2007-09-30  Bruno Haible  <bruno@clisp.org>
31889
31890         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31891
31892 2007-09-29  Bruno Haible  <bruno@clisp.org>
31893
31894         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31895
31896 2007-09-29  Bruno Haible  <bruno@clisp.org>
31897
31898         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31899         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31900         * build-aux/install-reloc: Compile also areadlink.c.
31901         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31902
31903 2007-09-29  Bruno Haible  <bruno@clisp.org>
31904
31905         * gnulib-tool (func_emit_initmacro_done): Indentation.
31906
31907 2007-09-29  Bruno Haible  <bruno@clisp.org>
31908
31909         * README: Add CVS checkout update instructions.
31910         Info from Bob Proulx <bob@proulx.com>.
31911
31912 2007-09-28  Eric Blake  <ebb9@byu.net>
31913
31914         Provide move-if-change.
31915         * build-aux/move-if-change: New file, based on best practice
31916         rather than any canonical upstream location.
31917
31918 2007-09-28  Jim Meyering  <jim@meyering.net>
31919
31920         Fix canonicalize loop-detection corner case.
31921         Do not attempt to stat the symlink values stored via seen_triple.
31922         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31923         on linux-2.6.18, (but not 2.6.22).
31924         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31925         triple_compare.  The former compares dev,ino,filename, while the latter
31926         would actually stat dirname(filename) when dev and ino were equal.
31927         * lib/hash-triple.c: Install <string.h>.
31928         (STREQ): Define.
31929         (triple_compare_ino_str): New function.
31930         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31931
31932 2007-09-28  Eric Blake  <ebb9@byu.net>
31933
31934         Enforce that AC_REPLACE_FUNCS files exist.
31935         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31936         override check for typos.
31937
31938         Fix test-closein on Solaris 10.
31939         * tests/test-closein.c (main): Don't assume stdin can be inherited
31940         closed on all systems.
31941         * tests/test-closein.sh: Likewise.
31942         Reported by Piotr Tarnowski.
31943
31944 2007-09-28  Jim Meyering  <jim@meyering.net>
31945
31946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31947
31948 2007-09-27  Jim Meyering  <jim@meyering.net>
31949
31950         canonicalize: Avoid a false-positive cycle failure.
31951         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31952         Sort.  Remove cycle-check.
31953         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31954         not cycle-check.h.
31955         (seen_triple): New function.
31956         (canonicalize_filename_mode): Use it instead of cycle-check.
31957         * tests/test-canonicalize.c: Add a test for this bug.
31958         * tests/test-canonicalize.sh: Set up and run the test.
31959
31960         New module, file-set, from coreutils.
31961         * modules/file-set: Define it.
31962         * lib/file-set.c, lib/file-set.h: Implement.
31963
31964         New module, hash-triple, from coreutils.
31965         * modules/hash-triple: Define it.
31966         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31967
31968 2007-09-25  Eric Blake  <ebb9@byu.net>
31969
31970         Fix strerror on Interix.
31971         * lib/string_.h (strerror): Declare replacement.
31972         * doc/functions/strerror.texi (strerror): Document the Interix
31973         shortcoming.
31974         * modules/string (Makefile.am): Support new hooks.
31975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31976         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31977         gl_FUNC_STRERROR_SEPARATE.
31978         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31979         * lib/strerror.c (rpl_strerror): Provide replacement.
31980         * modules/strerror (Depends-on): Add string.
31981         (configure.ac): Detect use of module.
31982         * tests/test-strerror.c: New file.
31983         * modules/strerror-tests: New test module.
31984         * modules/argp (Depends-on): Add strerror.
31985         * modules/error (Depends-on): Likewise.
31986         Reported by Martin Koeppe.
31987
31988 2007-09-24  Bruno Haible  <bruno@clisp.org>
31989
31990         * README: Update git instructions.
31991
31992 2007-09-24  Eric Blake  <ebb9@byu.net>
31993
31994         Revert fpending breakage from 2007-09-08.
31995         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31996         __fpending.c.
31997
31998 2007-09-24  Jim Meyering  <jim@meyering.net>
31999
32000         filenamecat.c: Add a test.
32001         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32002         showing how the function works when DIR is the empty string.
32003
32004 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32005
32006         * tests/test-canonicalize.sh: Turn on executable bit.
32007
32008 2007-09-19  Eric Blake  <ebb9@byu.net>
32009
32010         * README: Update CVS instructions.
32011
32012 2007-09-18  Bruno Haible  <bruno@clisp.org>
32013
32014         * modules/areadlink: New file.
32015         * lib/areadlink.h (areadlink): New declaration.
32016         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32017
32018 2007-09-17  Jim Meyering  <jim@meyering.net>
32019
32020         * lib/savewd.c (ESTALE) [!defined]: Define.
32021         Reported to be required on Interix by Martin Koeppe.
32022
32023 2007-09-17  Bruno Haible  <bruno@clisp.org>
32024
32025         * gnulib-tool (func_version): Use $version.
32026
32027 2007-09-16  Bruno Haible  <bruno@clisp.org>
32028
32029         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32030         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32031         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32032         Reported by Greg Schafer <gschafer@zip.com.au>.
32033
32034 2007-09-15  Bruno Haible  <bruno@clisp.org>
32035
32036         * gnulib-tool (sed): Try a little harder to make bash understand the
32037         alias.
32038         Reported by Bruce Korb <bruce.korb@gmail.com>.
32039
32040 2007-09-13  Eric Blake  <ebb9@byu.net>
32041
32042         * ChangeLog: Remove conflict markers.
32043
32044 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32045
32046         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32047         Reported by Bruno Haible <bruno@clisp.org>.
32048
32049 2007-09-12  Bruno Haible  <bruno@clisp.org>
32050
32051         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32052         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32053         is not defined.
32054
32055 2007-09-12  Eric Blake  <ebb9@byu.net>
32056
32057         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32058         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32059         Autoconf definition.
32060         * modules/euidaccess (Depends-on): Add extensions, for
32061         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32062         * modules/fnmatch (Depends-on): Likewise.
32063         * modules/getaddrinfo (Depends-on): Likewise.
32064         * modules/getdelim (Depends-on): Likewise.
32065         * modules/getline (Depends-on): Likewise.
32066         * modules/getsubopt (Depends-on): Likewise.
32067         * modules/gettext (Depends-on): Likewise.
32068         * modules/group-member (Depends-on): Likewise.
32069         * modules/mbchar (Depends-on): Likewise.
32070         * modules/memmem (Depends-on): Likewise.
32071         * modules/mempcpy (Depends-on): Likewise.
32072         * modules/memrchr (Depends-on): Likewise.
32073         * modules/pagealign_alloc (Depends-on): Likewise.
32074         * modules/readutmp (Depends-on): Likewise.
32075         * modules/stpcpy (Depends-on): Likewise.
32076         * modules/stpncpy (Depends-on): Likewise.
32077         * modules/strchrnul (Depends-on): Likewise.
32078         * modules/strndup (Depends-on): Likewise.
32079         * modules/strsep (Depends-on): Likewise.
32080         * modules/strverscmp (Depends-on): Likewise.
32081         * modules/vasprintf (Depends-on): Likewise.
32082         * modules/wcwidth (Depends-on): Likewise.
32083         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32084         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32088         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32089         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32090         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32091         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32092         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32096         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32097         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32098         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32099         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32100         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32105         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32106         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32107         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32109         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32110         so that lock.m4 can be used in gettext without extensions module.
32111
32112 2007-09-11  Bruno Haible  <bruno@clisp.org>
32113
32114         * m4/isc-posix.m4: Remove file.
32115         Suggested by Eric Blake.
32116
32117 2007-09-11  Eric Blake  <ebb9@byu.net>
32118
32119         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32120
32121 2007-09-10  Bruno Haible  <bruno@clisp.org>
32122
32123         * posix-modules: Fix typo in error message.
32124         Reported by Matt <mkraai@beckman.com>.
32125
32126 2007-09-09  Bruno Haible  <bruno@clisp.org>
32127
32128         * doc/functions/getdelim.texi: Update list of platforms lacking the
32129         function.
32130         * doc/functions/getline.texi: Likewise.
32131
32132 2007-09-09  Jim Meyering  <jim@meyering.net>
32133
32134         * lib/hash.c (hash_initialize): Detect calloc failure.
32135         Reported by Bruno Haible.
32136
32137 2007-09-09  Bruno Haible  <bruno@clisp.org>
32138
32139         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32140         malloc or realloc fails.
32141
32142 2007-09-09  Bruno Haible  <bruno@clisp.org>
32143
32144         * modules/getcwd (Depends-on): Add malloc-posix.
32145         * modules/glob (Depends-on): Likewise.
32146         * modules/putenv (Depends-on): Likewise.
32147         * modules/strdup (Depends-on): Likewise.
32148         * modules/getdelim (Depends-on): Add realloc-posix.
32149         * modules/read-file (Depends-on): Likewise.
32150
32151 2007-09-09  Bruno Haible  <bruno@clisp.org>
32152
32153         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32154         (gl_FUNC_MALLOC_POSIX): Require it.
32155         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32156         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32157         * modules/realloc (Files): Add m4/malloc.m4.
32158         * modules/calloc (Files): Likewise.
32159
32160 2007-09-09  Bruno Haible  <bruno@clisp.org>
32161
32162         * modules/malloc-posix: New file.
32163         * modules/malloc (Depends-on): Add malloc-posix.
32164         * lib/malloc.c: Include errno.h.
32165         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32166         and a POSIX-compatible malloc into a single function. Set ENOMEM
32167         when returning NULL.
32168         * m4/malloc.m4: New file.
32169         * doc/functions/malloc.texi: Mention the malloc-posix module.
32170         * lib/stdlib_.h (malloc): New declaration.
32171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32172         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32173         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32174         and HAVE_MALLOC_POSIX.
32175
32176 2007-09-09  Bruno Haible  <bruno@clisp.org>
32177
32178         * modules/realloc-posix: New file.
32179         * modules/realloc (Depends-on): Add realloc-posix.
32180         * lib/realloc.c: Include errno.h.
32181         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32182         and a POSIX-compatible realloc into a single function. Set ENOMEM
32183         when returning NULL.
32184         * m4/realloc.m4: New file.
32185         * doc/functions/realloc.texi: Mention the realloc-posix module.
32186         * lib/stdlib_.h (realloc): New declaration.
32187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32188         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32189         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32190         and HAVE_REALLOC_POSIX.
32191
32192 2007-09-09  Bruno Haible  <bruno@clisp.org>
32193
32194         * modules/calloc-posix: New file.
32195         * modules/calloc (Depends-on): Add calloc-posix.
32196         * lib/calloc.c: Include errno.h.
32197         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32198         and a POSIX-compatible calloc into a single function. Set ENOMEM
32199         when returning NULL.
32200         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32201         * doc/functions/calloc.texi: Mention the calloc-posix module.
32202         * lib/stdlib_.h (calloc): New declaration.
32203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32204         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32205         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32206         and HAVE_CALLOC_POSIX.
32207
32208 2007-09-09  Bruno Haible  <bruno@clisp.org>
32209
32210         Allow for modules to show an arbitrary notice.
32211         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32212         * gnulib-tool: New option --extract-notice.
32213         (func_usage): Document it.
32214         (sed_extract_prog): Update.
32215         (func_get_notice): New function.
32216         (func_modules_notice): New function.
32217         (func_import, func_create_testdir): Invoke it.
32218         Suggested by Jim Meyering.
32219
32220 2007-09-09  Bruno Haible  <bruno@clisp.org>
32221
32222         * gnulib-tool: New options --verbose, --quiet.
32223         (func_usage): Document them.
32224         (verbose): New variable.
32225         (func_execute_command): New function.
32226         (func_import): Don't show the module list and the file list if
32227         $verbose < 0.
32228         (func_create_testdir): Likewise. Use func_execute_command.
32229         (func_create_megatestdir): Use func_execute_command.
32230
32231 2007-09-08  Bruno Haible  <bruno@clisp.org>
32232
32233         * gnulib-tool (func_import): Prefer rsync over wget when available,
32234         for fetching the PO files.
32235
32236 2007-09-08  Bruno Haible  <bruno@clisp.org>
32237
32238         * posix-modules: New file. Portions copied from gnulib-tool.
32239         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32240
32241 2007-09-08  Jim Meyering  <jim@meyering.net>
32242
32243         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32244         * lib/fpending.h: Rename from __fpending.h.
32245         * lib/fpending.c: Rename from __fpending.c.
32246         Include "fpending.h", not "__fpending.h".
32247         * lib/__fpending.h, lib/__fpending.c: Remove files.
32248         * modules/fpending (Files): Reflect new file names.
32249         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32250
32251 2007-09-08  Bruno Haible  <bruno@clisp.org>
32252
32253         * m4/inttypes-h.m4: Remove stub file.
32254
32255 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32256
32257         * doc/headers/stdint.texi: Discuss #include_next issue.
32258
32259 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32260
32261         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32262
32263 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32264
32265         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32266         in variable name.
32267
32268 2007-09-03  Jim Meyering  <jim@meyering.net>
32269
32270         New module: git-version-gen.
32271         * modules/git-version-gen: New file.
32272
32273         Import changes from coreutils for bootstrap script.
32274
32275         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32276
32277         bootstrap: uses rsync to download the .po files
32278         * build-aux/bootstrap (po_download_command_format): New global.
32279         (download_po_files): Use rsync.
32280         (update_po_files): Don't remove .po files after download,
32281         so future rsync runs can take advantage of the copies.
32282
32283         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32284
32285         Solve the unnecessary-.po-file-regeneration problem once and for all.
32286         * build-aux/bootstrap (download_po_files): New function, renamed from
32287         get_translations.  Now, downloads, but doesn't update LINGUAS.
32288         (update_po_files): New function.
32289
32290         bootstrap: Ignore more.
32291         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32292         uniwidth to e.g., lib/.gitignore.
32293         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32294
32295         * build-aux/bootstrap: New setting: vc_ignore.
32296         (insert_sorted_if_absent): Create $file if absent.
32297         Adapt to new, possibly empty, list: $vc_ignore.
32298
32299         bootstrap: generate more ignorable names
32300         * build-aux/bootstrap (slurp): When generating ignorable names,
32301         also map .sin to .sed, .gperf to .c, and .y to .c.
32302
32303 2007-09-03  Jim Meyering  <jim@meyering.net>
32304
32305         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32306         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32307
32308 2007-09-02  Bruno Haible  <bruno@clisp.org>
32309
32310         Fix mis-recognition of 'mcs' on QNX 6.
32311         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32312         output contains the string "Mono".
32313         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32314         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32315
32316 2007-09-01  Bruno Haible  <bruno@clisp.org>
32317
32318         Fix collision between uniwidth/* and linebreak modules.
32319         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32320         u32_width): Remove declarations.
32321         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32322         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32323         streq3, streq2, streq1, streq0): Remove functions.
32324         (STREQ): Remove macro.
32325         (is_cjk_encoding): Remove function.
32326         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32327         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32328         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32329         * NEWS: Document the change.
32330
32331 2007-09-01  Bruno Haible  <bruno@clisp.org>
32332
32333         * lib/streq.h: Add double-inclusion guard.
32334
32335 2007-09-01  Karl Berry  <karl@gnu.org>
32336
32337         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32338
32339 2007-08-28  Jim Meyering  <jim@meyering.net>
32340
32341         Rename mreadlink_with_size to areadlink_with_size.
32342         * NEWS: Document the change.
32343         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32344         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32345         * lib/mreadlink.h: Rename this to...
32346         * lib/areadlink.h: ...this.
32347         * modules/mreadlink-with-size: Rename this to...
32348         * modules/areadlink-with-size: ...this.
32349         * lib/canonicalize.c: Reflect the renaming.
32350         * modules/canonicalize: Likewise.
32351
32352 2007-08-26  Bruno Haible  <bruno@clisp.org>
32353
32354         * gnulib-tool (func_import): When deciding which files to remove,
32355         consider also dangling symbolic links.
32356         Reported by Eric Blake.
32357
32358 2007-08-26  Bruno Haible  <bruno@clisp.org>
32359
32360         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32361
32362 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32363
32364         * lib/readline.c: Don't include getline.h, the prototype is now
32365         found in stdio.h.
32366
32367 2007-08-23  Jim Meyering  <jim@meyering.net>
32368
32369         Getdelim touchup.
32370         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32371         around the funlockfile call, since funlockfile never sets errno.
32372         Don't set errno upon failed realloc.
32373
32374 2007-08-22  Eric Blake  <ebb9@byu.net>
32375
32376         Getline touchups.
32377         * lib/getdelim.c (getdelim): Revert regression that required *n to
32378         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32379         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32380         getdelim, rather than whether implementation is missing.
32381         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32382         * lib/stdio_.h (getline): Also declare if replacement is
32383         required.
32384         * doc/functions/getdelim.texi: New file.
32385         * doc/functions/getline.texi: Likewise.
32386         * doc/gnulib.texi (Function Substitutes): Add new files.
32387         Reported by Bruno Haible.
32388
32389 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32390
32391         * users.txt: Add Guile.
32392
32393 2007-08-22  Eric Blake  <ebb9@byu.net>
32394
32395         * tests/test-getdelim.c (main): Use remove, not unlink.
32396         * tests/test-getline.c (main): Likewise.
32397
32398         Move getline and getdelim into stdio.h, per POSIX 200x.
32399         * modules/getline (Files): Remove getline.h.
32400         (Depends-on): Add stdio.
32401         (configure.ac): Add module indicator.
32402         * modules/getdelim (Files): Remove getdelim.h.
32403         (Depends-on): Add stdio.
32404         (configure.ac): Add module indicator.
32405         * modules/stdio (Makefile.am): Work with new indicators.
32406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32409         * lib/getdelim.h: Delete.
32410         * lib/getline.h: Delete.
32411         * lib/stdio_.h (getdelim, getline): Declare.
32412         * modules/getdelim-tests: New module.
32413         * modules/getline-tests: Likewise.
32414         * tests/test-getdelim.c: New file.
32415         * tests/test-getline.c: Likewise.
32416         * NEWS: Document the change.
32417         * lib/getline.c: Update choice of header.
32418         * lib/csharpcomp.c: Likewise.
32419         * lib/getpass.c: Likewise.
32420         * lib/javacomp.c: Likewise.
32421         * lib/javaversion.c: Likewise.
32422         * lib/yesno.c: Likewise.
32423         * lib/getdelim.c: Likewise.
32424         (getdelim): Set errno on failure, and avoid memory leak.
32425
32426 2007-08-19  Bruno Haible  <bruno@clisp.org>
32427
32428         * modules/closein (Depends-on): Add freadahead.
32429         * lib/closein.c: Include freadahead.h.
32430         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32431         is zero.
32432
32433 2007-08-19  Bruno Haible  <bruno@clisp.org>
32434
32435         * modules/freadahead-tests: New file.
32436         * tests/test-freadahead.sh: New file.
32437         * tests/test-freadahead.c: New file.
32438
32439         * modules/freadahead: New file.
32440         * lib/freadahead.h: New file.
32441         * lib/freadahead.c: New file.
32442         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32443         fbufmode, fpurge, freadable, fwritable.
32444
32445 2007-08-19  Eric Blake  <ebb9@byu.net>
32446
32447         Test yesno in combination with closein.
32448         * lib/yesno.c (yesno): Document use of stdin.
32449         * modules/yesno-tests (Files): New module.
32450         * tests/test-yesno.c (main): New file.
32451         * tests/test-yesno.sh: Likewise.
32452
32453 2007-08-19  Bruno Haible  <bruno@clisp.org>
32454
32455         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32456         * lib/fseeko.c (rpl_fseeko): Likewise.
32457         * lib/fseterr.c (fseterr): Likewise.
32458
32459 2007-08-19  Bruno Haible  <bruno@clisp.org>
32460
32461         * tests/test-lseek.c (main): Disable a test for BeOS.
32462         * doc/functions/lseek.texi: Document the BeOS bug.
32463
32464 2007-08-19  Bruno Haible  <bruno@clisp.org>
32465             Eric Blake  <ebb9@byu.net>
32466
32467         * lib/lseek.c: Include <sys/stat.h>.
32468         (rpl_lseek): Add workaround code also for Unix platforms.
32469         Needed for BeOS.
32470         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32471         * doc/functions/lseek.texi: Document BeOS definiency.
32472
32473 2007-08-18  Bruno Haible  <bruno@clisp.org>
32474
32475         * modules/fstrcmp-tests: New file.
32476         * tests/test-fstrcmp.c: New file.
32477
32478 2007-08-18  Bruno Haible  <bruno@clisp.org>
32479
32480         * modules/fstrcmp: New file, from GNU gettext with modifications.
32481         * lib/fstrcmp.h: New file, from GNU gettext.
32482         * lib/fstrcmp.c: New file, from GNU gettext.
32483         * MODULES.html.sh (String handling): Add fstrcmp.
32484
32485 2007-08-18  Bruno Haible  <bruno@clisp.org>
32486
32487         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32488         'bool'.
32489         (diag, compareseq): Remove const from the ctxt argument.
32490         (USE_HEURISTIC): Undefine at the end.
32491
32492 2007-08-18  Jim Meyering  <jim@meyering.net>
32493
32494         New file: lib/idcache.h
32495         * NEWS: Mention the addition.
32496         * modules/idcache (Files): Add lib/idcache.h
32497         * lib/idcache.c: Include "idcache.h".
32498         Don't include <sys/types.h>.
32499         Add a FIXME comment.
32500         Move file-scoped "static" declarations to the top.
32501         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32502
32503 2007-08-17  Bruno Haible  <bruno@clisp.org>
32504         and Paul Eggert  <eggert@cs.ucla.edu>
32505
32506         * MODULES.html.sh: Add diffseq.
32507         * modules/diffseq: New file.
32508         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32509         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32510
32511 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32512
32513         Import changes from coreutils for bootstrap script.
32514
32515         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32516
32517         * build-aux/bootstrap (slurp): Work even in environments where
32518         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32519         current code does not slurp files whose names start with ".", and
32520         this looks like it might be a troublesome area.
32521
32522         2007-07-11  Jim Meyering  <jim@meyering.net>
32523
32524         If there's a GPL vN copyright comment, require that N == 3.
32525
32526         2007-07-08  Jim Meyering  <jim@meyering.net>
32527
32528         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32529         * build-aux/bootstrap (mam_template): Move definition out of loop.
32530
32531         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32532
32533         * build-aux/bootstrap (symlink_to_dir): Rename function from
32534         symlink_to_gnulib.  Add a directory parameter.  Update all
32535         callers.
32536         (cp_mark_as_generated): Also check for -- and link to -- files in
32537         gl/.
32538
32539         2007-07-08  Jim Meyering  <jim@meyering.net>
32540
32541         Adapt to deeper hierarchy in gnulib.
32542         * build-aux/bootstrap (symlink_to_dir): If the destination
32543         directory doesn't exist, create it. This is required at least for
32544         "lib/uniwidth/cjk.h".
32545
32546         2007-05-15  Jim Meyering  <jim@meyering.net>
32547
32548         * build-aux/bootstrap: Now that generated Makefile.am files
32549         are no longer under version control, they must be created at
32550         bootstrap time.
32551
32552 2007-08-14  Ben Pfaff  <blp@gnu.org>
32553
32554         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32555
32556 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32557
32558         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32559         given the changes below.
32560         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32561         even on hosts that have padding bits beyond the supported 64.
32562
32563 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32564
32565         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32566         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32567         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32568         depends on it.
32569         (xstrtol_error): Remove.
32570         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32571         but with a different signature.
32572         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32573         * lib/xstrtol-error.c: Include exitfail.h.
32574         (xstrtol_fatal): New function, with a different signature from the
32575         old xstrtol_error, so that the caller need not worry about passing
32576         in an exit status, or about storage management of the option argument.
32577         (xstrtol_error): Now a static function.  Redo signature to
32578         implement xstrtol_fatal.  Output the correct number of hyphens in
32579         front of the option so that the caller need not worry about
32580         storage management.
32581         (N_): New macro.
32582         (_): Remove; not used now.
32583         * modules/xstrtol: Depend on getopt.
32584         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32585         of old STRTOL_FATAL_ERROR macro.
32586         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32587         of test program.
32588         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32589         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32590
32591 2007-08-08  Eric Blake  <ebb9@byu.net>
32592
32593         * lib/xstrtol-error.c: Add missing include.
32594
32595         Move xstrtol messages into gnulib domain, when --pobase is used.
32596         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32597         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32598         * modules/xstrtol (Files): Distribute new file.
32599         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32600         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32601         * tests/test-xstrtol.c: ...into new file.
32602         * tests/test-xstrtoul.c: Also test xstrtoul.
32603         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32604         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32605         * tests/test-xstrtol.sh: Drive the tests.
32606         * tests/test-xstrtoimax.sh: Likewise.
32607         * tests/test-xstrtoumax.sh: Likewise.
32608         * modules/xstrtol-tests: New module.
32609         * modules/xstrtoimax-tests: Likewise.
32610         * modules/xstrtoumax-tests: Likewise.
32611
32612 2007-08-08  Jim Meyering  <jim@meyering.net>
32613
32614         New function: mfile_name_concat.
32615         * lib/filenamecat.c (mfile_name_concat): New function, just like
32616         file_name_concat, but return NULL upon failure rather than exiting
32617         with a diagnostic.
32618         * lib/filenamecat.h: Declare it.
32619
32620 2007-08-07  Bruno Haible  <bruno@clisp.org>
32621
32622         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32623         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32624         warning from gcc.
32625         Reported by Eric Blake.
32626
32627 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32628
32629         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32630         * modules/crypto/arcfour (License): Likewise.
32631         * modules/crypto/des-tests (License): Likewise.
32632         * modules/crypto/gc-arctwo-tests (License): Likewise.
32633         * modules/crypto/gc-des-tests (License): Likewise.
32634         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32635         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32636         * modules/crypto/gc-md2-tests (License): Likewise.
32637         * modules/crypto/gc-md4-tests (License): Likewise.
32638         * modules/crypto/gc-md5-tests (License): Likewise.
32639         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32640         * modules/crypto/gc-rijndael-tests (License): Likewise.
32641         * modules/crypto/gc-sha1-tests (License): Likewise.
32642         * modules/crypto/gc-tests (License): Likewise.
32643         * modules/crypto/hmac-md5 (License): Likewise.
32644         * modules/crypto/hmac-sha1 (License): Likewise.
32645         * modules/crypto/md2-tests (License): Likewise.
32646         * modules/crypto/md4-tests (License): Likewise.
32647         * modules/crypto/md5 (License): Likewise.
32648         * modules/crypto/rijndael (License): Likewise.
32649         * modules/crypto/sha1 (License): Likewise.
32650         * modules/memxor (License): Likewise.
32651
32652 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32653         and Bruno Haible  <bruno@clisp.org>
32654
32655         * NEWS: Describe interface changes to human, xstrtol.
32656         * lib/human.h: Include <xstrtol.h>.
32657         (human_options): Return enum strtol_error, not int.  Remove
32658         bool arg; take int * instead.
32659         * lib/human.c: Don't include "gettext.h".
32660         (_): Remove; no longer used.
32661         Don't include <xstrtol.h>, since human.h does it.
32662         (human_options): Adjust to abovementioned interface changes.
32663         Do not report error to stderr; that's now the caller's
32664         responsibility.
32665         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32666         interface change.
32667         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32668         Str, Argument_type_string.  All uses changed.  Put " argument"
32669         in diagnostics to make them clearer.  Change wording of suffix
32670         message for clarity.
32671         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32672         Argument_type_string.
32673         (STRTOL_FATAL_WARN): Remove; no longer used.
32674         * modules/human (Depends-on): Remove gettext-h.
32675
32676 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32677
32678         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32679
32680 2007-07-31  Bruno Haible  <bruno@clisp.org>
32681
32682         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32683         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32684         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32685
32686 2007-07-31  Bruno Haible  <bruno@clisp.org>
32687
32688         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32689         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32690
32691 2007-07-30  Bruno Haible  <bruno@clisp.org>
32692
32693         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32694         * modules/c-ctype (License): Likewise.
32695         * modules/c-strcase (License): Likewise.
32696         * modules/check-version (License): Likewise.
32697         * modules/iconv (License): Likewise.
32698         * modules/iconv_open (License): Likewise.
32699         * modules/read-file (License): Likewise.
32700         * modules/striconv (License): Likewise.
32701         * modules/strverscmp (License): Likewise.
32702         * modules/vasprintf (License): Likewise.
32703         * modules/crypto/des (License): Likewise.
32704         * modules/crypto/gc (License): Likewise.
32705         * modules/crypto/gc-arcfour (License): Likewise.
32706         * modules/crypto/gc-arctwo (License): Likewise.
32707         * modules/crypto/gc-des (License): Likewise.
32708         * modules/crypto/gc-hmac-md5 (License): Likewise.
32709         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32710         * modules/crypto/gc-md2 (License): Likewise.
32711         * modules/crypto/gc-md4 (License): Likewise.
32712         * modules/crypto/gc-md5 (License): Likewise.
32713         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32714         * modules/crypto/gc-random (License): Likewise.
32715         * modules/crypto/gc-rijndael (License): Likewise.
32716         * modules/crypto/gc-sha1 (License): Likewise.
32717         * modules/crypto/md2 (License): Likewise.
32718         * modules/crypto/md4 (License): Likewise.
32719
32720 2007-07-30  Jim Meyering  <jim@meyering.net>
32721
32722         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32723         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32724         it has valid stat data.  This bug would cause du not to count the
32725         sizes of inaccessible directories.
32726         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32727         in <http://bugzilla.redhat.com/250077>.
32728
32729 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32730             Bruno Haible  <bruno@clisp.org>
32731
32732         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32733         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32734         #include_next, gives a diagnostic about it, but reports no error in
32735         the exit code.
32736         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32737
32738 2007-07-24  Ben Pfaff  <blp@gnu.org>
32739
32740         Improve name: "count-one-bits" is better than "popcount".
32741         * MODULES.html.sh: Update name.
32742         * lib/popcount.h: Renamed lib/count-one-bits.h.
32743         (popcount): Renamed count_one_bits.
32744         (popcountl): Renamed count_one_bits_l.
32745         (popcountll): Renamed count_one_bits_ll.
32746         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32747         * modules/popcount: Renamed module/count-one-bits.
32748         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32749         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32750
32751 2007-07-23  Ben Pfaff  <blp@gnu.org>
32752
32753         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32754         better code generation, and add U to large constants to avoid
32755         warnings, in non-GCC case.
32756         Suggested by Bruno Haible.
32757
32758 2007-07-23  Ben Pfaff  <blp@gnu.org>
32759
32760         * lib/popcount.h: Use verify_true instead of if...abort.
32761         * modules/popcount: Depend on verify module.
32762         Suggested by Jim Meyering.
32763
32764 2007-07-23  Bruno Haible  <bruno@clisp.org>
32765
32766         * gnulib-tool (func_import): Create a .cvsignore file also when the
32767         directory is not yet in CVS but the toplevel directory is. When
32768         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32769         Reported by Karl Berry.
32770
32771 2007-07-22  Ben Pfaff  <blp@gnu.org>
32772
32773         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32774         case.
32775         Suggested by Eric Blake.
32776
32777 2007-07-22  Ben Pfaff  <blp@gnu.org>
32778
32779         New module: popcount.
32780         * MODULES.html.sh: Add popcount.
32781         * modules/popcount: New file.
32782         * modules/popcount-tests: New file.
32783         * tests/test-popcount.c: New file.
32784         * lib/popcount.h: New file.
32785         * m4/popcount.m4: New file.
32786
32787 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32788
32789         * build-aux/announce-gen: Update to GPLv3.
32790
32791         * build-aux/config.guess: Update from config.
32792
32793 2007-07-21  Bruno Haible  <bruno@clisp.org>
32794
32795         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32796         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32797
32798 2007-07-20  Jim Meyering  <jim@meyering.net>
32799
32800         * check-module: Diagnose a self-dependency.
32801
32802 2007-07-19  Bruno Haible  <bruno@clisp.org>
32803
32804         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32805         empty.
32806         Reported by Eric Blake.
32807
32808 2007-07-18  Bruno Haible  <bruno@clisp.org>
32809
32810         * gnulib-tool: New options --po-base, --po-domain.
32811         (func_usage): Document them.
32812         (pobase, po_domain): New variables.
32813         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32814         DEFAULT_TEXT_DOMAIN.
32815         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32816         (func_import): Consider pobase and po_domain. Create a po/ directory.
32817         (func_create_testdir): Set pobase and po_domain to empty.
32818         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32819         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32820
32821 2007-07-18  Bruno Haible  <bruno@clisp.org>
32822
32823         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32824         EXTRA_DIST augmentation for files in build-aux/.
32825
32826 2007-07-16  Bruno Haible  <bruno@clisp.org>
32827
32828         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32829         * modules/getdelim (License): Likewise.
32830
32831 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32832
32833         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32834         * modules/d-type (License): Likewise.
32835         * modules/extensions (License): Likewise.
32836         * modules/fnmatch (License): Likewise.
32837         * modules/fseeko (License): Likewise.
32838         * modules/getaddrinfo (License): Likewise.
32839         * modules/getline (License): Likewise.
32840         * modules/getlogin_r (License): Likewise.
32841         * modules/getpass (License): Likewise.
32842         * modules/gettimeofday (License): Likewise.
32843         * modules/glob (License): Likewise.
32844         * modules/inet_ntop (License): Likewise.
32845         * modules/malloc (License): Likewise.
32846         * modules/malloca (License): Likewise.
32847         * modules/memmem (License): Likewise.
32848         * modules/mempcpy (License): Likewise.
32849         * modules/memset (License): Likewise.
32850         * modules/minmax (License): Likewise.
32851         * modules/mktime (License): Likewise.
32852         * modules/netinet_in (License): Likewise.
32853         * modules/pathmax (License): Likewise.
32854         * modules/poll (License): Likewise.
32855         * modules/regex (License): Likewise.
32856         * modules/snprintf (License): Likewise.
32857         * modules/stdbool (License): Likewise.
32858         * modules/stdint (License): Likewise.
32859         * modules/stdio (License): Likewise.
32860         * modules/strcase (License): Likewise.
32861         * modules/strcasestr (License): Likewise.
32862         * modules/strdup (License): Likewise.
32863         * modules/string (License): Likewise.
32864         * modules/strndup (License): Likewise.
32865         * modules/strnlen (License): Likewise.
32866         * modules/strpbrk (License): Likewise.
32867         * modules/strptime (License): Likewise.
32868         * modules/strsep (License): Likewise.
32869         * modules/sys_select (License): Likewise.
32870         * modules/sys_socket (License): Likewise.
32871         * modules/sys_stat (License): Likewise.
32872         * modules/sys_time (License): Likewise.
32873         * modules/time (License): Likewise.
32874         * modules/time_r (License): Likewise.
32875         * modules/timegm (License): Likewise.
32876         * modules/unistd (License): Likewise.
32877         * modules/vsnprintf (License): Likewise.
32878         * modules/wctype (License): Likewise.
32879
32880 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32881
32882         * modules/argz (License): LGPLv2+.
32883
32884 2007-07-15  Karl Berry  <karl@gnu.org>
32885
32886         * doc/gnulib.texi: revise node structure per new fdl.texi.
32887
32888 2007-07-14  Bruno Haible  <bruno@clisp.org>
32889
32890         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32891         the output file.
32892         * lib/uniname/uninames.h: Regenerated.
32893
32894 2007-07-14  Karl Berry  <karl@gnu.org>
32895
32896         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32897         omitting sectioning and index commands.
32898
32899 2007-07-13  Bruno Haible  <bruno@clisp.org>
32900
32901         New gnulib-tool option --more-symlinks.
32902         * gnulib-tool (func_usage): Document --more-symlinks.
32903         (do_copyrights): New variable.
32904         Recognize option --more-symlinks.
32905         (func_import): Don't add a copyright notice transform to
32906         sed_transform_lib_file if do_copyrights is empty.
32907
32908 2007-07-13  Bruno Haible  <bruno@clisp.org>
32909
32910         * lib/vasnprintf.c (decimal_point_char): Define also if
32911         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32912         && !NEED_PRINTF_DIRECTIVE_A.
32913         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32914         Gary V. Vaughan <gary@gnu.org>.
32915
32916 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32917
32918         * lib/inttypes_.h: Undo previous change, since it was fixed
32919         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32920
32921 2007-07-13  Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32924         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32925
32926 2007-07-13  Jim Meyering  <jim@meyering.net>
32927
32928         df: Don't fail for Tru64's "file-on-file mount".
32929         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32930         so we fall through and use statfs instead.  Details here:
32931         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32932         Reported by Albert Chin.
32933
32934 2007-07-13  Bruno Haible  <bruno@clisp.org>
32935
32936         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32937         * modules/configmake (License): Likewise.
32938         * modules/gettext (License): Likewise.
32939         * modules/gettext-h (License): Likewise.
32940         * modules/include_next (License): Likewise.
32941         * modules/link-warning (License): Likewise.
32942         * modules/localcharset (License): Likewise.
32943         * modules/localename (License): Likewise.
32944         * modules/lock (License): Likewise.
32945         * modules/relocatable-lib-lgpl (License): Likewise.
32946         * modules/size_max (License): Likewise.
32947         * modules/vasnprintf (License): Likewise.
32948         * modules/wchar (License): Likewise.
32949         * modules/xsize (License): Likewise.
32950
32951 2007-07-13  Bruno Haible  <bruno@clisp.org>
32952
32953         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32954         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32955
32956 2007-07-12  Bruno Haible  <bruno@clisp.org>
32957
32958         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32959         in the modules files.
32960
32961 2007-07-11  Karl Berry  <karl@gnu.org>
32962
32963         * MODULES.html.sh (func_module): use
32964          sed -e '\|^'"${includefile}"'$|d'
32965          instead of /.../d, to avoid errors on $includefile's containing /.
32966
32967 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32968
32969         * gnulib-tool (func_import): Avoid duplication of --avoid
32970         statements
32971         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32972         names to `_' in variable names.
32973
32974 2007-07-10  Eric Blake  <ebb9@byu.net>
32975
32976         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32977         * NEWS: Document this change.
32978
32979 2007-07-08  Bruno Haible  <bruno@clisp.org>
32980
32981         Update to Unicode 5.0.
32982         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32983         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32984         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32985         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32986         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32987         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32988         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32989         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32990         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32991         U+10A3F, U+1D242..U+1D244.
32992         (nonspacing_table_ind): Update.
32993         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32994         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32995
32996 2007-07-08  Bruno Haible  <bruno@clisp.org>
32997
32998         Update to Unicode 5.0.
32999         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33000         code transform. Extend the name index field of unicode_name_to_code and
33001         unicode_code_to_name from 16 to 24 bits.
33002         * lib/uniname/uniname.c (unicode_character_name,
33003         unicode_name_character): Add the range 0x12xxx to the code transform.
33004         * lib/uniname/uninames.h: Regenerated.
33005         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33006
33007 2007-07-07  Bruno Haible  <bruno@clisp.org>
33008
33009         * modules/wcwidth-tests: New file.
33010         * tests/test-wcwidth.c: New file.
33011
33012         Work around MacOS X wcwidth() bug.
33013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33014         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33015         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33016         original wcwidth in non-UTF-8 locales.
33017         * modules/wcwidth (Depends-on): Add localcharset, streq,
33018         uniwidth/width.
33019         * doc/functions/wcwidth.texi: Update.
33020
33021 2007-07-07  Bruno Haible  <bruno@clisp.org>
33022
33023         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33024         (wcwidth): New declaration.
33025         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33026         macros.
33027         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33028         here. Prepare for creating <wchar.h> unconditionally.
33029         * modules/wchar (Depends-on): Add link-warning.
33030         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33031         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33032         * lib/wcwidth.h: Remove file.
33033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33034         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33035         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33036         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33037         (Include): Replace wcwidth.h with <wchar.h>.
33038         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33039         * lib/mbchar.h: Don't include wcwidth.h.
33040         * lib/mbswidth.c: Likewise.
33041         * NEWS: Mention the change.
33042
33043 2007-07-07  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33046         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33047         definition with an external declaration.
33048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33049         defined as a function. Remove AC_C_INLINE requirement.
33050         * modules/wcwidth (Files): Add lib/wcwidth.c.
33051         (Makefile.am): Remove redundant statement.
33052
33053 2007-07-07  Bruno Haible  <bruno@clisp.org>
33054
33055         * MODULES.html.sh (Unicode string functions): Add the new modules.
33056
33057         * tests/uniwidth/test-u32-strwidth.c: New file.
33058         * modules/uniwidth/u32-strwidth-tests: New file.
33059
33060         * lib/uniwidth/u32-strwidth.c: New file.
33061         * modules/uniwidth/u32-strwidth: New file.
33062
33063         * tests/uniwidth/test-u16-strwidth.c: New file.
33064         * modules/uniwidth/u16-strwidth-tests: New file.
33065
33066         * lib/uniwidth/u16-strwidth.c: New file.
33067         * modules/uniwidth/u16-strwidth: New file.
33068
33069         * tests/uniwidth/test-u8-strwidth.c: New file.
33070         * modules/uniwidth/u8-strwidth-tests: New file.
33071
33072         * lib/uniwidth/u8-strwidth.c: New file.
33073         * modules/uniwidth/u8-strwidth: New file.
33074
33075         * tests/uniwidth/test-u32-width.c: New file.
33076         * modules/uniwidth/u32-width-tests: New file.
33077
33078         * lib/uniwidth/u32-width.c: New file.
33079         * modules/uniwidth/u32-width: New file.
33080
33081         * tests/uniwidth/test-u16-width.c: New file.
33082         * modules/uniwidth/u16-width-tests: New file.
33083
33084         * lib/uniwidth/u16-width.c: New file.
33085         * modules/uniwidth/u16-width: New file.
33086
33087         * tests/uniwidth/test-u8-width.c: New file.
33088         * modules/uniwidth/u8-width-tests: New file.
33089
33090         * lib/uniwidth/u8-width.c: New file.
33091         * modules/uniwidth/u8-width: New file.
33092
33093         * tests/uniwidth/test-uc_width.c: New file.
33094         * modules/uniwidth/width-tests: New file.
33095
33096         * lib/uniwidth/width.c: New file, from GNU libiconv.
33097         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33098         * modules/uniwidth/width: New file.
33099
33100         * lib/uniwidth.h: New file, from GNU libiconv.
33101         * modules/uniwidth/base: New file.
33102
33103 2007-07-07  Bruno Haible  <bruno@clisp.org>
33104
33105         * lib/uniname.h: New file, from GNU gettext.
33106         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33107         * lib/uniname/uninames.h: New file, from GNU gettext.
33108         * lib/uniname/uniname.c: New file, from GNU gettext.
33109         * tests/uniname/test-uninames.sh: New file.
33110         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33111         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33112         * modules/uniname/base: New file.
33113         * modules/uniname/uniname: New file.
33114         * modules/uniname/uniname-tests: New file.
33115         * MODULES.html.sh (Unicode string functions): Add the new modules.
33116
33117 2007-07-06  Bruno Haible  <bruno@clisp.org>
33118
33119         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33120
33121 2007-07-06  Bruno Haible  <bruno@clisp.org>
33122
33123         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33124         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33125         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33126         include <sys/time.h>.
33127         Reported by Eric Blake.
33128
33129 2007-07-06  Eric Blake  <ebb9@byu.net>
33130
33131         Fix testing canonicalize on cygwin.
33132         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33133         Revert patch from 2007-06-19.
33134         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33135         canonicalize module is also in use.
33136         * tests/test-canonicalize.c: New file.
33137         * tests/test-canonicalize.sh: Likewise.
33138         * modules/canonicalize-tests: Likewise.
33139
33140 2007-07-06  Jim Meyering  <jim@meyering.net>
33141
33142         * lib/getugroups.c (getugroups): Detect getgrent failure.
33143         Adjust comment to reflect reality: this function may return -1.
33144
33145 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33146
33147         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33148         the new TP address.
33149         (usage): Fix typo
33150         (gnulib_mk): New variable.
33151
33152 2007-07-05  Jim Meyering  <jim@meyering.net>
33153
33154         Don't let endgrent clobber errno, no matter how improbable.
33155         * lib/getugroups.c (getugroups): Save and restore errno around
33156         endgrent call.
33157
33158         Close the group DB even when failing with 2^31 or more members.
33159         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33160
33161 2007-07-04  Jim Meyering  <jim@meyering.net>
33162
33163         * lib/getugroups.h: New file.
33164         * lib/getugroups.c: Include "getugroups.h".
33165         Remove uses of "register" keyword.
33166         Move local variable, "cp", down into scope where used.
33167         Give "username" parameter the "const" attribute.
33168         * modules/getugroups (Files): Add lib/getugroups.h
33169
33170 2007-07-04  Karl Berry  <karl@gnu.org>
33171
33172         * MODULES.html.sh (func_all_modules): Complete rename of
33173         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33174
33175 2007-07-02  Bruno Haible  <bruno@clisp.org>
33176
33177         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33178         mode, when inttypes.h comes from gnulib.
33179         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33180
33181 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33182
33183         * NEWS: Mention lgpl module name change.
33184
33185         * modules/lgpl-2.1: Renamed from lgpl.
33186
33187         * NEWS: Mention gpl module name change.
33188
33189         * modules/gpl-3.0: New file, based on gpl-2.0.
33190
33191         * modules/gpl-2.0: Renamed from gpl.
33192
33193         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33194         doc/gpl-2.0.texi.
33195
33196 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33197
33198         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33199         #define __STDC_LIMIT_MACROS temporarily while including
33200         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33201         Problem reported by Joel E. Denny in
33202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33203
33204 2007-07-01  Bruno Haible  <bruno@clisp.org>
33205
33206         * lib/unistdio.h: New file.
33207         * lib/unistdio/u-asnprintf.h: New file.
33208         * lib/unistdio/u-asprintf.h: New file.
33209         * lib/unistdio/u-printf-args.c: New file.
33210         * lib/unistdio/u-printf-args.h: New file.
33211         * lib/unistdio/u-printf-parse.h: New file.
33212         * lib/unistdio/u-snprintf.h: New file.
33213         * lib/unistdio/u-sprintf.h: New file.
33214         * lib/unistdio/u-vasprintf.h: New file.
33215         * lib/unistdio/u-vsnprintf.h: New file.
33216         * lib/unistdio/u-vsprintf.h: New file.
33217         * lib/unistdio/ulc-asnprintf.c: New file.
33218         * lib/unistdio/ulc-asprintf.c: New file.
33219         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33220         * lib/unistdio/ulc-printf-parse.c: New file.
33221         * lib/unistdio/ulc-snprintf.c: New file.
33222         * lib/unistdio/ulc-sprintf.c: New file.
33223         * lib/unistdio/ulc-vasnprintf.c: New file.
33224         * lib/unistdio/ulc-vasprintf.c: New file.
33225         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33226         * lib/unistdio/ulc-vsnprintf.c: New file.
33227         * lib/unistdio/ulc-vsprintf.c: New file.
33228         * lib/unistdio/u8-asnprintf.c: New file.
33229         * lib/unistdio/u8-asprintf.c: New file.
33230         * lib/unistdio/u8-printf-parse.c: New file.
33231         * lib/unistdio/u8-snprintf.c: New file.
33232         * lib/unistdio/u8-sprintf.c: New file.
33233         * lib/unistdio/u8-vasnprintf.c: New file.
33234         * lib/unistdio/u8-vasprintf.c: New file.
33235         * lib/unistdio/u8-vsnprintf.c: New file.
33236         * lib/unistdio/u8-vsprintf.c: New file.
33237         * lib/unistdio/u8-u8-asnprintf.c: New file.
33238         * lib/unistdio/u8-u8-asprintf.c: New file.
33239         * lib/unistdio/u8-u8-snprintf.c: New file.
33240         * lib/unistdio/u8-u8-sprintf.c: New file.
33241         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33242         * lib/unistdio/u8-u8-vasprintf.c: New file.
33243         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33244         * lib/unistdio/u8-u8-vsprintf.c: New file.
33245         * lib/unistdio/u16-asnprintf.c: New file.
33246         * lib/unistdio/u16-asprintf.c: New file.
33247         * lib/unistdio/u16-printf-parse.c: New file.
33248         * lib/unistdio/u16-snprintf.c: New file.
33249         * lib/unistdio/u16-sprintf.c: New file.
33250         * lib/unistdio/u16-vasnprintf.c: New file.
33251         * lib/unistdio/u16-vasprintf.c: New file.
33252         * lib/unistdio/u16-vsnprintf.c: New file.
33253         * lib/unistdio/u16-vsprintf.c: New file.
33254         * lib/unistdio/u16-u16-asnprintf.c: New file.
33255         * lib/unistdio/u16-u16-asprintf.c: New file.
33256         * lib/unistdio/u16-u16-snprintf.c: New file.
33257         * lib/unistdio/u16-u16-sprintf.c: New file.
33258         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33259         * lib/unistdio/u16-u16-vasprintf.c: New file.
33260         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33261         * lib/unistdio/u16-u16-vsprintf.c: New file.
33262         * lib/unistdio/u32-asnprintf.c: New file.
33263         * lib/unistdio/u32-asprintf.c: New file.
33264         * lib/unistdio/u32-printf-parse.c: New file.
33265         * lib/unistdio/u32-snprintf.c: New file.
33266         * lib/unistdio/u32-sprintf.c: New file.
33267         * lib/unistdio/u32-vasnprintf.c: New file.
33268         * lib/unistdio/u32-vasprintf.c: New file.
33269         * lib/unistdio/u32-vsnprintf.c: New file.
33270         * lib/unistdio/u32-vsprintf.c: New file.
33271         * lib/unistdio/u32-u32-asnprintf.c: New file.
33272         * lib/unistdio/u32-u32-asprintf.c: New file.
33273         * lib/unistdio/u32-u32-snprintf.c: New file.
33274         * lib/unistdio/u32-u32-sprintf.c: New file.
33275         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33276         * lib/unistdio/u32-u32-vasprintf.c: New file.
33277         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33278         * lib/unistdio/u32-u32-vsprintf.c: New file.
33279         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33280         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33281         * tests/unistdio/test-ulc-printf1.h: New file.
33282         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33283         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33284         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33285         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33286         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33287         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33288         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33289         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33290         * tests/unistdio/test-u8-asnprintf1.c: New file.
33291         * tests/unistdio/test-u8-asnprintf1.h: New file.
33292         * tests/unistdio/test-u8-printf1.h: New file.
33293         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33294         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33295         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33296         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33297         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33298         * tests/unistdio/test-u8-vasprintf1.c: New file.
33299         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33300         * tests/unistdio/test-u8-vsprintf1.c: New file.
33301         * tests/unistdio/test-u16-asnprintf1.c: New file.
33302         * tests/unistdio/test-u16-asnprintf1.h: New file.
33303         * tests/unistdio/test-u16-printf1.h: New file.
33304         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33305         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33306         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33307         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33308         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33309         * tests/unistdio/test-u16-vasprintf1.c: New file.
33310         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33311         * tests/unistdio/test-u16-vsprintf1.c: New file.
33312         * tests/unistdio/test-u32-asnprintf1.c: New file.
33313         * tests/unistdio/test-u32-asnprintf1.h: New file.
33314         * tests/unistdio/test-u32-printf1.h: New file.
33315         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33316         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33317         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33318         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33319         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33320         * tests/unistdio/test-u32-vasprintf1.c: New file.
33321         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33322         * tests/unistdio/test-u32-vsprintf1.c: New file.
33323         * modules/unistdio/base: New file.
33324         * modules/unistdio/u-printf-args: New file.
33325         * modules/unistdio/ulc-asnprintf: New file.
33326         * modules/unistdio/ulc-asprintf: New file.
33327         * modules/unistdio/ulc-fprintf: New file.
33328         * modules/unistdio/ulc-printf-parse: New file.
33329         * modules/unistdio/ulc-snprintf: New file.
33330         * modules/unistdio/ulc-sprintf: New file.
33331         * modules/unistdio/ulc-vasnprintf: New file.
33332         * modules/unistdio/ulc-vasprintf: New file.
33333         * modules/unistdio/ulc-vfprintf: New file.
33334         * modules/unistdio/ulc-vsnprintf: New file.
33335         * modules/unistdio/ulc-vsprintf: New file.
33336         * modules/unistdio/u8-asnprintf: New file.
33337         * modules/unistdio/u8-asprintf: New file.
33338         * modules/unistdio/u8-printf-parse: New file.
33339         * modules/unistdio/u8-snprintf: New file.
33340         * modules/unistdio/u8-sprintf: New file.
33341         * modules/unistdio/u8-vasnprintf: New file.
33342         * modules/unistdio/u8-vasprintf: New file.
33343         * modules/unistdio/u8-vsnprintf: New file.
33344         * modules/unistdio/u8-vsprintf: New file.
33345         * modules/unistdio/u8-u8-asnprintf: New file.
33346         * modules/unistdio/u8-u8-asprintf: New file.
33347         * modules/unistdio/u8-u8-snprintf: New file.
33348         * modules/unistdio/u8-u8-sprintf: New file.
33349         * modules/unistdio/u8-u8-vasnprintf: New file.
33350         * modules/unistdio/u8-u8-vasprintf: New file.
33351         * modules/unistdio/u8-u8-vsnprintf: New file.
33352         * modules/unistdio/u8-u8-vsprintf: New file.
33353         * modules/unistdio/u16-asnprintf: New file.
33354         * modules/unistdio/u16-asprintf: New file.
33355         * modules/unistdio/u16-printf-parse: New file.
33356         * modules/unistdio/u16-snprintf: New file.
33357         * modules/unistdio/u16-sprintf: New file.
33358         * modules/unistdio/u16-vasnprintf: New file.
33359         * modules/unistdio/u16-vasprintf: New file.
33360         * modules/unistdio/u16-vsnprintf: New file.
33361         * modules/unistdio/u16-vsprintf: New file.
33362         * modules/unistdio/u16-u16-asnprintf: New file.
33363         * modules/unistdio/u16-u16-asprintf: New file.
33364         * modules/unistdio/u16-u16-snprintf: New file.
33365         * modules/unistdio/u16-u16-sprintf: New file.
33366         * modules/unistdio/u16-u16-vasnprintf: New file.
33367         * modules/unistdio/u16-u16-vasprintf: New file.
33368         * modules/unistdio/u16-u16-vsnprintf: New file.
33369         * modules/unistdio/u16-u16-vsprintf: New file.
33370         * modules/unistdio/u32-asnprintf: New file.
33371         * modules/unistdio/u32-asprintf: New file.
33372         * modules/unistdio/u32-printf-parse: New file.
33373         * modules/unistdio/u32-snprintf: New file.
33374         * modules/unistdio/u32-sprintf: New file.
33375         * modules/unistdio/u32-vasnprintf: New file.
33376         * modules/unistdio/u32-vasprintf: New file.
33377         * modules/unistdio/u32-vsnprintf: New file.
33378         * modules/unistdio/u32-vsprintf: New file.
33379         * modules/unistdio/u32-u32-asnprintf: New file.
33380         * modules/unistdio/u32-u32-asprintf: New file.
33381         * modules/unistdio/u32-u32-snprintf: New file.
33382         * modules/unistdio/u32-u32-sprintf: New file.
33383         * modules/unistdio/u32-u32-vasnprintf: New file.
33384         * modules/unistdio/u32-u32-vasprintf: New file.
33385         * modules/unistdio/u32-u32-vsnprintf: New file.
33386         * modules/unistdio/u32-u32-vsprintf: New file.
33387         * modules/unistdio/ulc-asnprintf-tests: New file.
33388         * modules/unistdio/ulc-vasnprintf-tests: New file.
33389         * modules/unistdio/ulc-vasprintf-tests: New file.
33390         * modules/unistdio/ulc-vsnprintf-tests: New file.
33391         * modules/unistdio/ulc-vsprintf-tests: New file.
33392         * modules/unistdio/u8-asnprintf-tests: New file.
33393         * modules/unistdio/u8-vasnprintf-tests: New file.
33394         * modules/unistdio/u8-vasprintf-tests: New file.
33395         * modules/unistdio/u8-vsnprintf-tests: New file.
33396         * modules/unistdio/u8-vsprintf-tests: New file.
33397         * modules/unistdio/u16-asnprintf-tests: New file.
33398         * modules/unistdio/u16-vasnprintf-tests: New file.
33399         * modules/unistdio/u16-vasprintf-tests: New file.
33400         * modules/unistdio/u16-vsnprintf-tests: New file.
33401         * modules/unistdio/u16-vsprintf-tests: New file.
33402         * modules/unistdio/u32-asnprintf-tests: New file.
33403         * modules/unistdio/u32-vasnprintf-tests: New file.
33404         * modules/unistdio/u32-vasprintf-tests: New file.
33405         * modules/unistdio/u32-vsnprintf-tests: New file.
33406         * modules/unistdio/u32-vsprintf-tests: New file.
33407         * MODULES.html.sh (Unicode string functions): Add the new modules.
33408
33409 2007-07-01  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/sprintf.c (sprintf): Limit the available length estimation,
33412         to avoid address wraparound.
33413         * lib/vsprintf.c (vsprintf): Likewise.
33414         * modules/sprintf-posix (Dependencies): Add stdint.
33415         * modules/vsprintf-posix (Dependencies): Likewise.
33416
33417 2007-07-01  Bruno Haible  <bruno@clisp.org>
33418
33419         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33420         Windows PATH as well. Conservative double-quoting. Comments.
33421
33422 2007-07-01  Bruno Haible  <bruno@clisp.org>
33423             Eric Blake  <ebb9@byu.net>
33424             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33425
33426         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33427         empty components in $PATH, denoting '.'.
33428
33429 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33430
33431         * gnulib-tool: Fix indentation.
33432         (func_create_megatestdir): Likewise.
33433         Report by Bruno Haible.
33434
33435 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33436
33437         Sync from Automake.
33438         * build-aux/gnupload: Fix shell portability issues with for loops.
33439         Report by Karl Berry.
33440
33441 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33442
33443         * build-aux/maint.mk (POURL): Use translationproject.org.
33444
33445 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33446             Bruno Haible  <bruno@clisp.org>
33447
33448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33449         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33450         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33451         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33452         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33453
33454 2007-06-27  Bruno Haible  <bruno@clisp.org>
33455
33456         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33457         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33458
33459 2007-06-26  Karl Berry  <karl@gnu.org>
33460
33461         * MODULES.html.sh: remove xreadlink-with-size.
33462
33463 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33464
33465         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33466         method that I hope also handles the double-include problem noted
33467         by Bruno Haible in
33468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33469
33470 2007-06-23  Bruno Haible  <bruno@clisp.org>
33471
33472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33473         Don't let the 'mostlyclean' target fail if the last subdirectory could
33474         not be removed.
33475         Reported by Karl Berry.
33476
33477 2007-06-23  Bruno Haible  <bruno@clisp.org>
33478
33479         * gnulib-tool (echo): Add a speedier workaround for ksh.
33480         * tests/test-echo.sh: Likewise.
33481
33482 2007-06-23  Bruno Haible  <bruno@clisp.org>
33483
33484         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33485         * tests/test-echo.sh: Likewise.
33486
33487 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33488
33489         * gnulib-tool (IFS): Initialize early, so we don't set it to
33490         empty later.
33491         (self_abspathname): Rewrite algorithm to set it, reindent.
33492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33493         (func_create_megatestdir): Merge some sed scripts.
33494
33495 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33496
33497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33498         exposed by Sun Studio 11 cc on Solaris 8.
33499
33500 2007-06-22  Bruno Haible  <bruno@clisp.org>
33501
33502         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33503         backslashes.
33504         * tests/test-echo.sh: New file.
33505
33506 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33507
33508         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33509         simplify `sed_replace_build_aux' scripts, they are portable but
33510         echoing them with `echo' is not.
33511         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33512
33513 2007-06-21  Karl Berry  <karl@gnu.org>
33514
33515         * config/srclist.txt: guess we can't handle the licenses via
33516         srclist at the moment.
33517
33518 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33519
33520         * MODULES.html.sh: Add include_next.
33521         * modules/include_next: New file.
33522
33523 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33526         INCLUDE_NEXT.
33527         (gl_CHECK_NEXT_HEADERS): New macro.
33528         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33529         the obsolescent gl_ABSOLUTE_HEADER.
33530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33531         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33532         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33534         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33535         * m4/math_h.m4 (gl_MATH_H): Likewise.
33536         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33537         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33538         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33540         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33541         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33542         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33546         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33547         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33548         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33549         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33550         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33552         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33553         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33554         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33555         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33556         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33557         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33558         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33559         * lib/float_.h: Likewise.
33560         * lib/inttypes_.h: Likewise.
33561         * lib/math_.h: Likewise.
33562         * lib/search_.h: Likewise.
33563         * lib/signal_.h: Likewise.
33564         * lib/stdint_.h: Likewise.
33565         * lib/stdio_.h: Likewise.
33566         * lib/stdlib_.h: Likewise.
33567         * lib/string_.h: Likewise.
33568         * lib/sys_stat_.h: Likewise.
33569         * lib/sys_time_.h: Likewise.
33570         * lib/time_.h: Likewise.
33571         * lib/unistd_.h: Likewise.
33572         * lib/wchar_.h: Likewise.
33573         * lib/wctype_.h: Likewise.
33574         * lib/dirent_.h: Likewise.
33575         * lib/iconv_.h: Likewise.
33576         * lib/locale_.h: Likewise.
33577         * lib/netinet_in_.h: Likewise.
33578         * lib/sys_select_.h: Likewise.
33579         * lib/sys_socket_.h: Likewise.
33580         * lib/sysexits_.h: Likewise.
33581         * modules/fcntl (Depends-on): Depend on include_next, not
33582         absolute_header.
33583         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33584         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33585         * modules/fchdir: Likewise.
33586         * modules/float: Likewise.
33587         * modules/iconv_open: Likewise.
33588         * modules/inttypes: Likewise.
33589         * modules/locale: Likewise.
33590         * modules/math: Likewise.
33591         * modules/netinet_in: Likewise.
33592         * modules/search: Likewise.
33593         * modules/signal: Likewise.
33594         * modules/stdint: Likewise.
33595         * modules/stdio: Likewise.
33596         * modules/stdlib: Likewise.
33597         * modules/string: Likewise.
33598         * modules/sys_select: Likewise.
33599         * modules/sys_socket: Likewise.
33600         * modules/sys_stat: Likewise.
33601         * modules/sys_time: Likewise.
33602         * modules/sysexits: Likewise.
33603         * modules/time: Likewise.
33604         * modules/unistd: Likewise.
33605         * modules/wchar: Likewise.
33606         * modules/wctype: Likewise.
33607         * modules/sys_stat: Change maintainer to "all".
33608         * modules/unistd: Likewise.
33609
33610 2007-06-20  Karl Berry  <karl@gnu.org>
33611
33612         * config/srclist.txt: track www changes in license files.
33613
33614 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33615
33616         * build-aux/bootstrap: Remove stray dot.
33617         Make sure build_aux settings are honored when linking
33618         gnulib_extra_files.
33619
33620 2007-06-19  Eric Blake  <ebb9@byu.net>
33621
33622         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33623         Allow compilation on cygwin.
33624
33625 2007-06-19  Jim Meyering  <jim@meyering.net>
33626
33627         xreadlink-with-size: Remove module.  No longer used.
33628         Ex-callers now use xreadlink or mreadlink-with-size.
33629         * modules/xreadlink-with-size: Remove module.
33630         * lib/xreadlink-with-size.c: Remove file.
33631         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33632         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33633         just before the function definition *is* accurate.
33634
33635         Eliminate one way canonicalize_filename_mode could exit.
33636         * lib/canonicalize.c (canonicalize_filename_mode):
33637         Use mreadlink_with_size, not xreadlink_with_size.
33638
33639 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33640
33641         Detect porting problems to FreeBSD/arm, which has time_t wider than
33642         long int.  Original problem reported for GNU diff by Xin Li in
33643         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33644         * modules/getdate (Depends-on): Add intprops, verify.
33645         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33646         is an integer type no wider than long int.
33647
33648 2007-06-18  Jim Meyering  <jim@meyering.net>
33649
33650         New module: mreadlink-with-size.
33651         * MODULES.html.sh: Add mreadlink-with-size.
33652         * modules/mreadlink-with-size: New module
33653         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33654         not xreadlink-with-size.
33655         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33656
33657 2007-06-16  Bruno Haible  <bruno@clisp.org>
33658
33659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33660         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33661         Reported by Gary V. Vaughan <gary@gnu.org>.
33662
33663 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33664
33665         Revamp lchown so that it lives in unistd.h where it belongs.
33666         * lib/lchown.h: Remove.
33667         * lib/dirchownmod.c: Don't include lib/lchown.h.
33668         * lib/fchownat.c: Likewise.
33669         * lib/openat.c: Likewise.
33670         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33671         does not follow symlinks.
33672         (EOPNOTSUPP): Define if not defined.
33673         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33674         is defined to 0.
33675         (lchown): New decl.
33676         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33677         Do not check for lchown decl.
33678         Set REPLACE_LCHOWN.
33679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33680         REPLACE_LCHOWN.
33681         * modules/chown: Make it clear it follows symlinks.
33682         * modules/lchown: Make it clear it doesn't follow symlinks.
33683         (Files): Remove lib/lchown.h
33684         (Depends-on): Add unistd.
33685         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33686         (Include): Include <unistd.h>, not "lchown.h".
33687         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33688         REPLACE_LCHOWN.
33689
33690 2007-06-15  Jim Meyering  <jim@meyering.net>
33691
33692         Change license (GPL to LGPL) of fsusage and dependents.
33693         * modules/fsusage (License): Change to LGPL.
33694         * modules/full-read (License): Likewise.
33695         * modules/full-write (License): Likewise.
33696         * modules/safe-read (License): Likewise.
33697         * modules/safe-write (License): Likewise.
33698
33699 2007-06-14  Ben Pfaff  <blp@gnu.org>
33700
33701         Missing part of allocsa -> malloca transition.
33702         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33703         gl_MALLOCA.
33704
33705 2007-06-12  Bruno Haible  <bruno@clisp.org>
33706
33707         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33708         to ia64, x86_64, i386.
33709         Reported by Eric Blake.
33710
33711 2007-06-12  Bruno Haible  <bruno@clisp.org>
33712
33713         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33714         cross-compiling to x86_64.
33715
33716 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33717
33718         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33719         glitch reported by Ralf Wildenhues in
33720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33721
33722         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33723         Vin Shelton.
33724
33725 2007-06-11  Bruno Haible  <bruno@clisp.org>
33726
33727         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33728         replacement string.
33729         Reported by Eric Blake.
33730
33731 2007-06-10  Bruno Haible  <bruno@clisp.org>
33732
33733         Prepare vasnprintf code for use with Unicode strings.
33734         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33735         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33736         TYPE_U32_STRING.
33737         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33738         a_u32_string variants.
33739         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33740         * lib/printf-args.c: Don't include config.h and the specification
33741         header if PRINTF_FETCHARGS is already defined.
33742         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33743         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33744         TYPE_U16_STRING, TYPE_U32_STRING.
33745         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33746         u16_directive, u16_directives, u32_directive, u32_directives): New
33747         types.
33748         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33749         New declarations.
33750         * lib/printf-parse.c: Don't include config.h and the specification
33751         header if PRINTF_PARSE is already defined. Eliminate the set of
33752         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33753         them now. Include c-ctype.h.
33754         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33755         directive and CHAR_T_ONLY_ASCII.
33756         * lib/vasnprintf.c: Don't include config.h and the specification header
33757         if VASNPRINTF is already defined.
33758         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33759         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33760         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33761         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33762         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33763         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33764         code accordingly.
33765         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33766         pad_ourselves also in this case, with the 'c' and 's' directives, and
33767         with a different notion of "width".
33768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33769
33770 2007-06-10  Bruno Haible  <bruno@clisp.org>
33771
33772         * modules/unistr/u32-mbsnlen: New file.
33773         * lib/unistr/u32-mbsnlen.c: New file.
33774
33775         * modules/unistr/u16-mbsnlen: New file.
33776         * lib/unistr/u16-mbsnlen.c: New file.
33777
33778         * modules/unistr/u8-mbsnlen: New file.
33779         * lib/unistr/u8-mbsnlen.c: New file.
33780
33781         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33782         declarations.
33783
33784 2007-06-10  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/string_.h (mbsnlen): New declaration.
33787         * lib/mbsnlen.c: New file.
33788         * m4/mbsnlen.m4: New file.
33789         * modules/mbsnlen: New file.
33790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33791         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33792         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33793
33794 2007-06-10  Bruno Haible  <bruno@clisp.org>
33795
33796         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33797
33798 2007-06-10  Bruno Haible  <bruno@clisp.org>
33799
33800         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33801         * lib/mbuiter.h: Likewise.
33802
33803 2007-06-10  Bruno Haible  <bruno@clisp.org>
33804
33805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33806         declaration.
33807
33808 2007-06-10  Karl Berry  <karl@gnu.org>
33809
33810         * config/srclist.txt: remove gettext entries, Bruno prefers
33811         to update individually.
33812
33813 2007-06-10  Bruno Haible  <bruno@clisp.org>
33814
33815         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33816         'maxlen'. Ensure only length + width bytes are allocated, not
33817         length + 1 + width.
33818
33819 2007-06-09  Bruno Haible  <bruno@clisp.org>
33820
33821         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33822         (CHAR_T): Remove macro.
33823         (VASNPRINTF): Update.
33824
33825 2007-06-09  Bruno Haible  <bruno@clisp.org>
33826
33827         * MODULES.html.sh (Unicode string functions): Add the new modules.
33828
33829         * modules/uniconv/u32-conv-to-enc: New file.
33830         * lib/uniconv/u32-conv-to-enc.c: New file.
33831         * modules/uniconv/u32-conv-to-enc-tests: New file.
33832         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33833
33834         * modules/uniconv/u16-conv-to-enc: New file.
33835         * lib/uniconv/u16-conv-to-enc.c: New file.
33836         * lib/uniconv/u-conv-to-enc.h: New file.
33837         * modules/uniconv/u16-conv-to-enc-tests: New file.
33838         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33839
33840         * modules/uniconv/u8-conv-to-enc: New file.
33841         * lib/uniconv/u8-conv-to-enc.c: New file.
33842         * modules/uniconv/u8-conv-to-enc-tests: New file.
33843         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33844
33845         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33846         u32_conv_to_encoding): New declarations.
33847
33848 2007-06-09  Bruno Haible  <bruno@clisp.org>
33849
33850         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33851
33852 2007-06-09  Bruno Haible  <bruno@clisp.org>
33853
33854         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33855         * modules/malloca: Renamed from modules/allocsa, updated.
33856         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33857         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33858         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33859         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33860         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33861         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33862         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33863         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33864         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33865         * modules/c-strcasestr (Depends-on): Update.
33866         * lib/c-strcasestr.c: Update.
33867         * modules/c-strstr (Depends-on): Update.
33868         * lib/c-strstr.c: Update.
33869         * modules/canonicalize-lgpl (Depends-on): Update.
33870         * lib/canonicalize-lgpl.c: Update.
33871         * modules/clean-temp (Depends-on): Update.
33872         * lib/clean-temp.c: Update.
33873         * modules/csharpcomp (Depends-on): Update.
33874         * lib/csharpcomp.c: Update.
33875         * modules/csharpexec (Depends-on): Update.
33876         * lib/csharpexec.c: Update.
33877         * modules/javacomp (Depends-on): Update.
33878         * lib/javacomp.c: Update.
33879         * modules/javaexec (Depends-on): Update.
33880         * lib/javaexec.c: Update.
33881         * modules/mbscasestr (Depends-on): Update.
33882         * lib/mbscasestr.c: Update.
33883         * modules/mbsstr (Depends-on): Update.
33884         * lib/mbsstr.c: Update.
33885         * modules/setenv (Depends-on): Update.
33886         * lib/setenv.c: Update.
33887         * modules/strcasestr (Depends-on): Update.
33888         * lib/strcasestr.c: Update.
33889         * modules/striconveha (Depends-on): Update.
33890         * lib/striconveha.c: Update.
33891         * modules/relocatable-prog-wrapper (Files): Update.
33892         * lib/relocwrapper.c: Update.
33893         * build-aux/install-reloc: Update.
33894         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33895
33896 2007-06-08  Bruno Haible  <bruno@clisp.org>
33897
33898         Port to uClibc.
33899         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33900         * lib/fpurge.c (fpurge): Likewise.
33901         * lib/freading.c (freading): Likewise.
33902         * lib/fseeko.c (rpl_fseeko): Likewise.
33903         * lib/fseterr.c (fseterr): Likewise.
33904         * lib/fwriting.c (fwriting): Likewise.
33905         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33906
33907 2007-06-08  Bruno Haible  <bruno@clisp.org>
33908
33909         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33910         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33911         * modules/gettext (Files): Add m4/intlmacosx.m4.
33912
33913 2007-06-07  Bruno Haible  <bruno@clisp.org>
33914
33915         * modules/localename-tests: New file.
33916         * tests/test-localename.c: New file.
33917
33918         New module 'localename'.
33919         * lib/localename.h: New file.
33920         * lib/localename.c: New file, from GNU gettext.
33921         * m4/localename.m4: New file.
33922         * modules/localename: New file.
33923
33924 2007-06-07  Bruno Haible  <bruno@clisp.org>
33925
33926         Work around the lack of <wchar.h> on some builds of uClibc.
33927         * doc/headers/wchar.texi: Update.
33928         * lib/wchar_.h: Include <wchar.h> only if it exists.
33929         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33930         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33931         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33932         doesn't exist.
33933         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33934         * modules/mbfile (Depends-on): Add wchar.
33935         * modules/mbiter (Depends-on): Likewise.
33936         * modules/mbuiter (Depends-on): Likewise.
33937         Reported by Simon Josefsson.
33938
33939 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33940
33941         Work around problem reported by Steven M. Schweda in
33942         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33943         Tru64 5.1B with the Compaq compiler environment installed declares
33944         an 'isblank' function but does not define it in the C library.
33945         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33946         * lib/regex_internal.h (isblank): Likewise.
33947         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33948         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33949
33950 2007-06-05  Bruno Haible  <bruno@clisp.org>
33951
33952         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33953         ia64.
33954         * modules/printf-safe: New file.
33955         * modules/fprintf-posix (Depends-on): Add printf-safe.
33956         * modules/printf-posix (Depends-on): Likewise.
33957         * modules/snprintf-posix (Depends-on): Likewise.
33958         * modules/sprintf-posix (Depends-on): Likewise.
33959         * modules/vasnprintf-posix (Depends-on): Likewise.
33960         * modules/vasprintf-posix (Depends-on): Likewise.
33961         * modules/vfprintf-posix (Depends-on): Likewise.
33962         * modules/vprintf-posix (Depends-on): Likewise.
33963         * modules/vsnprintf-posix (Depends-on): Likewise.
33964         * modules/vsprintf-posix (Depends-on): Likewise.
33965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33966         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33967         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33968         "no" on i386, x86_64, ia64.
33969         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33971         on i386, x86_64, ia64.
33972         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33973         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33974         on i386, x86_64, ia64.
33975         * tests/test-vasnprintf-posix.c: Include float.h.
33976         (LDBL80_WORDS): New macro.
33977         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33978         on i386, x86_64, ia64.
33979         * tests/test-vasprintf-posix.c: Include float.h.
33980         (LDBL80_WORDS): New macro.
33981         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33982         on i386, x86_64, ia64.
33983         * tests/test-snprintf-posix.c: Include float.h.
33984         * tests/test-sprintf-posix.c: Likewise.
33985         * tests/test-vsnprintf-posix.c: Likewise.
33986         * tests/test-vsprintf-posix.c: Likewise.
33987
33988 2007-06-05  Bruno Haible  <bruno@clisp.org>
33989
33990         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33991         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33992         non-IEEE numbers on i386, x86_64, ia64.
33993         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33994         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33995         * tests/test-isnanl.h: Include float.h.
33996         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33997
33998 2007-06-05  Bruno Haible  <bruno@clisp.org>
33999
34000         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34001         also the %a / %A. Handle the %a / %A code before this extra handling.
34002
34003 2007-06-05  Bruno Haible  <bruno@clisp.org>
34004
34005         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34006         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34007
34008 2007-06-05  Bruno Haible  <bruno@clisp.org>
34009
34010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34011         typo in variable name.
34012
34013 2007-06-05  Eric Blake  <ebb9@byu.net>
34014
34015         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34016         Reported by Simon Josefsson.
34017
34018 2007-06-04  Bruno Haible  <bruno@clisp.org>
34019
34020         Avoid test failures on some PowerPC platforms.
34021         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34022         Define differently for PowerPC.
34023         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34024         Reported by Gary V. Vaughan <gary@gnu.org>.
34025
34026 2007-06-02  Bruno Haible  <bruno@clisp.org>
34027
34028         Fix test-stdint failure on FreeBSD/ia64.
34029         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34030         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34031         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34032         * doc/headers/stdint.texi: Update.
34033
34034 2007-06-01  Bruno Haible  <bruno@clisp.org>
34035
34036         * tests/test-binary-io.c (main): Pass a third argument to open().
34037         Reported by Gary V. Vaughan <gary@gnu.org>.
34038
34039 2007-06-01  Bruno Haible  <bruno@clisp.org>
34040
34041         * doc/functions/frexpl.texi: Update for mingw.
34042
34043 2007-06-01  Bruno Haible  <bruno@clisp.org>
34044
34045         * tests/test-lseek.c (main): Disable test of errno for invalid third
34046         argument.
34047         * doc/functions/lseek.texi: Update.
34048         Reported by Gary V. Vaughan <gary@gnu.org>.
34049
34050 2007-05-28  Bruno Haible  <bruno@clisp.org>
34051
34052         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34053
34054 2007-05-31  Eric Blake  <ebb9@byu.net>
34055
34056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34057         cross compiling.
34058
34059 2007-05-30  Eric Blake  <ebb9@byu.net>
34060         and Bruno Haible  <bruno@clisp.org>
34061
34062         Work around mingw test failures exposed by m4-1.4.9b.
34063         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34064         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34065         moment.
34066
34067 2007-05-30  Bruno Haible  <bruno@clisp.org>
34068
34069         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34070         assuming that they are closed. Needed on HP-UX 11.
34071
34072 2007-05-29  Bruno Haible  <bruno@clisp.org>
34073
34074         Fix a problem with #include_next.
34075         * lib/dirent_.h: Split the double-inclusion guard.
34076         * lib/fcntl_.h: Likewise.
34077         * lib/float_.h: Likewise.
34078         * lib/iconv_.h: Likewise.
34079         * lib/inttypes_.h: Likewise.
34080         * lib/locale_.h: Likewise.
34081         * lib/math_.h: Likewise.
34082         * lib/netinet_in_.h: Likewise.
34083         * lib/search_.h: Likewise.
34084         * lib/signal_.h: Likewise.
34085         * lib/stdint_.h: Likewise.
34086         * lib/stdio_.h: Likewise.
34087         * lib/stdlib_.h: Likewise.
34088         * lib/string_.h: Likewise.
34089         * lib/sys_select_.h: Likewise.
34090         * lib/sys_socket_.h: Likewise.
34091         * lib/sys_stat_.h: Likewise.
34092         * lib/sys_time_.h: Likewise.
34093         * lib/sysexits_.h: Likewise.
34094         * lib/time_.h: Likewise.
34095         * lib/unistd_.h: Likewise.
34096         * lib/wchar_.h: Likewise.
34097         * lib/wctype_.h: Likewise.
34098
34099 2007-05-29  Bruno Haible  <bruno@clisp.org>
34100
34101         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34102         for the moment.
34103
34104 2007-05-29  Bruno Haible  <bruno@clisp.org>
34105
34106         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34107         invocation.
34108         Reported by Eric Blake.
34109
34110 2007-05-29  Bruno Haible  <bruno@clisp.org>
34111
34112         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34113         compiling case.
34114
34115 2007-05-29  Eric Blake  <ebb9@byu.net>
34116             Bruno Haible  <bruno@clisp.org>
34117
34118         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34119         cross compiles.
34120
34121 2007-05-28  Eric Blake  <ebb9@byu.net>
34122
34123         * modules/closein-tests (test_closein_LDADD): Support test on
34124         cygwin with libtool.
34125
34126 2007-05-28  Bruno Haible  <bruno@clisp.org>
34127
34128         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34129         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34130         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34131         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34132         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34133         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34134         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34135         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34136         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34137
34138 2007-05-28  Eric Blake  <ebb9@byu.net>
34139
34140         Unconditionally include <config.h> in unit tests.
34141         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34142         * tests/test-allocsa.c, tests/test-arcfour.c,
34143         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34144         tests/test-array_list.c, tests/test-array_oset.c,
34145         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34146         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34147         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34148         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34149         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34150         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34151         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34152         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34153         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34154         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34155         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34156         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34157         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34158         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34159         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34160         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34161         test-md5.c, test-memmem.c, test-printf-posix.c,
34162         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34163         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34164         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34165         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34166         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34167         test-vasnprintf-posix2.c, test-vasnprintf.c,
34168         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34169         test-vfprintf-posix.c, test-vprintf-posix.c,
34170         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34171         test-xvasprintf.c: Likewise.
34172
34173 2007-05-28  Bruno Haible  <bruno@clisp.org>
34174
34175         * gnulib-tool (func_import): Remember the --with-tests command-line
34176         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34177         Reported by Eric Blake.
34178
34179 2007-05-28  Bruno Haible  <bruno@clisp.org>
34180
34181         * modules/ftell-tests: New file.
34182         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34183         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34184
34185         * lib/ftell.c: New file.
34186         * modules/ftell: New file.
34187         * m4/ftell.m4: New file.
34188         * doc/functions/ftell.texi: Update.
34189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34190         REPLACE_FTELL.
34191         * lib/stdio_.h (rpl_ftell): New declaration.
34192         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34193         REPLACE_FTELL.
34194
34195 2007-05-28  Eric Blake  <ebb9@byu.net>
34196
34197         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34198
34199 2007-05-28  Bruno Haible  <bruno@clisp.org>
34200
34201         * modules/fseek-tests: New file.
34202         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34203         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34204
34205         * lib/fseek.c: New file.
34206         * modules/fseek: New file.
34207         * m4/fseek.m4: New file.
34208         * doc/functions/fseek.texi: Update.
34209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34210         REPLACE_FSEEK.
34211         * lib/stdio_.h (rpl_fseek): New declaration.
34212         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34213         REPLACE_FSEEK.
34214
34215 2007-05-28  Bruno Haible  <bruno@clisp.org>
34216
34217         * lib/stdio_.h (fflush): More comments.
34218
34219 2007-05-28  Bruno Haible  <bruno@clisp.org>
34220
34221         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34222         runtime test.
34223
34224 2007-05-28  Eric Blake  <ebb9@byu.net>
34225
34226         Improve lseek module.
34227         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34228         * lib/unistd_.h (lseek): Scale back link warning message.
34229         * tests/test-lseek.c: Beef up test.
34230         * tests/test-lseek.sh: Exercise more facets of lseek.
34231         Reported by Bruno Haible.
34232
34233 2007-05-28  Bruno Haible  <bruno@clisp.org>
34234
34235         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34236         to define.
34237
34238 2007-05-27  Bruno Haible  <bruno@clisp.org>
34239
34240         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34241
34242 2007-05-27  Bruno Haible  <bruno@clisp.org>
34243
34244         * modules/openmp: New file.
34245         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34246         Noah Misch.
34247
34248 2007-05-26  Bruno Haible  <bruno@clisp.org>
34249
34250         * modules/chdir-long (Depends-on): Add fchdir.
34251         * modules/chdir-safer (Depends-on): Likewise.
34252         * modules/fts (Depends-on): Likewise.
34253         * modules/fts-lgpl (Depends-on): Likewise.
34254         * modules/openat (Depends-on): Likewise.
34255         * modules/savewd (Depends-on): Likewise.
34256
34257 2007-05-24  Eric Blake  <ebb9@byu.net>
34258
34259         Fix lseek on mingw.
34260         * modules/lseek: New module.
34261         * m4/lseek.m4: New file.
34262         * lib/lseek.c: New file.
34263         * modules/lseek-tests: New file.
34264         * tests/test-lseek.c: New file.
34265         * tests/test-lseek.sh: New file.
34266         * MODULES.html.sh: Document lseek module.
34267         * modules/fflush (Depends-on): Add lseek, fseeko.
34268         * modules/fseeko (Depends-on): Likewise.
34269         * modules/ftello (Depends-on): Likewise.
34270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34271         broken.
34272         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34273         broken.
34274         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34275         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34276         * lib/ftello.c (rpl_ftello): Likewise.
34277         * tests/test-fseeko.c (main): Test this.
34278         * tests/test-fseeko.sh: Likewise.
34279         * tests/test-ftello.c (main): Likewise.
34280         * tests/test-ftello.sh: Likewise.
34281         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34282         implies replacing fseek.
34283         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34284         HAVE_FTELLO.
34285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34286         * modules/unistd (Makefile.am): Likewise.
34287         * lib/unistd_.h (lseek): Declare a replacement.
34288         * doc/functions/lseek.texi (lseek): Document this fix.
34289         * doc/functions/fseek.texi (fseek): Likewise.
34290         * doc/functions/ftell.texi (ftell): Likewise.
34291
34292 2007-05-24  Bruno Haible  <bruno@clisp.org>
34293
34294         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34295         in the printed representation of a NaN.
34296         * tests/test-vasprintf-posix.c (test_function): Likewise.
34297         * tests/test-snprintf-posix.h (test_function): Likewise.
34298         * tests/test-sprintf-posix.h (test_function): Likewise.
34299         Reported by Eric Blake.
34300
34301 2007-05-23  Eric Blake  <ebb9@byu.net>
34302
34303         Fix fseeko/ftello on cygwin 1.5.24.
34304         * doc/functions/fseeko.texi (fseeko): Document the fix.
34305         * doc/functions/ftello.texi (ftello): Document the fix.
34306         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34307         * doc/functions/stdout.text (stdout): New file.
34308         * doc/functions/stderr.text (stderr): New file.
34309         * doc/gnulib.texi (Function Substitutes): Use new files.
34310         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34311         prior to 1.7.0.
34312         * tests/test-ftello.c (main): Likewise for ftello.
34313         * tests/test-fseeko.sh: New file.
34314         * tests/test-ftello.sh: New file.
34315         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34316         with seekable stdin.
34317         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34319         (gl_REPLACE_FSEEKO): New macro.
34320         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34321         * modules/fseeko (Files): Distribute fseeko.c.
34322         * modules/ftello (Files): Distribute ftello.c.
34323         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34324         mode.
34325         * lib/ftello.c (rpl_ftello): New file.
34326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34327         fseeko, ftello.
34328         (gl_STDIN_LARGE_OFFSET): New macro.
34329         * modules/stdio (Makefile.am): Perform the replacement.
34330         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34331
34332 2007-05-23  Bruno Haible  <bruno@clisp.org>
34333
34334         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34335         GNULIB_POSIXCHECK is defined.
34336
34337 2007-05-21  Bruno Haible  <bruno@clisp.org>
34338
34339         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34340         Check also the output for NaN arguments. When cross-compiling, guess
34341         no on IRIX.
34342         * lib/vasnprintf.c: Update comments.
34343         * tests/test-vasnprintf-posix.c (strisnan): New function.
34344         (test_function): Use it.
34345         * tests/test-vasprintf-posix.c (strisnan): New function.
34346         (test_function): Use it.
34347         * tests/test-snprintf-posix.h (strisnan): New function.
34348         (test_function): Use it.
34349         * tests/test-sprintf-posix.h (strisnan): New function.
34350         (test_function): Use it.
34351         Reported by Eric Blake.
34352
34353 2007-05-20  Bruno Haible  <bruno@clisp.org>
34354
34355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34356         numbers that fails on BeOS.
34357         * doc/functions/frexpl.texi: Update.
34358
34359 2007-05-20  Jim Meyering  <jim@meyering.net>
34360
34361         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34362         forced upon us by glibc-2.6.
34363
34364 2007-05-20  Bruno Haible  <bruno@clisp.org>
34365
34366         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34367         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34368         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34369         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34370         NEED_PRINTF_INFINITE.
34371         (is_infinitel): New function.
34372         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34374         gl_PREREQ_VASNPRINTF_INFINITE.
34375         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34377         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34378         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34379         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34380         gl_PREREQ_VASNPRINTF_INFINITE.
34381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34388         * doc/functions/fprintf.texi: Update.
34389         * doc/functions/printf.texi: Update.
34390         * doc/functions/snprintf.texi: Update.
34391         * doc/functions/sprintf.texi: Update.
34392         * doc/functions/vfprintf.texi: Update.
34393         * doc/functions/vprintf.texi: Update.
34394         * doc/functions/vsnprintf.texi: Update.
34395         * doc/functions/vsprintf.texi: Update.
34396
34397 2007-05-20  Bruno Haible  <bruno@clisp.org>
34398
34399         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34400         was not found in libc.
34401         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34402
34403 2007-05-20  Bruno Haible  <bruno@clisp.org>
34404
34405         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34406         printed as "-nan" instead of "nan".
34407         * tests/test-vasprintf-posix.c (test_function): Likewise.
34408         * tests/test-snprintf-posix.h (test_function): Likewise.
34409         * tests/test-sprintf-posix.h (test_function): Likewise.
34410         Needed for HP-UX 11.
34411
34412 2007-05-20  Jim Meyering  <jim@meyering.net>
34413
34414         Fix buggy test for the fchownat-deref bug.
34415         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34416         symlink required for the run-test.  Without it, this test would
34417         always declare that fchownat doesn't work, and client code would
34418         unnecessarily use the replacement function with fixed libc.
34419         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34420         Reported by Greg Schafer.
34421
34422 2007-05-19  Bruno Haible  <bruno@clisp.org>
34423
34424         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34425         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34426         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34427         Needed for IRIX 6.5 and Solaris 2.5.1.
34428
34429 2007-05-19  Bruno Haible  <bruno@clisp.org>
34430
34431         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34432         (test_function): Skip tests involving -0.0 on platforms where
34433         -0.0 = 0.0.
34434         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34435         (test_function): Skip tests involving -0.0 on platforms where
34436         -0.0 = 0.0.
34437         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34438         (test_function): Skip tests involving -0.0 on platforms where
34439         -0.0 = 0.0.
34440         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34441         (test_function): Skip tests involving -0.0 on platforms where
34442         -0.0 = 0.0.
34443         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34444         tests.
34445         * tests/test-printf-posix.h (test_function): Likewise.
34446         * tests/test-printf-posix.output: Remove all -0.0 related results.
34447         Needed for IRIX 6.5.
34448
34449 2007-05-19  Bruno Haible  <bruno@clisp.org>
34450
34451         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34452         printed as "nan0x7fffffff" instead of "nan".
34453         * tests/test-vasprintf-posix.c (test_function): Likewise.
34454         * tests/test-snprintf-posix.h (test_function): Likewise.
34455         * tests/test-sprintf-posix.h (test_function): Likewise.
34456         * tests/test-fprintf-posix.h (NaN): Remove macro.
34457         (test_function): Remove all NaN related tests.
34458         * tests/test-printf-posix.h (NaN): Remove macro.
34459         (test_function): Remove all NaN related tests.
34460         * tests/test-printf-posix.output: Remove all NaN related results.
34461         Needed for IRIX 6.5.
34462
34463 2007-05-19  Bruno Haible  <bruno@clisp.org>
34464
34465         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34466         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34467
34468 2007-05-19  Bruno Haible  <bruno@clisp.org>
34469
34470         * lib/float_.h: New file.
34471         * m4/float_h.m4: New file.
34472         * modules/float: New file.
34473         * modules/isnanl (Dependencies): Add float.
34474         * modules/isnanl-nolibm (Dependencies): Likewise.
34475         * modules/mathl (Dependencies): Likewise.
34476         * modules/printf-frexpl (Dependencies): Likewise.
34477         * modules/signbit (Dependencies): Likewise.
34478         * modules/vasnprintf (Dependencies): Likewise.
34479         * doc/headers/float.texi: Update.
34480
34481 2007-05-19  Jim Meyering  <jim@meyering.net>
34482
34483         * lib/utimens.c (gl_futimens): Rename from futimens,
34484         now that glibc-2.6 declares futimens.
34485         * lib/utimens.h: Likewise.
34486
34487 2007-05-19  Bruno Haible  <bruno@clisp.org>
34488
34489         Avoid test failures on mingw.
34490         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34491         * tests/test-printf-posix.sh: Likewise.
34492         * tests/test-vfprintf-posix.sh: Likewise.
34493         * tests/test-vprintf-posix.sh: Likewise.
34494
34495 2007-05-19  Bruno Haible  <bruno@clisp.org>
34496
34497         Fix *printf result for NaN, Inf, -0.0 on mingw.
34498         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34499         * lib/vasnprintf.c: Include math.h and isnan.h.
34500         (is_infinite_or_zero): New function.
34501         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34502         values in the %f, %F, %e, %E, %g, %G directives.
34503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34505         gl_PRINTF_INFINITE and test its result. Invoke
34506         gl_PREREQ_VASNPRINTF_INFINITE.
34507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34510         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34513         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34514         * doc/functions/fprintf.texi: Update.
34515         * doc/functions/printf.texi: Update.
34516         * doc/functions/snprintf.texi: Update.
34517         * doc/functions/sprintf.texi: Update.
34518         * doc/functions/vfprintf.texi: Update.
34519         * doc/functions/vprintf.texi: Update.
34520         * doc/functions/vsnprintf.texi: Update.
34521         * doc/functions/vsprintf.texi: Update.
34522
34523 2007-05-19  Bruno Haible  <bruno@clisp.org>
34524
34525         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34526         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34527         Instead of multiplying with 10^k, set extra_zeroes to k.
34528         (scale10_round_long_double): Remove function.
34529
34530 2007-05-18  Bruno Haible  <bruno@clisp.org>
34531
34532         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34533         introduced on 2007-05-06.
34534
34535 2007-05-18  Bruno Haible  <bruno@clisp.org>
34536
34537         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34538         %g directives.
34539         * tests/test-vasprintf-posix.c (test_function): Likewise.
34540         * tests/test-snprintf-posix.h (test_function): Likewise.
34541         * tests/test-sprintf-posix.h (test_function): Likewise.
34542
34543 2007-05-18  Bruno Haible  <bruno@clisp.org>
34544
34545         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34546         (strmatch): New function.
34547         (test_function): Test the %f directive on numbers of various exponents.
34548         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34549         (strmatch): New function.
34550         (test_function): Test the %f directive on numbers of various exponents.
34551         * tests/test-snprintf-posix.h (strmatch): New function.
34552         (test_function): Test the %f directive on numbers of various exponents.
34553         * tests/test-sprintf-posix.h (strmatch): New function.
34554         (test_function): Test the %f directive on numbers of various exponents.
34555         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34556         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34557         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34558         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34559
34560 2007-05-18  Bruno Haible  <bruno@clisp.org>
34561
34562         Add support for 'long double' number output.
34563         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34564         * lib/vasnprintf.c: Include math.h and float+.h.
34565         (mp_limb_t): New type.
34566         (GMP_LIMB_BITS): New macro.
34567         (mp_twolimb_t): New type.
34568         (GMP_TWOLIMB_BITS): New macro.
34569         (mpn_t): New type.
34570         (multiply, divide, convert_to_decimal, decode_long_double,
34571         scale10_round_long_double, scale10_round_decimal_long_double,
34572         floorlog10l): New functions.
34573         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34574         for the %f, %F, %e, %E, %g, %G directives.
34575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34577         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34578         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34586         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34587         * modules/snprintf-posix (Depends-on): Likewise.
34588         * modules/sprintf-posix (Depends-on): Likewise.
34589         * modules/vasnprintf-posix (Depends-on): Likewise.
34590         * modules/vasprintf-posix (Depends-on): Likewise.
34591         * modules/vfprintf-posix (Depends-on): Likewise.
34592         * modules/vsnprintf-posix (Depends-on): Likewise.
34593         * modules/vsprintf-posix (Depends-on): Likewise.
34594         * modules/vasnprintf (Files): Add lib/float+.h.
34595         * doc/functions/fprintf.texi: Update.
34596         * doc/functions/printf.texi: Update.
34597         * doc/functions/snprintf.texi: Update.
34598         * doc/functions/sprintf.texi: Update.
34599         * doc/functions/vfprintf.texi: Update.
34600         * doc/functions/vprintf.texi: Update.
34601         * doc/functions/vsnprintf.texi: Update.
34602         * doc/functions/vsprintf.texi: Update.
34603
34604 2007-05-18  Bruno Haible  <bruno@clisp.org>
34605
34606         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34607
34608 2007-05-18  Bruno Haible  <bruno@clisp.org>
34609
34610         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34611         for printing 64-bit integers. Needed for mingw.
34612
34613 2007-05-18  Bruno Haible  <bruno@clisp.org>
34614
34615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34616         gl_FUNC_FREXPL_WORKS.
34617         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34618
34619 2007-05-18  Bruno Haible  <bruno@clisp.org>
34620
34621         * modules/frexpl-nolibm-tests: New file.
34622
34623         * modules/frexpl-nolibm: New file.
34624         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34625
34626 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34627
34628         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34629         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34630         GCC 4.2, which otherwise issues a lot of warnings.
34631         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34632         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34633         Likewise.
34634         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34635         * modules/iconv_open (iconv.h): Likewise.
34636         * modules/locale (locale.h): Likewise.
34637         * modules/netinet_in (netinet/in.h): Likewise.
34638         * modules/sys_select (sys_select.h): Likewise.
34639         * modules/sys_socket (sys/socket.h): Likewise.
34640         * modules/sys_stat (sys/stat.h): Likewise.
34641         * modules/sysexits (sysexits.h): Likewise.
34642         * modules/unistd (unistd.h): Likewise.
34643
34644 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34645
34646         * modules/closein-tests (Makefile.am): Distribute
34647         `test-closein.sh'.
34648
34649 2007-05-17  Bruno Haible  <bruno@clisp.org>
34650
34651         * tests/test-printf-posix.output: Renamed from
34652         tests/test-fprintf-posix.out.
34653         * modules/fprintf-posix-tests: Update.
34654         * modules/printf-posix-tests: Update.
34655         * modules/vfprintf-posix-tests: Update.
34656         * modules/vprintf-posix-tests: Update.
34657         * tests/test-fprintf-posix.sh: Update.
34658         * tests/test-printf-posix.sh: Update.
34659         * tests/test-vfprintf-posix.sh: Update.
34660         * tests/test-vprintf-posix.sh: Update.
34661         Reported by Ralf Wildenhues.
34662
34663 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34664
34665         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34666         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34667         GCC 4.2, which otherwise issues a lot of warnings.
34668         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34669         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34670         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34671         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34672         it should no longer be needed.
34673         * lib/string_.h: Likewise.
34674         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34675         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34676         * modules/inttypes (inttypes.h): Likewise.
34677         * modules/math (math.h): Likewise.
34678         * modules/search (search.h): Likewise.
34679         * modules/signal (signal.h): Likewise.
34680         * modules/stdint (stdint.h): Likewise.
34681         * modules/stdio (stdio.h): Likewise.
34682         * modules/stdlib (stdlib.h): Likewise.
34683         * modules/string (string.h): Likewise.
34684         * modules/sys_time (sys/time.h): Likewise.
34685         * modules/time (time.h): Likewise.
34686         * modules/wchar (wchar.h): Likewise.
34687         * modules/wctype (wtype.h): Likewise.
34688
34689 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34690
34691         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34692
34693 2007-05-13  Bruno Haible  <bruno@clisp.org>
34694
34695         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34696         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34697         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34698         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34699         (gl_PREREQ_STRTOK_R): Don't require it here.
34700
34701 2007-05-13  Bruno Haible  <bruno@clisp.org>
34702
34703         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34704         when used in C++ mode.
34705
34706 2007-05-12  Bruno Haible  <bruno@clisp.org>
34707
34708         * lib/linebuffer.h: Tweak doc.
34709         * lib/linebuffer.c: Likewise.
34710
34711 2007-05-12  James Youngman  <jay@gnu.org>
34712
34713         * lib/linebuffer.c (readlinebuffer_delim): New function,
34714         like readlinebuffer, but use a caller-specified delimiter.
34715         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34716         as the delimiter.
34717         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34718
34719 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34720
34721         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34722         * modules/openat (Files): Remove openat-die.c.
34723         (Depends-on): Add openat-die.
34724         * modules/openat-die: New module.
34725
34726 2007-05-06  Bruno Haible  <bruno@clisp.org>
34727
34728         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34729         Update with info about Cygwin.
34730         * doc/functions/fprintf.texi: Update.
34731         * doc/functions/printf.texi: Update.
34732         * doc/functions/snprintf.texi: Update.
34733         * doc/functions/sprintf.texi: Update.
34734         * doc/functions/vfprintf.texi: Update.
34735         * doc/functions/vprintf.texi: Update.
34736         * doc/functions/vsnprintf.texi: Update.
34737         * doc/functions/vsprintf.texi: Update.
34738         Reported by Eric Blake.
34739
34740 2007-05-06  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34743         padding ourselves for the floating-point directives.
34744         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34747         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34748         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34756         * tests/test-snprintf-posix.h (test_function): Also check the width
34757         and some flags in the %f directive.
34758         * tests/test-sprintf-posix.h (test_function): Likewise.
34759         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34760         * tests/test-vasprintf-posix.c (test_function): Likewise.
34761         * doc/functions/fprintf.texi: Update.
34762         * doc/functions/printf.texi: Update.
34763         * doc/functions/snprintf.texi: Update.
34764         * doc/functions/sprintf.texi: Update.
34765         * doc/functions/vfprintf.texi: Update.
34766         * doc/functions/vprintf.texi: Update.
34767         * doc/functions/vsnprintf.texi: Update.
34768         * doc/functions/vsprintf.texi: Update.
34769
34770 2007-05-06  Bruno Haible  <bruno@clisp.org>
34771
34772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34773         pass the ' flag character to sprintf or snprintf.
34774         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34777         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34778         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34786         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34787         flag.
34788         * tests/test-sprintf-posix.h (test_function): Likewise.
34789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34790         * tests/test-vasprintf-posix.c (test_function): Likewise.
34791         * doc/functions/fprintf.texi: Update.
34792         * doc/functions/printf.texi: Update.
34793         * doc/functions/snprintf.texi: Update.
34794         * doc/functions/sprintf.texi: Update.
34795         * doc/functions/vfprintf.texi: Update.
34796         * doc/functions/vprintf.texi: Update.
34797         * doc/functions/vsnprintf.texi: Update.
34798         * doc/functions/vsprintf.texi: Update.
34799
34800 2007-05-01  Bruno Haible  <bruno@clisp.org>
34801
34802         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34803
34804 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34805
34806         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34807         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34808
34809 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34810
34811         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34812         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34814
34815 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34816
34817         * lib/argp-help.c (struct hol_entry): New member `ord'.
34818         (HOL_ENTRY_PTRCMP): Use ord for comparison
34819         (hol_sort): Initialize ord.
34820
34821 2007-05-01  Bruno Haible  <bruno@clisp.org>
34822
34823         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34824         Reported by Eric Blake.
34825         * doc/gnulib.texi (Function Substitutes): Update.
34826
34827 2007-05-01  Bruno Haible  <bruno@clisp.org>
34828
34829         * doc/functions.texi: Remove file, now redundant through
34830         doc/functions/*.texi.
34831
34832 2007-05-01  Bruno Haible  <bruno@clisp.org>
34833
34834         * modules/argp (Depends-on): Add sleep.
34835
34836 2007-05-01  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/sleep-tests: New file.
34839         * tests/test-sleep.c: New file.
34840
34841         * modules/sleep: New file.
34842         * lib/sleep.c: New file.
34843         * m4/sleep.m4: New file.
34844         * lib/unistd_.h (sleep): New declaration.
34845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34846         HAVE_SLEEP.
34847         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34848         * doc/functions/sleep.texi: Document the sleep module.
34849
34850 2007-05-01  Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/sigprocmask.h: Remove file.
34853         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34854         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34855         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34856         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34857         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34858         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34859         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34860         HAVE_SIGSET_T as a shell variable.
34861         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34862         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34863         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34864         (Depends-on): Add signal. Remove verify.
34865         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34866         (Include): Mention <signal.h> instead of sigprocmask.h.
34867         * NEWS: Mention the change.
34868         * lib/fatal-signal.c: Don't include sigprocmask.h.
34869
34870 2007-05-01  Bruno Haible  <bruno@clisp.org>
34871
34872         * modules/signal: New file.
34873         * lib/signal_.h: New file.
34874         * m4/signal_h.m4: New file.
34875
34876 2007-05-01  Bruno Haible  <bruno@clisp.org>
34877
34878         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34879         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34880         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34881         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34882
34883 2007-05-01  Bruno Haible  <bruno@clisp.org>
34884
34885         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34886         configure time.
34887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34888         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34889         * modules/sys_stat (Makefile.am): Substitute their values into
34890         sys/stat.h.
34891
34892 2007-05-01  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34895         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34896         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34897
34898 2007-05-01  Bruno Haible  <bruno@clisp.org>
34899
34900         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34901         'assert' module here.
34902
34903 2007-05-01  Bruno Haible  <bruno@clisp.org>
34904
34905         * doc/functions/*.texi: New files.
34906         * doc/functions/google-ranking.txt: New file.
34907         * doc/gnulib.texi (Function Substitutes): New chapter.
34908         (ctime, inet_ntoa): Remove sections.
34909         * doc/ctime.texi: Remove file.
34910         * doc/inet_ntoa.texi: Remove file.
34911         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34912         dependencies.
34913         (%.info): New rule, specifying a --reference-limit.
34914
34915 2007-05-01  Bruno Haible  <bruno@clisp.org>
34916
34917         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34918
34919 2007-05-01  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34922         the portability of 'mkdir' to mingw systems.
34923
34924 2007-05-01  Bruno Haible  <bruno@clisp.org>
34925
34926         * doc/headers/google-ranking.txt: New file.
34927
34928 2007-04-30  Eric Blake  <ebb9@byu.net>
34929
34930         Prefer fseeko to fseek.
34931         * modules/getpass (Depends-on): Add fseeko.
34932         * lib/getpass.c (getpass): Use fseeko, not fseek.
34933
34934 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34935
34936         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34937         assumes the sorting is stable, while most qsort implementations
34938         are not.  Use argument addresses to ensure they never compare as
34939         equal.
34940
34941         * tests/test-argp-2.sh (usage-indent test): Fix output
34942         (func_compare): Restore diff options
34943         * tests/test-argp.c: Restore #include "progname.h"
34944
34945 2007-04-29  Bruno Haible  <bruno@clisp.org>
34946
34947         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34949         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34951         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34952         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34953         (TESTS, check_PROGRAMS): Add test-snprintf.
34954         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34955         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34956         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34957         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34958         assertions that fail on HP-UX, OSF/1, or IRIX.
34959         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34960
34961 2007-04-29  Bruno Haible  <bruno@clisp.org>
34962
34963         * MODULES.html.sh (posix_functions): Remove 'contents'.
34964
34965 2007-04-29  Karl Berry  <karl@gnu.org>
34966
34967         * config/srclist.txt (gendocs_template_min): new entry.
34968
34969 2007-04-29  Bruno Haible  <bruno@clisp.org>
34970
34971         Work around fpurge bug on BSD systems.
34972         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34974         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34975         fpurge to rpl_fpurge if the system already has this function.
34976         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34977         the case where the system already has this function. Correct invariants
34978         on BSD systems.
34979         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34980         BSD systems.
34981
34982 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34983
34984         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34985         proposed by Sven Verdoolaege.
34986
34987         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34988         options.
34989         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34990         (usage and help tests): Update
34991
34992 2007-04-29  Bruno Haible  <bruno@clisp.org>
34993
34994         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34995         Print more information in case of failure. Disable a test on BeOS.
34996
34997 2007-04-29  Bruno Haible  <bruno@clisp.org>
34998
34999         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35000         This helps debugging on systems on which no gdb is available.
35001
35002 2007-04-29  Bruno Haible  <bruno@clisp.org>
35003
35004         * lib/freading.h: Improve comments.
35005         * lib/fwriting.h: Likewise.
35006         * tests/test-freading.c (main): Don't check freading immediately after
35007         repositioning. Needed for glibc.
35008
35009 2007-04-29  Bruno Haible  <bruno@clisp.org>
35010
35011         * lib/freading.c (freading): Trivial simplification.
35012
35013 2007-04-28  Bruno Haible  <bruno@clisp.org>
35014
35015         * tests/test-fwriting.c (main): Also test the interaction between
35016         fflush and fwriting.
35017         * modules/fwriting-tests (Depends-on): Add fflush.
35018
35019         * tests/test-freading.c (main): Also test the interaction between
35020         fflush and freading.
35021         * modules/freading-tests (Depends-on): Add fflush.
35022
35023 2007-04-28  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35026         fseeko and ftello.
35027         Suggested by Eric Blake.
35028
35029 2007-04-28  Jim Meyering  <jim@meyering.net>
35030
35031         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35032         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35033         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35034
35035 2007-04-27  Eric Blake  <ebb9@byu.net>
35036
35037         * doc/headers/assert.texi (assert.h): Document assert module use.
35038
35039 2007-04-27  Bruno Haible  <bruno@clisp.org>
35040
35041         * doc/headers/*.texi: New files.
35042         * doc/gnulib.texi (Header File Substitutes): New chapter.
35043         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35044         dependencies.
35045         (standards.info ,standards.html, standards.dvi): Update dependencies.
35046         (mostlyclean, clean): New targets.
35047
35048 2007-04-27  Bruno Haible  <bruno@clisp.org>
35049
35050         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35051         * modules/sysexits (Files, Makefile.am): Update.
35052
35053         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35054         * modules/sys_socket (Files, Makefile.am): Update.
35055
35056         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35057         * modules/sys_stat (Files, Makefile.am): Update.
35058
35059 2007-04-27  Eric Blake  <ebb9@byu.net>
35060
35061         * lib/freading.h: Improve comments.
35062         * lib/fwriting.h: Likewise.
35063         * lib/fflush.c: Likewise.
35064
35065         Fix closein for mingw.
35066         * modules/closein-tests: Add tests for closein.
35067         * tests/test-closein.c: New file.
35068         * tests/test-closein.sh: Likewise.
35069         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35070         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35071
35072 2007-04-27  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35075         version is < 6.
35076         * lib/math_.h [__DECC]: Likewise.
35077         * lib/stdio_.h [__DECC]: Likewise.
35078         * lib/stdlib_.h [__DECC]: Likewise.
35079         * lib/string_.h [__DECC]: Likewise.
35080         * lib/time_.h [__DECC]: Likewise.
35081         * lib/wchar_.h [__DECC]: Likewise.
35082         * lib/wctype_.h [__DECC]: Likewise.
35083
35084 2007-04-27  Bruno Haible  <bruno@clisp.org>
35085
35086         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35087
35088 2007-04-27  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/fflush.c: Add comments.
35091         * modules/fpurge-tests (Depends-on): Add fflush.
35092         * modules/freadable-tests (Depends-on): Likewise.
35093         * modules/fwritable-tests (Depends-on): Likewise.
35094
35095 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35096
35097         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35098         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35099         Report by Bruno Haible <bruno@clisp.org>.
35100
35101 2007-04-26  Eric Blake  <ebb9@byu.net>
35102
35103         Fix fflush on mingw.
35104         * modules/fflush (Depends-on): Add freading.
35105         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35106         but unread data.
35107
35108 2007-04-26  Eric Blake  <ebb9@byu.net>
35109         and Bruno Haible  <bruno@clisp.org>
35110
35111         Implement freading and fwriting.
35112         * lib/freading.c: New file.
35113         * lib/freading.h: Likewise.
35114         * m4/freading.m4: Likewise.
35115         * modules/freading: Likewise.
35116         * modules/freading-tests: Likewise.
35117         * tests/test-freading.c: Likewise.
35118         * lib/fwriting.c: New file.
35119         * lib/fwriting.h: Likewise.
35120         * m4/fwriting.m4: Likewise.
35121         * modules/fwriting: Likewise.
35122         * modules/fwriting-tests: Likewise.
35123         * tests/test-fwriting.c: Likewise.
35124         * MODULES.html.sh (File stream based Input/Output): Mention them.
35125
35126 2007-04-26  Bruno Haible  <bruno@clisp.org>
35127
35128         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35129         'long' when we assume it.
35130         Suggested by Eric Blake.
35131
35132 2007-04-26  Bruno Haible  <bruno@clisp.org>
35133
35134         Ensure fseeko, ftello are declared on glibc systems.
35135         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35136         * modules/fseeko (configure.ac-early): Likewise.
35137         * modules/ftello (configure.ac-early): Likewise.
35138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35139         AC_FUNC_FSEEKO for this.
35140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35141         (gl_CHECK_FSEEKO): Remove macro.
35142
35143 2007-04-26  Bruno Haible  <bruno@clisp.org>
35144
35145         * tests/test-fflush.c (main): Also check the ftell result after
35146         fflush and fseek/fseeko.
35147         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35148         file descriptor position cache in the stream.
35149         * lib/fseeko.c (rpl_fseeko): Likewise.
35150
35151 2007-04-26  Bruno Haible  <bruno@clisp.org>
35152
35153         * modules/fflush-tests (Depends-on): Add fseeko.
35154
35155 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35156             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35157
35158         * lib/argz_.h: ensure error_t definition is obtained in same
35159         mechanism system argz.h would have.
35160         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35161         argz facilities are known bad.  Err on the side of caution if
35162         cross-compiling.
35163
35164 2007-04-25  Eric Blake  <ebb9@byu.net>
35165
35166         * lib/fpurge.c (includes): Use stdlib.h for free.
35167         * tests/test-fflush.c (main): Also test fflush-fseeko.
35168
35169 2007-04-25  Bruno Haible  <bruno@clisp.org>
35170
35171         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35172         * lib/fseeko.c: New file.
35173         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35174         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35175         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35176         gl_FUNC_FSEEKO.
35177         (gl_FUNC_FSEEKO): Invoke it.
35178         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35179         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35180         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35181
35182 2007-04-25  Bruno Haible  <bruno@clisp.org>
35183
35184         * modules/fflush (Depends-on): Add ftello.
35185
35186 2007-04-25  Bruno Haible  <bruno@clisp.org>
35187
35188         * modules/ftello-tests: New file.
35189         * tests/test-ftello.c: New file.
35190
35191         * modules/ftello: New file.
35192         * m4/ftello.m4: New file.
35193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35194         HAVE_FTELLO.
35195         * lib/stdio_.h (ftello): New declaration.
35196         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35197         HAVE_FTELLO.
35198
35199 2007-04-25  Bruno Haible  <bruno@clisp.org>
35200
35201         * modules/fseeko-tests: New file.
35202         * tests/test-fseeko.c: New file.
35203
35204         * modules/fseeko: New file.
35205         * m4/fseeko.m4: New file.
35206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35207         HAVE_FSEEKO.
35208         * lib/stdio_.h (fseeko): New declaration.
35209         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35210         HAVE_FSEEKO.
35211
35212 2007-04-25  Bruno Haible  <bruno@clisp.org>
35213
35214         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35215
35216 2007-04-25  Bruno Haible  <bruno@clisp.org>
35217
35218         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35219         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35220         * tests/test-unistd.c: Likewise.
35221         * tests/test-fcntl.c: Likewise.
35222
35223 2007-04-23  Eric Blake  <ebb9@byu.net>
35224
35225         * lib/fflush.c: Fix missing include.
35226         Reported by Bruno Haible.
35227
35228 2007-04-23  Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35231         Reported by Eric Blake.
35232
35233 2007-04-23  Bruno Haible  <bruno@clisp.org>
35234
35235         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35236
35237 2007-04-23  Bruno Haible  <bruno@clisp.org>
35238
35239         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35240
35241 2007-04-23  Bruno Haible  <bruno@clisp.org>
35242
35243         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35244         Needed on HP-UX 11.
35245
35246 2007-04-16  Eric Blake  <ebb9@byu.net>
35247
35248         Make fflush rely on fpurge.
35249         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35250         open coding all variants.
35251         * modules/fflush (Depends-on): Add fpurge and unistd.
35252         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35253         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35254
35255         Fix --with-tests compilation on cygwin.
35256         * modules/argmatch-tests (Makefile.am): List gnulib library first
35257         in LDADD.
35258         * modules/argp-tests (Makefile.am): Likewise.
35259         * modules/array-list-tests (Makefile.am): Likewise.
35260         * modules/array-oset-tests (Makefile.am): Likewise.
35261         * modules/avltree-list-tests (Makefile.am): Likewise.
35262         * modules/avltree-oset-tests (Makefile.am): Likewise.
35263         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35264         * modules/carray-list-tests (Makefile.am): Likewise.
35265         * modules/dirname-tests (Makefile.am): Likewise.
35266         * modules/frexp-tests (Makefile.am): Likewise.
35267         * modules/isnanl-tests (Makefile.am): Likewise.
35268         * modules/linked-list-tests (Makefile.am): Likewise.
35269         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35270         * modules/lock-tests (Makefile.am): Likewise.
35271         * modules/rbtree-list-tests (Makefile.am): Likewise.
35272         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35273         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35274         * modules/tls-tests (Makefile.am): Likewise.
35275         * modules/tsearch-tests (Makefile.am): Likewise.
35276         * modules/xvasprintf-tests (Makefile.am): Likewise.
35277
35278         Fix fpurge for cygwin.
35279         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35280         value.
35281         * modules/fpurge-tests (Depends-on): Clean up trash.
35282
35283 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35284
35285         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35286
35287         * m4/autobuild.m4: Re-indent.
35288
35289 2007-04-13  Bruno Haible  <bruno@clisp.org>
35290
35291         * modules/fpurge-tests: New file.
35292         * tests/test-fpurge.c: New file.
35293
35294         * modules/fpurge: New file.
35295         * lib/fpurge.h: New file.
35296         * lib/fpurge.c: New file.
35297         * m4/fpurge.m4: New file.
35298
35299 2007-04-13  Bruno Haible  <bruno@clisp.org>
35300
35301         * modules/fbufmode-tests: New file.
35302         * tests/test-fbufmode.c: New file.
35303
35304         * modules/fbufmode: New file.
35305         * lib/fbufmode.h: New file.
35306         * lib/fbufmode.c: New file.
35307         * m4/fbufmode.m4: New file.
35308
35309 2007-04-13  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/fwritable-tests: New file.
35312         * tests/test-fwritable.c: New file.
35313
35314         * modules/fwritable: New file.
35315         * lib/fwritable.h: New file.
35316         * lib/fwritable.c: New file.
35317         * m4/fwritable.m4: New file.
35318
35319 2007-04-13  Bruno Haible  <bruno@clisp.org>
35320
35321         * modules/freadable-tests: New file.
35322         * tests/test-freadable.c: New file.
35323
35324         * modules/freadable: New file.
35325         * lib/freadable.h: New file.
35326         * lib/freadable.c: New file.
35327         * m4/freadable.m4: New file.
35328
35329 2007-04-13  Bruno Haible  <bruno@clisp.org>
35330
35331         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35332         MOSTLYCLEANFILES.
35333
35334 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35335
35336         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35337         gzip bootstrap.conf to avoid dragging in i18n machinery.
35338         (gnulib_tool_option): Use it.
35339
35340 2007-04-13  Bruno Haible  <bruno@clisp.org>
35341
35342         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35343         %F directives.
35344         * tests/test-vasprintf-posix.c (test_function): Likewise.
35345         * tests/test-snprintf-posix.h (test_function): Likewise.
35346         * tests/test-sprintf-posix.h (test_function): Likewise.
35347         * tests/test-fprintf-posix.h (test_function): Likewise.
35348         * tests/test-printf-posix.h (test_function): Likewise.
35349         * tests/test-fprintf-posix.out: Likewise.
35350
35351 2007-04-13  Bruno Haible  <bruno@clisp.org>
35352
35353         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35354         * modules/tls-tests (configure.ac): Likewise.
35355         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35356
35357 2007-04-13  Bruno Haible  <bruno@clisp.org>
35358
35359         * lib/tls.c (glthread_tls_get): Fix return type.
35360         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35361
35362 2007-04-12  Eric Blake  <ebb9@byu.net>
35363
35364         * modules/gettime (Depends-on): Remove gettime.
35365         Reported by Dmitry V. Levin.
35366
35367 2007-04-12  Bruno Haible  <bruno@clisp.org>
35368
35369         * modules/fflush (Include): Mention <stdio.h>.
35370         * modules/strtoimax (Include): Mention <inttypes.h>.
35371         * modules/strtoumax (Include): Likewise.
35372
35373 2007-04-12  Eric Blake  <ebb9@byu.net>
35374
35375         * .cvsignore: New file.
35376         * .gitignore: Likewise.
35377
35378 2007-04-12  Bruno Haible  <bruno@clisp.org>
35379
35380         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35381         not before, since $(LDADD) often contains libgnu.a.
35382         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35383         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35384         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35385         Needed on Cygwin.
35386
35387 2007-04-12  Eric Blake  <ebb9@byu.net>
35388
35389         Work around glibc's failure to flush stdin on fclose.
35390         * lib/closein.c (close_stdin): Flush stdin before closing.
35391
35392         Work around glibc's failure to reset seekable stdin on exit.
35393         * modules/closein: New module.
35394         * lib/closein.c: New file.
35395         * lib/closein.h: Likewise.
35396         * m4/closein.m4: Likewise.
35397         * MODULES.html.sh (File stream based Input/Output): Document it.
35398
35399 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35400
35401         * gnulib-tool: Rename generated 'autobuild' script to
35402         'do-autobuild' in --create-megatestdir output.
35403
35404         * doc/gnulib.texi (Build robot for gnulib): Fix.
35405
35406 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35407
35408         * modules/sysexits (Depends-on): Add absolute-header.
35409
35410 2007-04-12  Eric Blake  <ebb9@byu.net>
35411
35412         No need to preserve errno on success.
35413         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35414         Reported by Bruno Haible.
35415
35416 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35417
35418         * MODULES.html.sh (Support for maintaining and releasing
35419         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35420
35421 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35422
35423         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35424
35425 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35426
35427         * modules/autobuild: New module.
35428
35429         * m4/autobuild.m4: New file.
35430
35431 2007-04-11  Bruno Haible  <bruno@clisp.org>
35432
35433         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35434         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35461         Reported by Eric Blake.
35462
35463 2007-04-11  Bruno Haible  <bruno@clisp.org>
35464
35465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35466
35467 2007-04-10  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35470         for NaN and Infinity. Needed on FreeBSD 6.1.
35471         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35472         regarding results for "%010a" of Infinity and NaN.
35473         * tests/test-vasprintf-posix.c (test_function): Likewise.
35474         * tests/test-snprintf-posix.h (test_function): Likewise.
35475         * tests/test-sprintf-posix.h (test_function): Likewise.
35476         * tests/test-fprintf-posix.h (test_function): Likewise.
35477         * tests/test-printf-posix.h (test_function): Likewise.
35478         * tests/test-fprintf-posix.out: Likewise.
35479
35480 2007-04-10  Bruno Haible  <bruno@clisp.org>
35481
35482         * modules/locale-tests: New file.
35483         * tests/test-locale.c: New file.
35484
35485         * modules/locale: New file.
35486         * lib/locale_.h: New file.
35487         * m4/locale_h.m4: New file.
35488
35489 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35490             Bruno Haible  <bruno@clisp.org>
35491
35492         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35493         be determined, test for availability of the copysignf, copysign,
35494         copysignl functions.
35495         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35496         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35497         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35498
35499 2007-04-09  Eric Blake  <ebb9@byu.net>
35500
35501         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35502         * modules/stdio (Makefile.am): Support fflush.
35503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35504         * modules/fflush: New file.
35505         * lib/fflush.c: Likewise.
35506         * m4/fflush.m4: Likewise.
35507         * modules/fflush-tests: New test.
35508         * tests/test-fflush.c: Likewise.
35509         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35510
35511 2007-04-06  Bruno Haible  <bruno@clisp.org>
35512
35513         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35514         (VASNPRINTF): Use signbit for faster determination whether to print a
35515         minus sign.
35516         * modules/vasnprintf (Files): Remove lib/float+.h.
35517         * modules/fprintf-posix (Depends-on): Add signbit.
35518         * modules/snprintf-posix (Depends-on): Likewise.
35519         * modules/sprintf-posix (Depends-on): Likewise.
35520         * modules/vasnprintf-posix (Depends-on): Likewise.
35521         * modules/vasprintf-posix (Depends-on): Likewise.
35522         * modules/vfprintf-posix (Depends-on): Likewise.
35523         * modules/vsnprintf-posix (Depends-on): Likewise.
35524         * modules/vsprintf-posix (Depends-on): Likewise.
35525
35526 2007-04-06  Bruno Haible  <bruno@clisp.org>
35527
35528         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35529         * tests/test-frexpl.c (main): Likewise.
35530         * tests/test-ldexpl.c (main): Likewise.
35531         * modules/frexp-tests (Depends-on): Add signbit.
35532         * modules/frexpl-tests (Depdends-on): Likewise.
35533         * modules/ldexpl-tests (Depdends-on): Likewise.
35534
35535 2007-04-06  Bruno Haible  <bruno@clisp.org>
35536
35537         * modules/signbit-tests: New file.
35538         * tests/test-signbit.c: New file.
35539
35540         * modules/signbit: New file.
35541         * lib/signbitf.c: New file.
35542         * lib/signbitd.c: New file.
35543         * lib/signbitl.c: New file.
35544         * m4/signbit.m4: New file.
35545         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35546         (signbit): New macro.
35547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35548         REPLACE_SIGNBIT.
35549         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35550         REPLACE_FREXPL into math.h.
35551
35552 2007-04-06  Bruno Haible  <bruno@clisp.org>
35553
35554         * modules/isnanf-nolibm-tests: New file.
35555         * tests/test-isnanf.c: New file.
35556
35557         * modules/isnanf-nolibm: New file.
35558         * lib/isnanf.h: New file.
35559         * lib/isnanf.c: New file.
35560         * lib/isnan.c: Consider the USE_FLOAT macro.
35561         * m4/isnanf.m4: New file.
35562
35563 2007-04-06  Bruno Haible  <bruno@clisp.org>
35564
35565         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35566         (Link): New section.
35567
35568         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35569
35570 2007-04-06  Bruno Haible  <bruno@clisp.org>
35571
35572         Assume the 'long double' type.
35573         * m4/longdouble.m4: Remove file.
35574         * config/srclist.txt: Don't mention longdouble.m4.
35575         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35576         * lib/float+.h: Likewise.
35577         * lib/frexp.c: Likewise.
35578         * lib/printf-args.h: Likewise.
35579         * lib/printf-args.c: Likewise.
35580         * lib/printf-frexp.c: Likewise.
35581         * lib/printf-parse.c: Likewise.
35582         * lib/vasnprintf.c: Likewise.
35583         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35584         * m4/intl.m4: Likewise.
35585         * m4/isnanl.m4: Likewise.
35586         * m4/printf.m4: Likewise.
35587         * m4/printf-frexpl.m4: Likewise.
35588         * m4/vasnprintf.m4: Likewise.
35589         * modules/allocsa (Files): Remove m4/longdouble.m4.
35590         * modules/gettext (Files): Likewise.
35591         * modules/relocatable-prog-wrapper (Files): Likewise.
35592         * modules/vasnprintf (Files): Likewise.
35593         * modules/isnanl (Files): Likewise.
35594         (Include): Simplify.
35595         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35596         (Include): Simplify.
35597         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35598         (Include): Simplify.
35599         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35600         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35601         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35602         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35603         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35604         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35605         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35606         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35607         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35608         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35609         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35611         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35612         * tests/test-isnanl.c: Likewise.
35613         * tests/test-snprintf-posix.h: Likewise.
35614         * tests/test-sprintf-posix.h: Likewise.
35615         * tests/test-vasnprintf-posix.c: Likewise.
35616         * tests/test-vasnprintf-posix2.c: Likewise.
35617         * tests/test-vasprintf-posix.c: Likewise.
35618
35619 2007-04-06  Bruno Haible  <bruno@clisp.org>
35620
35621         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35622         * lib/math_.h [__DECC]: Include the overridden include file through
35623         #include_next, outside the double-inclusion guard.
35624         * lib/stdio_.h [__DECC]: Likewise.
35625         * lib/stdlib_.h [__DECC]: Likewise.
35626         * lib/string_.h [__DECC]: Likewise.
35627         * lib/time_.h [__DECC]: Likewise.
35628         * lib/wchar_.h [__DECC]: Likewise.
35629         * lib/wctype_.h [__DECC]: Likewise.
35630         * lib/inttypes_.h [__DECC]: Likewise.
35631         Reported by Albert Chin <china@thewrittenword.com> in
35632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35633
35634 2007-04-04  Eric Blake  <ebb9@byu.net>
35635
35636         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35637         1.5.x.
35638
35639 2007-04-04  Bruno Haible  <bruno@clisp.org>
35640
35641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35642         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35643
35644 2007-04-04  Bruno Haible  <bruno@clisp.org>
35645
35646         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35647         results for "%010a" of Infinity and NaN.
35648         * tests/test-vasprintf-posix.c (test_function): Likewise.
35649         * tests/test-snprintf-posix.h (test_function): Likewise.
35650         * tests/test-sprintf-posix.h (test_function): Likewise.
35651         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35652         * tests/test-printf-posix.h (test_function): Likewise.
35653         * tests/test-fprintf-posix.out: Update.
35654         Needed for FreeBSD 6.1.
35655
35656 2007-04-04  Bruno Haible  <bruno@clisp.org>
35657
35658         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35659         directly used by the gnulib modules nor by gnulib-tool.
35660
35661 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35662
35663         * DEPENDENCIES: Give overall description of version dependency
35664         desirability.  Use more-typical names for apps.
35665         Add shell, coreutils, diffutils, grep, tar, gzip.
35666
35667 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35668
35669         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35670
35671 2007-04-04  Karl Berry  <karl@gnu.org>
35672
35673         * MODULES.html.sh (func_module): missing '.
35674
35675 2007-04-03  Bruno Haible  <bruno@clisp.org>
35676
35677         * modules/argmatch-tests (Makefile.am): New variable
35678         test_argmatch_LDADD.
35679         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35680         * modules/array-list-tests (Makefile.am): New variable
35681         test_array_list_LDADD.
35682         * modules/array-oset-tests (Makefile.am): New variable
35683         test_array_oset_LDADD.
35684         * modules/avltree-list-tests (Makefile.am): New variable
35685         test_avltree_list_LDADD.
35686         * modules/avltree-oset-tests (Makefile.am): New variable
35687         test_avltree_oset_LDADD.
35688         * modules/avltreehash-list-tests (Makefile.am): New variable
35689         test_avltreehash_list_LDADD.
35690         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35691         test_canonicalize_lgpl_LDADD.
35692         * modules/carray-list-tests (Makefile.am): New variable
35693         test_carray_list_LDADD.
35694         * modules/dirname-tests (Makefile.am): New variable
35695         test_dirname_LDADD.
35696         * modules/linked-list-tests (Makefile.am): New variable
35697         test_linked_list_LDADD.
35698         * modules/linkedhash-list-tests (Makefile.am): New variable
35699         test_linkedhash_list_LDADD.
35700         * modules/rbtree-list-tests (Makefile.am): New variable
35701         test_rbtree_list_LDADD.
35702         * modules/rbtree-oset-tests (Makefile.am): New variable
35703         test_rbtree_oset_LDADD.
35704         * modules/rbtreehash-list-tests (Makefile.am): New variable
35705         test_rbtreehash_list_LDADD.
35706         * modules/xvasprintf-tests (Makefile.am): New variable
35707         test_xvasprintf_LDADD.
35708         Reported by Eric Blake.
35709
35710 2007-04-03  Eric Blake  <ebb9@byu.net>
35711
35712         * DEPENDENCIES: Weaken m4 requirements.
35713
35714 2007-04-03  Bruno Haible  <bruno@clisp.org>
35715
35716         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35717         * modules/isnanl-tests (configure.ac): Likewise.
35718
35719 2007-04-03  Ben Pfaff  <blp@gnu.org>
35720
35721         * modules/iconv_open: Add $(srcdir)/ to source directory
35722         references in Makefile fragments that call gperf, to fix VPATH
35723         builds.
35724
35725 2007-04-03  Bruno Haible  <bruno@clisp.org>
35726
35727         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35728         * lib/ldexpl.c: Undo last change.
35729
35730 2007-04-03  Bruno Haible  <bruno@clisp.org>
35731
35732         * modules/printf-frexpl (Depends-on): Undo last change.
35733         (Files): Add m4/ldexpl.m4.
35734
35735 2007-04-03  Bruno Haible  <bruno@clisp.org>
35736
35737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35738         * modules/isnanl (Link): New section.
35739
35740         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35741         * modules/frexp (Link): New section.
35742
35743         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35744         * modules/frexpl (Link): New section.
35745
35746         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35747         * modules/ldexpl (Link): New section.
35748
35749 2007-04-03  Bruno Haible  <bruno@clisp.org>
35750
35751         * modules/TEMPLATE-EXTENDED: New file.
35752         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35753
35754 2007-04-03  Bruno Haible  <bruno@clisp.org>
35755
35756         * DEPENDENCIES: New file.
35757         Suggested by Simon Josefsson.
35758
35759 2007-04-03  Bruno Haible  <bruno@clisp.org>
35760
35761         * doc/gnulib.texi: Escape @.
35762
35763 2007-04-03  James Youngman  <jay@gnu.org>
35764         and Paul Eggert  <eggert@cs.ucla.edu>
35765
35766         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35767         birthtime on all systems that have birthtime, not just those which
35768         use st_birthtimensec rather than st_birthtim.  Putting zero in
35769         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35770         that the birth time is not available for files on an NFS mount.
35771
35772 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35773
35774         * modules/memxor: Move back from crypto/, suggested by Bruno.
35775         * modules/crypto/hmac-sha1: Fix memxor dependency.
35776
35777         * modules/crypto/gc: Moved from ../.
35778
35779 2007-04-02  Eric Blake  <ebb9@byu.net>
35780
35781         * lib/ldexpl.c (includes): Avoid libm.
35782
35783         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35784
35785 2007-04-02  Bruno Haible  <bruno@clisp.org>
35786
35787         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35788         on IRIX.
35789
35790 2007-04-02  Bruno Haible  <bruno@clisp.org>
35791
35792         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35793         x86 or x86_64 platforms running MacOS X.
35794         Reported by Ryan Schmidt <@ryandesign.com>.
35795
35796 2007-04-02  Bruno Haible  <bruno@clisp.org>
35797
35798         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35799         i386.
35800
35801 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35802
35803         * modules/crypto/arcfour: Moved from ../.
35804         * modules/crypto/arcfour-tests: Moved from ../.
35805         * modules/crypto/arctwo: Moved from ../.
35806         * modules/crypto/arctwo-tests: Moved from ../.
35807         * modules/crypto/des: Moved from ../.
35808         * modules/crypto/des-tests: Moved from ../.
35809         * modules/crypto/gc-arcfour: Moved from ../.
35810         * modules/crypto/gc-arcfour-tests: Moved from ../.
35811         * modules/crypto/gc-arctwo: Moved from ../.
35812         * modules/crypto/gc-arctwo-tests: Moved from ../.
35813         * modules/crypto/gc-des: Moved from ../.
35814         * modules/crypto/gc-des-tests: Moved from ../.
35815         * modules/crypto/gc-hmac-md5: Moved from ../.
35816         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35817         * modules/crypto/gc-hmac-sha1: Moved from ../.
35818         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35819         * modules/crypto/gc-md2: Moved from ../.
35820         * modules/crypto/gc-md2-tests: Moved from ../.
35821         * modules/crypto/gc-md4: Moved from ../.
35822         * modules/crypto/gc-md4-tests: Moved from ../.
35823         * modules/crypto/gc-md5: Moved from ../.
35824         * modules/crypto/gc-md5-tests: Moved from ../.
35825         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35826         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35827         * modules/crypto/gc-random: Moved from ../.
35828         * modules/crypto/gc-rijndael: Moved from ../.
35829         * modules/crypto/gc-rijndael-tests: Moved from ../.
35830         * modules/crypto/gc-sha1: Moved from ../.
35831         * modules/crypto/gc-sha1-tests: Moved from ../.
35832         * modules/crypto/gc-tests: Moved from ../.
35833         * modules/crypto/hmac-md5: Moved from ../.
35834         * modules/crypto/hmac-md5-tests: Moved from ../.
35835         * modules/crypto/hmac-sha1: Moved from ../.
35836         * modules/crypto/hmac-sha1-tests: Moved from ../.
35837         * modules/crypto/md2: Moved from ../.
35838         * modules/crypto/md2-tests: Moved from ../.
35839         * modules/crypto/md4: Moved from ../.
35840         * modules/crypto/md4-tests: Moved from ../.
35841         * modules/crypto/md5: Moved from ../.
35842         * modules/crypto/md5-tests: Moved from ../.
35843         * modules/crypto/memxor: Moved from ../.
35844         * modules/crypto/rijndael: Moved from ../.
35845         * modules/crypto/rijndael-tests: Moved from ../.
35846         * modules/crypto/sha1: Moved from ../.
35847
35848 2007-03-30  James Youngman  <jay@gnu.org>
35849
35850         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35851         rename() to change the ctime of a file (because ctime is unaffected
35852         by rename on jfs2 on AIX 5.1).
35853         (main): Start by doing cleanup, in case a previous run failed leaving
35854         test files behind.
35855
35856 2007-03-31  Bruno Haible  <bruno@clisp.org>
35857
35858         Support old proprietary implementations of iconv.
35859         * modules/iconv_open: New file.
35860         * lib/iconv_.h: New file.
35861         * m4/iconv_h.m4: New file.
35862         * lib/iconv_open.c: New file.
35863         * lib/iconv_open-aix.gperf: New file.
35864         * lib/iconv_open-hpux.gperf: New file.
35865         * lib/iconv_open-irix.gperf: New file.
35866         * lib/iconv_open-osf.gperf: New file.
35867         * m4/iconv_open.m4: New file.
35868         * modules/linebreak (Depends-on): Add iconv_open.
35869         * modules/striconv (Depends-on): Likewise.
35870         * modules/striconveh (Depends-on): Likewise.
35871         * modules/unicodeio (Depends-on): Likewise.
35872         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35873         (iconv_t)(-1).
35874         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35875         conversion if cd is (iconv_t)(-1).
35876         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35877         is not possible.
35878
35879 2007-03-31  Bruno Haible  <bruno@clisp.org>
35880
35881         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35882         work on Solaris either. Protect also second use of "autodetect_jp".
35883
35884 2007-03-31  Bruno Haible  <bruno@clisp.org>
35885
35886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35887         the function is not present.
35888
35889 2007-03-31  Bruno Haible  <bruno@clisp.org>
35890
35891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35892         the function is not present.
35893
35894 2007-03-31  Bruno Haible  <bruno@clisp.org>
35895
35896         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35897         a bug in HP-UX iconv_open().
35898
35899 2007-03-31  Bruno Haible  <bruno@clisp.org>
35900
35901         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35902         (Mathematics <math.h>): New section, add fpieee.
35903         (Input/output <stdio.h>): Add fseterr.
35904         (Mathematics <math.h>): New section, add printf-frexp.
35905         (Container data structures): Add sublist.
35906         (Core language properties): Add fpucw, inline.
35907         (Functions for greatest-width integer types <inttypes.h>): Add
35908         imaxabs, imaxdiv, inttypes.
35909         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35910         isnanl-nolibm, ldexp.
35911         (Mathematics <math.h>): New section, add printf-frexpl.
35912         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35913         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35914         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35915         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35916         (Unicode string functions): Add unistr/u*-mbtoucr.
35917         (Java): Add javacomp-script, javaexec-script.
35918         (C#): Add csharpcomp-script, csharpexec-script.
35919         (Support for building libraries and executables): Add havelib,
35920         relocatable-*.
35921         (Support for maintaining and releasing projects): Renamed from
35922         'Support for maintaining and release projects'. Add announce-gen.
35923
35924 2007-03-31  Bruno Haible  <bruno@clisp.org>
35925
35926         * README: Talk primarily about git.
35927         (git and CVS): Renamed from CVS.
35928         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35929         gnulib is available through git.
35930         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35931
35932 2007-03-30  Bruno Haible  <bruno@clisp.org>
35933
35934         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35935         * lib/poll_.h: Likewise.
35936         * lib/stat_.h: Likewise.
35937         * lib/sys_time_.h: Likewise.
35938         * lib/sysexit_.h: Likewise.
35939         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35940         * lib/stdbool_.h: Likewise.
35941         * lib/byteswap_.h: Add double-inclusion guard.
35942
35943 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35944
35945         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35946
35947 2007-03-30  Karl Berry  <karl@gnu.org>
35948
35949         * config/srclist-update: double space after USA in the license
35950         substitution, since that's how it's usually (?) written.
35951
35952 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35953
35954         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35955         reported by Bruno Haible.
35956
35957 2007-03-29  Bruno Haible  <bruno@clisp.org>
35958
35959         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35960         a bug in AIX iconv().
35961
35962 2007-03-29  Bruno Haible  <bruno@clisp.org>
35963
35964         * modules/ldexpl-tests: New file.
35965         * tests/test-ldexpl.c: New file.
35966
35967 2007-03-29  Bruno Haible  <bruno@clisp.org>
35968
35969         * lib/ldexpl.c: Include fpucw.h.
35970         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35971         multiplication.
35972         * modules/ldexpl (Depends-on): Add fpucw.
35973
35974 2007-03-29  Bruno Haible  <bruno@clisp.org>
35975
35976         * modules/ldexpl: New file.
35977         * m4/ldexpl.m4: New file.
35978         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35979         set.
35980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35981         REPLACE_LDEXPL.
35982         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35983         REPLACE_LDEXPL.
35984         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35985         gl_FUNC_LDEXPL_WORKS.
35986         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35987         * modules/mathl (Files): Remove lib/ldexpl.c.
35988         (Depends-on): Add ldexpl.
35989
35990 2007-03-29  Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35993
35994 2007-03-29  Bruno Haible  <bruno@clisp.org>
35995
35996         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35997         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35998         and possibly also HP-UX.
35999         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36000         work on AIX, IRIX, HP-UX, OSF/1.
36001         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36002         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36003         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36004         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36005         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36006         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36007
36008 2007-03-29  Bruno Haible  <bruno@clisp.org>
36009
36010         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36011
36012 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36013
36014         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36015         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36016
36017 2007-03-29  Eric Blake  <ebb9@byu.net>
36018
36019         * lib/acl-internal.h: Remove redundant include.
36020         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36021         Cygwin when a file is locked.
36022
36023 2007-03-29  Bruno Haible  <bruno@clisp.org>
36024
36025         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36026         file.
36027         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36028
36029 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36030
36031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36032         try to remove a parent directory if the child couldn't be removed
36033         (except for the first rmdir, which could fail because the child
36034         doesn't exist).  Problem reported by Jeff Blaine in
36035         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36036
36037 2007-03-28  Bruno Haible  <bruno@clisp.org>
36038
36039         * lib/striconveh.c (utf8conv_carefully): New function.
36040         (mem_cd_iconveh_internal): Invoke it.
36041
36042 2007-03-28  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36045         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36046         input.
36047         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36048         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36049         unistr/u8-uctomb.
36050
36051 2007-03-28  Bruno Haible  <bruno@clisp.org>
36052
36053         * modules/unistr/u8-mbtoucr: New file.
36054         * lib/unistr/u8-mbtoucr.c: New file.
36055         * modules/unistr/u16-mbtoucr: New file.
36056         * lib/unistr/u16-mbtoucr.c: New file.
36057         * modules/unistr/u16-mbtoucr: New file.
36058         * lib/unistr/u16-mbtoucr.c: New file.
36059         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36060
36061 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36062             Bruno Haible  <bruno@clisp.org>
36063
36064         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36065         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36066         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36067
36068         * m4/stdio_h.m4: Add stubs for vasprintf too.
36069
36070         * modules/stdio: Support vasprintf in sed command.
36071
36072         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36073         vasprintf.h.  Add stdio module indicator.
36074
36075         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36076         vasprintf.h.
36077
36078         * lib/vasprintf.h: File removed.
36079
36080         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36081         * lib/vasprintf.c: Ditto.
36082         * lib/xvasprintf.c: Ditto.
36083         * tests/test-vasprintf-posix.c: Ditto.
36084         * tests/test-vasprintf.c: Ditto.
36085
36086 2007-03-27  Bruno Haible  <bruno@clisp.org>
36087
36088         Make vasnprintf multithread-safe.
36089         * lib/vasnprintf.c (decimal_point_char): New function.
36090         (VASNPRINTF): Use it.
36091         Suggested by Simon Josefsson.
36092
36093 2007-03-27  Eric Blake  <ebb9@byu.net>
36094
36095         Support sub-second birthtime on cygwin.
36096         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36097         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36098         (get_stat_birthtime): Also work with st_birthtim.
36099
36100 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36101
36102         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36103         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36104         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36105         (get_stat_birthtime_ns): Simplify compile-time tests.
36106         (get_stat_birthtime): Change the API to look like
36107         get_stat_mtime etc., except return a negative tv_nsec on error.
36108         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36109         Don't check for "spare" fields.
36110         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36111         or for struct stat.st_birthtime, as these tests aren't used.
36112         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36113
36114 2007-03-27  Bruno Haible  <bruno@clisp.org>
36115
36116         * lib/stat-time.h: Include <sys/stat.h>.
36117
36118 2007-03-27  James Youngman  <jay@gnu.org>
36119
36120         * lib/stat-time.h (get_stat_birthtime): New function for
36121           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36122         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36123           and its variants.
36124         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36125         * modules/stat-time-test: New file.
36126         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36127
36128 2007-03-26  Bruno Haible  <bruno@clisp.org>
36129
36130         Better support of signalling NaNs.
36131         * lib/atanl.c: Include isnanl.h.
36132         (atanl): Perform test for NaN at the beginning of the function and
36133         through a call to isnanl.
36134         * lib/cosl.c: Include isnanl.h.
36135         (cosl): Perform test for NaN at the beginning of the function and
36136         through a call to isnanl.
36137         * lib/ldexpl.c: Include isnanl.h.
36138         (ldexpl): Perform test for NaN through a call to isnanl.
36139         * lib/logl.c: Include isnanl.h.
36140         (logl): Perform test for NaN at the beginning of the function and
36141         through a call to isnanl.
36142         * lib/sinl.c: Include isnanl.h.
36143         (sinl): Perform test for NaN at the beginning of the function and
36144         through a call to isnanl.
36145         * lib/sqrtl.c: Include isnanl.h.
36146         (sqrtl): Perform test for NaN at the beginning of the function and
36147         through a call to isnanl.
36148         * lib/tanl.c: Include isnanl.h.
36149         (tanl): Perform test for NaN at the beginning of the function and
36150         through a call to isnanl.
36151         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36152         * modules/mathl (Depends-on): Add isnanl.
36153
36154 2007-03-26  Eric Blake  <ebb9@byu.net>
36155
36156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36157         regression in logic sense of previous patch.
36158
36159 2007-03-26  Bruno Haible  <bruno@clisp.org>
36160
36161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36162         unportable shell command "if ! ...".
36163         Reported by Ralf Wildenhues.
36164
36165 2007-03-25  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36168         <sysexits.h> file, and only add EX_CONFIG.
36169         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36170         absolute file name and whether it is sufficient. Substitute also
36171         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36172         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36173         ABSOLUTE_SYSEXITS_H into sysexits.h.
36174
36175 2007-03-25  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36178         hints is NULL.
36179
36180 2007-03-25  Bruno Haible  <bruno@clisp.org>
36181
36182         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36183         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36184
36185 2007-03-25  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/vasnprintf.c: Include langinfo.h.
36188         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36189         multithread-safe.
36190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36191         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36199         Reported by Simon Josefsson.
36200
36201 2007-03-25  Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36204         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36205         * modules/vasnprintf (Depends-on): Add stdint.
36206
36207 2007-03-25  Bruno Haible  <bruno@clisp.org>
36208
36209         * modules/fpieee: New file.
36210         * m4/fpieee.m4: New file.
36211         * modules/isnan-nolibm (Depends-on): Add fpieee.
36212         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36213         * modules/isnanl (Depends-on): Add fpieee.
36214
36215 2007-03-25  Bruno Haible  <bruno@clisp.org>
36216
36217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36218
36219 2007-03-25  Bruno Haible  <bruno@clisp.org>
36220
36221         Avoid test failures on IRIX 6.5.
36222         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36223         (main): Use it.
36224         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36225         macros.
36226         (main): Use them.
36227
36228 2007-03-25  Bruno Haible  <bruno@clisp.org>
36229
36230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36231         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36232         exists but doesn't work.
36233         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36234         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36236         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36237
36238 2007-03-25  Bruno Haible  <bruno@clisp.org>
36239
36240         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36241         returns inf. Needed on IRIX 6.5.
36242
36243 2007-03-25  Bruno Haible  <bruno@clisp.org>
36244
36245         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36246         (main): Use isnanl instead of x != x idiom.
36247         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36248
36249         * tests/test-frexp.c: Include isnan.h.
36250         (main): Use isnan instead of x != x idiom.
36251         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36252
36253 2007-03-25  Bruno Haible  <bruno@clisp.org>
36254
36255         * tests/test-frexp.c (NaN): New function/macro.
36256         (main): Use it instead of 0.0 / 0.0.
36257         * tests/test-isnan.c (NaN): New function/macro.
36258         (main): Use it instead of 0.0 / 0.0.
36259         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36260         (test_function): Use it instead of 0.0 / 0.0.
36261         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36262         (test_function): Use it instead of 0.0 / 0.0.
36263         * tests/test-snprintf-posix.h (NaN): New function/macro.
36264         (test_function): Use it instead of 0.0 / 0.0.
36265         * tests/test-sprintf-posix.h (NaN): New function/macro.
36266         (test_function): Use it instead of 0.0 / 0.0.
36267         * tests/test-fprintf-posix.h (NaN): New function/macro.
36268         (test_function): Use it instead of 0.0 / 0.0.
36269         * tests/test-printf-posix.h (NaN): New function/macro.
36270         (test_function): Use it instead of 0.0 / 0.0.
36271
36272         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36273
36274 2007-03-25  Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36277
36278 2007-03-25  Bruno Haible  <bruno@clisp.org>
36279
36280         * lib/regexec.c (merge_state_with_log): Make static.
36281
36282 2007-03-25  Bruno Haible  <bruno@clisp.org>
36283
36284         * lib/trigl.c (kernel_rem_pio2): Make static.
36285
36286 2007-03-25  Bruno Haible  <bruno@clisp.org>
36287
36288         * lib/sincosl.c (sincosl_table): Make static.
36289
36290 2007-03-25  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36293         if the compiler does not support C99.
36294
36295 2007-03-25  Bruno Haible  <bruno@clisp.org>
36296
36297         * modules/time (Makefile.am): Ensure all rule action lines start with a
36298         tab.
36299
36300 2007-03-24  Bruno Haible  <bruno@clisp.org>
36301
36302         * modules/tsearch-tests: New file.
36303         * tests/test-tsearch.sh: New file.
36304         * tests/test-tsearch.c: New file, mostly copied from glibc.
36305
36306         * modules/search-tests: New file.
36307         * tests/test-search.c: New file.
36308
36309         * modules/search: New file.
36310         * lib/search_.h: New file, incorporating lib/tsearch.h.
36311         * m4/search_h.m4: New file.
36312         * lib/tsearch.h: Remove file.
36313         * lib/tsearch.c: Include search.h instead of tsearch.h.
36314         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36315         HAVE_TSEARCH.
36316         * modules/tsearch (Files): Remove lib/tsearch.h.
36317         (Depends-on): Add search.
36318         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36319         (Include): Change tsearch.h into search.h.
36320
36321 2007-03-24  Bruno Haible  <bruno@clisp.org>
36322
36323         * modules/fpucw: New file.
36324         * lib/fpucw.h: New file.
36325         * lib/frexp.c: Include fpucw.h.
36326         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36327         (FUNC): Use them.
36328         * lib/printf-frexp.c: Include fpucw.h.
36329         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36330         (FUNC): Use them.
36331         * lib/vasnprintf.c: Include fpucw.h.
36332         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36333         'long double' calculations.
36334         * tests/test-frexpl.c: Include fpucw.h.
36335         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36336         * tests/test-printf-frexpl.c: Include fpucw.h.
36337         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36338         * modules/frexpl (Depends-on): Add fpucw.
36339         * modules/printf-frexpl (Depends-on): Likewise.
36340         * modules/fprintf-posix (Depends-on): Likewise.
36341         * modules/snprintf-posix (Depends-on): Likewise.
36342         * modules/sprintf-posix (Depends-on): Likewise.
36343         * modules/vasnprintf-posix (Depends-on): Likewise.
36344         * modules/vasprintf-posix (Depends-on): Likewise.
36345         * modules/vfprintf-posix (Depends-on): Likewise.
36346         * modules/vsnprintf-posix (Depends-on): Likewise.
36347         * modules/vsprintf-posix (Depends-on): Likewise.
36348         * modules/frexpl-tests (Depends-on): Likewise.
36349         * modules/printf-frexpl-tests (Depends-on): Likewise.
36350
36351 2007-03-24  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/float+.h: New file.
36354         * lib/isnan.c: Include float+.h.
36355         (SIZE): New macro.
36356         (FUNC): Compare only SIZE bytes of the value.
36357         * lib/vasnprintf.c: Include float+.h.
36358         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36359         SIZEOF_LDBL or SIZEOF_DBL bytes.
36360         * modules/isnan-nolibm (Files): Add lib/float+.h.
36361         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36362         * modules/isnanl (Files): Add lib/float+.h.
36363         * modules/vasnprintf (Files): Add lib/float+.h.
36364
36365 2007-03-24  Bruno Haible  <bruno@clisp.org>
36366
36367         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36368         include isnanl-nolibm.h.
36369
36370 2007-03-24  Bruno Haible  <bruno@clisp.org>
36371
36372         * tests/test-read-file.c (main): Don't produce spurious output for
36373         expected situations. Make the test fail if it encountered unexpected
36374         results.
36375
36376 2007-03-24  Bruno Haible  <bruno@clisp.org>
36377
36378         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36379         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36380
36381 2007-03-24  Bruno Haible  <bruno@clisp.org>
36382
36383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36384
36385 2007-03-24  Bruno Haible  <bruno@clisp.org>
36386
36387         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36388         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36389
36390         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36391         * modules/utf8-ucs4: Turn into a symbolic link to module
36392         unistr/u8-mbtouc.
36393
36394         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36395         utf8-ucs4-unsafe.
36396         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36397         unistr/u8-mbtouc-unsafe.
36398
36399         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36400         * modules/utf16-ucs4: Turn into a symbolic link to module
36401         unistr/u16-mbtouc.
36402
36403         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36404         utf16-ucs4-unsafe.
36405         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36406         unistr/u16-mbtouc-unsafe.
36407
36408         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36409         * modules/ucs4-utf8: Turn into a symbolic link to module
36410         unistr/u8-ubtomb.
36411
36412         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36413         * modules/ucs4-utf16: Turn into a symbolic link to module
36414         unistr/u16-ubtomb.
36415
36416 2007-03-24  Bruno Haible  <bruno@clisp.org>
36417
36418         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36419         Enable the function only if HAVE_INLINE.
36420         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36421         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36422         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36423         Enable the function only if HAVE_INLINE.
36424         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36425         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36426         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36427         Enable the function only if HAVE_INLINE.
36428         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36429         Enable the function only if HAVE_INLINE.
36430         * modules/utf8-ucs4: Update.
36431         * modules/utf8-ucs4-unsafe: Update.
36432         * modules/utf16-ucs4: Update.
36433         * modules/utf16-ucs4-unsafe: Update.
36434         * modules/ucs4-utf8: Update.
36435         * modules/ucs4-utf16: Update.
36436
36437 2007-03-24  Bruno Haible  <bruno@clisp.org>
36438
36439         * lib/utf8-ucs4.h: Remove file.
36440         * lib/utf8-ucs4-unsafe.h: Remove file.
36441         * lib/utf16-ucs4.h: Remove file.
36442         * lib/utf16-ucs4-unsafe.h: Remove file.
36443         * lib/ucs4-utf8.h: Remove file.
36444         * lib/ucs4-utf16.h: Remove file.
36445         * lib/unistr.h: Include their previous contents.
36446         * m4/utf-ucs4.m4: Remove file.
36447         * m4/ucs4-utf.m4: Remove file.
36448         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36449         (Depends-on): Add unistr/base.
36450         (configure.ac): Remove gl_UTF_UCS4.
36451         (Makefile.am): Update.
36452         (Include): Change to unistr.h.
36453         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36454         (Depends-on): Add unistr/base.
36455         (configure.ac): Remove gl_UTF_UCS4.
36456         (Makefile.am): Update.
36457         (Include): Change to unistr.h.
36458         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36459         (Depends-on): Add unistr/base.
36460         (configure.ac): Remove gl_UTF_UCS4.
36461         (Makefile.am): Update.
36462         (Include): Change to unistr.h.
36463         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36464         (Depends-on): Add unistr/base.
36465         (configure.ac): Remove gl_UTF_UCS4.
36466         (Makefile.am): Update.
36467         (Include): Change to unistr.h.
36468         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36469         (Depends-on): Add unistr/base.
36470         (configure.ac): Remove gl_UCS4_UTF.
36471         (Makefile.am): Update.
36472         (Include): Change to unistr.h.
36473         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36474         (Depends-on): Add unistr/base.
36475         (configure.ac): Remove gl_UCS4_UTF.
36476         (Makefile.am): Update.
36477         (Include): Change to unistr.h.
36478         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36479         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36480         utf8-ucs4-unsafe.h.
36481         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36482         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36483         utf16-ucs4-unsafe.h.
36484         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36485         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36486         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36487         * lib/unistr/u8-strchr.c: Likewise.
36488         * lib/unistr/u8-strrchr.c: Likewise.
36489         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36490         * lib/unistr/u16-strchr.c: Likewise.
36491         * lib/unistr/u16-strrchr.c: Likewise.
36492         * lib/striconveh.c: Update.
36493         * lib/linebreak.c: Update.
36494
36495 2007-03-24  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36498         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36499
36500 2007-03-22  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36503
36504 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36505
36506         * MODULES.html.sh (File system functions): New module write-any-file.
36507         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36508         * m4/write-any-file.m4: New files.
36509
36510 2007-03-23  Eric Blake  <ebb9@byu.net>
36511
36512         * gnulib-tool: Rearrange space-tab sequences, since some editors
36513         like to eat them.
36514
36515 2007-03-23  Eric Blake  <ebb9@byu.net>
36516
36517         * lib/version-etc.c (version_etc_va): Update license wording to
36518         be more concise.  Recommended by Richard Stallman.
36519
36520 2007-03-22  Bruno Haible  <bruno@clisp.org>
36521
36522         * lib/poll.c (MSG_PEEK): New fallback definition.
36523
36524 2007-03-22  Bruno Haible  <bruno@clisp.org>
36525
36526         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36527         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36528         (main): Update.
36529         Fixes a compilation error on BeOS.
36530
36531 2007-03-22  Bruno Haible  <bruno@clisp.org>
36532
36533         * modules/frexpl-tests: New file.
36534         * tests/test-frexpl.c: New file.
36535
36536         * modules/frexpl: New file.
36537         * m4/frexpl.m4: New file.
36538         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36539         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36541         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36542         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36543         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36544
36545 2007-03-22  Bruno Haible  <bruno@clisp.org>
36546
36547         * lib/frexpl.c: Share code with lib/frexp.c.
36548         * modules/mathl (Files): Add lib/frexp.c.
36549         (Depends-on): Add isnanl-nolibm.
36550
36551 2007-03-22  Bruno Haible  <bruno@clisp.org>
36552
36553         * modules/printf-frexp (Files): Add m4/frexp.m4.
36554         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36555         only if the found frexp function actually works.
36556
36557 2007-03-22  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/frexp.c: Remove older implementation that uses divisions.
36560
36561 2007-03-21  Bruno Haible  <bruno@clisp.org>
36562
36563         * modules/frexp-tests: New file.
36564         * tests/test-frexp.c: New file.
36565
36566         * modules/frexp: New file.
36567         * lib/frexp.c: New file.
36568         * m4/frexp.m4: New file.
36569         * lib/math_.h (frexp): New declaration.
36570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36571         REPLACE_FREXP.
36572         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36573
36574 2007-03-21  Bruno Haible  <bruno@clisp.org>
36575
36576         * modules/isnanl-tests: New file.
36577         * tests/test-isnanl.c: New file.
36578
36579         * modules/isnanl: New file.
36580         * lib/isnanl.h: New file.
36581         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36582         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36583         gl_FUNC_ISNANL_WORKS.
36584         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36585         New macros.
36586
36587 2007-03-21  Bruno Haible  <bruno@clisp.org>
36588
36589         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36590         lib/isnanl.h.
36591         (Include): Update.
36592         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36593         * lib/vasnprintf.c: Update.
36594         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36595         tests/test-isnanl.h, remove tests/test-isnanl.c.
36596         (Makefile.am): Update.
36597         * tests/test-isnanl-nolibm.c: New file.
36598         * tests/test-isnanl.h: New file.
36599         * tests/test-isnanl.c: Remove file.
36600
36601 2007-03-21  Jim Meyering  <jim@meyering.net>
36602
36603         When trying to open ".", treat ESTALE like EACCES.
36604         * lib/savewd.c (savewd_save): Resort to forking not just upon
36605         failure with EACCES, but also when errno is ESTALE.
36606
36607 2007-03-20  Bruno Haible  <bruno@clisp.org>
36608
36609         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36610         Needed on AIX 5.1. Reported by Matthew Woehlke.
36611
36612 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36613
36614         Suggestions by Bruno Haible:
36615         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36616         our own.
36617         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36618         * modules/acl (Depends-on): Add gettext.
36619
36620 2007-03-19  Bruno Haible  <bruno@clisp.org>
36621
36622         * modules/iconvme: Remove file.
36623         * lib/iconvme.h: Remove file.
36624         * lib/iconvme.c: Remove file.
36625         * m4/iconvme.m4: Remove file.
36626
36627 2007-03-19  Bruno Haible  <bruno@clisp.org>
36628
36629         * doc/relocatable-maint.texi: Break long shell script line.
36630         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36631
36632 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36633
36634         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36635         handle file_has_acl.
36636         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36637         * lib/acl.c: Move header inclusions and related macro defns into
36638         lib/acl-internal.h.
36639         (S_ISLNK): Remove defn, since that's now done for us.
36640         (file_has_acl): Move to lib/file-has-acl.c.
36641         Call acl_trivial if available.  This is the crucial part of the fix.
36642         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36643         shared within the library.  Rewrite a bit, partly to make it compatible
36644         with the GNU coding style.
36645         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36646         Remove unnecessary double-quotes.
36647         Don't test for acl_to_text; the build will catch that.
36648         Replace acl_entries if it doesn't exist and it is needed.
36649         Check for -lsec and acl_trivial (as used on Solaris 10).
36650         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36651         lib/file-has-acl.c.
36652         (Depends-on): Add sys_stat, for S_ISLNK.
36653
36654 2007-03-19  Ben Pfaff  <blp@gnu.org>
36655
36656         * doc/gnulib.texi: Fix typos.
36657         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36658
36659 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36660
36661         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36662         If size is zero here, buf must be zero.
36663
36664 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36665
36666         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36667         <bruno@clisp.org>.
36668
36669 2007-03-18  Bruno Haible  <bruno@clisp.org>
36670
36671         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36672         Suggested by Eric Blake.
36673
36674 2007-03-18  Ben Pfaff  <blp@gnu.org>
36675
36676         * doc/relocatable.texi: Recommend using as prefix a directory
36677         that does not exist and will never be created.  Based on
36678         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36679         and others.
36680
36681 2007-03-17  Bruno Haible  <bruno@clisp.org>
36682
36683         * lib/fchownat.c: Include lchown.h.
36684
36685 2007-03-17  Bruno Haible  <bruno@clisp.org>
36686
36687         Fix endless loop when the given allocated size was > INT_MAX.
36688         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36689         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36690         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36691         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36692         * lib/sprintf.c (sprintf): Likewise.
36693
36694 2007-03-17  Bruno Haible  <bruno@clisp.org>
36695
36696         * tests/test-argp-2.sh (func_compare): Output a context diff.
36697
36698 2007-03-17  Bruno Haible  <bruno@clisp.org>
36699
36700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36701         locale's decimal-point character.
36702
36703 2007-03-17  Bruno Haible  <bruno@clisp.org>
36704
36705         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36706         before comparing it. Needed because on some platforms (e.g. x86) a
36707         'long double' occupies less bytes than sizeof (long double).
36708
36709 2007-03-17  Bruno Haible  <bruno@clisp.org>
36710
36711         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36712         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36713         * tests/test-getaddrinfo.c (simple): Likewise.
36714         * tests/test-read-file.c (main): Likewise.
36715
36716 2007-03-17  Bruno Haible  <bruno@clisp.org>
36717
36718         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36719
36720 2007-03-17  Bruno Haible  <bruno@clisp.org>
36721
36722         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36723         unused variable.
36724
36725 2007-03-17  Bruno Haible  <bruno@clisp.org>
36726
36727         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36728         * tests/test-c-strncasecmp.c: Likewise.
36729
36730 2007-03-17  Bruno Haible  <bruno@clisp.org>
36731
36732         * modules/stdlib (Depends-on): Add unistd.
36733         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36734         Needed for MacOS X 10.3.
36735
36736 2007-03-17  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36739
36740 2007-03-17  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36743
36744 2007-03-17  Bruno Haible  <bruno@clisp.org>
36745
36746         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36747         to reflect files copied from gnulib (with or without modifications).
36748         Suggested by Jim Meyering.
36749
36750 2007-03-17  Eric Blake  <ebb9@byu.net>
36751
36752         * NEWS: Document stdlib change from 2007-02-18.
36753
36754 2007-03-17  Jim Meyering  <jim@meyering.net>
36755
36756         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36757         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36758         someone uses a name containing shell meta-characters.
36759         Reported by Alfred M. Szmidt.
36760
36761         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36762
36763 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36764
36765         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36766         and copy gettext configuration files only if configure.ac contains
36767         a use of AM_GNU_GETTEXT_VERSION.
36768
36769 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36770
36771         * build-aux/bootstrap (gnulib_name): New variable.
36772         (gnulib_tool_options): Use it.
36773
36774 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36775
36776         * tests/test-des.c: Use new namespace.
36777
36778 2007-03-15  Bruno Haible  <bruno@clisp.org>
36779
36780         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36781         Reported by James Youngman <jay@gnu.org>.
36782
36783 2007-03-15  Bruno Haible  <bruno@clisp.org>
36784
36785         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36786         declared prototype. Needed with cc on OSF/1 5.1.
36787
36788 2007-03-15  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36791         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36792         (struct gl_list_implementation): Add dispose_fn argument to the
36793         'create_empty', 'create' methods.
36794         (struct gl_list_impl_base): Add field 'dispose_fn'.
36795         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36796         argument.
36797         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36798         dispose_fn argument.
36799         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36800         dispose_fn on the dropped values.
36801         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36802         dispose_fn argument.
36803         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36804         dropped values.
36805         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36806         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36807         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36808         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36809         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36810         argument.
36811         (gl_tree_list_free): Call dispose_fn on the dropped values.
36812         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36813         the dropped values.
36814         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36815         Add dispose_fn argument.
36816         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36817         Call dispose_fn on the dropped values.
36818         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36819         Add dispose_fn argument.
36820         (gl_sublist_create): Initialize the 'dispose_fn' field.
36821         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36822         * tests/test-array_list.c (main): Update.
36823         * tests/test-carray_list.c (main): Update.
36824         * tests/test-avltree_list.c (main): Update.
36825         * tests/test-rbtree_list.c (main): Update.
36826         * tests/test-avltreehash_list.c (main): Update.
36827         * tests/test-rbtreehash_list.c (main): Update.
36828         * tests/test-linked_list.c (main): Update.
36829         * tests/test-linkedhash_list.c (main): Update.
36830         * tests/test-array_oset.c (main): Update.
36831
36832 2007-03-15  Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36835         (gl_oset_create_empty): Add dispose_fn argument.
36836         (struct gl_oset_implementation): Add dispose_fn argument to
36837         'create_empty' method.
36838         (struct gl_oset_impl_base): Add dispose_fn field.
36839         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36840         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36841         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36842         values.
36843         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36844         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36845         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36846         dropped value.
36847         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36848         dropped value.
36849         * tests/test-array_oset.c (main): Update.
36850         * tests/test-avltree_oset.c (main): Update.
36851         * tests/test-rbtree_oset.c (main): Update.
36852         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36853
36854 2007-03-13  Bruno Haible  <bruno@clisp.org>
36855
36856         * tests/test-stdbool.c (i): Update after last patch.
36857
36858 2007-03-12  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36861         the iswprint macro. Needed on Solaris 2.5.1.
36862
36863 2007-03-12  Bruno Haible  <bruno@clisp.org>
36864
36865         * tests/test-printf-frexp.c (main): Declare x as volatile.
36866
36867 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36868
36869         * doc/gnulib.texi (Build robot for gnulib): New section.
36870
36871 2007-03-12  Jim Meyering  <jim@meyering.net>
36872
36873         * build-aux/bootstrap: New file.
36874         * build-aux/bootstrap.conf: New file, from coreutils.
36875
36876 2007-03-11  Bruno Haible  <bruno@clisp.org>
36877
36878         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36879
36880 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36881
36882         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36883         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36884         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36885
36886 2007-03-11  Bruno Haible  <bruno@clisp.org>
36887
36888         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36889         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36890
36891 2007-03-11  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36894         formula. Needed for SunPRO C 5.0.
36895
36896 2007-03-11  Bruno Haible  <bruno@clisp.org>
36897
36898         * modules/long-options (Depends-on): Add getopt.
36899
36900 2007-03-11  Bruno Haible  <bruno@clisp.org>
36901
36902         * modules/modechange (Depends-on): Add stdbool.
36903
36904 2007-03-11  Bruno Haible  <bruno@clisp.org>
36905
36906         * modules/i-ring (Depends-on): Add stdbool.
36907
36908 2007-03-11  Bruno Haible  <bruno@clisp.org>
36909
36910         * modules/gc-des (Depends-on): Add stdbool.
36911
36912 2007-03-11  Bruno Haible  <bruno@clisp.org>
36913
36914         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36915
36916 2007-03-11  Bruno Haible  <bruno@clisp.org>
36917
36918         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36919
36920 2007-03-11  Bruno Haible  <bruno@clisp.org>
36921
36922         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36923
36924 2007-03-11  Bruno Haible  <bruno@clisp.org>
36925
36926         * lib/vasnprintf.c (sprintf): Undefine.
36927
36928 2007-03-11  Bruno Haible  <bruno@clisp.org>
36929
36930         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36931         initializers in SunPRO C and Compaq C compilers.
36932
36933 2007-03-11  Bruno Haible  <bruno@clisp.org>
36934
36935         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36936         decrementing code ANSI C compliant.
36937
36938 2007-03-11  Bruno Haible  <bruno@clisp.org>
36939
36940         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36941         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36942
36943 2007-03-11  Bruno Haible  <bruno@clisp.org>
36944
36945         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36946         <stdbool.h> substitute doesn't pass.
36947
36948 2007-03-11  Bruno Haible  <bruno@clisp.org>
36949
36950         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36951
36952 2007-03-11  Bruno Haible  <bruno@clisp.org>
36953
36954         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36955         script, for submission to autobuild.josefsson.org.
36956
36957 2007-03-10  Bruno Haible  <bruno@clisp.org>
36958
36959         * modules/canonicalize-lgpl-tests: New file.
36960         * tests/test-canonicalize-lgpl.sh: New file.
36961         * tests/test-canonicalize-lgpl.c: New file.
36962
36963         * modules/c-strcase-tests: New file.
36964         * tests/test-c-strcase.sh: New file.
36965         * tests/test-c-strcasecmp.c: New file.
36966         * tests/test-c-strncasecmp.c: New file.
36967
36968         * modules/atexit-tests: New file.
36969         * tests/test-atexit.sh: New file.
36970         * tests/test-atexit.c: New file.
36971
36972 2007-03-10  Bruno Haible  <bruno@clisp.org>
36973
36974         * tests/test-binary-io.sh: Use temporary filenames that are not so
36975         likely to clash with those of other tests (in a parallel make).
36976         * tests/test-binary-io.c: Likewise.
36977
36978 2007-03-10  Bruno Haible  <bruno@clisp.org>
36979
36980         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36981         fallback; use #error instead.
36982         Suggested by Simon Josefsson.
36983
36984 2007-03-10  Bruno Haible  <bruno@clisp.org>
36985
36986         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36987         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36988         first and the last.
36989
36990 2007-03-10  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36993
36994 2007-03-10  Bruno Haible  <bruno@clisp.org>
36995
36996         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36997         "make distcheck".
36998         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36999         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37000         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37001
37002 2007-03-10  Bruno Haible  <bruno@clisp.org>
37003
37004         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37005         variable.
37006         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37007         variable.
37008
37009 2007-03-09  Eric Blake  <ebb9@byu.net>
37010         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37011
37012         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37013         types are not being provided by gnulib.
37014         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37015         types are supported.
37016
37017 2007-03-10  Bruno Haible  <bruno@clisp.org>
37018
37019         * lib/stdio_.h (__attribute__): New macro.
37020         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37021         vsprintf): Specify __attribute__ __format__ for GCC.
37022         Suggested by Eric Blake.
37023
37024 2007-03-09  Bruno Haible  <bruno@clisp.org>
37025
37026         * modules/printf-posix-tests: New file.
37027         * tests/test-printf-posix.sh: New file.
37028         * tests/test-printf-posix.c: New file.
37029
37030         * modules/printf-posix: New file.
37031         * lib/printf.c: New file.
37032         * m4/printf-posix-rpl.m4: New file.
37033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37034         REPLACE_PRINTF.
37035         * lib/stdio_.h (printf): New declaration.
37036         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37037         ____strfmon____): New macros.
37038         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37039         REPLACE_PRINTF.
37040
37041 2007-03-09  Bruno Haible  <bruno@clisp.org>
37042
37043         * tests/test-vasnprintf-posix2.sh: New file.
37044         * tests/test-vasnprintf-posix2.c: New file.
37045         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37046         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37047         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37048
37049         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37050         a locale dependent decimal point, rather than always '.'.
37051
37052 2007-03-09  Eric Blake  <ebb9@byu.net>
37053
37054         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37055         spite of platforms like Tandem/NSK that define it to -1.
37056
37057 2007-03-08  Bruno Haible  <bruno@clisp.org>
37058
37059         * modules/vprintf-posix-tests: New file.
37060         * tests/test-vprintf-posix.sh: New file.
37061         * tests/test-vprintf-posix.c: New file.
37062         * tests/test-printf-posix.h: New file.
37063
37064         * modules/vprintf-posix: New file.
37065         * lib/vprintf.c: New file.
37066         * m4/vprintf-posix.m4: New file.
37067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37068         REPLACE_VPRINTF.
37069         * lib/stdio_.h (vprintf): New declaration.
37070         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37071         REPLACE_VPRINTF.
37072
37073 2007-03-08  Bruno Haible  <bruno@clisp.org>
37074
37075         * modules/fprintf-posix-tests: New file.
37076         * tests/test-fprintf-posix.sh: New file.
37077         * tests/test-fprintf-posix.c: New file.
37078
37079         * modules/fprintf-posix: New file.
37080         * lib/fprintf.c: New file.
37081         * m4/fprintf-posix.m4: New file.
37082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37083         REPLACE_FPRINTF.
37084         * lib/stdio_.h (fprintf): New declaration.
37085         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37086         REPLACE_FPRINTF.
37087
37088 2007-03-08  Bruno Haible  <bruno@clisp.org>
37089
37090         * modules/vfprintf-posix-tests: New file.
37091         * tests/test-vfprintf-posix.sh: New file.
37092         * tests/test-vfprintf-posix.c: New file.
37093         * tests/test-fprintf-posix.h: New file.
37094         * tests/test-fprintf-posix.out: New file.
37095
37096         * modules/vfprintf-posix: New file.
37097         * lib/vfprintf.c: New file.
37098         * m4/vfprintf-posix.m4: New file.
37099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37100         REPLACE_VFPRINTF.
37101         * lib/stdio_.h (vfprintf): New declaration.
37102         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37103         REPLACE_VFPRINTF.
37104
37105 2007-03-08  Bruno Haible  <bruno@clisp.org>
37106
37107         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37108
37109 2007-03-08  Bruno Haible  <bruno@clisp.org>
37110
37111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37112         instead of 'expr' invocations.
37113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37118         Suggested by Paul Eggert.
37119
37120 2007-03-08  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/fseterr-tests: New file.
37123         * tests/test-fseterr.c: New file.
37124
37125         * modules/fseterr: New file.
37126         * lib/fseterr.h: New file.
37127         * lib/fseterr.c: New file.
37128
37129 2007-03-08  Bruno Haible  <bruno@clisp.org>
37130
37131         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37132         * lib/getopt_.h: Likewise.
37133         * lib/mbswidth.h: Likewise.
37134         * lib/setenv.h: Likewise.
37135         * lib/vasnprintf.h: Likewise.
37136         * lib/vasprintf.h: Likewise.
37137         * lib/verror.h: Likewise.
37138         * lib/xsetenv.h: Likewise.
37139         * lib/xvasprintf.h: Likewise.
37140
37141 2007-03-08  Jim Meyering  <jim@meyering.net>
37142
37143         * users.txt: Add parted.
37144
37145         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37146
37147 2007-03-07  Bruno Haible  <bruno@clisp.org>
37148
37149         * m4/printf.m4: Make the shell script snippets copy&pastable.
37150
37151 2007-03-02  Bruno Haible  <bruno@clisp.org>
37152
37153         * lib/netinet_in_.h: New file.
37154         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37155         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37156         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37157         (Depends-on): Add absolute-header.
37158         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37159         into netinet/in.h.
37160
37161 2007-03-03  Bruno Haible  <bruno@clisp.org>
37162
37163         * lib/sys_select_.h: New file.
37164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37165         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37166         * modules/sys_select (Files): Add lib/sys_select_.h.
37167         (Depends-on): Add absolute-header.
37168         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37169         into sys/select.h.
37170
37171 2007-03-02  Bruno Haible  <bruno@clisp.org>
37172
37173         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37174         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37175         values.
37176         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37177         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37178         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37179         * modules/sys_socket (Depends-on): Add absolute-header.
37180         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37181         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37182         (Include): Remove requirement of inclusion of <sys/types.h>.
37183
37184 2007-03-02  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/byteswap_.h (bswap_32): Fix formula.
37187
37188 2007-03-06  Bruno Haible  <bruno@clisp.org>
37189
37190         * modules/sprintf-posix-tests: New file.
37191         * tests/test-sprintf-posix.c: New file.
37192
37193         * modules/sprintf-posix: New file.
37194         * lib/sprintf.c: New file.
37195         * m4/sprintf-posix.m4: New file.
37196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37197         REPLACE_SPRINTF.
37198         * lib/stdio_.h (sprintf): New declaration.
37199         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37200         REPLACE_SPRINTF.
37201
37202 2007-03-06  Bruno Haible  <bruno@clisp.org>
37203
37204         * modules/vsprintf-posix-tests: New file.
37205         * tests/test-vsprintf-posix.c: New file.
37206         * tests/test-sprintf-posix.h: New file.
37207
37208         * modules/vsprintf-posix: New file.
37209         * lib/vsprintf.c: New file.
37210         * m4/vsprintf-posix.m4: New file.
37211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37212         REPLACE_VSPRINTF.
37213         * lib/stdio_.h (vsprintf): New declaration.
37214         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37215         REPLACE_VSPRINTF.
37216
37217 2007-03-06  Bruno Haible  <bruno@clisp.org>
37218
37219         * modules/vsnprintf (Depend-on): Remove minmax.
37220
37221 2007-03-06  Bruno Haible  <bruno@clisp.org>
37222
37223         * modules/snprintf-posix-tests: New file.
37224         * tests/test-snprintf-posix.c: New file.
37225
37226         * modules/snprintf-posix: New file.
37227         * m4/snprintf-posix.m4: New file.
37228         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37229         gl_FUNC_SNPRINTF.
37230         (gl_FUNC_SNPRINTF): Invoke it.
37231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37232         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37233         is set.
37234         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37235
37236 2007-03-06  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/vsnprintf-posix-tests: New file.
37239         * tests/test-vsnprintf-posix.c: New file.
37240         * tests/test-snprintf-posix.h: New file.
37241
37242         * modules/vsnprintf-posix: New file.
37243         * m4/vsnprintf-posix.m4: New file.
37244         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37245         gl_FUNC_VSNPRINTF.
37246         (gl_FUNC_VSNPRINTF): Invoke it.
37247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37248         * lib/stdio_.h (vsnprintf): Define as a replacement if
37249         REPLACE_VSNPRINTF is set.
37250         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37251
37252 2007-03-06  Bruno Haible  <bruno@clisp.org>
37253
37254         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37256
37257 2007-03-06  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37260         (asinl): Declare also if HAVE_DECL_ASINL is set.
37261         (atanl): Declare also if HAVE_DECL_ATANL is set.
37262         (ceill): Declare also if HAVE_DECL_CEILL is set.
37263         (cosl): Declare also if HAVE_DECL_COSL is set.
37264         (expl): Declare also if HAVE_DECL_EXPL is set.
37265         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37266         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37267         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37268         (logl): Declare also if HAVE_DECL_LOGL is set.
37269         (sinl): Declare also if HAVE_DECL_SINL is set.
37270         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37271         (tanl): Declare also if HAVE_DECL_TANL is set.
37272         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37275         declaration of frexpl, ldexpl.
37276         * modules/printf-frexpl (Depends-on): Add math.
37277         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37278
37279 2007-03-05  Bruno Haible  <bruno@clisp.org>
37280
37281         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37282         frexpl and ldexpl are declared.
37283         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37284
37285 2007-03-05  Bruno Haible  <bruno@clisp.org>
37286
37287         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37288         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37289
37290 2007-03-05  Bruno Haible  <bruno@clisp.org>
37291
37292         * lib/stdio_.h: Include <stddef.h>.
37293
37294 2007-03-05  Bruno Haible  <bruno@clisp.org>
37295
37296         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37297
37298 2007-03-05  Bruno Haible  <bruno@clisp.org>
37299
37300         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37301         NetBSD 4, from Ralf Wildenhues.
37302
37303 2007-03-04  Bruno Haible  <bruno@clisp.org>
37304
37305         * lib/vasprintf.h: Update #if logic for the case when the functions
37306         exist but are overridden.
37307
37308 2007-03-04  Bruno Haible  <bruno@clisp.org>
37309
37310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37311         implementations: glibc-2.4 and MacOS X 10.3.
37312         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37313         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37314         * tests/test-vasprintf-posix.c (test_function): Likewise.
37315
37316 2007-03-04  Bruno Haible  <bruno@clisp.org>
37317
37318         * modules/vasprintf-posix-tests: New file.
37319         * tests/test-vasprintf-posix.c: New file.
37320
37321         * modules/vasprintf-posix: New file.
37322         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37323         defined.
37324         * m4/vasprintf-posix.m4: New file.
37325         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37326         gl_FUNC_VASPRINTF.
37327         (gl_FUNC_VASPRINTF): Invoke it.
37328         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37329         here.
37330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37331
37332 2007-03-04  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37335         REPLACE_GETTIMEOFDAY.
37336         * modules/sys_time (Makefile.am): Likewise.
37337         * m4/sys_time_h.m4: Likewise.
37338         * m4/gettimeofday.m4: Likewise.
37339
37340 2007-03-04  Bruno Haible  <bruno@clisp.org>
37341
37342         * modules/vasnprintf-posix-tests: New file.
37343         * tests/test-vasnprintf-posix.c: New file.
37344
37345         * modules/vasnprintf-posix: New file.
37346         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37347         printf-frexpl.h.
37348         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37349         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37350         REPLACE_VASNPRINTF is defined.
37351         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37352         gl_FUNC_VASNPRINTF.
37353         (gl_FUNC_VASNPRINTF): Invoke it.
37354         * m4/vasnprintf-posix.m4: New file.
37355         * m4/printf.m4: New file.
37356
37357 2007-03-04  Bruno Haible  <bruno@clisp.org>
37358
37359         Compile progreloc.c only if --enable-relocatable is specified.
37360         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37361         if --enable-relocatable was specified.
37362         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37363         lib_SOURCES.
37364
37365 2007-03-04  Jim Meyering  <jim@meyering.net>
37366
37367         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37368         Use it consistently, rather than enumerating errno constants.
37369
37370 2007-03-04  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/xvasprintf-tests: New file.
37373         * tests/test-xvasprintf.c: New file.
37374
37375         * modules/vasprintf-tests: New file.
37376         * tests/test-vasprintf.c: New file.
37377
37378         * modules/vasnprintf-tests: New file.
37379         * tests/test-vasnprintf.c: New file.
37380
37381         * modules/vsnprintf-tests: New file.
37382         * tests/test-vsnprintf.c: New file.
37383
37384         * modules/snprintf-tests: New file.
37385         * tests/test-snprintf.c: New file.
37386
37387 2007-03-04  Bruno Haible  <bruno@clisp.org>
37388
37389         Compile relocatable.c only if --enable-relocatable is specified.
37390         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37391         gl_RELOCATABLE_LIBRARY.
37392         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37393         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37394         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37395         gl_RELOCATABLE_LIBRARY.
37396         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37397         (Makefile.am): Remove lib_SOURCES.
37398         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37399         gl_RELOCATABLE_LIBRARY.
37400         (Makefile.am): Remove lib_SOURCES.
37401         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37402         always.
37403         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37404         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37405
37406 2007-03-04  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/argmatch-tests: New file.
37409         * tests/test-argmatch.c: New file.
37410
37411         * tests/test-allocsa.c (main): Halve the number of loop runs.
37412
37413         * modules/alloca-opt-tests: New file.
37414         * tests/test-alloca-opt.c: New file.
37415
37416 2007-03-04  Jim Meyering  <jim@meyering.net>
37417
37418         Work around difference between Linux ACLs and Solaris 10 ZFS.
37419         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37420         for EINVAL.
37421
37422 2007-03-03  Bruno Haible  <bruno@clisp.org>
37423
37424         * modules/relocatable-prog (Depends-on): Add back progreloc's
37425         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37426
37427 2007-03-03  Bruno Haible  <bruno@clisp.org>
37428
37429         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37430         * modules/relocatable-lib: New file.
37431
37432 2007-03-03  Bruno Haible  <bruno@clisp.org>
37433
37434         * modules/relocatable-prog: Renamed from modules/relocatable.
37435         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37436
37437 2007-03-03  Bruno Haible  <bruno@clisp.org>
37438
37439         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37440         m4/relocatable-lib.m4.
37441         (Depends-on): Remove 'relocatable'.
37442         (configure.ac): Add gl_RELOCATABLE_NOP.
37443
37444 2007-03-03  Bruno Haible  <bruno@clisp.org>
37445
37446         * modules/relocatable-prog-wrapper: New file.
37447         * modules/relocatable (Depends-on): Add it. Remove all other
37448         dependencies except progname.
37449         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37450
37451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37452         (gl_FUNC_STRERROR): Nop.
37453         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37454
37455         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37456         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37457
37458         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37459         (gl_FUNC_READLINK): Update.
37460
37461         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37462
37463 2007-03-03  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37466         * modules/xreadlink (Depends-on): Add unistd.
37467         * modules/xreadlink-with-size (Depends-on): Likewise.
37468
37469 2007-03-03  Bruno Haible  <bruno@clisp.org>
37470
37471         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37472         extracted from gt_FUNC_SETENV.
37473         (gt_FUNC_SETENV): Remove macro.
37474         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37475         remove gt_FUNC_SETENV.
37476
37477 2007-03-03  Bruno Haible  <bruno@clisp.org>
37478
37479         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37480         ENABLE_RELOCATABLE here.
37481         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37482
37483 2007-03-03  Bruno Haible  <bruno@clisp.org>
37484
37485         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37486         * tests/test-rbtreehash_list.c: Include progname.h.
37487         (main): Call set_program_name.
37488
37489         * modules/rbtree-oset-tests (Depends-on): Add progname.
37490         * tests/test-rbtree_oset.c: Include progname.h.
37491         (main): Call set_program_name.
37492
37493         * modules/rbtree-list-tests (Depends-on): Add progname.
37494         * tests/test-rbtree_list.c: Include progname.h.
37495         (main): Call set_program_name.
37496
37497         * modules/linked-list-tests (Depends-on): Add progname.
37498         * tests/test-linked_list.c: Include progname.h.
37499         (main): Call set_program_name.
37500
37501 2007-03-03  Bruno Haible  <bruno@clisp.org>
37502
37503         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37504         All uses of __restrict changed to _Restrict_.
37505         * lib/glob_.h (__restrict): Remove macro.
37506
37507 2007-03-02  Bruno Haible  <bruno@clisp.org>
37508
37509         * modules/gettext (configure.ac): Require gettext infrastructure
37510         from version 0.16.1.
37511
37512 2007-03-02  Bruno Haible  <bruno@clisp.org>
37513
37514         * modules/linkedhash-list-tests (Depends-on): Add progname.
37515         * tests/test-linkedhash_list.c: Include progname.h.
37516         (main): Call set_program_name.
37517
37518         * modules/carray-list-tests (Depends-on): Add progname.
37519         * tests/test-carray_list.c: Include progname.h.
37520         (main): Call set_program_name.
37521
37522         * modules/avltreehash-list-tests (Depends-on): Add progname.
37523         * tests/test-avltreehash_list.c: Include progname.h.
37524         (main): Call set_program_name.
37525
37526         * modules/avltree-oset-tests (Depends-on): Add progname.
37527         * tests/test-avltree_oset.c: Include progname.h.
37528         (main): Call set_program_name.
37529
37530         * modules/avltree-list-tests (Depends-on): Add progname.
37531         * tests/test-avltree_list.c: Include progname.h.
37532         (main): Call set_program_name.
37533
37534         * modules/array-oset-tests (Depends-on): Add progname.
37535         * tests/test-array_oset.c: Include progname.h.
37536         (main): Call set_program_name.
37537
37538         * modules/array-list-tests (Depends-on): Add progname.
37539         * tests/test-array_list.c: Include progname.h.
37540         (main): Call set_program_name.
37541
37542         * modules/argp-tests (Depends-on): Add progname.
37543         * tests/test-argp.c: Include argp.h first. Include progname.h.
37544         (main): Call set_program_name.
37545
37546 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37547
37548         * doc/gnulib-tool.texi (Initial import): Reword description of
37549         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37550         limited effect even if defined after the first system include.
37551
37552 2007-03-01  Bruno Haible  <bruno@clisp.org>
37553
37554         * build-aux/config.libpath: Update to libtool-1.5.22.
37555         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37556
37557 2007-03-01  Bruno Haible  <bruno@clisp.org>
37558
37559         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37560         foo_CFLAGS.
37561         Reported by Ralf Wildenhues.
37562
37563 2007-03-01  Bruno Haible  <bruno@clisp.org>
37564
37565         * build-aux/install-reloc: Remove object files left over by some
37566         compilers.
37567         Reported by Ralf Wildenhues.
37568
37569 2007-03-01  Bruno Haible  <bruno@clisp.org>
37570
37571         * build-aux/install-reloc: Break long lines.
37572
37573 2007-03-01  Bruno Haible  <bruno@clisp.org>
37574
37575         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37576         Reported by Ralf Wildenhues.
37577
37578 2007-03-01  Bruno Haible  <bruno@clisp.org>
37579
37580         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37581         include ordering constraints.
37582
37583 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37584
37585         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37587         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37588         as another example.
37589         * lib/time_.h: Fix misspelling.
37590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37591         Require gl_HEADER_TIME_H_DEFAULTS.
37592         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37593         * m4/time_r.m4 (gl_TIME_R): Likewise.
37594         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37595
37596 2007-03-01  Bruno Haible  <bruno@clisp.org>
37597
37598         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37599         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37600
37601 2007-03-01  Jim Meyering  <jim@meyering.net>
37602
37603         * modules/xreadlink (Maintainer): Add my name.
37604         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37605
37606 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37607             Bruno Haible  <bruno@clisp.org>
37608
37609         * build-aux/install-reloc: Compile also c-ctype.c.
37610         * build-aux/relocatable.sh.in: New file.
37611         * doc/relocatable.texi: New file.
37612         * doc/relocatable-maint.texi: New file.
37613         * doc/gnulib.texi: Include relocatable-maint.texi.
37614         * lib/progreloc.c: Include unistd.h unconditionally.
37615         * lib/relocwrapper.c: Include unistd.h unconditionally.
37616         Include c-ctype.h.
37617         (add_dotbin): Use c_tolower.
37618         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37619         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37620         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37621         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37622         to m4/relocatable-lib.m4.
37623         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37624         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37625         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37626         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37627         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37628         * modules/relocatable: New file.
37629         * modules/relocatable-lib: New file.
37630         * modules/relocatable-script: New file.
37631
37632 2007-02-28  Bruno Haible  <bruno@clisp.org>
37633
37634         Import --enable-relocatable infrastructure.
37635         * build-aux/config.libpath: New file, from GNU gettext.
37636         * build-aux/install-reloc: New file, from GNU gettext.
37637         * build-aux/reloc-ldflags: New file, from GNU gettext.
37638         * lib/relocatable.h: New file, from GNU gettext.
37639         * lib/relocatable.c: New file, from GNU gettext.
37640         * lib/relocwrapper.c: New file, from GNU gettext.
37641         * m4/relocatable.m4: New file, from GNU gettext.
37642
37643 2007-02-28  Bruno Haible  <bruno@clisp.org>
37644
37645         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37646
37647         * modules/xreadlink: New file, from GNU gettext with modifications.
37648         * lib/xreadlink.c: New file, from GNU gettext.
37649         * lib/xreadlink.h: Add comments.
37650         (xreadlink): New declaration.
37651
37652         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37653         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37654         lib/xreadlink-with-size.c.
37655         (configure.ac): Remove gl_XREADLINK invocation.
37656         (Makefile.am): Augment lib_SOURCES.
37657         * m4/xreadlink.m4: Remove file.
37658         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37659         (xreadlink_with_size): Renamed from xreadink.
37660         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37661         * modules/canonicalize (Depends-on): Replace xreadlink with
37662         xreadlink-with-size.
37663         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37664
37665 2007-02-25  Jim Meyering  <jim@meyering.net>
37666
37667         * build-aux/announce-gen: When complaining about excess arguments,
37668         list them.
37669
37670 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37671
37672         * README: Document signed integer overflow situation more
37673         accurately.
37674
37675 2007-02-25  Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37678         'a' or 'A' conversion.
37679
37680 2007-02-25  Bruno Haible  <bruno@clisp.org>
37681
37682         * modules/filename: Renamed from modules/pathname.
37683         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37684         lib/concatpath.c with lib/concat-filename.c.
37685         (Makefile.am): Update.
37686         (Include): Replace pathname.h with filename.h.
37687         * lib/filename.h: Renamed from lib/pathname.h.
37688         (concatenated_filename): Renamed from concatenated_pathname.
37689         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37690         (concatenated_filename): Renamed from concatenated_pathname.
37691         * lib/findprog.c: Include filename.h instead of pathname.h.
37692         (find_in_path): Update.
37693         * lib/javacomp.c: Include filename.h instead of pathname.h.
37694         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37695         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37696         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37697         is_oldgcj_14_13_usable, is_javac_usable): Update.
37698         * lib/javaexec.c: Include filename.h instead of pathname.h.
37699         (execute_java_class): Update.
37700         * modules/findprog: Update.
37701         * modules/javacomp: Update.
37702         * modules/javaexec: Update.
37703         * MODULES.html.sh (File system functions): Add 'filename', remove
37704         'pathname'.
37705
37706 2007-02-25  Bruno Haible  <bruno@clisp.org>
37707
37708         * modules/printf-frexpl-tests: New file.
37709         * tests/test-printf-frexpl.c: New file.
37710
37711         * modules/printf-frexpl: New file.
37712         * lib/printf-frexpl.h: New file.
37713         * lib/printf-frexpl.c: New file.
37714         * m4/printf-frexpl.m4: New file.
37715
37716 2007-02-25  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/printf-frexp-tests: New file.
37719         * tests/test-printf-frexp.c: New file.
37720
37721         * modules/printf-frexp: New file.
37722         * lib/printf-frexp.h: New file.
37723         * lib/printf-frexp.c: New file.
37724         * m4/printf-frexp.m4: New file.
37725
37726 2007-02-25  Bruno Haible  <bruno@clisp.org>
37727
37728         Assume automake >= 1.10 for the tests.
37729         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37730         * modules/arctwo-tests: Likewise.
37731         * modules/argp-tests: Likewise.
37732         * modules/avltree-list-tests: Likewise.
37733         * modules/avltree-oset-tests: Likewise.
37734         * modules/avltreehash-list-tests: Likewise.
37735         * modules/carray-list-tests: Likewise.
37736         * modules/crc-tests: Likewise.
37737         * modules/des-tests: Likewise.
37738         * modules/gc-arcfour-tests: Likewise.
37739         * modules/gc-arctwo-tests: Likewise.
37740         * modules/gc-des-tests: Likewise.
37741         * modules/gc-hmac-md5-tests: Likewise.
37742         * modules/gc-hmac-sha1-tests: Likewise.
37743         * modules/gc-md2-tests: Likewise.
37744         * modules/gc-md4-tests: Likewise.
37745         * modules/gc-md5-tests: Likewise.
37746         * modules/gc-pbkdf2-sha1-tests: Likewise.
37747         * modules/gc-rijndael-tests: Likewise.
37748         * modules/gc-sha1-tests: Likewise.
37749         * modules/gc-tests: Likewise.
37750         * modules/getaddrinfo-tests: Likewise.
37751         * modules/hmac-md5-tests: Likewise.
37752         * modules/hmac-sha1-tests: Likewise.
37753         * modules/linked-list-tests: Likewise.
37754         * modules/linkedhash-list-tests: Likewise.
37755         * modules/lock-tests: Likewise.
37756         * modules/md2-tests: Likewise.
37757         * modules/md4-tests: Likewise.
37758         * modules/md5-tests: Likewise.
37759         * modules/rbtree-list-tests: Likewise.
37760         * modules/rbtree-oset-tests: Likewise.
37761         * modules/rbtreehash-list-tests: Likewise.
37762         * modules/read-file-tests: Likewise.
37763         * modules/rijndael-tests: Likewise.
37764         * modules/stdint-tests: Likewise.
37765         * modules/tls-tests: Likewise.
37766
37767 2007-02-24  Bruno Haible  <bruno@clisp.org>
37768
37769         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37770         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37771         function; instead check whether isnan with a double argument links.
37772         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37773         function; instead check whether isnan with a 'long double' argument
37774         links.
37775         Reported by Eric Blake <ebb9@byu.net>.
37776
37777 2007-02-24  Bruno Haible  <bruno@clisp.org>
37778
37779         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37780         defined.
37781         * lib/isnanl.c: Remove all code. Just include isnan.c.
37782         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37783
37784 2007-02-25  Jim Meyering  <jim@meyering.net>
37785
37786         Avoid conflicting types for 'unsetenv' on FreeBSD.
37787         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37788         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37789         in stdlib.h.
37790
37791 2007-02-24  Bruno Haible  <bruno@clisp.org>
37792
37793         * modules/isnanl-nolibm-tests: New file.
37794         * tests/test-isnanl.c: New file.
37795
37796         * modules/isnanl-nolibm: New file.
37797         * lib/isnanl.h: New file.
37798         * lib/isnanl.c: New file.
37799         * m4/isnanl.m4: New file.
37800
37801 2007-02-24  Bruno Haible  <bruno@clisp.org>
37802
37803         * modules/isnan-nolibm-tests: New file.
37804         * tests/test-isnan.c: New file.
37805
37806         * modules/isnan-nolibm: New file.
37807         * lib/isnan.h: New file.
37808         * lib/isnan.c: New file.
37809         * m4/isnan.m4: New file.
37810
37811 2007-02-24  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37814         assume that an exponent fits in 20 bits.
37815
37816 2007-02-24  Jim Meyering  <jim@meyering.net>
37817
37818         * m4/regex.m4: Update the description of the configure-time option,
37819         --without-included-regex, to state accurately what the defaults are,
37820         and perhaps to give people an idea why using this option is risky.
37821
37822 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37823
37824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37825         loops on small arguments.  This attempts to avoid the problem
37826         Bruno Haible reported for AIX 4.3.2 in
37827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37828
37829 2007-02-23  Bruno Haible  <bruno@clisp.org>
37830
37831         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37832         Needed for help2man.
37833
37834 2007-02-23  Karl Berry  <karl@gnu.org>
37835
37836         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37837         exists, foo.h should be cvs-ignored, not committed.
37838
37839 2007-02-23  Eric Blake  <ebb9@byu.net>
37840
37841         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37842         * lib/stat-time.h (includes): Likewise.
37843         * lib/utimecmp.c (includes): Likewise.
37844         * lib/utimens.h (includes): Likewise.
37845         * lib/getdate.y (includes): Also include "timespec.h" for use
37846         internal to the module.
37847         * modules/utimens (Depends-on): Revert yesterday's patch.
37848         * modules/nanosleep (Depends-on): Add missing dependency.
37849
37850 2007-02-22  Bruno Haible  <bruno@clisp.org>
37851
37852         * lib/glob.c: Don't include getlogin_r.h.
37853
37854 2007-02-22  Jim Meyering  <jim@meyering.net>
37855
37856         * modules/utimens (Depends-on): Add timespec, required for
37857         utimens.h's inclusion of timespec.h.
37858
37859 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37860
37861         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37862         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37863         Schwab in
37864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37865         I'll try to think of a better way to fix the Solaris problem.
37866
37867         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37868         like glibc; on Solaris 10, it fails with errno == EINVAL.
37869         POSIX says the behavior is unspecified if the first argument is NULL,
37870         so play it safe and never pass NULL to the system getcwd.
37871
37872 2007-02-21  Jim Meyering  <jim@meyering.net>
37873
37874         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37875         of gettimeofday.  It would conflict with the one now always
37876         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37877         an IRIX 6.5 build failure.
37878
37879 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37880
37881         Minor fixups to port to Solaris 10 with Sun C 5.8.
37882         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37883         * modules/getcwd (Depends-on): Add dirfd.
37884         * lib/putenv.c (putenv): #undef it.
37885         (rpl_putenv): New decl.
37886         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37887
37888 2007-02-20  Bruno Haible  <bruno@clisp.org>
37889
37890         * modules/stdio-tests: New file.
37891         * tests/test-stdio.c: New file.
37892
37893         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37894         (Depends-on): Add stdio.
37895         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37896         (Include): Use <stdio.h> instead of vsnprintf.h.
37897         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37898         HAVE_DECL_VSNPRINTF.
37899         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37900
37901         * modules/snprintf (Files): Remove lib/snprintf.h.
37902         (Depends-on): Add stdio.
37903         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37904         (Include): Use <stdio.h> instead of snprintf.h.
37905         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37906         HAVE_DECL_SNPRINTF.
37907         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37908         * lib/getaddrinfo.c: Likewise.
37909
37910         * modules/stdio: New file.
37911         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37912         * lib/snprintf.h: Remove file.
37913         * lib/vsnprintf.h: Remove file.
37914         * lib/.cppi-disable: Remove snprintf.h.
37915         * m4/stdio_h.m4: New file.
37916         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37917
37918 2007-02-20  Jim Meyering  <jim@meyering.net>
37919
37920         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37921         used by e.g., mingw.  From Bruno Haible.
37922
37923 2007-02-19  Bruno Haible  <bruno@clisp.org>
37924
37925         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37926         warnings.
37927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37928
37929 2007-02-19  Bruno Haible  <bruno@clisp.org>
37930
37931         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37932         from mingw users.
37933
37934 2007-02-19  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37937         warnings.
37938         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37939
37940 2007-02-19  Jim Meyering  <jim@meyering.net>
37941
37942         Don't use FD after a successful "fdopendir (fd)".
37943         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37944         Reset it by calling dirfd on the just-obtained DIR*.
37945
37946         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37947         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37948
37949 2007-02-18  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/readlink.c: Include <unistd.h>.
37952         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37953         HAVE_READLINK.
37954         * modules/readlink (Depends-on): Add unistd.
37955         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37956         (Include): Add <unistd.h>.
37957
37958         * lib/getlogin_r.h: Remove file.
37959         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37960         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37961         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37962         HAVE_DECL_GETLOGIN_R.
37963         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37965         (Include): Use <unistd.h> instead of getlogin_r.h.
37966
37967         * lib/getcwd.h: Remove file.
37968         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37969         * lib/xgetcwd.c: Likewise.
37970         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37971         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37972         * modules/getcwd (Files): Remove lib/getcwd.h.
37973         (Depends-on): Add unistd.
37974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37975         (Include): Use <unistd.h> instad of getcwd.h.
37976
37977         * lib/ftruncate.c: Include <unistd.h> first.
37978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37979         Set HAVE_FTRUNCATE.
37980         * modules/ftruncate (Depends-on): Add unistd.
37981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37982
37983         * lib/fchdir.c: Include <unistd.h> first.
37984         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37986         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37987         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37988         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37989
37990         * lib/dup2.c: Include <unistd.h> first.
37991         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37992         HAVE_DUP2.
37993         * modules/dup2 (Depends-on): Add unistd.
37994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37995
37996         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37997         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37998         REPLACE_CHOWN. Don't define chown as a macro here.
37999         * modules/chown (Depends-on): Add unistd.
38000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38001
38002         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38003         Add definition for GL_LINK_WARNING.
38004         (chown, dup2): New declarations.
38005         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38006         link warning.
38007         (ftruncate): New declaration.
38008         (getcwd): New declaration, taken from old getcwd.h.
38009         (getlogin_r): New declaration, taken from old getlogin_r.h.
38010         (readlink): New declaration.
38011         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38012         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38013         (gl_PREREQ_UNISTD): Remove macro.
38014         (gl_UNISTD_MODULE_INDICATOR): New macro.
38015         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38016         many new variables. Don't set UNISTD_H.
38017         * modules/unistd (Description): Change.
38018         (Depends-on): Add link-warning.
38019         (configure.ac): Update.
38020         (Makefile.am): Create unistd.h always. Substitute many new variables
38021         into it.
38022
38023 2007-02-18  Bruno Haible  <bruno@clisp.org>
38024
38025         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38026         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38027         HAVE_GETSUBOPT.
38028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38029         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38030         * lib/getsubopt.h: Remove file.
38031         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38032         (Depends-on): Add stdlib.
38033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38034         (Includes): Use <stdlib.h> instead of getsubopt.h.
38035         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38036         Set HAVE_GETSUBOPT.
38037         * lib/getsubopt.c: Don't include getsubopt.h.
38038
38039 2007-02-18  Bruno Haible  <bruno@clisp.org>
38040
38041         * modules/fchdir (Depends-on): Add dup2.
38042
38043 2007-02-18  Bruno Haible  <bruno@clisp.org>
38044
38045         * lib/stdlib_.h: Handle glibc's special invocation convention
38046         specially.
38047
38048 2007-02-18  Bruno Haible  <bruno@clisp.org>
38049
38050         * modules/stdlib-tests: New file.
38051         * tests/test-stdlib.c: New file.
38052
38053         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38054         (Depends-on): Add stdlib.
38055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38056         (Includes): Use <stdlib.h> instead of mkstemp.h.
38057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38058         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38059         * lib/mkstemp.c: Don't include mkstemp.h.
38060         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38061         * lib/stdlib--.h: Don't include mkstemp.h.
38062
38063         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38064         (Depends-on): Add stdlib.
38065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38066         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38067         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38068         HAVE_MKDTEMP.
38069         * lib/mkdtemp.c: Don't include mkdtemp.h.
38070         * lib/clean-temp.c: Don't include mkdtemp.h.
38071
38072         * modules/exit (Files): Remove lib/exit.h.
38073         (Depends-on): Add stdlib.
38074         (Makefile.am): Remove lib_SOURCES.
38075         (Include): Use <stdlib.h> instead of exit.h.
38076         * lib/argmatch.c: Don't include exit.h.
38077         * lib/execute.c: Likewise.
38078         * lib/pagealign_alloc.c: Likewise.
38079         * lib/pipe.c: Likewise.
38080         * lib/wait-process.c: Likewise.
38081         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38082         * lib/exitfail.c: Likewise.
38083         * lib/savewd.c: Likewise.
38084         * lib/xsetenv.c: Likewise.
38085
38086         * modules/stdlib: New file.
38087         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38088         and extra comments about mkstemp().
38089         * lib/exit.h: Remove file.
38090         * lib/mkdtemp.h: Remove file.
38091         * lib/mkstemp.h: Remove file.
38092         * m4/stdlib_h.m4: New file.
38093         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38094
38095 2007-02-18  Bruno Haible  <bruno@clisp.org>
38096
38097         * modules/math-tests: New file.
38098         * tests/test-math.c: New file.
38099
38100         * modules/math: New file.
38101         * modules/mathl (Files): Remove lib/mathl.h.
38102         (Depends-on): Add math.
38103         (Makefile.am): Don't mention mathl.h.
38104         (Include): Use <math.h> instead of mathl.h.
38105         * lib/math_.h: New file.
38106         * lib/mathl.h: Remove file.
38107         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38108         mathl.h.
38109         * lib/asinl.c: Likewise.
38110         * lib/atanl.c: Likewise.
38111         * lib/ceill.c: Likewise.
38112         * lib/cosl.c: Likewise.
38113         * lib/expl.c: Likewise.
38114         * lib/floorl.c: Likewise.
38115         * lib/frexpl.c: Likewise.
38116         * lib/ldexpl.c: Likewise.
38117         * lib/logl.c: Likewise.
38118         * lib/sincosl.c: Likewise.
38119         * lib/sinl.c: Likewise.
38120         * lib/sqrtl.c: Likewise.
38121         * lib/tanl.c: Likewise.
38122         * lib/trigl.c: Likewise.
38123         * m4/math_h.m4: New file.
38124         * MODULES.html.sh (Mathematics): Add math.
38125
38126 2007-02-17  Bruno Haible  <bruno@clisp.org>
38127
38128         * modules/wctype-tests: New file.
38129         * tests/test-wctype.c: New file.
38130
38131         * modules/wchar-tests: New file.
38132         * tests/test-wchar.c: New file.
38133
38134         * modules/unistd-tests: New file.
38135         * tests/test-unistd.c: New file.
38136
38137         * modules/time-tests: New file.
38138         * tests/test-time.c: New file.
38139
38140         * modules/sysexits-tests: New file.
38141         * tests/test-sysexits.c: New file.
38142
38143         * modules/sys_time-tests: New file.
38144         * tests/test-sys_time.c: New file.
38145
38146         * modules/sys_stat-tests: New file.
38147         * tests/test-sys_stat.c: New file.
38148
38149         * modules/sys_socket-tests: New file.
38150         * tests/test-sys_socket.c: New file.
38151
38152         * modules/sys_select-tests: New file.
38153         * tests/test-sys_select.c: New file.
38154
38155         * modules/string-tests: New file.
38156         * tests/test-string.c: New file.
38157
38158         * modules/stdbool-tests: New file.
38159         * tests/test-stdbool.c: New file.
38160
38161         * modules/netinet_in-tests: New file.
38162         * tests/test-netinet_in.c: New file.
38163
38164         * modules/inttypes-tests: New file.
38165         * tests/test-inttypes.c: New file.
38166
38167         * modules/fcntl-tests: New file.
38168         * tests/test-fcntl.c: New file.
38169
38170         * modules/byteswap-tests: New file.
38171         * tests/test-byteswap.c: New file.
38172
38173         * modules/arpa_inet-tests: New file.
38174         * tests/test-arpa_inet.c: New file.
38175
38176 2007-02-17  Bruno Haible  <bruno@clisp.org>
38177
38178         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38179         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38180         if the corresponding module is not enabled. Emit link warnings if
38181         the function is used nevertheless.
38182         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38183         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38184         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38185         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38186         * modules/inttypes (Depends-on): Add link-warning.
38187         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38188         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38189         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38190         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38191         * modules/imaxdiv (configure.ac): Likewise.
38192         * modules/strtoimax (configure.ac): Likewise.
38193         * modules/strtoumax (configure.ac): Likewise.
38194
38195 2007-02-17  Bruno Haible  <bruno@clisp.org>
38196
38197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38198         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38200         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38201
38202 2007-02-17  Bruno Haible  <bruno@clisp.org>
38203
38204         * modules/link-warning: New file.
38205         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38206         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38207         * modules/string (Depends-on): Add link-warning.
38208         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38209         string.h.
38210         * MODULES.html.sh (Support for building libraries and executables): Add
38211         link-warning.
38212
38213 2007-02-17  Bruno Haible  <bruno@clisp.org>
38214
38215         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38216         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38217         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38218         long lines.
38219
38220 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38221             Bruno Haible  <bruno@clisp.org>
38222
38223         * modules/tmpfile: New file.
38224         * lib/tmpfile.c: New file.
38225         * m4/tmpfile.m4: New file.
38226         * MODULES.html.sh (func_all_modules): New section "Input/output".
38227
38228 2007-02-15  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38231         (supports_delete_on_close): New function.
38232         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38233
38234 2007-02-14  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/mbspcasecmp-tests: New file.
38237         * tests/test-mbspcasecmp.sh: New file.
38238         * tests/test-mbspcasecmp.c: New file.
38239
38240         New module mbspcasecmp.
38241         * modules/mbspcasecmp: New file.
38242         * lib/mbspcasecmp.c: New file.
38243         * lib/string_.h (strncasecmp): Change warning message.
38244         (mbspcasecmp): New declaration.
38245         * m4/mbspcasecmp.m4: New file.
38246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38247         GNULIB_MBSPCASECMP.
38248         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38249         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38250
38251 2007-02-14  Bruno Haible  <bruno@clisp.org>
38252
38253         * modules/mbsncasecmp-tests: New file.
38254         * tests/test-mbsncasecmp.sh: New file.
38255         * tests/test-mbsncasecmp.c: New file.
38256
38257         New module mbsncasecmp.
38258         * modules/mbsncasecmp: New file.
38259         * lib/mbsncasecmp.c: New file.
38260         * lib/string_.h (mbsncasecmp): New declaration.
38261         * m4/mbsncasecmp.m4: New file.
38262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38263         GNULIB_MBSNCASECMP.
38264         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38265         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38266
38267 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38268
38269         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38270         Verify that it doesn't overlap with our flags.
38271         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38272         do not have the desired effect in multibyte locales; instead, use
38273         mbscasecmp.
38274         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38275         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38276         we don't require GNU fnmatch ourselves (if our users require it, they
38277         should do so explicitly).
38278
38279         Fix regex code so it doesn't rely on strcasecmp.
38280         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38281         Otherwise, include gnulib's langinfo.h.
38282         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38283         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38284         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38285         * modules/regex (FILES): Remove m4/codeset.m4.
38286         (Depends-on): Add localcharset.  Remove strcase.
38287
38288 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38289
38290         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38291         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38292
38293 2007-02-13  Bruno Haible  <bruno@clisp.org>
38294
38295         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38297
38298 2007-02-12  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38301         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38302         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38303         time warning rather than a link error.
38304
38305 2007-02-12  Bruno Haible  <bruno@clisp.org>
38306
38307         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38308         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38310
38311 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38312
38313         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38314         args, not 2.
38315
38316 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38317
38318         New module 'time', so that apps can include <time.h> as per
38319         POSIX and GNU instead of separate include files like time_r.h
38320         and timegm.h.  This implementation tries out a simpler approach
38321         for replacing decls in standard include files (as compared to
38322         the string module), somewhat as an experiment.
38323
38324         * config/srclist.txt: Comment out mktime.c for now.
38325         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38326         since it doesn't apply any more.  Use generic wording instead.
38327         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38328         'time'.
38329         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38330         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38331         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38332         Don't include <sys/types.h>; no longer needed since we assume C89.
38333         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38334         * lib/strftime.c: Likewise.
38335         * lib/time_r.c: Likewise.
38336         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38337         * lib/nanosleep.c: Include <time.h> first, to check interface.
38338         * lib/strptime.c: Likewise.
38339         * lib/time_r.c: Likewise.
38340         * lib/timegm.c: Likewise.
38341         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38342         needed.
38343         * lib/timegm.c: Don't include timegm.h; no longer needed.
38344         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38345         time.h now handles any problems in that area.
38346         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38347         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38348         that time.h defines struct timespec.
38349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38350         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38351         handles that.
38352         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38353         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38354         needed.  Set REPLACE_LOCALTIME.
38355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38356         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38357         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38358         nanosleep; time_h.m4 now does that.  Don't require
38359         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38360         module handles this now.
38361         * modules/getdate (Depends-on): Remove timespec.  Add time.
38362         * modules/nanosleep (Depends-on): Likewise.
38363         * modules/stat-time (Depends-on): Likewise.
38364         * modules/nanosleep (Include): Include time.h, not timespec.h.
38365         * modules/strptime (Files): Remove lib/strptime.h.
38366         (Depends-on): Add extensions, time.
38367         (Include): Include time.h, not strptime.h.
38368         * modules/time_r (Files): Remove lib/time_r.h.
38369         (Depends-on): Add time.
38370         (Include): Include time.h, not time_r.h.
38371         * modules/timegm: Likewise.
38372         * modules/timespec (Description): Now does timespec-related decls
38373         of our own, instead of struct timespec itself.
38374         (Depends-on): Add time; remove extensions.
38375         (Maintainer): Add self.
38376         * modules/utimecmp (Depends-on): Add time; remove timespec.
38377         * modules/utimens (Depends-on): Likewise.
38378         * modules/xnanosleep (Depends-on): Likewise.
38379
38380 2007-02-11  Bruno Haible  <bruno@clisp.org>
38381
38382         * lib/c-strstr.c: Include allocsa.h.
38383         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38384         * lib/c-strcasestr.c: Include allocsa.h.
38385         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38386         * lib/strcasestr.c: Include allocsa.h.
38387         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38388         * lib/mbsstr.c: Include allocsa.h.
38389         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38390         allocsa/freesa instead of malloc/free.
38391         * lib/mbscasestr.c: Include allocsa.h.
38392         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38393         allocsa/freesa instead of malloc/free.
38394         * modules/c-strstr (Depends-on): Add allocsa.
38395         * modules/c-strcasestr (Depends-on): Likewise.
38396         * modules/strcasestr (Depends-on): Likewise.
38397         * modules/mbsstr (Depends-on): Likewise.
38398         * modules/mbscasestr (Depends-on): Likewise.
38399
38400 2007-02-11  Bruno Haible  <bruno@clisp.org>
38401
38402         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38403
38404         * modules/mbsspn-tests: New file.
38405         * tests/test-mbsspn.sh: New file.
38406         * tests/test-mbsspn.c: New file.
38407
38408 2007-02-11  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38411
38412         * modules/mbspbrk-tests: New file.
38413         * tests/test-mbspbrk.sh: New file.
38414         * tests/test-mbspbrk.c: New file.
38415
38416 2007-02-11  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38419         unneeded cast.
38420
38421         * modules/mbscspn-tests: New file.
38422         * tests/test-mbscspn.sh: New file.
38423         * tests/test-mbscspn.c: New file.
38424
38425 2007-02-11  Bruno Haible  <bruno@clisp.org>
38426
38427         * modules/mbscasecmp-tests: New file.
38428         * tests/test-mbscasecmp.sh: New file.
38429         * tests/test-mbscasecmp.c: New file.
38430
38431 2007-02-11  Bruno Haible  <bruno@clisp.org>
38432
38433         Ensure O(n) worst-case complexity of mbscasestr.
38434         * lib/mbscasestr.c: Include stdbool.h.
38435         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38436         functions.
38437         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38438         the bookkeeping indicates that it's worth it.
38439         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38440
38441         * modules/mbscasestr-tests: New file.
38442         * tests/test-mbscasestr1.c: New file.
38443         * tests/test-mbscasestr2.sh: New file.
38444         * tests/test-mbscasestr2.c: New file.
38445         * tests/test-mbscasestr3.sh: New file.
38446         * tests/test-mbscasestr3.c: New file.
38447         * tests/test-mbscasestr4.sh: New file.
38448         * tests/test-mbscasestr4.c: New file.
38449         * m4/locale-tr.m4: New file.
38450
38451 2007-02-11  Bruno Haible  <bruno@clisp.org>
38452
38453         Ensure O(n) worst-case complexity of mbsstr.
38454         * lib/mbsstr.c: Include stdbool.h.
38455         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38456         functions.
38457         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38458         bookkeeping indicates that it's worth it.
38459         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38460
38461         * modules/mbsstr-tests: New file.
38462         * tests/test-mbsstr1.c: New file.
38463         * tests/test-mbsstr2.sh: New file.
38464         * tests/test-mbsstr2.c: New file.
38465         * tests/test-mbsstr3.sh: New file.
38466         * tests/test-mbsstr3.c: New file.
38467         * m4/locale-fr.m4: New file.
38468
38469 2007-02-11  Bruno Haible  <bruno@clisp.org>
38470
38471         * lib/mbsrchr.c (mbsrchr): Fix bug.
38472
38473         * modules/mbsrchr-tests: New file.
38474         * tests/test-mbsrchr.sh: New file.
38475         * tests/test-mbsrchr.c: New file.
38476
38477 2007-02-11  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/mbschr.c (mbschr): Fix bug.
38480
38481         * modules/mbschr-tests: New file.
38482         * tests/test-mbschr.sh: New file.
38483         * tests/test-mbschr.c: New file.
38484         * m4/locale-zh.m4: New file.
38485
38486 2007-02-11  Bruno Haible  <bruno@clisp.org>
38487
38488         Support for copying multibyte string iterators.
38489         * lib/mbiter.h: Include <string.h>.
38490         (mbiter_multi_copy): New function.
38491         (mbi_copy): New macro.
38492         * lib/mbuiter.h: Include <string.h>.
38493         (mbuiter_multi_copy): New function.
38494         (mbui_copy): New macro.
38495
38496 2007-02-11  Bruno Haible  <bruno@clisp.org>
38497
38498         New module mbslen.
38499         * modules/mbslen: New file.
38500         * lib/mbslen.c: New file.
38501         * lib/string_.h (mbslen): New declaration.
38502         * m4/mbslen.m4: New file.
38503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38504         GNULIB_MBSLEN.
38505         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38506         * MODULES.html.sh (Internationalization functions): Add mbslen.
38507
38508 2007-02-11  Bruno Haible  <bruno@clisp.org>
38509
38510         Ensure O(n) worst-case complexity of strcasestr substitute.
38511         * lib/strcasestr.c: Include stdbool.h.
38512         (knuth_morris_pratt): New function.
38513         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38514         bookkeeping indicates that it's worth it.
38515         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38516
38517         * modules/strcasestr-tests: New file.
38518         * tests/test-strcasestr.c: New file.
38519
38520 2007-02-11  Bruno Haible  <bruno@clisp.org>
38521
38522         Ensure O(n) worst-case complexity of c_strcasestr.
38523         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38524         (knuth_morris_pratt): New function.
38525         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38526         the bookkeeping indicates that it's worth it.
38527         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38528
38529         * modules/c-strcasestr-tests: New file.
38530         * tests/test-c-strcasestr.c: New file.
38531
38532 2007-02-11  Bruno Haible  <bruno@clisp.org>
38533
38534         Ensure O(n) worst-case complexity of c_strstr.
38535         * lib/c-strstr.c: Include stdbool.h, string.h.
38536         (knuth_morris_pratt): New function.
38537         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38538         bookkeeping indicates that it's worth it.
38539         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38540
38541         * lib/c-strstr.c: Complete rewrite for maintainability.
38542
38543         * modules/c-strstr-tests: New file.
38544         * tests/test-c-strstr.c: New file.
38545
38546 2007-02-11  Bruno Haible  <bruno@clisp.org>
38547
38548         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38549         5.2.1 and earlier, whereby \055 was treated just like the range
38550         delimiter '-'.
38551         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38552
38553 2007-02-08  Bruno Haible  <bruno@clisp.org>
38554
38555         * modules/regex (Depends-on): Add stdbool.
38556         Reported by Dalibor Topic <robilad@kaffe.org>.
38557
38558 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38559
38560         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38561         Prefer returning from main to exiting from it.
38562         Remove unnecessary parens after sizeof.
38563
38564 2007-02-05  Bruno Haible  <bruno@clisp.org>
38565
38566         New module mbssep.
38567         * modules/mbssep: New file.
38568         * lib/mbssep.c: New file.
38569         * lib/string_.h (strsep): Add a conditional link warning.
38570         (mbssep): New declaration.
38571         * m4/mbssep.m4: New file.
38572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38573         GNULIB_MBSSEP.
38574         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38575         * MODULES.html.sh (Internationalization functions): Add mbssep.
38576
38577 2007-02-05  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38580         Optimize search in case of 1 delimiter.
38581
38582 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38583
38584         * lib/acl.h: Include sys/types.h before sys/acl.h.
38585
38586 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38587
38588         Merge upstream fix for glibc bugzilla #3957:
38589
38590         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38591
38592         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38593         bit for RE_HAT_LISTS_NOT_NEWLINE.
38594         (build_charclass_op): Remove bogus comment.
38595
38596 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38597
38598         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38599
38600 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38601
38602         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38603         * lib/memmem.c [!defined _LIBC]: Include config.h.
38604
38605 2007-02-04  Bruno Haible  <bruno@clisp.org>
38606
38607         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38608         warning message.
38609
38610 2007-02-04  Bruno Haible  <bruno@clisp.org>
38611
38612         New module mbstok_r.
38613         * modules/mbstok_r: New file.
38614         * lib/mbstok_r.c: New file.
38615         * lib/string_.h (strtok_r): Change argument names to match the
38616         comments. Add a conditional link warning.
38617         (mbstok_r): New declaration.
38618         * m4/mbstok_r.m4: New file.
38619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38620         GNULIB_MBSTOK_R.
38621         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38622         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38623
38624 2007-02-04  Bruno Haible  <bruno@clisp.org>
38625
38626         New module mbsspn.
38627         * modules/mbsspn: New file.
38628         * lib/mbsspn.c: New file.
38629         * lib/string_.h (strspn): Add a conditional link warning.
38630         (mbsspn): New declaration.
38631         * m4/mbsspn.m4: New file.
38632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38633         GNULIB_MBSSPN.
38634         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38635         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38636
38637 2007-02-04  Bruno Haible  <bruno@clisp.org>
38638
38639         New module mbspbrk.
38640         * modules/mbspbrk: New file.
38641         * lib/mbspbrk.c: New file.
38642         * lib/string_.h (strpbrk): Add a conditional link warning.
38643         (mbspbrk): New declaration.
38644         * m4/mbspbrk.m4: New file.
38645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38646         GNULIB_MBSPBRK.
38647         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38648         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38649
38650 2007-02-04  Bruno Haible  <bruno@clisp.org>
38651
38652         New module mbscspn.
38653         * modules/mbscspn: New file.
38654         * lib/mbscspn.c: New file.
38655         * lib/string_.h (strcspn): Add a conditional link warning.
38656         (mbscspn): New declaration.
38657         * m4/mbscspn.m4: New file.
38658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38659         GNULIB_MBSCSPN.
38660         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38661         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38662
38663 2007-02-04  Bruno Haible  <bruno@clisp.org>
38664
38665         New module mbscasestr, reduced goal of strcasestr.
38666         * modules/mbscasestr: New file.
38667         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38668         (mbscasestr): Renamed from strcasestr.
38669         * lib/strcasestr.c: Don't include mbuiter.h.
38670         (strcasestr): Remove support for multibyte locales.
38671         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38672         Change the conditional link warning.
38673         (mbscasestr): New declaration.
38674         * m4/mbscasestr.m4: New file.
38675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38676         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38677         REPLACE_STRCASESTR.
38678         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38680         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38681         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38682         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38683         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38684         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38685         (Depends-on): Remove mbuiter.
38686         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38687
38688 2007-02-04  Bruno Haible  <bruno@clisp.org>
38689
38690         Simplify handling of strncasecmp.
38691         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38692         the conditional link warning.
38693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38694         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38696         * modules/strcase (configure.ac): Don't invoke
38697         gl_STRING_MODULE_INDICATOR.
38698         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38699
38700 2007-02-04  Bruno Haible  <bruno@clisp.org>
38701
38702         New module mbscasecmp, reduced goal of strcasecmp.
38703         * modules/mbscasecmp: New file.
38704         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38705         (mbscasecmp): Renamed from strcasecmp.
38706         * lib/strcasecmp.c: Don't include mbuiter.h.
38707         (strcasecmp): Remove support for multibyte locales.
38708         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38709         Change the conditional link warning.
38710         (mbscasecmp): New declaration.
38711         * m4/mbscasecmp.m4: New file.
38712         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38713         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38714         REPLACE_STRCASECMP.
38715         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38717         GNULIB_MBSCASECMP.
38718         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38719         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38720         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38721         (Depends-on): Remove mbuiter.
38722         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38723
38724 2007-02-04  Bruno Haible  <bruno@clisp.org>
38725
38726         New module mbsstr. Remove module strstr.
38727         * modules/mbsstr: New file.
38728         * modules/strstr: Remove file.
38729         * lib/mbsstr.c: Renamed from lib/strstr.c.
38730         (mbsstr): Renamed from strstr.
38731         * lib/string_.h (strstr): Remove declaration. Change the conditional
38732         link warning.
38733         (mbsstr): New declaration.
38734         * m4/mbsstr.m4: New file.
38735         * m4/strstr.m4: Remove file.
38736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38737         REPLACE_STRSTR.
38738         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38739         Don't initialize GNULIB_STRSTR.
38740         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38741         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38742         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38743         (Support for systems lacking ANSI C 89): Remove strstr.
38744
38745 2007-02-04  Bruno Haible  <bruno@clisp.org>
38746
38747         New module mbsrchr.
38748         * modules/mbsrchr: New file.
38749         * lib/mbsrchr.c: New file.
38750         * lib/string_.h (strrchr): Add a conditional link warning.
38751         (mbsrchr): New declaration.
38752         * m4/mbsrchr.m4: New file.
38753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38754         GNULIB_MBSRCHR.
38755         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38756         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38757
38758 2007-02-04  Bruno Haible  <bruno@clisp.org>
38759
38760         New module mbschr.
38761         * modules/mbschr: New file.
38762         * lib/mbschr.c: New file.
38763         * lib/string_.h (strchr): Add a conditional link warning.
38764         (mbschr): New declaration.
38765         * m4/mbschr.m4: New file.
38766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38767         GNULIB_MBSCHR.
38768         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38769         * MODULES.html.sh (Internationalization functions): Add mbschr.
38770
38771 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38772
38773         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38774
38775         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38776
38777 2007-02-04  Bruno Haible  <bruno@clisp.org>
38778
38779         New module description section 'configure.ac-early'.
38780         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38781         (func_get_autoconf_early_snippet): New function.
38782         (func_import, func_create_testdir): Use it. Remove special cases for
38783         modules 'extensions' and 'lock'.
38784         * modules/extensions (configure.ac-early): Require
38785         gl_USE_SYSTEM_EXTENSIONS.
38786         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38787
38788 2007-02-04  Bruno Haible  <bruno@clisp.org>
38789
38790         Make use of gcj-4.3's -fsource and -ftarget option.
38791         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38792         and if so try the options -fsource and -ftarget.
38793         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38794         source_version, ftarget_option, target_version arguments.
38795         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38796         (is_envjavac_oldgcj_14_14_usable): Renamed from
38797         is_envjavac_gcj_14_14_usable.
38798         (is_envjavac_oldgcj_14_13_usable): Renamed from
38799         is_envjavac_gcj_14_13_usable.
38800         (is_gcj_present): Update.
38801         (is_gcj_43, is_gcj43_usable): New functions.
38802         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38803         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38804         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38805         try the options -fsource and -ftarget.
38806
38807 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38808
38809         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38810         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38811         larger value.
38812
38813 2007-02-03  Jim Meyering  <jim@meyering.net>
38814
38815         Give tools a better chance to allocate space for very large buffers.
38816         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38817
38818         Make pwd and readlink work also when run with an unreadable parent dir
38819         on systems with openat support.
38820         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38821         provided getcwd function, even when we have openat support.
38822         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38823
38824 2007-02-02  Bruno Haible  <bruno@clisp.org>
38825
38826         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38827         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38828         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38829         portability problems if one of these functions is only used on specific
38830         platforms.
38831         Reported by Paul Eggert.
38832
38833 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38834
38835         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38836         is causing more trouble than it's curing.
38837         * lib/regex_internal.h (__mempcpy): Remove.
38838         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38839         (and make the code a tad smaller to boot).
38840         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38841
38842 2007-02-02  Jim Meyering  <jim@meyering.net>
38843
38844         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38845         section, not in the Makefile.am: one.
38846
38847 2007-02-02  Eric Blake  <ebb9@byu.net>
38848
38849         * lib/strchrnul.c: Always include config.h first.
38850
38851         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38852         gnulib strstr is not necessary here.
38853
38854 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38855
38856         * m4/socklen.m4: Fix typo.
38857
38858 2007-02-02  Eric Blake  <ebb9@byu.net>
38859
38860         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38861         * modules/netinet_in (Makefile.am): Likewise.
38862
38863 2007-02-01  Bruno Haible  <bruno@clisp.org>
38864
38865         * lib/string_.h (GL_LINK_WARNING): New macro.
38866         (strcasecmp, strstr, strcasestr): If provided by the system,
38867         conditionally define as a macro that leads to a warning instead of to
38868         an error.
38869         (strncasecmp): Conditionally define as a macro that leads to a warning.
38870
38871 2007-02-01  Karl Berry  <karl@gnu.org>
38872
38873         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38874
38875 2007-02-01  Bruno Haible  <bruno@clisp.org>
38876
38877         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38878         renamings.
38879
38880 2007-02-01  Eric Blake  <ebb9@byu.net>
38881
38882         * modules/regex (Depends-on): Revert dependence on mempcpy.
38883         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38884         module's definition of mempcpy.
38885         Reported by Paul Eggert.
38886
38887 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38888
38889         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38890         the symbol XYZ before redefining it.  This fixes a problem with
38891         programs that don't use XYZ, when compiled on systems that define
38892         XYZ to something else.
38893
38894 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38895
38896         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38897         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38898         writeable to group or other and (2) is intended to have a special
38899         mode bit that is set or cleared.  In such a case, the directory
38900         should be neither group- nor other-writeable until the special
38901         mode bits are right.
38902
38903 2007-01-31  Eric Blake  <ebb9@byu.net>
38904
38905         * modules/mountlist (Depends-on): Add strstr.
38906
38907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38908         bug.
38909         * modules/string (Makefile.am): Remove redundant replacement.
38910         * modules/regex (Depends-on): Add mempcpy.
38911
38912 2007-01-31  Bruno Haible  <bruno@clisp.org>
38913
38914         New module description field 'Link'.
38915         * gnulib-tool (func_usage): Document --extract-link-directive.
38916         (sed_extract_prog): Recognize 'Link' directive.
38917         (func_get_link_directive): New function.
38918         (func_import): Show summary of link directives.
38919         Handle --extract-link-directive option.
38920         * modules/acl (Link): New section.
38921         * modules/clock-time (Link): New section.
38922         * modules/euidaccess (Link): New section.
38923         * modules/gettext (Link): New section.
38924         * modules/iconv (Link): New section.
38925         * modules/lock (Link): New section.
38926         * modules/nanosleep (Link): New section.
38927         * modules/readline (Link): New section.
38928
38929 2007-01-27  Bruno Haible  <bruno@clisp.org>
38930
38931         Enforce the use of gnulib modules for unportable <string.h> functions.
38932         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38933         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38934         (gl_HEADER_STRING_H_BODY): Require it.
38935         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38936         the symbol XYZ to one that gives a link error.
38937         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38938         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38939         * modules/mempcpy (configure.ac): Likewise.
38940         * modules/memrchr (configure.ac): Likewise.
38941         * modules/stpcpy (configure.ac): Likewise.
38942         * modules/stpncpy (configure.ac): Likewise.
38943         * modules/strcase (configure.ac): Likewise.
38944         * modules/strcasestr (configure.ac): Likewise.
38945         * modules/strchrnul (configure.ac): Likewise.
38946         * modules/strdup (configure.ac): Likewise.
38947         * modules/strndup (configure.ac): Likewise.
38948         * modules/strnlen (configure.ac): Likewise.
38949         * modules/strpbrk (configure.ac): Likewise.
38950         * modules/strsep (configure.ac): Likewise.
38951         * modules/strstr (configure.ac): Likewise.
38952         * modules/strtok_r (configure.ac): Likewise.
38953
38954 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38955
38956         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38957
38958 2007-01-30  Jim Meyering  <jim@meyering.net>
38959
38960         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38961
38962 2007-01-29  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38965         * lib/execute.c: Likewise.
38966         * lib/pipe.c: Likewise.
38967         * lib/printf-args.h: Likewise.
38968         * lib/printf-args.c: Likewise.
38969         * lib/printf-parse.c: Likewise.
38970         * lib/vasnprintf.c: Likewise.
38971
38972 2007-01-29  Eric Blake  <ebb9@byu.net>
38973
38974         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38975         declaration.
38976
38977 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38978
38979         * lib/strptime.h (strptime): Use 'restrict' for args where
38980         POSIX requires this.
38981         * lib/strptime.c (strptime): Likewise.
38982         Change license notice from LGPL to GPL, since gnulib-tool will
38983         change this as needed.
38984         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38985         defined.
38986         Include "strptime.h" first, to check interface.
38987         Do not #undef _LIBC and _NL_CURRENT.
38988         Do not include <stdlib.h>; no longer needed.
38989         Include "time_r.h" and declare ptime_locale_status
38990         only if _LIBC is not defined.
38991         (__P): Remove unused macro.
38992         (match_string): Bring back glibc version, but use it only if _LIBC
38993         is defined.
38994         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38995         Remove unnecessary assertion and abort() call.
38996         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38997         * m4/strptime.m4: Fix serial number comment.
38998         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38999         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39000         (Depends-on): Add time_r.
39001
39002 2007-01-29  Bruno Haible  <bruno@clisp.org>
39003
39004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39005         strptime.
39006         * modules/strptime (Depends-on): Add stdbool.
39007         * lib/strptime.h: Include <time.h> always. Add comments.
39008
39009 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39010
39011         * modules/strptime: New file.
39012         * lib/strptime.h: New file.
39013         * lib/strptime.c: New file.
39014         * m4/strptime.m4: New file.
39015
39016 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39017
39018         * MODULES.html.sh: New module mpsort.
39019         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39020
39021         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39022         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39024         All uses changed.
39025         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39026         All uses changed.
39027         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39028         to _Restrict_.
39029         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39030         the parameter matches the prototype.
39031
39032 2007-01-28  Jim Meyering  <jim@meyering.net>
39033
39034         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39035         sys/time.h here, reverting that part of the previous patch:
39036         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39037
39038 2007-01-28  Bruno Haible  <bruno@clisp.org>
39039
39040         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39041         value of $(SYS_TIME_H).
39042         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39043         remove it conditionally, too. [added by Jim Meyering]
39044         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39046         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39047         GETTIMEOFDAY_REPLACEMENT to 1.
39048
39049 2007-01-28  Bruno Haible  <bruno@clisp.org>
39050
39051         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39052         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39054         Set UNISTD_H instead of UNISTD_H2.
39055         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39056
39057 2007-01-28  Bruno Haible  <bruno@clisp.org>
39058
39059         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39060         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39061
39062 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39063
39064         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39065         (func_create_testdir): Ensure C locale for `grep' and `tr'
39066         character ranges.
39067         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39068         ACLOCAL_AMFLAGS parsing state machine.
39069
39070 2007-01-27  Bruno Haible  <bruno@clisp.org>
39071
39072         * modules/unistr/base: Update.
39073
39074 2007-01-27  Bruno Haible  <bruno@clisp.org>
39075
39076         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39077         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39078         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39079         modules/unistr/u32-mbtouc.
39080         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39081         * lib/unistr.h: Update.
39082         * lib/linebreak.c: Update.
39083         * modules/unistr/u32-mbtouc: Renamed from
39084         modules/unistr/u32-mbtouc-safe.
39085         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39086         * lib/unistr.h: Update.
39087         * lib/unistr/u32-to-u8.c: Update.
39088         * lib/unistr/u32-to-u16.c: Update.
39089
39090 2007-01-27  Bruno Haible  <bruno@clisp.org>
39091
39092         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39093         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39094         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39095         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39096         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39097         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39098         modules/unistr/u16-mbtouc.
39099         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39100         * lib/unistr.h: Update.
39101         * lib/linebreak.c: Update.
39102         * modules/linebreak: Update.
39103         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39104         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39105         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39106         * modules/unistr/u16-mbtouc: Renamed from
39107         modules/unistr/u16-mbtouc-safe.
39108         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39109         * lib/unistr.h: Update.
39110         * lib/unistr/u16-to-u8.c: Update.
39111         * modules/unistr/u16-to-u8: Update.
39112         * lib/unistr/u16-to-u32.c: Update.
39113         * modules/unistr/u16-to-u32: Update.
39114
39115 2007-01-27  Bruno Haible  <bruno@clisp.org>
39116
39117         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39118         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39119         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39120         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39121         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39122         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39123         modules/unistr/u8-mbtouc.
39124         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39125         * lib/unistr.h: Update.
39126         * lib/striconveh.c: Update.
39127         * modules/striconveh: Update.
39128         * lib/linebreak.c: Update.
39129         * modules/linebreak: Update.
39130         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39131         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39132         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39133         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39134         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39135         * lib/unistr.h: Update.
39136         * lib/striconveh.c: Update.
39137         * modules/striconveh: Update.
39138         * lib/unistr/u8-to-u16.c: Update.
39139         * modules/unistr/u8-to-u16: Update.
39140         * lib/unistr/u8-to-u32.c: Update.
39141         * modules/unistr/u8-to-u32: Update.
39142
39143 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39144
39145         Sync from Libtool.
39146         * lib/argz.c: Do not include strings.h nor memory.h, include
39147         string.h unconditionally.  Patch by Simon Josefsson.
39148
39149 2007-01-27  Bruno Haible  <bruno@clisp.org>
39150
39151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39152         from gl_HEADER_STRING_H_BODY.
39153         (gl_HEADER_STRING_H_BODY): Require it.
39154         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39155         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39157         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39158         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39159         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39161         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39162         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39163         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39164         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39165         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39166         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39167         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39168         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39169
39170 2007-01-27  Bruno Haible  <bruno@clisp.org>
39171
39172         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39173         check_PROGRAMS into noinst_PROGRAMS.
39174         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39175         check_PROGRAMS in this case.
39176         (func_import): Set for_test to false.
39177         (func_create_testdir): Set for_test to true.
39178
39179 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39180             Bruno Haible  <bruno@clisp.org>
39181
39182         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39183         (Depends-on): Add string.
39184         (Includes): Use <string.h> instead of strcasestr.h.
39185         * modules/string (Makefile.am): Also substitute the value of
39186         REPLACE_STRCASESTR.
39187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39188         assume strcasestr is declared in <string.h> not <strings.h>. Also
39189         set REPLACE_STRCASESTR.
39190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39191         REPLACE_STRCASESTR.
39192         * lib/strcasestr.h: Remove file.
39193         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39194         * lib/string_.h (strcasestr): New declaration.
39195
39196 2007-01-27  Bruno Haible  <bruno@clisp.org>
39197
39198         * lib/string_.h: Use 'extern'.
39199
39200 2007-01-27  Jim Meyering  <jim@meyering.net>
39201
39202         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39203         of set-but-not-used local, "q".
39204
39205         * lib/mempcpy.c: Include <config.h> before <string.h>.
39206         This fixes a compilation error on HP-UX, due to the system's
39207         "restrict"-using mempcpy prototype.
39208
39209 2007-01-26  Bruno Haible  <bruno@clisp.org>
39210
39211         Small optimization.
39212         * lib/javacomp.c: Include c-strstr.h.
39213          (is_envjavac_gcj): Use c_strstr instead of strstr.
39214         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39215
39216 2007-01-26  Bruno Haible  <bruno@clisp.org>
39217
39218         * MODULES.html.sh (Unicode string functions): Add the new modules.
39219
39220         * modules/uniconv/u32-strconv-to-locale: New file.
39221         * lib/uniconv/u32-strconv-to-locale.c: New file.
39222
39223         * modules/uniconv/u16-strconv-to-locale: New file.
39224         * lib/uniconv/u16-strconv-to-locale.c: New file.
39225
39226         * modules/uniconv/u8-strconv-to-locale: New file.
39227         * lib/uniconv/u8-strconv-to-locale.c: New file.
39228
39229         * modules/uniconv/u32-strconv-from-locale: New file.
39230         * lib/uniconv/u32-strconv-from-locale.c: New file.
39231
39232         * modules/uniconv/u16-strconv-from-locale: New file.
39233         * lib/uniconv/u16-strconv-from-locale.c: New file.
39234
39235         * modules/uniconv/u8-strconv-from-locale: New file.
39236         * lib/uniconv/u8-strconv-from-locale.c: New file.
39237
39238         * modules/uniconv/u32-strconv-to-enc: New file.
39239         * lib/uniconv/u32-strconv-to-enc.c: New file.
39240         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39241         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39242
39243         * modules/uniconv/u16-strconv-to-enc: New file.
39244         * lib/uniconv/u16-strconv-to-enc.c: New file.
39245         * lib/uniconv/u-strconv-to-enc.h: New file.
39246         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39247         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39248
39249         * modules/uniconv/u8-strconv-to-enc: New file.
39250         * lib/uniconv/u8-strconv-to-enc.c: New file.
39251         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39252         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39253
39254         * modules/uniconv/u32-strconv-from-enc: New file.
39255         * lib/uniconv/u32-strconv-from-enc.c: New file.
39256         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39257         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39258
39259         * modules/uniconv/u16-strconv-from-enc: New file.
39260         * lib/uniconv/u16-strconv-from-enc.c: New file.
39261         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39262         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39263
39264         * modules/uniconv/u8-strconv-from-enc: New file.
39265         * lib/uniconv/u8-strconv-from-enc.c: New file.
39266         * lib/uniconv/u-strconv-from-enc.h: New file.
39267         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39268         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39269
39270         * modules/uniconv/u32-conv-from-enc: New file.
39271         * lib/uniconv/u32-conv-from-enc.c: New file.
39272         * modules/uniconv/u32-conv-from-enc-tests: New file.
39273         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39274
39275         * modules/uniconv/u16-conv-from-enc: New file.
39276         * lib/uniconv/u16-conv-from-enc.c: New file.
39277         * lib/uniconv/u-conv-from-enc.h: New file.
39278         * modules/uniconv/u16-conv-from-enc-tests: New file.
39279         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39280
39281         * modules/uniconv/u8-conv-from-enc: New file.
39282         * lib/uniconv/u8-conv-from-enc.c: New file.
39283         * modules/uniconv/u8-conv-from-enc-tests: New file.
39284         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39285
39286         * modules/uniconv/base: New file.
39287         * lib/uniconv.h: New file.
39288
39289 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39290
39291         * doc/gnulib-tool.texi (Initial import): Update to match current
39292         behavior with strdup module.
39293         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39294         * lib/memmem.h: Remove; all uses removed.  This is now done
39295         by <string.h>.
39296         * lib/mempcpy.h: Likewise.
39297         * lib/memrchr.h: Likewise.
39298         * lib/stpcpy.h: Likewise.
39299         * lib/stpncpy.h: Likewise.
39300         * lib/strcase.h: Likewise.
39301         * lib/strchrnul.h: Likewise.
39302         * lib/strdup.h: Likewise.
39303         * lib/strndup.h: Likewise.
39304         * lib/strnlen.h: Likewise.
39305         * lib/strpbrk.h: Likewise.
39306         * lib/strsep.h: Likewise.
39307         * lib/strstr.h: Likewise.
39308         * lib/strtok_r.h: Likewise.
39309         * lib/string_.h: New file.
39310         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39311         Rely on <string.h> instead.
39312         * lib/canon-host.c: Likewise.
39313         * lib/chdir-long.c: Likewise.
39314         * lib/concatpath.c: Likewise.
39315         * lib/exclude.c: Likewise.
39316         * lib/fchdir.c: Likewise.
39317         * lib/getaddrinfo.c: Likewise.
39318         * lib/getcwd.c: Likewise.
39319         * lib/getsubopt.c: Likewise.
39320         * lib/glob.c: Likewise.
39321         * lib/hard-locale.c: Likewise.
39322         * lib/iconvme.c: Likewise.
39323         * lib/javacomp.c: Likewise.
39324         * lib/mempcpy.c: Likewise.
39325         * lib/memrchr.c: Likewise.
39326         * lib/regex_internal.h: Likewise.
39327         * lib/stpncpy.c: Likewise.
39328         * lib/strcasecmp.c: Likewise.
39329         * lib/strchrnul.c: Likewise.
39330         * lib/strdup.c: Likewise.
39331         * lib/striconv.c: Likewise.
39332         * lib/striconveh.c: Likewise.
39333         * lib/striconveha.c: Likewise.
39334         * lib/strncasecmp.c: Likewise.
39335         * lib/strndup.c: Likewise.
39336         * lib/strnlen.c: Likewise.
39337         * lib/strsep.c: Likewise.
39338         * lib/strstr.c: Likewise.
39339         * lib/strtok_r.c: Likewise.
39340         * lib/userspec.c: Likewise.
39341         * lib/w32spawn.h: Likewise.
39342         * lib/xstrndup.c: Likewise.
39343         * lib/mountlist.c (strstr): Remove decl.
39344         * m4/string_h.m4: New file.
39345         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39346         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39348         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39349         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39350         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39351         Set REPLACE_STRCASECMP if necessary.
39352         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39353         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39354         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39356         HAVE_DECL_STRDUP if necessary.
39357         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39358         since gl_FUNC_STRNDUP does that now.
39359         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39360         Check for decl here...
39361         (gl_PREREQ_STRNLEN): ... not here.
39362         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39363         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39364         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39366         necessary.
39367         * modules/string: New file.
39368         * modules/memmem (Files): Remove special-purpose include file.
39369         (Depends-on): Add string.
39370         (Include): Include <string.h>, not the removed file.
39371         * modules/mempcpy: Likewise.
39372         * modules/memrchr: Likewise.
39373         * modules/stpcpy: Likewise.
39374         * modules/stpncpy: Likewise.
39375         * modules/strcase: Likewise.
39376         * modules/strchrnul: Likewise.
39377         * modules/strdup: Likewise.
39378         * modules/strndup: Likewise.
39379         * modules/strnlen: Likewise.
39380         * modules/strpbrk: Likewise.
39381         * modules/strsep: Likewise.
39382         * modules/strstr: Likewise.
39383         * modules/strtok_r: Likewise.
39384         * tests/test-dirname.c: Don't include "strdup.h", since
39385         <string.h> now suffices.
39386         * tests/test-memmem.c: Don't include "memmem.h", since
39387         <string.h> now suffices.
39388
39389 2007-01-25  Bruno Haible  <bruno@clisp.org>
39390
39391         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39392         *resultp is 0.
39393
39394         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39395         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39396         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39397         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39398
39399         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39400         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39401         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39402         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39403         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39404         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39405
39406 2007-01-24  Bruno Haible  <bruno@clisp.org>
39407
39408         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39410         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39411         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39412         gl_FUNC_FTS_CORE.
39413         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39414         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39415         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39416         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39417         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39418         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39419         gl_FUNC_FCHOWNAT.
39420         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39421         gl_FUNC_STRFTIME.
39422         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39423         Reported by Ralf Wildenhues.
39424
39425 2007-01-24  Bruno Haible  <bruno@clisp.org>
39426
39427         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39428         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39429         gl_GETADDRINFO.
39430         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39431         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39432         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39433
39434 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39435
39436         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39437         Don't use 'exit'; just return from 'main'.
39438         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39439
39440         * lib/fnmatch_.h: Readjust white space and comments to match
39441         glibc, to avoid spurious diffs.
39442
39443 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39444
39445         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39446         2004-12-01 change by Jakub Jelinek, since this code won't compile
39447         if !LIBC.  Problem reported by Bob Proulx.
39448
39449 2007-01-23  Bruno Haible  <bruno@clisp.org>
39450
39451         * lib/striconveh.c: Include c-strcaseeq.h.
39452         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39453         * modules/striconveh (Depends-on): Add c-strcaseeq.
39454
39455 2007-01-23  Bruno Haible  <bruno@clisp.org>
39456
39457         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39458
39459         * modules/c-strcaseeq: New file.
39460         * lib/c-strcaseeq.h: New file.
39461
39462         * modules/streq: New file.
39463         * lib/streq.h: New file.
39464
39465 2007-01-23  Bruno Haible  <bruno@clisp.org>
39466
39467         * modules/striconveha-tests: New file.
39468         * tests/test-striconveha.c: New file.
39469
39470         * lib/striconveha.h: Include <stdbool.h>.
39471         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39472         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39473         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39474         (mem_iconveha): New function.
39475         (str_iconveha_notranslit): Renamed from str_iconveha.
39476         (str_iconveha): New function.
39477         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39478         c-strcase.
39479
39480 2007-01-23  Bruno Haible  <bruno@clisp.org>
39481
39482         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39483         encodings without forgiving before trying any encoding with handler.
39484         (str_iconveha): Try all encodings without forgiving before trying any
39485         encoding with handler.
39486
39487 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39488
39489         Import the following changes from libc.
39490
39491         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39492
39493         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39494
39495         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39496
39497         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39498         normal_bracket label.
39499
39500         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39501
39502         [BZ #361]
39503         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39504         to normal_bracket after fetching the next character.
39505
39506 2007-01-22  Bruno Haible  <bruno@clisp.org>
39507
39508         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39509         argument.
39510         * lib/striconveh.c (iconv_carefully_1): New function.
39511         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39512         argument.
39513         (str_cd_iconveh): Update.
39514         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39515         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39516         * tests/test-striconveh.c (MAGIC): New macro.
39517         (new_offsets): New function.
39518         (main): Test call with and without offsets.
39519
39520 2007-01-22  Bruno Haible  <bruno@clisp.org>
39521
39522         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39523         * modules/sys_select (Makefile.am): Likewise.
39524         * modules/sys_socket (Makefile.am): Likewise.
39525         * modules/sys_time (Makefile.am): Likewise.
39526
39527 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39528
39529         * modules/gettimeofday (License): Change from GPL to LGPL, since
39530         gettimeofday is a library function.
39531
39532 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39533
39534         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39535
39536 2007-01-21  Bruno Haible  <bruno@clisp.org>
39537
39538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39539
39540 2007-01-21  Bruno Haible  <bruno@clisp.org>
39541
39542         * modules/striconveha: New file.
39543         * lib/striconveha.h: New file.
39544         * lib/striconveha.c: New file.
39545         * MODULES.html.sh (Internationalization functions): Add striconveha.
39546         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39547         string.
39548         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39549
39550 2007-01-21  Bruno Haible  <bruno@clisp.org>
39551
39552         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39553         * lib/striconveh.c (str_iconveh): Likewise.
39554
39555 2007-01-21  Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/striconveh.h (mem_iconveh): New declaration.
39558         * lib/striconveh.c (mem_iconveh): New function.
39559         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39560
39561 2007-01-21  Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39564
39565         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39566         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39567         original result buffer.
39568         (str_cd_iconveh): Update.
39569         * tests/test-striconveh.c (main): Update.
39570
39571         * lib/striconv.h (mem_cd_iconv): Change specification.
39572         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39573         result buffer.
39574         (str_cd_iconv): Update.
39575         * tests/test-striconv.c (main): Update.
39576
39577 2007-01-21  Bruno Haible  <bruno@clisp.org>
39578
39579         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39580
39581 2007-01-20  Jim Meyering  <jim@meyering.net>
39582
39583         * lib/userspec.c (parse_with_separator): If a user or group string
39584         starts with "+", skip the corresponding name-to-ID look-up, since
39585         such a look-up must fail: user and group names may not include "+".
39586
39587 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39588
39589         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39590         since we now assume the sys_time module.
39591         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39592         check for sys/time.h; no longer needed.
39593         * modules/poll (Depends-on): Depend on sys_time.
39594
39595 2007-01-18  Bruno Haible  <bruno@clisp.org>
39596
39597         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39598         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39599
39600         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39601         gettimeofday.
39602
39603         * tests/test-gettimeofday.c: Include <time.h>.
39604         (dummy): Remove variable.
39605
39606         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39607         gl_HEADER_SYS_TIME_H.
39608         (gl_HEADER_SYS_TIME_H): New macro.
39609
39610         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39611         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39613         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39614         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39615         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39616         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39617         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39618         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39619         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39620         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39621
39622         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39623         last change; it caused a compilation error when cross-compiling to
39624         Cygwin.
39625
39626 2007-01-18  Jim Meyering  <jim@meyering.net>
39627
39628         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39629         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39630         than the race-prone "test -d sys || mkdir sys".
39631         (configure.ac): Use AC_PROG_MKDIR_P.
39632         * modules/sys_select: Likewise.
39633         * modules/sys_socket: Likewise.
39634         * modules/sys_time: Likewise.
39635
39636 2007-01-18  Eric Blake  <ebb9@byu.net>
39637
39638         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39639         replace gettimeofday.
39640         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39641         name, to avoid infinite recursion.
39642
39643 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39644
39645         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39646         module sys_time.
39647         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39648         assume timespec.h defines struct timeval.
39649         * lib/settime.c: Likewise.
39650         * lib/utimens.c: Likewise.
39651         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39652         since we now assume the gettimeofday module.
39653         * lib/tempname.c (__gen_tempname): Likewise.
39654         * lib/gettimeofday.h: Remove.
39655         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39656         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39657         Include <time.h>, for 'time()'.
39658         (localtime_buffer_addr): Also use this workaround if
39659         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39660         to simplify the uses.  All uses changed.
39661         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39662         that #undef is inside {}, and 'const' follows type name consistently.
39663         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39664         (gettimeofday): Do not use the maximum possible value for
39665         tv->tv_usec, since that might break usages other than ls.c.
39666         Instead, we'll leave ls.c alone.  This undoes today's patch
39667         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39668         we've never observed the problem but might as well keep the
39669         canary.
39670         * lib/nanosleep.c: Include timespec.h first, for interface check.
39671         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39672         now assume the sys_time module.
39673         * lib/tempname.c: Likewise.
39674         * lib/timespec.h: Likewise.
39675         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39676         needed.
39677         * lib/strftime.c: Likewise.
39678         * lib/timespec.h: Likewise.
39679         * lib/posixtm.c: Include posixtm.h first, for interface check.
39680         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39681         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39682         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39683         * lib/sys_time_.h: New file.
39684         * lib/timespec.h (struct timespec): Use long int, not long.
39685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39686         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39687         Remove obsolescent call to AC_HEADER_TIME.
39688         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39690         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39691         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39692         Likewise.
39693         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39694         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39696         into the sys_time module.  Check for gettimeofday just once.
39697         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39698         for gettimeofday signature to just check the signature.  Merely
39699         compile it, since linking doesn't test signature.  Improve test for
39700         whether gettimeofday.o is actually needed.
39701         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39702         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39703         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39704         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39705         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39706         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39707         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39708         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39709         than worrying about sys/time.h.
39710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39711         Don't bother worrying about TIME_WITH_SYS_TIME.
39712         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39713         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39714         * m4/sys_time_h.m4: New file.
39715         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39716         Don't include sys/time.h.  Return from main rather than exiting.
39717         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39718         all uses changed.
39719         * modules/gethrxtime (Depends-on): Add sys_time.
39720         * modules/gettime (Depends-on): Likewise.
39721         * modules/gettimeofday (Depends-on): Likewise.
39722         * modules/nanosleep (Depends-on): Likewise.
39723         * modules/settime (Depends-on): Likewise.
39724         * modules/tempname (Depends-on): Likewise.
39725         * modules/utimens (Depends-on): Likewise.
39726         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39727         (Include:) Change back to <sys/time.h>.
39728         (Maintainer:) Add self.
39729         * modules/sys_time: New file.
39730         * modules/tempname (Depends-on): Add gettimeofday.
39731         * tests/test-gettimeofday.c: Include <sys/time.h>
39732         rather than gettimeofday.h.
39733
39734 2007-01-17  Bruno Haible  <bruno@clisp.org>
39735
39736         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39737         the license default to GPL.
39738         (func_create_testdir): Don't complain if a module is LGPL and its
39739         tests module depends on GPLed modules.
39740
39741 2007-01-17  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/gettimeofday.c (gettimeofday): Add code for the case
39744         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39745         maximum possible value for tv->tv_usec, rather than the minimum one.
39746
39747 2005-10-08  Martin Lambers  <marlam@marlam.de>
39748 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39749 2007-01-16  Bruno Haible  <bruno@clisp.org>
39750
39751         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39752         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39753         gl_FUNC_GETTIMEOFDAY.
39754         (Include): Add gettimeofday.h.
39755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39756         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39757         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39758         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39759         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39760         * lib/gettimeofday.h: New file.
39761         * lib/gettimeofday.c: Include <sys/timeb.h>.
39762         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39763         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39764         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39765         fall back on time().
39766
39767         * tests/test-gettimeofday.c: New file.
39768         * modules/gettimeofday-tests: New file.
39769
39770 2007-01-16  Eric Blake  <ebb9@byu.net>
39771
39772         * modules/fnmatch (Depends-on): Depend on wchar.
39773         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39774         * m4/fnmatch.m4: Likewise.
39775         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39776         * m4/mbchar.m4: Likewise.
39777         * modules/mbswidth (Depends-on): Depend on wchar.
39778         * lib/mbswidth.c: Assume <wchar.h>.
39779         * m4/mbswidth.m4: Likewise.
39780         * modules/quotearg (Depends-on): Depend on wchar.
39781         * lib/quotearg.c: Assume <wchar.h>.
39782         * m4/quotearg.m4: Likewise.
39783         * modules/regex (Depends-on): Depend on wchar.
39784         * lib/regex_internal.h: Assume <wchar.h>.
39785         * m4/regex.m4: Likewise.
39786         * modules/stdint (Depends-on): Depend on wchar.
39787         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39788         * m4/stdint.m4: Likewise.
39789         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39790         * modules/strftime (Depends-on): Depend on wchar.
39791         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39792         * modules/strtol (Depends-on): Depend on wchar.
39793         * lib/strtol.c: Assume <wchar.h>.
39794         * modules/wcwidth (Depends-on): Depend on wchar.
39795         * lib/wcwidth.h: Assume <wchar.h>.
39796         * m4/wcwidth.m4: Likewise.
39797
39798 2007-01-16  Bruno Haible  <bruno@clisp.org>
39799
39800         * modules/csharpexec-script: New, created from...
39801         * modules/csharpexec: ... this.
39802
39803 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39804
39805         * modules/javaexec-script: New, created from...
39806         * modules/javaexec: ... this.
39807
39808 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39809
39810         * modules/poll (Dependencies): Add sys_select.
39811
39812 2007-01-15  Jim Meyering  <jim@meyering.net>
39813
39814         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39815         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39816         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39817         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39818
39819 2007-01-15  Bruno Haible  <bruno@clisp.org>
39820
39821         * modules/striconveh: New file.
39822         * lib/striconveh.h: New file.
39823         * lib/striconveh.c: New file.
39824         * MODULES.html.sh (Internationalization functions): Add striconveh.
39825
39826         * modules/striconveh-tests: New file.
39827         * tests/test-striconveh.c: New file.
39828
39829 2007-01-15  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39832         not from GNU libiconv or GNU libc.
39833
39834 2007-01-15  Bruno Haible  <bruno@clisp.org>
39835
39836         * doc/gnulib-intro.texi (Copyright): Explain the different license
39837         terms for module descriptions, autoconf macros, tests, documentation.
39838
39839 2007-01-14  Bruno Haible  <bruno@clisp.org>
39840
39841         * modules/striconv-tests: New file.
39842         * tests/test-striconv.c: New file.
39843
39844 2007-01-14  Bruno Haible  <bruno@clisp.org>
39845
39846         * modules/iconv-tests: New file.
39847         * tests/test-iconv.c: New file.
39848
39849 2007-01-14  Bruno Haible  <bruno@clisp.org>
39850
39851         * gnulib-tool (func_get_license): For test modules, use the license of
39852         the main module.
39853
39854 2007-01-14  Bruno Haible  <bruno@clisp.org>
39855
39856         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39857         if iconv is found to exist.
39858
39859 2007-01-14  Bruno Haible  <bruno@clisp.org>
39860
39861         * modules/c-ctype-tests: New file.
39862         * tests/test-c-ctype.c: New file.
39863
39864 2007-01-14  Bruno Haible  <bruno@clisp.org>
39865
39866         * modules/binary-io-tests: New file.
39867         * tests/test-binary-io.sh: New file.
39868         * tests/test-binary-io.c: New file.
39869
39870 2007-01-14  Bruno Haible  <bruno@clisp.org>
39871
39872         * modules/array-oset-tests: New file.
39873         * tests/test-array_oset.c: New file.
39874
39875 2007-01-14  Bruno Haible  <bruno@clisp.org>
39876
39877         * modules/array-list-tests: New file.
39878         * tests/test-array_list.c: New file.
39879
39880 2007-01-14  Bruno Haible  <bruno@clisp.org>
39881
39882         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39883         and make.
39884         Reported by Simon Josefsson in
39885         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39886
39887 2007-01-14  Bruno Haible  <bruno@clisp.org>
39888
39889         * modules/allocsa-tests: New file.
39890         * tests/test-allocsa.c: New file.
39891
39892 2007-01-14  Bruno Haible  <bruno@clisp.org>
39893
39894         * modules/fchdir (Depends-on): Add absolute-header.
39895         * modules/unistd (Depends-on): Likewise.
39896
39897 2006-12-30  Bruno Haible  <bruno@clisp.org>
39898
39899         * modules/fchdir: New file.
39900         * modules/unistd (Files): Add lib/unistd_.h.
39901         (Makefile.am): Generate unistd.h from unistd_.h.
39902         * lib/fchdir.c: New file.
39903         * lib/dirent_.h: New file.
39904         * lib/unistd_.h: New file.
39905         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39906         * m4/fchdir.m4: New file.
39907         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39908         (gl_HEADER_UNISTD): Invoke it.
39909         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39910         function.
39911         * lib/backupfile.c (opendir, closedir): Undefine.
39912         * lib/chown.c (open, close): Undefine.
39913         * lib/clean-temp.c (open, close): Undefine.
39914         * lib/copy-file.c (open, close): Undefine.
39915         * lib/execute.c (open, close): Undefine.
39916         * lib/fsusage.c (open, close): Undefine.
39917         * lib/gc-gnulib.c (open, close): Undefine.
39918         * lib/getcwd.c (opendir, closedir): Undefine.
39919         * lib/glob.c (opendir, closedir): Undefine.
39920         * lib/javacomp.c (open, close): Undefine.
39921         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39922         * lib/openat-proc.c (open, close): Undefine.
39923         * lib/pagealign_alloc.c (open, close): Undefine.
39924         * lib/pipe.c (open, close): Undefine.
39925         * lib/progreloc.c (open, close): Undefine.
39926         * lib/savedir.c (opendir, closedir): Undefine.
39927         * lib/utime.c (open, close): Undefine.
39928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39929
39930 2007-01-10  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39933
39934 2007-01-12  Eric Blake  <ebb9@byu.net>
39935
39936         Provide a robust <wchar.h>.  Further simplifications are now
39937         possible in other modules, but not included here.
39938         * modules/wchar: New module.
39939         * m4/wchar.m4: New file.
39940         * lib/wchar_.h: Likewise.
39941         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39942         of the new module.
39943         * MODULES.html.sh (Extended multibyte and wide character utilities):
39944         New section.
39945
39946 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39947
39948         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39949         to a reasonable default for memory allocation.
39950         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39951         file system that reports garbage st_size values for symlinks.
39952         Problem reported by Liyang Hu.
39953
39954 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39955
39956         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39957         Emacs .#* auto-save files).
39958
39959 2007-01-11  Bruno Haible  <bruno@clisp.org>
39960
39961         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39962         directory.
39963
39964 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39965
39966         Use @...@ consistently in lib/wctype_.h.
39967         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39968         on it being set to 1 or 0.
39969         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39970         go back to AC_SUBSTing it.
39971         * modules/wctype (Makefile.am): Undo previous change.
39972
39973 2007-01-10  Eric Blake  <ebb9@byu.net>
39974
39975         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39976         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39977         * modules/wctype (Makefile.am): Likewise.
39978         Reported by Chris McGuire.
39979
39980 2007-01-10  Jim Meyering  <jim@meyering.net>
39981
39982         fts.c: a small readability/maintainability improvement
39983         * lib/fts.c (fts_read): Make this code slightly more readable and
39984         maintainable by hoisting the "sp->fts_cur = p" assignments to
39985         immediately follow the statements that set P.  Derived from
39986         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39987
39988 2007-01-10  Eric Blake  <ebb9@byu.net>
39989
39990         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39991         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39993         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39994         Reported by Chris McGuire.
39995
39996 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39997
39998         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39999         in sed script.
40000
40001 2007-01-09  Bruno Haible  <bruno@clisp.org>
40002
40003         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40004         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40005         variables.
40006         (func_module): Use them.
40007
40008 2007-01-09  Bruno Haible  <bruno@clisp.org>
40009
40010         * modules/unistr/base: New file.
40011         * lib/unistr.h: New file.
40012
40013         * modules/unistr/u8-to-u16: New file.
40014         * lib/unistr/u8-to-u16.c: New file.
40015
40016         * modules/unistr/u8-to-u32: New file.
40017         * lib/unistr/u8-to-u32.c: New file.
40018
40019         * modules/unistr/u16-to-u8: New file.
40020         * lib/unistr/u16-to-u8.c: New file.
40021
40022         * modules/unistr/u16-to-u32: New file.
40023         * lib/unistr/u16-to-u32.c: New file.
40024
40025         * modules/unistr/u32-to-u8: New file.
40026         * lib/unistr/u32-to-u8.c: New file.
40027
40028         * modules/unistr/u32-to-u16: New file.
40029         * lib/unistr/u32-to-u16.c: New file.
40030
40031         * modules/unistr/u8-check: New file.
40032         * modules/unistr/u16-check: New file.
40033         * modules/unistr/u32-check: New file.
40034         * lib/unistr/u8-check.c: New file.
40035         * lib/unistr/u16-check.c: New file.
40036         * lib/unistr/u32-check.c: New file.
40037
40038         * modules/unistr/u8-chr: New file.
40039         * modules/unistr/u16-chr: New file.
40040         * modules/unistr/u32-chr: New file.
40041         * lib/unistr/u8-chr.c: New file.
40042         * lib/unistr/u16-chr.c: New file.
40043         * lib/unistr/u32-chr.c: New file.
40044
40045         * modules/unistr/u8-cmp: New file.
40046         * modules/unistr/u16-cmp: New file.
40047         * modules/unistr/u32-cmp: New file.
40048         * lib/unistr/u8-cmp.c: New file.
40049         * lib/unistr/u16-cmp.c: New file.
40050         * lib/unistr/u32-cmp.c: New file.
40051
40052         * modules/unistr/u8-cpy: New file.
40053         * modules/unistr/u16-cpy: New file.
40054         * modules/unistr/u32-cpy: New file.
40055         * lib/unistr/u8-cpy.c: New file.
40056         * lib/unistr/u16-cpy.c: New file.
40057         * lib/unistr/u32-cpy.c: New file.
40058         * lib/unistr/u-cpy.h: New file.
40059
40060         * modules/unistr/u8-cpy-alloc: New file.
40061         * modules/unistr/u16-cpy-alloc: New file.
40062         * modules/unistr/u32-cpy-alloc: New file.
40063         * lib/unistr/u8-cpy-alloc.c: New file.
40064         * lib/unistr/u16-cpy-alloc.c: New file.
40065         * lib/unistr/u32-cpy-alloc.c: New file.
40066         * lib/unistr/u-cpy-alloc.h: New file.
40067
40068         * modules/unistr/u8-endswith: New file.
40069         * modules/unistr/u16-endswith: New file.
40070         * modules/unistr/u32-endswith: New file.
40071         * lib/unistr/u8-endswith.c: New file.
40072         * lib/unistr/u16-endswith.c: New file.
40073         * lib/unistr/u32-endswith.c: New file.
40074         * lib/unistr/u-endswith.h: New file.
40075
40076         * modules/unistr/u8-mblen: New file.
40077         * modules/unistr/u16-mblen: New file.
40078         * modules/unistr/u32-mblen: New file.
40079         * lib/unistr/u8-mblen.c: New file.
40080         * lib/unistr/u16-mblen.c: New file.
40081         * lib/unistr/u32-mblen.c: New file.
40082
40083         * modules/unistr/u8-mbtouc: New file.
40084         * modules/unistr/u16-mbtouc: New file.
40085         * modules/unistr/u32-mbtouc: New file.
40086         * lib/unistr/u8-mbtouc.c: New file.
40087         * lib/unistr/u16-mbtouc.c: New file.
40088         * lib/unistr/u32-mbtouc.c: New file.
40089
40090         * modules/unistr/u8-mbtouc-safe: New file.
40091         * modules/unistr/u16-mbtouc-safe: New file.
40092         * modules/unistr/u32-mbtouc-safe: New file.
40093         * lib/unistr/u8-mbtouc-safe.c: New file.
40094         * lib/unistr/u16-mbtouc-safe.c: New file.
40095         * lib/unistr/u32-mbtouc-safe.c: New file.
40096
40097         * modules/unistr/u8-move: New file.
40098         * modules/unistr/u16-move: New file.
40099         * modules/unistr/u32-move: New file.
40100         * lib/unistr/u8-move.c: New file.
40101         * lib/unistr/u16-move.c: New file.
40102         * lib/unistr/u32-move.c: New file.
40103         * lib/unistr/u-move.h: New file.
40104
40105         * modules/unistr/u8-next: New file.
40106         * modules/unistr/u16-next: New file.
40107         * modules/unistr/u32-next: New file.
40108         * lib/unistr/u8-next.c: New file.
40109         * lib/unistr/u16-next.c: New file.
40110         * lib/unistr/u32-next.c: New file.
40111
40112         * modules/unistr/u8-prev: New file.
40113         * modules/unistr/u16-prev: New file.
40114         * modules/unistr/u32-prev: New file.
40115         * lib/unistr/u8-prev.c: New file.
40116         * lib/unistr/u16-prev.c: New file.
40117         * lib/unistr/u32-prev.c: New file.
40118
40119         * modules/unistr/u8-set: New file.
40120         * modules/unistr/u16-set: New file.
40121         * modules/unistr/u32-set: New file.
40122         * lib/unistr/u8-set.c: New file.
40123         * lib/unistr/u16-set.c: New file.
40124         * lib/unistr/u32-set.c: New file.
40125         * lib/unistr/u-set.h: New file.
40126
40127         * modules/unistr/u8-startswith: New file.
40128         * modules/unistr/u16-startswith: New file.
40129         * modules/unistr/u32-startswith: New file.
40130         * lib/unistr/u8-startswith.c: New file.
40131         * lib/unistr/u16-startswith.c: New file.
40132         * lib/unistr/u32-startswith.c: New file.
40133         * lib/unistr/u-startswith.h: New file.
40134
40135         * modules/unistr/u8-stpcpy: New file.
40136         * modules/unistr/u16-stpcpy: New file.
40137         * modules/unistr/u32-stpcpy: New file.
40138         * lib/unistr/u8-stpcpy.c: New file.
40139         * lib/unistr/u16-stpcpy.c: New file.
40140         * lib/unistr/u32-stpcpy.c: New file.
40141         * lib/unistr/u-stpcpy.h: New file.
40142
40143         * modules/unistr/u8-stpncpy: New file.
40144         * modules/unistr/u16-stpncpy: New file.
40145         * modules/unistr/u32-stpncpy: New file.
40146         * lib/unistr/u8-stpncpy.c: New file.
40147         * lib/unistr/u16-stpncpy.c: New file.
40148         * lib/unistr/u32-stpncpy.c: New file.
40149         * lib/unistr/u-stpncpy.h: New file.
40150
40151         * modules/unistr/u8-strcat: New file.
40152         * modules/unistr/u16-strcat: New file.
40153         * modules/unistr/u32-strcat: New file.
40154         * lib/unistr/u8-strcat.c: New file.
40155         * lib/unistr/u16-strcat.c: New file.
40156         * lib/unistr/u32-strcat.c: New file.
40157         * lib/unistr/u-strcat.h: New file.
40158
40159         * modules/unistr/u8-strchr: New file.
40160         * modules/unistr/u16-strchr: New file.
40161         * modules/unistr/u32-strchr: New file.
40162         * lib/unistr/u8-strchr.c: New file.
40163         * lib/unistr/u16-strchr.c: New file.
40164         * lib/unistr/u32-strchr.c: New file.
40165
40166         * modules/unistr/u8-strcmp: New file.
40167         * modules/unistr/u16-strcmp: New file.
40168         * modules/unistr/u32-strcmp: New file.
40169         * lib/unistr/u8-strcmp.c: New file.
40170         * lib/unistr/u16-strcmp.c: New file.
40171         * lib/unistr/u32-strcmp.c: New file.
40172
40173         * modules/unistr/u8-strcpy: New file.
40174         * modules/unistr/u16-strcpy: New file.
40175         * modules/unistr/u32-strcpy: New file.
40176         * lib/unistr/u8-strcpy.c: New file.
40177         * lib/unistr/u16-strcpy.c: New file.
40178         * lib/unistr/u32-strcpy.c: New file.
40179         * lib/unistr/u-strcpy.h: New file.
40180
40181         * modules/unistr/u8-strcspn: New file.
40182         * modules/unistr/u16-strcspn: New file.
40183         * modules/unistr/u32-strcspn: New file.
40184         * lib/unistr/u8-strcspn.c: New file.
40185         * lib/unistr/u16-strcspn.c: New file.
40186         * lib/unistr/u32-strcspn.c: New file.
40187         * lib/unistr/u-strcspn.h: New file.
40188
40189         * modules/unistr/u8-strdup: New file.
40190         * modules/unistr/u16-strdup: New file.
40191         * modules/unistr/u32-strdup: New file.
40192         * lib/unistr/u8-strdup.c: New file.
40193         * lib/unistr/u16-strdup.c: New file.
40194         * lib/unistr/u32-strdup.c: New file.
40195         * lib/unistr/u-strdup.h: New file.
40196
40197         * modules/unistr/u8-strlen: New file.
40198         * modules/unistr/u16-strlen: New file.
40199         * modules/unistr/u32-strlen: New file.
40200         * lib/unistr/u8-strlen.c: New file.
40201         * lib/unistr/u16-strlen.c: New file.
40202         * lib/unistr/u32-strlen.c: New file.
40203         * lib/unistr/u-strlen.h: New file.
40204
40205         * modules/unistr/u8-strmblen: New file.
40206         * modules/unistr/u16-strmblen: New file.
40207         * modules/unistr/u32-strmblen: New file.
40208         * lib/unistr/u8-strmblen.c: New file.
40209         * lib/unistr/u16-strmblen.c: New file.
40210         * lib/unistr/u32-strmblen.c: New file.
40211
40212         * modules/unistr/u8-strmbtouc: New file.
40213         * modules/unistr/u16-strmbtouc: New file.
40214         * modules/unistr/u32-strmbtouc: New file.
40215         * lib/unistr/u8-strmbtouc.c: New file.
40216         * lib/unistr/u16-strmbtouc.c: New file.
40217         * lib/unistr/u32-strmbtouc.c: New file.
40218
40219         * modules/unistr/u8-strncat: New file.
40220         * modules/unistr/u16-strncat: New file.
40221         * modules/unistr/u32-strncat: New file.
40222         * lib/unistr/u8-strncat.c: New file.
40223         * lib/unistr/u16-strncat.c: New file.
40224         * lib/unistr/u32-strncat.c: New file.
40225         * lib/unistr/u-strncat.h: New file.
40226
40227         * modules/unistr/u8-strncmp: New file.
40228         * modules/unistr/u16-strncmp: New file.
40229         * modules/unistr/u32-strncmp: New file.
40230         * lib/unistr/u8-strncmp.c: New file.
40231         * lib/unistr/u16-strncmp.c: New file.
40232         * lib/unistr/u32-strncmp.c: New file.
40233
40234         * modules/unistr/u8-strncpy: New file.
40235         * modules/unistr/u16-strncpy: New file.
40236         * modules/unistr/u32-strncpy: New file.
40237         * lib/unistr/u8-strncpy.c: New file.
40238         * lib/unistr/u16-strncpy.c: New file.
40239         * lib/unistr/u32-strncpy.c: New file.
40240         * lib/unistr/u-strncpy.h: New file.
40241
40242         * modules/unistr/u8-strnlen: New file.
40243         * modules/unistr/u16-strnlen: New file.
40244         * modules/unistr/u32-strnlen: New file.
40245         * lib/unistr/u8-strnlen.c: New file.
40246         * lib/unistr/u16-strnlen.c: New file.
40247         * lib/unistr/u32-strnlen.c: New file.
40248         * lib/unistr/u-strnlen.h: New file.
40249
40250         * modules/unistr/u8-strpbrk: New file.
40251         * modules/unistr/u16-strpbrk: New file.
40252         * modules/unistr/u32-strpbrk: New file.
40253         * lib/unistr/u8-strpbrk.c: New file.
40254         * lib/unistr/u16-strpbrk.c: New file.
40255         * lib/unistr/u32-strpbrk.c: New file.
40256         * lib/unistr/u-strpbrk.h: New file.
40257
40258         * modules/unistr/u8-strrchr: New file.
40259         * modules/unistr/u16-strrchr: New file.
40260         * modules/unistr/u32-strrchr: New file.
40261         * lib/unistr/u8-strrchr.c: New file.
40262         * lib/unistr/u16-strrchr.c: New file.
40263         * lib/unistr/u32-strrchr.c: New file.
40264
40265         * modules/unistr/u8-strspn: New file.
40266         * modules/unistr/u16-strspn: New file.
40267         * modules/unistr/u32-strspn: New file.
40268         * lib/unistr/u8-strspn.c: New file.
40269         * lib/unistr/u16-strspn.c: New file.
40270         * lib/unistr/u32-strspn.c: New file.
40271         * lib/unistr/u-strspn.h: New file.
40272
40273         * modules/unistr/u8-strstr: New file.
40274         * modules/unistr/u16-strstr: New file.
40275         * modules/unistr/u32-strstr: New file.
40276         * lib/unistr/u8-strstr.c: New file.
40277         * lib/unistr/u16-strstr.c: New file.
40278         * lib/unistr/u32-strstr.c: New file.
40279         * lib/unistr/u-strstr.h: New file.
40280
40281         * modules/unistr/u8-strtok: New file.
40282         * modules/unistr/u16-strtok: New file.
40283         * modules/unistr/u32-strtok: New file.
40284         * lib/unistr/u8-strtok.c: New file.
40285         * lib/unistr/u16-strtok.c: New file.
40286         * lib/unistr/u32-strtok.c: New file.
40287         * lib/unistr/u-strtok.h: New file.
40288
40289         * modules/unistr/u8-uctomb: New file.
40290         * modules/unistr/u16-uctomb: New file.
40291         * modules/unistr/u32-uctomb: New file.
40292         * lib/unistr/u8-uctomb.c: New file.
40293         * lib/unistr/u16-uctomb.c: New file.
40294         * lib/unistr/u32-uctomb.c: New file.
40295
40296         * MODULES.html.sh (Unicode string functions): Add the new modules.
40297
40298 2007-01-08  Bruno Haible  <bruno@clisp.org>
40299
40300         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40301         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40302         subdirectories.
40303
40304 2007-01-08  Karl Berry  <karl@gnu.org>
40305
40306         * doc/error.texi: mention that main() fns must set program_name
40307         when progname is used.
40308
40309 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40310
40311         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40312         WCTYPE_H is empty, for the benefit of builds from non-distclean
40313         directories.  Problem reported by Eric Blake in
40314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40315
40316 2007-01-08  Bruno Haible  <bruno@clisp.org>
40317
40318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40319         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40320         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40321         PROVIDE_CANONICALIZE_FILENAME_MODE.
40322         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40323
40324 2007-01-08  Bruno Haible  <bruno@clisp.org>
40325
40326         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40327         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40328         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40329         * lib/fts.c: Likewise.
40330         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40331
40332 2006-12-25  Bruno Haible  <bruno@clisp.org>
40333
40334         * modules/utf8-ucs4-safe: New file.
40335         * lib/utf8-ucs4-safe.h: New file.
40336         * lib/unistr/utf8-ucs4-safe.c: New file.
40337
40338         * modules/utf16-ucs4-safe: New file.
40339         * lib/utf16-ucs4-safe.h: New file.
40340         * lib/unistr/utf16-ucs4-safe.c: New file.
40341
40342         * MODULES.html.sh (Unicode string functions): Add the new modules.
40343
40344 2007-01-08  Bruno Haible  <bruno@clisp.org>
40345
40346         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40347         (Depends-on): Add unitypes.
40348         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40349         (u8_mbtouc_aux): Move out to separate file.
40350         (u8_mbtouc): Use ucs4_t, uint8_t types.
40351         * lib/unistr/utf8-ucs4.c: New file.
40352
40353         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40354         (Depends-on): Add unitypes.
40355         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40356         (u16_mbtouc_aux): Move out to separate file.
40357         (u16_mbtouc): Use ucs4_t, uint16_t types.
40358         * lib/unistr/utf16-ucs4.c: New file.
40359
40360         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40361         (Depends-on): Add unitypes.
40362         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40363         (u8_uctomb_aux): Move out to separate file.
40364         (u8_uctomb): Use ucs4_t, uint8_t types.
40365         * lib/unistr/ucs4-utf8.c: New file.
40366
40367         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40368         (Depends-on): Add unitypes.
40369         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40370         (u16_uctomb_aux): Move out to separate file.
40371         (u16_uctomb): Use ucs4_t, uint16_t types.
40372         * lib/unistr/ucs4-utf16.c: New file.
40373
40374 2006-12-25  Bruno Haible  <bruno@clisp.org>
40375
40376         * modules/unitypes: New file.
40377         * lib/unitypes.h: New file.
40378         * MODULES.html.sh (func_all_modules): New section "Unicode string
40379         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40380         this section. Add unitypes.
40381
40382 2007-01-08  Bruno Haible  <bruno@clisp.org>
40383
40384         Avoid variable names that conflict with those from libtool.
40385         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40386         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40387         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40388         library_names_spec to acl_library_names_spec, hardcode_* to
40389         acl_hardcode_*.
40390         Reported by Ralf Wildenhues.
40391
40392 2007-01-08  Bruno Haible  <bruno@clisp.org>
40393
40394         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40395         definition.
40396         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40397         definition.
40398         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40399         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40400         definition.
40401         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40402         definition.
40403         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40404         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40405         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40406         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40407         definition.
40408         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40409         definition.
40410         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40411         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40412         GC_USE_<algorithm>.
40413         * lib/gc-libgcrypt.c: Likewise.
40414         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40415         * modules/gc-arctwo (configure.ac): Likewise.
40416         * modules/gc-des (configure.ac): Likewise.
40417         * modules/gc-hmac-md5 (configure.ac): Likewise.
40418         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40419         * modules/gc-md2 (configure.ac): Likewise.
40420         * modules/gc-md4 (configure.ac): Likewise.
40421         * modules/gc-md5 (configure.ac): Likewise.
40422         * modules/gc-random (configure.ac): Likewise.
40423         * modules/gc-rijndael (configure.ac): Likewise.
40424         * modules/gc-sha1 (configure.ac): Likewise.
40425
40426 2007-01-08  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40429         macro definition.
40430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40431         definition.
40432         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40433         definition.
40434         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40435         * modules/fcntl-safer (configure.ac): Likewise.
40436         * modules/fopen-safer (configure.ac): Likewise.
40437         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40438         GNULIB_FWRITEERROR macro definition.
40439
40440 2007-01-08  Bruno Haible  <bruno@clisp.org>
40441
40442         * m4/gnulib-common.m4: New file.
40443         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40444         (func_get_filelist): Add m4/gnulib-common.m4.
40445
40446 2007-01-08  Bruno Haible  <bruno@clisp.org>
40447
40448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40449         command.
40450
40451 2007-01-08  Jim Meyering  <jim@meyering.net>
40452
40453         Use a more robust test for a "can't happen" condition.
40454         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40455         narrowed the st_size value.  Presuming the "can't happen" condition
40456         is true, that narrowing could conceivably convert an invalid st_size
40457         value into a valid one.  Instead, use a change based on Matthew
40458         Woehlke's original patch.
40459
40460         Slight readability improvement: use an assert-like macro
40461         in place of literal "abort ()" uses.
40462         * lib/fts.c (fts_assert): Define.
40463         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40464         Use this macro instead of a bare 'abort'.
40465
40466 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40469         simply work around them.
40470         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40471         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40472         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40473         declaring.
40474         Don't bother to define as macros, since the standard doesn't require it.
40475         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40476         longer worry about IRIX 5.3.
40477         (HAVE_WCTYPE_CTMP_BUG): Remove.
40478
40479 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40480
40481         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40482         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40483         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40484         Problems reported by Georg Schwarz for IRIX 5.3.
40485
40486         * gnulib-tool (autoconf_minversion): Take the maximum version number
40487         found, not the minimum.  Problem reported by James Youngman.
40488
40489 2007-01-03  Karl Berry  <karl@gnu.org>
40490
40491         * doc/error.texi: new file, explaining interaction with progname.
40492         * doc/gnulib.texi: include it.  Update copyright.
40493
40494 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40495
40496         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40497         AC_CANONICAL_HOST, to improve autobuild outputs.
40498
40499 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40500             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40501
40502         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40503         sockets, server sockets, and other file descriptors.  Count errors
40504         to compute the return value.  Reorder the code a bit to be easier
40505         to follow.  Don't set event bits that were not requested (except
40506         POLLERR and POLLHUP).
40507
40508 2007-01-01  Bruno Haible  <bruno@clisp.org>
40509
40510         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40511
40512 2007-01-03  Jim Meyering  <jim@meyering.net>
40513
40514         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40515
40516 2007-01-02  Bruno Haible  <bruno@clisp.org>
40517
40518         * modules/settime (Include): Require timespec.h.
40519         * modules/nanosleep (Include): Likewise.
40520
40521 2007-01-01  Bruno Haible  <bruno@clisp.org>
40522
40523         * gnulib-tool (func_emit_copyright_notice): Bump year.
40524         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40525
40526 2007-01-01  Bruno Haible  <bruno@clisp.org>
40527
40528         Improve support for OpenBSD.
40529         * build-aux/config.rpath (libname_spec): Export.
40530         (library_names_spec): New variable. Export.
40531         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40532         library_names_spec from the config.rpath output. Locate shared library
40533         through the name pattern in library_names_spec.
40534
40535 2007-01-01  Eric Blake  <ebb9@byu.net>
40536
40537         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40538
40539 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40540
40541         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40542         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40543         assume the C locale, and avoid an "eval" that could cause trouble.
40544         Problem with SORT reported by Bob Proulx.
40545
40546         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40547         Define.  Trivial patch from Henning Nielsen Lund, originally
40548         sent to bug-grep@gnu.org today.
40549
40550 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40551
40552         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40553         struct stat.  Problem reported by Henning Nielsen Lund.
40554         * lib/acl.c: Include acl.h first, to check interface.  Don't
40555         bother to include sys/types.h and sys/stat.h again.
40556
40557 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40558
40559         Import the following change from libc; problem reported by
40560         Sven Verdoolaege.
40561
40562         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40563
40564         [BZ #1373]
40565         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40566
40567 2006-12-28  Jim Meyering  <jim@meyering.net>
40568
40569         * build-aux/announce-gen: Do not assume that the package
40570         builds any of tar.gz, tar.bz2, and .xdelta files.
40571         Suggestion from Simon Josefsson.
40572
40573 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40574
40575         * modules/announce-gen: New file.
40576
40577 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40578
40579         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40580         handles its gotchas now.
40581         * lib/mbswidth.c: Likewise.
40582         * lib/wcwidth.h: Likewise.
40583         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40584         and iswcntrl; the wctype module does this stuff now.
40585         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40587         * modules/mbchar (Depends-on): Add wctype.
40588         * modules/mbswidth (Depends-on): Likewise.
40589         * modules/wcwidth (Depends-on): Likewise.
40590
40591 2006-12-27  Eric Blake  <ebb9@byu.net>
40592
40593         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40594         module uses more than what <wctype.h> is required to provide.
40595
40596 2006-12-26  Eric Blake  <ebb9@byu.net>
40597
40598         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40599
40600 2006-12-26  Eric Blake  <ebb9@byu.net>
40601
40602         * modules/absolute-header: New module.
40603         * modules/fcntl (Depends-on): Depend on it.
40604         * modules/inttypes (Depends-on): Likewise.
40605         * modules/stdint (Depends-on): Likewise.
40606         * modules/sys_stat (Depends-on): Likewise.
40607         * modules/wctype (Depends-on): Likewise.
40608         * MODULES.html.sh (Support for building libraries and
40609         executables): Document it.
40610
40611 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * gnulib-tool (SED): Remove, undoing previous change.
40614         The problem was that it broke coreutils on Solaris, because
40615         "sed --posix" leaked into a makefile.
40616         (sed): New alias, if 'alias' and GNU sed.
40617
40618 2006-12-24  Jim Meyering  <jim@meyering.net>
40619
40620         Work around an fchownat bug in glibc-2.4:
40621         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40622         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40623         in spite of the -P option.
40624         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40625         New macros.
40626         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40627         * modules/openat (Files): Add lib/fchownat.c.
40628         * lib/openat.c (fchownat): Don't define here.  Move to...
40629         * lib/fchownat.c: ...this new file.
40630
40631 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40632
40633         Fix bug reported by Bruno Haible in
40634         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40635         where quotearg.c didn't compile on Mac OS X 10.2 because it
40636         lacks <wchar.h> and wint_t.
40637         * lib/wctype_.h (__wctype_wint_t): New type.
40638         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40639         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40640         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40641         Arg is now of type __wctype_wint_t, not wint_t.
40642         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40643         substitute HAVE_WINT_T.
40644         * modules/wctype (Files): Add m4/wint_t.m4.
40645         (wctype.h): Substitute HAVE_WINT_T.
40646
40647 2006-12-23  Bruno Haible  <bruno@clisp.org>
40648
40649         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40650
40651 2006-12-23  Bruno Haible  <bruno@clisp.org>
40652
40653         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40654         S_ISLNK.
40655         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40656         mingw.
40657
40658 2006-12-22  Bruno Haible  <bruno@clisp.org>
40659
40660         * lib/copy-file.c: Include acl.h.
40661         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40662         Close the file descriptors only after being done with copy_acl.
40663         * modules/copy-file (Depends-on): Add acl.
40664
40665 2006-12-22  Bruno Haible  <bruno@clisp.org>
40666
40667         * gnulib-tool (SED): New variable.
40668         Use $SED instead of sed everywhere.
40669
40670 2006-12-22  Bruno Haible  <bruno@clisp.org>
40671
40672         * modules/no-c++: New file.
40673         * m4/no-c++.m4: New file.
40674         * MODULES.html.sh (Support for building libraries and executables):
40675         Add no-c++.
40676
40677 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40678
40679         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40680         Include <limits.h>, and use its INT_MAX to rewrite the
40681         j loop so that it does not overflow 'int'.  Problem reported by
40682         Ralf Wildenhues in
40683         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40684         Play it safe by shifting left by 1 rather than multiplying by 2,
40685         as GCC is less likely to optimize this away when the value
40686         is signed (when it assumes overflow leads to undefined behavior).
40687         Also, don't assume time_t uses two's complement.
40688
40689 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40690
40691         * MODULES.html.sh: New module wctype.
40692         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40693         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40694         <wctype.h>, since the new wctype module should fix this.
40695         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40696         the wctype module should arrange for it.
40697         * lib/regex_internal.h: Likewise.
40698         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40699         since the wctype module should handle this now.
40700         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40701         * modules/fnmatch (Depends-on): Add wctype.
40702         * modules/quotearg (Depends-on): Likewise.
40703         * modules/regex (Depends-on): Likewise.
40704
40705 2006-12-19  Bruno Haible  <bruno@clisp.org>
40706
40707         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40708         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40709
40710 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40711
40712         * modules/savewd (Depends-on): Fix dependency on fcntl.
40713
40714 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40715
40716         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40717         conforms to C99, rather than relying on the user's environment
40718         setting of STDINT_H.
40719
40720 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40721         and Eric Blake  <ebb9@byu.net>
40722
40723         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40724         This is more consistent with the other defines here.
40725         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40726         Port to z/OS.  Problem reported by Paul Gilmartin.
40727         Change local vars to use gl_ prefix rather than ac_.
40728         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40729         with other defines.
40730         * modules/double-slash-root: New module.
40731         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40732         (Depends-on): Add double-slash-root.
40733         * MODULES.html.sh (File system functions): Mention new module.
40734
40735 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40736
40737         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40738         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40739         This is for the benefit of gzip, which doesn't do i18n.
40740
40741 2006-12-12  Jim Meyering  <jim@meyering.net>
40742
40743         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40744         Reported by Andreas Schwab <schwab@suse.de>.
40745
40746 2006-12-12  Bruno Haible  <bruno@clisp.org>
40747
40748         Merge these changes.
40749         2006-09-05  Bruno Haible  <bruno@clisp.org>
40750         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40751         iconv_alloc succeeded.
40752         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40753         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40754         test for " && dest " at the end - dest is always != NULL there. Call
40755         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40756         with 2xNULL arguments, also to flush the state storage. Handle the
40757         IRIX iconv behaviour. Realloc the final result, to throw away unused
40758         memory.
40759
40760 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40761
40762         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40763         and fchmodat unconditionally, since glibc 2.4 has them.
40764         Problem reported by Arkadiusz Miskiewicz.
40765
40766 2006-12-10  Bruno Haible  <bruno@clisp.org>
40767
40768         * gnulib-tool (func_import): Show the include files only for those
40769         modules that are copied and specified.
40770         Reported by Karl Berry.
40771
40772 2006-12-08  Jim Meyering  <jim@meyering.net>
40773
40774         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40775         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40776
40777         * build-aux/announce-gen: Add two new options, both optional:
40778         --bootstrap-tools=TOOL_LIST
40779               a comma-separated list of tools, e.g.,
40780               autoconf,automake,bison,gnulib
40781         --gnulib-snapshot-date=DATE
40782               if gnulib is in the bootstrap tool list,
40783               then report this as the snapshot date.
40784               If not specified, use the current date/time.
40785               If you specify a date here, be sure it's UTC.
40786
40787 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40788
40789         * tests/test-argp-2.sh: Fix test to match actual output.
40790         (func_compare): Fix sed script to be portable.
40791
40792 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40793
40794         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40795         workaround for this case.  It is not autoconfigured now; offhand
40796         it's hard to see how to autoconfigure it.
40797
40798 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40799
40800         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40801         a directory that is about to be chowned.  Such a directory's
40802         initial file permissions should permit the owner only and this
40803         should not be changed until after the chown, since the group and
40804         other bits would be incorrect if they granted permission before
40805         the chown.
40806
40807         Fix porting problem for iswctype reported by Georg Schwarz in:
40808         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40809         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40810         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40812         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40813
40814 2006-12-03  Jim Meyering  <jim@meyering.net>
40815
40816         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40817         p->fts_statp may not yet be defined.
40818         (fts_read): Instead, set it in the caller, once p->fts_statp is
40819         sure to be defined, and corresponds to a top-level directory.
40820         This bug made du -x fail.  Here's the coreutils test case:
40821         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40822         Reported by Mike Frysinger.
40823
40824 2006-12-01  Jim Meyering  <jim@meyering.net>
40825
40826         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40827         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40828         Reported by Simon Josefsson.
40829
40830 2006-11-30  Jim Meyering  <jim@meyering.net>
40831
40832         * m4/warning.m4: Use the all-permissive copyright notice
40833         recommended by RMS (rather than LGPL).
40834         * m4/vararrays.m4: Likewise.
40835         * m4/flexmember.m4: Likewise.
40836
40837 2006-11-29  Bruno Haible  <bruno@clisp.org>
40838
40839         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40840         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40841         using +=.
40842         Reported by Simon Josefsson <simon@josefsson.org>.
40843
40844 2006-11-28  James Youngman <jay@gnu.org>
40845
40846         * README: Advise users that they might find the bug-gnulib@gnu.org
40847         and autotools-announce@gnu.org mailing lists useful.
40848
40849 2006-11-28  Bruno Haible  <bruno@clisp.org>
40850
40851         * m4/ptrdiff_max.m4: Remove file.
40852
40853 2006-11-21  Bruno Haible  <bruno@clisp.org>
40854
40855         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40856         _AC_COMPUTE_INT.
40857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40858         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40859         _AC_COMPUTE_INT.
40860         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40861         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40862         _AC_COMPUTE_INT.
40863         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40864
40865 2006-11-28  Jim Meyering  <jim@meyering.net>
40866
40867         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40868         warning from "gcc -Wshadow" about shadowing the builtin.
40869
40870 2006-11-27  Bruno Haible  <bruno@clisp.org>
40871
40872         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40873         _AC_COMPUTE_INT.
40874         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40875
40876 2006-11-27  Bruno Haible  <bruno@clisp.org>
40877             Paul Eggert  <eggert@cs.ucla.edu>
40878
40879         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40880
40881 2006-11-26  Bruno Haible  <bruno@clisp.org>
40882
40883         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40884         noinst_LTLIBRARIES.
40885
40886 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40887             Bruno Haible  <bruno@clisp.org>
40888
40889         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40890         if compiling with "gcc -ansi".
40891
40892 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40893
40894         Fix some incompatibilities with gcc -ansi -pedantic.
40895         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40896         if compiling pedantically with GCC, unless it's C99 or later.
40897         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40898         it mishandles gcc -ansi -pedantic as well.
40899         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40900         if gcc -pedantic.
40901         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40902         initializers for struct if -pedantic, unless it's C99 or later.
40903
40904 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40905
40906         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40907         Don't close an fd more than once. Identical atimes indicate
40908         success, not failure.
40909
40910 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40911
40912         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40913
40914 2006-11-23  Jim Meyering  <jim@meyering.net>
40915
40916         * build-aux/announce-gen: New file.  From coreutils.
40917
40918 2006-11-22  Jim Meyering  <jim@meyering.net>
40919
40920         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40921         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40922         (fts_read): Use a temporary to narrow the overused st_size member
40923         before using it in a switch statement.  Reported by Matthew Woehlke.
40924
40925         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40926         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40927
40928 2006-11-20  Bruno Haible  <bruno@clisp.org>
40929
40930         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40931         changequote instead of pairs of brackets.
40932         Reported by Andreas Schwab <schwab@suse.de>.
40933
40934 2006-11-21  Jim Meyering  <jim@meyering.net>
40935
40936         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40937         so as to remain compatible with older compilers.
40938         Patch from Michael Deutschmann.
40939
40940 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40941
40942         * MODULES.html.sh (File system functions): Add openat.
40943
40944         * lib/openat.h (rpl_fstatat): New macro, if
40945         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40946         (fstatat): Define to rpl_fstatat under the same conditions,
40947         unless COMPILING_FSTATAT.
40948         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40949         seems to have the bug.
40950         * lib/fstatat.c: New file.
40951         * modules/openat (Files): Add it.
40952
40953 2006-11-20  Bruno Haible  <bruno@clisp.org>
40954
40955         * Makefile: New file.
40956
40957 2006-11-20  Jim Meyering  <jim@meyering.net>
40958
40959         The beginnings of syntax-related checks for gnulib.
40960         * lib/Makefile: New file.
40961         * lib/t-idcache: New script.  Ensure that the two halves of
40962         idcache.c stay in sync.
40963
40964         * lib/idcache.c: Adjust comments in user- and group- portions to
40965         be more accurate, and to be consistent with one another.
40966
40967 2006-11-20  Jim Meyering  <jim@meyering.net>
40968
40969         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40970         continue using the flexible array member (thus, this module performs
40971         half as many malloc calls), with the addition that...
40972         (getgroup, getuser): Consistently record a non-match via an empty
40973         "name" string, and map an empty string match to a NULL return value.
40974         * modules/idcache (Depends-on): Re-add flexmember.
40975
40976         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40977         (getuidbyname, getgroup, getgidbyname): Likewise.
40978
40979         Use cleaner syntax: NULL rather than 0.
40980         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40981
40982 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40983
40984         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40985         It mishandled the case where the group was missing.
40986         Problem reported by Greg Schafer.
40987         * modules/idcache: Likewise.
40988
40989 2006-11-18  Jim Meyering  <jim@meyering.net>
40990
40991         * check-module (%exempt_header): Add exception for some
40992         conditionally-included headers.
40993
40994         * modules/i-ring (Depends-on): Add verify.
40995         (License): Change to LGPL.
40996
40997 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40998
40999         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41000         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41001         and inttostr.h.  Use snprintf rather than uinttostr, so that
41002         LGPLed code doesn't depend on GPLed.
41003
41004 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41005
41006         * modules/inline (License): Change from GPL to LGPL.
41007
41008 2006-11-17  Jim Meyering  <jim@meyering.net>
41009
41010         * modules/d-type (License): Switch to LGPL.
41011
41012 2006-11-15  Bruno Haible  <bruno@clisp.org>
41013
41014         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41015
41016 2006-11-15  Eric Blake  <ebb9@byu.net>
41017
41018         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41019         the module dependency.
41020
41021 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41022             Bruno Haible  <bruno@clisp.org>
41023
41024         * gnulib-tool (func_create_testdir): Add license consistency check.
41025
41026 2006-11-15  Eric Blake  <ebb9@byu.net>
41027
41028         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41029         random "(cached)" in configure output.
41030
41031 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41032
41033         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41034         test for conforming inttypes.h is both announced and cached.
41035
41036         * MODULES.html.sh (seen_modules, seen_files): New variables.
41037         (func_module): Rewrite to use a few less gnulib-tool and sed
41038         invocations.  Avoid a couple of quadratic algorithms for ...
41039         (missed_modules, missed_files): ... these, with ...
41040         (func_append, func_tmpdir): ... these new functions, from
41041         gnulib-tool.  Analogously, install traps for cleanup.
41042
41043         * tests/test-gc.c (main): Remove unused variables.
41044         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41045
41046 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41047
41048         * modules/inttostr (License): Change to LGPL.
41049
41050 2006-11-14  Eric Blake  <ebb9@byu.net>
41051
41052         * modules/tempname (License): Change to LGPL.
41053
41054 2006-11-14  Eric Blake  <ebb9@byu.net>
41055
41056         * doc/functions.texi (Function Portability): *printf functions on
41057         Cygwin now understand all POSIX size specifiers.
41058
41059 2006-11-14  Bruno Haible  <bruno@clisp.org>
41060
41061         * modules/c-ctype (License): Change to LGPL.
41062
41063 2006-11-12  Bruno Haible  <bruno@clisp.org>
41064
41065         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41066         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41067         for GNOME libraries, for which the include files are installed in
41068         subdirectories of $prefix/include.
41069
41070 2006-11-12  Bruno Haible  <bruno@clisp.org>
41071
41072         * m4/lib-link.m4: Require at least autoconf-2.54.
41073         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41074         name to underscores for the --with option.
41075
41076 2006-11-13  Bruno Haible  <bruno@clisp.org>
41077
41078         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41079         the tests directory.
41080         Reported by Ralf Wildenhues.
41081
41082 2006-11-13  Bruno Haible  <bruno@clisp.org>
41083
41084         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41085         (func_emit_initmacro_end): Undo the override here.
41086         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41087         Works around the famous automake error in coreutils.
41088
41089 2006-11-13  Eric Blake  <ebb9@byu.net>
41090
41091         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41092         element, not its node.
41093
41094 2006-11-12  Bruno Haible  <bruno@clisp.org>
41095
41096         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41097         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41098
41099 2006-11-12  Bruno Haible  <bruno@clisp.org>
41100
41101         * gnulib-tool: New option --local-symlink.
41102         (func_usage): Document it.
41103         (lsymbolic): New variable.
41104         (func_import, func_create_testdir): If --symlink was not specified,
41105         test whether --local-symlink was specified and the file comes from
41106         the local_gnulib_dir.
41107
41108 2006-11-12  Bruno Haible  <bruno@clisp.org>
41109
41110         * gnulib-tool (func_ln): New function.
41111         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41112
41113 2006-11-12  Bruno Haible  <bruno@clisp.org>
41114
41115         Finish support for source files in subdirectories.
41116         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41117         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41118         AUTOMAKE_OPTIONS.
41119         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41120
41121 2006-11-12  Bruno Haible  <bruno@clisp.org>
41122
41123         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41124         EXTRA_lib_SOURCES augmentation.
41125         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41126
41127 2006-11-12  Jim Meyering  <jim@meyering.net>
41128
41129         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41130         file descriptors.  This also averts a failure on systems with
41131         native openat support when a traversed directory lacks "x" access.
41132         * lib/fts_.h: Include "i-ring.h"
41133         (struct FTS) [fts_fd_ring]: New member.
41134         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41135         (FCHDIR): Add parentheses.
41136         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41137         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41138         When descending, rather than simply closing the previous
41139         fts_cwd_fd value, push that file descriptor onto the ring.
41140         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41141         (fts_open): Initialize the new fd_ring member.
41142         (fts_close): Clear the ring.
41143         (fts_safe_changedir): When possible, use our new fd_ring to skip
41144         the diropen and fstat and dev/ino comparison that would normally
41145         accompany a virtual `chdir ("..")'.
41146
41147         * modules/fts (Depends-on): Add i-ring.
41148         * modules/i-ring: New module.
41149         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41150         * m4/i-ring.m4: New file.
41151
41152 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41153
41154         * gnulib-tool (func_create_testdir): Fix replacement of
41155         `build-aux' in configure.ac.  Run autotools in gltests
41156         subdirectory.
41157         (func_create_testdir, func_create_megatestdir, test): There is
41158         no need for '--force' in most autotool invocations in a new
41159         tree.  Actually fail the whole test if any of the tools, or the
41160         configure or make stages fail.
41161
41162         Sync from Automake.
41163         * build-aux/gnupload: Revert last change.  Add pointer to upload
41164         instructions of the GNU Maintenance Instructions.
41165         Suggestion by Karl Berry.
41166
41167 2006-11-10  Jim Meyering  <jim@meyering.net>
41168
41169         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41170
41171 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41172
41173         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41174         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41175         (bind_textdomain_codeset) [! ENABLE_NLS]:
41176         Evaluate all the arguments.  That way, callers get compatible behavior
41177         if the arguments have side effects.  Also, it avoids some GCC
41178         diagnostics in some cases; Joel E. Denny reported problems when Bison
41179         was configured with --enable-gcc-warnigs.
41180
41181 2006-11-10  Jim Meyering  <jim@meyering.net>
41182
41183         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41184         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41185         account.
41186
41187 2006-11-10  Jim Meyering  <jim@meyering.net>
41188
41189         * modules/inline: New file/module.
41190         * modules/xalloc (Files): Remove m4/inline.m4.
41191         (Depends-on): Add inline, instead.
41192         * modules/oset: Likewise.
41193         * modules/list: Likewise.
41194
41195 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41196
41197         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41198         Problem reported by Matthew Woehlke.
41199
41200 2006-11-09  Bruno Haible  <bruno@clisp.org>
41201
41202         * lib/tempname.c (gen_tempname): Remove variant that invokes
41203         __gen_tempname.
41204         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41205         __gen_tempname.
41206
41207 2006-11-08  Bruno Haible  <bruno@clisp.org>
41208
41209         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41210         to 'yes' instead of 'cross-compiling'.
41211
41212 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41213
41214         * lib/quotearg.h (quotearg_free): New decl.
41215         * lib/quotearg.c (quotearg_free): New function.
41216         (slot0, nslots, slotvec0, slotvec):
41217         Now file-scope so that quotearg_free can get at them.
41218
41219 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41220
41221         Sync from Automake.
41222         * build-aux/gnupload: Add missing 'gnu' to example URL.
41223         Report by Karl Berry.
41224
41225 2006-11-08  Bruno Haible  <bruno@clisp.org>
41226
41227         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41228         Suggested by Paul Eggert.
41229
41230 2006-11-08  Jim Meyering  <jim@meyering.net>
41231
41232         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41233         It's already included if !_LIBC.
41234         (fts_safe_changedir): Add a comment.
41235
41236 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41237
41238         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41239         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41240         Matthew Woehlke.
41241
41242         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41243         definitions up, to avoid colliding with change below.
41244         (static_inline) [HAVE_INLINE]: New macro.
41245         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41246         Provide extern decls when !HAVE_INLINE.  Do not define unless
41247         static_inline is defined, either by us or by xmalloc.c.  Use
41248         static_inline rather than static inline.
41249         (XCALLOC): Optimize sizeof(T) = 1 case.
41250         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41251
41252 2006-11-07  Bruno Haible  <bruno@clisp.org>
41253
41254         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41255         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41256         AC_C_INLINE.
41257         * modules/xalloc (Files): Add m4/inline.m4.
41258
41259 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41260
41261         * README: Fix typo.
41262         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41263         (Miscellanous Notes): ...from this.
41264
41265 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41266
41267         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41268         Mention that offsetof should be used instead of sizeof.
41269         From Bruno Haible.
41270
41271 2006-11-07  Bruno Haible  <bruno@clisp.org>
41272
41273         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41274
41275 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41276
41277         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41278         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41279         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41280         (gl_tree_add_before, gl_tree_add_after):
41281         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41282         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41283         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41284         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41285         (gl_linked_add_after, gl_linked_add_at): Likewise.
41286         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41287         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41288         (gl_tree_add_before, gl_tree_add_after): Likewise.
41289         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41290         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41291         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41292
41293 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41294
41295         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41296
41297 2006-11-06  Bruno Haible  <bruno@clisp.org>
41298
41299         * m4/inline.m4: New file.
41300         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41301         * modules/list (Files): Add m4/inline.m4.
41302         * modules/oset (Files): Likewise.
41303
41304 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41305
41306         * lib/idcache.c: Include <stddef.h>, for offsetof.
41307         (struct userid.name): Change from char * to a flexible array member.
41308         All uses changed.
41309         * modules/idcache (Depends-on): Add flexmember.
41310
41311         * MODULES.html.sh (Core language properties): New module flexmember.
41312         * modules/flexmember, m4/flexmember.m4: New files.
41313
41314         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41315         inline functions that are identical with the old xnmalloc_inline,
41316         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41317         that we can avoid some unnecessary integer multiplications and
41318         divisions in the common case where the element size is known at
41319         compile time.
41320         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41321         needed.
41322         (xnboundedmalloc): Remove.
41323         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41324         arguments, for consistency with rest of this header.
41325         (xcharalloc): Rewrite using XNMALLOC.
41326         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41327         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41328         versions have been moved to lib/xalloc.h and renamed to be the
41329         non-*_inline versions.
41330         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41331         and xnrealloc functions, since those functions are now inline and
41332         now call us.
41333         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41334         renaming described above.
41335         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41336         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41337         captures the dependency in AC_C_INLINE.
41338
41339         New module canonicalize-lgpl, proposed by Charles Wilson in
41340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41341         with a few small changes afterwards.
41342         * MODULES.html.sh (File system functions): New module
41343         canonicalize-lgpl.
41344         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41345         and canonicalize_file_name.
41346         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41347         * modules/canonicalize-lgpl: New files.
41348
41349 2006-11-05  Bruno Haible  <bruno@clisp.org>
41350
41351         * gnulib-tool (func_import, func_create_testdir): Create directories
41352         also for files in subdirectories of lib/.
41353
41354 2006-11-05  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41357         ANSI C compliant.
41358
41359 2006-11-03  Bruno Haible  <bruno@clisp.org>
41360
41361         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41362         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41363         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41364         (xnboundedmalloc): New inline function.
41365         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41366         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41367         xmalloc.
41368         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41369         xmalloc.
41370         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41371         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41372         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41373         xmalloc.
41374         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41375         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41376         xmalloc.
41377         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41378         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41379         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41380         xmalloc.
41381         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41382         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41383         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41384         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41385         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41386         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41387         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41388
41389 2006-11-03  Bruno Haible  <bruno@clisp.org>
41390
41391         * lib/c-ctype.h [C++]: Define functions without name mangling.
41392         * lib/fwriteerror.h [C++]: Likewise.
41393         * lib/gcd.h [C++]: Likewise.
41394         * lib/linebreak.h [C++]: Likewise.
41395
41396 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41397
41398         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41399         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41400         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41401         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41402         Check for functions and headers just once.
41403         Check for declaration of canonicalize_file_name.
41404         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41405
41406 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41407
41408         * gnulib-tool (func_import): Fix typo in actioncmd.
41409
41410 2006-11-02  Bruno Haible  <bruno@clisp.org>
41411
41412         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41413         newline sequence in the Makefile.am snippet as a space, like "make"
41414         does.
41415         Reported by Roger Persson <perrog@gmail.com>.
41416
41417 2006-11-01  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41420         already declared in <string.h>.
41421         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41422
41423 2006-11-01  Bruno Haible  <bruno@clisp.org>
41424
41425         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41426         * lib/strcase.h: Include <string.h>.
41427         (strcasecmp): Define to rpl_strcasecmp here.
41428
41429 2006-11-01  Bruno Haible  <bruno@clisp.org>
41430
41431         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41432
41433 2006-11-01  Eric Blake  <ebb9@byu.net>
41434
41435         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41436
41437         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41438
41439 2006-10-29  Bruno Haible  <bruno@clisp.org>
41440
41441         Make it compile in C++ mode.
41442         * lib/full-write.c (full_rw): Add a cast.
41443
41444 2006-11-01  Bruno Haible  <bruno@clisp.org>
41445
41446         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41447         be POSIX compliant.
41448         Reported by Roger Persson <perrog@gmail.com>.
41449
41450 2006-11-01  Eric Blake  <ebb9@byu.net>
41451
41452         * lib/getopt_.h: Fix comments.
41453
41454 2006-10-31  Eric Blake  <ebb9@byu.net>
41455
41456         * modules/tmpdir (Depends-on): Add sys_stat.
41457         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41458         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41459         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41460         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41461         tempname.
41462
41463 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41464
41465         Avoid some C++ diagnostics reported by Bruno Haible.
41466         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41467         xmalloc.
41468         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41469         (struct slotvec): Move to top level.
41470         (quotearg_n_options): Rewrite to avoid xmalloc.
41471         * lib/xalloc.h (xcharalloc): New function.
41472         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41473         [defined __cplusplus]: Add function template that provides result
41474         type propagation.  This part of the change is from Bruno Haible.
41475
41476 2006-10-29  Bruno Haible  <bruno@clisp.org>
41477
41478         Make it compile in C++ mode.
41479         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41480         * lib/strnlen1.c (strnlen1): Cast memchr result.
41481         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41482         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41483         (create_temp_dir): Rename local variable 'template'.
41484         (compile_csharp_using_sscli): Add cast.
41485         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41486         * lib/findprog.c (find_in_path): Likewise.
41487         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41488         * lib/wait-process.c (register_slave_subprocess): Likewise.
41489
41490 2006-10-22  Bruno Haible  <bruno@clisp.org>
41491
41492         * modules/tsearch: New file.
41493         * lib/tsearch.h: New file.
41494         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41495         * m4/tsearch.m4: New file.
41496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41497
41498 2006-10-29  Eric Blake  <ebb9@byu.net>
41499
41500         * lib/arcfour.c: Assume config.h.
41501         * lib/arctwo.c: Likewise.
41502         * lib/base64.c: Likewise.
41503         * lib/check-version.c: Likewise.
41504         * lib/crc.c: Likewise.
41505         * lib/des.c: Likewise.
41506         * lib/gc-gnulib.c: Likewise.
41507         * lib/gc-libgcrypt.c: Likewise.
41508         * lib/gc-pbkdf2-sha1.c: Likewise.
41509         * lib/getaddrinfo.c: Likewise.
41510         * lib/getdelim.c: Likewise.
41511         * lib/getline.c: Likewise.
41512         * lib/hmac-md5.c: Likewise.
41513         * lib/hmac-sha1.c: Likewise.
41514         * lib/iconvme.c: Likewise.
41515         * lib/md2.c: Likewise.
41516         * lib/md4.c: Likewise.
41517         * lib/memxor.c: Likewise.
41518         * lib/read-file.c: Likewise.
41519         * lib/readline.c: Likewise.
41520         * lib/rijndael-alg-fst.c: Likewise.
41521         * lib/rijndael-api-fst.c: Likewise.
41522         * lib/xgetdomainname.c: Likewise.
41523
41524 2006-10-28  Eric Blake  <ebb9@byu.net>
41525
41526         * lib/xstrndup.c: Assume config.h.
41527
41528 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41529
41530         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41531         stat-macros.h is now for our own macros, whereas stat_h is for
41532         macros in the <sys/stat.h> name space.
41533         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41534         (STAT_MACROS_H): Remove.
41535         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41536         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41537         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41538         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41539         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41540         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41541         Move these macros to ...
41542         * lib/stat_.h: here.  Don't include stat-macros.h.
41543         * lib/canonicalize.c: Don't include stat-macros.h.
41544         * lib/chown.c: Likewise.
41545         * lib/euidaccess.c: Likewise.
41546         * lib/file-type.c: Likewise.
41547         * lib/filemode.c: Likewise.
41548         * lib/glob.c: Likewise.
41549         * lib/isapipe.c: Likewise.
41550         * lib/lchown.c: Likewise.
41551         * lib/lstat.c: Likewise.
41552         * lib/mkdir-p.c: Likewise.
41553         * lib/rmdir.c: Likewise.
41554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41556         unless mkdir isn't declared, to speed up 'configure'.
41557         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41558         would define all the S_* symbols.
41559         * modules/canonicalize (Depends-on):
41560         Depend on sys_stat, not stat-macros.
41561         * modules/chown: Likewise.
41562         * modules/euidaccess: Likewise.
41563         * modules/filemode: Likewise.
41564         * modules/file-type: Likewise.
41565         * modules/glob: Likewise.
41566         * modules/isapipe: Likewise.
41567         * modules/lchown: Likewise.
41568         * modules/lstat: Likewise.
41569         * modules/mkancesdirs: Likewise.
41570         * modules/rmdir: Likewise.
41571         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41572         * modules/modechange: Likewise.
41573         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41574         (configure.ac): Remove gl_STAT_MACROS.
41575         * modules/sys_stat (Depends-on): Remove stat-macros.
41576
41577 2006-10-27  Bruno Haible  <bruno@clisp.org>
41578
41579         * m4/signed.m4: Remove file.
41580         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41581         invocation.
41582         * modules/vasnprintf (Files): Remove m4/signed.m4.
41583
41584 2006-10-27  Bruno Haible  <bruno@clisp.org>
41585
41586         Update to GNU gettext 0.16.
41587         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41588         m4/inttypes-h.m4, m4/signed.m4.
41589         * m4/gettext.m4: Update to GNU gettext 0.16.
41590         * m4/intl.m4: New file, from GNU gettext.
41591         * m4/intldir.m4: New file, from GNU gettext.
41592         * config/srclist.txt: Update
41593
41594 2006-10-27  Eric Blake  <ebb9@byu.net>
41595
41596         * MODULES.html.sh: Document tempname.
41597         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41598         dependencies.
41599         (Files): Move lib/tempname.c...
41600         * modules/tempname: ...to this new module.
41601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41602         (gl_PREREQ_TEMPNAME): Move...
41603         * m4/tempname.m4: ...to this new file.
41604         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41605         * modules/sys_stat (Depends-on): Add stat-macros.
41606         * lib/stat_.h (includes): Pick up stat macros.
41607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41608         if stat macros are broken.
41609         * lib/tempname.c (includes): No need to include "stat-macros.h".
41610         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41611         (direxists, __path_search) [!_LIBC]: Don't compile these in
41612         gnulib; the tmpdir module covers that.
41613         * lib/tempname.h: New file.
41614
41615 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41616
41617         * COPYING: Explain how gnulib-tool converts licence headers.
41618         Almost all wording by Eric Blake.
41619
41620 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41621
41622         * lib/mbchar.h (is_basic_table): Make read-only.
41623         * lib/mbchar.c (is_basic_table): Likewise.
41624         Reported by John Darrington.
41625
41626 2006-10-25  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/progname.h (set_program_name): Undefine before defining.
41629
41630 2006-10-25  Bruno Haible  <bruno@clisp.org>
41631
41632         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41633         false for non-gcc C++ compilers.
41634         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41635
41636 2006-10-24  Bruno Haible  <bruno@clisp.org>
41637
41638         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41639         iconv implementations like Irix iconv.
41640
41641 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41642
41643         * modules/vararrays: New file.
41644         * m4/vararrays.m4: New file, taken from diffutils.
41645         * MODULES.html.sh: New module vararrays.
41646
41647 2006-10-24  Karl Berry  <karl@gnu.org>
41648
41649         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41650         Don't call GNU Unix.
41651
41652 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41653
41654         * users.txt: Add Libtool.
41655
41656         Sync from Libtool:
41657
41658         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41659
41660         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41661         to gnulib's policy of including config.h unconditionally.
41662
41663 2006-10-24  Bruno Haible  <bruno@clisp.org>
41664
41665         * modules/wcwidth (Files): Add m4/wint_t.m4.
41666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41667         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41668
41669 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41670
41671         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41672         to pacify GCC with some -W flags enabled.  Problem reported by
41673         Bruno Haible.
41674
41675 2006-10-24  Jim Meyering  <jim@meyering.net>
41676
41677         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41678         Reported by Karl Berry.
41679
41680 2006-10-23  Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41683
41684 2006-10-24  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/gl_list.h: Use C comment style, not C++ comment style.
41687
41688 2006-10-23  Eric Blake  <ebb9@byu.net>
41689
41690         * lib/getaddrinfo.c (includes): Add missing include.
41691
41692 2006-10-23  Bruno Haible  <bruno@clisp.org>
41693             Paul Eggert  <eggert@cs.ucla.edu>
41694
41695         Ability to rename obstack_free.
41696         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41697         obstack_free.
41698         (obstack_free): Invoke the __obstack_free macro.
41699         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41700
41701 2006-10-23  Bruno Haible  <bruno@clisp.org>
41702             Paul Eggert  <eggert@cs.ucla.edu>
41703
41704         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41705         __argc, __argv from the declaration. (They are defined as macros on
41706         mingw.)
41707
41708 2006-10-22  Bruno Haible  <bruno@clisp.org>
41709
41710         * doc/gnulib-intro.texi: New file.
41711         * doc/gnulib.texi: Include it.
41712
41713 2006-10-21  Bruno Haible  <bruno@clisp.org>
41714
41715         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41716         "Introduction", "Miscellanous Notes", "Particular Modules".
41717
41718 2006-10-21  Bruno Haible  <bruno@clisp.org>
41719
41720         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41721         Change mostlyclean-local rule to avoid sh syntax error from bash
41722         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41723
41724 2006-10-23  Jim Meyering  <jim@meyering.net>
41725
41726         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41727         in place of snprintf.
41728
41729         * modules/inttostr (Files): Add lib/uinttostr.c.
41730         * lib/uinttostr.c (inttostr): New file/function.
41731         * lib/inttostr.h (uinttostr): Declare.
41732         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41733         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41734         Add uinttostr.
41735         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41736
41737 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41738
41739         * lib/canonicalize.c (ELOOP): Define if not already defined.
41740         Problem reported by Bruno Haible in
41741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41742
41743 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41744
41745         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41746         Problem reported by Perry Smith and Ville Laurikari.
41747
41748         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41749         uses.
41750
41751 2006-10-19  Bruno Haible  <bruno@clisp.org>
41752
41753         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41754         for mingw.
41755
41756 2006-10-19  Bruno Haible  <bruno@clisp.org>
41757
41758         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41759         Needed for mingw.
41760
41761 2006-10-19  Bruno Haible  <bruno@clisp.org>
41762
41763         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41764
41765 2006-10-19  Bruno Haible  <bruno@clisp.org>
41766
41767         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41768         it.
41769
41770 2006-10-19  Bruno Haible  <bruno@clisp.org>
41771
41772         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41773         invocation.
41774
41775 2006-10-19  Bruno Haible  <bruno@clisp.org>
41776
41777         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41778         mountlist by default.
41779
41780 2006-10-16  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/c-strstr.c: Include c-strstr.h.
41783
41784 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41785
41786         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41787         in a slash.
41788
41789 2006-10-18  Bruno Haible  <bruno@clisp.org>
41790
41791         * lib/lock.h [C++]: Wrap definitions in extern "C".
41792
41793 2006-10-18  Bruno Haible  <bruno@clisp.org>
41794
41795         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41796         gl_LIBOBJS list.
41797
41798 2006-10-18  Bruno Haible  <bruno@clisp.org>
41799
41800         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41801
41802 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41803
41804         * lib/xstrtol.h: Include gettext.h.
41805         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41806         Problem reported by Eric Blake.
41807         * modules/xstrtol (Depends-on): Add gettext-h.
41808
41809 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41810
41811         * lib/strftime.c (advance): New macro.
41812         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41813         incomplete type, so you can't add 0 to it.  Problem and patch
41814         reported by Eelco Dolstra for dietlibc.
41815
41816 2006-10-18  Jim Meyering  <jim@meyering.net>
41817
41818         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41819         type for a local, and rename it: s/up/user_proc/.
41820
41821 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41822
41823         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41824         READ_UTMP_USER_PROCESS.
41825         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41826
41827 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41828
41829         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41830         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41831
41832 2006-10-17  Eric Blake  <ebb9@byu.net>
41833
41834         * lib/sigprocmask.c (sigprocmask): Fix typo.
41835
41836         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41837
41838         * modules/clean-temp (Makefile.am): Don't add to make output...
41839         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41840         config.h.
41841
41842 2006-10-17  Bruno Haible  <bruno@clisp.org>
41843
41844         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41845         differently if DEFAULT_TEXT_DOMAIN is set.
41846
41847 2006-10-16  Bruno Haible  <bruno@clisp.org>
41848
41849         * lib/clean-temp.c: Include fwriteerror.h.
41850
41851 2006-10-16  Bruno Haible  <bruno@clisp.org>
41852
41853         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41854
41855 2006-10-16  Bruno Haible  <bruno@clisp.org>
41856
41857         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41858         * lib/sigprocmask.h: Include <sys/types.h>.
41859         (sigset_t): Use the system's definition if present.
41860
41861 2006-10-17  Eric Blake  <ebb9@byu.net>
41862
41863         * lib/xvasprintf.c (includes): Assume config.h.
41864         * lib/xasprintf.c (includes): Likewise.
41865
41866 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41867
41868         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41869         at least as wide as intmax_t.
41870
41871 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41872
41873         (Imported from Automake.)
41874         * build-aux/gnupload: Update to version 1.1 of directive file.
41875
41876 2006-10-16  Eric Blake  <ebb9@byu.net>
41877
41878         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41879         match Automake 1.10a.
41880
41881 2006-10-14  Bruno Haible  <bruno@clisp.org>
41882
41883         * modules/sigprocmask: New file.
41884         * lib/sigprocmask.h: New file.
41885         * lib/sigprocmask.c: New file.
41886         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41887         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41888         request sigprocmask.o.
41889         (gl_PREREQ_SIGPROCMASK): New macro.
41890         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41891         (Depends-on): Add sigprocmask.
41892         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41893         gt_SIGNALBLOCKING. Test for 'raise' only once.
41894         * lib/fatal-signal.c: Include sigprocmask.h.
41895         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41896         unblock_fatal_signals): Define always.
41897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41898         sigprocmask.
41899
41900 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41901
41902         Sync from Automake.
41903         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41904         which incorrectly sets the mode of an existing destination
41905         directory.  In some cases the unpatched install-sh could do the
41906         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41907         system.  We hope this is rare in practice, but it's clearly worth
41908         fixing.  Problem reported by Alex Unleashed in
41909         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41910         Also, don't bother to check for -m bugs unless we're using -m;
41911         suggested by Stepan Kasal.
41912
41913 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41914
41915         Sync from Automake.
41916         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41917         `-c' flag, so they appear at the same position as in %FASTDEP%
41918         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41919         which ignores unknown options only after the first non-option.
41920         Bug report against M4 by Nelson H. F. Beebe.
41921
41922 2006-10-13  Jim Meyering  <jim@meyering.net>
41923
41924         Fix a bug in yesterday's change.
41925         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41926         p->fts_statp->st_dev would be used uninitialized.
41927         Ensures that we always call fts_stat on the very first entry.
41928         Miklos Szeredi reported that find -xdev stopped working.
41929
41930 2006-10-12  Bruno Haible  <bruno@clisp.org>
41931
41932         * gnulib-tool (func_get_automake_snippet): Append an automatically
41933         computed EXTRA_DIST augmentation.
41934         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41935         * modules/alloca-opt (Makefile.am): Likewise.
41936         * modules/allocsa (Makefile.am): Likewise.
41937         * modules/arcfour (Makefile.am): Likewise.
41938         * modules/arctwo (Makefile.am): Likewise.
41939         * modules/argmatch (Makefile.am): Likewise.
41940         * modules/argz (Makefile.am): Likewise.
41941         * modules/atexit (Makefile.am): Likewise.
41942         * modules/backupfile (Makefile.am): Likewise.
41943         * modules/byteswap (Makefile.am): Likewise.
41944         * modules/c-strtod (Makefile.am): Likewise.
41945         * modules/c-strtold (Makefile.am): Likewise.
41946         * modules/calloc (Makefile.am): Likewise.
41947         * modules/canon-host (Makefile.am): Likewise.
41948         * modules/canonicalize (Makefile.am): Likewise.
41949         * modules/chdir-long (Makefile.am): Likewise.
41950         * modules/chdir-safer (Makefile.am): Likewise.
41951         * modules/check-version (Makefile.am): Likewise.
41952         * modules/chown (Makefile.am): Likewise.
41953         * modules/cloexec (Makefile.am): Likewise.
41954         * modules/close-stream (Makefile.am): Likewise.
41955         * modules/closeout (Makefile.am): Likewise.
41956         * modules/crc (Makefile.am): Likewise.
41957         * modules/csharpexec (Makefile.am): Likewise.
41958         * modules/cycle-check (Makefile.am): Likewise.
41959         * modules/des (Makefile.am): Likewise.
41960         * modules/dev-ino (Makefile.am): Likewise.
41961         * modules/dirfd (Makefile.am): Likewise.
41962         * modules/dirname (Makefile.am): Likewise.
41963         * modules/dup2 (Makefile.am): Likewise.
41964         * modules/eealloc (Makefile.am): Likewise.
41965         * modules/error (Makefile.am): Likewise.
41966         * modules/euidaccess (Makefile.am): Likewise.
41967         * modules/exclude (Makefile.am): Likewise.
41968         * modules/exitfail (Makefile.am): Likewise.
41969         * modules/fcntl-safer (Makefile.am): Likewise.
41970         * modules/fcntl (Makefile.am): Likewise.
41971         * modules/file-type (Makefile.am): Likewise.
41972         * modules/fileblocks (Makefile.am): Likewise.
41973         * modules/filemode (Makefile.am): Likewise.
41974         * modules/filenamecat (Makefile.am): Likewise.
41975         * modules/fnmatch (Makefile.am): Likewise.
41976         * modules/fopen-safer (Makefile.am): Likewise.
41977         * modules/fpending (Makefile.am): Likewise.
41978         * modules/fprintftime (Makefile.am): Likewise.
41979         * modules/free (Makefile.am): Likewise.
41980         * modules/fsusage (Makefile.am): Likewise.
41981         * modules/ftruncate (Makefile.am): Likewise.
41982         * modules/fts (Makefile.am): Likewise.
41983         * modules/gc-arcfour (Makefile.am): Likewise.
41984         * modules/gc-des (Makefile.am): Likewise.
41985         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41986         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41987         * modules/gc-md4 (Makefile.am): Likewise.
41988         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41989         * modules/gc-sha1 (Makefile.am): Likewise.
41990         * modules/gc (Makefile.am): Likewise.
41991         * modules/getaddrinfo (Makefile.am): Likewise.
41992         * modules/getcwd (Makefile.am): Likewise.
41993         * modules/getdelim (Makefile.am): Likewise.
41994         * modules/getdomainname (Makefile.am): Likewise.
41995         * modules/getgroups (Makefile.am): Likewise.
41996         * modules/gethostname (Makefile.am): Likewise.
41997         * modules/gethrxtime (Makefile.am): Likewise.
41998         * modules/getline (Makefile.am): Likewise.
41999         * modules/getloadavg (Makefile.am): Likewise.
42000         * modules/getlogin_r (Makefile.am): Likewise.
42001         * modules/getndelim2 (Makefile.am): Likewise.
42002         * modules/getopt (Makefile.am): Likewise.
42003         * modules/getpagesize (Makefile.am): Likewise.
42004         * modules/getpass-gnu (Makefile.am): Likewise.
42005         * modules/getpass (Makefile.am): Likewise.
42006         * modules/getsubopt (Makefile.am): Likewise.
42007         * modules/gettime (Makefile.am): Likewise.
42008         * modules/gettimeofday (Makefile.am): Likewise.
42009         * modules/getugroups (Makefile.am): Likewise.
42010         * modules/getusershell (Makefile.am): Likewise.
42011         * modules/glob (Makefile.am): Likewise.
42012         * modules/group-member (Makefile.am): Likewise.
42013         * modules/hard-locale (Makefile.am): Likewise.
42014         * modules/hash (Makefile.am): Likewise.
42015         * modules/hmac-md5 (Makefile.am): Likewise.
42016         * modules/hmac-sha1 (Makefile.am): Likewise.
42017         * modules/human (Makefile.am): Likewise.
42018         * modules/idcache (Makefile.am): Likewise.
42019         * modules/imaxabs (Makefile.am): Likewise.
42020         * modules/imaxdiv (Makefile.am): Likewise.
42021         * modules/inet_ntop (Makefile.am): Likewise.
42022         * modules/inet_pton (Makefile.am): Likewise.
42023         * modules/intprops (Makefile.am): Likewise.
42024         * modules/inttostr (Makefile.am): Likewise.
42025         * modules/inttypes (Makefile.am): Likewise.
42026         * modules/isapipe (Makefile.am): Likewise.
42027         * modules/javaversion (Makefile.am): Likewise.
42028         * modules/lchmod (Makefile.am): Likewise.
42029         * modules/lchown (Makefile.am): Likewise.
42030         * modules/localcharset (Makefile.am): Likewise.
42031         * modules/long-options (Makefile.am): Likewise.
42032         * modules/lstat (Makefile.am): Likewise.
42033         * modules/malloc (Makefile.am): Likewise.
42034         * modules/mathl (Makefile.am): Likewise.
42035         * modules/mbchar (Makefile.am): Likewise.
42036         * modules/md2 (Makefile.am): Likewise.
42037         * modules/md4 (Makefile.am): Likewise.
42038         * modules/md5 (Makefile.am): Likewise.
42039         * modules/memcasecmp (Makefile.am): Likewise.
42040         * modules/memchr (Makefile.am): Likewise.
42041         * modules/memcmp (Makefile.am): Likewise.
42042         * modules/memcoll (Makefile.am): Likewise.
42043         * modules/memcpy (Makefile.am): Likewise.
42044         * modules/memmem (Makefile.am): Likewise.
42045         * modules/memmove (Makefile.am): Likewise.
42046         * modules/mempcpy (Makefile.am): Likewise.
42047         * modules/memrchr (Makefile.am): Likewise.
42048         * modules/memset (Makefile.am): Likewise.
42049         * modules/memxor (Makefile.am): Likewise.
42050         * modules/mkancesdirs (Makefile.am): Likewise.
42051         * modules/mkdir-p (Makefile.am): Likewise.
42052         * modules/mkdir (Makefile.am): Likewise.
42053         * modules/mkdtemp (Makefile.am): Likewise.
42054         * modules/mkstemp (Makefile.am): Likewise.
42055         * modules/mktime (Makefile.am): Likewise.
42056         * modules/modechange (Makefile.am): Likewise.
42057         * modules/mountlist (Makefile.am): Likewise.
42058         * modules/nanosleep (Makefile.am): Likewise.
42059         * modules/obstack (Makefile.am): Likewise.
42060         * modules/openat (Makefile.am): Likewise.
42061         * modules/pagealign_alloc (Makefile.am): Likewise.
42062         * modules/pathmax (Makefile.am): Likewise.
42063         * modules/physmem (Makefile.am): Likewise.
42064         * modules/poll (Makefile.am): Likewise.
42065         * modules/posixtm (Makefile.am): Likewise.
42066         * modules/posixver (Makefile.am): Likewise.
42067         * modules/putenv (Makefile.am): Likewise.
42068         * modules/quote (Makefile.am): Likewise.
42069         * modules/quotearg (Makefile.am): Likewise.
42070         * modules/raise (Makefile.am): Likewise.
42071         * modules/read-file (Makefile.am): Likewise.
42072         * modules/readline (Makefile.am): Likewise.
42073         * modules/readlink (Makefile.am): Likewise.
42074         * modules/readtokens (Makefile.am): Likewise.
42075         * modules/readutmp (Makefile.am): Likewise.
42076         * modules/realloc (Makefile.am): Likewise.
42077         * modules/regex (Makefile.am): Likewise.
42078         * modules/rename-dest-slash (Makefile.am): Likewise.
42079         * modules/rename (Makefile.am): Likewise.
42080         * modules/rijndael (Makefile.am): Likewise.
42081         * modules/rmdir (Makefile.am): Likewise.
42082         * modules/rpmatch (Makefile.am): Likewise.
42083         * modules/safe-read (Makefile.am): Likewise.
42084         * modules/safe-write (Makefile.am): Likewise.
42085         * modules/same-inode (Makefile.am): Likewise.
42086         * modules/same (Makefile.am): Likewise.
42087         * modules/save-cwd (Makefile.am): Likewise.
42088         * modules/savedir (Makefile.am): Likewise.
42089         * modules/setenv (Makefile.am): Likewise.
42090         * modules/settime (Makefile.am): Likewise.
42091         * modules/sha1 (Makefile.am): Likewise.
42092         * modules/sig2str (Makefile.am): Likewise.
42093         * modules/snprintf (Makefile.am): Likewise.
42094         * modules/stat-macros (Makefile.am): Likewise.
42095         * modules/stat-time (Makefile.am): Likewise.
42096         * modules/stdbool (Makefile.am): Likewise.
42097         * modules/stdint (Makefile.am): Likewise.
42098         * modules/stdlib-safer (Makefile.am): Likewise.
42099         * modules/stpcpy (Makefile.am): Likewise.
42100         * modules/stpncpy (Makefile.am): Likewise.
42101         * modules/strcase (Makefile.am): Likewise.
42102         * modules/strcasestr (Makefile.am): Likewise.
42103         * modules/strchrnul (Makefile.am): Likewise.
42104         * modules/strcspn (Makefile.am): Likewise.
42105         * modules/strdup (Makefile.am): Likewise.
42106         * modules/strerror (Makefile.am): Likewise.
42107         * modules/strftime (Makefile.am): Likewise.
42108         * modules/strndup (Makefile.am): Likewise.
42109         * modules/strnlen (Makefile.am): Likewise.
42110         * modules/strpbrk (Makefile.am): Likewise.
42111         * modules/strsep (Makefile.am): Likewise.
42112         * modules/strstr (Makefile.am): Likewise.
42113         * modules/strtod (Makefile.am): Likewise.
42114         * modules/strtoimax (Makefile.am): Likewise.
42115         * modules/strtok_r (Makefile.am): Likewise.
42116         * modules/strtol (Makefile.am): Likewise.
42117         * modules/strtoll (Makefile.am): Likewise.
42118         * modules/strtoul (Makefile.am): Likewise.
42119         * modules/strtoull (Makefile.am): Likewise.
42120         * modules/strtoumax (Makefile.am): Likewise.
42121         * modules/strverscmp (Makefile.am): Likewise.
42122         * modules/sys_socket (Makefile.am): Likewise.
42123         * modules/sys_stat (Makefile.am): Likewise.
42124         * modules/sysexits (Makefile.am): Likewise.
42125         * modules/time_r (Makefile.am): Likewise.
42126         * modules/timegm (Makefile.am): Likewise.
42127         * modules/timespec (Makefile.am): Likewise.
42128         * modules/tmpfile-safer (Makefile.am): Likewise.
42129         * modules/trim (Makefile.am): Likewise.
42130         * modules/unistd-safer (Makefile.am): Likewise.
42131         * modules/unlinkdir (Makefile.am): Likewise.
42132         * modules/unlocked-io (Makefile.am): Likewise.
42133         * modules/userspec (Makefile.am): Likewise.
42134         * modules/utime (Makefile.am): Likewise.
42135         * modules/utimecmp (Makefile.am): Likewise.
42136         * modules/utimens (Makefile.am): Likewise.
42137         * modules/vasnprintf (Makefile.am): Likewise.
42138         * modules/vasprintf (Makefile.am): Likewise.
42139         * modules/vsnprintf (Makefile.am): Likewise.
42140         * modules/xalloc (Makefile.am): Likewise.
42141         * modules/xgetcwd (Makefile.am): Likewise.
42142         * modules/xnanosleep (Makefile.am): Likewise.
42143         * modules/xreadlink (Makefile.am): Likewise.
42144         * modules/xstrtod (Makefile.am): Likewise.
42145         * modules/xstrtol (Makefile.am): Likewise.
42146         * modules/xstrtold (Makefile.am): Likewise.
42147         * modules/yesno (Makefile.am): Likewise.
42148         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42149
42150 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42151
42152         * modules/error (Makefile.am): Distribute files through
42153         EXTRA_DIST, not lib_SOURCES.
42154
42155 2006-10-12  Eric Blake  <ebb9@byu.net>
42156
42157         * modules/error (Makefile.am): Distribute files in /lib.
42158         * modules/obstack (Makefile.am): Likewise.
42159
42160 2006-10-12  Bruno Haible  <bruno@clisp.org>
42161
42162         * modules/acl (Makefile.am): Distribute all files in lib/ through
42163         EXTRA_DIST.
42164         * modules/arcfour (Makefile.am): Likewise.
42165         * modules/arctwo (Makefile.am): Likewise.
42166         * modules/argmatch (Makefile.am): Likewise.
42167         * modules/argz (Makefile.am): Likewise.
42168         * modules/atexit (Makefile.am): Likewise.
42169         * modules/backupfile (Makefile.am): Likewise.
42170         * modules/c-strtod (Makefile.am): Likewise.
42171         * modules/c-strtold (Makefile.am): Likewise.
42172         * modules/calloc (Makefile.am): Likewise.
42173         * modules/canon-host (Makefile.am): Likewise.
42174         * modules/canonicalize (Makefile.am): Likewise.
42175         * modules/chdir-long (Makefile.am): Likewise.
42176         * modules/chdir-safer (Makefile.am): Likewise.
42177         * modules/check-version (Makefile.am): Likewise.
42178         * modules/chown (Makefile.am): Likewise.
42179         * modules/cloexec (Makefile.am): Likewise.
42180         * modules/close-stream (Makefile.am): Likewise.
42181         * modules/closeout (Makefile.am): Likewise.
42182         * modules/crc (Makefile.am): Likewise.
42183         * modules/cycle-check (Makefile.am): Likewise.
42184         * modules/des (Makefile.am): Likewise.
42185         * modules/dirfd (Makefile.am): Likewise.
42186         * modules/dirname (Makefile.am): Likewise.
42187         * modules/dup2 (Makefile.am): Likewise.
42188         * modules/euidaccess (Makefile.am): Likewise.
42189         * modules/exclude (Makefile.am): Likewise.
42190         * modules/exitfail (Makefile.am): Likewise.
42191         * modules/fcntl-safer (Makefile.am): Likewise.
42192         * modules/file-type (Makefile.am): Likewise.
42193         * modules/fileblocks (Makefile.am): Likewise.
42194         * modules/filemode (Makefile.am): Likewise.
42195         * modules/filenamecat (Makefile.am): Likewise.
42196         * modules/fnmatch (Makefile.am): Likewise.
42197         * modules/fopen-safer (Makefile.am): Likewise.
42198         * modules/fpending (Makefile.am): Likewise.
42199         * modules/fprintftime (Makefile.am): Likewise.
42200         * modules/free (Makefile.am): Likewise.
42201         * modules/fsusage (Makefile.am): Likewise.
42202         * modules/ftruncate (Makefile.am): Likewise.
42203         * modules/fts (Makefile.am): Likewise.
42204         * modules/gc (Makefile.am): Likewise.
42205         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42206         * modules/getaddrinfo (Makefile.am): Likewise.
42207         * modules/getcwd (Makefile.am): Likewise.
42208         * modules/getdelim (Makefile.am): Likewise.
42209         * modules/getdomainname (Makefile.am): Likewise.
42210         * modules/getgroups (Makefile.am): Likewise.
42211         * modules/gethostname (Makefile.am): Likewise.
42212         * modules/gethrxtime (Makefile.am): Likewise.
42213         * modules/getline (Makefile.am): Likewise.
42214         * modules/getloadavg (Makefile.am): Likewise.
42215         * modules/getlogin_r (Makefile.am): Likewise.
42216         * modules/getopt (Makefile.am): Likewise.
42217         * modules/getpass (Makefile.am): Likewise.
42218         * modules/getpass-gnu (Makefile.am): Likewise.
42219         * modules/getsubopt (Makefile.am): Likewise.
42220         * modules/gettime (Makefile.am): Likewise.
42221         * modules/gettimeofday (Makefile.am): Likewise.
42222         * modules/getugroups (Makefile.am): Likewise.
42223         * modules/getusershell (Makefile.am): Likewise.
42224         * modules/glob (Makefile.am): Likewise.
42225         * modules/group-member (Makefile.am): Likewise.
42226         * modules/hard-locale (Makefile.am): Likewise.
42227         * modules/hash (Makefile.am): Likewise.
42228         * modules/hmac-md5 (Makefile.am): Likewise.
42229         * modules/hmac-sha1 (Makefile.am): Likewise.
42230         * modules/human (Makefile.am): Likewise.
42231         * modules/idcache (Makefile.am): Likewise.
42232         * modules/imaxabs (Makefile.am): Likewise.
42233         * modules/imaxdiv (Makefile.am): Likewise.
42234         * modules/inet_ntop (Makefile.am): Likewise.
42235         * modules/inet_pton (Makefile.am): Likewise.
42236         * modules/inttostr (Makefile.am): Likewise.
42237         * modules/isapipe (Makefile.am): Likewise.
42238         * modules/lchown (Makefile.am): Likewise.
42239         * modules/long-options (Makefile.am): Likewise.
42240         * modules/lstat (Makefile.am): Likewise.
42241         * modules/malloc (Makefile.am): Likewise.
42242         * modules/mathl (Makefile.am): Likewise.
42243         * modules/mbchar (Makefile.am): Likewise.
42244         * modules/md2 (Makefile.am): Likewise.
42245         * modules/md4 (Makefile.am): Likewise.
42246         * modules/md5 (Makefile.am): Likewise.
42247         * modules/memcasecmp (Makefile.am): Likewise.
42248         * modules/memchr (Makefile.am): Likewise.
42249         * modules/memcmp (Makefile.am): Likewise.
42250         * modules/memcoll (Makefile.am): Likewise.
42251         * modules/memcpy (Makefile.am): Likewise.
42252         * modules/memmem (Makefile.am): Likewise.
42253         * modules/memmove (Makefile.am): Likewise.
42254         * modules/mempcpy (Makefile.am): Likewise.
42255         * modules/memrchr (Makefile.am): Likewise.
42256         * modules/memset (Makefile.am): Likewise.
42257         * modules/memxor (Makefile.am): Likewise.
42258         * modules/mkancesdirs (Makefile.am): Likewise.
42259         * modules/mkdir (Makefile.am): Likewise.
42260         * modules/mkdir-p (Makefile.am): Likewise.
42261         * modules/mkdtemp (Makefile.am): Likewise.
42262         * modules/mkstemp (Makefile.am): Likewise.
42263         * modules/mktime (Makefile.am): Likewise.
42264         * modules/modechange (Makefile.am): Likewise.
42265         * modules/mountlist (Makefile.am): Likewise.
42266         * modules/nanosleep (Makefile.am): Likewise.
42267         * modules/openat (Makefile.am): Likewise.
42268         * modules/pagealign_alloc (Makefile.am): Likewise.
42269         * modules/physmem (Makefile.am): Likewise.
42270         * modules/poll (Makefile.am): Likewise.
42271         * modules/posixtm (Makefile.am): Likewise.
42272         * modules/posixver (Makefile.am): Likewise.
42273         * modules/putenv (Makefile.am): Likewise.
42274         * modules/quote (Makefile.am): Likewise.
42275         * modules/quotearg (Makefile.am): Likewise.
42276         * modules/raise (Makefile.am): Likewise.
42277         * modules/read-file (Makefile.am): Likewise.
42278         * modules/readline (Makefile.am): Likewise.
42279         * modules/readlink (Makefile.am): Likewise.
42280         * modules/readtokens (Makefile.am): Likewise.
42281         * modules/readutmp (Makefile.am): Likewise.
42282         * modules/realloc (Makefile.am): Likewise.
42283         * modules/regex (Makefile.am): Likewise.
42284         * modules/rename (Makefile.am): Likewise.
42285         * modules/rename-dest-slash (Makefile.am): Likewise.
42286         * modules/rijndael (Makefile.am): Likewise.
42287         * modules/rmdir (Makefile.am): Likewise.
42288         * modules/rpmatch (Makefile.am): Likewise.
42289         * modules/safe-read (Makefile.am): Likewise.
42290         * modules/safe-write (Makefile.am): Likewise.
42291         * modules/same (Makefile.am): Likewise.
42292         * modules/save-cwd (Makefile.am): Likewise.
42293         * modules/savedir (Makefile.am): Likewise.
42294         * modules/setenv (Makefile.am): Likewise.
42295         * modules/settime (Makefile.am): Likewise.
42296         * modules/sha1 (Makefile.am): Likewise.
42297         * modules/sig2str (Makefile.am): Likewise.
42298         * modules/snprintf (Makefile.am): Likewise.
42299         * modules/stdlib-safer (Makefile.am): Likewise.
42300         * modules/stpcpy (Makefile.am): Likewise.
42301         * modules/stpncpy (Makefile.am): Likewise.
42302         * modules/strcase (Makefile.am): Likewise.
42303         * modules/strcasestr (Makefile.am): Likewise.
42304         * modules/strchrnul (Makefile.am): Likewise.
42305         * modules/strcspn (Makefile.am): Likewise.
42306         * modules/strdup (Makefile.am): Likewise.
42307         * modules/strerror (Makefile.am): Likewise.
42308         * modules/strftime (Makefile.am): Likewise.
42309         * modules/strndup (Makefile.am): Likewise.
42310         * modules/strnlen (Makefile.am): Likewise.
42311         * modules/strpbrk (Makefile.am): Likewise.
42312         * modules/strsep (Makefile.am): Likewise.
42313         * modules/strstr (Makefile.am): Likewise.
42314         * modules/strtod (Makefile.am): Likewise.
42315         * modules/strtoimax (Makefile.am): Likewise.
42316         * modules/strtok_r (Makefile.am): Likewise.
42317         * modules/strtol (Makefile.am): Likewise.
42318         * modules/strtoll (Makefile.am): Likewise.
42319         * modules/strtoul (Makefile.am): Likewise.
42320         * modules/strtoull (Makefile.am): Likewise.
42321         * modules/strtoumax (Makefile.am): Likewise.
42322         * modules/strverscmp (Makefile.am): Likewise.
42323         * modules/time_r (Makefile.am): Likewise.
42324         * modules/timegm (Makefile.am): Likewise.
42325         * modules/tmpfile-safer (Makefile.am): Likewise.
42326         * modules/unistd-safer (Makefile.am): Likewise.
42327         * modules/unlinkdir (Makefile.am): Likewise.
42328         * modules/userspec (Makefile.am): Likewise.
42329         * modules/utime (Makefile.am): Likewise.
42330         * modules/utimecmp (Makefile.am): Likewise.
42331         * modules/utimens (Makefile.am): Likewise.
42332         * modules/vasnprintf (Makefile.am): Likewise.
42333         * modules/vasprintf (Makefile.am): Likewise.
42334         * modules/vsnprintf (Makefile.am): Likewise.
42335         * modules/xalloc (Makefile.am): Likewise.
42336         * modules/xgetcwd (Makefile.am): Likewise.
42337         * modules/xnanosleep (Makefile.am): Likewise.
42338         * modules/xreadlink (Makefile.am): Likewise.
42339         * modules/xstrtod (Makefile.am): Likewise.
42340         * modules/xstrtol (Makefile.am): Likewise.
42341         * modules/xstrtold (Makefile.am): Likewise.
42342         * modules/yesno (Makefile.am): Likewise.
42343
42344 2006-10-12  Jim Meyering  <jim@meyering.net>
42345
42346         * m4/getloadavg.m4: Revert the change below.
42347
42348         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42349         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42350         fail with a symlink, which is what coreutils' ./bootstrap now
42351         creates by default.
42352
42353 2006-10-12  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42356         mingw.
42357         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42358         MSVC and mingw explicitly.
42359
42360 2006-10-11  Simon Josefsson  <jas@extundo.com>
42361             Bruno Haible  <bruno@clisp.org>
42362
42363         Add support for multiple gnulib-tool invocations in the scope of a
42364         single configure.ac file.
42365         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42366         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42367         with the same contents as the _LIBADD variable.
42368         (func_emit_initmacro_start, func_emit_initmacro_end,
42369         func_emit_initmacro_done): New functions.
42370         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42371         gl_LIBOBJS and gl_LTLIBOBJS.
42372
42373 2006-10-11  Bruno Haible  <bruno@clisp.org>
42374
42375         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42376         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42377         autoreconf. Instead, invoke autopoint explicitly but move back the
42378         *.m4 files from gnulib.
42379
42380 2006-10-11  Bruno Haible  <bruno@clisp.org>
42381
42382         * gnulib-tool (func_usage): Make module names after --create-testdir
42383         optional.
42384         (func_create_testdir): If no module was specified, use nearly all
42385         modules.
42386
42387 2006-10-12  Jim Meyering  <jim@meyering.net>
42388
42389         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42390         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42391         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42392         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42393         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42394         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42395         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42396         (fts_set_stat_required): New function.
42397         (fts_open): Defer the calls to fts_stat, if possible or requested.
42398         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42399         into fts_stat itself.
42400         (fts_read): Perform any required (deferred) fts_stat call.
42401         (fts_build): Likewise, for the directory we're about to open and read.
42402         In the readdir loop, carefully decide whether each entry will require
42403         an eventual call to fts_stat, using dirent.d_type info if available.
42404         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42405         a command line argument into this function.  Update all callers.
42406         Map a return value of FTS_DOT to FTS_D for a command line argument.
42407         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42408         Thanks to Miklos Szeredi for his tenacity and for the initial
42409         bug report about "find" failing on a FUSE-based file system.
42410
42411         * lib/fts.c (fts_open): Use consistent indentation.
42412
42413 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42414
42415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42416         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42417         reported by Jim Meyering.  All uses of cache variables renamed
42418         to match Autoconf's.
42419         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42420         the other one.
42421
42422         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42423         Fix misspelling in diagnostic.
42424
42425 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42426
42427         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42428         defined.  Problem reported by Matthew Woehlke.
42429
42430         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42431         Add support for Tandem NonStop R series.
42432         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42433         Use new macro.
42434
42435         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42436         (has_trailing_slash): Omit size arg; all callers changed.
42437         Omit 'inline', since it doesn't help performance and we'd
42438         need to configure it.
42439         Don't count //, ///, etc. as having a trailing slash.
42440         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42441         (rpl_rename_dest_slash): On failure, use rename's errno rather
42442         than (in some cases) an incorrect or junk errno.
42443         Simplify code by removing need to compute length; this does
42444         cause it to make two passes instead of one over the file name,
42445         but it's worth it.
42446
42447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42448         change, since Autoconf's version may no longer be appropriate now
42449         that we are using CVS Autoconf's version.  Add support for Tandem.
42450
42451 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42452             Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42455         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42456         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42457         gl_AC_TYPE_LONG_LONG.
42458
42459         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42460         instead of HAVE_LONG_LONG.
42461         * lib/printf-args.c (printf_fetchargs): Likewise.
42462         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42463         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42464         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42465         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42466         gl_AC_TYPE_LONG_LONG.
42467
42468 2006-10-11  Bruno Haible  <bruno@clisp.org>
42469
42470         * m4/longlong.m4: Add comments.
42471         * m4/ulonglong.m4: Likewise.
42472
42473 2006-10-10  Bruno Haible  <bruno@clisp.org>
42474
42475         Make it possible to #define stpcpy, strdup to aliases.
42476         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42477         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42478
42479 2006-10-10  Bruno Haible  <bruno@clisp.org>
42480
42481         Make it possible to #define gcd to an alias.
42482         * lib/gcd.c: Include config.h.
42483
42484 2006-10-10  Bruno Haible  <bruno@clisp.org>
42485
42486         Make it possible to #define c_isascii to an alias.
42487         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42488         defined. Undefine the macros before defining them, to avoid gcc
42489         warnings.
42490         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42491         define NO_C_CTYPE_MACROS early.
42492
42493 2006-10-10  Bruno Haible  <bruno@clisp.org>
42494
42495         Make it possible to #define set_program_name to an alias.
42496         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42497         ENABLE_RELOCATABLE early.
42498
42499 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42500
42501         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42502         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42503         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42504         More generally, don't assume that 64-bit signed int is available
42505         if unsigned int is, and vice versa.
42506         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42507         unsigned symbols, not on their signed counterparts.
42508         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42509         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42510         (UINT64_C, UINTMAX_C):
42511         Likewise.
42512         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42513         unsigned counterparts.
42514         (Have_long_long, Unsigned): New macros.
42515         (Int): Renamed from INT.
42516         (strtoimax): Use the new macros.
42517         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42518         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42519         * modules/inttypes (inttypes.h): Substitute
42520         HAVE_UNSIGNED_LONG_LONG_INT.
42521         * modules/stdint (stdint.h): Likewise.
42522         (Files): Add m4/ulonglong.m4.
42523
42524 2006-10-10  Bruno Haible  <bruno@clisp.org>
42525
42526         Fix a gcc -Wshadow warning.
42527         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42528         to 'bucket'.
42529         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42530         gl_linked_indexof_from_to): Likewise.
42531         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42532         Likewise.
42533         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42534         Likewise.
42535         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42536         Reported by Eric Blake.
42537
42538 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42539
42540         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42541         for NetBSD.  Problem reported by Bruno Haible.
42542
42543 2006-10-09  Jim Meyering  <jim@meyering.net>
42544
42545         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42546         Patch from Bruno Haible.
42547
42548 2006-10-09  Jim Meyering  <jim@meyering.net>
42549
42550         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42551         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42552         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42553
42554 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42555
42556         Don't include <config.h> twice; this doesn't work in some cases,
42557         e.g., when config.h has "#define intmax_t long long int" and
42558         we include <config.h>, <inttypes.h>, <config.h> in that order.
42559         Problem reported by Matthew Woehlke in:
42560         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42561         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42562         * lib/fts-cycle.c: Don't include config.h.
42563         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42564         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42565         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42566         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42567         inttypes.h.
42568         * lib/xstrtoumax.c: Likewise.
42569         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42570         __strtol and the like, so that this module is more like its siblings.
42571         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42572         Remove; no longer needed now that we assume gnulib inttypes.h.
42573
42574 2006-10-08  Bruno Haible  <bruno@clisp.org>
42575
42576         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42577         option.
42578
42579 2006-10-07  Jim Meyering  <jim@meyering.net>
42580
42581         * modules/inttypes (inttypes.h): Revert what seems to have been
42582         an inadvertent part of today's change: use "|", not "/" in the
42583         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42584
42585 2006-10-07  Bruno Haible  <bruno@clisp.org>
42586
42587         * modules/sublist: New file.
42588
42589 2006-10-07  Bruno Haible  <bruno@clisp.org>
42590
42591         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42592         * modules/argz (argz.h): Likewise.
42593         * modules/arpa_inet (arpa/inet.h): Likewise.
42594         * modules/byteswap (byteswap.h): Likewise.
42595         * modules/configmake (configmake.h): Likewise.
42596         * modules/fcntl (fcntl.h): Likewise.
42597         * modules/fnmatch (fnmatch.h): Likewise.
42598         * modules/getopt (getopt.h): Likewise.
42599         * modules/glob (glob.h): Likewise.
42600         * modules/inttypes (inttypes.h): Likewise.
42601         * modules/netinet_in (netinet/in.h): Likewise.
42602         * modules/poll (poll.h): Likewise.
42603         * modules/stdbool (stdbool.h): Likewise.
42604         * modules/stdint (stdint.h): Likewise.
42605         * modules/sys_select (sys/select.h): Likewise.
42606         * modules/sys_socket (sys/socket.h): Likewise.
42607         * modules/sys_stat (sys/stat.h): Likewise.
42608         * modules/sysexits (sysexits.h): Likewise.
42609         * modules/unistd (unistd.h): Likewise.
42610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42611         Add a "DO NOT EDIT" comment to the generated file.
42612         (func_import): Likewise for gnulib-comp.m4.
42613
42614 2006-10-07  Bruno Haible  <bruno@clisp.org>
42615
42616         * lib/gl_sublist.h: New file.
42617         * lib/gl_sublist.c: New file.
42618
42619 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42620
42621         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42622         name (relative to the original working directory) and the file
42623         name component (relative to the temporary working directory).  All
42624         callers changed.
42625         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42626         * lib/mkdir-p.c (make_dir_parents): Likewise.
42627         * lib/mkdir-p.h (make_dir_parents): Likewise.
42628
42629 2006-10-06  Eric Blake  <ebb9@byu.net>
42630
42631         Define several macros for use by the clean-temp module.
42632         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42633         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42634         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42635
42636         * lib/clean-temp.h (close_stream_temp): New declaration.
42637         * lib/clean-temp.c (includes): Pull in headers according to what
42638         other modules are in use.
42639         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42640
42641 2006-10-06  Bruno Haible  <bruno@clisp.org>
42642
42643         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42644         instead of fopen, fwriteerror.
42645
42646 2006-10-06  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42649         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42650         int.
42651         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42652         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42653         Return an error indicator.
42654         Suggested by Eric Blake.
42655
42656 2006-10-06  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42659         Reported by Eric Blake.
42660
42661 2006-10-06  Bruno Haible  <bruno@clisp.org>
42662
42663         * modules/closeout (Description): Mention stderr too.
42664
42665 2006-10-06  Bruno Haible  <bruno@clisp.org>
42666         and Paul Eggert  <eggert@cs.ucla.edu>
42667
42668         * lib/closeout.c (close_stdout): Also close stderr.
42669         * lib/closeout.h: Update comment.
42670
42671 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42672
42673         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42674         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42675         * lib/dirchownmod.c: Include lchown.h.
42676         * lib/lchown.c: Don't include files that lchown.h now includes.
42677         Don't declare chown, since lchown.h now does that.
42678         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42679         (lchown): Define to rpl_chown if lchown is declared but
42680         does not exist.  Declare using a prototype if lchown is not
42681         declared.  Add a copyright notice.
42682         * lib/mkstemp.h: Include <unistd.h>.
42683         * lib/openat.c: Include lchown.h.
42684
42685         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42686         we now test for that separately.
42687         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42688         rather than O_NOFOLLOW, when testing whether it's possible to
42689         avoid a race condition reliably.
42690         * lib/savewd.c (savewd_chdir): Likewise.
42691
42692         Remove macros that are no longer needed now that stdint.h is
42693         reliable.
42694         * lib/fsusage.c (UINTMAX_MAX): Remove.
42695         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42696         * lib/utimecmp.c (SIZE_MAX): Remove.
42697
42698         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42699
42700         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42701         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42702         O_NOATIME works.
42703
42704 2006-10-05  Bruno Haible  <bruno@clisp.org>
42705
42706         * lib/gl_list.h (gl_sortedlist_search_from_to,
42707         gl_sortedlist_indexof_from_to): New declarations.
42708         (gl_list_implementation): New fields sortedlist_search_from_to,
42709         sortedlist_indexof_from_to.
42710         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42711         inline functions.
42712         * lib/gl_list.c (gl_sortedlist_search_from_to,
42713         gl_sortedlist_indexof_from_to): New functions.
42714         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42715         function.
42716         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42717         (gl_array_sortedlist_search_from_to): New function.
42718         (gl_array_list_implementation): Update.
42719         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42720         function.
42721         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42722         (gl_carray_sortedlist_search_from_to): New function.
42723         (gl_carray_list_implementation): Update.
42724         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42725         gl_linked_sortedlist_indexof_from_to): New functions.
42726         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42727         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42728         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42729         gl_tree_sortedlist_indexof_from_to): New functions.
42730         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42731         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42732         Update.
42733         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42734         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42735         Update.
42736
42737 2006-10-05  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42740         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42741         (struct gl_list_implementation): Add fields search_from_to,
42742         indexof_from_to. Remove fields search, indexof.
42743         (gl_list_search): Use the search_from_to method.
42744         (gl_list_search_from, gl_list_search_from_to): New functions.
42745         (gl_list_indexof): Use the indexof_from_to method.
42746         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42747         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42748         (gl_list_search_from, gl_list_search_from_to): New functions.
42749         (gl_list_indexof): Use the indexof_from_to method.
42750         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42751         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42752         gl_array_indexof. Add start_index, end_index arguments.
42753         (gl_array_search_from_to): Renamed from gl_array_search. Add
42754         start_index, end_index arguments.
42755         (gl_array_remove, gl_array_list_implementation): Update.
42756         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42757         gl_carray_indexof. Add start_index, end_index arguments.
42758         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42759         start_index, end_index arguments.
42760         (gl_carray_remove, gl_carray_list_implementation): Update.
42761         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42762         gl_linked_search. Add start_index, end_index arguments.
42763         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42764         start_index, end_index arguments.
42765         (gl_linked_remove): Update.
42766         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42767         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42768         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42769         field to 'size_t'.
42770         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42771         gl_tree_search. Add start_index, end_index arguments.
42772         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42773         start_index, end_index arguments.
42774         (gl_tree_remove): Update.
42775         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42776         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42777         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42778         function.
42779         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42780         gl_tree_search. Add start_index, end_index arguments.
42781         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42782         start_index, end_index arguments.
42783         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42784         Update.
42785         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42786
42787 2006-10-05  Bruno Haible  <bruno@clisp.org>
42788
42789         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42790
42791         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42792         fwriteerror_temp): New declarations.
42793         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42794         (descriptors): New variable.
42795         (cleanup): First, close the descriptors.
42796         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42797         fclose_temp, fwriteerror_temp): New functions.
42798
42799 2006-10-04  Jim Meyering  <jim@meyering.net>
42800
42801         * lib/fts.c (fts_open): Tiny comment change.
42802
42803 2006-10-04  Bruno Haible  <bruno@clisp.org>
42804
42805         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42806         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42807         gl_LOCK_BODY.
42808         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42809         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42810         gl_LOCK_EARLY_BODY.
42811         (gl_LOCK): Require gl_LOCK_BODY.
42812
42813 2006-10-04  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42816         (gl_oset_search_atleast): New declaration.
42817         (struct gl_oset_implementation): Add field 'search_atleast'.
42818         (gl_oset_search_atleast): New inline function.
42819         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42820         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42821         (gl_array_oset_implementation): Update.
42822         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42823         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42824         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42825
42826 2006-10-04  Bruno Haible  <bruno@clisp.org>
42827
42828         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42829
42830 2006-10-03  Bruno Haible  <bruno@clisp.org>
42831
42832         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42833         from gl_avltreehash_list_implementation.
42834
42835 2006-10-03  Bruno Haible  <bruno@clisp.org>
42836
42837         * lib/gl_oset.c (gl_oset_add): Fix return type.
42838
42839 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42840
42841         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42842
42843 2006-10-02  Eric Blake  <ebb9@byu.net>
42844
42845         * modules/strnlen (Depends-on): Add extensions.
42846
42847 2006-10-02  Eric Blake  <ebb9@byu.net>
42848
42849         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42850         definition in 2.60+.
42851
42852 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42853
42854         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42855         checks.
42856
42857 2006-10-02  Bruno Haible  <bruno@clisp.org>
42858
42859         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42860         to the AUTOMAKE_OPTIONS.
42861         Reported by Jim Meyering.
42862
42863 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42864
42865         Work around bug in Solaris 10 /proc file system:
42866         /proc/self/fd/NNN/.. isn't the parent directory of
42867         the directory whose file descriptor is NNN.  This needs to
42868         be worked around at run time, not compile time, since a
42869         program might be built on Solaris 8, where things work, and
42870         run on Solaris 10.
42871         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42872         to use the following interface instead:
42873         (OPENAT_BUFFER_SIZE): New macro.
42874         (openat_proc_name): New function.
42875         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42876         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42877         Likewise.
42878         * lib/openat-proc.c: New file.
42879         * modules/openat (Files): Add lib/openat-proc.c.
42880         (Depends-on): Add same-inode, stdbool.
42881         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42882
42883 2006-09-29  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42886         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42887         argument. Set stdout_closed before testing for ferror, not after.
42888         (fwriteerror, fwriteerror_no_ebadf): New functions.
42889
42890 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42891
42892         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42893
42894 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42895
42896         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42897         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42898
42899 2006-09-28  Jim Meyering  <jim@meyering.net>
42900
42901         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42902         Include <unistd.h>.
42903
42904 2006-09-28  Bruno Haible  <bruno@clisp.org>
42905
42906         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42907         * modules/linkedhash-list (Depends-on): Likewise.
42908         * modules/rbtreehash-list (Depends-on): Likewise.
42909
42910 2006-09-28  Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/strndup.h: Simplify the redefinition of strndup.
42913         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42914         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42915
42916 2006-09-28  Bruno Haible  <bruno@clisp.org>
42917
42918         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42919         * lib/gl_linkedhash_list.c: Likewise.
42920         * lib/gl_rbtreehash_list.c: Likewise.
42921
42922 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42923
42924         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42925         getaddrinfo.
42926
42927         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42928         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42929         it causes <stdio_ext.h> to cause a compile-time error.
42930         Problem reported by Nelson H. F. Beebe.
42931         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42932         of HAVE_DECL___PENDING.
42933
42934         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42935         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42936         declaration.
42937
42938 2006-09-27  Jim Meyering  <jim@meyering.net>
42939
42940         This file could end up with a definition for a function
42941         named __strndup, rather than rpl_strndup on a system with
42942         incomplete weak_alias support.
42943         * lib/strndup.c (strndup): Rename from __strndup.
42944         Remove #defines that used to map __strndup to strndup.
42945         Don't use K&R prototypes.
42946         Remove LIBC-related code, since this file is not sync'd with glibc.
42947         * lib/strndup.h: Revamp, accordingly.
42948         * m4/strndup.m4: Modernize.
42949
42950 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42951
42952         * modules/savewd (Depends-on): Add 'raise'.
42953         * lib/savewd.c: Include <signal.h>, for 'raise'.
42954
42955 2006-09-26  Jim Meyering  <jim@meyering.net>
42956
42957         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42958         when we detect Darwin 8.7.0's acl_get_file bug.
42959         Rearrange to perform the new (below) run-test while $LIBS
42960         contains any acl-related library.  Set USE_ACL at the end.
42961         (gl_ACL_GET_FILE): New function.
42962
42963 2006-09-26  Eric Blake  <ebb9@byu.net>
42964
42965         * lib/verror.c: Include <config.h> unconditionally.
42966
42967 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42968
42969         * modules/clock-time (Maintainer): Add self.
42970         * modules/getlogin_r (Depends-on): Add extensions.
42971
42972 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42973
42974         * modules/clock-time: New module.
42975         * modules/nanosleep (Depends-on): Add clock-time.
42976         * modules/gethrxtime (Depends-on): Likewise.
42977         * modules/gettime (Depends-on): Likewise.
42978         * modules/settime (Depends-on): Likewise.
42979
42980         * modules/fts-lgpl: Depend on openat.
42981         * modules/mkancesdirs: Depend on savewd.
42982         * modules/mkdir-p: Likewise.
42983
42984 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42985
42986         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42987
42988         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42989         `gl_have_arbitrary_file_name_length_limit' to
42990         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42991         actually works between configure runs.
42992
42993 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42994             Bruno Haible  <bruno@clisp.org>
42995
42996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42997
42998 2006-09-25  Jim Meyering  <jim@meyering.net>
42999
43000         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43001         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43002
43003 2006-09-25  Eric Blake  <ebb9@byu.net>
43004
43005         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43006         exec's in 2006-09-18 patch when shuffling fds.
43007
43008 2006-09-25  Bruno Haible  <bruno@clisp.org>
43009
43010         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43011         Reported by Jim Meyering.
43012
43013 2006-09-24  Jim Meyering  <jim@meyering.net>
43014
43015         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43016         compare a pointer against a literal "0".  That caused failures with
43017         at least HP-UX's hpcc.
43018
43019 2006-09-22  Simon Josefsson  <jas@extundo.com>
43020
43021         * modules/gc-sha1:
43022         * modules/gc-md4:
43023         * modules/gc-hmac-sha1:
43024         * modules/gc-hmac-md5:
43025         * modules/gc-des:
43026         * modules/gc-arcfour: Distribute more files.
43027
43028 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43029
43030         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43031         (gl_linked_iterator_from_to): Initialize struct completely.
43032         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43033         (gl_tree_iterator_from_to): Likewise
43034         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43035         * lib/gl_array_list.c [lint] (gl_array_iterator)
43036         (gl_array_iterator_from_to): Likewise.
43037         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43038         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43039         (gl_carray_iterator_from_to): Likewise.
43040
43041         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43042         * lib/md4.c (md4_process_block): Remove unused variable.
43043         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43044         parentheses for clarity.
43045
43046 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43047
43048         * modules/bison-i18n (Depends-on): Add gettext.
43049
43050 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43051
43052         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43053         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43054         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43055         also add missing comma that caused broken test.
43056         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43057         stdlib.h, for `abort'.
43058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43059         variables.
43060         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43061         include unistd.h if present, for `rmdir'.
43062         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43063         variables.
43064         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43065         in the process include standard headers for prototypes.
43066         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43067         gets declared on GNU/Linux.
43068         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43069         unistd.h, for `rmdir'.
43070         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43071
43072         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43073         always true.
43074         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43075
43076         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43077
43078 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43079
43080         * gnulib-tool (func_version): Create output all at once.  This
43081         may help avoid triggering unnecessary SIGPIPEs, and at any
43082         rate it doesn't hurt.
43083
43084 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43085             Bruno Haible  <bruno@clisp.org>
43086
43087         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43088         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43089         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43090
43091         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43092         (gl_FUNC_VASPRINTF): Invoke it.
43093
43094 2006-09-22  Bruno Haible  <bruno@clisp.org>
43095
43096         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43097         getloadavg.c as first argument.
43098
43099 2006-09-22  Bruno Haible  <bruno@clisp.org>
43100
43101         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43102         at the beginning of the gl_INIT macro.
43103         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43104         gl_GETLOADAVG.
43105
43106 2006-09-22  Bruno Haible  <bruno@clisp.org>
43107
43108         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43109         module.
43110         Suggested by Ralf Wildenhues.
43111
43112 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43113
43114         Import this patch from libc:
43115
43116         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43117
43118         * lib/regex_internal.c (re_string_reconstruct): Handle
43119         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43120         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43121         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43122         re_string_context_at.
43123
43124         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43125         now requires it.
43126         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43127         gl_REGEX now does it for us.
43128         (gl_REGEX): Add test taken from
43129         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43130
43131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43132         Check that large offsets work.  Modernize Autoconf usages.
43133         Prefer "yes" to mean a good thing rather than a bad.
43134         Don't put "#define mkstemp" in config.h, as this might interfere
43135         with standard system headers that "#define mkstemp mkstemp64".
43136
43137         * modules/mkstemp (Depends-on): Add extensions, so that
43138         mkstemp is visible on some platforms.
43139         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43140         (Include): Change to "mkstemp.h" from <stdlib.h>.
43141         (Files): Add mkstemp.h.
43142
43143         * lib/mkstemp.h: New file, since some standard headers
43144         #define mkstemp.
43145         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43146         Include "mkstemp.h".
43147         Make the _LIBC code resemble glibc original more,
43148         e.g., use K&R style.
43149         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43150         (mkstemp): Remove, since mkstemp.h does this for us.
43151         * lib/stdlib--.h: Include mkstemp.h.
43152
43153         Import this patch from libc:
43154
43155         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43156
43157         * lib/tempname.c (__gen_tempname): Change attempts_min
43158         into a macro.  Use preprocessor to decide how to initialize
43159         attempts [Coverity CID 67].
43160
43161 2006-09-20  Bruno Haible  <bruno@clisp.org>
43162
43163         * lib/mkdtemp.c: Import from libc.
43164         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43165                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43166                 attempts_min into a macro.  Use preprocessor to decide how to
43167                 initialize attempts [Coverity CID 67].
43168         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43169                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43170                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43171
43172 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43173
43174         * gnulib-tool (func_exit): New function, to allow to pass the
43175         exit status portably through the trap.  Use everywhere.
43176         (--help, --version): Signal a write error.
43177         (trap): catch SIGPIPE, for write errors.
43178         Exit at the end of the trap, with the correct exit status.
43179
43180 2006-09-19  Karl Berry  <karl@gnu.org>
43181
43182         * doc/gnulib.texi: note about the license texinfo files.
43183
43184 2006-09-19  Eric Blake  <ebb9@byu.net>
43185
43186         * gnulib-tool: Avoid space-tab.
43187
43188 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43189
43190         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43191         that prevented coreutils 6.1 from building.  Problem reported
43192         by Petter Reinholdtsen.
43193
43194 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43195
43196         * gnulib-tool (avoidlist): Fix typo that broke options like
43197         --avoid=lock that are used by coreutils bootstrap.
43198
43199 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43200
43201         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43202         more systematically.
43203
43204 2006-09-18  Jim Meyering  <jim@meyering.net>
43205
43206         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43207
43208 2006-09-18  Bruno Haible  <bruno@clisp.org>
43209
43210         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43211
43212 2006-09-18  Bruno Haible  <bruno@clisp.org>
43213
43214         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43215         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43216         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43217         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43218         * m4/gettext.m4: Require autoconf >= 2.52.
43219         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43220         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43221         of gl_cv_header_inttypes_h.
43222
43223 2006-09-18  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/javaversion.c: Include configmake.h.
43226
43227 2006-09-18  Bruno Haible  <bruno@clisp.org>
43228
43229         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43230         avoid that the while loops be executed in a subshell.
43231
43232 2006-09-18  Bruno Haible  <bruno@clisp.org>
43233
43234         * MODULES.html.sh (func_module): Break long lines.
43235         Suggested by Bruce Korb <bkorb@gnu.org>.
43236
43237 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43238
43239         Speed up by a factor of 1.12.
43240         * gnulib-tool (nl): New variable.
43241         (func_import): Rewrite include directive extraction to only read each
43242         directive once.
43243
43244 2006-09-17  Bruno Haible  <bruno@clisp.org>
43245
43246         * modules/javaversion (Makefile.am): Remove DEFS setting.
43247         (Depends-on): Add configmake, for PKGDATADIR definition.
43248
43249 2006-09-17  Bruno Haible  <bruno@clisp.org>
43250
43251         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43252
43253 2006-09-17  Bruno Haible  <bruno@clisp.org>
43254
43255         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43256         (func_modules_transitive_closure, func_modules_add_dummy,
43257         func_modules_to_filelist, func_import, func_create_testdir,
43258         func_create_megatestdir, ...): Use it wherever possible.
43259         Suggested by Ralf Wildenhues.
43260
43261 2006-09-16  Karl Berry  <karl@gnu.org>
43262
43263         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43264         to avoid sectioning errors.
43265         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43266         [ifinfo]: blank line after @center-ed titles.
43267         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43268         Spell FSF address consistently with others.
43269         (These changes approved by rms.)
43270
43271 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43272
43273         Speed up by a factor of 1.61.
43274         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43275         already checked module names again.
43276
43277 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43278
43279         Speed up by a factor of 1.13.
43280         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43281         for new_files, and the input to func_add_or_update.
43282
43283 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43284
43285         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43286         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43287
43288 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43289
43290         * modules/mkancesdirs (Depends-on): Add fcntl.
43291         * modules/savewd: New file.
43292         * MODULES.html.sh (File system functions): Add savewd.
43293
43294         * modules/configmake (Makefile.am): Add support for the
43295         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43296
43297 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         * m4/savewd.m4: New file.
43300
43301 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43302
43303         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43304         (dirchownmod): New arg FD.  All callers changed.
43305         Use FD rather than opening the directory ourself, as opening is
43306         now the caller's responsibility.
43307         * lib/dirchownmod.h: Likewise.
43308         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43309         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43310         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43311         (test_dir): Remove.
43312         (mkancesdirs): Return length of prefix of FILE that has already
43313         been made, or -2 if there is a child doing the work.  Redo
43314         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43315         ".", and treat ".." specially since it might stray back into
43316         already-created areas.  Use a subprocess if necessary.  New arg
43317         WD; all users changed.  MAKE_DIR function should now return 1
43318         if it creates a directory that is not readable.  Return -2 if
43319         a child process is spun off.
43320         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43321         Adjust signature to match code.
43322         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43323         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43324         all users changed.
43325         * lib/savewd.c, lib/savewd.h: New files.
43326
43327 2006-09-15  Jim Meyering  <jim@meyering.net>
43328
43329         * modules/rename-dest-slash: New module.
43330         * MODULES.html.sh (posix_compat): Add it here.
43331
43332         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43333
43334 2006-09-15  Jim Meyering  <jim@meyering.net>
43335
43336         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43337         file.
43338
43339         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43340
43341 2006-09-15  Jim Meyering  <jim@meyering.net>
43342
43343         * lib/rename-dest-slash.c (has_trailing_slash): Use
43344         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43345         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43346         test before testing whether SRC is a directory.
43347         Suggestions from Bruno Haible.
43348
43349         Avoid a warning about an unused variable.
43350         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43351         into the #ifdef block where it's used.
43352
43353         * lib/rename-dest-slash.c: New file.
43354
43355 2006-09-14  Bruno Haible  <bruno@clisp.org>
43356
43357         * lib/allocsa.c: Include <config.h> unconditionally.
43358         * lib/asnprintf.c: Likewise.
43359         * lib/asprintf.c: Likewise.
43360         * lib/c-strcasecmp.c: Likewise.
43361         * lib/c-strcasestr.c: Likewise.
43362         * lib/c-strncasecmp.c: Likewise.
43363         * lib/c-strstr.c: Likewise.
43364         * lib/classpath.c: Likewise.
43365         * lib/clean-temp.c: Likewise.
43366         * lib/concatpath.c: Likewise.
43367         * lib/copy-file.c: Likewise.
43368         * lib/csharpcomp.c: Likewise.
43369         * lib/csharpexec.c: Likewise.
43370         * lib/execute.c: Likewise.
43371         * lib/fatal-signal.c: Likewise.
43372         * lib/findprog.c: Likewise.
43373         * lib/fwriteerror.c: Likewise.
43374         * lib/gl_array_list.c: Likewise.
43375         * lib/gl_array_oset.c: Likewise.
43376         * lib/gl_avltree_list.c: Likewise.
43377         * lib/gl_avltree_oset.c: Likewise.
43378         * lib/gl_avltreehash_list.c: Likewise.
43379         * lib/gl_carray_list.c: Likewise.
43380         * lib/gl_linked_list.c: Likewise.
43381         * lib/gl_linkedhash_list.c: Likewise.
43382         * lib/gl_list.c: Likewise.
43383         * lib/gl_oset.c: Likewise.
43384         * lib/gl_rbtree_list.c: Likewise.
43385         * lib/gl_rbtree_oset.c: Likewise.
43386         * lib/gl_rbtreehash_list.c: Likewise.
43387         * lib/imaxabs.c: Likewise.
43388         * lib/imaxdiv.c: Likewise.
43389         * lib/javacomp.c: Likewise.
43390         * lib/javaexec.c: Likewise.
43391         * lib/javaversion.c: Likewise.
43392         * lib/linebreak.c: Likewise.
43393         * lib/localcharset.c: Likewise.
43394         * lib/lock.c: Likewise.
43395         * lib/mbchar.c: Likewise.
43396         * lib/mbswidth.c: Likewise.
43397         * lib/mkdtemp.c: Likewise.
43398         * lib/pipe.c: Likewise.
43399         * lib/printf-args.c: Likewise.
43400         * lib/printf-parse.c: Likewise.
43401         * lib/progname.c: Likewise.
43402         * lib/progreloc.c: Likewise.
43403         * lib/readlink.c: Likewise.
43404         * lib/sh-quote.c: Likewise.
43405         * lib/stpcpy.c: Likewise.
43406         * lib/stpncpy.c: Likewise.
43407         * lib/strcasecmp.c: Likewise.
43408         * lib/strcasestr.c: Likewise.
43409         * lib/strcspn.c: Likewise.
43410         * lib/striconv.c: Likewise.
43411         * lib/strncasecmp.c: Likewise.
43412         * lib/strnlen1.c: Likewise.
43413         * lib/strstr.c: Likewise.
43414         * lib/strtok_r.c: Likewise.
43415         * lib/tls.c: Likewise.
43416         * lib/tmpdir.c: Likewise.
43417         * lib/unicodeio.c: Likewise.
43418         * lib/unsetenv.c: Likewise.
43419         * lib/vasnprintf.c: Likewise.
43420         * lib/vasprintf.c: Likewise.
43421         * lib/wait-process.c: Likewise.
43422         * lib/xallocsa.c: Likewise.
43423         * lib/xsetenv.c: Likewise.
43424         * lib/xstriconv.c: Likewise.
43425
43426 2006-09-13  Simon Josefsson  <jas@extundo.com>
43427
43428         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43429         that internally, suggested by Ralf Wildenhues
43430         <Ralf.Wildenhues@gmx.de>.
43431
43432 2006-09-13  Simon Josefsson  <jas@extundo.com>
43433
43434         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43435         @LIBOBJS@.
43436         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43437
43438 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43439
43440         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43441         longer worry about uses that don't define HAVE_CONFIG_H.
43442         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43443         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43444         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43445         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43446         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43447         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43448         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43449         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43450         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43451         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43452         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43453         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43454         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43455         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43456         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43457         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43458         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43459         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43460         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43461         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43462         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43463         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43464         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43465         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43466         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43467         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43468         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43469         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43470         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43471         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43472         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43473         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43474         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43475         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43476         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43477         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43478         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43479         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43480         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43481         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43482         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43483         Likewise.
43484
43485 2006-09-13  Eric Blake  <ebb9@byu.net>
43486
43487         * lib/getopt.c: Fix typo in last commit.
43488
43489 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43490
43491         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43492         dgettext.
43493
43494 2006-09-12  Jim Meyering  <jim@meyering.net>
43495
43496         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43497         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43498         Reported by Nelson H. F. Beebe.
43499
43500 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43501
43502         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43503         program_invocation_name and program_invocation_short_name are
43504         initialized.
43505         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43506         and program_invocation_short_name to argp.h, so they are visible
43507         to user programs.
43508         * lib/argp.h: Likewise
43509
43510 2006-09-10  Bruno Haible  <bruno@clisp.org>
43511
43512         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43513         m4/inttypes_h.m4, m4/uintmax_t.m4.
43514
43515 2006-09-10  Bruno Haible  <bruno@clisp.org>
43516
43517         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43518         gl_AC_TYPE_UINTMAX_T.
43519
43520 2006-09-10  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43523
43524 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43525
43526         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43527         convention.  Text proposed by Bruno Haible.
43528         (struct argp_option): Document the use of N_() wrappers.
43529
43530         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43531         '\v', and translate the two parts separately, instead of feeding
43532         the whole string to gettext.  This allows to exclude
43533         '\v' from the strings visible to the translator by writing doc
43534         strings as N_("..") "\v" N_("..").
43535
43536 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43537
43538         * config/srclist.txt: Undo latest change; the bug was fixed.
43539
43540 2006-09-09  Bruno Haible  <bruno@clisp.org>
43541
43542         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43543         assignments if building a library without libtool.
43544         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43545         in func_emit_lib_Makefile_am.
43546         (func_import): When building a static library libfoo.a, arrange to
43547         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43548         (func_create_testdir): Likewise.
43549         * modules/gc (configure.ac, Makefile.am): If building statically,
43550         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43551         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43552         * modules/striconv (configure.ac, Makefile.am): Likewise.
43553         Based on a suggestion by Ralf Wildenhues.
43554
43555 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43556
43557         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43558         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43559         Also:
43560
43561         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43562         Add year_2050_test to catch glibc bug 2821
43563         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43564
43565         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43566         Prefer #ifdef to #if.
43567
43568         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43569         Return from 'main' instead of calling 'exit'.
43570
43571 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43572
43573         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43574         returned the maximum time_t value rather than (time_t) -1.
43575         Problem originally reported by William Bardwell
43576         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43577
43578         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43579         Moved to here ...
43580         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43581         ... from here.
43582
43583 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43584
43585         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43586         2821 is fixed.
43587
43588 2006-09-08  Jim Meyering  <jim@meyering.net>
43589
43590         Don't make generated files read-only.  That would bother too many
43591         people.  However, do retain the ability to work when targets are
43592         read-only: remove the destination and temporary files before writing
43593         them (when generated via sed or echo), or by using the -f option for
43594         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43595         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43596         * modules/byteswap, modules/configmake, modules/fcntl:
43597         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43598         * modules/localcharset, modules/netinet_in, modules/poll:
43599         * modules/stdbool, modules/stdint, modules/sys_select:
43600         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43601
43602 2006-09-08  Jim Meyering  <jim@meyering.net>
43603
43604         Avoid new build failure on FreeBSD 6.0.
43605         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43606         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43607         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43608
43609 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43610
43611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43612
43613 2006-09-07  Jim Meyering  <jim@meyering.net>
43614
43615         Fix global typo in last change: use chmod u-w, not chmod u-x.
43616         Spotted by Paul Eggert and Bruce Korb.
43617         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43618         * modules/byteswap, modules/configmake, modules/fcntl:
43619         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43620         * modules/localcharset, modules/netinet_in, modules/poll:
43621         * modules/stdbool, modules/stdint, modules/sys_select:
43622         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43623
43624 2006-09-06  Jim Meyering  <jim@meyering.net>
43625
43626         Make generated files be read-only.
43627         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43628         Ensure that each generated file is now read-only.
43629         * modules/argz: Likewise.
43630         * modules/arpa_inet: Likewise.
43631         * modules/byteswap: Likewise.
43632         * modules/configmake: Likewise.
43633         * modules/fcntl: Likewise.
43634         * modules/fnmatch: Likewise.
43635         * modules/getopt: Likewise.
43636         * modules/glob: Likewise.
43637         * modules/inttypes: Likewise.
43638         * modules/netinet_in: Likewise.
43639         * modules/poll: Likewise.
43640         * modules/stdbool: Likewise.
43641         * modules/stdint: Likewise.
43642         * modules/sys_select: Likewise.
43643         * modules/sys_socket: Likewise.
43644         * modules/sys_stat: Likewise.
43645         * modules/sysexits: Likewise.
43646         * modules/localcharset: Same as above, but continue using temporary
43647         file named "t-$@" (why different?) rather than the "$@-t" used
43648         everywhere else.
43649
43650         * modules/sysexits (Makefile.am): Replace literal occurrences
43651         of "sysexit.h" more readable, and more consistent, "$@".
43652
43653 2006-09-06  Bruno Haible  <bruno@clisp.org>
43654
43655         * modules/striconv: New file.
43656         * modules/xstriconv: New file.
43657         * MODULES.html.sh (Internationalization functions): Add striconv,
43658         xstriconv.
43659
43660 2006-09-06  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43663         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43664         not using libtool correctly.
43665
43666 2006-09-06  Bruno Haible  <bruno@clisp.org>
43667
43668         * lib/striconv.h: New file.
43669         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43670         iconvstring.c.
43671         * lib/xstriconv.h: New file.
43672         * lib/xstriconv.c: New file.
43673
43674 2006-09-06  Bruno Haible  <bruno@clisp.org>
43675
43676         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43677         lib_..._LDFLAGS.
43678
43679 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43680
43681         * lib/argz_.h: Sync from Libtool.
43682
43683         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43684                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43685
43686         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43687
43688 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43689
43690         * modules/trim: New file.
43691
43692 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43693
43694         * lib/trim.h: New file.
43695         * lib/trim.c: New file.
43696
43697 2006-09-05  Bruno Haible  <bruno@clisp.org>
43698
43699         * MODULES.html.sh (String handling): Add trim.
43700
43701 2006-09-04  Karl Berry  <karl@gnu.org>
43702
43703         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43704         until next release.
43705
43706 2006-09-03  Bruno Haible  <bruno@clisp.org>
43707
43708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43709         correctly.
43710
43711 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43712
43713         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43714         not gl_GETLOADAVG.  Omit unneeded semicolons.
43715         Problems reported by Ralf Wildenhues in
43716         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43717         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43718         at the end, which is the usual gnulib style.
43719
43720         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43721         of doing all the work ourselves.
43722         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43723         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43724
43725 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43728         Problem reported by Ralf Wildenhues in
43729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43730
43731         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43732         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43733
43734 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43735
43736         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43737         yesterday's patch by changing test -n to test -z.
43738
43739 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43740
43741         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43742         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43743         the former is now obsolescent.
43744
43745         * modules/chdir-long (Depends-on): Add fcntl.
43746
43747 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43748
43749         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43750         obsolescent, and programs should use gnulib instead.
43751         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43752         but with prefixes changed.
43753
43754 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43755
43756         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43757         or stdbool.h, because they might not exist while configuring.
43758
43759         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43760         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43761         does that for us.
43762         (O_DIRECTORY): Remove.
43763
43764 2006-08-31  Eric Blake  <ebb9@byu.net>
43765
43766         * gnulib-tool: Don't let emacs change spaces to TAB.
43767
43768 2006-08-31  Bruno Haible  <bruno@clisp.org>
43769
43770         * gnulib-tool: When calling func_import more than once, do it in a
43771         subshell.
43772         Reported by Eric Blake <ebb9@byu.net>.
43773
43774 2006-08-31  Bruno Haible  <bruno@clisp.org>
43775
43776         * gnulib-tool (nl): Remove variable.
43777         (sed_transform_lib_file): Use more robust test for config-h module.
43778         (func_import): Fix typo in 2006-08-25 patch.
43779
43780 2006-08-31  Bruno Haible  <bruno@clisp.org>
43781
43782         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43783         specified, augment Makefile.am variables instead of assigning them.
43784
43785 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43786
43787         Work around a bug in both the Linux and SunOS 64-bit kernels:
43788         nanosleep mishandles sleeps for longer than 2**31 seconds.
43789         Problem reported by Frank v Waveren in
43790         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43792         Check for nanosleep bug.
43793         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43794
43795 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43796
43797         Work around a bug in both the Linux and SunOS 64-bit kernels:
43798         nanosleep mishandles sleeps for longer than 2**31 seconds.
43799         Problem reported by Frank v Waveren in
43800         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43801         * lib/nanosleep.c (BILLION): New constant.
43802         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43803         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43804         implementation.
43805
43806 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43807
43808         * modules/nanosleep (Depends-on): Add gettime.
43809
43810 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43811         and Simon Josefsson  <jas@extundo.com>
43812         and Oskar Liljeblad  <oskar@osk.mine.nu>
43813
43814         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43815         * gnulib-tool (func_import): New license type 'unmodifiable license
43816         text'.
43817         * modules/fdl: Use it.  Longer description.
43818         * module/gpl, module/lgpl: New files.
43819
43820 2006-08-30  Jim Meyering  <jim@meyering.net>
43821
43822         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43823         shadowing the parameter.
43824
43825 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43826
43827         Sync from Libtool:
43828
43829         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43830
43831         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43832         sharing with gnulib.  Report by Eric Blake.
43833
43834 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43835
43836         * modules/isapipe: New file.
43837         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43838
43839 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43840
43841         * modules/configmake (Makefile.am): Add a comment, and omit
43842         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43843         by Bruno Haible.
43844
43845 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43846
43847         * m4/isapipe.m4: New file.
43848
43849 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43850
43851         * lib/isapipe.c, lib/isapipe.h: New files.
43852
43853 2006-08-29  Jim Meyering  <jim@meyering.net>
43854
43855         * modules/configmake (Makefile.am): Make configmake.h depend on
43856         Makefile.  Otherwise, a stale configmake.h could hang around.
43857
43858 2006-08-29  Eric Blake  <ebb9@byu.net>
43859
43860         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43861         resolution of upstream bug 3044.
43862
43863 2006-08-29  Bruno Haible  <bruno@clisp.org>
43864
43865         * modules/localcharset (Depends-on): Add configmake.
43866         (Makefile.am): Remove setting of LIBDIR through DEFS.
43867
43868 2006-08-29  Bruno Haible  <bruno@clisp.org>
43869
43870         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43871         defined.
43872
43873 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43874
43875         * modules/fcntl: New file.
43876         * modules/chdir-safer (Depends-on): Add fcntl.
43877         * modules/fts: Likewise.
43878         * modules/mkdir-p: Likewise.
43879
43880         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43881         This undoes the most recent change, since we're now addressing the
43882         problem in a different way.
43883
43884         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43885         into output, since the output might be called Makefile.am even
43886         if $makefile_name is something different.
43887         (func_import): Use $makefile_am rather than
43888         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43889         empty.
43890
43891         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43892
43893 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43894
43895         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43896         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43897         recent change to stdint.m4, since we're now addressing the problem in a
43898         different way.
43899
43900 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43901
43902         * m4/fcntl_h.m4: New file.
43903
43904 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43905
43906         * lib/fcntl_.h: New file.
43907         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43908         the fcntl module.
43909         * lib/dirchownmod.c: Likewise.
43910         * lib/fts.c: Likewise.
43911
43912         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43913         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43914         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43915         just before including <inttypes.h>, to avoid circular inclusion.
43916
43917 2006-08-28  Jim Meyering  <jim@meyering.net>
43918
43919         * doc/visibility.texi: Actually read and correct the grammar of the
43920         sentence affected by yesterday's change.
43921
43922 2006-08-28  Eric Blake  <ebb9@byu.net>
43923
43924         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43925         needs wrapper.
43926
43927 2006-08-28  Eric Blake  <ebb9@byu.net>
43928
43929         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43930
43931 2006-08-28  Eric Blake  <ebb9@byu.net>
43932
43933         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43934
43935 2006-08-28  Bruno Haible  <bruno@clisp.org>
43936
43937         * modules/c-strstr: New file, from GNU gettext.
43938         * MODULES.html.sh (String handling): Add c-strstr.
43939
43940 2006-08-28  Bruno Haible  <bruno@clisp.org>
43941
43942         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43943         macros.
43944         Reported by Eric Blake.
43945
43946 2006-08-28  Bruno Haible  <bruno@clisp.org>
43947
43948         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43949         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43950         * lib/vasprintf.c: Include errno.h, limits.h.
43951         (EOVERFLOW): New fallback definition.
43952         (vasprintf): Test here whether the string length is > INT_MAX.
43953         * lib/vsnprintf.c: Include errno.h, limits.h.
43954         (EOVERFLOW): New fallback definition.
43955         (vsnprintf): Fix bug when generated string was too long for the buffer.
43956         Test here whether the string length is > INT_MAX.
43957
43958 2006-08-28  Bruno Haible  <bruno@clisp.org>
43959
43960         * lib/inttypes_.h (SCNX*): Remove definitions.
43961         Reported by Eric Blake.
43962
43963 2006-08-28  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/c-strstr.h: New file, from GNU gettext.
43966         * lib/c-strstr.c: New file, from GNU gettext.
43967
43968 2006-08-28  Bruno Haible  <bruno@clisp.org>
43969
43970         * gnulib-tool: Reorder some statements.
43971
43972 2006-08-28  Bruno Haible  <bruno@clisp.org>
43973
43974         * gnulib-tool: New option --makefile-name.
43975         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43976         $makefile_name.
43977         (func_import): Write $makefile_name to the cache file, and read it from
43978         there unless explicitly specified. Use $makefile_name as file name
43979         instead of Makefile.am. Adjust the recommendations accordingly.
43980
43981 2006-08-28  Bruno Haible  <bruno@clisp.org>
43982
43983         * gnulib-tool (func_verify_module): Check against misapplying patch.
43984
43985 2006-08-28  Bruno Haible  <bruno@clisp.org>
43986
43987         * gnulib-tool (func_relativize, func_relconcat): New functions.
43988         Give an error if --local-dir is given with --update.
43989         Remove trailing slashes from $local_gnulib_dir.
43990         (func_import): Store the relativized $local_gnulib_dir in
43991         gnulib-cache.m4, and read it from there if not specified explicitly.
43992
43993 2006-08-28  Bruno Haible  <bruno@clisp.org>
43994
43995         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43996         is the current directory. Respect also $local_gnulib_dir.
43997
43998 2006-08-28  Bruno Haible  <bruno@clisp.org>
43999             Simon Josefsson  <jas@extundo.com>
44000
44001         BeOS portability.
44002         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44003
44004 2006-08-27  Jim Meyering  <jim@meyering.net>
44005
44006         * doc/visibility.texi: Remove duplicate word: "pointer".
44007
44008 2006-08-26  Bruno Haible  <bruno@clisp.org>
44009
44010         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44011         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44012         (Makefile.am): Create inttypes.h from inttypes_.h.
44013         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44014
44015         * modules/imaxabs: New file.
44016
44017         * modules/imaxdiv: New file.
44018
44019 2006-08-26  Bruno Haible  <bruno@clisp.org>
44020
44021         * m4/inttypes.m4: New file.
44022         * m4/_inttypes_h.m4: Remove file.
44023         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44024         PRI_MACROS_BROKEN.
44025         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44026
44027         * m4/imaxabs.m4: New file.
44028
44029         * m4/imaxdiv.m4: New file.
44030
44031 2006-08-26  Bruno Haible  <bruno@clisp.org>
44032
44033         * lib/inttypes_.h: New file.
44034         * lib/inttypes.h: Remove file.
44035         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44036
44037         * lib/imaxabs.c: New file.
44038
44039         * lib/imaxdiv.c: New file.
44040
44041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44042
44043         New config-h module, so that "make" output needn't be cluttered
44044         by -DHAVE_CONFIG_H.
44045         * MODULES.html.sh (Support for building libraries and executables):
44046         Add config-h.
44047         * modules/config-h: New file.
44048         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44049         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44050         the config-h module is used.
44051
44052         New configmake module, so that "make" output needn't be cluttered
44053         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44054         * MODULES.html.sh (Support for building libraries and executables):
44055         Add configmake.
44056         * modules/configmake: New file.
44057
44058 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44059
44060         * m4/config-h.m4: New file.
44061
44062 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44063
44064         * config/srclist.txt: Add elisp-comp.
44065
44066 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44067
44068         * MODULES.html.sh (Support for building libraries and executables):
44069         Add elisp-comp.
44070         * build-aux/elisp-comp: New file.
44071         * modules/elisp-comp: New file.
44072
44073 2006-08-24  Bruno Haible  <bruno@clisp.org>
44074
44075         * gnulib-tool (func_create_testdir): Use non-default values of
44076         sourcebase and m4base.
44077
44078 2006-08-24  Bruno Haible  <bruno@clisp.org>
44079
44080         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44081         HTML structure.
44082
44083 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         * modules/openat (Depends-on): Add lchown.
44086
44087 2006-08-23  Bruno Haible  <bruno@clisp.org>
44088
44089         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44090         of gl_LOCK_EARLY instead of gl_LOCK.
44091
44092 2006-08-23  Bruno Haible  <bruno@clisp.org>
44093
44094         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44095         on OSF/1 to no.
44096         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44097
44098 2006-08-23  Bruno Haible  <bruno@clisp.org>
44099
44100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44101         as unusable.
44102
44103         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44104         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44105         (gl_LOCK): New macro.
44106
44107 2006-08-22  Simon Josefsson  <jas@extundo.com>
44108
44109         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44110         to md5 module.
44111
44112 2006-08-22  Simon Josefsson  <jas@extundo.com>
44113
44114         * MODULES.html.sh: Add "Support for maintaining and release
44115         projects".
44116
44117         * build-aux/gnupload: New file, from coreutils.
44118
44119 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44120
44121         Avoid the need for AC_LIBSOURCES in m4 macros.
44122         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44123         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44124         * modules/check-version (EXTRA_DIST): Add check-version.h.
44125         * modules/crc (EXTRA_DIST): Add crc.h.
44126         * modules/des (EXTRA_DIST): Add des.h.
44127         * modules/gc (EXTRA_DIST): Add gc.h.
44128         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44129         * modules/getline (EXTRA_DIST): Add getline.h.
44130         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44131         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44132         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44133         * modules/md2 (EXTRA_DIST): Add md2.h.
44134         * modules/md4 (EXTRA_DIST): Add md4.h.
44135         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44136         * modules/read-file (EXTRA_DIST): Add read-file.h.
44137         * modules/readline (EXTRA_DIST): Add readline.h.
44138         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44139         rijndael-api-fst.h.
44140
44141 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44142
44143         * m4/rijndael.m4 (gl_ARCFOUR):
44144         * m4/arctwo.m4 (gl_ARCTWO):
44145         * m4/check-version.m4 (gl_CHECK_VERSION):
44146         * m4/crc.m4 (gl_CRC):
44147         * m4/des.m4 (gl_DES):
44148         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44149         * m4/gc.m4 (gl_GC):
44150         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44151         * m4/getline.m4 (gl_FUNC_GETLINE):
44152         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44153         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44154         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44155         * m4/md2.m4 (gl_MD2):
44156         * m4/md4.m4 (gl_MD4):
44157         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44158         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44159         * m4/readline.m4 (gl_FUNC_READLINE):
44160         * m4/rijndael.m4 (gl_RIJNDAEL):
44161         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44162         to get the necessary .h files and whatnot.
44163
44164 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44165
44166         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44167         gnulib rather than the other way around.
44168         * config/srclistvars.sh (COREUTILS): Remove.
44169
44170 2006-08-22  Jim Meyering  <jim@meyering.net>
44171
44172         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44173
44174         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44175
44176 2006-08-22  Eric Blake  <ebb9@byu.net>
44177
44178         * modules/regexprops-generic: New file.
44179         * MODULES.html.sh (Support for building documentation): List it.
44180
44181 2006-08-22  Eric Blake  <ebb9@byu.net>
44182
44183         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44184         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44185         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44186         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44187
44188 2006-08-22  Bruno Haible  <bruno@clisp.org>
44189
44190         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44191         and lib_LTLIBRARIES like the other lib_* variables.
44192
44193 2006-08-22  Bruno Haible  <bruno@clisp.org>
44194
44195         * build-aux/x-to-1.in: New file, from GNU gettext.
44196
44197 2006-08-22  Bruno Haible  <bruno@clisp.org>
44198
44199         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44200         <utmpx.h> exists.
44201
44202 2006-08-22  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44205         <utmpx.h> exists.
44206
44207 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44208
44209         BeOS portability.
44210         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44211         exist.
44212         Problem reported by Bruno Haible.
44213
44214 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         Avoid the need for AC_LIBSOURCES in m4 macros.
44217         * modules/acl (EXTRA_DIST): Add acl.h.
44218         * modules/argmatch (Files): Add m4/argmatch.m4.
44219         (configure.ac): Add gl_ARGMATCH.
44220         (EXTRA_DIST): Renamed from lib_SOURCES, for
44221         consistency with the other modules.  Remove argmatch.c.
44222         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44223         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44224         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44225         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44226         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44227         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44228         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44229         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44230         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44231         * modules/closeout (EXTRA_DIST): Add closeout.h.
44232         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44233         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44234         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44235         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44236         dirname.h; remove basename.c and stripslash.c.
44237         * modules/exclude (EXTRA_DIST): Add exclude.h.
44238         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44239         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44240         * modules/file-type (EXTRA_DIST): Add file-type.h.
44241         * modules/filemode (EXTRA_DIST): Add filemode.h.
44242         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44243         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44244         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44245         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44246         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44247         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44248         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44249         * modules/getdate (EXTRA_DIST): Add getdate.c.
44250         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44251         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44252         * modules/getpass (EXTRA_DIST): Add getpass.h.
44253         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44254         * modules/group-member (EXTRA_DIST): Add group-member.h.
44255         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44256         * modules/hash (EXTRA_DIST): Add hash.h.
44257         * modules/human (EXTRA_DIST): Add human.h.
44258         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44259         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44260         * modules/lchown (EXTRA_DIST): Add lchown.h.
44261         * modules/long-options (EXTRA_DIST): Add long-options.h.
44262         * modules/lstat (EXTRA_DIST): Add lstat.h.
44263         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44264         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44265         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44266         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44267         * modules/memxor (EXTRA_DIST): Add memxor.h.
44268         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44269         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44270         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44271         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44272         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44273         * modules/physmem (EXTRA_DIST): Add physmem.h.
44274         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44275         * modules/posixver (EXTRA_DIST): Add posixver.h.
44276         * modules/quote (EXTRA_DIST): Add quote.h.
44277         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44278         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44279         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44280         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44281         regex_internal.h regexec.c.
44282         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44283         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44284         * modules/same (EXTRA_DIST): Add same.h.
44285         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44286         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44287         * modules/savedir (EXTRA_DIST): Add savedir.h.
44288         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44289         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44290         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44291         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44292         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44293         * modules/strdup (EXTRA_DIST): Add strdup.h.
44294         * modules/strftime (EXTRA_DIST): Add strftime.h.
44295         * modules/strndup (EXTRA_DIST): Add strndup.h.
44296         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44297         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44298         * modules/time_r (EXTRA_DIST): Add time_r.h.
44299         * modules/timespec (EXTRA_DIST): Add timespec.h.
44300         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44301         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44302         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44303         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44304         * modules/userspec (EXTRA_DIST): Add userspec.h.
44305         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44306         * modules/utimens (EXTRA_DIST): Add utimens.h.
44307         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44308         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44309         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44310         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44311         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44312         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44313         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44314         * modules/yesno (EXTRA_DIST): Add yesno.h.
44315
44316 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44317
44318         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44319
44320         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44321         * m4/dev-ino.m4, same-inode.m4: Remove.
44322
44323         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44324         * m4/acl.m4 (AC_FUNC_ACL):
44325         * m4/backupfile.m4 (gl_BACKUPFILE):
44326         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44327         * m4/canon-host.m4 (gl_CANON_HOST):
44328         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44330         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44331         * m4/cloexec.m4 (gl_CLOEXEC):
44332         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44333         * m4/closeout.m4 (gl_CLOSEOUT):
44334         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44335         * m4/dirname.m4 (gl_DIRNAME):
44336         * m4/exclude.m4 (gl_EXCLUDE):
44337         * m4/exitfail.m4 (gl_EXITFAIL):
44338         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44339         * m4/file-type.m4 (gl_FILE_TYPE):
44340         * m4/filemode.m4 (gl_FILEMODE):
44341         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44342         * m4/fpending.m4 (gl_FUNC_FPENDING):
44343         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44344         * m4/fts.m4 (gl_FUNC_FTS):
44345         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44346         * m4/getdate.m4 (gl_GETDATE):
44347         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44348         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44349         * m4/getpass.m4 (gl_FUNC_GETPASS):
44350         * m4/gettime.m4 (gl_GETTIME):
44351         * m4/getugroups.m4 (gl_GETUGROUPS):
44352         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44353         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44354         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44355         * m4/hash.m4 (gl_HASH):
44356         * m4/idcache.m4 (gl_IDCACHE):
44357         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44358         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44359         * m4/long-options.m4 (gl_LONG_OPTIONS):
44360         * m4/lstat.m4 (gl_FUNC_LSTAT):
44361         * m4/md5.m4 (gl_MD5):
44362         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44363         * m4/memcoll.m4 (gl_MEMCOLL):
44364         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44365         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44366         * m4/memxor.m4 (gl_MEMXOR):
44367         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44368         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44369         * m4/modechange.m4 (gl_MODECHANGE):
44370         * m4/mountlist.m4 (gl_MOUNTLIST):
44371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44372         * m4/openat.m4 (gl_FUNC_OPENAT):
44373         * m4/pathmax.m4 (gl_PATHMAX):
44374         * m4/physmem.m4 (gl_PHYSMEM):
44375         * m4/posixtm.m4 (gl_POSIXTM):
44376         * m4/posixver.m4 (gl_POSIXVER):
44377         * m4/quote.m4 (gl_QUOTE):
44378         * m4/quotearg.m4 (gl_QUOTEARG):
44379         * m4/readtokens.m4 (gl_READTOKENS):
44380         * m4/readutmp.m4 (gl_READUTMP):
44381         * m4/regex.m4 (gl_REGEX):
44382         * m4/safe-read.m4 (gl_SAFE_READ):
44383         * m4/safe-write.m4 (gl_SAFE_WRITE):
44384         * m4/same.m4 (gl_SAME):
44385         * m4/save-cwd.m4 (gl_SAVE_CWD):
44386         * m4/savedir.m4 (gl_SAVEDIR):
44387         * m4/settime.m4 (gl_SETTIME):
44388         * m4/sha1.m4 (gl_SHA1):
44389         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44390         * m4/stat-macros.m4 (gl_STAT_MACROS):
44391         * m4/stat-time.m4 (gl_STAT_TIME):
44392         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44393         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44394         * m4/strdup.m4 (gl_FUNC_STRDUP):
44395         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44396         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44397         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44398         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44399         * m4/time_r.m4 (gl_TIME_R):
44400         * m4/timespec.m4 (gl_TIMESPEC):
44401         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44402         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44403         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44404         * m4/userspec.m4 (gl_USERSPEC):
44405         * m4/utimecmp.m4 (gl_UTIMECMP):
44406         * m4/utimens.m4 (gl_UTIMENS):
44407         * m4/xalloc.m4 (gl_XALLOC):
44408         * m4/xgetcwd.m4 (gl_XGETCWD):
44409         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44410         * m4/xreadlink.m4 (gl_XREADLINK):
44411         * m4/xstrtod.m4 (gl_XSTRTOD):
44412         * m4/yesno.m4 (gl_YESNO):
44413         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44414         to get the necessary .h files and whatnot.
44415
44416 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44417             Bruno Haible  <bruno@clisp.org>
44418
44419         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44420         /bin/sh understanding of '!' conditional negation.
44421
44422 2006-08-21  Jim Meyering  <jim@meyering.net>
44423
44424         * modules/openat (Depends-on): Really alphabetize.
44425
44426         * modules/acl (Depends-on): Add error and quote.
44427
44428         * check-module (find_included_lib_files): Add at-func.c to the
44429         ok-to-include-more-than-once white list.
44430
44431         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44432
44433 2006-08-21  Bruno Haible  <bruno@clisp.org>
44434
44435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44436         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44437         Reported by Martin Lambers <marlam@marlam.de>.
44438
44439 2006-08-21  Bruno Haible  <bruno@clisp.org>
44440
44441         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44442         specify an installation location, don't emit a noinst_LIBRARIES or
44443         noinst_LTLIBRARIES assignment.
44444
44445 2006-08-21  Bruno Haible  <bruno@clisp.org>
44446
44447         BeOS portability.
44448         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44449         BeOS has mbrtowc() but no <wctype.h>.
44450
44451 2006-08-21  Bruno Haible  <bruno@clisp.org>
44452
44453         BeOS portability.
44454         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44455         exist.
44456
44457 2006-08-21  Bruno Haible  <bruno@clisp.org>
44458
44459         BeOS portability.
44460         * lib/mbchar.h: Include <wctype.h> only if it exists.
44461
44462 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44463
44464         Remove files that are no longer needed by their respective modules.
44465         * m4/obstack.m4: Remove.
44466         * m4/strerror_r.m4: Remove.
44467         * m4/uint32_t.m4: Remove.
44468         * m4/uintptr_t.m4: Remove.
44469         * m4/ullong_max.m4: Remove.
44470         * m4/xstrtoimax.m4: Remove.
44471         * m4/xstrtoumax.m4: Remove.
44472
44473         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44474         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44475         dependencies now capture this.
44476
44477         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44478         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44479         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44480         * m4/human.m4 (gl_HUMAN): Likewise.
44481         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44482         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44483
44484         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44485
44486         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44487         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44488         stdint.
44489         * m4/human.m4 (gl_HUMAN): Likewise.
44490         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44491         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44492         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44493         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44494         * m4/xstrtol (gl_XSTRTOL): Likewise.
44495
44496         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44497         AC_TYPE_LONG_LONG_INT.
44498         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44499         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44500         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44501         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44502
44503         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44504         on stdbool.
44505
44506         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44507         (gl_PREREQ_XSTRTOUL): Remove.
44508
44509         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44510
44511         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44512         mode.
44513
44514 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44515
44516         Add and change modules to make it easier for coreutils to use
44517         gnulib-tool.
44518         * modules/backupfile (Files): Remove m4/d-ino.m4.
44519         (Depends-on): Add d-ino.
44520         * modules/cycle-check (Depends-on): Add stdint.
44521         (lib_SOURCES): Add cycle-check.h.
44522         * modules/d-ino: New module.
44523         * modules/d-type: New module.
44524         * modules/error (Files): Remove m4/strerror_r.m4.
44525         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44526         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44527         m4/inttypes_h.m4, m4/uintmax_t.m4.
44528         (Depends-on): Add stdint.
44529         (lib_SOURCES): Add fsusage.h.
44530         * modules/getcwd (Files): Remove d-ino.m4.
44531         (Depends-on): Add d-ino.
44532         * modules/getndelim2 (Depends-on): Add stdint.
44533         * modules/glob (Files): Remove m4/d-type.m4.
44534         (Depends-on): Add d-type.
44535         * modules/host-os: New module.
44536         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44537         m4/inttypes_h.m4, m4/uintmax_t.m4.
44538         * Depends-on: Add stdint.
44539         (lib_SOURCES): Add human.h.
44540         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44541         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44542         m4/uintmax_t.m4, m4/ulonglong.m4.
44543         (Depends-on): Add stdint.
44544         (EXTRA_DIST): Add inttostr.h.
44545         * modules/lchmod: New module.
44546         * modules/link-follow: New module.
44547         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44548         (Depends-on): Add lchmod.
44549         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44550         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44551         (Depends-on): Add stdint.
44552         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44553         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44554         (Depends-on): Add stdint.
44555         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44556         * modules/perl: New module.
44557         * modules/regex (Depends-on): Add stdint.
44558         * modules/rmdir-errno: New module.
44559         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44560         m4/intmax_t.m4.
44561         (Depends-on): Add stdint.
44562         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44563         m4/uintmax_t.m4.
44564         (Depends-on): Add stdint.
44565         * modules/unlink-busy: New module.
44566         * modules/utimecmp (Depends-on): Add stdint.
44567         * modules/uptime: New module.
44568         * modules/winsz-ioctl: New module.
44569         * modules/winsz-termios: New module.
44570         * modules/xnanosleep (Depends-on): Add nanosleep.
44571         * modules/ullong_max: Remove.
44572         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44573         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44574         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44575         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44576         (Depends-on): Add inttypes.
44577         (lib_SOURCES): Add xstrtol.h.
44578         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44579         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44580         * MODULES.html.sh: Move 'assert' into the assert section.
44581         Move 'dummy' into the linking section.
44582         Remove ullong_max.
44583         Add section for compatibility checks for POSIX:2001 functions,
44584         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44585         winsz-ioctl, and winsz-termios into it.
44586         Add lchmod.
44587         Add top-level Misc section and put host-os, perl, and uptime
44588         into it.
44589
44590 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44591
44592         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44593         now assume the stdint module.  Do not include inttypes.h.
44594         * lib/fsusage.h: Likewise.
44595         * lib/getndelim2.c: Likewise.
44596         * lib/human.h: Likewise.
44597         * lib/inttostr.h: Likewise.
44598         * lib/obstack.c: Likewise.
44599         * lib/regex_internal.h: Likewise.
44600         * lib/tempname.c: Likewise.
44601         * lib/utimecmp.c: Likewise.
44602         * lib/xstrtol.h: Likewise.
44603
44604         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44605
44606         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44607         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44608         * lib/xtime.h: Likewise.
44609
44610 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         * modules/openat (Files): Add lib/fchmodat.c.
44613         Fixes problem reported by Jay Youngman.
44614
44615 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44616
44617         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44618         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44619
44620 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44621             Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44624         and is a script that invokes bison. Tighten the code. Add comments.
44625
44626 2006-08-18  Jim Meyering  <jim@meyering.net>
44627
44628         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44629         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44630         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44631         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44632
44633 2006-08-18  Bruno Haible  <bruno@clisp.org>
44634
44635         * modules/bison-i18n: New file.
44636         * MODULES.html.sh (Internationalization functions): Add it.
44637
44638 2006-08-18  Bruno Haible  <bruno@clisp.org>
44639
44640         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44641         sys/statvfs.h. When getmntinfo was found, check its declaration and
44642         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44643
44644 2006-08-18  Bruno Haible  <bruno@clisp.org>
44645
44646         * m4/bison-i18n.m4: New file, from bison.
44647
44648 2006-08-18  Bruno Haible  <bruno@clisp.org>
44649
44650         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44651         (ME_DUMMY): Treat "kernfs" as a dummy.
44652         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44653
44654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44655
44656         Update from coreutils.
44657
44658         2006-08-15  Jim Meyering  <jim@meyering.net>
44659
44660         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44661
44662         2006-01-17  Jim Meyering  <jim@meyering.net>
44663
44664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44665
44666         2006-01-11  Jim Meyering  <jim@meyering.net>
44667
44668         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44669         Check for the lchmod function.
44670
44671 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44672
44673         Update from coreutils.
44674
44675         * lib/__fpending.h: Add copyright notice.
44676         * lib/fprintftime.h: Likewise.
44677         * lib/savedir.c: Use (C) in copyright notice.
44678         * lib/savedir.h: Likewise.
44679
44680         2006-08-15  Jim Meyering  <jim@meyering.net>
44681
44682         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44683         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44684         in support of the EXPECTED_ERRNO macro.
44685         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44686         definitions.  Instead, define the appropriate symbols and include
44687         "at-func.c".
44688         * lib/mkdirat.c (mkdirat): Likewise.
44689         * lib/fchmodat.c (fchmodat): Likewise.
44690         (ENOSYS): Remove definition.
44691         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44692         it.  Don't include "unistd--.h" -- it wasn't ever used.
44693
44694         2006-01-17  Jim Meyering  <jim@meyering.net>
44695
44696         Rewrite fts.c not to change the current working directory,
44697         by using openat, fstatat, fdopendir, etc..
44698
44699         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44700         (HAVE_OPENAT_SUPPORT): Define.
44701         [_LIBC] (fchdir): Don't undef or define; no longer used.
44702         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44703         Now, this `function' always succeeds, and consumes its file descriptor
44704         parameter -- so callers must not close such FDs.  Update callers.
44705         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44706         (diropen): Add parameter, SP.  Adjust all callers.
44707         Implement using diropen_fd, rather than open.
44708         (fts_open): Initialize new member, fts_cwd_fd.
44709         Remove fts_rft-setting code.
44710         (fts_close): Close fts_cwd_fd, if necessary.
44711         (__opendir2): Define in terms of opendir or opendirat,
44712         depending on whether the FST_NOCHDIR flag is set.
44713         (fts_build): Since fts_safe_changedir consumes its FD, and since
44714         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44715         and close the dup'd file descriptor upon failure.
44716         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44717         (fts_safe_changedir): Tweak semantics to reflect that this function
44718         now calls cwd_advance_fd and hence consumes its FD argument.
44719         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44720         [struct FTS] (fts_rft): Remove now-unused member.
44721         [struct FTS] (fts_cycle.state): Improve comment.
44722
44723         * lib/openat.c (openat_needs_fchdir): New function.
44724         * lib/openat.h (openat_needs_fchdir): Declare it.
44725
44726 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44727
44728         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44729         Problem and fix reported by Pádraig Brady in
44730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44731
44732 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44733
44734         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44735
44736 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44737
44738         * lib/memcoll.c (memcoll): Optimize for the common case where the
44739         arguments are bytewise equal.
44740
44741 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44742
44743         * doc/regexprops-generic.texi: Add a copyright notice.
44744
44745 2006-08-15  Bruno Haible  <bruno@clisp.org>
44746
44747         * modules/tmpdir (License): Change to LGPL.
44748
44749 2006-08-15  Bruno Haible  <bruno@clisp.org>
44750
44751         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44752         module.
44753
44754 2006-08-14  Simon Josefsson  <jas@extundo.com>
44755
44756         * config/srclist.txt: Add gnupload.
44757
44758 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44759
44760         Change copyright notice from LGPL 2 to GPL 2, since that's the
44761         standard form used in the gnulib repository.
44762         * tests/test-lock.c: Likewise.
44763         * tests/test-stdint.c: Likewise.
44764         * tests/test-tls.c: Likewise.
44765
44766         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44767         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44768         Add copyright notice.
44769
44770         * check-module: Add copyright notice.  Output a copyright
44771         notice if "--version" is specified.
44772         * modules/COPYING: New file.
44773         * tests/test-getaddrinfo.c: Add copyright notice.
44774         * tests/test-verify.c: Likewise.
44775
44776 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44777
44778         Change copyright notice from LGPL 2 to GPL 2, since that's the
44779         standard form used in the gnulib repository.
44780         * lib/lock.c: LGPL -> GPL.
44781         * lib/lock.h: Likewise.
44782         * lib/strnlen1.c: Likewise.
44783         * lib/strnlen1.h: Likewise.
44784         * lib/tls.c: Likewise.
44785         * lib/tls.h: Likewise.
44786         * lib/tmpdir.c: Likewise.
44787
44788         * lib/TODO: Remove; this belongs only in coreutils.
44789
44790 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         Add copyright notices to long-enough files that lack them, since
44793         otherwise the files aren't clearly free.  Use the same notice that
44794         getdate.texi already uses.
44795         * doc/alloca-opt.texi: Add copyright notice.
44796         * doc/alloca.texi: Likewise.
44797         * doc/ctime.texi: Likewise.
44798         * doc/functions.texi: Likewise.
44799         * doc/gcd.texi: Likewise.
44800         * doc/gnulib-tool.texi: Likewise.
44801         * doc/inet_ntoa.texi: Likewise.
44802         * doc/visibility.texi: Likewise.
44803
44804         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44805         * doc/quote.texi: Add copyright notice.
44806
44807         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44808         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44809         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44810         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44811         is now obsolete, and give a pointer to the Sun list.
44812         Add copyright notice.
44813
44814 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44815
44816         * config/srclistvars.sh: Add copyright notice.
44817
44818 2006-08-14  Eric Blake  <ebb9@byu.net>
44819
44820         Import the following change from libc:
44821
44822         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44823
44824         Upstream bug 2997.
44825         * lib/misc/error.c: Add space between program name and message if file
44826         name is missing.
44827
44828 2006-08-12  Karl Berry  <karl@gnu.org>
44829
44830         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44831         remove, these originate in gnulib now.
44832
44833 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44834
44835         * doc/Makefile (standards.info standards.html standards.dvi):
44836         Also depend on make-stds.texi.
44837
44838 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44839
44840         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44841         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44842
44843         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44844         in wchar_t.  Problem reported by Eric Blake.
44845
44846         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44847         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44848         Also, help the compiler to keep LEN in a register.
44849
44850 2006-08-11  Eric Blake  <ebb9@byu.net>
44851
44852         * users.txt: Sort.  Add tar.
44853
44854 2006-08-11  Bruno Haible  <bruno@clisp.org>
44855
44856         * users.txt: New file.
44857
44858 2006-08-11  Bruno Haible  <bruno@clisp.org>
44859
44860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44861         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44862
44863 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44864
44865         * modules/snprintf (Depends-on): Remove minmax.
44866         (Maintainer): Add self and Bruno.
44867
44868 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44871         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44872         (EOVERFLOW): Define if the system does not.
44873         Do not include "minmax.h"; it wasn't used.
44874         (snprintf): Don't assume size_t promotes to an unsigned type.
44875         Fix bug when generated string was too long for the buffer: the
44876         buffer's contents are supposed to be the initial prefix of the
44877         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44878         exceeds INT_MAX; do the check ourselves.
44879
44880         Import the following changes from libc:
44881
44882         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44883
44884         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44885         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44886         set wc to the byte which couldn't be converted.
44887         (re_string_reconstruct): Don't clear valid_raw_len before calling
44888         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44889         tip_context using re_string_context_at.
44890
44891         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44892
44893         * lib/posix/regex.h: g++ still cannot handled [restrict].
44894
44895         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44896
44897         * lib/posix/regex.h: Remove special handling for VMS.
44898
44899 2006-08-10  Jim Meyering  <jim@meyering.net>
44900
44901         * modules/same-inode: New module.
44902         * modules/dev-ino: New module.
44903         * modules/cycle-check: Depend on these modules, rather than simply
44904         including their .h files.
44905         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44906         required via m4/cycle-check.m4.
44907         * modules/same: Depend on new same-inode module, rather than
44908         including same-inode.h.
44909         * modules/chdir-safer: New file.
44910
44911         * modules/chown (Depends-on): Add stat-macros.
44912
44913 2006-08-10  Jim Meyering  <jim@meyering.net>
44914
44915         * m4/cycle-check.m4: New file.
44916         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44917         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44918
44919 2006-08-10  Eric Blake  <ebb9@byu.net>
44920
44921         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44922         in from original proposal.
44923
44924 2006-08-10  Eric Blake  <ebb9@byu.net>
44925         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44926
44927         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44928         namespace.
44929
44930 2006-08-10  Bruno Haible  <bruno@clisp.org>
44931
44932         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44933         as well.
44934
44935 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44936
44937         Sync from coreutils.
44938
44939         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44940
44941         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44942         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44943
44944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         * modules/restrict: Remove; no longer needed now that we assume
44947         Autoconf 2.59 or later.
44948         * MODULES.html.sh: Remove 'restrict'.
44949         * modules/argp (Depends-on): Remove 'restrict'.
44950         * modules/base64 (Depends-on): Likewise.
44951         * modules/gc (Depends-on): Likewise.
44952         * modules/getaddrinfo (Depends-on): Likewise.
44953         * modules/glob (Depends-on): Likewise.
44954         * modules/inet_ntop (Depends-on): Likewise.
44955         * modules/inet_pton (Depends-on): Likewise.
44956         * modules/memxor (Depends-on): Likewise.
44957         * modules/regex (Depends-on): Likewise.
44958         * modules/strtok_r (Depends-on): Likewise.
44959         * modules/time_r (Depends-on): Likewise.
44960
44961 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44962
44963         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44964         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44965         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44966         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44967         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44968         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44969         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44970         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44971
44972         Merge from coreutils.
44973         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44974         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44975         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44976         * m4/time_r.m4 (gl_TIME_R): Likewise.
44977
44978 2006-08-09  Karl Berry  <karl@gnu.org>
44979
44980         * config/srclist.txt: no more gettext-tools, per Bruno.
44981
44982 2006-08-08  Eric Blake  <ebb9@byu.net>
44983
44984         * modules/verror: New module.
44985         * MODULES.html.sh: Document it.
44986
44987 2006-08-08  Eric Blake  <ebb9@byu.net>
44988
44989         * lib/verror.h, lib/verror.c: New files.
44990
44991 2006-08-08  Eric Blake  <ebb9@byu.net>
44992
44993         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44994         verror_at_line output complies with GNU Coding Standards even when
44995         file is NULL.
44996
44997 2006-08-07  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45000         versions of AIX.
45001         Reported by Ralf Wildenhues.
45002
45003 2006-08-07  Bruno Haible  <bruno@clisp.org>
45004
45005         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45006         in an AC_DEFUN. Needed so that the autoconf snippets can use
45007         AC_REQUIRE.
45008
45009 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45010
45011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45012         Initialize pkgdata_DATA.
45013         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45014         overriding it.
45015
45016 2006-08-06  Eric Blake  <ebb9@byu.net>
45017
45018         * lib/error.h: Fold in some upstream changes from glibc.
45019         * lib/error.c: Likewise.
45020
45021 2006-08-04  Bruno Haible  <bruno@clisp.org>
45022
45023         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45024         Make the mostlyclean-local rule depend on mostlyclean-generic.
45025         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45026
45027 2006-07-31  Bruno Haible  <bruno@clisp.org>
45028
45029         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45030         <stdlib.h>, <string.h>.
45031
45032 2006-07-30  Bruno Haible  <bruno@clisp.org>
45033
45034         * modules/readlink (License): Change to LGPL.
45035
45036 2006-07-30  Bruno Haible  <bruno@clisp.org>
45037
45038         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45039         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45040         set PKGDATADIR to point to it.
45041
45042 2006-07-30  Bruno Haible  <bruno@clisp.org>
45043
45044         * modules/csharpexec (configure.ac): Comment out macro invocation.
45045         * modules/javaexec (configure.ac): Likewise.
45046         * modules/javacomp-script (configure.ac): Likewise.
45047
45048         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45049
45050 2006-07-30  Bruno Haible  <bruno@clisp.org>
45051
45052         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45053         linked-list.
45054
45055 2006-07-30  Bruno Haible  <bruno@clisp.org>
45056
45057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45058
45059 2006-07-30  Bruno Haible  <bruno@clisp.org>
45060
45061         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45062         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45063         get removed.
45064
45065 2006-07-29  Bruno Haible  <bruno@clisp.org>
45066
45067         Make it possible for gnulib-tool to work with locally modified or
45068         augmented gnulib repositories.
45069         * gnulib-tool (func_usage): Document --local-dir option.
45070         (local_gnulib_dir): New variable.
45071         Handle --local-dir option.
45072         (func_lookup_file): New function.
45073         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45074         (func_get_description, func_get_filelist, func_get_description,
45075         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45076         func_get_automake_snippet, func_get_include_directive,
45077         func_get_license, func_get_maintainer): Use func_lookup_file.
45078         (func_import, func_create_testdir): Use func_lookup_file.
45079
45080 2006-07-29  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/setenv (Depends-on): Add unistd.
45083
45084 2006-07-29  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45087
45088 2006-07-29  Bruno Haible  <bruno@clisp.org>
45089
45090         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45091
45092 2006-07-29  Bruno Haible  <bruno@clisp.org>
45093
45094         * gnulib-tool (import, update): If there is no Makefile.am, look at
45095         aclocal.m4, instead of bailing out.
45096
45097 2006-07-29  Bruno Haible  <bruno@clisp.org>
45098
45099         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45100         Categorize the options by when they are useful.
45101
45102 2006-07-29  Bruno Haible  <bruno@clisp.org>
45103
45104         * gnulib-tool (func_usage): Document option --no-libtool.
45105         Handle option --no-libtool.
45106         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45107         for changed semantics of $libtool variable.
45108         (func_import): Likewise. If libtool is not used, show this through
45109         an option --no-libtool.
45110         (func_create_testdir): Update.
45111
45112 2006-07-29  Bruno Haible  <bruno@clisp.org>
45113
45114         * gnulib-tool (func_import): Extend error message about missing
45115         --doc-base.
45116
45117 2006-07-29  Bruno Haible  <bruno@clisp.org>
45118
45119         * gnulib-tool (func_import): Don't create the $docbase directory if
45120         there is no file to store there.
45121
45122 2006-07-29  Bruno Haible  <bruno@clisp.org>
45123
45124         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45125         relevant, look for configure.ac there, not in the current directory.
45126         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45127
45128 2006-07-29  Bruno Haible  <bruno@clisp.org>
45129
45130         * gnulib-tool (SORT): New variable.
45131         (func_usage): Undocument --assume-autoconf option.
45132         Remove --assume-autoconf option handling.
45133         (autoconf_minversion): Determine from the contents of configure.ac.
45134         (func_import): Remove autoconf_minversion handling.
45135         Suggested by Eric Blake.
45136
45137 2006-07-29  Bruno Haible  <bruno@clisp.org>
45138
45139         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45140
45141 2006-07-29  Bruno Haible  <bruno@clisp.org>
45142
45143         * config/srclist.txt (*setenv.[ch]): Remove rules.
45144
45145 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45146
45147         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45148
45149 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45150
45151         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45152         arpa/inet.h.
45153
45154 2006-07-28  Simon Josefsson  <jas@extundo.com>
45155
45156         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45157         * modules/inet_pton (Depends-on): Likewise.
45158
45159 2006-07-28  Simon Josefsson  <jas@extundo.com>
45160
45161         * m4/netinet_in_h.m4: New file.
45162
45163 2006-07-28  Simon Josefsson  <jas@extundo.com>
45164
45165         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45166         #include's.
45167
45168 2006-07-28  Simon Josefsson  <jas@extundo.com>
45169
45170         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45171         #include's.
45172
45173 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45174
45175         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45176         setgid on directories only if they set these bits.
45177         * lib/modechange.h: Remove obsolete comment about masks.
45178
45179 2006-07-28  Eric Blake  <ebb9@byu.net>
45180
45181         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45182         macro expansion.
45183
45184 2006-07-28  Bruno Haible  <bruno@clisp.org>
45185
45186         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45187
45188 2006-07-28  Bruno Haible  <bruno@clisp.org>
45189
45190         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45191
45192 2006-07-28  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45195         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45196         Define fallbacks.
45197         Avoids link error on FreeBSD 4.x.
45198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45199
45200         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45201         encoding.
45202         * lib/mbswidth.c (iswcntrl): Likewise.
45203
45204 2006-07-27  Bruno Haible  <bruno@clisp.org>
45205
45206         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45207         test.
45208
45209 2006-07-27  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45212         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45213         defined.
45214
45215 2006-07-26  Eric Blake  <ebb9@byu.net>
45216
45217         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45218
45219 2006-07-26  Eric Blake  <ebb9@byu.net>
45220
45221         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45222         like mingw that lack mkstemp.
45223         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45224         avoid compilation warning on mingw.
45225
45226 2006-07-26  Bruno Haible  <bruno@clisp.org>
45227
45228         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45229         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45230         INT_FAST*_MIN, INTPTR_MIN.
45231
45232 2006-07-25  Bruno Haible  <bruno@clisp.org>
45233
45234         * modules/version-etc (Depends-on): Add stdarg.
45235
45236 2006-07-25  Bruno Haible  <bruno@clisp.org>
45237
45238         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45239         complex commands.
45240
45241 2006-07-25  Bruno Haible  <bruno@clisp.org>
45242
45243         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45244         defined in <stdarg.h> or config.h.
45245
45246 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45247
45248         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45249         (gl_STDIO_SAFER): Remove.
45250
45251 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45252
45253         * MODULES.html.sh (File stream based Input/Output):
45254         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45255         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45256         * modules/fopen-safer, modules/tmpfile-safer: New files.
45257         * modules/stdio-safer: Remove.
45258
45259 2006-07-24  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/tmpdir: New file.
45262         * MODULES.html.sh (File system functions): Add it.
45263
45264 2006-07-24  Bruno Haible  <bruno@clisp.org>
45265
45266         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45267         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45268
45269 2006-07-24  Bruno Haible  <bruno@clisp.org>
45270
45271         * modules/clean-temp: New file.
45272
45273 2006-07-24  Bruno Haible  <bruno@clisp.org>
45274
45275         * m4/tmpdir.m4: New file, from GNU gettext.
45276
45277 2006-07-24  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/tmpdir.h: New file, from GNU gettext.
45280         * lib/tmpdir.c: New file, from GNU gettext.
45281
45282 2006-07-24  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/clean-temp.h: New file, from GNU gettext.
45285         * lib/clean-temp.c: New file, from GNU gettext.
45286
45287 2006-07-23  Eric Blake  <ebb9@byu.net>
45288
45289         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45290         (Depends-on): Add binary-io.
45291
45292 2006-07-23  Eric Blake  <ebb9@byu.net>
45293
45294         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45295
45296 2006-07-23  Eric Blake  <ebb9@byu.net>
45297
45298         * lib/tmpfile-safer.c: New file.
45299         * lib/stdio-safer.h (fopen_safer): Add prototype.
45300         * lib/stdio--.h (tmpfile): Make safer.
45301
45302 2006-07-23  Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45305         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45306         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45307         gl_linked_remove_at): Use it.
45308
45309 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45310         and Simon Josefsson <jas@extundo.com>
45311
45312         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45313
45314         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45315
45316 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         * modules/close-stream: New file.
45319         * modules/closeout (Description): Make it clear that it exits
45320         with a diagnostic on error.
45321         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45322         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45323
45324 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45325
45326         * m4/close-stream.m4: New file.
45327
45328 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45329
45330         * lib/close-stream.c, lib/close-stream.h: New files.
45331
45332 2006-07-22  Bruno Haible  <bruno@clisp.org>
45333
45334         Merge from GNU gettext 0.15.
45335
45336         2006-05-01  Bruno Haible  <bruno@clisp.org>
45337
45338                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45339
45340         2006-07-22  Bruno Haible  <bruno@clisp.org>
45341
45342                 * modules/javaversion: New file.
45343                 * MODULES.html.sh (Java): Add javaversion.
45344
45345         2006-03-12  Bruno Haible  <bruno@clisp.org>
45346
45347                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45348
45349         2005-12-04  Bruno Haible  <bruno@clisp.org>
45350
45351                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45352                 (untested).
45353
45354         2006-06-21  Bruno Haible  <bruno@clisp.org>
45355
45356                 Avoid warnings from recent versions of mcs.
45357                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45358                 -o, -L, -r any more. Use options documented since mcs-1.0
45359                 instead. Similarly for -g.
45360
45361         2005-12-04  Bruno Haible  <bruno@clisp.org>
45362
45363                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45364                 .resources, not .resource.
45365
45366         2005-07-09  Bruno Haible  <bruno@clisp.org>
45367
45368                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45369                 add a .dll suffix.
45370                 Reported by Mark Junker <mjscod@gmx.de>.
45371
45372         2006-07-22  Bruno Haible  <bruno@clisp.org>
45373
45374                 * modules/gettext: Upgrade to gettext-0.15.
45375                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45376                 m4/visibility.m4.
45377                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45378
45379 2006-07-22  Bruno Haible  <bruno@clisp.org>
45380
45381         Merge from GNU gettext 0.15.
45382
45383         2006-03-25  Bruno Haible  <bruno@clisp.org>
45384
45385                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45386
45387         2006-07-21  Bruno Haible  <bruno@clisp.org>
45388
45389                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45390                 "1.1".
45391
45392         2006-05-09  Bruno Haible  <bruno@clisp.org>
45393
45394                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45395                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45396                 for the conftestver execution.
45397
45398         2006-05-01  Bruno Haible  <bruno@clisp.org>
45399
45400                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45401                 optional target-version argument. Verify that the compiler
45402                 groks source of the specified source-version, or add -source
45403                 option as necessary. Verify that the compiler produces
45404                 bytecode in the specified target-version, or add -target and
45405                 -source options as necessary. Make the result of the test
45406                 available as variable CONF_JAVAC. Also log error output in
45407                 config.log.
45408
45409         2006-03-11  Bruno Haible  <bruno@clisp.org>
45410
45411                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45412
45413         2006-05-09  Bruno Haible  <bruno@clisp.org>
45414
45415                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45416                 CLASSPATH_SEPARATOR to a semicolon.
45417
45418         2006-03-12  Bruno Haible  <bruno@clisp.org>
45419
45420                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45421                 available as variable CONF_JAVA, for subsequent autoconf
45422                 tests. Also log error output in config.log.
45423
45424         2006-07-19  Bruno Haible  <bruno@clisp.org>
45425
45426                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45427                 that getline works on glibc2 systems. Needed to avoid trouble
45428                 in relocatable.c.
45429                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45430
45431         2005-12-04  Bruno Haible  <bruno@clisp.org>
45432
45433                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45434                 launcher (untested).
45435
45436         2005-12-04  Bruno Haible  <bruno@clisp.org>
45437
45438                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45439
45440         2006-07-22  Bruno Haible  <bruno@clisp.org>
45441
45442                 * gettext.m4: Update from GNU gettext-0.15.
45443                 * nls.m4: Likewise.
45444                 * po.m4: Likewise.
45445                 * inttypes-pri.m4: Likewise.
45446                 * inttypes-h.m4: Renamed from inttypes.m4.
45447                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45448
45449 2006-07-22  Bruno Haible  <bruno@clisp.org>
45450
45451         Merge from GNU gettext 0.15.
45452
45453         2005-07-05  Bruno Haible  <bruno@clisp.org>
45454
45455                 * printf-args.c (printf_fetchargs): Work around broken
45456                 definition of wint_t on mingw.
45457
45458         2005-02-12  Bruno Haible  <bruno@clisp.org>
45459
45460                 * xallocsa.h: Add extern "C" for C++.
45461
45462         2006-05-17  Bruno Haible  <bruno@clisp.org>
45463
45464                 Cygwin portability.
45465                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45466
45467         2006-04-30  Bruno Haible  <bruno@clisp.org>
45468
45469                 * progreloc.c: Include <mach-o/dyld.h> if available.
45470                 (find_executable): Use _NSGetExecutablePath when possible.
45471
45472         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45473
45474                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45475                 function.
45476
45477         2005-12-29  Bruno Haible  <bruno@clisp.org>
45478
45479                 * progreloc.c (set_program_name_and_installdir): Fix
45480                 compilation error.
45481
45482         2005-12-04  Bruno Haible  <bruno@clisp.org>
45483
45484                 Cygwin portability.
45485                 * progreloc.c: Include <windows.h> also on Cygwin.
45486                 (find_executable): Add support for Cygwin.
45487                 (set_program_name_and_installdir): Handle also platforms with
45488                 nonempty EXEEXT.
45489
45490         2006-07-11  Bruno Haible  <bruno@clisp.org>
45491
45492                 * javacomp.c: Fix a comment.
45493                 Reported by Jim Meyering.
45494
45495         2006-04-30  Bruno Haible  <bruno@clisp.org>
45496
45497                 * javacomp.h (compile_java_class): Add source_version,
45498                 target_version arguments.
45499                 * javacomp.c: Rewritten to choose only a compiler that
45500                 respects the specified source_version and target_version.
45501
45502         2006-06-27  Bruno Haible  <bruno@clisp.org>
45503
45504                 Assume correct S_ISDIR macro.
45505                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45506
45507         2006-07-22  Bruno Haible  <bruno@clisp.org>
45508
45509                 * javaversion.h: New file, from GNU gettext.
45510                 * javaversion.c: New file, from GNU gettext.
45511                 * javaversion.java: New file, from GNU gettext.
45512                 * javaversion.class: New file, from GNU gettext.
45513
45514         2006-05-17  Bruno Haible  <bruno@clisp.org>
45515
45516                 Cygwin portability.
45517                 * javaexec.c (execute_java_class): Test for jview program
45518                 also on Cygwin.
45519
45520         2006-04-09  Bruno Haible  <bruno@clisp.org>
45521
45522                 * fatal-signal.c: Don't include string.h.
45523                 (at_fatal_signal): Use a copying loop instead of memcpy.
45524
45525         2005-12-04  Bruno Haible  <bruno@clisp.org>
45526
45527                 * csharpexec.c: Add support for 'clix' launcher (untested).
45528                 (execute_csharp_using_sscli): New function.
45529                 (execute_csharp_program): Call it.
45530
45531         2006-06-21  Bruno Haible  <bruno@clisp.org>
45532
45533                 Avoid warnings from recent versions of mcs.
45534                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45535                 -o, -L, -r any more. Use options documented since mcs-1.0
45536                 instead. Similarly for -g.
45537
45538         2005-07-09  Bruno Haible  <bruno@clisp.org>
45539
45540                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45541                 add a .dll suffix.
45542                 Reported by Mark Junker <mjscod@gmx.de>.
45543
45544         2006-06-17  Bruno Haible  <bruno@clisp.org>
45545
45546                 * config.charset: Update for NetBSD 3.0.
45547
45548         2006-05-17  Bruno Haible  <bruno@clisp.org>
45549
45550                 Cygwin portability.
45551                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45552
45553         2006-05-16  Bruno Haible  <bruno@clisp.org>
45554
45555                 * localcharset.c [CYGWIN]: Include <windows.h>.
45556                 (get_charset_aliases): For Cygwin, return the same CPxxx
45557                 aliases list as under WIN32.
45558                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45559                 the environment variables. Fall back to GetACP().
45560
45561         2006-04-05  Bruno Haible  <bruno@clisp.org>
45562
45563                 * config.charset: Update Juan Manuel Guerrero's address.
45564
45565         2005-02-12  Bruno Haible  <bruno@clisp.org>
45566
45567                 * allocsa.h: Add extern "C" for C++.
45568
45569         2005-02-10  Bruno Haible  <bruno@clisp.org>
45570
45571                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45572                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45573
45574         2006-07-22  Bruno Haible  <bruno@clisp.org>
45575
45576                 * gettext.h: Update to GNU gettext-0.15.
45577
45578 2006-07-22  Bruno Haible  <bruno@clisp.org>
45579
45580         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45581         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45582         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45583
45584 2006-07-21  Eric Blake  <ebb9@byu.net>
45585
45586         * modules/stdlib-safer: New file.
45587         * MODULES.html.sh (File stream based Input/Output): Add
45588         stdlib-safer.
45589
45590 2006-07-21  Eric Blake  <ebb9@byu.net>
45591
45592         * lib/stdlib-safer.h: New file from coreutils, required by
45593         stdlib--.h.
45594
45595 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45596
45597         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45598
45599 2006-07-20  Bruno Haible  <bruno@clisp.org>
45600
45601         * gnulib-tool: Recognize new option --assume-autoconf.
45602         (autoconf_minversion): New variable.
45603         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45604
45605 2006-07-20  Bruno Haible  <bruno@clisp.org>
45606
45607         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45608
45609 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45610
45611         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45612         Reindent and repaginate.
45613
45614 2006-07-19  Derek Price  <derek@ximbiot.com>
45615
45616         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45617         Correct grammar.
45618
45619 2006-07-17  Bruno Haible  <bruno@clisp.org>
45620
45621         * modules/list: New file.
45622         * modules/array-list: New file.
45623         * modules/carray-list, modules/carray-list-tests: New files.
45624         * modules/linked-list, modules/linked-list-tests: New files.
45625         * modules/avltree-list, modules/avltree-list-tests: New files.
45626         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45627         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45628         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45629         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45630         * modules/oset: New file.
45631         * modules/array-oset: New file.
45632         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45633         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45634         * tests/test-carray_list.c: New file.
45635         * tests/test-linked_list.c: New file.
45636         * tests/test-avltree_list.c: New file.
45637         * tests/test-rbtree_list.c: New file.
45638         * tests/test-linkedhash_list.c: New file.
45639         * tests/test-avltreehash_list.c: New file.
45640         * tests/test-rbtreehash_list.c: New file.
45641         * tests/test-avltree_oset.c: New file.
45642         * tests/test-rbtree_oset.c: New file.
45643         * MODULES.html.sh (Container data structures): New section.
45644
45645 2006-07-17  Bruno Haible  <bruno@clisp.org>
45646
45647         * m4/gl_list.m4: New file.
45648
45649 2006-07-17  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/gl_list.h: New file.
45652         * lib/gl_list.c: New file.
45653         * lib/gl_array_list.h: New file.
45654         * lib/gl_array_list.c: New file.
45655         * lib/gl_carray_list.h: New file.
45656         * lib/gl_carray_list.c: New file.
45657         * lib/gl_linked_list.h: New file.
45658         * lib/gl_linked_list.c: New file.
45659         * lib/gl_anylinked_list1.h: New file.
45660         * lib/gl_anylinked_list2.h: New file.
45661         * lib/gl_avltree_list.h: New file.
45662         * lib/gl_avltree_list.c: New file.
45663         * lib/gl_anyavltree_list1.h: New file.
45664         * lib/gl_anyavltree_list2.h: New file.
45665         * lib/gl_rbtree_list.h: New file.
45666         * lib/gl_rbtree_list.c: New file.
45667         * lib/gl_anyrbtree_list1.h: New file.
45668         * lib/gl_anyrbtree_list2.h: New file.
45669         * lib/gl_anytree_list1.h: New file.
45670         * lib/gl_anytree_list2.h: New file.
45671         * lib/gl_linkedhash_list.h: New file.
45672         * lib/gl_linkedhash_list.c: New file.
45673         * lib/gl_anyhash_list1.h: New file.
45674         * lib/gl_anyhash_list2.h: New file.
45675         * lib/gl_avltreehash_list.h: New file.
45676         * lib/gl_avltreehash_list.c: New file.
45677         * lib/gl_rbtreehash_list.h: New file.
45678         * lib/gl_rbtreehash_list.c: New file.
45679         * lib/gl_anytreehash_list1.h: New file.
45680         * lib/gl_anytreehash_list2.h: New file.
45681
45682         * lib/gl_oset.h: New file.
45683         * lib/gl_oset.c: New file.
45684         * lib/gl_array_oset.h: New file.
45685         * lib/gl_array_oset.c: New file.
45686         * lib/gl_avltree_oset.h: New file.
45687         * lib/gl_avltree_oset.c: New file.
45688         * lib/gl_rbtree_oset.h: New file.
45689         * lib/gl_rbtree_oset.c: New file.
45690         * lib/gl_anytree_oset.h: New file.
45691
45692 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45693
45694         * m4/mkancesdirs.m4: New file.
45695         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45696         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45697         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45698         it.
45699
45700 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45703         * lib/mkancesdirs.h: New files.
45704         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45705         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45706         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45707         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45708         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45709         callers changed.  Revamp internals significantly, by not
45710         attempting to create directories that are temporarily more
45711         permissive than the final results.  Do not attempt to use
45712         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45713         This removes some race conditions, fixes some bugs, and simplifies
45714         things.  Use new dirchownmod function to do owner and mode changes.
45715         * lib/mkdir-p.h: Likewise.
45716         * lib/modechange.c (octal_to_mode): New function.
45717         (struct mode_change): New member mentioned.
45718         (make_node_op_equals): New arg mentioned.  All callers changed.
45719         (mode_compile): Keep track of which mode bits the user has explicitly
45720         mentioned.
45721         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45722         New arg PMODE_BITS, to keep track of which mode bits the user
45723         mentioned; it treats S_ISUID and S_ISGID speciall.
45724         All callers changed.
45725         * lib/modechange.h: Likewise.
45726
45727 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45728
45729         * MODULES.html.sh: Add mkancestors.
45730         * modules/mkancesdirs: New module.
45731         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45732         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45733         The chdir-safer and afs files are now orphans; I'll remove them
45734         unless someone speaks up.
45735         Add lib/dirchownmod.c, lib/dirchownmod.h.
45736         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45737         Add lchown, mkancesdirs.
45738         (Maintainer): Add self.
45739
45740 2006-07-15  Karl Berry  <karl@gnu.org>
45741
45742         * gnulib-tool: help message wording/arrangement.
45743
45744 2006-07-14  Simon Josefsson  <jas@extundo.com>
45745
45746         * doc/gnulib.texi (Libtool and Windows): New section.
45747
45748 2006-07-12  Simon Josefsson  <jas@extundo.com>
45749
45750         * modules/gendocs (License): Fix license, approved by Karl.
45751
45752 2006-07-12  Eric Blake  <ebb9@byu.net>
45753
45754         * MODULES.html.sh: Add gendocs.
45755
45756 2006-07-11  Eric Blake  <ebb9@byu.net>
45757
45758         * modules/fdl: New module, to install doc/fdl.texi.
45759         * MODULES.html.sh: Add new section for documentation modules.
45760         * gnulib-tool: Avoid space-tab.
45761         (--doc-base): New option, to manage files from doc.
45762
45763 2006-07-11  Eric Blake  <ebb9@byu.net>
45764
45765         * m4/absolute-header.m4: Fix comments to match recent change.
45766
45767 2006-07-11  Eric Blake  <ebb9@byu.net>
45768
45769         * gnulib-tool: List --doc-base before --tests-base.
45770
45771 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45772
45773         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45774
45775 2006-07-11  Bruno Haible  <bruno@clisp.org>
45776
45777         * README: Mention where to put documentation.
45778
45779 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45780
45781         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45782
45783 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45784
45785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45786         to stdint.m4.
45787
45788 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45789
45790         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45791         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45792         "no/such/file/stdint.h" when there is no such file, so that
45793         the resulting C code can be parsed by dodgy compilers.
45794         Problems reported by Bob Proulx.
45795
45796 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45797
45798         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45799         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45800         macros into the GNU _D_EXACT_NAMLEN.
45801         * lib/savedir.c:  Likewise.
45802         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45803
45804 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45805         and Paul Eggert  <eggert@cs.ucla.edu>
45806
45807         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45808         * m4/savedir.m4:
45809         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45810         macros into the GNU _D_EXACT_NAMLEN.
45811
45812 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45813
45814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45815         around the absolute name, to work around a problem with the HP-UX
45816         11.23 native C compiler, reported by Bob Proulx.
45817
45818 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45819
45820         * doc/maintain.texi, make-stds.texi: Sync from
45821         <http://savannah.gnu.org/projects/gnustandards>.
45822
45823 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45824
45825         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45826
45827 2006-07-09  Jim Meyering  <jim@meyering.net>
45828
45829         * m4/glob.m4: Remove a doubled word in a comment.
45830
45831 2006-07-09  Jim Meyering  <jim@meyering.net>
45832
45833         * lib/argp-pv.c: Remove a doubled word in a comment.
45834         * lib/check-version.c (check_version): Likewise.
45835         * lib/javacomp.c (compile_java_class): Likewise.
45836
45837 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45838
45839         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45840         for the benefit of people using Autoconf 2.60.  If you want to
45841         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45842         (or m4/onceonly.m4, if pre-2.57) manually.
45843
45844 2006-07-08  Jim Meyering  <jim@meyering.net>
45845
45846         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45847         comment.
45848         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45849         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45850         comment.
45851
45852 2006-07-08  Jim Meyering  <jim@meyering.net>
45853
45854         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45855
45856 2006-07-07  Simon Josefsson  <jas@extundo.com>
45857
45858         * tests/test-crc.c: Change expected crc value, the test vector
45859         were probably computed using the old broken crc.c?
45860
45861 2006-07-06  Simon Josefsson  <jas@extundo.com>
45862
45863         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45864         now the canonical place for the M4 file).
45865
45866         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45867         from the sys_socket dependency now.
45868
45869         * modules/inet_pton (Files): Ditto.
45870
45871         * modules/inet_ntop (Files): Ditto.
45872
45873 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45874
45875         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45876         not gl_PREREQ_GETUSERSHELL.
45877
45878 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45879
45880         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45881         with only one argument, for Autoconf 2.60.
45882         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45883         expand to nothing, so add a shell command to avoid syntax error.
45884         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45885
45886 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45887
45888         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45889
45890 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45891
45892         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45893         no longer needed.  Check for isblank decl.
45894         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45895         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45896         of existence.
45897
45898 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45899
45900         * lib/getloadavg.c: Use __VMS, not VMS.
45901         * lib/getopt.c: Likewise.
45902         * lib/getpagesize.h: Likewise.
45903         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45904         and probably does not work.
45905
45906 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45907
45908         * lib/.cppi-disable: Add wcwidth.
45909         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45910         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45911         (ISGRAPH): Remove.  All uses changed to isgraph.
45912         (FOLD) [!defined _LIBC]: Remove special case.
45913         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45914         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45915         HAVE_ISBLANK.
45916         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45917         case.
45918
45919 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45920
45921         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45922         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45923         brackets.  Other minor changes to suppress some compiler
45924         warnings.
45925
45926 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45927         and Paul Eggert  <eggert@cs.ucla.edu>
45928
45929         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45930         of invoking obsolescent AC_HEADER_DIRENT macro.
45931         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45932         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45933         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45934         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45935         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45936         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45937         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45938         * m4/readdir.m4: Remove; no longer needed.
45939
45940 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45941         and Paul Eggert  <eggert@cs.ucla.edu>
45942
45943         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45944         Don't worry about this obsolete case any more.
45945         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45946         directories.
45947         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45948         worry about this obsolete case any more.
45949         * lib/fts.c: Likewise.
45950         * lib/getcwd.c: Likewise.
45951         * lib/glob.h: Likewise.
45952         * lib/savedir.c: Likewise.
45953
45954 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45955
45956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45957         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45958         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45959         needed.
45960         All uses removed.
45961         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45962         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45963         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45964         needed.
45965         * m4/getdate.m4 (gl_GETDATE): Likewise.
45966         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45967         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45968         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45969         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45970         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45971         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45972         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45973         needed.
45974
45975 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45976
45977         * lib/memcasecmp.c: Include <limits.h>.
45978         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45979         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45980         Don't assume isdigit succeeds only on '0' through '9'.
45981
45982 2006-07-05  Eric Blake  <ebb9@byu.net>
45983
45984         * modules/getaddrinfo (Depends-on): Add snprintf.
45985
45986 2006-07-05  Eric Blake  <ebb9@byu.net>
45987
45988         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45989         to avoid 'header present but could not be compiled' on cygwin.
45990
45991 2006-07-05  Eric Blake  <ebb9@byu.net>
45992
45993         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45994         missing from netdb.h.
45995         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45996
45997 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45998
45999         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46000         no longer needed.
46001         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46002         * m4/getdate.m4 (gl_GETDATE): Likewise.
46003         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46004         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46005         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46006         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46008
46009 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46010
46011         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46012         All uses of is_space replaced by isspace.
46013         * lib/exit.h: Don't talk about STDC_HEADERS.
46014         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46015         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46016         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46017         replaced by isprint etc.
46018         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46019         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46020         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46021         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46022         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46023         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46024
46025 2006-07-05  Bruno Haible  <bruno@clisp.org>
46026
46027         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46028         the function exists, before testing against AIX.
46029         Reported by Martin Lambers <marlam@marlam.de>.
46030
46031 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46032
46033         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46034         From Mark D. Baushke.
46035
46036 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46037
46038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46039         to the absolute name, not just one, to bypass Sun C 5.8's
46040         "warning: #include of /usr/include/... may be non-portable".
46041
46042 2006-07-04  Eric Blake  <ebb9@byu.net>
46043
46044         * modules/dirname-tests: New test module.
46045         * tests/test-dirname.c: New file, replacing dirname.c
46046         TEST_DIRNAME section that was recently deleted.
46047
46048 2006-07-04  Bruno Haible  <bruno@clisp.org>
46049
46050         Assume ANSI C header files and <ctype.h> functions.
46051         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46052         (mbsnwidth): Use isprint, iscntrl instead.
46053
46054 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46055
46056         Merge from coreutils.
46057         * MODULES.html.sh: Add xstrtold.
46058         * modules/xstrtold: New file.
46059         * modules/cycle-check (Files): Add lib/same-inode.h.
46060         * modules/dirname (Files): Add m4/double-slash-root.m4.
46061         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46062         * modules/mkdir-p (Files): Add lib/same-inode.h.
46063         * modules/same (Files): Add lib/same-inode.h.
46064
46065 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46066
46067         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46068         This is to keep the terminology clean; POSIX talks about
46069         "absolute pathnames", not "full pathnames", but the GNU
46070         Coding Standards say to use "path" for something else;
46071         so use "absolute" to keep both sides happy.
46072         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46073         Set gl_absolute_header, not gl_full_header_path.
46074         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46075         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46076         All uses changed.
46077
46078         Merge from coreutils.
46079
46080         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46081
46082         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46083         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46084         want to require the building of c-strtod.o.
46085         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46086         needs -lm directly.
46087         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46088
46089         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46092         --as-needed option if available.  Problem reported by Albert Chin in
46093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46094         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46095         cc merely issues a bunch of annoying warnings for --as-needed
46096         (this problem was reported by Bob Proulx).  Also, try linking with
46097         -lm to detect a bug in binutils 2.16 (this problem was reported
46098         by Ralf Wildenhues).
46099
46100         2006-06-18  Jim Meyering  <jim@meyering.net>
46101
46102         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46103         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46104         macro.
46105         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46106         also check for glibc-2.4's abort-inducing bug.
46107
46108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46109         Low-probability clean-up should be to use rmdir to get rid of
46110         the just-created directory, not unlink.
46111
46112         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46113         configure fail, and request a bug report to inform us about it.
46114         Add a comment that, barring reports to the contrary, in 2007 we'll
46115         assume ftruncate is universally available.
46116
46117         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46118
46119         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46120
46121         2006-03-12  Jim Meyering  <jim@meyering.net>
46122
46123         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46124         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46125         * m4/same.m4 (gl_SAME): Likewise.
46126         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46127
46128         2006-03-11  Eric Blake  <ebb9@byu.net>
46129
46130         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46131         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46132         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46133         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46134
46135 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46136
46137         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46138         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46139         reported by Mark D. Baushke, one in
46140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46141
46142         Merge from coreutils.
46143
46144         * lib/.cppi-disable: Add stdint_.h.
46145         * lib/.cvsignore: Add stdint.h.
46146
46147         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46148
46149         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46150         both double and long double versions.
46151         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46152         * lib/xstrtold.c: New file.
46153         * lib/xstrtod.h (xstrtold): New decl.
46154
46155         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         * lib/filemode.c (setst): Remove.
46158         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46159         (arguably) clearer, and the generated code is a bit smaller on my
46160         Debian GNU/Linux stable x86 host.
46161
46162         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46163
46164         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46165         Assume that filemode.h includes sys/types.h and sys/stat.h.
46166         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46167         (ftypelet): Reorder to put common cases first, for efficiency.
46168         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46169         to do 'M'.
46170         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46171         of 10, for compatibility with FreeBSD.  All callers changed.
46172         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46173         types that can't be deduced solely from st_mode.  First arg is now a
46174         const pointer.
46175         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46176         (strmode): Renamed from mode_string.
46177         (filemodestring): New decl.
46178         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46179         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46180         needed.
46181         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46182
46183         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46184
46185         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46186         fsusage.h now does that.  Include fsusage.h first, to test interface.
46187         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46188         at most one method (the old code could have generated decls that
46189         didn't conform to C89, not that this was ever exercised).
46190         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46191
46192         2006-03-19  Jim Meyering  <jim@meyering.net>
46193
46194         Work even in a chroot where d_ino values for entries in "/"
46195         don't match the stat.st_ino values for the same names.
46196         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46197         number, iterate through all entries again, using lstat instead.
46198         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46199         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46200
46201         * lib/getcwd.c (__getcwd): Clarify a comment.
46202         Use memcpy in place of a call to strcpy.
46203
46204         2006-03-12  Jim Meyering  <jim@meyering.net>
46205
46206         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46207         matches that of the current directory (which we're about to chdir ".."
46208         out of), then save the dev-ino of the parent, instead.
46209
46210         * lib/same-inode.h (SAME_INODE): New file/macro.
46211         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46212         Include "same-inode.h", instead.
46213         * lib/same.c: Likewise.
46214         * lib/cycle-check.h: Include "same-inode.h".
46215         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46216         * lib/cycle-check.c (SAME_INODE): Remove definition.
46217         * lib/root-dev-ino.h: Include "same-inode.h".
46218
46219         2006-03-11  Eric Blake  <ebb9@byu.net>
46220
46221         * lib/same.c (same_name): s/base_name/last_component/
46222         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46223         * lib/filenamecat.c (file_name_concat): Likewise.
46224
46225         2006-03-11  Eric Blake  <ebb9@byu.net>,
46226                     Paul Eggert  <eggert@cs.ucla.edu>
46227
46228         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46229         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46230         drive prefix.
46231         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46232         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46233         (last_component): New method.
46234         * lib/dirname.c (dir_len): Determine when drive letters need a
46235         subsequent slash.  Preserve // when it is special.
46236         (dir_name): Don't append dot when drive letter is absolute.
46237         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46238         * lib/basename.c (base_name): New semantics - malloc the result.
46239         Preserve // when it is special.  Preserve relative files that look
46240         like drive letters.
46241         (base_len): Preserve // when it is special.
46242         (last_component): New method, similar to old base_name semantics.
46243         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46244         base_name.  Strip redundant slashes from ///.
46245
46246 2006-07-03  Jim Meyering  <jim@meyering.net>
46247
46248         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46249         macro is used before the first cycle_check call.
46250
46251 2006-07-03  Eric Blake  <ebb9@byu.net>
46252
46253         * modules/dirname (Depends-on): Add xstrndup.
46254
46255 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46258         test cases, so that config.log is a bit easier to follow.
46259
46260 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46261
46262         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46263         both are 64 bits, since this seems to be the tradition, and this
46264         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46265         we ever run into a host that prefers long long to long in this
46266         case, we'll need another configure-time test.  Problem reported by
46267         Jim Meyering.
46268
46269 2006-07-02  Eric Blake  <ebb9@byu.net>
46270
46271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46272
46273 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46274
46275         * modules/inttypes (Depends-on): No longer depends on stdint.
46276         * modules/stdint (Description): Say more about assumptions.
46277         Say that the fast types might differ.  Say macros are used.
46278         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46279         (Makefile.am): Revise list of substituted symbols to match
46280         new stdint.m4.
46281         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46282         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46283         * tests/test-stdint.c (verify_same_types)
46284         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46285         the code conforms to C99/C89.
46286         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46287         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46288
46289 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46290
46291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46292         but fix a bug, by requiring at least 64 bits.
46293         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46294         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46295         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46296         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46297
46298         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46299         changes.  Make 2.59 a prerequisite.  Check and substitute for
46300         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46301         inttypes.h.  Do not use special include files; just use the
46302         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46303         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46304         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46305         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46306         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46307         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46308         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46309         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46310         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46311         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46312         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46313         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46314         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46315         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46316         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46317         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46318         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46319         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46320         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46321         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46322         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46323         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46324         not check for things that C99 does not require, e.g., int8_t.  If
46325         a test isn't needed unless <stdint.h> isn't working, and is
46326         unlikely to be needed for any other reason, then don't do it
46327         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46328         size_t, since we assume C89 freestanding at least.  Do not check
46329         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46330         the right thing even if the types are not defined.  Instead use:
46331         (gl_STDINT_TYPE_PROPERTIES): New macro.
46332         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46333         testing whether <sys/types.h> clashes, as Autoconf does this for
46334         us now.  All uses removed.
46335         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46336         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46337         (gl_CHECK_TYPE_SAME):
46338         Remove; no longer needed.
46339         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46340         exists, since we'll return 0 anyway in that case.
46341         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46342
46343 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46344
46345         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46346         possible collision with system files.
46347         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46348         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46349         WCHAR_MIN and WCHAR_MAX in this case.
46350         (<stddef.h>): Do not include; no longer needed.
46351         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46352         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46353         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46354         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46355         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46356         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46357         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46358         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46359         !defined(__c99))]: Include in this case too, since it's harmless
46360         now.
46361         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46362         dangerous to do so.
46363         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46364         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46365         (_STDINT_MIN, _STDINT_MAX): New macros.
46366         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46367         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46368         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46369         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46370         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46371         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46372         macros, not typedefs; this simplifies things quite a bit.
46373         Use long int for all types narrower than int64_t.
46374         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46375         Define in terms of long long int or int64_t or long int,
46376         not int64_t or int32_t.  This saves some compile-time testing.
46377         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46378         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46379         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46380         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46381         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46382         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46383         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46384         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46385         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46386         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46387         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46388         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46389         undef any previous version and define our own version, for
46390         simplicity and consistency with the new macros for types.
46391         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46392         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46393         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46394         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46395         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46396         @WINT_T_SUFFIX@ to keep things simple here.
46397         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46398         Simplify by assuming typical 8/16/32/64 host, since we're
46399         already doing that elsewhere anyway.
46400         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46401         and assume long long int is 64 bits if available.  This
46402         speeds up 'configure'.
46403
46404 2006-07-01  Eric Blake  <ebb9@byu.net>
46405
46406         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46407         Reported by Andreas Buening.
46408
46409 2006-07-01  Eric Blake  <ebb9@byu.net>
46410
46411         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46412
46413 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46414
46415         * lib/getaddrinfo.c: fixed typo
46416
46417 2006-06-29  Jim Meyering  <jim@meyering.net>
46418
46419         * modules/strftime (Maintainer): Add my name, since with the
46420         FPRINTFTIME changes strftime.c has forked from glibc.
46421
46422 2006-06-29  Eric Blake  <ebb9@byu.net>
46423
46424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46425
46426 2006-06-29  Eric Blake  <ebb9@byu.net>
46427
46428         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46429
46430 2006-06-29  Eric Blake  <ebb9@byu.net>
46431
46432         * lib/stat_.h: New file.
46433
46434 2006-06-29  Eric Blake  <ebb9@byu.net>
46435
46436         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46437         unused static function.
46438
46439 2006-06-29  Eric Blake  <ebb9@byu.net>
46440
46441         * doc/functions.texi (Function Portability): Document missing lstat
46442         on mingw.
46443
46444 2006-06-29  Eric Blake  <ebb9@byu.net>
46445
46446         * MODULES.html.sh: Add sys_stat.
46447         * modules/sys_stat: New module.
46448         * modules/mkstemp (Depends-on): Add sys_stat.
46449
46450 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46451
46452         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46453
46454 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46455
46456         * m4/c-bs-a.m4: Removed.
46457
46458 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46459
46460         * lib/strftime.c: Assume strftime() exists.
46461
46462 2006-06-29  Derek Price  <derek@ximbiot.com>
46463
46464         * modules/c-bs-a: Removed - \a is C89.
46465         * MODULES.html.sh: Remove c-bs-a.
46466
46467 2006-06-29  Bruno Haible  <bruno@clisp.org>
46468
46469         * modules/wcwidth (License): Change to LGPL.
46470
46471 2006-06-28  Simon Josefsson  <jas@extundo.com>
46472
46473         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46474         on _WIN32.
46475
46476         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46477         getnameinfo.
46478
46479 2006-06-28  Simon Josefsson  <jas@extundo.com>
46480
46481         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46482
46483 2006-06-28  Simon Josefsson  <jas@extundo.com>
46484
46485         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46486         functions there.  It will succeed on Windows XP, but on Windows
46487         2000 and (presumably) earlier, it will fail, and use the internal
46488         re-implementation.
46489         (use_win32_p): New function.
46490         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46491         Support AI_NUMERICSERV to disable getservbyname.
46492         (getnameinfo): New function, only supports
46493         NI_NUMERICHOST|NI_NUMERICSERV for now.
46494
46495         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46496         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46497         getnameinfo.
46498
46499 2006-06-28  Eric Blake  <ebb9@byu.net>
46500
46501         * modules/wcwidth: New file.
46502         * modules/mbchar (Depends-on): Add wcwidth.
46503         * modules/mbswidth (Depends-on): Add wcwidth.
46504         * MODULES.html.sh: Add wcwidth.
46505
46506 2006-06-28  Eric Blake  <ebb9@byu.net>
46507
46508         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46510
46511 2006-06-28  Eric Blake  <ebb9@byu.net>
46512
46513         * lib/xvasprintf.h: Fix comments.
46514
46515 2006-06-28  Eric Blake  <ebb9@byu.net>
46516
46517         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46518         * lib/mbswidth.c (wcwidth): Move from here...
46519         * lib/wcwidth.h: ...to this new file.
46520
46521 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46522
46523         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46524
46525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46526         it's obsolete.
46527         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46528
46529 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46530
46531         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46532         Autoconf 2.60 says this stuff was obsolete.
46533
46534 2006-06-28  Bruno Haible  <bruno@clisp.org>
46535
46536         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46537
46538 2006-06-28  Bruno Haible  <bruno@clisp.org>
46539
46540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46541         gt_TYPE_WCHAR_T.
46542
46543 2006-06-28  Bruno Haible  <bruno@clisp.org>
46544
46545         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46546         declaration for wcwidth.
46547         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46548
46549 2006-06-28  Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46552         (mkdir): Define using _mkdir.
46553
46554 2006-06-28  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/getaddrinfo.h: Fix POSIX URL.
46557         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46558         _WIN32.
46559         (use_win32_p): Make static.
46560         (getaddrinfo): Reject service name if it is empty or does not consist
46561         solely of decimal digits, or if its value is > 65535.
46562         (getnameinfo): Remove useless casts.
46563
46564 2006-06-27  Simon Josefsson  <jas@extundo.com>
46565
46566         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46567         Eggert and Martin Lambers.
46568
46569 2006-06-27  Simon Josefsson  <jas@extundo.com>
46570
46571         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46572         Eggert and Martin Lambers.
46573
46574 2006-06-27  Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46577         result to 0, not to empty.
46578         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46579
46580 2006-06-27  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46583
46584 2006-06-26  Simon Josefsson  <jas@extundo.com>
46585
46586         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46587         present.
46588
46589 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46590
46591         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46592         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46593         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46594
46595 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46596
46597         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46598
46599 2006-06-26  Bruno Haible  <bruno@clisp.org>
46600
46601         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46602
46603 2006-06-26  Bruno Haible  <bruno@clisp.org>
46604
46605         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46606
46607 2006-06-26  Bruno Haible  <bruno@clisp.org>
46608
46609         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46610         SGI C compiler in pre-C99 mode.
46611         Suggested by Mark D. Baushke and Larry Jones.
46612
46613 2006-06-26  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46616         WCHAR_MAX.
46617         Reported by Mark D. Baushke and Larry Jones.
46618
46619 2006-06-26  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46622         in pre-C99 mode.
46623         Suggested by Mark D. Baushke and Larry Jones.
46624
46625 2006-06-23  Simon Josefsson  <jas@extundo.com>
46626             Bruno Haible  <bruno@clisp.org>
46627
46628         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46629         Emit mostlyclean-local rule.
46630         (func_emit_tests_Makefile_am): Likewise.
46631         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46632
46633 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46634
46635         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46636
46637 2006-06-23  Bruno Haible  <bruno@clisp.org>
46638
46639         * tests/test-stdint.c: Update to match ISO C 99 Technical
46640         Corrigendum 1.
46641
46642 2006-06-23  Bruno Haible  <bruno@clisp.org>
46643
46644         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46645
46646 2006-06-23  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/stdint_.h: Treat IRIX like OpenBSD.
46649
46650 2006-06-23  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46653         ISO C 99 Technical Corrigendum 1.
46654
46655 2006-06-22  Simon Josefsson  <jas@extundo.com>
46656
46657         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46658         MinGW.
46659
46660 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46661
46662         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46663         needed.  Some compiler complained about some of them.  Problem reported
46664         by Larry Jones in
46665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46666
46667 2006-06-21  Simon Josefsson  <jas@extundo.com>
46668
46669         * tests/test-getaddrinfo.c: New file.
46670
46671         * modules/getaddrinfo-tests: New file.
46672
46673         * MODULES.html.sh: Add inet_pton.
46674
46675         * modules/inet_pton: New file.
46676
46677 2006-06-21  Simon Josefsson  <jas@extundo.com>
46678
46679         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46680         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46681         of using the (limited) gnulib implementation on Windows XP.
46682
46683         * m4/inet_pton.m4: New file.
46684
46685 2006-06-21  Simon Josefsson  <jas@extundo.com>
46686
46687         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46688         variable.
46689
46690         * lib/socket_.h: Don't define WINVER.
46691
46692         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46693         slightly modified to work in gnulib.
46694
46695 2006-06-21  Simon Josefsson  <jas@extundo.com>
46696
46697         * doc/gnulib.texi (Windows sockets): Add.
46698
46699 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46700
46701         * lib/read-file.c (fread_file): Start with buffer allocation of
46702         0 bytes rather than 1 byte; this simplifies the code.
46703         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46704         code to free buffer and save/restore errno.
46705         (internal_read_file): Remove unused local.
46706
46707 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46708
46709         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46710         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46711         Problem reported by Denis Excoffier in
46712         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46713
46714 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46715
46716         * modules/sys_socket, modules/socklen: Include sys/types since
46717         FreeBSD 4.x's sys/socket.h needs it.
46718
46719 2006-06-19  Simon Josefsson  <jas@extundo.com>
46720
46721         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46722
46723 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46724
46725         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46726
46727 2006-06-19  Bruno Haible  <bruno@clisp.org>
46728
46729         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46730         and FULL_PATH_INTTYPES_H in angle brackets.
46731         Reported by Mark D. Baushke <mdb@gnu.org>.
46732
46733 2006-06-17  Eric Blake  <ebb9@byu.net>
46734
46735         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46736         errno.
46737
46738 2006-06-17  Bruno Haible  <bruno@clisp.org>
46739
46740         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46741         <sys/inttypes.h>.
46742
46743 2006-06-17  Bruno Haible  <bruno@clisp.org>
46744
46745         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46746         whether errno is declared. Assume <errno.h> declares errno.
46747
46748 2006-06-17  Bruno Haible  <bruno@clisp.org>
46749
46750         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46751
46752 2006-06-17  Bruno Haible  <bruno@clisp.org>
46753
46754         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46755         problem on Solaris 2.5.1.
46756
46757 2006-06-16  Eric Blake  <ebb9@byu.net>
46758
46759         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46760         * lib/unicodeio.c [!defined errno]: Likewise.
46761         * lib/strtol.c [!defined errno]: Likewise.
46762         * lib/strtod.c [!defined errno]: Likewise.
46763
46764 2006-06-15  Eric Blake  <ebb9@byu.net>
46765
46766         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46767
46768 2006-06-15  Eric Blake  <ebb9@byu.net>
46769
46770         * config/srclist.txt (ssize_t.m4): Lose sync.
46771
46772 2006-06-15  Bruno Haible  <bruno@clisp.org>
46773
46774         * modules/stdint (Files): Include m4/full-header-path.m4,
46775         m4/size_max.m4, m4/wchar_t.m4.
46776         (Makefile.am): Many more substitutions.
46777         * modules/stdint-tests: New file.
46778         * tests/test-stdint.c: New file.
46779
46780 2006-06-15  Bruno Haible  <bruno@clisp.org>
46781
46782         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46783         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46784         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46785         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46786         gl_CHECK_TYPE_SAME): New macros.
46787
46788 2006-06-15  Bruno Haible  <bruno@clisp.org>
46789
46790         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46791
46792 2006-06-15  Bruno Haible  <bruno@clisp.org>
46793
46794         * lib/stdint_.h: Rewritten to be fully auto-configured.
46795         Fixes bug on HP-UX/IA64.
46796
46797 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46798
46799         * lib/getdate.y (__attribute__): Don't define if already defined.
46800         Problem reported by Larry Jones.
46801         * lib/utimens.c (__attribute__): Likewise.
46802
46803 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46804
46805         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46806         reported by Andreas Schwab.
46807
46808 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46809             Bruno Haible  <bruno@clisp.org>
46810
46811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46812         check for the declaration of strnlen and a run test that exposes the
46813         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46814         rpl_strndup.
46815
46816 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46817             Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46820
46821 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46822
46823         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46824         compile test, for Tru64 4.0D.
46825
46826 2006-05-28  Karl Berry  <karl@gnu.org>
46827
46828         * config/srclist.txt (printf-args.c): lose sync.
46829
46830 2006-05-26  Martin Lambers  <marlam@marlam.de>
46831
46832         * lib/getpass.c: Updates the test for the native W32 API, and adds
46833         missing includes, thus fixing compilation warnings.
46834
46835 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46836
46837         * lib/exclude.c (exclude_fnmatch): New function.
46838         (excluded_file_name): Call exclude_fnmatch.
46839         * lib/exclude.h (excluded_file_name): New prototype
46840
46841 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46842
46843         * lib/tempname.c (small_open, large_open): New macros.
46844         (__open, __open64) [!_LIBC]: Remove.
46845         (__gen_tempname): Use small_open and large_open instead of __open
46846         and __open64.  This fixes a portability bug on HP-UX 11.11i
46847         reported by Simon Wing-Tang in
46848         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46849
46850 2006-05-24  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46853         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46854         Reported by Thorsten Maerz <torte@netztorte.de> via
46855         Aaron Stone <aaron@serendipity.cx>.
46856
46857 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46858
46859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46860         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46861         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46862         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46863         not really conditional on the cache.
46864         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46865
46866 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46867
46868         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46869         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46870         (my_usleep): Don't mishandle maximum value.
46871
46872 2006-05-19  Jim Meyering  <jim@meyering.net>
46873
46874         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46875
46876 2006-05-17  Bruno Haible  <bruno@clisp.org>
46877
46878         Cygwin portability.
46879         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46880
46881 2006-05-17  Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/stdint_.h: Fix recognition of Cygwin.
46884
46885 2006-05-15  Bruno Haible  <bruno@clisp.org>
46886
46887         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46888         on libtool patch by Ralf Wildenhues.
46889
46890 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46891
46892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46893         test for C99 conformance; (bool) 0.5 is an integer constant
46894         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46895         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46896
46897 2006-05-11  Simon Josefsson  <jas@extundo.com>
46898
46899         * m4/xvasprintf.m4: Fix obvious typo.
46900
46901 2006-05-11  Jim Meyering  <jim@meyering.net>
46902
46903         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46904         James Lemley.
46905
46906 2006-05-10  Simon Josefsson  <jas@extundo.com>
46907
46908         * lib/md4.c: Typo fix, update copyright years.
46909         (K1, K2): Don't use L because it turn computations into 64-bit on
46910         64-bit platforms.
46911
46912 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46913
46914         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46915         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46916         unwanted sign propagation, e.g., on hosts with 64-bit int.
46917         There still are some problems with reeelly weird theoretical hosts
46918         (e.g., 33-bit int) but it's not worth worrying about now.
46919         * lib/sha1.c (rol): Likewise.
46920         (K1, K2, K3, K4): Remove unnecessary L suffix.
46921
46922 2006-05-10  Bruno Haible  <bruno@clisp.org>
46923
46924         * lib/des.c: Cast to avoid warnings.
46925
46926 2006-05-09  Bruno Haible  <bruno@clisp.org>
46927
46928         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46929         (Depends-on): Depend also on xsize, stdarg.
46930         (configure.ac): Add gl_XVASPRINTF.
46931
46932 2006-05-09  Bruno Haible  <bruno@clisp.org>
46933
46934         * m4/xvasprintf.m4: New file.
46935
46936 2006-05-09  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46939         (EOVERFLOW): Define fallback value.
46940         (xstrcat): New function.
46941         (xvasprintf): Recognize the special case of a string concatenation.
46942
46943 2006-05-08  Eric Blake  <ebb9@byu.net>
46944
46945         * gnulib-tool (func_version): Base copyright year on CVS date.
46946         (func_emit_copyright_notice): New function.
46947         (func_emit_lib_Makefile_am): Use it.
46948         (func_emit_tests_Makefile_am): Likewise.
46949         (func_import): Likewise.
46950
46951 2006-05-08  Bruno Haible  <bruno@clisp.org>
46952
46953         * modules/stdarg: New file.
46954         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46955
46956 2006-05-08  Bruno Haible  <bruno@clisp.org>
46957
46958         * m4/stdarg.m4: New file, from GNU gettext.
46959
46960 2006-05-08  Bruno Haible  <bruno@clisp.org>
46961
46962         * config/srclist.txt (build-aux/config.rpath): different from latest
46963         release.
46964
46965 2006-05-08  Bruno Haible  <bruno@clisp.org>
46966
46967         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46968
46969 2006-05-05  Jim Meyering  <jim@meyering.net>
46970
46971         * m4/warning.m4: New file, derived from bison's file by the same name.
46972
46973 2006-05-03  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/stdint_.h: Shorter URL.
46976         * lib/inttypes.h: Likewise.
46977
46978 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46979
46980         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46981
46982 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46983
46984         * lib/verify.h: Document the internals better.  Most of this change
46985         was written by Bruno Haible.
46986
46987 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46988
46989         * doc/verify.texi: New file, partly based on a proposal by
46990         Bruno Haible.
46991
46992 2006-05-02  Bruno Haible  <bruno@clisp.org>
46993
46994         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46995         test from here...
46996         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46997
46998 2006-04-29  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47001         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47002
47003 2006-04-29  Bruno Haible  <bruno@clisp.org>
47004
47005         * gnulib-tool: Make --update option actually work.
47006
47007 2006-04-29  Bruno Haible  <bruno@clisp.org>
47008
47009         * doc/gcd.texi: New file.
47010         * doc/gnulib.texi: Include it.
47011
47012 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47013
47014         * lib/getdate.y (get_date): When adding relative date, start with the
47015         initial time, not with the result of the first mktime call.
47016
47017 2006-04-25  Bruno Haible  <bruno@clisp.org>
47018
47019         * gnulib-tool (func_import): Output the include directives in three
47020         blocks, sorted separately.
47021         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47022
47023 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47024
47025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47026         to define main with arguments, for C++.  Reported by Eric Blake.
47027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47028         Prefer 'int main ()' to 'int main (void)', for C++.
47029         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47031         for 'main', for C99 and C++.
47032
47033 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47034
47035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47036         Don't assume that exit status -1 is valid.
47037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47038         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47039         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47040         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47041         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47042         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47043         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47044         functions can be used without declaring them, or that you can
47045         exit with status -1.
47046         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47047
47048 2006-04-24  Karl Berry  <karl@gnu.org>
47049
47050         * config/srclist.txt (longdouble.m4): sync lost.
47051
47052 2006-04-24  Eric Blake  <ebb9@byu.net>
47053
47054         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47055
47056 2006-04-24  Bruno Haible  <bruno@clisp.org>
47057
47058         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47059         poll() implementation in AIX.
47060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47061
47062 2006-04-24  Bruno Haible  <bruno@clisp.org>
47063
47064         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47065         assigned exactly once.
47066
47067 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47068             Bruno Haible  <bruno@clisp.org>
47069
47070         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47071         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47072         for AM_CPPFLAGS.
47073
47074 2006-04-23  Bruno Haible  <bruno@clisp.org>
47075
47076         * modules/copy-file: Depend on unistd.
47077         * modules/execute: Likewise.
47078         * modules/fatal-signal: Likewise.
47079         * modules/findprog: Likewise.
47080         * modules/mkdtemp : Likewise.
47081         * modules/pipe: Likewise.
47082         * modules/wait-process: Likewise.
47083
47084 2006-04-23  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47087         condition was already detected.
47088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47089
47090 2006-04-23  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/copy-file.c: Include <unistd.h> unconditionally.
47093         * lib/execute.c: Likewise.
47094         * lib/fatal-signal.c: Likewise.
47095         * lib/findprog.c: Likewise.
47096         * lib/mkdtemp.c: Likewise.
47097         * lib/pipe.h: Likewise.
47098         * lib/pipe.c: Likewise.
47099         * lib/wait-process.h: Likewise.
47100
47101 2006-04-23  Bruno Haible  <bruno@clisp.org>
47102
47103         * gnulib-tool (func_usage): Fix --import description. Document
47104         --update.
47105         (func_import): Create temporary file in a temporary directory, if
47106         --dry-run is specified. Silence errors from 'grep' when there are no
47107         m4 files in $m4dir.
47108         (func_create_testdir): Silence errors from 'grep' when there are no
47109         m4 files in $m4dir.
47110         Reported by Karl Berry <karl@freefriends.org>.
47111
47112 2006-04-20  Bruno Haible  <bruno@clisp.org>
47113
47114         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47115         one argument, so that the code will be portable to Autoconf 2.60.
47116         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47117         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47118         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47119
47120 2006-04-19  Derek Price  <derek@ximbiot.com>
47121             Eric Blake  <ebb9@byu.net>
47122
47123         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47124         rather than "/full/path.h".  Update comment to match.  Shorten &
47125         generalize m4_translit call via AS_TR_CPP.
47126
47127 2006-04-19  Derek Price  <derek@ximbiot.com>
47128             Eric Blake  <ebb9@byu.net>
47129
47130         * lib/inttypes.h: Correct grammar in comment.
47131
47132 2006-04-18  Derek Price  <derek@ximbiot.com>
47133             Paul Eggert  <eggert@cs.ucla.edu>
47134
47135         * modules/inttypes: New file.
47136         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47137
47138 2006-04-18  Derek Price  <derek@ximbiot.com>
47139             Paul Eggert  <eggert@cs.ucla.edu>
47140
47141         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47142         New files.
47143
47144 2006-04-18  Derek Price  <derek@ximbiot.com>
47145             Paul Eggert  <eggert@cs.ucla.edu>
47146
47147         * lib/inttypes.h: New file.
47148         * lib/strtoimax.c: Assume <inttypes.h>.
47149
47150 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47151
47152         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47153         isn't mounted.  Problem reported by Kir Kolyshkin.
47154
47155 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47156
47157         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47158         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47159         Derek R. Price.
47160         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47161         implementation.
47162
47163 2006-04-12  Eric Blake  <ebb9@byu.net>
47164
47165         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47166         is now done automatically by the corresponding Autoconf macro.
47167
47168 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47169
47170         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47171         time_r.h.
47172
47173 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         Merge regex changes from libc, removing some of our
47176         POSIX-conformance changes that were rejected and redoing them in a
47177         less-intrusive way.
47178
47179         * lib/regcomp.c (re_compile_internal, init_dfa):
47180         Length arg is now size_t, not Idx.  All uses changed.
47181         (peek_token): Forward decl now says internal_function.
47182         (__re_error_msgid, __re_error_msgid_idx):
47183         Now static rather than extern with attribute_hidden.
47184         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47185         For some reason libc prefers K&R style defns for external functions.
47186         (regerror) [!defined _LIBC]: Likewise.
47187         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47188         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47189         (build_range_exp, build_collating_symbol):
47190         Use K&R-style defn.
47191         (re_compile_fastmap): Use '\0' to memset, not 0.
47192         (utf8_sb_map): Make the calculations more obvious.
47193         (init_dfa, parse_bracket_exp, build_charclass_op):
47194         Call calloc and cast result, as glibc does.
47195         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47196         (build_range_exp, build_collating_symbol):
47197         Now internal functions.
47198
47199         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47200
47201         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47202         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47203         Don't depend on VMS; depend on __VMS instead, for POSIX
47204         namespace cleanness.
47205         (regoff_t): Define to ssize_t, not long int.
47206
47207         Remove the REG_ macros named below.  Instead, make the old names
47208         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47209         __USE_GNU_REGEX.
47210         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47211         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47212         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47213         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47214         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47215         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47216         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47217         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47218         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47219         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47220         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47221         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47222         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47223         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47224         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47225         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47226         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47227         (REG_NREGS):
47228         Remove.  All uses replaced by the old RE_* names.
47229         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47230         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47231         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47232         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47233         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47234         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47235         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47236         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47237         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47238         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47239         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47240         Don't bother having these macros be independent of each others'
47241         values, since they no longer exist in the POSIX name space.
47242
47243         Rename the following member names back to their old names,
47244         unless !__USE_GNU_REGEX.  All uses changed back.
47245         (buffer): Renamed from re_buffer.
47246         (allocated): Renamed from re_allocated.
47247         (used): Renamed from re_used.
47248         (syntax): Renamed from re_syntax.
47249         (fastmap): Renamed from re_fastmap.
47250         (translate): Renamed from re_translate.
47251         (can_be_null): Renamed from re_can_be_null.
47252         (regs_allocated): Renamed from re_regs_allocated.
47253         (fastmap_accurate): Renamed from re_fastmap_accurate.
47254         (no_sub): Renamed from re_no_sub.
47255         (not_bol): Renamed from re_not_bol.
47256         (not_eol): Renamed from re_not_eol.
47257         (newline_anchor): Renamed from re_newline_anchor.
47258         (num_regs): Renamed from rm_num_regs.
47259         (start): Renamed from rm_start.
47260         (end): Renamed from rm_end.
47261
47262         (free_state): Move up a bit.
47263
47264         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47265         #define to be empty.
47266         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47267         when that is what is intended.
47268         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47269         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47270         (MAX): New macro.
47271         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47272         All uses changed back to re_malloc, etc.  It's now the caller's
47273         responsibility to check for overflow; all callers changed.
47274         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47275         (re_x2nrealloc): Remove.
47276         (free_state): Remove decl.
47277
47278         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47279         (re_set_registers, re_exec):
47280         Use K&R-style defn.
47281
47282         2006-01-31  Roland McGrath  <roland@redhat.com>
47283
47284         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47285         Reported by Mike Frysinger <vapier@gentoo.org>.
47286
47287         2006-01-15  Andreas Jaeger  <aj@suse.de>
47288
47289         [BZ #1950]
47290         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47291         build_wcs_upper_buffer change.
47292         (build_wcs_upper_buffer): Change return type.
47293
47294         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47295
47296         * lib/regex_internal.h: Include <stdint.h> if available.
47297
47298         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47299
47300         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47301
47302         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47303
47304         * lib/regcomp.c: Adjust for changed secondary hash function.
47305
47306         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47307
47308         * lib/regex.h: Pretty printing.
47309         Clean up namespace a bit.
47310
47311         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47312
47313         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47314         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47315
47316         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47317                     Ulrich Drepper  <drepper@redhat.com>
47318
47319         [BZ #1302]
47320         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47321         changed.
47322         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47323
47324         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47325
47326         [BZ #281]
47327         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47328         * lib/regcomp.c: Remove unnecessary uses of
47329         unsigned RE_TRANSLATE_TYPE.
47330         * lib/regex_internal.h: Likewise.
47331         * lib/regex_internal.c: Likewise.
47332         * lib/regexec.c: Likewise.
47333         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47334
47335         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47336
47337         * lib/regexec.c (find_recover_state): Remove unnecessary
47338         initialization.
47339         (transit_state_bkref): Make DFA a const pointer.
47340         (get_subexp): Likewise.
47341         (check_arrival): Likewise.
47342         (update_cur_sifted_state): Likewise.
47343         (re_search_internal): Likewise.
47344         (prune_impossible_nodes): Likewise.
47345         (acquire_init_state_context): Likewise.
47346         (proceed_next_node): Likewise.
47347         (set_regs): Likewise.
47348         (free_fail_stack_return): Likewise.
47349         (check_arrival_expand_ecl): Mark DFA parameter as const.
47350         (check_arrival_expand_ecl_sub): Likewise.
47351         (check_subexp_limits): Likewise.
47352         (sub_epsilon_src_nodes):  Likewise.
47353         (add_epsilon_src_nodes):  Likewise.
47354         (merge_state_array): Likewise.
47355         (update_regs): Likewise.
47356         (build_trtable): Likewise.
47357         (sift_states_backward): Mark MCTX parameter as const.
47358         (build_sifted_states): Likewise.
47359         (update_cur_sifted_state): Likewise.
47360         (sift_states_mkref): Likewise.
47361         (check_arrival_expand_ecl): Mark eclosure as const.
47362         (check_dst_limits_calc_pos_1): Likewise.
47363         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47364         pointer.
47365
47366         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47367
47368         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47369         (transit_state_sb): Likewise.
47370         (transit_state_mb): Likewise.
47371         (sift_states_iter_mb): Likewise.
47372         (check_arrival_add_next_nodes): Likewise.
47373         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47374         [_LIBC] (re_search_2_stub): Use mempcpy.
47375
47376         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47377         mbrtowc for very simple UTF-8 case.
47378
47379         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47380         a pointer-to-const.
47381         (re_acquire_state_context): Likewise.
47382         * lib/regex_internal.h: Adjust prototypes.
47383
47384         * lib/regex.c: Prevent using C++ compilers.
47385
47386         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47387         (re_acquire_state_context): Likewise.
47388
47389 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47390
47391         * modules/regex (Depends-on): Add ssize_t.
47392
47393 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47396         translation table.
47397
47398 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47401
47402 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47403             Bruno Haible  <bruno@clisp.org>
47404
47405         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47406         <sys/types.h> and <inttypes.h>.
47407
47408 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47409
47410         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47411         `__error_t_defined', so argp.h will not typedef the former.
47412
47413 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47414
47415         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47416         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47417         glibc names.  Even if glibc is changed to conform to POSIX, the
47418         traditional names will be available anyway, since regex depends on
47419         the extensions module.  Also, fix a longstanding typo in the
47420         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47421         reported by Emanuele Giaquinta.  Also, change sense of cached
47422         variable, so that the message makes sense.
47423
47424 2006-03-24  Simon Josefsson  <jas@extundo.com>
47425
47426         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47427         including some doc fixes.
47428         (base64_encode_alloc): Fix +1 bug on allocation failures.
47429
47430 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47431
47432         * lib/base64.c (base64_encode): Do not read past end of array with
47433         unsanitized input on systems with CHAR_BIT > 8.
47434
47435 2006-03-24  Eric Blake  <ebb9@byu.net>
47436
47437         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47438
47439 2006-03-22  Karl Berry  <karl@gnu.org>
47440
47441         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47442         * config/srclistvars.sh (COREUTILS): new var.
47443
47444 2006-03-17  Jim Meyering  <jim@meyering.net>
47445
47446         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47447         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47448
47449 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47450
47451         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47452         no longer needs it.  Instead, check that regoff_t is as least
47453         as wide as ptrdiff_t.
47454
47455         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47456         so that our regex.h stays compatible with the installed regex.
47457         This is helpful for installers who configure --without-included-regex.
47458         Problem reported by Emanuele Giaquinta.
47459
47460 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47461
47462         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47463         Typedef to long int, not to off_, as POSIX will likely change
47464         in that direction.
47465
47466 2006-03-15  Eric Blake  <ebb9@byu.net>
47467
47468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47469
47470 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47471
47472         * lib/argp-help.c (validate_uparams): Fix typo
47473         * lib/argp-parse.c (argp_default_options): Consistently begin help
47474         messages with a lowercase letter.
47475
47476 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47477
47478         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47479         overrun buffers and shouldn't be used (much as gets shouldn't be
47480         used).
47481         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47482
47483 2006-03-08  Simon Josefsson  <jas@extundo.com>
47484
47485         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47486         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47487
47488 2006-03-08  Simon Josefsson  <jas@extundo.com>
47489
47490         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47491         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47492
47493 2006-03-08  Simon Josefsson  <jas@extundo.com>
47494
47495         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47496         signal that configure disabled the device.
47497
47498 2006-03-08  Simon Josefsson  <jas@extundo.com>
47499
47500         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47501         languages.
47502
47503 2006-03-07  Simon Josefsson  <jas@extundo.com>
47504
47505         * modules/getopt (Depends-on): Add unistd.
47506
47507         * modules/unistd: New file.
47508
47509 2006-03-07  Simon Josefsson  <jas@extundo.com>
47510
47511         * modules/gc-random: New file.
47512
47513 2006-03-07  Simon Josefsson  <jas@extundo.com>
47514
47515         * m4/unistd_h.m4: New file.
47516
47517 2006-03-07  Simon Josefsson  <jas@extundo.com>
47518
47519         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47520         test to be side-effect free by storing the result in the cache
47521         variable gl_cv_lib_readline, and moving the assignment of
47522         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47523         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47524
47525 2006-03-07  Simon Josefsson  <jas@extundo.com>
47526
47527         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47528         error on missing devices (the functions will return an error).
47529
47530         * m4/gc.m4: Move random stuff to gc-random.m4
47531
47532 2006-03-07  Simon Josefsson  <jas@extundo.com>
47533
47534         * lib/unistd_.h: New file.
47535
47536 2006-03-07  Simon Josefsson  <jas@extundo.com>
47537
47538         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47539
47540 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47543         Problem reported by Juan Manuel Guerrero.
47544
47545 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47546
47547         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47548         the unistd module.
47549         * lib/getlogin_r.c: Likewise.
47550         * lib/getlogin_r.h: Likewise.
47551         * lib/glob.c: Likewise.
47552         * lib/pagealign_alloc.c: Likewise.
47553         * lib/unistd_.h: Remove; no longer needed.
47554
47555 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47556
47557         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47558         Add unistd.
47559         * modules/c-stack (Depends-on): Add unistd.
47560         * modules/getlogin_r: Likewise.
47561         * modules/glob: Likewise.
47562         * modules/pagealign_alloc: Likewise.
47563         * modules/unistd (Files): Remove lib/unistd_.h.
47564         (EXTRA_DIST): Remove.
47565         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47566         need unistd_.h.
47567         (MOSTLYCLEANFILES): Remove unistd.h-t.
47568
47569 2006-03-03  Simon Josefsson  <jas@extundo.com>
47570
47571         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47572
47573 2006-03-03  Simon Josefsson  <jas@extundo.com>
47574
47575         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47576         libidn and bison.
47577
47578 2006-03-03  Simon Josefsson  <jas@extundo.com>
47579
47580         * build-aux/maint.mk: Add indent target.
47581
47582 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47583
47584         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47585         our replacement poll.h in any case, to avoid a differing
47586         declaration from a system header.  Seen on AIX.
47587
47588 2006-03-01  Simon Josefsson  <jas@extundo.com>
47589
47590         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47591         <kasal@ucw.cz>.
47592
47593 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47594
47595         * modules/gettime (Depends-on): Add extensions module.
47596         * modules/nanosleep (Depends-on): Likewise.
47597         * modules/settime (Depends-on): Likewise.
47598
47599 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47600
47601         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47602         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47603         pedantically.
47604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47605         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47606
47607         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47608         not "==".  Reported by Ralf Wildenhues.
47609
47610 2006-03-01  Karl Berry  <karl@gnu.org>
47611
47612         * doc/Copyright/request-*: new files, synced from gnuorg.
47613
47614 2006-03-01  Karl Berry  <karl@gnu.org>
47615
47616         * config/srclist.txt (Copyright/*): new entries.
47617
47618 2006-02-28  Simon Josefsson  <jas@extundo.com>
47619
47620         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47621
47622 2006-02-27  Simon Josefsson  <jas@extundo.com>
47623
47624         * lib/base64.h: Indent #define's.  From Jim Meyering
47625         <jim@meyering.net>.
47626
47627 2006-02-27  Jim Meyering  <jim@meyering.net>
47628
47629         Revert the change of 2006-02-24, so these files can continue
47630         to be sync'd from gettext.
47631         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47632         of `config.h'.
47633
47634 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47635
47636         * modules/intprops: New file.
47637         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47638         Add intprops.
47639         * modules/getloadavg (Files): Remove lib/intprops.h.
47640         (Depends-on): Add intprops.
47641         * modules/human: Likewise.
47642         * modules/inttostr: Likewise.
47643         * modules/openat: Likewise.
47644         * modules/sig2str: Likewise.
47645         * modules/userspec: Likewise.
47646         * modules/utimecmp: Likewise.
47647         * modules/xnanosleep: Likewise.
47648         * modules/xstrtol: Likewise.
47649
47650 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47651
47652         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47653         * modules/lock-tests (TESTS): Use $(EXEEXT).
47654         * modules/tls-tests: Likewise.
47655         * modules/argp-tests: Likewise.
47656         (check_PROGRAMS): New var, replacing...
47657         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47658
47659 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47660
47661         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47662         `config.h'.
47663
47664 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47665
47666         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47667
47668 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47669
47670         Sync from coreutils.
47671         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47672         gl_CHDIR_SAFER.
47673
47674 2006-02-22  Jim Meyering  <jim@meyering.net>
47675
47676         Sync from coreutils.
47677         * m4/chdir-safer.m4: New file.
47678
47679 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47680
47681         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47682         AT_FDCWD exceeds INT_MAX.
47683         * lib/openat.h (AT_FDCWD): Likewise.
47684
47685 2006-02-17  Eric Blake  <address@hidden>
47686
47687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47688
47689 2006-02-16  Simon Josefsson  <jas@extundo.com>
47690
47691         * modules/getaddrinfo (Depends-on): Add sys_socket.
47692
47693 2006-02-15  Simon Josefsson  <jas@extundo.com>
47694
47695         * build-aux/maint.mk: Add dsyntax-check rule.
47696
47697 2006-02-15  Eric Blake  <ebb9@byu.net>
47698
47699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47700         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47701         'present but cannot compile' warnings on cygwin.
47702         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47703         use ws2tcpip.h if sys/socket.h works.
47704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47705         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47706
47707 2006-02-14  Simon Josefsson  <jas@extundo.com>
47708
47709         * modules/maintainer-makefile (Files): Rename.
47710
47711         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47712         and (the local) Makefile.cfg to maint-cfg.mk.
47713
47714         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47715         to the latter.
47716
47717         * modules/maintainer-makefile: New module.
47718
47719         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47720         severaly stripped to make it possible to build it up from scratch
47721         with reliable tests.
47722
47723         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47724         fixes to permit overriding the default actions when configure and
47725         makefile are not available.
47726
47727 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47728
47729         Sync from coreutils.
47730         * modules/lstat (Depends-on): Don't depend on xalloc.
47731         (License): Change from GPL to LGPL, since this is now simply a
47732         replacement for a libc function.
47733
47734 2006-02-14  Jim Meyering  <jim@meyering.net>
47735
47736         Sync from coreutils.
47737
47738         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47739         failure on deficient systems, and simplify gnulib lgpl dependencies.
47740         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47741         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47742
47743         * lib/xalloc-die.c: Remove unused definition of N_.
47744
47745 2006-02-14  Jim Meyering  <jim@meyering.net>
47746
47747         Sync from coreutils.
47748         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47749         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47750         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47751         double-quote uses of that variable, to accommodate the rare case in
47752         which getmntent is available in none of the libraries checked.  This
47753         happens at least on FreeBSD 5.0.
47754
47755 2006-02-13  Simon Josefsson  <jas@extundo.com>
47756
47757         * gnulib-tool (Usage): Fix --import, from
47758         karl@freefriends.org (Karl Berry).
47759
47760 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47761
47762         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47763
47764 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47765
47766         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47767         "autoupdate" on 2005-12-12.
47768
47769 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47770
47771         * modules/closeout (Depends-on): Remove atexit.
47772
47773 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47774
47775         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47776         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47777
47778 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47779
47780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47781         __EXTENSIONS__ if this causes compilation to fail.  Problem
47782         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47783         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47784
47785 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47786
47787         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47788         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47790         All uses changed.
47791
47792 2006-01-26  Simon Josefsson  <jas@extundo.com>
47793
47794         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47795         prototype is visible on mingw32.
47796
47797         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47798         for mingw32.
47799
47800         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47801         mingw32).
47802
47803 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47804
47805         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47806         attempt to open for write; this always fails, at least on POSIX
47807         hosts.  This reinstates the 2006-01-09 change, which was
47808         inadvertently removed.
47809
47810 2006-01-26  Bruno Haible  <bruno@clisp.org>
47811
47812         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47813         Reported by Paul Eggert.
47814
47815 2006-01-26  Bruno Haible  <bruno@clisp.org>
47816             Paul Eggert  <eggert@cs.ucla.edu>
47817
47818         * lib/stdbool_.h (_Bool)
47819         [(! (defined __cplusplus || defined __BEOS__)
47820           && !defined __GNUC__
47821           && !(defined __HP_cc || defined __xlc__
47822                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47823                || defined __sgi))]:
47824         #define to signed char in these cases too; this simplifies
47825         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47826         etc., separately) and makes it more conservative.
47827
47828 2006-01-25  Simon Josefsson  <jas@extundo.com>
47829
47830         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47831         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47832         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47833
47834 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47835
47836         * lib/argp-namefrob.h: Bugfix. Remove stray #
47837
47838 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47841         so that we test the test.
47842         Check for yet another HP-UX cc bug involving *bool |= bool.
47843
47844 2006-01-25  Karl Berry  <karl@gnu.org>
47845
47846         * config/srclist.txt (vasnprintf.c): sync lost.
47847
47848 2006-01-25  Jim Meyering  <jim@meyering.net>
47849
47850         Sync from the stable (b5) branch of coreutils:
47851
47852         * lib/fts.c (fts_children): Don't let close() clobber errno from
47853         failed fchdir().
47854
47855         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47856         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47857         a dangling symlink.  That can also happen at least for ELOOP.
47858         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47859         FYI, this bug predates the inclusion of fts.c in coreutils.
47860
47861         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47862         in their own block, so pre-c99 compilers don't object.
47863
47864         Avoid the double-free (first in fts_read, second in fts_close) that
47865         would occur when an `active' directory is made inaccessible (e.g.,
47866         via chmod a-x) during a traversal.
47867         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47868         before returning.  Reproduce this failure by
47869         mkdir -p a/b; cd a; chmod a-x . b
47870         Reported by Stavros Passas.
47871
47872 2006-01-25  Jim Meyering  <jim@meyering.net>
47873
47874         * lib/fileblocks.c: Remove more useless parentheses.
47875         * lib/readutmp.h: Likewise.
47876
47877 2006-01-25  Bruno Haible  <bruno@clisp.org>
47878
47879         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47880         warnings.
47881         Reported by Paul Eggert.
47882
47883 2006-01-25  Bruno Haible  <bruno@clisp.org>
47884
47885         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47886         rid of a trap command. For Solaris sh.
47887         Reported by Mark D. Baushke <mdb@gnu.org>.
47888
47889 2006-01-24  Simon Josefsson  <jas@extundo.com>
47890
47891         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47892         Bruno.
47893
47894 2006-01-24  Karl Berry  <karl@gnu.org>
47895
47896         * config/srclist.txt (argp-namefrob.h): sync lost.
47897
47898 2006-01-24  Jim Meyering  <jim@meyering.net>
47899
47900         * modules/openat (Files): Add lib/intprops.h.
47901         From Mark D. Baushke.
47902
47903 2006-01-24  Jim Meyering  <jim@meyering.net>
47904
47905         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47906         Reported by Mark D. Baushke.
47907
47908 2006-01-24  Jim Meyering  <jim@meyering.net>
47909
47910         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47911
47912 2006-01-24  Bruno Haible  <bruno@clisp.org>
47913
47914         * modules/strnlen (Maintainer): Change from glibc to all.
47915
47916 2006-01-24  Bruno Haible  <bruno@clisp.org>
47917
47918         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47919         Patch by Paul Eggert.
47920
47921 2006-01-24  Bruno Haible  <bruno@clisp.org>
47922
47923         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47924         already has it.
47925         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47926         2005-11-26.
47927
47928         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47929         'signed char' to avoid problems with the built-in _Bool type.
47930         Reported by Paul Eggert on 2005-11-26.
47931
47932 2006-01-24  Bruno Haible  <bruno@clisp.org>
47933
47934         * gnulib-tool (func_import): Avoid constructing complicated sed
47935         expressions inside backquote.
47936         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47937
47938 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47939
47940         These changes imported from libc.
47941         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47942         test and two separate function calls.
47943         * lib/strndup.c (__strndup): Add libc_hidden_def.
47944
47945 2006-01-23  Simon Josefsson  <jas@extundo.com>
47946
47947         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47948         Remove the test_*_SOURCES variable: automake infers it by default.
47949         * modules/tls-tests: Likewise.
47950
47951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47952
47953         Work around porting bugs reported by Dieter in
47954         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47955         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47956         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47957         Include "getopt.h" first, to check interface.
47958         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47959         !HAVE_DECL_GETENV.
47960         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47961         (__strndup): Revert to K&R-style function dfns, the glibc style.
47962         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47963         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47964         Include strnlen.h first, to get prototype properly.
47965         (strnlen): Renamed from __strnlen.
47966         Remove weak alias.
47967
47968 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47969
47970         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47971
47972 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47973
47974         * config/srclist.txt: Adjust to reflect glibc reorganization.
47975         This affects only comments.
47976
47977 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47978
47979          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47980          Reported by Bruce Korb <bkorb@gnu.org>.
47981
47982 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47983
47984         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47985         to pacify gcc -Wswitch-default.
47986
47987 2006-01-22  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47990         temporary buffer for sprintf, take into account the precision also
47991         for 'd', 'i', 'u', 'o', 'x', 'X'.
47992
47993 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47994
47995         * modules/argp-tests: New module
47996         * tests/test-argp.c: New file
47997         * tests/test-argp-2.sh: New file
47998
47999 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48000
48001         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48002         (__argp_base_name): Removed
48003         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48004         typo.
48005         (__argp_base_name): Provide macro definition or extern declaration
48006         depending on the configuration
48007
48008 2006-01-20  Simon Josefsson  <jas@extundo.com>
48009
48010         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48011
48012 2006-01-20  Simon Josefsson  <jas@extundo.com>
48013
48014         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48015
48016 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48017
48018         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48019         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48020         Suggested by Bruno Haible.
48021
48022 2006-01-20  Karl Berry  <karl@gnu.org>
48023
48024         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48025         until changes propagate, I guess.
48026
48027 2006-01-19  Simon Josefsson  <jas@extundo.com>
48028
48029         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48030
48031 2006-01-19  Simon Josefsson  <jas@extundo.com>
48032
48033         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48034
48035 2006-01-19  Simon Josefsson  <jas@extundo.com>
48036
48037         * gnulib-tool: Set check_PROGRAMS.
48038
48039         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48040         modules/des-tests, modules/gc-arcfour-tests,
48041         modules/gc-arctwo-tests, modules/gc-des-tests,
48042         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48043         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48044         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48045         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48046         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48047         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48048         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48049         test_*_SOURCES.
48050
48051 2006-01-18  Simon Josefsson  <jas@extundo.com>
48052
48053         * modules/socklen (Depends-on): Depend on sys_socket.
48054
48055 2006-01-18  Simon Josefsson  <jas@extundo.com>
48056
48057         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48058         modules/des-tests, modules/gc-arcfour-tests,
48059         modules/gc-arctwo-tests, modules/gc-des-tests,
48060         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48061         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48062         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48063         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48064         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48065         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48066         $(EXEEXT) to automake TESTS variable, for mingw32.
48067
48068 2006-01-17  Simon Josefsson  <jas@extundo.com>
48069
48070         * modules/socklen (Include): Need sys/socket.h.
48071
48072 2006-01-17  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/ssize_t (Include): Add <sys/types.h>.
48075
48076 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48077
48078         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48079         it's not portable and it doesn't work with cross-compiles.
48080         Problem reported by Bruno Haible.  Fix missing-$ typo in
48081         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48082         -zignore from being used with Sun's C compiler.
48083
48084 2006-01-12  Simon Josefsson  <jas@extundo.com>
48085
48086         * lib/base64.c: Fix warning, reported by Bruno Haible
48087         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48088
48089 2006-01-12  Bruno Haible  <bruno@clisp.org>
48090
48091         * modules/ldd: New file.
48092         * build-aux/ldd.sh.in: New file.
48093         * MODULES.html.sh (Support for building libraries and executables): Add
48094         ldd.
48095
48096 2006-01-12  Bruno Haible  <bruno@clisp.org>
48097
48098         * m4/ldd.m4: New file.
48099
48100 2006-01-12  Bruno Haible  <bruno@clisp.org>
48101
48102         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48103         endless loop while replacing $auxdir with build-aux.
48104
48105 2006-01-11  Simon Josefsson  <jas@extundo.com>
48106
48107         * lib/stdint_.h (SIZE_MAX): Add missing (.
48108
48109 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         Sync from coreutils.
48112         * lib/md5.c: Fix commentary typos.
48113         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48114         * lib/md5.h (__attribute__): Remove; unused.
48115         * lib/sha1.c: Fix commentary to match md5 better.
48116         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48117         so that we don't need to worry about alignment.  All uses changed.
48118         This merges the 2005-10-28 md5 change into sha1.
48119
48120 2006-01-11  Jim Meyering  <jim@meyering.net>
48121
48122         Sync from coreutils.
48123         * lib/md5.c (OP): Fix spacing.
48124
48125 2006-01-11  Bruno Haible  <bruno@clisp.org>
48126
48127         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48128         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48129         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48130
48131 2006-01-11  Bruno Haible  <bruno@clisp.org>
48132
48133         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48134         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48135         the "early" section as well.
48136
48137 2006-01-11  Bruno Haible  <bruno@clisp.org>
48138
48139         Avoid "ar: no archive members specified" error on MacOS X.
48140         * gnulib-tool (func_modules_add_dummy): New function.
48141         (func_import, func_create_testdir): Invoke it.
48142
48143 2006-01-11  Bruno Haible  <bruno@clisp.org>
48144
48145         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48146         with $auxdir in AC_CONFIG_FILES statements.
48147
48148 2006-01-11  Bruno Haible  <bruno@clisp.org>
48149
48150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48151         Initialize also noinst_HEADERS to empty.
48152
48153 2006-01-11  Bruno Haible  <bruno@clisp.org>
48154
48155         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48156         variables.
48157         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48158         autoreconf.
48159
48160 2006-01-11  Bruno Haible  <bruno@clisp.org>
48161
48162         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48163         overridable by the user.
48164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48165
48166 2006-01-10  Simon Josefsson  <jas@extundo.com>
48167
48168         * modules/sys_socket: New file.
48169
48170 2006-01-10  Simon Josefsson  <jas@extundo.com>
48171
48172         * m4/sys_socket_h.m4: New file.
48173
48174 2006-01-10  Simon Josefsson  <jas@extundo.com>
48175
48176         * lib/socket_.h: New file.
48177
48178 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48179
48180         * modules/readutmp (Maintainer): Add myself.
48181
48182 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48183
48184         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48185         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48186         People who are still concerned with buggy memcmp implementations
48187         can invoke gl_FUNC_MEMCMP themselves.
48188
48189 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48190
48191         * lib/regex_internal.h (BITSET_WORD_BITS):
48192         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48193         preprocessor mishandles large unsigned values as if they were signed.
48194         Problem reported by Claudio Fontana in
48195         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48196
48197 2006-01-10  Jim Meyering  <jim@meyering.net>
48198
48199         Avoid the double-free (first in fts_read, second in fts_close) that
48200         would occur when an `active' directory is made inaccessible (e.g.,
48201         via chmod a-x) during a traversal.
48202         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48203         before returning.  Reproduce this failure by
48204         mkdir -p a/b; cd a; chmod a-x . b
48205         Reported by Stavros Passas.
48206
48207         Sync from coreutils.
48208         * lib/sha1.c: Tweak grammar in a comment.
48209
48210 2006-01-10  Jim Meyering  <jim@meyering.net>
48211
48212         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48213         Patch by Joerg Sonnenberger.
48214
48215 2006-01-10  Bruno Haible  <bruno@clisp.org>
48216
48217         * modules/readutmp: Depend on module free.
48218         * modules/strtok_r: Depend on module restrict.
48219
48220 2006-01-10  Bruno Haible  <bruno@clisp.org>
48221
48222         * modules/gettext (configure.ac): Add an invocation of
48223         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48224
48225 2006-01-10  Bruno Haible  <bruno@clisp.org>
48226
48227         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48228         Reported by Werner Lemberg <wl@gnu.org>.
48229
48230 2006-01-10  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/localcharset.c: Update from GNU gettext.
48233
48234 2006-01-10  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/argp.h (__const): Remove macro. Use const instead.
48237         * lib/argp-fmtstream.h (__const): Likewise.
48238         * lib/glob_.h (__const): Remove macro.
48239         * lib/glob-libc.h: Use const instead of __const.
48240
48241 2006-01-10  Bruno Haible  <bruno@clisp.org>
48242
48243         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48244         variable.
48245         Needed to avoid an automake error regarding the 'gettext' module.
48246
48247 2006-01-09  Simon Josefsson  <jas@extundo.com>
48248
48249         * modules/inet_ntop (Depends-on): Add restrict.
48250
48251 2006-01-09  Simon Josefsson  <jas@extundo.com>
48252
48253         * modules/gc-rijndael-tests (License): Put under LGPL.
48254
48255         * modules/gc-des-tests (License): Likewise.
48256
48257         * modules/gc-arcfour-tests (License): Likewise.
48258
48259         * modules/gc-arctwo-tests (License): Likewise.
48260
48261         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48262
48263         * modules/gc-hmac-sha1-tests (Files): Likewise.
48264
48265         * modules/gc-hmac-md5-tests (License): Likewise.
48266
48267         * modules/gc-sha1-tests (License): Likewise.
48268
48269         * modules/gc-md5-tests (License): Likewise.
48270
48271         * modules/gc-md4-tests (License): Likewise.
48272
48273         * modules/gc-md2-tests (License): Likewise.
48274
48275         * modules/gc-tests (License): Likewise.
48276
48277         * modules/des-tests (License): Likewise.
48278
48279         * modules/md4-tests (License): Likewise.
48280
48281         * modules/md2-tests (License): Likewise.
48282
48283 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48284
48285         Sync from coreutils:
48286
48287         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48288         * modules/lib-ignore: New file.
48289         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48290         chdir-safer.m4, lchmod.m4.
48291         * modules/openat: Add mkdirat.c, openat-priv.h.
48292
48293 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48294
48295         Sync from coreutils.
48296         * m4/lib-ignore.m4: New file.
48297         * m4/lchmod.m4: New file.
48298
48299 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         Sync from coreutils.
48302         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48303         for write access: POSIX says that must fail.
48304         * lib/fts.c (diropen): Likewise.
48305         * lib/save-cwd.c (save_cwd): Likewise.
48306         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48307         well, for minor improvements on hosts that lack O_DIRECTORY.
48308         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48309         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48310         Fall back on chown if open failed with EACCES.
48311
48312         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48313         Report an error at compile-time if only a 1-second nominal clock
48314         resolution is found.
48315
48316         * lib/lchmod.h: New file.
48317         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48318         (make_dir_parents): Use lchown rather than chown, and
48319         lchmod rather than chmod.
48320
48321         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48322         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48323         "proc" reported by n0dalus.
48324
48325         * lib/mountlist.c: Include <limits.h>.
48326         (dev_from_mount_options)
48327         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48328         New function.  It no longer assumes "dev=" has the System V meaning
48329         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48330         (read_file_system_list)
48331         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48332         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48333         dev= in that case.
48334
48335         * lib/posixtm.h (PDS_PRE_2000): New macro.
48336         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48337         allow_century.  All usages changed.  Reject dates outside the range
48338         1969-1999 if PDS_PRE_2000 is used.
48339
48340 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48341
48342         Sync from coreutils.
48343         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48344         (Time of day items): Mention the possibility of leap seconds.
48345         Problem reported by Dr. David Alan Gilbert.
48346
48347 2006-01-09  Jim Meyering  <jim@meyering.net>
48348
48349         Sync from coreutils.
48350
48351         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48352
48353         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48354
48355         * lib/modechange.c (mode_compile): Reject an invalid mode string
48356         that starts with an octal digit.  From Andreas Gruenbacher.
48357
48358         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48359         and dup to open_safer and dup_safer, respectively.
48360         (openat_permissive): Fix typo in comment.
48361
48362         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48363         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48364         (_): Remove; no longer needed.
48365         (openat): Renamed from rpl_openat; no need for rpl_openat
48366         since openat.h renames openat for us.
48367         Replace most of the body with a call to openat_permissive,
48368         to avoid duplicate code.
48369         Port to (probably hypothetical) environments were mode_t is
48370         wider than int.
48371         (openat_permissive): Require mode arg, so that we can check
48372         types better.  Put it just after flags.  Change cwd failure
48373         indicator from pointer-to-bool to pointer-to-errno-value.
48374         All callers changed.
48375         Invoke openat_save_fail and/or openat_restore_fail if
48376         cwd_errno is null, so that openat can call us.
48377         (openat_permissive, fdopendir, fstatat, unlinkat):
48378         Simplify errno handling to avoid some duplicate code,
48379         as it's OK to set errno on success.
48380         * lib/openat.h: Revamp code so that function macros depend on
48381         __OPENAT_PREFIX only, not also on AT_FDCWD.
48382         (openat_ro): Remove.  Caller changed to use openat_permissive.
48383         (openat_permissive): Now a macro, if not a function.
48384         (openat_restore_fail, openat_save_fail): Now always functions,
48385         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48386
48387         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48388         and openat.c.
48389         * lib/mkdirat.c: Include openat-priv.h.
48390         Remove definitions of macros defined therein.
48391         * lib/openat.c: Likewise.
48392
48393         * lib/mkdirat.c (mkdirat): New file and function.
48394         * lib/openat.h (mkdirat): Declare.
48395
48396         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48397
48398         * lib/openat.h (openat_permissive): Declare.
48399         (openat_ro): Define.
48400
48401         * lib/openat.c (EXPECTED_ERRNO): New macro.
48402         (openat_permissive): New function -- used in remove.c rewrite.
48403         (all functions): Set errno just before returning, only if there
48404         was an actual failure.
48405         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48406
48407         Emulate openat-family functions using Linux's procfs, if possible.
48408         Idea and some code based on Ulrich Drepper's glibc changes.
48409
48410         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48411         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48412         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48413         before falling back on save_cwd and restore_cwd.
48414         (fdopendir, fstatat, unlinkat): Likewise.
48415
48416         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48417         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48418
48419         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48420         as second argument to va_arg.  Otherwise, some versions of gcc
48421         warn that `if this code is reached, the program will abort'.
48422
48423 2006-01-09  Jim Meyering  <jim@meyering.net>
48424
48425         Sync from coreutils.
48426         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48427         Require openat-priv.h.
48428
48429 2006-01-09  Bruno Haible  <bruno@clisp.org>
48430
48431         * modules/strnlen (Include): Use strnlen.h.
48432
48433 2006-01-09  Bruno Haible  <bruno@clisp.org>
48434
48435         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48436
48437 2006-01-09  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/sysexit_.h (EX_OK): New macro.
48440         Suggested by Martin Lambers <marlam@marlam.de>.
48441
48442 2006-01-09  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48445         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48446
48447 2006-01-09  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48450         numbers.
48451
48452 2006-01-09  Bruno Haible  <bruno@clisp.org>
48453
48454         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48455         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48456         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48457         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48458
48459 2006-01-09  Bruno Haible  <bruno@clisp.org>
48460
48461         * build-aux/javacomp.sh.in: New file, moved from lib/.
48462         * modules/javacomp-script (Files): Update.
48463         (configure.ac): Add AC_CONFIG_FILES invocation.
48464         (EXTRA_DIST): Remove variable.
48465
48466         * build-aux/javaexec.sh.in: New file, moved from lib/.
48467         * modules/javaexec (Files): Update.
48468         (configure.ac): Add AC_CONFIG_FILES invocation.
48469         (EXTRA_DIST): Remove javaexec.sh.in.
48470
48471         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48472         * modules/csharpcomp-script (Files): Update.
48473         (configure.ac): Add AC_CONFIG_FILES invocation.
48474         (EXTRA_DIST): Remove variable.
48475
48476         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48477         * modules/csharpexec (Files): Update.
48478         (configure.ac): Add AC_CONFIG_FILES invocation.
48479         (EXTRA_DIST): Remove csharpexec.sh.in.
48480
48481 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48482
48483         Sync from coreutils.
48484
48485         Add POSIX ACL support
48486         * lib/acl.h (copy_acl, set_acl): Add declarations.
48487         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48488         systems other than Linux.
48489         (chmod_or_fchmod): New function: use fchmod when possible,
48490         and chmod otherwise.
48491         (file_has_acl): Add a POSIX ACL implementation, with a
48492         Linux-specific subcase.
48493         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48494         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48495         acls are unsupported.
48496         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48497         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48498         are unsupported.
48499
48500 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48501
48502         Sync from coreutils.
48503         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48504
48505 2006-01-07  Bruno Haible  <bruno@clisp.org>
48506
48507         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48508         gl_EARLY.
48509
48510 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48511
48512         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48513         Problem reported for Mingw by Mark Junker.
48514
48515 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48516
48517         * README: Gnulib normally doesn't generate a tarball.
48518
48519 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48520
48521         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48522         long int, not int, for nanosecond counts, so that people who are
48523         used to POSIX struct timespec won't be surprised.  Reported by Jim
48524         Meyering.
48525
48526 2005-12-28  Bruno Haible  <bruno@clisp.org>
48527
48528         * build-aux/config.rpath: Update from GNU gettext.
48529
48530 2005-12-16  Jim Meyering  <jim@meyering.net>
48531
48532         * modules/fprintftime: New module.
48533         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48534
48535 2005-12-16  Jim Meyering  <jim@meyering.net>
48536
48537         * m4/fprintftime.m4: New file.
48538
48539 2005-12-16  Jim Meyering  <jim@meyering.net>
48540
48541         * lib/fprintftime.c, lib/fprintftime.h: New files.
48542
48543 2005-12-15  Simon Josefsson  <jas@extundo.com>
48544
48545         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48546         new m4/socklen.m4.
48547
48548 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48549
48550         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48551         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48552
48553 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48554
48555         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48556         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48557         struct uparams is valid. Fall back to the default values if it is
48558         not.
48559
48560 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48561
48562         * modules/argp (Files): Add argp-pin.c
48563         (Depends-on): dirname
48564         (lib_SOURCES): Add argp-pin.c
48565
48566 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48567
48568         * m4/argp.m4:  Check if program_invocation_name and
48569         program_invocation_short_name are declared and define appropriate
48570         macros if they are not.
48571
48572 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48573
48574         * lib/argp-help.c (__argp_base_name): New function
48575         (__argp_short_program_name): Rewrite using __argp_base_name
48576         * lib/argp-namefrob.h: Define program_invocation_name and
48577         program_invocation_short_name if requested
48578         (__argp_base_name): Add prototype
48579         * lib/argp-parse.c (argp_def): Use gettext wrappers
48580         (argp_default_parser): Use __argp_base_name
48581         * lib/argp-pin.c: New file. Defines program_invocation_name and
48582         program_invocation_short_name on systems that lack them.
48583
48584 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48585
48586         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48587         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48588         porting problem reported by Georg Schwarz in
48589         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48590
48591 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48592
48593         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48594         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48595         porting problem reported by Georg Schwarz in
48596         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48597
48598 2005-12-05  Bruno Haible  <bruno@clisp.org>
48599
48600         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48601         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48602         Reported by Mark Junker <mjscod@gmx.de>.
48603
48604 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48605
48606         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48607         Use implementation from Albert Chin, with some
48608         comments/corrections by Stepan Kasal and myself.
48609
48610 2005-12-02  Bruno Haible  <bruno@clisp.org>
48611
48612         * gnulib-tool (func_import): Accept GPLed build tool modules when
48613         --lgpl is given.
48614         * modules/csharpcomp-script: New file.
48615         * modules/csharpcomp: Depend on it.
48616         * modules/javacomp-script: New file.
48617         * modules/javacomp: Depend on it.
48618         Suggested by Simon Josefsson.
48619
48620 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48623         statement, to work around an HP-UX 10.20 compiler bug reported by
48624         Peter O'Gorman.
48625
48626 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48627
48628         * modules/savedir (Depends-on): Add openat.
48629
48630 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48631
48632         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48633         (uintmax_t) [defined uintmax_t]: Do not declare.
48634         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48635         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48636         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48637         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48638         sake of portability to weird hosts that C allows (though we don't
48639         know of any practical examples).
48640
48641         * lib/savedir.h (fdsavedir): New decl.
48642         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48643         contains most of the former guts of savedir.
48644         (savedir): Use savedirstream.
48645         Include "openat.h".
48646
48647 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48648
48649         * modules/obstack (Files): Add m4/ulonglong.m4.
48650         Problem reported by Davide Angelocola.
48651
48652 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48655         coreutils no longer futzes with rounding modes.
48656
48657 2005-11-14  Jim Meyering  <jim@meyering.net>
48658
48659         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48660         replacement of mkstemp.
48661
48662 2005-11-10  Simon Josefsson  <jas@extundo.com>
48663
48664         * lib/readline.c: Remove EOL.
48665
48666 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48667
48668         * modules/gethrxtime (Depends-on): Add gettime.
48669
48670 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48671
48672         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48673         or gettimeofday; no longer needed.
48674
48675 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48676
48677         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48678         time business.
48679         (gethrxtime) [! (HAVE_NANOUPTIME
48680         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48681         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48682         our own approximation.
48683
48684 2005-11-08  Eric Blake  <ebb9@byu.net>
48685
48686         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48687
48688 2005-11-08  Eric Blake  <ebb9@byu.net>
48689
48690         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48691
48692 2005-11-04  Bruno Haible  <bruno@clisp.org>
48693
48694         * gnulib-tool: Implement --update mode.
48695
48696 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48697
48698         Fix porting problem reported by Theodoros V. Kalamatianos.
48699         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48700         Don't assume that futimes failing means we must fail.
48701
48702 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48703
48704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48705         variables to suggest the intended function of the PATH_MAX check.
48706
48707 2005-10-30  Kean Johnston  <jkj@sco.com>
48708
48709         Trivial changes to support SCO systems.
48710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48711         as PATH_MAX.
48712         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48713         where __ptr is null when no I/O is pending.
48714
48715 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48716
48717         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48718         leave errno alone.  Problem reported by Dmitry V. Levin.
48719
48720 2005-10-28  Simon Josefsson  <jas@extundo.com>
48721
48722         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48723         Test more.
48724
48725         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48726
48727         * modules/md2, modules/md2-tests: New files.
48728
48729 2005-10-28  Simon Josefsson  <jas@extundo.com>
48730
48731         * m4/inet_ntop.m4: More tests.
48732
48733         * m4/gc-md2.m4, md2.m4: New file.
48734
48735 2005-10-28  Simon Josefsson  <jas@extundo.com>
48736
48737         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48738         "restrict" keywords, as per POSIX.  Protect the function
48739         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48740         Don't use K&R prototypes.  Check the sprintf return values.
48741         Re-define EAFNOSUPPORT if not present.  Indent.
48742
48743         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48744         suggested by Bruno Haible <bruno@clisp.org>.
48745
48746         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48747
48748         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48749
48750         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48751         libgcrypt).
48752
48753         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48754
48755         * lib/md2.h, lib/md2.c: New files.
48756
48757 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48758
48759         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48760         errno alone.  Problem reported by Frederic Jolliton.
48761
48762 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         * modules/verify (License): Change from GPL to LGPL.  This is a
48765         tiny module and there are apparently near-equivalents that are
48766         under the BSD license.
48767
48768 2005-10-24  Simon Josefsson  <jas@extundo.com>
48769
48770         * modules/sha1: Relicense to LGPL.
48771
48772 2005-10-24  Simon Josefsson  <jas@extundo.com>
48773
48774         * lib/md4.h: Shrink buffer size, now that we changed the type.
48775
48776 2005-10-23  Simon Josefsson  <jas@extundo.com>
48777
48778         * gnulib-tool (func_import): Fix --tests-base.
48779
48780 2005-10-22  Simon Josefsson  <jas@extundo.com>
48781
48782         * modules/arcfour (Depends-on): Need stdint.
48783
48784 2005-10-22  Simon Josefsson  <jas@extundo.com>
48785
48786         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48787         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48788
48789 2005-10-22  Simon Josefsson  <jas@extundo.com>
48790
48791         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48792         suggested by Bruno Haible <bruno@clisp.org>.
48793
48794 2005-10-22  Simon Josefsson  <jas@extundo.com>
48795
48796         * lib/crc.h: Include stddef.h, for size_t.
48797
48798 2005-10-22  Simon Josefsson  <jas@extundo.com>
48799
48800         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48801         arcfour_context struct (simplify test vector testing in GNU
48802         Shishi).
48803
48804 2005-10-21  Simon Josefsson  <jas@extundo.com>
48805
48806         * modules/des, modules/des-tests: New files.
48807
48808         * modules/gc-des, modules/gc-des-tests: New files.
48809
48810         * tests/test-des.c, tests/test-gc-des.c: New file.
48811
48812 2005-10-21  Simon Josefsson  <jas@extundo.com>
48813
48814         * modules/arctwo, modules/arctwo-tests: New files.
48815
48816         * tests/test-arctwo.c: New file.
48817
48818         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48819
48820         * tests/test-gc-arctwo.c: New file.
48821
48822 2005-10-21  Simon Josefsson  <jas@extundo.com>
48823
48824         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48825         Bruno Haible <bruno@clisp.org>.
48826
48827         * m4/gc-des.m4: New file.
48828
48829 2005-10-21  Simon Josefsson  <jas@extundo.com>
48830
48831         * m4/arctwo.m4: New file.
48832
48833         * m4/gc-arctwo.m4: New file.
48834
48835 2005-10-21  Simon Josefsson  <jas@extundo.com>
48836
48837         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48838         block.
48839
48840 2005-10-21  Simon Josefsson  <jas@extundo.com>
48841
48842         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48843         <bruno@clisp.org>.
48844
48845         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48846
48847         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48848         Bruno Haible <bruno@clisp.org>.
48849
48850         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48851         <bruno@clisp.org>.
48852
48853 2005-10-21  Simon Josefsson  <jas@extundo.com>
48854
48855         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48856
48857 2005-10-21  Simon Josefsson  <jas@extundo.com>
48858
48859         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48860
48861 2005-10-21  Simon Josefsson  <jas@extundo.com>
48862
48863         * lib/des.h, lib/des.c: New files.
48864
48865         * lib/gc-gnulib.c: Support DES.c
48866
48867 2005-10-21  Simon Josefsson  <jas@extundo.com>
48868
48869         * lib/arctwo.h, lib/arctwo.c: New files.
48870
48871         * lib/gc-gnulib.c: Support ARCTWO.
48872
48873 2005-10-21  Simon Josefsson  <jas@extundo.com>
48874
48875         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48876         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48877
48878 2005-10-21  Simon Josefsson  <jas@extundo.com>
48879
48880         * gnulib-tool (func_import, func_create_testdir): Define automake
48881         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48882         Makefile.am snippet),
48883         suggested by Bruno Haible <bruno@clisp.org>.
48884
48885         * modules/gc (Makefile.am): Use it.
48886
48887 2005-10-21  Bruno Haible  <bruno@clisp.org>
48888
48889         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48890         patch.
48891
48892 2005-10-19  Simon Josefsson  <jas@extundo.com>
48893
48894         * tests/test-gc-rijndael.c: New file.
48895
48896         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48897
48898 2005-10-19  Simon Josefsson  <jas@extundo.com>
48899
48900         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48901         interface too.
48902
48903 2005-10-19  Simon Josefsson  <jas@extundo.com>
48904
48905         * tests/test-gc-arcfour.c: New file.
48906
48907         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48908
48909 2005-10-19  Simon Josefsson  <jas@extundo.com>
48910
48911         * modules/gc-md4, modules/gc-md4-tests: New file.
48912
48913         * tests/test-gc-md4.c: New file.
48914
48915 2005-10-19  Simon Josefsson  <jas@extundo.com>
48916
48917         * m4/gc-md4.m4: New file.
48918
48919 2005-10-19  Simon Josefsson  <jas@extundo.com>
48920
48921         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48922         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48923         <kasal@ucw.cz>.
48924
48925 2005-10-19  Simon Josefsson  <jas@extundo.com>
48926
48927         * m4/gc-arcfour.m4: New file.
48928
48929         * m4/gc-rijndael.m4: New file.
48930
48931 2005-10-19  Simon Josefsson  <jas@extundo.com>
48932
48933         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48934
48935 2005-10-19  Simon Josefsson  <jas@extundo.com>
48936
48937         * lib/gc-gnulib.c: Support ARCFOUR.
48938
48939 2005-10-19  Simon Josefsson  <jas@extundo.com>
48940
48941         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48942         support.
48943
48944         * lib/gc.h: Add ECB enum type.
48945
48946         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48947
48948 2005-10-18  Simon Josefsson  <jas@extundo.com>
48949
48950         * tests/test-md5.c: New file.
48951
48952         * modules/md5-tests: New file.
48953
48954 2005-10-18  Simon Josefsson  <jas@extundo.com>
48955
48956         * tests/test-md4.c: New file.
48957
48958         * modules/md4, modules/md4-tests: New files.
48959
48960 2005-10-18  Simon Josefsson  <jas@extundo.com>
48961
48962         * m4/md4.m4: New file.
48963
48964 2005-10-18  Simon Josefsson  <jas@extundo.com>
48965
48966         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48967
48968 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48969
48970         * gnulib-tool (func_create_testdir): Omit the second check whether
48971         BUILT_SOURCES in nonempty.
48972
48973 2005-10-17  Simon Josefsson  <jas@extundo.com>
48974
48975         * tests/test-rijndael.c: New file.
48976
48977 2005-10-17  Simon Josefsson  <jas@extundo.com>
48978
48979         * modules/sha1: Depend on stdint instead of md5.
48980
48981         * modules/md5: Depend on stdint, remove uint32_t.
48982
48983 2005-10-17  Simon Josefsson  <jas@extundo.com>
48984
48985         * modules/gc-sha1-tests: New file.
48986
48987         * tests/test-gc-sha1.c: New file.
48988
48989 2005-10-17  Simon Josefsson  <jas@extundo.com>
48990
48991         * m4/md5.m4: Remove call to uint32_t.m4.
48992
48993 2005-10-17  Simon Josefsson  <jas@extundo.com>
48994
48995         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48996
48997         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48998         md5.h.
48999
49000         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49001
49002         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49003
49004 2005-10-17  Simon Josefsson  <jas@extundo.com>
49005
49006         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49007
49008 2005-10-17  Simon Josefsson  <jas@extundo.com>
49009
49010         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49011
49012 2005-10-17  Simon Josefsson  <jas@extundo.com>
49013
49014         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49015
49016         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49017
49018 2005-10-17  Bruno Haible  <bruno@clisp.org>
49019
49020         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49021         that it can also be used in a test.
49022
49023 2005-10-16  Bruno Haible  <bruno@clisp.org>
49024
49025         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49026         TESTS_ENVIRONMENT, so that individual tests can augment it.
49027
49028         * gnulib-tool (func_create_testdir): Use an intermediate target for
49029         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49030         macros, like $(ALLOCA_H), which cannot be passed through the command
49031         line.
49032
49033 2005-10-15  Simon Josefsson  <jas@extundo.com>
49034
49035         * modules/rijndael-tests: New file.
49036
49037         * modules/rijndael: New file.
49038
49039 2005-10-15  Simon Josefsson  <jas@extundo.com>
49040
49041         * m4/rijndael.m4: New file.
49042
49043 2005-10-15  Simon Josefsson  <jas@extundo.com>
49044
49045         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49046
49047         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49048
49049 2005-10-14  Simon Josefsson  <jas@extundo.com>
49050
49051         * tests/test-arcfour.c: New file.
49052
49053         * modules/arcfour, modules/arcfour-tests: New files.
49054
49055 2005-10-14  Simon Josefsson  <jas@extundo.com>
49056
49057         * m4/arcfour.m4: New file.
49058
49059 2005-10-14  Simon Josefsson  <jas@extundo.com>
49060
49061         * lib/arcfour.h, lib/arcfour.c: New files.
49062
49063 2005-10-14  Roland McGrath  <roland@redhat.com>
49064
49065         Import from libc.  [BZ #1331]
49066         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49067         macro argument.
49068         Reported by Matej Vela <vela@debian.org>.
49069
49070 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49071
49072         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49073         include <wchar.h>; no longer needed.
49074
49075 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49078
49079 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49080         and  Ulrich Drepper  <drepper@redhat.com>
49081
49082         Import from libc.
49083         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49084         instead of inline stream orientation test and two separate
49085         function calls.  Pay no attention to USE_IN_LIBIO.
49086
49087 2005-10-13  Simon Josefsson  <jas@extundo.com>
49088
49089         * modules/gc-hmac-md5-tests: New file.
49090
49091         * tests/test-gc-hmac-sha1.c: New file.
49092
49093         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49094
49095         * modules/gc-hmac-md5-tests: New file.
49096
49097         * tests/test-gc-md5.c: New file.
49098
49099         * modules/gc-md5-tests: New file.
49100
49101 2005-10-13  Simon Josefsson  <jas@extundo.com>
49102
49103         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49104         Move memory allocation outside of loop.
49105
49106 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49107
49108         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49109         intermediate directory is in a read-only file system.  Problem
49110         reported by Eric Blake.
49111
49112 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49113
49114         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49115
49116 2005-10-12  Simon Josefsson  <jas@extundo.com>
49117
49118         * tests/test-hmac-sha1.c: New file.
49119
49120         * modules/hmac-sha1-tests: New file.
49121
49122         * modules/hmac-sha1: New file.
49123
49124 2005-10-12  Simon Josefsson  <jas@extundo.com>
49125
49126         * modules/gc-sha1: New file.
49127
49128 2005-10-12  Simon Josefsson  <jas@extundo.com>
49129
49130         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49131
49132         * tests/test-gc-pbkdf2-sha1.c: New file.
49133
49134 2005-10-12  Simon Josefsson  <jas@extundo.com>
49135
49136         * modules/gc-md5, modules/gc-hmac-md5: New files.
49137
49138         * modules/gc (Files): Remove md5, memxor and hmac files.
49139
49140 2005-10-12  Simon Josefsson  <jas@extundo.com>
49141
49142         * m4/gc-pbkdf2-sha1.m4: New file.
49143
49144         * m4/gc-hmac-sha1.m4: New file.
49145
49146         * m4/gc-sha1: New file.
49147
49148         * m4/hmac-sha1.m4: New file.
49149
49150 2005-10-12  Simon Josefsson  <jas@extundo.com>
49151
49152         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49153
49154         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49155
49156 2005-10-12  Simon Josefsson  <jas@extundo.com>
49157
49158         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49159         suggested by Bruno Haible <bruno@clisp.org>.
49160
49161 2005-10-12  Simon Josefsson  <jas@extundo.com>
49162
49163         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49164
49165 2005-10-12  Simon Josefsson  <jas@extundo.com>
49166
49167         * lib/gc-pbkdf2-sha1.c: New file.
49168
49169         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49170
49171 2005-10-12  Simon Josefsson  <jas@extundo.com>
49172
49173         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49174
49175         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49176
49177 2005-10-12  Simon Josefsson  <jas@extundo.com>
49178
49179         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49180         GC_USE_HMAC_MD5, respectively.
49181
49182         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49183         (gc_md5): Fix typo.
49184
49185         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49186
49187         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49188
49189         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49190
49191 2005-10-12  Bruno Haible  <bruno@clisp.org>
49192
49193         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49194         Reported by Stepan Kasal <kasal@ucw.cz>.
49195
49196 2005-10-11  Simon Josefsson  <jas@extundo.com>
49197
49198         * tests/test-crc.c: New file.
49199
49200         * modules/crc, modules/crc-tests: New files.
49201
49202 2005-10-11  Simon Josefsson  <jas@extundo.com>
49203
49204         * m4/crc.m4: New file.
49205
49206 2005-10-11  Simon Josefsson  <jas@extundo.com>
49207
49208         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49209
49210         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49211
49212         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49213
49214 2005-10-11  Simon Josefsson  <jas@extundo.com>
49215
49216         * lib/crc.h, lib/crc.c: New files.
49217
49218         * lib/gc.h (gc_hash_buffer): Add doc.
49219
49220 2005-10-11  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/c-strcasestr: New file.
49223         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49224
49225 2005-10-11  Bruno Haible  <bruno@clisp.org>
49226
49227         * modules/c-strcase: New file.
49228         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49229
49230 2005-10-11  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/strcasecmp.c: Include limits.h.
49233         (strcasecmp): Avoid integer overflow on exotic platforms.
49234         * lib/strncasecmp.c: Include limits.h.
49235         (strncasecmp): Avoid integer overflow on exotic platforms.
49236         Reported by Paul Eggert.
49237
49238 2005-10-11  Bruno Haible  <bruno@clisp.org>
49239
49240         * lib/c-strcasestr.h: New file, from GNU gettext.
49241         * lib/c-strcasestr.c: New file, from GNU gettext.
49242
49243 2005-10-11  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/c-strcase.h: New file, from GNU gettext.
49246         * lib/c-strcasecmp.c: New file, from GNU gettext.
49247         * lib/c-strncasecmp.c: New file, from GNU gettext.
49248
49249 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49250
49251         * modules/mempcpy (License): GPL -> LGPL.
49252         * modules/strchrnul (License): Likewise.
49253         * modules/sysexits (License): Likewise.
49254
49255 2005-10-08  Simon Josefsson  <jas@extundo.com>
49256
49257         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49258
49259 2005-10-07  Simon Josefsson  <jas@extundo.com>
49260
49261         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49262
49263 2005-10-06  Simon Josefsson  <jas@extundo.com>
49264
49265         * tests/test-hmac-md5.c: New file.
49266
49267         * modules/hmac-md5-tests: New file.
49268
49269         * modules/hmac-md5: New file.
49270
49271 2005-10-06  Simon Josefsson  <jas@extundo.com>
49272
49273         * m4/hmac-md5.m4: New file.
49274
49275         * m4/memxor.m4: Require gl_C_RESTRICT.
49276
49277 2005-10-06  Simon Josefsson  <jas@extundo.com>
49278
49279         * lib/memxor.c (memxor): Avoid casts and warnings.
49280
49281 2005-10-06  Simon Josefsson  <jas@extundo.com>
49282
49283         * lib/hmac-md5.c: New file.
49284
49285         * lib/hmac.h: New file.
49286
49287 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49288
49289         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49290         promotes to int, not unsigned int, to catch the AIX 5.3
49291         compiler bug.
49292
49293 2005-10-05  Simon Josefsson  <jas@extundo.com>
49294
49295         * modules/memxor: New file.
49296
49297         * modules/iconv (Files): Move config.rpath to havelib, it is used
49298         there.
49299
49300         * modules/havelib (Files): Add config.rpath.
49301
49302 2005-10-05  Simon Josefsson  <jas@extundo.com>
49303
49304         * m4/memxor.m4: New file.
49305
49306 2005-10-05  Simon Josefsson  <jas@extundo.com>
49307
49308         * lib/memxor.c (memxor): Fix compiler error.
49309
49310         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49311         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49312
49313         * lib/memxor.h, lib/memxor.c: New files.
49314
49315         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49316         we assume all systems have it, suggested by Jim Meyering
49317         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49318         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49319         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49320         same reasons.
49321
49322 2005-10-05  Simon Josefsson  <jas@extundo.com>
49323
49324         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49325
49326 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49329         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49330         needed, since the source code now assumes these .h files.
49331
49332 2005-10-05  Derek Price  <derek@ximbiot.com>
49333
49334         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49335
49336 2005-10-05  Bruno Haible  <bruno@clisp.org>
49337
49338         * modules/stdint (License): Change to LGPL.
49339
49340 2005-10-04  Simon Josefsson  <jas@extundo.com>
49341
49342         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49343         D. Baushke" <mdb@gnu.org>.
49344
49345 2005-10-04  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/verify.h (verify_true): Provide alternative definition for C++.
49348
49349 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49350
49351         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49352         (SSIZE_MAX): New macro, if not already defined.
49353         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49354         than 2 GiB.
49355
49356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49357
49358         Sync from coreutils.
49359         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49360         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49361         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49362         ULLONG_MAX doesn't work with 2.7.2.1.
49363
49364 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49365
49366         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49367         From Ben Pfaff.
49368
49369         * modules/exclude (Depends-on): Depend on verify.
49370         * modules/strtoimax (Depends-on): Likewise.
49371         * modules/utimecmp (Depends-on): Likewise.
49372
49373 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49374
49375         * lib/exclude.c: Include verify.h.
49376         (verify): Remove.  All callers changed to use verify.h's version.
49377         * lib/strtoimax.c: Likewise.
49378         * lib/utimecmp.c: Likewis.e
49379
49380         Sync from coreutils.
49381         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49382         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49383         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49384         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49385         bother returning ENOSYS if settimeofday or stime fails; just let
49386         them return whatever errno they want to return.
49387         * lib/utimens.c: Include unistd.h, for dup2.
49388         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49389         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49390
49391 2005-10-02  Jim Meyering  <jim@meyering.net>
49392
49393         Sync from coreutils.
49394         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49395         from glibc-2.2.5 that fails for read-only files.
49396
49397 2005-10-02  Jim Meyering  <jim@meyering.net>
49398
49399         Sync from coreutils.
49400         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49401         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49402         `#if HAVE_CONFIG_H'.
49403         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49404         Remove AT_FDCWD test.
49405         Do not consume the fd unless successful.
49406         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49407         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49408         block, so that we don't even try to compile it if settimeofday is
49409         available.  This works around a compilation failure on OSF1 V5.1,
49410         due to stime requiring a `long int*' while tv_sec is `int'.
49411
49412 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49413
49414         Sync from coreutils.
49415         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49416         against `yes', rather than just testing for nonempty.
49417
49418 2005-10-01  Simon Josefsson  <jas@extundo.com>
49419
49420         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49421         and Darwin.
49422
49423         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49424         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49425         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49426         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49427         Check if struct addrinfo is declared.
49428
49429 2005-10-01  Simon Josefsson  <jas@extundo.com>
49430
49431         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49432         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49433         AI_* and EAI_* definitions.  Protect function declarations.
49434
49435 2005-10-01  Jim Meyering  <jim@meyering.net>
49436
49437         Sync from coreutils.
49438
49439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49440         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49441         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49442         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49443         in the inet and nsl libraries.  Required on Solaris 5.7.
49444
49445 2005-10-01  Jim Meyering  <jim@meyering.net>
49446
49447         Sync from coreutils.
49448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49449         in the inet and nsl libraries.  Required on Solaris 5.7.
49450
49451 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49452
49453         * lib/getdelim.c (getdelim): Remove unused variables.
49454
49455 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49456
49457         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49458         so that the code works even with ancient cpp.  Portability problem
49459         with GCC 2.7.2.1 reported by Thomas M.Ott.
49460
49461 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49462
49463         * modules/regex (Depends-on): Add strcase.
49464
49465         * modules/gethostname (Licence): Change from GPL to LGPL, since
49466         gethostname.c is a trivial implementation of a standard library
49467         function.
49468         * modules/poll (License): Change from GPL to LGPL, since it's
49469         derived from LGPL code.
49470
49471 2005-09-27  Jim Meyering  <jim@meyering.net>
49472
49473         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49474         HAVE_CONFIG_H.
49475
49476         * lib/intprops.h (signed_type_or_expr__): Define.
49477         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49478         for unsigned types.
49479
49480 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * lib/verify.h (verify_expr): Remove, replacing with:
49483         (verify_true): New macro that returns true instead of void.
49484         (verify_type__): Remove.
49485         (verify): Use verify_true rather than verify_type__.
49486
49487 2005-09-26  Bruno Haible  <bruno@clisp.org>
49488
49489         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49490         is necessary.
49491         (lib_SOURCES): Remove mbchar.c.
49492         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49493         (Files): Add m4/mbrtowc.m4.
49494         * modules/mbiter: Likewise.
49495         * modules/mbuiter: Likewise.
49496
49497 2005-09-26  Bruno Haible  <bruno@clisp.org>
49498
49499         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49500         compile mbchar.c if they are not both present.
49501         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49502         * m4/mbiter.m4 (gl_MBITER): Likewise.
49503         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49504         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49505         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49506
49507 2005-09-25  Jim Meyering  <jim@meyering.net>
49508
49509         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49510         also uses socklen_t.
49511
49512 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49513
49514         * lib/utimens.c (ENOSYS): Define if not already defined.
49515         (futimens): Support having a null PATH if the file descriptor
49516         is nonnegative.
49517
49518         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49519         Remove.
49520         (__attribute): Define to empty unless GCC 3.1 or later.
49521         This works around a core dump on OpenBSD 3.4, which has GCC
49522         2.95.3, which dumps core when given __attribute__(()).  It also
49523         simplifies other tests, since we really don't want to bother with
49524         worrying about which ancient version of GCC supported what.
49525         Original problem reported by Yoann Vandoorselaere, with part of
49526         the fix suggested by Derek Price.
49527
49528 2005-09-24  Jim Meyering  <jim@meyering.net>
49529
49530         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49531         so we can once again use a positive bitfield width of 1 -- now we
49532         don't have to explain why we were using a bitfield width of 2.
49533
49534 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49535
49536         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49537         and similarly for the other external symbols.  Problem reported
49538         by James Gallager.
49539
49540         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49541         bug reported by Jim Meyering.
49542
49543         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49544         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49545         not needed, since socklen is a prerequisite module.
49546
49547 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49548
49549         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49550         Problem reported by Eric Blake.
49551         (getaddrinfo): Initialize se so that it's not garbage.
49552         Redo internal storage allocation so that it doesn't make unportable
49553         assumptions about alignment.
49554         Fix a memory leak.
49555
49556         * lib/utimens.c (futimens): Use futimesat if available.
49557         Prefer it to futimes since it doesn't have the futimes bug.
49558
49559         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49560         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49561         Instead, declare a function that returns a pointer to an array,
49562         and use verify_type__ to declare the size of the array.
49563         Problem and germ of a solution reported by Bruno Haible.
49564         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49565         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49566
49567 2005-09-23  Jim Meyering  <jim@meyering.net>
49568
49569         Sync from coreutils.
49570         Correct build failure (socklen_t not defined) on at least
49571         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49573
49574 2005-09-23  Jim Meyering  <jim@meyering.net>
49575
49576         * modules/getaddrinfo (Depends-on): Add socklen.
49577
49578 2005-09-23  Bruno Haible  <bruno@clisp.org>
49579
49580         * tests/test-verify.c: New file.
49581
49582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         Sync from coreutils.
49585
49586         * modules/argmatch (Depends-on): Add verify.
49587         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49588         unistd-safer.
49589         * modules/save-cwd (Depends-on): Likewise.
49590
49591         * modules/openat (Files): Add lib/openat-die.c.
49592         (Depends-on): Remove error, exitfail.
49593         Add dirname.
49594
49595         * modules/verify: New file.
49596         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49597         with "verify" module.
49598
49599 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         Sync from coreutils.
49602
49603         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49604         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49605         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49606         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49607         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49608         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49609         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49610         Don't bother checking for string.h, stdlib.h, unistd.h.
49611         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49612         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49613         module's job.
49614         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49615         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49616
49617         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49618         (gl_GETDATE): Use it.
49619
49620         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49621
49622 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49623
49624         Sync from coreutils.
49625
49626         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49627         stat-time.h.
49628         * lib/argmatch.h: Include verify.h
49629         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49630         (ARGMATCH_ASSERT): Remove; unused.
49631         * lib/canonicalize.c: Assume STDC_HEADERS.
49632         * lib/exclude.c: Include "strcase.h".
49633         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49634         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49635         and stdio-safer.h.
49636         (getusershell): Call fopen, not fopen_safer.
49637         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49638         Do not include unistd-safer.h.
49639         (save_cwd): Don't call fd_safer; no longer needed
49640         now that we include fcntl--.h.
49641
49642         * lib/getdate.y (relative_time): New type.
49643         (RELATIVE_TIME_0): New constant.
49644         (parser_control): Use relative_time instead of doing it ourselves.
49645         (%union): Add new relative_time rel member.
49646         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49647         Now typeless.
49648         (relunit, relunit_snumber): Now of type rel.
49649         (zone, rel, relunit, get_date): Adjust to above changes.
49650
49651         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49652         Do not include unistd-safer.h.
49653         (getloadavg): Don't call fd_safer; no longer needed
49654         now that we include fcntl--.h.
49655
49656         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49657         (make_dir_parents): Treat ENOSYS like EEXIST.
49658
49659         Improve quality of diagnostics on restore_cwd failure.
49660         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49661         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49662         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49663         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49664         each time through the loop.  Do not diagnose restore_cwd failure;
49665         that is the caller's job (and perhaps the caller does not care).
49666
49667         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49668         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49669         If the file already exists but is not a directory, don't bother
49670         to try to make its parents.
49671         Close potential file descriptor leak if we can't chdir("/") (!).
49672         Don't always return true if chdir($PWD) fails; return true only
49673         if the requested action was done successfully (except for the
49674         chdir($PWD)).
49675         Don't log final directory unless we actually made it.
49676         Refactor to avoid duplicate code to fix up permissions.
49677         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49678
49679         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49680         to make it a bit faster and (I hope) clearer.
49681         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49682         Fix bug in formats like %2N.
49683
49684         * lib/verify.h: New file.
49685
49686 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49687
49688         Sync from coreutils.
49689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49690
49691 2005-09-22  Jim Meyering  <jim@meyering.net>
49692
49693         Sync from coreutils.
49694
49695         * m4/lstat.m4 (gl_FUNC_LSTAT):
49696         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49697         Remove obsolete comment.
49698         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49699         * m4/xstrtod.m4: Likewise.
49700
49701         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49702
49703 2005-09-22  Jim Meyering  <jim@meyering.net>
49704
49705         Sync from coreutils.
49706
49707         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49708
49709         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49710         the .tm_year member, since otherwise gcc-4.0 would now warn about
49711         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49712
49713         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49714         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49715
49716         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49717         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49718         when run in a time zone for which daylight savings time is in effect
49719         for the starting date.
49720
49721         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49722         stop us from restricting permissions of just-created absolute-named
49723         directories.
49724         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49725         to restore initial working directory.
49726         * lib/mkdir-p.c (make_dir_parents): New parameter:
49727         different_working_dir, to tell caller if/when we change the working
49728         directory and are unable to return to the initial one.
49729         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49730         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49731         `return false'.  This fixes a bug introduced on 2004-07-30.
49732
49733         * lib/openat.c (fdopendir): Be sure to close the supplied
49734         file descriptor before returning.  This makes our replacement
49735         implementation a little closer to Solaris's, where fdopendir
49736         ties the file descriptor to the returned DIR* pointer.
49737         * lib/openat.c (unlinkat): New function.
49738         * lib/openat.h (unlinkat): Add prototype.
49739         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49740         (openat_restore_fail): Rename from openat_restore_die.
49741         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49742
49743         Provide an alternative to exiting immediately upon save_cwd or
49744         restore_cwd failure.  Now, an application can arrange e.g.,
49745         to perform a longjump in that case.
49746         * lib/openat.c: Include dirname.h.
49747         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49748         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49749         and openat_restore_die rather than calling error directly.
49750         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49751
49752         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49753         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49754         define.
49755
49756         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49757         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49758                             int utc, int nanoseconds);
49759         Background:
49760         date should not have to allocate a megabyte of virtual memory to
49761         handle a format argument like +%1048575T.  When implemented with
49762         strftime, it must allocate such a buffer, use strftime to fill it
49763         in, print it, then free it.
49764         With fprintftime, it simply prints everything and exits.
49765         With no need for memory allocation, that's one fewer way to fail.
49766         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49767         optional field width, not before, so we accept %9:z, not %:9z.
49768         (my_strftime): Be sure to use L_('x') for literals.
49769
49770         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49771         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49772         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49773         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49774         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49775         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49776         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49777         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49778         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49779         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49780         * lib/xgethostname.c, lib/xreadlink.c:
49781         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49782
49783         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49784         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49785         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49786         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49787         and don't include <sys/file.h>).
49788
49789 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49790
49791         Sync from coreutils.
49792
49793         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49794         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49795         [!LDAV_DONE]: Avoid unused variable warning.
49796
49797 2005-09-21  Bruno Haible  <bruno@clisp.org>
49798
49799         * lib/unicodeio.h (unicode_to_mb): New declaration.
49800
49801 2005-09-20  Derek Price  <derek@ximbiot.com>
49802
49803         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49804         getaddrinfo.h.
49805
49806 2005-09-20  Bruno Haible  <bruno@clisp.org>
49807
49808         * gnulib-tool: Remove trailing slashes from the values specified for
49809         --source-base, --m4-base, --tests-base, --aux-dir.
49810         Suggested by Simon Josefsson <jas@extundo.com>.
49811
49812 2005-09-20  Bruno Haible  <bruno@clisp.org>
49813
49814         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49815         func_modules_to_filelist, func_import, func_create_testdir): Make all
49816         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49817         change when gnulib-tool is invoked in a different locale.
49818
49819 2005-09-19  Simon Josefsson  <jas@extundo.com>
49820
49821         * m4/socklen.m4: Fix typo.
49822
49823 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49824
49825         Use a consistent style for including <config.h>.
49826         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49827         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49828         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49829         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49830         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49831         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49832         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49833         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49834         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49835         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49836         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49837         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49838         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49839         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49840         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49841         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49842         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49843         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49844         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49845         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49846         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49847         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49848         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49849         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49850         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49851         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49852         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49853         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49854         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49855         lib/xstrtoumax.c, lib/yesno.c:
49856         Standardize inclusion of config.h.
49857         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49858         lib/inttostr.h:  Removed inclusion of config.h from header files.
49859         * lib/inttostr.c:  Adjusted in-tree users.
49860         * lib/timespec.h: Remove superfluous warning to include config.h.
49861         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49862         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49863         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49864         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49865         config.h with HAVE_CONFIG_H.
49866
49867 2005-09-19  Jim Meyering  <jim@meyering.net>
49868
49869         * modules/pathmax (License): Change to LGPL.
49870
49871 2005-09-19  Derek Price  <derek@ximbiot.com>
49872
49873         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49874
49875 2005-09-19  Bruno Haible  <bruno@clisp.org>
49876
49877         * gnulib-tool (import): Provide default for --tests-base.
49878
49879 2005-09-19  Bruno Haible  <bruno@clisp.org>
49880
49881         * doc/quote.texi: New file, extracted from gnulib.texi.
49882         * doc/ctime.texi: New file, extracted from gnulib.texi.
49883         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49884         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49885         * doc/gnulib.texi: Include them.
49886
49887 2005-09-18  Bruno Haible  <bruno@clisp.org>
49888
49889         Portability fix.
49890         * gnulib-tool (func_readlink): New function.
49891         (func_ln_if_changed): Use it.
49892
49893 2005-09-18  Bruno Haible  <bruno@clisp.org>
49894
49895         * gnulib-tool: Support --with-tests also with --import.
49896         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49897         (func_import): Use variables $testsbase and $inctests. Emit a
49898         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49899         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49900         SUBDIRS += $testsdir.
49901         (func_create_testdir): Update.
49902
49903 2005-09-18  Bruno Haible  <bruno@clisp.org>
49904
49905         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49906         instead of $dry_run.
49907         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49908         (func_ln_if_changed): Don't handle dry-run here.
49909         (func_import): In dry-run mode, detect more precisely which actions
49910         would be performed, and don't use "...ing" verbs.
49911
49912 2005-09-18  Bruno Haible  <bruno@clisp.org>
49913
49914         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49915         (func_import): Use join on two temporary files instead of three nested
49916         loops, in order to determine which files are new or old.
49917
49918 2005-09-18  Bruno Haible  <bruno@clisp.org>
49919
49920         * gnulib-tool (func_import): Comment out code that spits out the
49921         new files with --dry-run.
49922
49923 2005-09-18  Bruno Haible  <bruno@clisp.org>
49924
49925         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49926
49927 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         * lib/stat-time.h: New file.
49930         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49931         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49932         in a different way.
49933         (timespec_cmp): New function.
49934         * lib/utimecmp.c: Include stat-time.h.
49935         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49936         members exist, not on the obsolescent ST_MTIM_NSEC.
49937         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49938
49939 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49942
49943 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49944
49945         * MODULES.html.sh (File system functions): Add stat-time.
49946         * modules/stat-time: New file.
49947         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49948         is now done in a different way, by the stat-time module.
49949         * modules/utimecmp (Depends-on): Add stat-time.
49950
49951 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49952
49953         * m4/st_mtim.m4: Remove.  Superseded by...
49954         * m4/stat-time.m4: New file.
49955         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49956         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49957
49958 2005-09-15  Derek Price  <derek@ximbiot.com>
49959
49960         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49961
49962 2005-09-15  Derek Price  <derek@ximbiot.com>
49963
49964         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49965         * lib/regex_internal.c: Ditto, using this...
49966         (__GNUC_PREREQ): ...new macro.
49967         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49968         using...
49969         (__GNUC_PREREQ): ...this new macro.
49970
49971         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49972
49973 2005-09-15  Derek Price  <derek@ximbiot.com>
49974             Paul Eggert  <eggert@cs.ucla.edu>
49975
49976         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49977         changes, consolidating in...
49978         * lib/regex_internal.h: ...this file.
49979
49980 2005-09-13  Jim Meyering  <jim@meyering.net>
49981
49982         * lib/canon-host.c: Filter through gnu indent and reword comments
49983         slightly.
49984         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49985
49986 2005-09-13  Derek Price  <derek@ximbiot.com>
49987
49988         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49989         failure.
49990         Reported by Jim Meyering  <jim@meyering.net>.
49991
49992 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49993
49994         * lib/base64.c: Typo.
49995         (base64_encode): Put b64str in initialized data section.
49996
49997 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49998
49999         Merge glibc and coreutils changes into gnulib, plus a few
50000         extra fixes.
50001         * lib/md5.c: Use #error rather than a string.
50002         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50003         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50004         (__attribute__): Define to empty for non recent-GCC.
50005         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50006         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50007         Renamed from their non-__ counterparts, with new macros replacing
50008         them if not _LIBC.  Add __THROW attribute.
50009         (rol): Remove.
50010         (struct md5_ctx): Align buffer if using GCC.
50011         * lib/sha1.h (struct sha1_ctx): Likewise.
50012         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50013         The old name was backwards.
50014         (NOTSWAP): Remove; not used.
50015         (rol): New macro, moved here from md5.h.
50016         (sha1_process_block): Remove a FIXME that doesn't make sense.
50017
50018 2005-09-12  Derek Price  <derek@ximbiot.com>
50019
50020         Return usable errors from canon-host.
50021         * lib/canon-host.h: New file.
50022         * lib/canon-host.c (canon_host): Wrap...
50023         (canon_host_r): ...this new function, which now relies exclusively on
50024         getaddrinfo.
50025         (ch_strerror): New function.
50026         (last_cherror): New global.
50027         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50028         interface.
50029         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50030         void *.
50031         (freeaddrinfo): Free ai->ai_canonname when set.
50032
50033 2005-09-12  Derek Price  <derek@ximbiot.com>
50034
50035         Make canon-host require getaddrinfo.
50036         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50037         AC_LIBSOURCE canon-host.h.  Call...
50038         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50039         gl_GETADDRINFO.
50040         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50041
50042 2005-09-12  Derek Price  <derek@ximbiot.com>
50043
50044         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50045         LGPL.
50046         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50047
50048 2005-09-12  Derek Price  <derek@ximbiot.com>
50049
50050         * lib/gai_strerror.c: Include config.h when available.  Include
50051         getaddrinfo.h before other headers to test interface.
50052         Reported by Larry Jones <lawrence.jones@ugs.com>.
50053
50054 2005-09-12  Derek Price  <derek@ximbiot.com>
50055             Paul Eggert  <eggert@cs.ucla.edu>
50056
50057         * modules/glob (Files): Add glob-libc.h.
50058
50059 2005-09-12  Derek Price  <derek@ximbiot.com>
50060             Paul Eggert  <eggert@cs.ucla.edu>
50061
50062         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50063         glob_.h, glob-libc.h.
50064         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50065
50066 2005-09-12  Derek Price  <derek@ximbiot.com>
50067             Paul Eggert  <eggert@cs.ucla.edu>
50068
50069         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50070         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50071         protecting things that should be done only in gnulib contexts.
50072         * lib/glob_.h: New file, containing only the glob things needed for
50073         gnulib.
50074         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50075         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50076         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50077         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50078         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50079         and to respect the namespace rules better.
50080
50081 2005-09-08  Simon Josefsson  <jas@extundo.com>
50082
50083         * modules/socklen: New file.
50084
50085 2005-09-08  Simon Josefsson  <jas@extundo.com>
50086
50087         * m4/socklen.m4: New file.
50088
50089 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50090
50091         * modules/utimens (Files): Add m4/utimbuf.m4, since
50092         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50093         Reported by Sergey Poznyakoff.
50094
50095 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50096
50097         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50098         definitions, since that's the preferred style in glibc.
50099         Fix a minor spacing issue, and update copyright notice to match
50100         glibc's.
50101
50102 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50103
50104         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50105
50106 2005-09-06  Simon Josefsson  <jas@extundo.com>
50107
50108         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50109         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50110
50111 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50112
50113         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50114         warning.
50115
50116 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50117
50118         * config/srclist.txt: Add glibc bug 1302.
50119
50120 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50121
50122         Change bitset word type from unsigned int to unsigned long int,
50123         as this has better performance on typical 64-bit hosts.
50124         Port bitset code to hosts with unusual word sizes.
50125         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50126         (build_collating_symbol):
50127         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50128         argument is a bitset.  This is merely a style issue, but it makes
50129         it clearer that an entire array is expected.
50130         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50131         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50132         Port to the case where bitset_word is not the same as unsigned int.
50133         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50134         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50135         Likewise.
50136         * lib/regexec.c (check_dst_limits_calc_pos_1,
50137         check_subexp_matching_top):
50138         (build_trtable, group_nodes_into_DFAstates):
50139         Likewise.
50140         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50141         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50142         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50143         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50144         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50145         * lib/regcomp.c (optimize_subexps, lower_subexp):
50146         Work even if bitset_word has holes in its bitwise representation.
50147         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50148         * lib/regexec.c (check_dst_limits_calc_pos_1,
50149         check_subexp_matching_top):
50150         Likewise.
50151         * lib/regex_internal.c (re_string_reconstruct):
50152         Don't assume UCHAR_MAX == 255.
50153         * lib/regex_internal.h (bitset_set_all): Likewise.
50154         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50155         All uses changed.
50156         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50157         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50158         All uses changed.
50159         (BITSET_WORD_MAX): New macro.
50160         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50161         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50162         (bitset_empty, bitset_copy):
50163         Prefer sizeof (bitset) to multiplying it out ourselves.
50164         (bitset_not_merge): Remove; unused.
50165         (bitset_contain): Return bool, not unsigned int with one bit on.
50166         All callers changed.
50167         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50168         alignment than re_node_set; do this by defining a new internal
50169         type struct dests_alloc and using it to allocate memory.
50170
50171 2005-09-05  Bruno Haible  <bruno@clisp.org>
50172
50173         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50174         links.
50175
50176 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50177
50178         * modules/size_max (Makefile.am): Add size_max.h
50179
50180 2005-09-04  Derek Price  <derek@ximbiot.com>
50181
50182         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50183
50184 2005-09-03  Simon Josefsson  <jas@extundo.com>
50185
50186         * gnulib-tool: Fix typo.
50187
50188 2005-09-03  Simon Josefsson  <jas@extundo.com>
50189
50190         * config/srclist.txt: Add glibc bug 1293.
50191
50192 2005-09-03  Derek Price  <derek@ximbiot.com>
50193
50194         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50195         From Larry Jones <lawrence.jones@ugs.com>.
50196
50197 2005-09-02  Simon Josefsson  <jas@extundo.com>
50198
50199         * modules/socklen: New file.
50200
50201 2005-09-02  Simon Josefsson  <jas@extundo.com>
50202
50203         * modules/havelib: New module.
50204
50205         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50206         Use havelib.
50207
50208 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50209
50210         Check for arithmetic overflow when calculating sizes, to prevent
50211         some buffer-overflow issues.  These patches are conservative, in the
50212         sense that when I couldn't determine whether an overflow was possible,
50213         I inserted a run-time check.
50214         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50215         macros.
50216         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50217         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50218         (re_xnrealloc, re_x2nrealloc): New inline functions.
50219         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50220         parse_bracket_exp):
50221         (build_equiv_class, build_charclass): Check for arithmetic overflow
50222         in size expression calculations.
50223         * lib/regex_internal.c (re_string_realloc_buffers):
50224         (build_wcs_upper_buffer, re_node_set_add_intersect):
50225         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50226         (re_dfa_add_node, register_state): Likewise.
50227         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50228         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50229         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50230         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50231
50232 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50233
50234         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50235         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50236
50237 2005-09-02  Bruno Haible  <bruno@clisp.org>
50238
50239         Support for lib vs. lib64 distinction on biarch platforms.
50240         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50241         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50243
50244 2005-09-02  Bruno Haible  <bruno@clisp.org>
50245
50246         * gnulib-tool (import): In the other first-use case, provide defaults
50247         as well.
50248
50249 2005-09-02  Bruno Haible  <bruno@clisp.org>
50250
50251         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50252         patches not yet found in the latest gettext release.
50253
50254 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50255
50256         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50257         to avoid a collision with bits/local_lim.h in glibc.
50258         All uses changed.  Problem reported by Dmitry V. Levin in
50259         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50260
50261         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50262         bugs in int versus size_t comparisons.
50263         (re_string_context_at): Fix bug where the code assumed that
50264         Idx is signed.
50265
50266         Use bool where appropriate.
50267         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50268         All callers changed.
50269         (calc_eclosure_iter): Likewise, for ROOT arg.
50270         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50271         (build_charclass_op): Likewise, for NON_MATCH arg.
50272         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50273         (re_string_construct_common): Likewise, for ICASE arg.
50274         * lib/regexec.c (re_search_2_stub, re_search_stub):
50275         Likewise, for RET_LEN arg.
50276         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50277         (set_regs): Likewise, for FL_BACKTRACK arg.
50278         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50279         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50280         (calc_eclosure_iter, parse_bracket_exp):
50281         Use bool for internal variables that are booleans.
50282         * lib/regexec.c (re_search_internal, check_matching,
50283         proceed_next_node):
50284         (set_regs, build_sifted_states, sift_states_bkref):
50285         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50286         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50287         (find_collation_sequence_value):
50288         Likewise.
50289         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50290         (re_node_set_compare):
50291         Return bool, not int. All callers changed.
50292         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50293         (build_trtable, check_node_accept): Likewise.
50294         * lib/regex_internal.h: Include stdbool.h.
50295
50296         Fix bugs uncovered when converting to bool.
50297         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50298         failure instead of charging ahead blindly.
50299         * lib/regex_internal.c (register_state): Likewise.
50300         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50301         for freeing internal storage.
50302         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50303         bitset pieces used as boolean, to avoid undefined behavior
50304         on hosts that do int overflow checking.
50305
50306 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50307
50308         * config/srclist.txt: Add glibc bugs 1285-1287.
50309
50310 2005-09-01  Jim Meyering  <jim@meyering.net>
50311
50312         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50313         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50314         Require gl_STAT_MACROS, too.
50315
50316 2005-09-01  Bruno Haible  <bruno@clisp.org>
50317
50318         * gnulib-tool (import): In the first-use case, provide defaults.
50319
50320 2005-09-01  Bruno Haible  <bruno@clisp.org>
50321
50322         * gnulib-tool (func_import): Remove the .tmp files.
50323
50324 2005-09-01  Bruno Haible  <bruno@clisp.org>
50325
50326         * gnulib-tool (func_import): Fix handling of symbolic links.
50327
50328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50329
50330         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50331         old glibc regex code mishandles strings longer than 2**31 bytes.
50332         This patch fixes this when the regex code is used in gnulib
50333         (i.e., outside glibc).
50334
50335         This patch should not affect the use of the regex code inside
50336         glibc.  No doubt this problem also needs to be handled for glibc
50337         as well, but the result will be an incompatible change to the
50338         glibc ABI, and the old ABI will have to be supported too.  That
50339         can be the the subject for another patch.
50340
50341         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50342         governing whether the rest of this patch is active.  By default,
50343         the macro is disabled and the patch has no effect.
50344         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50345         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50346         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50347         (re_match_2, re_set_registers): Use the new types.
50348         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50349         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50350         New macros.
50351         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50352         (re_string_context_at, bin_tree_t, re_dfastate_t):
50353         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50354         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50355         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50356         (re_string_char_size_at, re_string_wchar_at):
50357         (re_string_elem_size_at):
50358         Use the new types and macros to port to 64-bit hosts.
50359         Use unsigned types for internal values, so that the code
50360         mostly works even for arrays larger than SSIZE_MAX.
50361         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50362         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50363         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50364         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50365         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50366         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50367         (calc_inveclosure, parse_dup_op, build_range_exp):
50368         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50369         (fetch_number, create_token_tree, mark_opt_subexp):
50370         Likewise.
50371         * lib/regex_internal.c (re_string_construct_common,
50372         create_ci_newstate):
50373         (create_cd_newstate, re_string_allocate, re_string_construct):
50374         (re_string_realloc_buffers, build_wcs_upper_buffer):
50375         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50376         (re_string_reconstruct, re_string_peek_byte_case):
50377         (re_string_fetch_byte_case, re_string_context_at):
50378         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50379         (re_node_set_init_copy, re_node_set_add_intersect):
50380         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50381         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50382         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50383         (re_acquire_state, re_acquire_state_context, register_state):
50384         Likewise.
50385         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50386         search_cur_bkref_entry):
50387         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50388         (re_search_internal, re_search_2_stub, re_search_stub)
50389         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50390         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50391         (update_cur_sifted_state, check_dst_limits):
50392         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50393         (check_subexp_limits, sift_states_bkref, merge_state_array):
50394         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50395         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50396         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50397         (expand_bkref_cache, check_node_accept_bytes):
50398         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50399         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50400         (acquire_init_state_context, check_halt_node_context):
50401         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50402         (sift_states_backward, clean_state_log_if_needed):
50403         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50404         (find_recover_state, transit_state_sb, transit_state_mb):
50405         (transit_state_bkref, build_trtable, match_ctx_clean):
50406         Likewise.
50407         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50408         to work around an assumption that REG_MISSING is negative.
50409
50410         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50411         (seek_collating_symbol_entry) [defined _LIBC]:
50412         (lookup_collation_sequence_value) [defined _LIBC]:
50413         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50414         Use prototypes rather than old-style function definitions.
50415         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50416         (transit_state_sb) [0]:
50417         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50418
50419         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50420         rm_eo.
50421
50422         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50423         (optimize_subexps, lower_subexp):
50424         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50425         since the signed shift might overflow.  Use 1u<<31 instead.
50426         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50427         Likewise.
50428         * lib/regexec.c (check_dst_limits_calc_pos_1,
50429         check_subexp_matching_top): Likewise.
50430
50431         * lib/regcomp.c (optimize_subexps, lower_subexp):
50432         Use CHAR_BIT rather than 8, for clarity.
50433         * lib/regexec.c (check_dst_limits_calc_pos_1):
50434         (check_subexp_matching_top): Likewise.
50435         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50436         have to worry about portability issues when shifting it left.
50437         Remove no-longer-needed test for table_size > 0.
50438         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50439         in a word, as the resulting behavior is undefined.
50440         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50441         in one case, a <= should have been an <, and in another case the
50442         whole test was missing.
50443         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50444         the standard name CHAR_BIT.
50445         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50446         this is not true on one's complement and signed-magnitude hosts.
50447
50448         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50449         next_last_offset.
50450         (struct re_dfa_t): Remove unused member states_alloc.
50451         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50452
50453 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50454
50455         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50456         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50457         and large-file glibc and in 32-bit large-file Solaris.
50458
50459 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50462         lengths fit in regoff_t; this isn't true if regoff_t is the same
50463         width as size_t.
50464         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50465         (= START + RANGE) instead of RANGE.  This avoids overflow
50466         problems when regoff_t is the same width as size_t.
50467         All callers changed.
50468         (re_search_2_stub): Check for overflow when adding the
50469         sizes of the two strings.
50470         (re_search_stub): Check for overflow when adding START
50471         to RANGE; if it occurs, substitute the extreme value.
50472
50473 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50474
50475         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50476
50477 2005-08-31  Jim Meyering  <jim@meyering.net>
50478
50479         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50480         a pointer-to-const.
50481         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50482         (register_state): Likewise.
50483         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50484         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50485         (group_nodes_into_DFAstates): Likewise.
50486
50487 2005-08-31  Jim Meyering  <jim@meyering.net>
50488
50489         * check-module: Add a FIXME comment.
50490
50491 2005-08-31  Eric Blake  <ebb9@byu.net>
50492
50493         * modules/unistd-safer (Files): Add unistd--.h.
50494         * modules/stdio-safer (Files): Add stdio--.h.
50495
50496 2005-08-31  Derek Price  <derek@ximbiot.com>
50497
50498         * lib/getdelim.c (getdelim): Return EOF on EOF.
50499         Reported by Larry Jones <lawrence.jones@ugs.com>.
50500
50501 2005-08-31  Bruno Haible  <bruno@clisp.org>
50502
50503         Avoid unnecessary diffs in the generated lib/Makefile.am.
50504         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50505         the generated files.
50506         (func_import): Don't set cmd.
50507
50508 2005-08-31  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/strstr.c: Include <stddef.h>, for NULL.
50511         * lib/strcasestr.c: Likewise.
50512         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50513
50514 2005-08-31  Bruno Haible  <bruno@clisp.org>
50515
50516         * gnulib-tool: New option --macro-prefix.
50517         (func_import): Use macro_prefix.
50518         (import): Handle option --macro-prefix.
50519
50520 2005-08-31  Bruno Haible  <bruno@clisp.org>
50521
50522         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50523         Also use new variables cached_lgpl, cached_libtool.
50524
50525 2005-08-31  Bruno Haible  <bruno@clisp.org>
50526
50527         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50528         always instantiating them.
50529
50530 2005-08-31  Bruno Haible  <bruno@clisp.org>
50531
50532         * gnulib-tool (func_import): Read the previous cached settings
50533         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50534         earlier added by gnulib but are now dropped. Warn when a gnulib file
50535         overwrites a non-gnulib file.
50536
50537 2005-08-31  Bruno Haible  <bruno@clisp.org>
50538
50539         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50540         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50541         projects that don't keep autogenerated files in CVS. Put into
50542         actioncmd only the specified modules, not the transitive closure.
50543
50544 2005-08-31  Bruno Haible  <bruno@clisp.org>
50545
50546         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50547         Create directories that shall be filled.
50548         (import): Don't look for gl_* macros in configure.ac. Recurse across
50549         all directories containing a gnulib-cache.m4 files, if meaningful.
50550
50551 2005-08-31  Bruno Haible  <bruno@clisp.org>
50552
50553         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50554         (import): Set seen_libtool when we see gl_LIBTOOL.
50555
50556 2005-08-31  Bruno Haible  <bruno@clisp.org>
50557
50558         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50559         declaration macro definitions from generated gnulib.m4.
50560
50561 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50562
50563         * lib/iconvme.h: Add prototype for iconv_alloc.
50564
50565 2005-08-29  Simon Josefsson  <jas@extundo.com>
50566
50567         * lib/iconvme.c: Fix errno.
50568
50569 2005-08-29  Bruno Haible  <bruno@clisp.org>
50570
50571         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50572         that it works when the directory contains spaces.
50573
50574 2005-08-29  Bruno Haible  <bruno@clisp.org>
50575
50576         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50577
50578 2005-08-29  Bruno Haible  <bruno@clisp.org>
50579
50580         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50581         Emit more advice.
50582
50583 2005-08-29  Bruno Haible  <bruno@clisp.org>
50584         and Stepan Kasal  <kasal@ucw.cz>
50585
50586         * check-module: If more parameters are given, check each of them
50587         separately; add more exceptions, as noted by Jim Meyering.
50588         (check_module): New procedure.
50589         (%exempt_header): Now contains all exceptions.
50590
50591 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50592
50593         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50594
50595 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50596
50597         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50598
50599 2005-08-28  Bruno Haible  <bruno@clisp.org>
50600
50601         * m4/gnulib-tool.m4: New file.
50602
50603 2005-08-27  Jim Meyering  <jim@meyering.net>
50604
50605         * modules/unistd-safer (Files): Add pipe-safer.c.
50606         * modules/fcntl-safer (Files): Add creat-safer.c.
50607
50608 2005-08-27  Jim Meyering  <jim@meyering.net>
50609
50610         * m4/stdlib-safer.m4: New file.  From coreutils.
50611         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50612         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50613         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50614         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50615         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50616
50617 2005-08-27  Jim Meyering  <jim@meyering.net>
50618
50619         * lib/fopen-safer.c: Merge minor changes from coreutils.
50620         * lib/dup-safer.c: Likewise.
50621         * lib/fd-safer.c: Likewise.
50622
50623         Merge from coreutils.
50624         * lib/stdio--.h: New file.
50625         * lib/stdlib--.h: New file.
50626         * lib/mkstemp-safer.c: New file.
50627
50628         GNU tar needs these.
50629         * lib/pipe-safer.c: New file.
50630         * lib/creat-safer.c: New file.
50631         * lib/fcntl--.h (creat): Define to creat_safer.
50632         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50633         * lib/unistd--.h (pipe): Define to pipe_safer.
50634         * lib/unistd-safer.h: Declare pipe_safer.
50635
50636 2005-08-26  Simon Josefsson  <jas@extundo.com>
50637
50638         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50639         Haible <bruno@clisp.org>.
50640
50641 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50642
50643         * lib/regex_internal.h: Remove all references to
50644         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50645         or better.
50646         (bitset_not, bitset_merge, bitset_not_merge):
50647         (bitset_mask, re_string_allocate, re_string_construct):
50648         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50649         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50650         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50651         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50652         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50653         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50654         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50655         (re_acquire_state_context):
50656         Remove unnecessary forward decls.
50657         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50658         Put __attribute at function definition,
50659         now that the function decl has been removed.
50660         * lib/regex_internal.c (re_string_peek_byte_case):
50661         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50662         Likewise.
50663
50664 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50665
50666         * m4/regex.m4: Add AC_PREREQ(2.50).
50667         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50668
50669 2005-08-25  Simon Josefsson  <jas@extundo.com>
50670
50671         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50672         __fsetlocking.
50673
50674 2005-08-25  Simon Josefsson  <jas@extundo.com>
50675
50676         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50677         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50678         GLIBC specific code.
50679
50680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         Make regex safe for g++.  This fixes one real bug (an "err"
50683         that should have been "*err").  g++ problem reported by
50684         Sam Steingold.
50685         * lib/regex_internal.h (re_calloc): New macro, consistent with
50686         re_malloc etc.  All callers of calloc changed to use re_calloc.
50687         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50688         not int.  All callers changed.
50689         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50690         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50691         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50692         (find_recover_state): Change "err" to "*err"; this fixes what
50693         appears to be a real bug.
50694         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50695         versus int.
50696
50697 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50698
50699         * modules/regex (Depends-on): Add malloc, since the code
50700         assumes that !malloc(0) means failure.
50701
50702 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50703
50704         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50705
50706         alloca modernization/simplification for regex.
50707         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50708         needs to be at the start of the file, and can be moved into
50709         regex_internal.h and simplified.
50710         * lib/regex_internal.h: Include <alloca.h>.
50711         (__libc_use_alloca) [!defined _LIBC]: New macro.
50712         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50713         now works outside glibc.
50714
50715 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         * config/srclist.txt: Add glibc bugs 1241, 1245.
50718
50719 2005-08-25  Jim Meyering  <jim@meyering.net>
50720
50721         * lib/open-safer.c: Include <config.h>.
50722         Otherwise, we'd lose LARGEFILE support in any file using
50723         e.g. "fcntl--.h"
50724
50725 2005-08-25  Bruno Haible  <bruno@clisp.org>
50726
50727         * m4/minmax.m4: Require autoconf 2.52.
50728         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50729         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50730         alternatives of translit over the alphabet.
50731         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50732
50733 2005-08-24  Simon Josefsson  <jas@extundo.com>
50734
50735         * tests/test-getpass.c: New file.
50736
50737 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50740         for GNU regex features.
50741
50742 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50743
50744         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50745         * lib/regex.h (regerror): Likewise.
50746
50747         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50748         requires this.  (The code never needed it.)
50749
50750         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50751         All uses of recently-renamed identifiers changed to use the new,
50752         POSIX-compliant names.  The code will build and run just fine
50753         without these changes, but it's better to eat our own dog food
50754         and use the standard-conforming names.
50755
50756         * lib/regex.h: Fix a multitude of POSIX name space violations.
50757         These changes have an effect only for programs that define
50758         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50759         do not change anything for programs compiled in the normal way.
50760         Also, there is no effect on the ABI.
50761
50762         (_REGEX_SOURCE): New macro.
50763         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50764         defined and _GNU_SOURCE is not; this fixes a name space violation.
50765
50766         Rename the following macros to obey POSIX requirements.
50767         The old names are still visible as macros if _REGEX_SOURCE is defined.
50768         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50769         RE_BACKSLASH_ESCAPE_IN_LISTS.
50770         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50771         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50772         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50773         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50774         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50775         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50776         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50777         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50778         (REG_INTERVALS): renamed from RE_INTERVALS.
50779         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50780         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50781         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50782         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50783         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50784         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50785         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50786         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50787         RE_UNMATCHED_RIGHT_PAREN_ORD.
50788         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50789         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50790         (REG_DEBUG): renamed from RE_DEBUG.
50791         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50792         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50793         unusual, since we can't clash with the POSIX REG_ICASE.
50794         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50795         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50796         (REG_NO_SUB): renamed from RE_NO_SUB.
50797         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50798         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50799         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50800         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50801         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50802         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50803         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50804         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50805         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50806         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50807         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50808         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50809         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50810         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50811         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50812         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50813         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50814         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50815         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50816         (REG_FIXED): Renamed from REGS_FIXED.
50817         (REG_NREGS): Renamed from RE_NREGS.
50818
50819         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50820         of other REG_* macros, since POSIX says the user is allowed to
50821         #undef these macros selectively.
50822
50823         (reg_errcode_t): Update comment stating what other tables need
50824         to be consistent.
50825
50826         Rename the following enum values to obey POSIX requirements.
50827         The old names are still visible as macros.
50828         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50829         is not defined, since GNU is supposed to be a superset of POSIX as
50830         much as possible, and since we want reg_errcode_t to be a signed
50831         type for implementation consistency.
50832         (_REG_NOERROR): Renamed from REG_NOERROR.
50833         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50834         (_REG_BADPAT): Renamed from REG_BADPAT.
50835         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50836         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50837         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50838         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50839         (_REG_EBRACK): Renamed from REG_EBRACK.
50840         (_REG_EPAREN): Renamed from REG_EPAREN.
50841         (_REG_EBRACE): Renamed from REG_EBRACE.
50842         (_REG_BADBR): Renamed from REG_BADBR.
50843         (_REG_ERANGE): Renamed from REG_ERANGE.
50844         (_REG_ESPACE): Renamed from REG_ESPACE.
50845         (_REG_BADRPT): Renamed from REG_BADRPT.
50846         (_REG_EEND): Renamed from REG_EEND.
50847         (_REG_ESIZE): Renamed from REG_ESIZE.
50848         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50849         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50850         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50851         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50852         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50853
50854         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50855         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50856         changed.  But support the old name if the new one is not defined
50857         and if _REGEX_SOURCE.
50858
50859         Change the following member names in struct re_pattern_buffer.
50860         The old names are still supported if !_REGEX_SOURCE.
50861         The new names are always supported, regardless of _REGEX_SOURCE.
50862         (re_buffer): Renamed from buffer.
50863         (re_allocated): Renamed from allocated.
50864         (re_used): Renamed from used.
50865         (re_syntax): Renamed from syntax.
50866         (re_fastmap): Renamed from fastmap.
50867         (re_translate): Renamed from translate.
50868         (re_can_be_null): Renamed from can_be_null.
50869         (re_regs_allocated): Renamed from regs_allocated.
50870         (re_fastmap_accurate): Renamed from fastmap_accurate.
50871         (re_no_sub): Renamed from no_sub.
50872         (re_not_bol): Renamed from not_bol.
50873         (re_not_eol): Renamed from not_eol.
50874         (re_newline_anchor): Renamed from newline_anchor.
50875
50876         Change the following member names in struct re_registers.
50877         The old names are still supported if !_REGEX_SOURCE.
50878         The new names are always supported, regardless of _REGEX_SOURCE.
50879         (rm_num_regs): Renamed from num_regs.
50880         (rm_start): Renamed from start.
50881         (rm_end): Renamed from end.
50882
50883         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50884         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50885         Prepend __ to parameter names.
50886
50887         Undo yesterday's changes.
50888
50889 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50890
50891         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50892         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50893         lib/regex.c.
50894
50895 2005-08-24  Jim Meyering  <jim@meyering.net>
50896
50897         Sync from coreutils.
50898         * m4/fcntl-safer.m4: New file.
50899
50900         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50901         and object files for this module.
50902
50903 2005-08-24  Jim Meyering  <jim@meyering.net>
50904
50905         Sync from coreutils.
50906         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50907
50908 2005-08-24  Jim Meyering  <jim@meyering.net>
50909
50910         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50911         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50912
50913 2005-08-24  Jim Meyering  <jim@meyering.net>
50914
50915         * modules/fcntl-safer: New module.
50916         * modules/fts (Depends-on): Add fcntl-safer.
50917         * MODULES.html.sh (File descriptor based Input/Output):
50918         Add fcntl-safer.
50919
50920 2005-08-24  Bruno Haible  <bruno@clisp.org>
50921
50922         Support for unit test modules.
50923         * modules/README: Mention tests modules.
50924         * modules/TEMPLATE-TESTS: New file.
50925         * gnulib-tool: New options --extract-tests-module, --with-tests and
50926         --tests-base (unused for the moment).
50927         (testsbase, inctests): New variables.
50928         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50929         (func_verify_module): Exclude TEMPLATE-TESTS.
50930         (func_verify_nontests_module, func_verify_tests_module): New functions.
50931         (func_get_dependencies): Add implicit dependency for tests modules.
50932         (func_get_tests_module): New function.
50933         (func_modules_transitive_closure): When --with-tests was specified,
50934         include the unit tests as well, unless explicitly avoided.
50935         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50936         (func_emit_tests_Makefile_am): New function.
50937         (func_create_testdir): When --with-tests was specified, emit a
50938         tests/ directory.
50939         * MODULES.html.sh (Future developments): Update.
50940
50941 2005-08-24  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/tls-tests: New file.
50944         * tests/test-tls.c: New file, from GNU gettext.
50945
50946 2005-08-24  Bruno Haible  <bruno@clisp.org>
50947
50948         * modules/lock-tests: New file.
50949         * tests/test-lock.c: New file, from GNU gettext.
50950
50951 2005-08-24  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/lock.h: Add multiple inclusion guard.
50954         * lib/tls.h: Add multiple inclusion guard.
50955
50956 2005-08-24  Bruno Haible  <bruno@clisp.org>
50957
50958         * gnulib-tool: Add support for the --aux-dir option to
50959         --create-testdir, --create-megatestdir, --test, --megatest.
50960         (func_create_testdir, func_create_megatestdir): Optionally emit a
50961         AC_CONFIG_AUX_DIR directive.
50962         (create-testdir, create-megatestdir, test, megatest): Provide a
50963         default value for $auxdir.
50964
50965 2005-08-24  Bruno Haible  <bruno@clisp.org>
50966
50967         * gnulib-tool (import): Use compound statement instead of subshell
50968         where possible.
50969
50970 2005-08-24  Bruno Haible  <bruno@clisp.org>
50971
50972         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50973
50974 2005-08-24  Bruno Haible  <bruno@clisp.org>
50975
50976         * gnulib-tool (func_version): Update.
50977
50978 2005-08-24  Bruno Haible  <bruno@clisp.org>
50979
50980         * gnulib-tool (func_import, func_create_testdir,
50981         func_create_megatestdir): Quote all autoconf macro arguments.
50982
50983 2005-08-24  Bruno Haible  <bruno@clisp.org>
50984
50985         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50986         option --force, because --force causes the aclocal.m4 of each
50987         subdirectory to be newer than the corresponding config.h.in.
50988
50989 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50990
50991         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50992         All contents moved to gl_REGEX.
50993         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50994         assume that it does.
50995
50996 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50997
50998         * lib/regex.h (REG_NOSYS)
50999         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51000         Define, since POSIX requires it as of 2001.
51001         (_REG_ENOSYS)
51002         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51003         New private symbol, used to keep the enum signed in all cases.
51004         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51005         Youngman in
51006         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51007
51008         * lib/regex_internal.c (re_string_skip_chars, register_state):
51009         (calc_state_hash):
51010         Remove forward decls; no longer needed now that we use prototypes.
51011         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51012         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51013         (clean_state_log_if_needed): Likewise.
51014
51015 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         * config/srclist.txt: Add glibc bugs 1231-1233.
51018
51019 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         Fix problems reported by Sam Steingold in
51022         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51023         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51024         assumed that reg_errcode_t is a signed type, which is not
51025         necessarily true if _XOPEN_SOURCE is not defined.
51026         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51027         since some compilers warn about it otherwise.
51028
51029 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51030
51031         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51032         (init_word_char, create_initial_state, duplicate_node_closure):
51033         (fetch_token, peek_token_bracket, build_range_exp):
51034         (build_collating_symbol): Remove forward decls; no longer needed
51035         now that we use prototypes.
51036
51037         * lib/regcomp.c:
51038         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51039         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51040         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51041         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51042         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51043         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51044         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51045         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51046         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51047         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51048         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51049         (build_charclass, build_charclass_op, fetch_number, create_tree):
51050         (create_token_tree, mark_opt_subexp, duplicate_tree):
51051         Use prototypes rather than old-style definitions.
51052
51053         * lib/regex_internal.c:
51054         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51055         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51056         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51057         (re_string_reconstruct, re_string_peek_byte_case):
51058         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51059         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51060         (re_node_set_init_copy, re_node_set_add_intersect):
51061         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51062         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51063         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51064         (re_acquire_state, re_acquire_state_context, register_state):
51065         (create_ci_newstate, create_cd_newstate, free_state):
51066         Likewise.
51067         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51068         re_search_2):
51069         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51070         (re_search_internal, prune_impossible_nodes):
51071         (acquire_init_state_context, check_matching, static):
51072         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51073         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51074         (update_regs, sift_states_backward, build_sifted_states):
51075         (clean_state_log_if_needed, merge_state_array):
51076         (update_cur_sifted_state, add_epsilon_src_nodes):
51077         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51078         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51079         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51080         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51081         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51082         (check_arrival, check_arrival_add_next_nodes):
51083         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51084         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51085         (check_node_accept_bytes, check_node_accept, extend_buffers):
51086         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51087         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51088         (sift_ctx_init):
51089         Likewise.
51090
51091         * lib/regex_internal.h:
51092         (re_string_allocate, re_string_construct, re_string_reconstruct):
51093         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51094         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51095         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51096         (re_string_context_at, re_string_peek_byte_case):
51097         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51098         is defined, since we now use prototypes always.
51099
51100         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51101         C89 or better.  All uses removed.
51102
51103 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         * config/srclist.txt: Add glibc bugs 1220-1227.
51106
51107 2005-08-20  Jim Meyering  <jim@meyering.net>
51108
51109         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51110         of unused local, dfa.
51111
51112 2005-08-20  Bruno Haible  <bruno@clisp.org>
51113
51114         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51115
51116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51117
51118         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51119         (re_node_set_insert_last, re_dfa_add_node):
51120         Rename local variables to avoid GCC shadowing warnings.
51121
51122 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51123
51124         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51125         [defined lint]: Suppress bogus uninitialized-variable warnings.
51126
51127         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51128         and let the caller return REG_ESPACE if out of space.  This
51129         removes an uninitialied-variable warning with GCC 4.0.1, and also
51130         avoids taking the address of a local variable.  All callers
51131         changed.
51132
51133 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51134
51135         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51136         $LIBCSRC/posix/regexec.c.
51137         Add glibc bug 1217 for regcomp.c.
51138
51139 2005-08-19  Jim Meyering  <jim@meyering.net>
51140
51141         * lib/regexec.c (proceed_next_node): Redo local variables to
51142         avoid GCC shadowing warnings.
51143
51144 2005-08-18  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/strstr.c (strstr): Fix return value in multibyte case.
51147         * lib/strcasestr.c (strcasestr): Likewise.
51148
51149 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51150
51151         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51152
51153 2005-08-17  Jim Meyering  <jim@meyering.net>
51154
51155         Make the %s format (seconds since the epoch) work for a negative
51156         number and when used with a zero-padded field width, e.g. %015s.
51157
51158         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51159         label so that it precedes the code to set `digits'.  Otherwise,
51160         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51161         print `00-22'.  Now, it prints `-0022', as it should.
51162
51163 2005-08-17  Bruno Haible  <bruno@clisp.org>
51164
51165         * modules/strstr (Files): Add m4/mbrtowc.m4.
51166         (Depends-on): Add mbuiter.
51167
51168 2005-08-17  Bruno Haible  <bruno@clisp.org>
51169
51170         * modules/strcasestr: New file.
51171         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51172         strcasestr.
51173
51174 2005-08-17  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51177
51178 2005-08-17  Bruno Haible  <bruno@clisp.org>
51179
51180         * modules/mbuiter: New file.
51181         * MODULES.html.sh (Extended multibyte and wide character utilities):
51182         Add mbuiter.
51183
51184 2005-08-17  Bruno Haible  <bruno@clisp.org>
51185
51186         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51187         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51188
51189 2005-08-17  Bruno Haible  <bruno@clisp.org>
51190
51191         * m4/strcasestr.m4: New file.
51192
51193 2005-08-17  Bruno Haible  <bruno@clisp.org>
51194
51195         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51196         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51197
51198 2005-08-17  Bruno Haible  <bruno@clisp.org>
51199
51200         * lib/strcasestr.h: New file.
51201         * lib/strcasestr.c: New file.
51202
51203 2005-08-17  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/strcasecmp.c: Use mbuiter.h.
51206
51207 2005-08-17  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/mbuiter.h: New file.
51210
51211 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51212
51213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51214         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51215         and gl_GETOPT are both invoked via different paths (as happens
51216         with GNU tar CVS because it uses both argp and getopt), the former
51217         wins.
51218
51219 2005-08-16  Bruno Haible  <bruno@clisp.org>
51220
51221         * modules/tls: New file.
51222         * MODULES.html.sh (Multithreading): Add tls.
51223
51224 2005-08-16  Bruno Haible  <bruno@clisp.org>
51225
51226         * modules/strnlen1: New file.
51227         * MODULES.html.sh (String handling): Add strnlen1.
51228
51229 2005-08-16  Bruno Haible  <bruno@clisp.org>
51230
51231         * modules/strcase (Files): Add m4/mbrtowc.m4.
51232         (Depends-on): Add strnlen1, mbchar.
51233
51234 2005-08-16  Bruno Haible  <bruno@clisp.org>
51235
51236         * modules/mbiter: New file.
51237         * MODULES.html.sh (Extended multibyte and wide character utilities):
51238         Add mbiter.
51239
51240 2005-08-16  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/mbfile: New file.
51243         * MODULES.html.sh (Extended multibyte and wide character utilities):
51244         Add mbfile.
51245
51246 2005-08-16  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/mbchar: New file.
51249         * MODULES.html.sh (Extended multibyte and wide character utilities):
51250         New section.
51251
51252 2005-08-16  Bruno Haible  <bruno@clisp.org>
51253
51254         * m4/tls.m4: New file, from GNU gettext.
51255
51256 2005-08-16  Bruno Haible  <bruno@clisp.org>
51257
51258         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51259         always.
51260         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51261
51262 2005-08-16  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/mbiter.m4: New file.
51265
51266 2005-08-16  Bruno Haible  <bruno@clisp.org>
51267
51268         * m4/mbfile.m4: New file.
51269
51270 2005-08-16  Bruno Haible  <bruno@clisp.org>
51271
51272         * m4/mbchar.m4: New file.
51273
51274 2005-08-16  Bruno Haible  <bruno@clisp.org>
51275
51276         * lib/tls.h: New file, from GNU gettext.
51277         * lib/tls.c: New file, from GNU gettext.
51278
51279 2005-08-16  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/strnlen1.h: New file.
51282         * lib/strnlen1.c: New file.
51283
51284 2005-08-16  Bruno Haible  <bruno@clisp.org>
51285
51286         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51287         (mbi_init): Update.
51288         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51289         NUL byte, not after it.
51290
51291 2005-08-16  Bruno Haible  <bruno@clisp.org>
51292
51293         * lib/strcase.h (strcasecmp): Add note in comments.
51294         * lib/strncasecmp.c: Use code from strcasecmp.c.
51295         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51296         (strcasecmp): Work correctly in multibyte locales.
51297
51298 2005-08-16  Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/mbiter.h: New file.
51301
51302 2005-08-16  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/mbfile.h: New file.
51305
51306 2005-08-16  Bruno Haible  <bruno@clisp.org>
51307
51308         * lib/mbchar.h: New file.
51309         * lib/mbchar.c: New file.
51310
51311 2005-08-16  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51314         the valid ones. Makes the comparison operations transitive:
51315         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51316         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51317
51318 2005-08-15  Simon Josefsson  <jas@extundo.com>
51319
51320         * modules/ssize_t (License): Change to 'unlimited'.
51321
51322         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51323
51324 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51327         Add comments for each pending glibc patch.
51328
51329 2005-08-15  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51332         __cplusplus is defined.
51333
51334 2005-08-14  Jim Meyering  <jim@meyering.net>
51335
51336         Sync from coreutils.
51337
51338         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51339         Use the hash-table-based cycle-detection code not just when
51340         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51341         Reported by James Youngman in
51342         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51343         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51344         FTS_TIGHT_CYCLE_CHECK.
51345         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51346         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51347         once again.
51348         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51349         * lib/fts.c (fd_safer): Remove decl.
51350         Include fcntl--.h rather than unistd-safer.h
51351         (fts_safe_changedir): Don't call fd_safer; no longer needed
51352         now that we include fcntl--.h.
51353
51354 2005-08-12  Simon Josefsson  <jas@extundo.com>
51355
51356         * modules/getndelim2: Use ssize_t module.
51357         * modules/getnline: Likewise.
51358         * modules/safe-read: Likewise.
51359         * modules/xreadlink: Likewise.
51360
51361         * modules/ssize_t: New file.
51362
51363 2005-08-12  Simon Josefsson  <jas@extundo.com>
51364
51365         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51366
51367 2005-08-12  Simon Josefsson  <jas@extundo.com>
51368
51369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51370         ssize_t.
51371
51372 2005-08-12  Simon Josefsson  <jas@extundo.com>
51373
51374         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51375         readline, getdelim and check_version.
51376         (Support for systems lacking ISO C 99: Sizes of integer types):
51377         Add size_max.
51378
51379 2005-08-12  Bruno Haible  <bruno@clisp.org>
51380
51381         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51382
51383 2005-08-11  Simon Josefsson  <jas@extundo.com>
51384
51385         * modules/readline: New file.
51386
51387         * modules/strnlen (Files): Add strnlen.h.
51388
51389 2005-08-11  Simon Josefsson  <jas@extundo.com>
51390
51391         * m4/readline.m4: New file.
51392
51393 2005-08-11  Simon Josefsson  <jas@extundo.com>
51394
51395         * lib/readline.h, readline.c: New file.
51396
51397 2005-08-11  Simon Josefsson  <jas@extundo.com>
51398
51399         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51400         gl_AVOID.
51401
51402 2005-08-11  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51405
51406 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51407
51408         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51409
51410 2005-08-10  Simon Josefsson  <jas@extundo.com>
51411
51412         * tests/test-iconvme.c: New file.
51413
51414 2005-08-10  Simon Josefsson  <jas@extundo.com>
51415
51416         * m4/strnlen.m4: New file.
51417
51418         * m4/strndup.m4: Don't check for strnlen declaration, done in
51419         strnlen.m4.
51420
51421 2005-08-10  Simon Josefsson  <jas@extundo.com>
51422
51423         * lib/strndup.c: Use strnlen.h.
51424
51425         * lib/strnlen.h: New file.
51426
51427 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51428
51429         * README: Typos.
51430
51431 2005-08-02  Simon Josefsson  <jas@extundo.com>
51432
51433         * modules/readline: New file.
51434
51435 2005-08-02  Simon Josefsson  <jas@extundo.com>
51436
51437         * modules/getdelim: New file.
51438
51439         * modules/getline: Rewrite, don't use getndelim2.
51440
51441 2005-08-02  Simon Josefsson  <jas@extundo.com>
51442
51443         * m4/getline.m4: Separate out getdelim stuff into separate module.
51444
51445         * m4/getdelim.m4: New file.
51446
51447 2005-08-02  Simon Josefsson  <jas@extundo.com>
51448
51449         * lib/getline.h, getline.c: Rewrite.
51450
51451         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51452
51453 2005-07-31  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/lock.h (gl_lock_initializer): New macro.
51456         (gl_lock_define_initialized): Use it.
51457         (gl_rwlock_initializer): New macro.
51458         (gl_rwlock_define_initialized): Use it.
51459         (gl_recursive_lock_initializer): New macro.
51460         (gl_recursive_lock_define_initialized): Use it.
51461
51462 2005-07-30  Karl Berry  <karl@gnu.org>
51463
51464         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51465         Report from Ben Pfaff, regarding getopt.
51466
51467 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51468
51469         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51470         normal way.
51471         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51472         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51473         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51474         (gl_GETOPT): Use the new macros.  Most of the implementation
51475         is moved to the new macros.  This is for programs like Emacs
51476         that don't want all the functionality of gl_GETOPT.
51477
51478 2005-07-26  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/lock.m4: Update from GNU gettext.
51481
51482 2005-07-26  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/lock.h: Update from GNU gettext.
51485         * lib/lock.c: Update from GNU gettext.
51486
51487 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51488
51489         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51490         obsolescent AC_TRY_RUN.  Include the default includes files, for
51491         'exit'.
51492
51493 2005-07-24  Bruno Haible  <bruno@clisp.org>
51494
51495         * modules/visibility: New file.
51496         * MODULES.html.sh (Misc): Add visibility.
51497
51498 2005-07-24  Bruno Haible  <bruno@clisp.org>
51499
51500         * m4/visibility.m4: New file.
51501
51502 2005-07-24  Bruno Haible  <bruno@clisp.org>
51503
51504         * doc/visibility.texi: New file.
51505
51506 2005-07-22  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51509         $(ALLOCA_H), redundant through BUILT_SOURCES.
51510         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51511         redundant through BUILT_SOURCES.
51512         * modules/byteswap (Makefile.am): Remove explicit dependency on
51513         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51514         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51515         $(FNMATCH_H), redundant through BUILT_SOURCES.
51516         * modules/getopt (Makefile.am): Remove explicit dependency on
51517         $(GETOPT_H), redundant through BUILT_SOURCES.
51518         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51519         redundant through BUILT_SOURCES.
51520         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51521         redundant through BUILT_SOURCES.
51522         * modules/stdbool (Makefile.am): Remove explicit dependency on
51523         $(STDBOOL_H), redundant through BUILT_SOURCES.
51524         * modules/stdint (Makefile.am): Remove explicit dependency on
51525         $(STDINT_H), redundant through BUILT_SOURCES.
51526         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51527         Remove explicit dependency on $(SYSEXITS_H).
51528         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51529
51530 2005-07-18  Simon Josefsson  <jas@extundo.com>
51531
51532         * lib/check-version.c (check_version): Accept identical versions too.
51533
51534 2005-07-18  Bruno Haible  <bruno@clisp.org>
51535
51536         * modules/lock: New file.
51537         * MODULES.html.sh (Multithreading): New section.
51538
51539 2005-07-18  Bruno Haible  <bruno@clisp.org>
51540
51541         * m4/lock.m4: New file, from GNU gettext.
51542
51543 2005-07-18  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/lock.h: New file, from GNU gettext.
51546         * lib/lock.c: New file, from GNU gettext.
51547
51548 2005-07-18  Bruno Haible  <bruno@clisp.org>
51549
51550         * lib/lock.h (gl_once_t): New type.
51551         (gl_once_define, gl_once): New macros.
51552         * lib/lock.c (fresh_once): New variable.
51553         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51554         functions.
51555
51556 2005-07-16  Simon Josefsson  <jas@extundo.com>
51557
51558         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51559         workaround, suggested by Bruno.
51560
51561 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51562
51563         * modules/xalloc (Depends-on): Add xalloc-die.
51564         * modules/xvasprintf (Depends-on): Add xalloc-die.
51565
51566 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51567
51568         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51569         with a minor change.
51570
51571 2005-07-15  Bruno Haible  <bruno@clisp.org>
51572
51573         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51574         When using lib/poll.c, define poll as rpl_poll.
51575
51576 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51577
51578         * modules/argp (Depends-on): Remove unlocked-io.
51579
51580 2005-07-14  Derek Price  <derek@ximbiot.com>
51581
51582         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51583         for glob symlink bug.
51584
51585 2005-07-14  Bruno Haible  <bruno@clisp.org>
51586
51587         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51588         Instead, test for *_unlocked function declarations directly.
51589
51590 2005-07-11  Simon Josefsson  <jas@extundo.com>
51591
51592         * modules/size_max: New file.
51593
51594         * modules/xsize: Depend on size_max module for size_max.m4.
51595
51596 2005-07-11  Simon Josefsson  <jas@extundo.com>
51597
51598         * lib/size_max.h: New file.
51599
51600 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51603         copyright symbol and the year.
51604         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51605         (version_etc_va): Use parameterized copyright notice.
51606         Reword to conform to the current GNU coding standards.
51607
51608 2005-07-11  Karl Berry  <karl@gnu.org>
51609
51610         * doc/gnulib.texi (Quoting): new node.
51611         (Initial import): more info, from Patrice.
51612
51613 2005-07-11  Bruno Haible  <bruno@clisp.org>
51614
51615         * gnulib-tool (func_usage): Document option --avoid.
51616         (Command line options): Handle --avoid.
51617         (func_acceptable): New function.
51618         (func_modules_transitive_closure): Use it.
51619
51620 2005-07-11  Bruno Haible  <bruno@clisp.org>
51621
51622         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51623         Reported by Jim Meyering.
51624
51625 2005-07-10  Bruno Haible  <bruno@clisp.org>
51626
51627         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51628         Needed when size_t is smaller than 'unsigned int'.
51629         Reported by Paul Eggert.
51630
51631 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51632
51633         * modules/argp (Depends-on): Add unlocked-io
51634
51635 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51636
51637         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51638         block of defines.
51639
51640 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51641
51642         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51643         fix now.
51644
51645 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51646         and Paul Eggert  <eggert@cs.ucla.edu>
51647
51648         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51649         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51650
51651 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51652
51653         * modules/regex (Files): Add lib/regex_internal.c,
51654         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51655         (Depends-on): Add extensions.
51656         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51657
51658 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51659
51660         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51661         pathconf.
51662         * m4/same.m4 (gl_SAME): Likewise.
51663         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51664
51665         * m4/regex.m4: Adjust to new libc regex implementation.
51666         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51667         all the .c and .h parts of (the new) regex.
51668         Quote the m4 stuff better.
51669         Check for RE_ICASE bug of old gnulib.
51670         Check for REG_STARTEND of recent libc.
51671         Rename local variables from jm_* to gl_*.
51672         Quote operand of "test -f".
51673         Say "recent enough" version of libc, not "version 2".
51674         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51675         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51676         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51677         Remove check for btowc, isascii.
51678         Require AM_LANGINFO_CODESET.
51679
51680 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51681
51682         * lib/regex.c, regex.h: Sync from libc.
51683         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51684         * lib/regexec.c:
51685         New files, synced from libc, except that regex_internal.h
51686         currently has a small porting fix.
51687
51688 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51689
51690         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51691         regex_internal.c, regexec.c.
51692         Add regex_internal.h too, but as a comment, since the libc version
51693         is currently broken in gnulib mode.
51694
51695 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         Support programs like Emacs that use gnulib but not gettext.
51698         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51699         * modules/gettext-h: New file.
51700         * modules/gettext (Files): Remove lib/gettext.h.
51701         (Depends-on): Add gettext-h.
51702         (Makefile.am): Remove lib_SOURCES.
51703         * modules/argmatch, modules/c-stack, modules/closeout:
51704         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51705         * modules/execute, modules/file-type, modules/getaddrinfo:
51706         * modules/getopt, modules/human, modules/javacomp:
51707         * modules/javaexec, modules/mkdir-p, modules/obstack:
51708         * modules/openat, modules/pagealign_alloc, modules/pipe:
51709         * modules/quotearg, modules/regex, modules/rpmatch:
51710         * modules/unicodeio, modules/userspec, modules/version-etc:
51711         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51712         * modules/xsetenv:
51713         Depend on gettext-h, not gettext.
51714
51715 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         * gnulib-tool (func_import): Add support for 'public domain' license.
51718         * modules/alloca, modules/atexit, modules/memmove:
51719         Now public domain, not GPL.
51720         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51721         * modules/realloc, modules/strerror, modules/strtod:
51722         Now LGPL, not GPL.
51723
51724 2005-07-05  Bruno Haible  <bruno@clisp.org>
51725
51726         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51727         autoconf CVS. Needed for mingw.
51728
51729 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51730
51731         Remove the dependency of the strftime module on the tzset module.
51732         * modules/strftime (Depends-on): Remove dependency on tzset.
51733
51734 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51735
51736         Remove the dependency of the strftime module on the tzset module.
51737         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51738         gl_FUNC_TZSET_CLOBBER.
51739
51740 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         Remove the dependency of the strftime module on the tzset module.
51743         * lib/strftime.c (my_strftime)
51744         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51745         Copy the input structure, to work around some of the bug with
51746         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51747         Solaris releases, you should also use the tzset module, but we won't
51748         require it as a dependency any more since we don't want LGPLed code
51749         to depend on GPLed code.
51750
51751 2005-07-02  Jim Meyering  <jim@meyering.net>
51752
51753         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51754         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51755         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51756         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51757
51758 2005-07-02  Jim Meyering  <jim@meyering.net>
51759
51760         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51761
51762 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51765         declares only 'struct timespec;' (!).
51766
51767 2005-07-01  Jim Meyering  <jim@meyering.net>
51768
51769         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51770         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51771         * lib/save-cwd.c, tempname.c:
51772         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51773         and don't include <sys/file.h>).
51774
51775 2005-06-29  Jim Meyering  <jim@meyering.net>
51776
51777         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51778         type name.  Use the variable name instead.
51779         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51780         Likewise.
51781
51782 2005-06-28  Simon Josefsson  <jas@extundo.com>
51783
51784         * modules/check-version (Files): Add check-version.m4.
51785
51786 2005-06-28  Simon Josefsson  <jas@extundo.com>
51787
51788         * m4/check-version.m4: New file, suggested by Jim Meyering
51789         <jim@meyering.net>.
51790
51791 2005-06-28  Simon Josefsson  <jas@extundo.com>
51792
51793         * lib/check-version.h, lib/check-version.c: New files.
51794
51795 2005-06-28  Simon Josefsson  <jas@extundo.com>
51796
51797         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51798         collision with global variable.  Better indentation.  Don't
51799         increment buffer pointer beyond buffer end.  Based on comments
51800         from Paul Eggert <eggert@cs.ucla.edu>.
51801
51802         * lib/base64.h: Indent.
51803
51804 2005-06-28  Simon Josefsson  <jas@extundo.com>
51805
51806         * doc/gnulib.texi (Library version handling): New section.
51807
51808 2005-06-28  Jim Meyering  <jim@meyering.net>
51809
51810         * check-module (find_included_lib_files): Hard-code another
51811         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51812         but modules/fts-lgpl (correctly) does not list those files.
51813
51814         * modules/canonicalize (Files): Add lib/pathmax.h.
51815
51816 2005-06-25  Simon Josefsson  <jas@extundo.com>
51817
51818         * modules/check-version: New file.
51819
51820 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51821
51822         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51823         initializer of struct addrinfo, as an indication that we don't
51824         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51831         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51832         * m4/stat.m4: Remove this file.
51833
51834 2005-06-24  Derek Price  <derek@ximbiot.com>
51835         and Bruno Haible  <bruno@clisp.org>
51836
51837         Remove stat module & update lstat.
51838         * lib/stat.c: Remove this file...
51839         (slash_aware_lstat): ...moving this content and its support...
51840         * lib/lstat.c (rpl_lstat): ...into here.
51841         * lib/lstat.h: New file.
51842
51843 2005-06-24  Derek Price  <derek@ximbiot.com>
51844         and Bruno Haible  <bruno@clisp.org>
51845
51846         Remove stat module & update lstat.
51847         * config/srclist.txt (libc sources): Remove stat.
51848
51849 2005-06-24  Derek Price  <derek@ximbiot.com>
51850         and Bruno Haible  <bruno@clisp.org>
51851
51852         Remove stat module & update lstat.
51853         * MODULES.html.sh (stat): Remove.
51854         * MODULES.html: Regenerated.
51855         * modules/lstat (Description): Correct function name.
51856         (Files): Add "lstat.h".
51857         (Depends-on): Remove stat, add xalloc, stat-macros.
51858         * modules/stat: Remove this file.
51859         (Include): Add "lstat.h", remove <sys/stat.h>.
51860
51861 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51862
51863         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51864         (ranged_convert): Don't save conversion in a temporary struct.
51865         This causes a warning with GCC 4.0.0, and anyway in the typical
51866         case it's not worth the extra 100 bytes or so of code.
51867         (ranged_convert, __mktime_internal): When calling a function via a
51868         pointer P, use P () rather than (*P) (), as we now assume C89 or
51869         better.
51870
51871 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51874         "who -r" failed to give output.  Problem reported by Tim Waugh.
51875
51876         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51877         (xcalloc): Use it to avoid needless tests.
51878         Problem reported by Jim Meyering.
51879
51880 2005-06-20  Derek Price  <derek@ximbiot.com>
51881
51882         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51883         unnecessary for Autoconfs > 2.59c.
51884
51885 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51886
51887         * lib/argp.h (__option_is_short): Check upper limit of
51888         __key. Isprint() requires its argument to have the value
51889         of an unsigned char or EOF.
51890
51891 2005-06-16  Jim Meyering  <jim@meyering.net>
51892
51893         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51894         when either N or S is zero.
51895
51896 2005-06-16  Derek Price  <derek@ximbiot.com>
51897
51898         * m4/bison.m4: Declare YACC & YFLAGS precious.
51899
51900 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51903         multibyte string or pattern, fall back on unibyte matching.
51904         Problem reported by James Youngman.
51905
51906 2005-06-08  Bruno Haible  <bruno@clisp.org>
51907
51908         * modules/csharpcomp: New file.
51909         * MODULES.html.sh (C#): Add csharpcomp.
51910
51911 2005-06-08  Bruno Haible  <bruno@clisp.org>
51912
51913         * m4/csharpcomp.m4: New file, from GNU gettext.
51914
51915 2005-06-08  Bruno Haible  <bruno@clisp.org>
51916
51917         * lib/csharpcomp.h: New file, from GNU gettext.
51918         * lib/csharpcomp.c: New file, from GNU gettext.
51919         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51920
51921 2005-06-08  Bruno Haible  <bruno@clisp.org>
51922
51923         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51924         warning on mingw.
51925
51926 2005-06-07  Derek Price  <derek@ximbiot.com>
51927
51928         Sync from CVS.
51929         * lib/glob_.h: Indent nested #ifdef.
51930
51931 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51932
51933         Sync from coreutils.
51934         Use "file name" when talking about file names, instead of "filename"
51935         or "path", as per the GNU coding standards.
51936         * lib/mkdir-p.c: Renamed from makepath.c.
51937         (make_dir_parents): Renamed from make_path.  All callers changed.
51938         * lib/mkdir-p.h: Likewise.  All includers changed.
51939         * lib/filenamecat.c: Renamed from path-concat.c.
51940         (file_name_concat): Renamed from path_concat.  All callers changed.
51941         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51942         * lib/filenamecat.h: Likewise.  All includers changed.
51943         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51944         in comments or local variable names.
51945         * lib/basename.c: Likewise.
51946         * lib/canonicalize.c, canonicalize.h: Likewise.
51947         * lib/dirname.c, dirname.h: Likewise.
51948         * lib/euidaccess.c: Likewise.
51949         * lib/exclude.c: Likewise
51950         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51951         * lib/fsusage.c, fsuage.h: Likewise.
51952         * lib/fts.c, fts_.h: Likewise.
51953         * lib/getcwd.c: Likewise.
51954         * lib/getloadavg.c: Likewise.
51955         * lib/mkstemp.c: Likewise.
51956         * lib/mountlist.c, mountlist.h: Likewise.
51957         * lib/openat.c, openat.h: Likewise.
51958         * lib/readlink-stub.c: Likewise.
51959         * lib/readutmp.c, readutmp.h: Likewise.
51960         * lib/rename.c: Likewise.
51961         * lib/rmdir.c: Likewise.
51962         * lib/same.c: Likewise.
51963         * lib/savedir.c: Likewise.
51964         * lib/stripslash.c: Likewise.
51965         * lib/tempname.c: Likewise.
51966         * lib/xreadlink.c: Likewise.
51967         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51968         All uses changed.
51969         * lib/exclude.h: Likewise.
51970
51971         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51972         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51973         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51974         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51975         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51976         files have been getting away with it for years (MORE/BSD 4.3
51977         is extinct now).
51978         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51979         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51980
51981         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51982         Define to 256, not 255, as per modern POSIX.
51983
51984 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51985
51986         Sync from coreutils.
51987         Use "file name" when talking about file names, instead of "filename"
51988         or "path", as per the GNU coding standards.
51989         * MODULES.html.sh: mkdir-p renamed from makepath.
51990         filenamecat renamed from path-concat.
51991         * modules/filenamecat: Renamed from modules/path-concat.
51992         (Files): filenamecat.h and filenamecat.c renamed from
51993         path-concat.h and path-concat.c.
51994         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51995         (Include): filenamecat.h, not path-concat.h.
51996         * modules/mkdir-p: Renamed from modules/makepath.
51997         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51998         makepath.c.
51999         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52000         (Include): mkdir-p.h, not makepath.h.
52001
52002 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52003
52004         Sync from coreutils.
52005         * m4/mkdir-p.m4: Renamed from makepath.m4.
52006         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52007         Rename files from makepath.c to mkdir-p.c, and from
52008         makepath.h to mkdir-p.h.
52009         * m4/filenamecat.m4: Renamed from path-concat.m4.
52010         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52011         Rename files from path-concat.c to filenamecat.c,
52012         and from path-concat.h to filenamecat.h.
52013         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52014         "file name" in local variables or comments.
52015         * m4/rename.m4: Likewise.
52016
52017 2005-06-01  Bruno Haible  <bruno@clisp.org>
52018
52019         * modules/csharpexec: New file.
52020         * MODULES.html.sh (C#): New section.
52021
52022 2005-06-01  Bruno Haible  <bruno@clisp.org>
52023
52024         * m4/csharp.m4: New file, from GNU gettext.
52025         * m4/csharpexec.m4: New file, from GNU gettext.
52026
52027 2005-06-01  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/csharpexec.h: New file, from GNU gettext.
52030         * lib/csharpexec.c: New file, from GNU gettext.
52031         * lib/csharpexec.sh.in: New file, from GNU gettext.
52032
52033 2005-05-31  Derek Price  <derek@ximbiot.com>
52034             Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         Sync from cvs.
52037         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52038
52039 2005-05-31  Derek Price  <derek@ximbiot.com>
52040             Paul Eggert  <eggert@cs.ucla.edu>
52041
52042         Sync from cvs.
52043         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52044
52045 2005-05-29  Derek Price  <derek@ximbiot.com>
52046
52047         * config/srclist.txt (glob_.h, glob.c): Add these files.
52048
52049 2005-05-29  Derek Price  <derek@ximbiot.com>
52050
52051         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52052         * modules/glob: New file.
52053         * modules/getlogin_r: Add link to POSIX spec in description.
52054
52055 2005-05-29  Derek Price  <derek@ximbiot.com>
52056             Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         * m4/glob.m4: New file.
52059
52060 2005-05-29  Derek Price  <derek@ximbiot.com>
52061             Paul Eggert  <eggert@cs.ucla.edu>
52062
52063         * lib/glob_.h, lib/glob.c: New files.
52064
52065 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52066
52067         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52068         * modules/fts-lgpl (Depends-on): Remove gettext.
52069
52070 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52073         and don't require gt_INTTYPES_PRI.
52074
52075 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52076
52077         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52078
52079         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52080         the configuration hassle isn't worth it.
52081         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52082         (LONGEST_MODIFIER, PRIuMAX): Remove.
52083
52084 2005-05-27  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52087
52088 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52089
52090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52091         _POSIX_PTHREAD_SEMANTICS for Solaris.
52092
52093 2005-05-25  Derek Price  <derek@ximbiot.com>
52094
52095         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52096
52097 2005-05-25  Derek Price  <derek@ximbiot.com>
52098             Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52101         * lib/getlogin_r.c, getlogin_r.h: New files.
52102
52103 2005-05-25  Bruno Haible  <bruno@clisp.org>
52104             Derek Price  <derek@ximbiot.com>
52105
52106         * lib/getlogin_r.h: Simplify API documentation.
52107
52108 2005-05-23  Derek Price  <derek@ximbiot.com>
52109
52110         * modules/minmax (Files): Add m4/minmax.m4.
52111         (configure.ac): Add gl_MINMAX.
52112
52113 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52116         so that unistd-safer.h (GPL'ed code) need not be included.
52117
52118 2005-05-22  Bruno Haible  <bruno@clisp.org>
52119
52120         * m4/minmax.m4: New file.
52121         Based on a patch by Derek Price <derek@ximbiot.com>.
52122
52123 2005-05-22  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52126         (INT64_MIN): Fix definition.
52127         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52128
52129         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52130         NEED_SIGNED_INT_TYPES.
52131
52132         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52133         HAVE_SYSTEM_INTTYPES.
52134
52135 2005-05-22  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52138         Also include <sys/param.h> if it defines MIN, MAX.
52139         Based on a patch by Derek Price <derek@ximbiot.com>.
52140
52141 2005-05-21  Jim Meyering  <jim@meyering.net>
52142
52143         * modules/fts (Files): Add m4/inttypes-pri.m4.
52144         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52145
52146 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         New fts module.
52149         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52150         (setup_dir, free_dir): New functions.
52151         (enter_dir, leave_dir): Define trivial
52152         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52153         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52154         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52155         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52156         Move to fts-cycle.c.
52157         (fts_open): Use setup_dir.
52158         (fts_close): Use free_dir.
52159         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52160         This adds a label and some gotos, but the alternatives were messier.
52161         Check for memory allocation failure when entering a dir.
52162         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52163         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52164         (FTS): New member fts_cycle, that is a union that contains the
52165         old active_dir_ht and cycle_state.  All uses changed to mention
52166         fts_cycle.ht and fts_cycle.state.
52167         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52168         fts.c, with the following changes:
52169         (setup_dir, free_dir): New functions.
52170         (enter_dir): Now returns bool.  Return true if successful, false
52171         if memory exhausted.  All callers changed.
52172         Do not bother partly cleaning up on
52173         memory allocation failure; that is free_dir's job.
52174         However, free ad if hash_insert fails, to avoid memory leak.
52175         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52176         fts->fts_options to see which union member to use.
52177
52178 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52181         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52182
52183 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52186
52187 2005-05-20  Jim Meyering  <jim@meyering.net>
52188
52189         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52190         Now a macro, to pacify GCC.
52191
52192 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52193
52194         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52195         of -1.
52196
52197 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52198
52199         * lib/chown.c (rpl_chown): Return -1 on failure.
52200
52201 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52204         Don't check for stddef.h.
52205         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52206         don't use its results.
52207         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52208         since we include them unconditionally.  Don't require
52209         AM_STDBOOL_H, since stdbool is a prerequisite.
52210         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52211         since we assume C89 or better.
52212         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52213         as we don't use their results.
52214         Don't check for fchdir, memmove, memset, strrchr, as we use
52215         them unconditionally.
52216         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52217         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52218
52219 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52220
52221         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52222         Include <stddef.h> unconditionally, since we assume C89 now.
52223         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52224         * lib/fts.c: Include fts_.h first, to check interface.
52225         Do not include intprops.h; no longer needed.
52226         Include cycle-check.h and hash.h, since fts_.h no longer does.
52227         Remove unnecessary casts of closedir to void.
52228         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52229         decide whether to decrement nlinks.
52230         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52231         (FTS): Use struct hash_table * instead of Hash_table, so that
52232         we no longer need to include hash.h here.
52233
52234 2005-05-18  Jim Meyering  <jim@meyering.net>
52235
52236         * modules/dirfd (License): Change to LGPL.  Most of the code
52237         is already in the public domain.
52238
52239 2005-05-18  Jim Meyering  <jim@meyering.net>
52240
52241         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52242         Reported by Yoann Vandoorselaere.
52243
52244 2005-05-17  Jim Meyering  <jim@meyering.net>
52245
52246         * m4/fts.m4: New file, from coreutils.
52247
52248 2005-05-17  Jim Meyering  <jim@meyering.net>
52249
52250         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52251
52252 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52253
52254         Sync from coreutils.
52255         * m4/unlinkdir.m4: New file.
52256
52257 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52258
52259         Sync from coreutils.
52260         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52261         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52262         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52263         White space changes only.
52264         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52265         special.
52266         * lib/yesno.c: Include getline.h, not ctype.h.
52267         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52268         Use getline to remove arbitrary restriction on response length.
52269
52270 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * config/srclist-update: Spell out "Street" in FSF postal
52273         mail address; this is the style the FSF seems to prefer.
52274
52275         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52276         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52277         this updates FSF postal mail address.
52278
52279         Sync from coreutils.
52280         * modules/unlinkdir: New file.
52281         * modules/yesno (Depends-on): Add getline.
52282         * MODULES.html.sh (File system functions): Add unlinkdir.
52283
52284 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52287         lib/strsep.h:
52288         Change the initial comment to refer to GPL, not LGPL.
52289         gnulib-tool will change it to LGPL as needed.
52290
52291         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52292         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52293         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52294         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52295         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52296         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52297         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52298         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52299         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52300         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52301         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52302         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52303         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52304         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52305         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52306         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52307         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52308         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52309         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52310         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52311         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52312         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52313         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52314         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52315         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52316         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52317         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52318         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52319         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52320         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52321         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52322         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52323         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52324         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52325         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52326         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52327         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52328         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52329         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52330         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52331         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52332         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52333         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52334         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52335         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52336         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52337         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52338         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52339         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52340         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52341         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52342         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52343         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52344         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52345         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52346         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52347         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52348         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52349         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52350         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52351         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52352         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52353         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52354         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52355         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52356         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52357         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52358         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52359         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52360         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52361         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52362         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52363         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52364         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52365         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52366         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52367         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52368         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52369         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52370         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52371         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52372         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52373         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52374         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52375         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52376         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52377         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52378         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52379         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52380         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52381         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52382         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52383         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52384         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52385         lib/yesno.c, lib/yesno.h:
52386         Update FSF postal mail address.
52387
52388 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52389
52390         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52391         tests/test-memmem.c, tests/test-stpncpy.c:
52392         Update FSF postal mail address.
52393
52394 2005-05-13  Bruno Haible  <bruno@clisp.org>
52395
52396         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52397         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52398         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52399         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52400         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52401         Add support for 64-bit integers in the MSVC compiler.
52402
52403 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52404
52405         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52406
52407 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52408
52409         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52410
52411 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         * doc/getdate.texi (General date syntax): Don't say that date
52414         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52415         Problem reported by Nic Ferrier.
52416
52417 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52418
52419         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52420         specified in ai_socktype. Fix invalid ai_protocol
52421         check. ai_protocol is usually set to 0 or depending on
52422         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52423         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52424         ai_socktype / ai_protocol in the returned addrinfo structure.
52425
52426 2005-05-10  Simon Josefsson  <jas@extundo.com>
52427
52428         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52429         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52430
52431 2005-05-10  Karl Berry  <karl@gnu.org>
52432
52433         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52434         (from http://www.gnu.org/licenses).
52435         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52436         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52437         fdl.texi suffices.
52438
52439 2005-05-10  Karl Berry  <karl@gnu.org>
52440
52441         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52442         (COPYING.DOC): remove.
52443
52444         * config/srclist-update: new FSF address.
52445
52446 2005-05-10  Derek Price  <derek@ximbiot.com>
52447
52448         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52449         possible.
52450
52451 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52452             Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/inet_ntop: New file.
52455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52456         inet_ntop.
52457
52458 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52459             Bruno Haible  <bruno@clisp.org>
52460
52461         * m4/inet_ntop.m4: New file.
52462
52463 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52464             Bruno Haible  <bruno@clisp.org>
52465
52466         * lib/inet_ntop.h: New file.
52467         * lib/inet_ntop.c: New file, from glibc with modifications.
52468
52469 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52470
52471         * modules/time_r (License): Change to LGPL.
52472         * modules/extensions (License): Change to LGPL.  Actually,
52473         the license is more permissive than that, but currently gnulib-tool
52474         doesn't know how to handle more-permissive licenses.
52475
52476         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52477         Problem reported by Dave Love.
52478
52479 2005-05-08  Jim Meyering  <jim@meyering.net>
52480
52481         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52482         blank.
52483
52484 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * modules/argmatch (Depends-on): Add stdbool.
52487         * modules/backupfile (Depends-on): Likewise.
52488         * modules/chdir-long (Depends-on): Likewise.
52489         * modules/closeout (Depends-on): Likewise.
52490         * modules/cycle-check (Depends-on): Likewise.
52491         * modules/dirname (Depends-on): Likewise.
52492         * modules/fnmatch (Depends-on): Likewise.
52493         * modules/fsusage (Depends-on): Likewise.
52494         * modules/fwriteerror (Depends-on): Likewise.
52495         * modules/getcwd (Depends-on): Likewise.
52496         * modules/getloadavg (Depends-on): Likewise.
52497         * modules/hard-locale (Depends-on): Likewise.
52498         * modules/makepath (Depends-on): Likewise.
52499         * modules/mountlist (Depends-on): Likewise.
52500         * modules/nanosleep (Depends-on): Likewise.
52501         * modules/posixtm (Depends-on): Likewise.
52502         * modules/quotearg (Depends-on): Likewise.
52503         * modules/readtokens (Depends-on): Likewise.
52504         * modules/readtokens0 (Depends-on): Likewise.
52505         * modules/readutmp (Depends-on): Likewise.
52506         * modules/save-cwd (Depends-on): Likewise.
52507         * modules/strftime (Depends-on): Likewise.
52508         * modules/userspec (Depends-on): Likewise.
52509         * modules/utimecmp (Depends-on): Likewise.
52510         * modules/xgetcwd (Depends-on): Likewise.
52511         * modules/xnanosleep (Depends-on): Likewise.
52512         * modules/xstrtod (Depends-on): Likewise.
52513         * modules/yesno (Depends-on): Likewise.
52514
52515 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52518         needless checks.
52519
52520 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52521
52522         Merge from coreutils.  Among other things,
52523         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52524         * lib/fd-safer.c: New file.
52525         * lib/fcntl-safer.h, open-safer.c: Remove.
52526         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52527         * lib/dup-safer.c: Include unistd-safer.h first.
52528         Don't include errno.h.
52529         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52530         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52531         * lib/file-type.c: Rely on file-type.h change.
52532         * lib/getloadavg.c: Include unistd-safer.h.
52533         (getloadavg): Use safer open.
52534         * lib/getusershell.c: Include "stdio-safer.h".
52535         (getusershell): Use safer fopen.
52536         * lib/long-options.c (long_options): Use NULL rather than 0.
52537         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52538         'free'.
52539         * lib/modechange.c: Likewise.
52540         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52541         (MODE_DONE): New constant.
52542         (struct mode_change): Remove 'next' member.
52543         (make_node_op_equals): New function; like the old one of the
52544         same name, except it allocates an array.
52545         (mode_compile, mode_create_from_ref): Use it.
52546         (mode_compile): Allocate result as an array, not a linked list.
52547         Parse octal string ourself, so that we catch mistakes like "+0".
52548         (mode_adjust): Arg is an array, not a linked list.
52549         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52550         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52551         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52552         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52553         Remove.  This is now stat-macros.h's job.
52554         (talloc): Remove.  All callers replaced by xalloc, so that
52555         our invokers don't have to worry about reporting memory failures.
52556         (make_node_op_equals): Remove.
52557         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52558         New constants.
52559         (struct mode_change): Moved here from modechange.h.
52560         (mode_append_entry): Remove.
52561         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52562         apps to have incorrect behavior.  Use simpler algorithm for head
52563         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52564         Detect more invalid usages rather than having somewhat-random behavior.
52565         Don't insert an "a=" action, as that leads to incorrect behavior.
52566         (mode_compile, mode_create_from_ref): Return NULL on error instead
52567         of an enum, since now there's only one way to have an error.  All
52568         callers changed.
52569         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52570         at the correct time.  Simplify calculation of "+u" and its ilk.
52571         Don't mishandle "+X".
52572         (mode_free): Remove "register" and localize decls.
52573         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52574         (struct mode_change): Move to modechange.c; callers don't
52575         need to see this stuff.
52576         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52577         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52578         (mode_change, mode_adjust): Reflect the new signatures noted above.
52579         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52580         that might redefine system include files.
52581         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52582         (my_usleep): Use NULL rather than (void *) 0.
52583         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52584         Use siginterrupt to specify that system calls should be interrupted.
52585         (rpl_nanosleep): Move initialization of suspended closer to call of
52586         my_usleep.
52587         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52588         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52589         (desirable_utmp_entry): New function.
52590         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52591         using x2nrealloc, to simplify logic.
52592         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52593         size calculation.  Do not assume utmp file is a regular file.
52594         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52595         (READ_UTMP_CHECK_PIDS): New constant.
52596         * lib/save-cwd.c: Include unistd-safer.h.
52597         (save_cwd): Use fd_safer.
52598         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52599         [!_LIBC] Include "stat-macros.h" instead.
52600         * lib/unistd-safer.h (fd_safer): New decl.
52601
52602 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52603
52604         * modules/getloadavg (Depends-on): Add unistd-safer.
52605         * modules/getusershell (Depends-on): Add stdio-safer.
52606         * modules/lstat (Depends-on): Remove xalloc.
52607         * modules/mkstemp (Depends-on): Add stat-macros.
52608         * modules/modechange (Depends-on): Remove xstrtol.
52609         Add stat-macros, xalloc.
52610         * modules/save-cwd (Depends-on): Add unistd-safer.
52611         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52612         * modules/unistd-safer (Files): Add lib/fd-safer.c
52613         (Makefile.am): Remove lib_SOURCES.
52614
52615         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52616         Remove fcntl-safer; unistd-safer supersedes it.
52617
52618 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52621         AC_HEADER_STAT.
52622         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52623         (gl_PREREQ_CHOWN): Remove.
52624         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52625         it.  Don't require AC_HEADER_STAT.
52626         (gl_PREREQ_LSTAT): Remove.
52627         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52628         Don't require AC_HEADER_STAT.
52629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52630         (gl_PREREQ_RMDIR): Remove.
52631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52632         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52633         the stat-macros module a prerequisite.
52634         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52635         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52636         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52637         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52638         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52639         variable names.
52640         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52641         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52642         variable prefixes.
52643         * m4/fcntl-safer.m4: Remove.
52644         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52645         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52646         Invoke gl_PREREQ_FD_SAFER.
52647         (gl_PREREQ_FD_SAFER): New macro.
52648         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52649         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52650         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52651         Remove duplicate call to AC_LIBOBJ(readutmp).
52652         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52653
52654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52655         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52656
52657 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * MODULES.html.sh (Misc): Add byteswap.
52660
52661 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52662
52663         * modules/getcwd (Depends-on): Add extensions.
52664         * modules/openat (Depends-on): Likewise.
52665
52666 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52667
52668         * modules/byteswap: New file.
52669
52670 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52671
52672         * m4/byteswap.m4: New file.
52673
52674 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52675
52676         * lib/byteswap_.h: New file.
52677
52678 2005-04-25  Karl Berry  <karl@gnu.org>
52679
52680         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52681
52682 2005-04-25  Albert Chin  <china@thewrittenword.com>
52683
52684         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52685         Toolkit C bug.
52686
52687 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52688
52689         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52690         (func_ln_if_changed) Remove forcibly for no error message
52691         in case file does not exist.
52692
52693 2005-04-19  Simon Josefsson  <jas@extundo.com>
52694
52695         * gnulib-tool (Options): Make --symlink mean --symbolic.
52696
52697 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52698
52699         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52700
52701 2005-04-16  Simon Josefsson  <jas@extundo.com>
52702
52703         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52704
52705 2005-04-15  Simon Josefsson  <jas@extundo.com>
52706
52707         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52708
52709 2005-04-15  Simon Josefsson  <jas@extundo.com>
52710
52711         * gnulib-tool: Rename --symlink to --symbolic.
52712
52713 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52714
52715         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52716         symbolic links to files instead of copying/moving.  Add --aux-dir,
52717         specifying directory relative --dir where auxiliary build tools
52718         are placed.
52719
52720 2005-04-14  Bruno Haible  <bruno@clisp.org>
52721
52722         * modules/allocsa (License): Change to LGPL.
52723         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52724
52725 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52726
52727         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52728         that "UTC +1 second" continues to work.  Problem reported
52729         by Dmitry V. Levin.
52730         (relunit_snumber): New rule.
52731         (relunit): Use it.
52732
52733 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * lib/getdate.y (universal_time_zone_table): New constant.
52736         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52737         universal_time_zone_table.
52738         (lookup_zone): Prefer universal_time_zone_table to
52739         local_time_zone_table, so that "GMT" time stamps are allowed in
52740         London during the summer.  Problem reported by Ian Abbott.
52741
52742 2005-04-12  Jim Meyering  <jim@meyering.net>
52743
52744         * lib/human.c (humblock): Set *options even when returning due to
52745         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52746         warning from gcc-4.
52747
52748 2005-04-09  Jim Meyering  <jim@meyering.net>
52749
52750         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52751         -Wuninitialized: initialize tm0.tm_year.
52752
52753 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52754
52755         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52756         count, since there's no maximum.  All uses changed.
52757         Add member dsts_seen.
52758         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52759         not being INT_MAX.
52760         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52761         Use pc_rels_seen to decide whther a date is absolute.
52762
52763         * lib/getdate.y (number): Don't overwrite year.
52764         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52765         check.
52766
52767 2005-04-02  Simon Josefsson  <jas@extundo.com>
52768
52769         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52770         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52771
52772 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52773
52774         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52775         where no absolute path name can be longer than PATH_MAX.
52776
52777 2005-03-27  Jim Meyering  <jim@meyering.net>
52778
52779         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52780
52781 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52782
52783         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52784         "one's complement" -> "ones' complement" in comment, as per Knuth.
52785         "value of type" -> "type or expression" in comment.
52786         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52787
52788 2005-03-26  Jim Meyering  <jim@meyering.net>
52789
52790         Comment nits.
52791         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52792         Correct typos: s/or/of/.
52793
52794 2005-03-26  Jim Meyering  <jim@meyering.net>
52795
52796         * modules/check-include-files: Move to ../ and rename to...
52797         * check-module: ...this.
52798
52799 2005-03-25  Jim Meyering  <jim@meyering.net>
52800
52801         * modules/xvasprintf (Files): Add xalloc.h.
52802
52803 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52804
52805         * modules/gettext (Files): config/config.rpath ->
52806         build-aux/config.rpath
52807         * modules/iconv (Files): Likewise.
52808         Problem reported by Oskar Liljeblad.
52809
52810 2005-03-23  Jim Meyering  <jim@meyering.net>
52811
52812         * modules/check-include-files: New script to check for
52813         missing dependencies, multiple includes, etc.
52814
52815         * modules/c-strtold (Depends-on): Add xalloc.
52816         * modules/c-strtod (Depends-on): Add xalloc.
52817         * modules/hash (Depends-on): Add xalloc.
52818         (Files): Remove lib/xalloc.h.
52819
52820         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52821         * modules/userspec (Files): Add lib/inttostr.h.
52822
52823 2005-03-23  Jim Meyering  <jim@meyering.net>
52824
52825         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52826
52827 2005-03-22  Jim Meyering  <jim@meyering.net>
52828
52829         * modules/stat-macros: New module.
52830         * modules/canonicalize, modules/euidaccess, modules/file-type,
52831         * modules/filemode, modules/lchown, modules/makepath,
52832         * modules/rmdir, modules/stat: Depend on new stat-macros module
52833         rather than listing lib/stat-macros.h manually.
52834         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52835
52836 2005-03-22  Jim Meyering  <jim@meyering.net>
52837
52838         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52839
52840 2005-03-22  Bruno Haible  <bruno@clisp.org>
52841
52842         * config/srclist.txt: Replace target directory 'config' with
52843         'build-aux'.
52844         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52845         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52846         ../build-aux/.
52847
52848 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52849
52850         * modules/chdir-long (Depends-on): Add mempcpy.
52851
52852         * modules/acl, modules/backupfile, modules/c-strtod,
52853         modules/c-strtold, modules/canon-host, modules/canonicalize,
52854         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52855         modules/exclude, modules/exitfail, modules/file-type,
52856         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52857         modules/getdate, modules/getline, modules/getpagesize,
52858         modules/getpass, modules/getugroups, modules/group-member,
52859         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52860         modules/inttostr, modules/long-options, modules/makepath,
52861         modules/md5, modules/memcasecmp, modules/memcoll,
52862         modules/modechange, modules/mountlist, modules/path-concat,
52863         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52864         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52865         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52866         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52867         modules/strftime, modules/strndup, modules/strverscmp,
52868         modules/timespec, modules/unlocked-io, modules/userspec,
52869         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52870         modules/yesno:
52871         Remove lib_SOURCES line from Makefile.am section, as this is now
52872         done automatically by the corresponding Autoconf macro.
52873
52874 2005-03-21  Jim Meyering  <jim@meyering.net>
52875
52876         Changes imported from coreutils.
52877
52878         * lib/cycle-check.c: Don't include xalloc.h.
52879
52880         * lib/path-concat.c: Don't include assert.h.
52881         (path_concat): Remove assertion that would have triggered
52882         for ABASE starting with more than one slash.
52883         Reported by Andreas Schwab.
52884
52885         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52886         properly when ABASE is an absolute file name.
52887         Correct the description of this function.
52888         Include <assert.h>.
52889         Add an assertion and a test driver.
52890         This fixes a bug introduced on 2004-07-02.
52891         Andreas Schwab reported the resulting failure of cp --parents:
52892         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52893
52894 2005-03-21  Jim Meyering  <jim@meyering.net>
52895
52896         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52897         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52898
52899 2005-03-21  Jim Meyering  <jim@meyering.net>
52900         and  Paul Eggert  <eggert@cs.ucla.edu>
52901
52902         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52903         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52904         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52905         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52906         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52907         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52908         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52909         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52910         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52911         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52912         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52913         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52914         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52915         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52916         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52917         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52918         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52919         for these modules.
52920
52921 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52922
52923         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52924         (which shouldn't happen), generate nothing instead of returning 0
52925         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52926
52927 2005-03-16  Bruno Haible  <bruno@clisp.org>
52928
52929         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52930         HAVE_LONGLONG_64BIT.
52931
52932 2005-03-16  Bruno Haible  <bruno@clisp.org>
52933
52934         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52935         HAVE_LONGLONG_64BIT.
52936
52937 2005-03-16  Bruno Haible  <bruno@clisp.org>
52938
52939         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52940         HAVE_LONGLONG_64BIT.
52941
52942 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52945         reliably distinguish strftime failure from empty output on POSIX
52946         hosts.
52947
52948 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52951         (iconv_string): Don't guess a size-zero buffer, as that might cause
52952         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52953         result would be 'too large', where 'too large' is (heuristically)
52954         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52955         overflow concerns.  This will prevent some unwanted malloc failures
52956         when the inputs are very large.
52957
52958 2005-03-15  Karl Berry  <karl@gnu.org>
52959
52960         * config/srclist.txt (config.rpath): from gettext.
52961         * config/config.rpath: update.
52962
52963 2005-03-15  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52966         to 'negate'.
52967
52968         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52969         variable.
52970
52971         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52972         results.
52973
52974 2005-03-14  Simon Josefsson  <jas@extundo.com>
52975
52976         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52977         <fx@gnu.org>.
52978
52979 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52982         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52983         intprops.h.
52984         * lib/strtol.c: Likewise.
52985
52986 2005-03-14  Jim Meyering  <jim@meyering.net>
52987
52988         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52989         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52990         to be nonzero so that we (and caller) can detect the difference
52991         between a valid zero-length expansion and an error return, even
52992         when the underlying strftime fails before writing anything into
52993         that location.
52994
52995 2005-03-14  Bruno Haible  <bruno@clisp.org>
52996
52997         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52998         Update from GNU gettext 0.14.3.
52999
53000 2005-03-10  Jim Meyering  <jim@meyering.net>
53001
53002         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53003
53004 2005-03-10  Jim Meyering  <jim@meyering.net>
53005
53006         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53007         so that this module works on systems without fchdir.
53008
53009 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53010
53011         Factor int-properties macros into a single file, except for
53012         glibc-related files.
53013         * lib/intprops.h: New file.
53014         * lib/getloadavg.c: Include it instead of limits.h.
53015         (INT_STRLEN_BOUND): Remove.
53016         * lib/human.c: Include intprops.h.
53017         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53018         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53019         302/1000.
53020         * lib/inttostr.h: Include intprops.h instead of limits.h.
53021         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53022         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53023         for consistency with intprops.h.
53024         (time_t_is_integer, twos_complement_arithmetic): Use them.
53025         * lib/sig2str.h: Include <signal.h>, intprops.h.
53026         (INT_STRLEN_BOUND): Remove.
53027         * lib/strftime.c (TYPE_SIGNED): Remove.
53028         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53029         * lib/strtol.c: Adjust comments to match intprops.h.
53030         * lib/userspec.c: Include intprops.h.
53031         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53032         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53033         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53034         instead of rolling our own expressions.
53035         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53036
53037         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53038         instead of int.
53039         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53040         the right thing even if adding 1900 would overflow.  Similarly
53041         for tm_mon + 1 and tm_yday + 1.
53042         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53043         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53044         (DO_SIGNED_NUMBER): New macro.
53045         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53046
53047 2005-03-07  Bruno Haible  <bruno@clisp.org>
53048
53049         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53050
53051 2005-03-07  Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53054
53055 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53056
53057         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53058         (func_import): Only replace files via --import when they have actually
53059         changed.
53060
53061 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53062
53063         * m4/mmap-anon.m4: New file.
53064         * m4/pagealign_alloc.m4: New file.
53065
53066 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53067             Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/pagealign_alloc: New file.
53070         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53071
53072 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53073             Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/pagealign_alloc.h: New file.
53076         * lib/pagealign_alloc.c: New file.
53077
53078 2005-03-03  Bruno Haible  <bruno@clisp.org>
53079
53080         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53081         Use an all-permissive copyright notice, recommended by RMS.
53082
53083 2005-03-02  Bruno Haible  <bruno@clisp.org>
53084
53085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53086         of AIX, the replacement has to be done only after <string.h> is
53087         included, therefore not in config.h. stpncpy.h does the replacement,
53088         and stpncpy.c uses it.
53089
53090 2005-03-02  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53093         stpncpy.c uses it.
53094
53095 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53098         The workaround isn't strictly needed for POSIX conformance, and
53099         it's too much of a pain to configure and maintain.  We'll ask
53100         people to fix their kernels instead.
53101         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53102         (NANOSLEEP_BUG_WORKAROUND): Remove.
53103         (xnanosleep): Remove the workaround.
53104
53105 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53106
53107         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53108         Reported by Derek Price.
53109         (Include): Add "timespec.h".
53110
53111         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53112
53113 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53114
53115         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53116         to detect nanosleep bug.
53117
53118 2005-03-01  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53121
53122 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53123
53124         * modules/gethrxtime: New file.
53125         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53126         (Depends-on): Add gethrxtime.
53127         (configure.ac): Add gl_XNANOSLEEP.
53128         (Makefile.am): Remove lib_SOURCES line.
53129
53130 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53133         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53134
53135 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53138         * lib/timespec.h (gettime): Return void, since it always
53139         succeeds now.  All uses changed.
53140         * lib/gettime.c (gettime) Likewise.
53141         [HAVE_NANOTIME]: Prefer nanotime.
53142         Assume gettimeofday succeeds, as POSIX requires.
53143         Assime time () succeeds, since other code already does.
53144         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53145         (timespec_subtract): Remove.
53146         (NANOSLEEP_BUG_WORKAROUND): New constant.
53147         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53148         things considerably.  Use it only on GNU/Linux hosts, since the
53149         workaround shouldn't be needed elsewhere.
53150
53151 2005-02-24  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/gettext (Files): Add m4/glibc2.m4.
53154
53155 2005-02-24  Bruno Haible  <bruno@clisp.org>
53156
53157         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53158         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53159         * m4/progtest.m4:
53160         Update from GNU gettext 0.14.2.
53161         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53162
53163 2005-02-24  Bruno Haible  <bruno@clisp.org>
53164
53165         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53166         * lib/config.charset: Update from GNU gettext 0.14.2.
53167
53168 2005-02-24  Bruno Haible  <bruno@clisp.org>
53169
53170         * lib/gettext.h: Update from GNU gettext 0.14.2.
53171
53172 2005-02-23  Simon Josefsson  <jas@extundo.com>
53173
53174         * m4/iconvme.m4: New file.
53175
53176 2005-02-23  Jim Meyering  <jim@meyering.net>
53177
53178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53179         change.
53180         Thanks to Bruno Haible for catching it.
53181
53182 2005-02-22  Simon Josefsson  <jas@extundo.com>
53183
53184         * modules/iconvme: New file.
53185
53186         * MODULES.html.sh: Add iconvme.
53187
53188 2005-02-22  Simon Josefsson  <jas@extundo.com>
53189
53190         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53191
53192 2005-02-22  Simon Josefsson  <jas@extundo.com>
53193
53194         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53195
53196 2005-02-22  Jim Meyering  <jim@meyering.net>
53197
53198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53199         s/ifndef/ifdef/.
53200
53201 2005-02-20  Neil Conway  <neilc@samurai.com>
53202
53203         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53204         returned by OSX/Darwin if the specified buffer is not large
53205         enough for the hostname.
53206
53207 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53208
53209         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53210         pass it to _help, otherwise the latter coredumps trying to
53211         dereference state.root_argp.
53212
53213 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53214
53215         * modules/chdir-long (Depends-on): Add memrchr.
53216         * modules/memrchr (Files): Add lib/memrchr.h.
53217         (Include): "memrchr.h".
53218
53219 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53220
53221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53222
53223 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * lib/memrchr.h: New file.
53226         * lib/chdir-long.c: Include it.
53227         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53228         Don't bother including stddef.h.
53229
53230 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53233         inclusion.
53234         Include <sys/types.h>, for dev_t.
53235         (ME_DUMMY, ME_REMOTE): Move from here....
53236         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53237         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53238         Dmitry V. Levin.
53239         Include mountlist.h first, to test the interface.
53240
53241 2005-01-29  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/progname.c (program_name): Initialize.
53244         Needed when linking statically on MacOS X.
53245
53246 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         Sync from coreutils.
53249         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53250         (Depends-on): Add c-strtod.
53251         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53252
53253 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         Sync from coreutils.
53256         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53257
53258         Remove files that are specific to coreutils.
53259         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53260
53261 2005-01-28  Bruno Haible  <bruno@clisp.org>
53262
53263         * modules/javacomp: New file.
53264         * MODULES.html.sh (Java): Add javacomp.
53265
53266 2005-01-28  Bruno Haible  <bruno@clisp.org>
53267
53268         * m4/javacomp.m4: New file, from GNU gettext.
53269
53270 2005-01-28  Bruno Haible  <bruno@clisp.org>
53271
53272         * lib/javacomp.sh.in: New file, from GNU gettext.
53273         * lib/javacomp.h: New file, from GNU gettext.
53274         * lib/javacomp.c: New file, from GNU gettext.
53275
53276 2005-01-26  Simon Josefsson  <jas@extundo.com>
53277
53278         * lib/gai_strerror.c: Use GPL in header.
53279
53280 2005-01-26  Bruno Haible  <bruno@clisp.org>
53281
53282         * modules/javaexec: New file.
53283         * MODULES.html.sh (Java): Add javaexec.
53284
53285 2005-01-26  Bruno Haible  <bruno@clisp.org>
53286
53287         * m4/javaexec.m4: New file, from GNU gettext.
53288
53289 2005-01-26  Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/javaexec.sh.in: New file, from GNU gettext.
53292         * lib/javaexec.h: New file, from GNU gettext.
53293         * lib/javaexec.c: New file, from GNU gettext.
53294
53295 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53296
53297         * modules/lchown (Depends-on): Remove lchown.h
53298
53299 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53300
53301         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53302         must be defined if the header file was not found, in order
53303         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53304
53305 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53306
53307         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53308         initializers for struct pentry_state.
53309         (__argp_error): Check return value of __asprintf
53310         (__argp_failure): Translate error message
53311
53312         * lib/argp-parse.c: Removed braces around the expansion of N_()
53313
53314 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53317         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53318         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53319         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53320         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53321         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53322         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53323         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53324         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53325         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53326         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53327         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53328         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53329         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53330         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53331         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53332         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53333         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53334         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53335         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53336         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53337         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53338         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53339         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53340         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53341         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53342         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53343         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53344         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53345         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53346         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53347         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53348         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53349         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53350         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53351         Use an all-permissive copyright notice, recommended by RMS.
53352
53353 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * modules/chdir-long (Depends-on): Remove mempcpy.
53356
53357 2005-01-21  Jim Meyering  <jim@meyering.net>
53358
53359         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53360         same value as for Solaris 9.
53361
53362         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53363         component length.  This included changing the parameter to be
53364         of type `char *' rather than `char const *'.
53365         * lib/chdir-long.h (chdir_long): Update prototype.
53366
53367         * lib/openat.c (fdopendir, fstatat): New functions.
53368         * lib/openat.h: Include headers required for use of DIR and struct
53369         stat.
53370         [AT_SYMLINK_NOFOLLOW]: Define.
53371         (fdopendir, fstatat): Add prototypes.
53372
53373 2005-01-21  Bruno Haible  <bruno@clisp.org>
53374
53375         * modules/classpath: New file.
53376         * MODULES.html.sh (Java): Add classpath.
53377
53378 2005-01-21  Bruno Haible  <bruno@clisp.org>
53379
53380         * lib/classpath.h: New file, from GNU gettext.
53381         * lib/classpath.c: New file, from GNU gettext.
53382
53383 2005-01-20  Simon Josefsson  <jas@extundo.com>
53384
53385         * modules/version-etc-fsf: New file.
53386
53387 2005-01-20  Simon Josefsson  <jas@extundo.com>
53388
53389         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53390         * lib/version-etc.c: Remove version_etc_copyright.
53391         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53392         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53393
53394 2005-01-20  Simon Josefsson  <jas@extundo.com>
53395
53396         * lib/base64.h (isbase64): Add.
53397
53398         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53399         using a unsigned prototype, don't inline.
53400         (base64_decode): Use it.
53401
53402 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53403
53404         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53405         it.
53406
53407 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * lib/save-cwd.c (save_cwd): Remove code to support the case
53410         where fchdir is missing or flaky.
53411
53412 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53413
53414         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53415
53416 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53419         AC_LIBSOURCES now does this.
53420         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53421         with new ullong_max module.
53422
53423 2005-01-19  Bruno Haible  <bruno@clisp.org>
53424
53425         * modules/sh-quote: New file.
53426         * MODULES.html.sh (Executing programs): Add sh-quote.
53427
53428 2005-01-19  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/sh-quote.h: New file, from GNU gettext.
53431         * lib/sh-quote.c: New file, from GNU gettext.
53432
53433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53434
53435         Merge from coreutils.
53436         * m4/ullong_max.m4: New file.
53437         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53438         (gl_MACROS): Assume localeconv exists.
53439
53440 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         Merge changes from coreutils, as described below in several
53443         changelogs dated today.
53444
53445         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53446         (O_DIRECTORY): Remove; not needed here, since "." must be
53447         a directory.  All uses removed.
53448         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53449         universal on Suns, and we also need to test for IRIX.
53450         Revamp code to use 'if' rather than '#if'.
53451         Avoid unnecessary comparison of cwd->desc to 0.
53452
53453         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53454         for known valid error numbers rather than observed invalid ones.
53455
53456 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * modules/ullong_max: New file.
53459
53460         * modules/chdir-long, modules/openat: New files.
53461         * modules/save-cwd (Depends-on): Depend on chdir-long.
53462         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53463
53464 2005-01-18  Jim Meyering  <jim@meyering.net>
53465
53466         Merge from coreutils.
53467         * m4/chdir-long.m4, m4/openat.m4: New files.
53468         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53469         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53470         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53471         is sane and DOES follow symlinks.  Besides, testing 20 different
53472         systems found no broken chown implementations.
53473         Prompted by a change in rsync's copy of this macro.
53474         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53475
53476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53477
53478         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53479         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53480         NULL-means-set-to-current-time semantics.
53481         Remove temporary file immediately, rather than waiting
53482         for configure's at-exit trap code to do it.
53483
53484 2005-01-18  Jim Meyering  <jim@meyering.net>
53485
53486         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53487
53488         * lib/utimens.c (futimens): Account for the fact that futimes
53489         can also fail with errno == ENOSYS or errno == ENOENT.
53490         Patch from Dmitry V. Levin.
53491
53492         Change the name of the robust chdir function from chdir to chdir_long.
53493         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53494         (restore_cwd): Use chdir_long, not chdir.
53495         * lib/chdir-long.c: Renamed from chdir.c.
53496         * lib/chdir-long.h: Renamed from chdir.h.
53497         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53498         Hurd.
53499
53500 2005-01-18  Bruno Haible  <bruno@clisp.org>
53501
53502         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53503         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53504         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53505         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53506         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53507         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53508         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53509         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53510         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53511         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53512         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53513         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53514         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53515         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53516         Use an all-permissive copyright notice, recommended by RMS.
53517
53518 2005-01-18  Bob Proulx  <bob@proulx.com>
53519
53520         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53521         simplify offsetof() macro construct to avoid compile failure with
53522         native HP-UX 11.0 ANSI C compiler.
53523
53524 2005-01-17  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53527         redundant because stpncpy.m4 takes care of it.
53528
53529 2005-01-17  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53532
53533 2005-01-17  Bruno Haible  <bruno@clisp.org>
53534
53535         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53536         used.
53537
53538 2005-01-17  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/fwriteerror.h (fwriteerror): Change specification to include
53541         fclose.
53542         * lib/fwriteerror.c: Include <stdbool.h>.
53543         (fwriteerror): At the end, close the file stream. Record whether
53544         stdout was already closed.
53545
53546 2005-01-17  Bruno Haible  <bruno@clisp.org>
53547
53548         * lib/execute.c (environ): Declare if needed.
53549         * lib/pipe.c (environ): Likewise.
53550         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53551
53552 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53553
53554         * modules/argp: Depend on vsnprintf
53555
53556 2005-01-10  Jim Meyering  <jim@meyering.net>
53557
53558         * modules/closeout (Depends-on): Add atexit.
53559
53560 2005-01-06  Bruno Haible  <bruno@clisp.org>
53561
53562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53563
53564 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53567         definitions to be after all include files, to avoid collisions.
53568         Problem reported by Bob Proulx.
53569
53570 2005-01-04  Jim Meyering  <jim@meyering.net>
53571
53572         Changes imported from coreutils.
53573         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53574         as the mkstemp template, use a temporary directory and an
53575         8.3-friendly template to avoid trouble on systems like DJGPP.
53576         Reported by Juan M. Guerrero via Stepan Kasal.
53577         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53578         close. Remove the temporary directory right away, rather than waiting
53579         for configure's at-exit trap code to do it.
53580         Suggestion from Stepan Kasal.
53581
53582 2005-01-01  Simon Josefsson  <jas@extundo.com>
53583
53584         * gnulib-tool: Print #include directives when --import'ing.
53585
53586 2004-12-28  Simon Josefsson  <jas@extundo.com>
53587
53588         * tests/test-base64.c: Include required header files.  Remove
53589         unused variables.
53590
53591 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * modules/error (Depends-on): Remove gettext.
53594
53595 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53598         not needed.  This removes a dependency on the gettext module.
53599         [defined _LIBC]: Do not include <libintl.h>; not needed.
53600
53601 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53604         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53605
53606 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53609         HAVE_DECL_STRTOLD.
53610
53611 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * modules/getdate (Depends-on): Remove alloca-opt.
53614
53615 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53616
53617         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53618
53619 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53620
53621         * lib/argp-parse.c: Include <stddef.h>.
53622         (alignof, alignto): New macros.
53623         (parser_init): Don't assume that void * is aligned sufficiently
53624         for struct option.
53625
53626         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53627         need to extend the stack.
53628         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53629         large.
53630
53631 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53632
53633         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53634
53635 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53638         (2004-10-24) change.  Apparently this was a false alarm.
53639
53640         * modules/getdate: Depend on alloca-opt, not alloca.
53641
53642 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53645         Remove now-obsolete comment about AIX.
53646         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53647         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53648         (YYMAXDEPTH): New macro.
53649
53650 2004-12-18  Simon Josefsson  <jas@extundo.com>
53651
53652         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53653
53654 2004-12-18  Bruno Haible  <bruno@clisp.org>
53655
53656         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53657
53658 2004-12-18  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/fatal-signal.c (fatal_signals): Make non-const.
53661         (init_fatal_signals): New function.
53662         (uninstall_handlers, install_handlers): Ignore signals that were set to
53663         SIG_IGN.
53664         (at_fatal_signal): Call init_fatal_signals.
53665         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53666         SIG_IGN.
53667         Reported by Paul Eggert.
53668
53669 2004-12-18  Bruno Haible  <bruno@clisp.org>
53670
53671         * doc/alloca.texi: New file.
53672         * doc/alloca-opt.texi: New file.
53673
53674 2004-12-17  Jim Meyering  <jim@meyering.net>
53675
53676         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53677         Otherwise, install-sh could exit with improper exit status when
53678         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53679
53680 2004-12-16  Simon Josefsson  <jas@extundo.com>
53681
53682         * tests/test-base64.c: Add license.
53683
53684 2004-12-15  Stepan Kasal  <address@hidden>
53685
53686         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53687
53688 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * modules/getcwd (Files): Add m4/d-ino.m4.
53691         Suggested by Mark D. Baushke.
53692
53693 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * lib/getdate.y (textint): New member "negative".
53696         (time_zone_hhmm): New function.
53697         Expect 14 shift-reduce conflicts, not 13.
53698         (o_colon_minutes): New rule.
53699         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53700         (yylex): Set the "negative" member of signed numbers.
53701
53702 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53703
53704         * doc/getdate.texi (Time of day items, Time zone items):
53705         Describe new formats +00:00, UTC+00:00.
53706
53707 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53710         spurious "-l"s.  Problem reported by Stepan Kasal.
53711
53712 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53715         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53716
53717 2004-12-04  Simon Josefsson  <jas@extundo.com>
53718
53719         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53720         Vandoorselaere <yoann@prelude-ids.org>.
53721
53722 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53723
53724         Changes imported from coreutils.
53725         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53726         exist.
53727         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53728
53729 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         Changes imported from coreutils.
53732         * lib/hard-locale.c: Assume <locale.h> exists.
53733         Include "strdup.h".
53734         (GLIBC_VERSION): New macro.
53735         (hard_locale): Assume setlocale exists.
53736         Rewrite to avoid #ifdef.
53737         Use strdup rather than malloc + strcpy.
53738         * lib/human.c: Assume <locale.h> exists.
53739         (human_readable): Assume localeconv exists.
53740
53741 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53742
53743         * modules/hard-locale (Depends-on): Add strdup.
53744
53745 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53746
53747         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53748         convert T2, not T.  (Imported from libc.)
53749
53750 2004-11-30  Simon Josefsson  <jas@extundo.com>
53751
53752         * modules/restrict (License): Change to LGPL.
53753
53754 2004-11-30  Simon Josefsson  <jas@extundo.com>
53755
53756         * m4/restrict.m4: Add copyright and copying conditions.
53757
53758 2004-11-30  Simon Josefsson  <jas@extundo.com>
53759
53760         * m4/base64.m4: New file.
53761
53762 2004-11-30  Simon Josefsson  <jas@extundo.com>
53763
53764         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53765         base64.
53766
53767         * tests/test-base64.c: New file.
53768
53769         * modules/base64: New file.
53770
53771 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53774         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53775
53776         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53777
53778 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53781         (__getcwd.c): Don't restore errno; glibc doesn't.
53782         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53783         first, falling back to our code only if its results look suspicious.
53784         Ensure that the resulting buffer is only as large as necessary.
53785
53786         * lib/readutmp.c: Include readutmp.h first.
53787         Include <errno.h>, since readutmp.h no longer does that.
53788         * lib/readutmp.h: Don't include <errno.h>,
53789         <sys/param.h>, <time.h>; not needed to establish interface.
53790         (errno): Remove decl.
53791         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53792         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53793         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53794
53795 2004-11-28  Simon Josefsson  <jas@extundo.com>
53796
53797         * lib/base64.h, base64.c: New file.
53798
53799 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53800
53801         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53802
53803 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53806         (Depends-on): Remove pathmax, same.  Add mempcpy.
53807         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53808         (Makefile.am): Append getcwd.h to lib_SOURCES.
53809         (Include): Add getcwd.h.
53810         (Maintainer): Change from Jim Meyering to "all, glibc",
53811         since getdate now uses intended-for-glibc code.
53812         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53813         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53814
53815 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53816
53817         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53818         HP's ANSI C compiler.
53819         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53820         Declaring int functions causes warnings on some modern systems and
53821         shouldn't be needed to compile on ancient ones.
53822         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53823         defined.
53824
53825         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53826         with the following changes.
53827         (__set_errno): Parenthesize properly.
53828         Include <stdbool.h>.
53829         (MIN, MAX, MATCHING_INO): New macros.
53830         (__getcwd): Define with prototype, not K&R form.
53831         Use heuristics to allocate default buffer on stack if possible.
53832         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53833         behavior, and to avoid the PATH_MAX limit when computing
53834         ../../../../...
53835         Use MATCHING_INO to compare inode number to file.
53836         Check for arithmetic overflow in size calculations.
53837         Fix bug in reallocation of dot array that caused getcwd to fail
53838         on directories nested deeper than 75.
53839         Be more careful about saving errno on error.
53840         Do not use realloc; use only free+malloc, as this is a bit
53841         more flexible and avoids a needless copy operation.
53842         Do not inspect st_dev and st_ino for symbolic links; POSIX
53843         doesn't specify the latter.
53844         Check for closedir errors.
53845         Avoid needless casts.
53846         Use "#ifdef weak_alias" around weak_alias, to be like other
53847         glibc code.
53848         The following changes to getcwd.c have effect only when used in
53849         gnulib; they have no effect inside glibc proper.
53850         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53851         as alloca isn't used.
53852         (alloca, __alloca): Likewise.
53853         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53854         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53855         unconditionally, as gnulib assumes C89 or better.
53856         Do not include <sys/param.h>.
53857         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53858         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53859         better.
53860         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53861         Include <dirent.h> in a way that is compatible with modern Autoconf.
53862         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53863         New macros, if not already defined.
53864         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53865         Use "_LIBC", not "defined _LIBC", for consistency.
53866         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53867         a mempcpy module.
53868         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53869         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53870         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53871         credit only to Jim Meyering and adjust the copyright dates.
53872         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53873         <stdlib.h>, <unistd.h>, "pathmax.h".
53874         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53875         (INITIAL_BUFFER_SIZE): Remove.
53876         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53877
53878 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53879
53880         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53881         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53882         Use the _ONCE methods, for efficiency.
53883         Check for fcntl.h.  In test program, include <errno.h>
53884         and <fcntl.h> if available.  Remove old K&R cruft from
53885         test program.  Check for common errors in GNU/Linux,
53886         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53887         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53888         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53889         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53890         name accordingly.
53891         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53892         accommodate new getcwd.c.
53893         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53894         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53895         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53896         that's all we need now.
53897
53898 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53899
53900         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53901         argp-parse.c depends on getopt internals, that means we should
53902         always use our getopt, to be on the safe side.
53903         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53904         order not to spoil the result of an eventual previous invocation
53905         of gl_GETOPT_SUBSTITUTE.
53906
53907 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53908
53909         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53910         redefinition warnings. To avoid them, include the defines
53911         in `#if !defined __need_getopt ... #endif'. The only place
53912         where __getopt_argv_const is used is in definitions
53913         of getopt_long and getopt_long_only below, which are as well
53914         protected by `#ifndef __need_getopt'.
53915         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53916         __need_getopt after including <stdio.h> and <unistd.h> These
53917         headers might have defined it.
53918
53919 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53920
53921         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53922
53923 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53926         (futimens): New function, which uses futimes if available.
53927         (futimens, utimens): Support timespec==NULL, with same semantics
53928         as utime and utimens.
53929         * lib/utimens.h (futimens): New decl.
53930
53931 2004-11-23  Jim Meyering  <jim@meyering.net>
53932
53933         * lib/getopt_.h: Remove trailing blanks.
53934
53935 2004-11-23  Jim Meyering  <jim@meyering.net>
53936
53937         * lib/__fpending.c: Add comment.
53938
53939 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * modules/canonicalize (Depends-on): Add xreadlink.
53942         Problem reported by James Youngman.
53943
53944 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53945
53946         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53947         New macros.
53948         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53949         optopt): Use them instead of invoking ## directly; otherwise, the
53950         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53951
53952 2004-11-19  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/strtok_r.c: Move comments from here...
53955         * lib/strtok_r.h: ... to here.
53956
53957 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53958
53959         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53960         implementations that mishandle size_t overflow.
53961
53962 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53963
53964         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53965         might fail.  Problem reported by Yoann Vandoorselaere.
53966         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53967         implementations that mishandle size_t overflow.
53968
53969 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53970
53971         * modules/canon-host (Depends-on): Add strdup.
53972
53973 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53974
53975         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53976
53977 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * lib/canon-host.c: Include "strdup.h".
53980         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53981         Use strdup instead of malloc/strcpy to duplicate strings.
53982
53983         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53984         (human_space_before_unit): New constant.
53985         * lib/human.c (human_readable): Support it.
53986
53987         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53988         (xgetcwd): Set errno correctly when failing.
53989         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53990         the failure is actually due to a PATH_MAX problem.
53991
53992         Further getopt changes to make it more likely that glibc will
53993         buy the changes back.
53994         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53995         (getopt): Use it, so to preserve glibc semantic
53996         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53997         when compiling for libc.
53998         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53999         (getopt_long, getopt_long_only): Use it.
54000
54001         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54002         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54003         (getopt): Argv is now char * const *, as per standard.
54004         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54005         not char *__getopt_argv_const *.
54006         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54007         _getopt_long_only_r): Likewise.
54008         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54009         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54010         _getopt_long_r, _getopt_long_only_r): Likewise.
54011         * lib/getopt_.h (__getopt_argv_const): Remove.
54012         (getopt): Argv is now char * const *, as per standard.
54013
54014         * lib/getdate.y (tORDINAL): New token.
54015         (day, relunit): Allow it for relative times.
54016         (relative_time_table): Use tORDINAL for ordinals.
54017
54018 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54019
54020         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54021         Document that "second" isn't allowed as an ordinal number.
54022
54023 2004-11-16  Jim Meyering  <jim@meyering.net>
54024
54025         * modules/closeout (Depends-on): Add fpending.
54026
54027 2004-11-15  Jim Meyering  <jim@meyering.net>
54028
54029         * lib/closeout.c: Include "__fpending.h" once again.
54030         Include <stdbool.h>.
54031         (close_stdout): Don't fail just because stdout was closed initially,
54032         since some programs don't write to stdout in the normal course of
54033         operation (other than --version and --help), and we don't want this
54034         function to make e.g. `touch file >&-' fail.
54035         But do fail if it was closed and someone has tried to write to it.
54036         E.g., `printf foo >&-' must fail.
54037
54038 2004-11-13  Jim Meyering  <jim@meyering.net>
54039
54040         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54041
54042 2004-11-12  Simon Josefsson  <jas@extundo.com>
54043
54044         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54045         small doc fix is still pending.
54046
54047 2004-11-11  Simon Josefsson  <jas@extundo.com>
54048
54049         * modules/strtok_r: New file.
54050
54051         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54052         strtok_r.
54053
54054 2004-11-11  Simon Josefsson  <jas@extundo.com>
54055
54056         * m4/strtok_r.m4: New file.
54057
54058         * m4/getopt.m4: Replace opterr.
54059
54060 2004-11-11  Simon Josefsson  <jas@extundo.com>
54061
54062         * lib/strtok_r.h, strtok_r.c: New file.
54063
54064 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54065
54066         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54067         of replacing opterr, getopt, etc.  This should handle the
54068         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54069
54070 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54071
54072         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54073         we can stop lying to compilers about the constness of argv when we
54074         are compiled outside glibc.
54075         (getopt, getopt_long, getopt_long_only): Use it.
54076         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54077         _getopt_internal, getopt): Likewise.
54078         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54079         _getopt_long_only_r): Likewise.
54080         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54081         _getopt_long_r, _getopt_long_only_r): Likewise.
54082
54083         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54084         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54085         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54086         the other external symbols.
54087         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54088         declaration, since the above renaming now works around collisions.
54089
54090 2004-11-11  Jim Meyering  <jim@meyering.net>
54091
54092         * lib/linebreak.c: Remove trailing blanks.
54093         * lib/alloca_.h: Likewise.
54094         * lib/acosl.c: Likewise.
54095         * lib/euidaccess.c: Likewise.
54096         * lib/allocsa.h: Likewise.
54097
54098 2004-11-10  Simon Josefsson  <jas@extundo.com>
54099
54100         * m4/getaddrinfo.m4: New file.
54101
54102 2004-11-10  Simon Josefsson  <jas@extundo.com>
54103
54104         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54105
54106 2004-11-10  Simon Josefsson  <jas@extundo.com>
54107
54108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54109         getaddrinfo.
54110
54111         * modules/getaddrinfo: New file.
54112
54113 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54114
54115         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54116
54117 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54118
54119         * lib/mktime.c (SHR): New macro, which is a portable
54120         substitute for >> that should work even on Crays.
54121         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54122         Problem reported by Mark D. Baushke in
54123         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54124         * lib/getdate.y (SHR): Likewise.
54125         (tm_diff): Use it.
54126         * lib/strftime.c (SHR): Likewise.
54127         (tm_diff): Use it.
54128         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54129         quote_these_too, so that right shifts are well defined.  All uses
54130         changed.
54131
54132 2004-11-10  Jim Meyering  <jim@meyering.net>
54133
54134         Ensure that no close failure goes unreported.
54135         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54136         return early when it seems there's nothing to flush.
54137         Don't include __fpending.h.
54138
54139 2004-11-10  Jim Meyering  <jim@meyering.net>
54140
54141         * modules/closeout (Depends-on): Remove fpending.
54142
54143 2004-11-10  Jim Meyering  <jim@meyering.net>
54144
54145         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54146
54147 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54150         gl_FUNC_STRFTIME.
54151         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54152         and AC_REQUIRE when possible, to avoid duplicate checks.
54153         Check for <wchar.h>.
54154
54155 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54156
54157         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54158
54159 2004-11-09  Bruno Haible  <bruno@clisp.org>
54160
54161         * m4/sockpfaf.m4: New file.
54162
54163 2004-11-05  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54166         Reported by Mark D. Baushke <mdb@cvshome.org>.
54167
54168 2004-11-04  Bruno Haible  <bruno@clisp.org>
54169
54170         2004-09-11  Bruno Haible  <bruno@clisp.org>
54171                 * allocsa.valgrind: New file.
54172         2004-02-06  Bruno Haible  <bruno@clisp.org>
54173                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54174                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54175                 Reported by Christopher Seip <chris.seip@hp.com>.
54176
54177 2004-11-04  Bruno Haible  <bruno@clisp.org>
54178
54179         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54180         (Makefile.am): Distribute it.
54181
54182 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54183
54184         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54185         with errno == ERANGE if the buffer is too small.
54186         Problem reported by Mark D. Baushke.
54187
54188 2004-11-03  Albert Chin  <china@thewrittenword.com>
54189             Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54192         equivalent, substitute $ac_type for equivalent type rather than
54193         blindly using uint32_t *always* which won't work if uint32_t is not
54194         available.  Define _UINT32_T to work around typedef of uint32_t if
54195         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54196         2.5.1.
54197
54198 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54199
54200         * m4/jm-macros.m4: Sync from coreutils.
54201         (gl_MACROS): Check for mbrlen, for pathchk.
54202         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54203
54204 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         * lib/xreadlink.c (MAXSIZE): New macro.
54207         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54208         size does not exceed MAXSIZE.  Avoid cast.
54209         As suggested by Mark D. Baushke in
54210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54211         if readlink fails with buffer size just under MAXSIZE, try again
54212         with MAXSIZE.
54213
54214 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54217
54218 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54219         and  Paul Eggert  <eggert@cs.ucla.edu>
54220
54221         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54222         (get_date): Overparenthesize to avoid GCC warning.
54223
54224 2004-11-02  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54227         returns void.
54228
54229 2004-11-02  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54232         function returns void.
54233
54234 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54237         fflush_unlocked, flockfile, funlockfile, funlockfile,
54238         fputs_unlocked, putc_unlocked.
54239
54240 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54241
54242         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54243         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54244         already declared.
54245
54246 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * modules/getdate (Files): Add doc/getdate.texi.
54249         (Depends-on): Add setenv, xalloc.
54250
54251 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * lib/getdate.y: Add support for TZ="foo" within a date string.
54254         Fix some bugs near time_t boundaries.  Reject dates with
54255         out-of-range components, e.g., "Sept 31".
54256         Include <stdlib.h>, "setenv.h", "xalloc.h".
54257         (ISDIGIT_LOCALE): Remove; unused.
54258         Note that the TZ and time functions used here are not reentrant.
54259         (mktime_ok, get_tz): New functions.
54260         (TZBUFSIZE): New constant.
54261         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54262         This requires that we sometimes generate our own TZ="XXX..." setting.
54263
54264 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54265
54266         * doc/getdate.texi: New file, from coreutils with modifications for
54267         the new TZ parsing.
54268
54269 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54270
54271         * lib/mktime.c (not_equal_tm): Remove redundant check.
54272
54273 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         * modules/regex (lib_SOURCES): Add regex.c.
54276         Reported by James Youngman in
54277         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54278
54279 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54280
54281         * lib/getdate.y: Use Bison 1.875 features, and some minor
54282         code cleanups.  This change does not affect semantics.
54283         Don't include <stdlib.h>; no longer needed.
54284         Don't include unlocked-io.h; only the "#if TEST" code uses
54285         stdio, and performance isn't crucial there.
54286         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54287         Bison 1.875 features as described below.
54288         All uses of "PC." replaced by "pc->".
54289         (YYSTYPE): Add a forward declaration.
54290         (yylex, yyerror): Use full prototypes in forward decls.
54291         Use "%pure-parser" rather than obsolescent "%pure_parser".
54292         Use %parse-param and %lex-param instead of obsolescent
54293         YYPARSE_PARAM and YYLEX_PARAM.
54294         (meridian_table, month_and_day_table, time_units_table,
54295         relative_time_table, time_zone_table, military_table,
54296         lookup_zone, lookup_word, get_date):
54297         Use NULL instead of 0 where appropriate.
54298         (to_hour): Avoid abort (), to avoid a dependency on
54299         stdlib.h.
54300         (yyerror, yylex): Now accepts parser_control * arg.
54301         (main) [TEST]: Use '\0' rather than 0 for char.
54302
54303 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54306
54307 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54308
54309         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54310         It's now the caller's responsibility to handle the case where
54311         !HAVE_GETPAGESIZE && !defined getpagesize.
54312
54313         * lib/mktime.c (leapyear): Arg is long int, not int.
54314
54315 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54318
54319 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54320
54321         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54322         missing.  Problem reported by James Youngman.
54323
54324 2004-10-16  Simon Josefsson  <jas@extundo.com>
54325
54326         * gnulib-tool: Fix comments.  Fix parse problem.
54327         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54328
54329 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54330
54331         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54332         implementation of getopt_long.  Problem reported by Alexander Taler in:
54333         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54334
54335 2004-10-15  Bruno Haible  <bruno@clisp.org>
54336
54337         * gnulib-tool: Untabify. Initialize supplied_libname.
54338         (func_usage): More homogenous output.
54339         (func_modules_transitive_closure, func_modules_to_filelist,
54340         func_emit_lib_Makefile_am): New functions.
54341         (func_import): New function, extracted from big case statement. Use
54342         func_get_license, func_modules_transitive_closure,
54343         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54344         opt_lgpl. Don't use test -a, as it's not portable.
54345         (func_create_testdir): Use func_modules_transitive_closure,
54346         func_modules_to_filelist, func_emit_lib_Makefile_am.
54347
54348 2004-10-15  Bruno Haible  <bruno@clisp.org>
54349
54350         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54351
54352 2004-10-15  Bruno Haible  <bruno@clisp.org>
54353
54354         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54355         the portions belonging to each module.
54356         Suggested by Derek Robert Price <derek@ximbiot.com>.
54357
54358 2004-10-12  Simon Josefsson  <jas@extundo.com>
54359
54360         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54361         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54362         to real functions.
54363
54364 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54365
54366         * modules/vsnprintf: New file.
54367
54368 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54369
54370         * m4/vsnprintf.m4: New file.
54371
54372 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54373
54374         * lib/vsnprintf.h: New file.
54375         * lib/vsnprintf.c: New file.
54376
54377 2004-10-11  Bruno Haible  <bruno@clisp.org>
54378
54379         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54380         vsnprintf.
54381
54382 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54383
54384         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54385
54386 2004-10-07  Bruno Haible  <bruno@clisp.org>
54387
54388         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54389         fits into the provided buffer.
54390
54391 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54392
54393         * lib/diacrit.c, diacrit.h: Add GPL notice.
54394
54395         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54396         notice.
54397         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54398         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54399         This avoids a potential constant-folding bug.
54400
54401 2004-10-05  Bruno Haible  <bruno@clisp.org>
54402
54403         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54404         for the declaration of strsep.
54405
54406 2004-10-05  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54409
54410 2004-10-04  Simon Josefsson  <jas@extundo.com>
54411
54412         * modules/memmem: New file.
54413         * tests/test-memmem.c: New file.
54414         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54415
54416 2004-10-04  Simon Josefsson  <jas@extundo.com>
54417
54418         * m4/memmem.m4: New file.
54419
54420 2004-10-04  Simon Josefsson  <jas@extundo.com>
54421
54422         * lib/memmem.h: New file.
54423         * lib/memmem.c: New file, taken from glibc.
54424
54425 2004-10-04  Simon Josefsson  <jas@extundo.com>
54426
54427         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54428         '#ifdef USE_UNLOCKED_IO'.
54429
54430 2004-10-04  Simon Josefsson  <jas@extundo.com>
54431
54432         * config/srclist.txt: Add memmem from glibc.
54433
54434 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54437
54438         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54439         modules/exclude, modules/getdate, modules/getline,
54440         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54441         modules/getusershell, modules/linebuffer, modules/md5,
54442         modules/mountlist, modules/posixtm, modules/readtokens,
54443         modules/readutmp, modules/regex, modules/sha1,
54444         modules/version-etc, modules/yesno:
54445         Remove dependency on unlocked-io.
54446
54447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54450
54451         * m4/unlocked-io.m4: Add copyright notice.
54452         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54453
54454 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54455
54456         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54457         * lib/xmalloc.c (xmemdup): Likewise.
54458         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54459         XFREE): Remove these long-obsolescent macros.
54460         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54461         * lib/xstrdup.c: Remove.
54462
54463         * lib/regex.c (re_comp): Cast gettext return value to char *,
54464         Problem reported by Martin Neitzel via Mark D. Baushke.
54465
54466 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54469         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54470         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54471         regex.c, sha1.c, version-etc.c, yesno.c:
54472         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54473         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54474         the includer's responsibility.
54475
54476         Sync from coreutils.
54477
54478         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54479         points to the start of a string, as the C Standard says the
54480         resulting behavior is undefined.
54481
54482         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54483         simple -> simple_backups, numbered_existing ->
54484         numbered_existing_backups, numbered -> numbered_backups
54485         to avoid shadowing problems.  All uses changed.
54486         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54487         * lib/backupfile.c (check_extension, numbered_backup):
54488         Rename locals to avoid shadowing 'basename'.
54489         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54490         once.
54491
54492         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54493         * lib/.cvsignore: Add getopt.h.
54494
54495 2004-10-04  Bruno Haible  <bruno@clisp.org>
54496
54497         * modules/README: New file.
54498         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54499         not a module.
54500
54501 2004-10-02  Jim Meyering  <jim@meyering.net>
54502
54503         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54504
54505 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54506
54507         * modules/strsep: New file.
54508
54509 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54510
54511         * m4/strsep.m4: New file.
54512
54513 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54514
54515         * lib/strsep.h: New file.
54516         * lib/strsep.c: New file.
54517
54518 2004-10-01  Simon Josefsson  <jas@extundo.com>
54519
54520         * lib/snprintf.c (snprintf): Handle size==0.
54521
54522 2004-10-01  Simon Josefsson  <jas@extundo.com>
54523             Bruno Haible  <bruno@clisp.org>
54524
54525         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54526         (snprintf): Declare 'args'.
54527
54528 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         * lib/snprintf.c: Remove comments as to why each header is needed.
54531
54532 2004-10-01  Bruno Haible  <bruno@clisp.org>
54533
54534         * MODULES.html.sh: Add strsep.
54535
54536 2004-09-30  Simon Josefsson  <jas@extundo.com>
54537
54538         * modules/snprintf: New file.
54539
54540 2004-09-30  Simon Josefsson  <jas@extundo.com>
54541
54542         * m4/snprintf.m4: New file.
54543
54544 2004-09-30  Simon Josefsson  <jas@extundo.com>
54545
54546         * lib/snprintf.h, lib/snprintf.c: New files.
54547
54548 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54549
54550         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54551         (hol_entry_help): Never translate an empty string.
54552         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54553         * lib/argp.h (OPTION_NO_TRANS): New option.
54554
54555 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54556
54557         * modules/argp (Maintainer): Replace Simon Josefsson
54558         by Sergey Poznyakoff.
54559
54560 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54563         changes merged back into glibc.
54564
54565 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54566
54567         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54568
54569 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54570
54571         * lib/xvasprintf.c: Include xalloc.h.
54572         (xvasprintf): Use xalloc_die, not xmalloc_die.
54573
54574 2004-09-29  Bruno Haible  <bruno@clisp.org>
54575
54576         * modules/alloca-opt: New file, derived from modules/alloca.
54577         * modules/allocsa: Depend on alloca-opt instead of alloca.
54578         * modules/setenv: Likewise.
54579         * modules/vasnprintf: Likewise.
54580         * MODULES.html.sh: Add alloca-opt.
54581
54582 2004-09-28  Simon Josefsson  <jas@extundo.com>
54583
54584         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54585         LGPL, and to replace license template from GPL to LGPL.
54586
54587 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54588
54589         * modules/dummy: Change license to LGPL.
54590
54591 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54594
54595 2004-09-24  Simon Josefsson  <jas@extundo.com>
54596
54597         * modules/minmax (License): Change from GPL to LGPL.
54598
54599 2004-09-23  Simon Josefsson  <jas@extundo.com>
54600
54601         * gnulib-tool (--import): Typo.
54602
54603 2004-09-23  Simon Josefsson  <jas@extundo.com>
54604
54605         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54606
54607 2004-09-22  Bruno Haible  <bruno@clisp.org>
54608
54609         * modules/*: Add 'License' field.
54610         * gnulib-tool: Accept --extract-license option.
54611         (func_get_license): New function.
54612
54613 2004-09-21  Bruno Haible  <bruno@clisp.org>
54614
54615         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54616         Reported by Simon Josefsson.
54617
54618 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54621         gl_AC_TYPE_LONG_LONG.
54622
54623 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54626
54627 2004-09-18  Simon Josefsson  <jas@extundo.com>
54628         and  Paul Eggert  <eggert@cs.ucla.edu>
54629
54630         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54631         calls with autoreconf.  Define GL_LIB.
54632
54633 2004-09-14  Karl Berry  <karl@gnu.org>
54634
54635         * config/srclist.txt: unsync setenv.c, sigh.
54636
54637 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54640         Problem reported by Bruno Haible in:
54641         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54642
54643 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         * config/srclist.txt: Comment out argp-pvh.c.
54646
54647 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54650         in case some system header has #define'd it.  Problem reported by
54651         Soeren D. Schulze in
54652         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54653
54654 2004-09-09  Karl Berry  <karl@gnu.org>
54655
54656         * regex.[ch]: delete from the root.  These were supposed to be
54657                 synced with emacs cvs, but this has not happened for about
54658                 a year, and anyway nothing else uses emacs regex.[ch].
54659                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54660                 lib/regex[.ch] is untouched.
54661
54662 2004-09-09  Bruno Haible  <bruno@clisp.org>
54663
54664         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54665
54666 2004-09-09  Bruno Haible  <bruno@clisp.org>
54667
54668         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54669         modifications.
54670         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54671
54672 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54673
54674         * modules/xvasprintf: New file.
54675         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54676
54677 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54678
54679         * lib/xvasprintf.h: New file.
54680         * lib/xvasprintf.c: New file.
54681         * lib/xasprintf.c: New file.
54682
54683 2004-09-08  Bruno Haible  <bruno@clisp.org>
54684
54685         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54686
54687 2004-09-08  Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54690         length is > INT_MAX.
54691         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54692         more.
54693
54694 2004-09-08  Bruno Haible  <bruno@clisp.org>
54695
54696         * lib/stdint_.h: New file, taken from GNU clisp.
54697
54698 2004-09-08  Bruno Haible  <bruno@clisp.org>
54699             Oskar Liljeblad  <oskar@osk.mine.nu>
54700
54701         * modules/stdint: New file.
54702         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54703
54704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         Import from coreutils.
54707         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54708         strings on unbounded length.  alloca's performance benefits aren't
54709         that important here.
54710         (V_STRDUP): Remove.
54711         (parse_with_separator): New function, with most of the internals
54712         of the old parse_user_spec.  Allow user to omit both user and group,
54713         for compatibility with FreeBSD.
54714         Clone only the user name, not the entire spec.
54715         Do not set *uid, *gid unless entirely successful.
54716         Avoid memory leak in some failing cases.
54717         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54718         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54719         (parse_user_spec): Rewrite to use parse_with_separator.
54720
54721 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54722
54723         * modules/userspec: Don't depend on alloca.
54724
54725 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54728
54729 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54732         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54733         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54734
54735 2004-08-16  Simon Josefsson  <jas@extundo.com>
54736
54737         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54738         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54739         Add --dry-run for --import.
54740         Let user provided command line parameters override configure.ac
54741         settings.
54742
54743 2004-08-12  Simon Josefsson  <jas@extundo.com>
54744
54745         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54746         as discussed with Paul Eggert in threads rooted at
54747         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54748         and
54749         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54750         Before, the test was empty, and relied on ELIDE_CODE in source
54751         code.)
54752         (gl_PREREQ_GETOPT): New macro.
54753         (gl_GETOPT): Use them.
54754
54755 2004-08-12  Simon Josefsson  <jas@extundo.com>
54756
54757         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54758         * lib/getopt_.h: Renamed from getopt.h.
54759
54760 2004-08-12  Simon Josefsson  <jas@extundo.com>
54761
54762         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54763         Change default library name from libfoo to libgnu.
54764         Now, if you have a configure.ac that says:
54765                 gl_SOURCE_BASE(gl)
54766                 gl_M4_BASE(gl/m4)
54767                 gl_MODULES(error getopt etcetera)
54768                 gl_INIT
54769         you can import all you need by running:
54770                 ../gnulib/gnulib-tool --import
54771
54772         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54773         (Makefile.am): Rewrite, use logic from argz.
54774         (Include): Use <getopt.h> instead of "getopt.h".
54775
54776 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54777
54778         * modules/argp (Files): Add m4/unlocked-io.m4.
54779         (Depends-on): Add extensions.
54780
54781 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54784         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54785         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54786         Check for program_invocation_name, program_invocation_short_name,
54787         flockfile, funlockfile, features.h, _getopt_long_only_r.
54788
54789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54792         its complicated substitute.
54793         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54794         and program_invocation_name.
54795         (__argp_basename) [!_LIBC]: Remove; the only use was
54796         replaced by its body.
54797         (__argp_short_program_name): Change condition from
54798         !defined __argp_short_program_name to
54799         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54800         to match argp-namefrob.h.
54801         (__argp_failure): Don't assume strerror_r returns char *.
54802         * lib/argp-parse.c (N_): Define unconditionally.
54803         (argp_default_options): Fill out initializers with 0 to avoid
54804         gcc warnings.
54805
54806 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54809         getopt1.c.
54810
54811 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54812
54813         Merge from coreutils.
54814
54815         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54816
54817         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54818         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54819
54820 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54821
54822         Merge from coreutils.
54823
54824         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54825         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54826         for Reliant Unix 5.43.
54827
54828         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54829         (union fooround): Use uintmax_t, not long int.
54830         The rest is a merge from libc:
54831         [defined _LIBC]: Include <shlib-compat.h>.
54832         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54833
54834         * lib/settime.c (settime): Recode to avoid warning with
54835         Sun Forte C 6U2.
54836
54837         * lib/strverscmp.c: Convert to UTF-8.
54838
54839 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54842         m4/uintmax_t.m4.
54843
54844 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         * modules/xalloc-die: New file.
54847         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54848
54849         * modules/md5 (Files): Add m4/uint32_t.m4.
54850         * modules/sha1: Renamed from modules/sha.
54851         (Files):
54852         Rename lib/sha.h to lib/sha1.h.
54853         Rename lib/sha.c to lib/sha1.c.
54854         Rename m4/sha.m4 to m4/sha1.m4.
54855         (lib_SOURCES): Likewise.
54856         (configure.ac): Rename gl_SHA to gl_SHA1.
54857         (Include): sha.h -> sha1.h.
54858
54859 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54860
54861         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54862         * m4/sha1.m4: Renamed from sha.m4.
54863         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54864
54865 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54866
54867         * lib/obstack.h (obstack_empty_p):
54868         Don't assume that chunk->contents is suitably aligned.
54869         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54870         Likewise. Problem reported by Benno in
54871         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54872
54873         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54874         readable.  This could be improved further but it'd take some work.
54875
54876 2004-08-08  Simon Josefsson  <jas@extundo.com>
54877
54878         * modules/xgethostname (Depends-on): Remove exit and error (not
54879         used).
54880
54881         * modules/getpass-gnu: Add getpass.h.
54882         (Depends-on): Add stdbool.
54883         * modules/getpass: Add getpass.h.
54884
54885 2004-08-08  Simon Josefsson  <jas@extundo.com>
54886
54887         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54888         Check getpass declaration.
54889
54890 2004-08-08  Simon Josefsson  <jas@extundo.com>
54891
54892         * lib/xgethostname.c: Don't include error.h (not used).
54893
54894         * lib/getpass.h: Add.
54895         * lib/getpass.c: Include getpass.h first.
54896
54897 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54898
54899         * lib/xalloc-die.c: New file.
54900         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54901         All uses removed.
54902         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54903         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54904         xalloc-die.c.
54905         (_, N_, xalloc_die): Move to xalloc-die.c.
54906         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54907         so that we needn't mess with xalloc_msg_memory_exhausted.
54908
54909         * lib/sha1.h: Renamed from sha.h.
54910         (SHA1_H): Renamed from _SHA_H.
54911         (sha1_ctx): Renamed from sha_ctx.
54912         (sha1_init_ctx): Renamed from sha_init_ctx.
54913         (sha1_process_block): Renamed from sha_process_block.
54914         (sha1_process_bytes): Renamed from sha_process_bytes.
54915         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54916         (sha1_read_ctx): Renamed from sha_read_ctx.
54917         (sha1_stream): Renamed from sha_stream.
54918         (sha1_buffer): Renamed from sha_buffer.
54919         * lib/sha1.c: Likewise; renamed from sha.c.
54920         Do not include <sys/types.h>.
54921         Include <stddef.h> rather than <stdlib.h>.
54922
54923 2004-08-08  Bruno Haible  <bruno@clisp.org>
54924
54925         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54926         FILESYSTEM_PREFIX_LEN.
54927         * lib/progreloc.c: Likewise.
54928         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54929
54930 2004-08-06  Simon Josefsson  <jas@extundo.com>
54931
54932         * modules/progname (Depends-on): Don't depend on stdbool.
54933
54934 2004-08-06  Simon Josefsson  <jas@extundo.com>
54935
54936         * modules/getsubopt: New file.
54937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54938         getsubopt.
54939
54940 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         More merge from coreutils.
54943
54944         * m4/utimens.m4, m4/utimecmp.m4: New files.
54945         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54946         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54947         prereq.m4, sha.m4: Import changes from coreutils.
54948
54949 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54950
54951         More merge from coreutils.
54952         * modules/raise, modules/readtokens0, modules/utimens:
54953         * modules/utimecmp, module/xnanosleep: New files.
54954         * modules/strftime: Add lib/strftime.h.
54955         Change include from <time.h> to "strftime.h".
54956         * modules/yesno: Add lib/yesno.h.
54957         * modules/backupfile: Remove lib/addext.c.
54958         * modules/euidaccess: Add stat-macros.h.
54959         * modules/canonicalize, modules/euidaccess,
54960         modules/filemode, modules/lchown, modules/makepath,
54961         modules/rmdir, modules/stat: Likewise.
54962
54963 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         Merge from tar.
54966         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54967         SIZE_MAX is a valid preprocessor constant.
54968         (__argp_basename): Change from "#ifndef _LIBC"
54969         to "#ifndef __argp_short_program_name", so that
54970         we don't compile these functions for tar.
54971
54972         More merges from coreutils.
54973         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54974         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54975         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54976         * lib/addext.c: Remove; no longer needed.
54977         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54978         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54979         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54980         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54981         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54982         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54983         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54984         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54985         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54986         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54987         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54988         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54989         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54990         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54991         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54992         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54993         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54994         Import changes from coreutils.
54995
54996 2004-08-05  Simon Josefsson  <jas@extundo.com>
54997
54998         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54999
55000 2004-08-05  Simon Josefsson  <jas@extundo.com>
55001
55002         * m4/getsubopt.m4: New file.
55003
55004 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         Merge from coreutils.
55007
55008         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55009         * m4/getcwd-path-max.m4: New files.
55010
55011         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55012         FILESYSTEM_PREFIX_LEN ->
55013         FILE_SYSTEM_PREFIX_LEN.
55014         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55015         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55016         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55017         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55018
55019         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55020         prerequisite modules now handle the DOS stuff.
55021         Don't check for unistd.h.
55022
55023 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         Merge from coreutils.
55026
55027         * lib/.gdb-history: Remove; this doesn't belong here.
55028
55029         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55030         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55031         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55032         * lib/getcwd.c: New files.
55033
55034         * lib/dirname.h: Include <stdbool.h>.
55035         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55036         for consistency with POSIX terminology.  All uses changed.
55037         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55038         (strip_trailing_slashes): Use bool for booleans.
55039         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55040
55041         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55042         sometimes returns a positive errno value even when it succeeds.
55043         (print_errno_message) [!LIBC]: Fall back on strerror if
55044         __strerror_r fails.
55045
55046         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55047         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55048         (longest_relative_suffix): New function.
55049         (path_concat): Use it.  Assume first argument is not NULL.
55050         Port to DOS.  Omit redundant separators.
55051         Report an error instead of returning NULL.
55052         Use mempcpy instead of memcpy.
55053         (xpath_concat): Remove: not declared or used.
55054
55055         * lib/same.h: Include <stdbool.h>
55056         (same_name): Return bool, not int.
55057         * lib/same.c (same_name): Likewise.
55058         (errno): Don't declare; we assume C89 or better now.
55059
55060         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55061         if not already defined.
55062
55063         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55064         * lib/dup-safer.c (errno): Likewise.
55065
55066 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55067
55068         Merge from coreutils.
55069         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55070         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55071         * modules/path-concat: Don't depend on strdup.
55072
55073 2004-08-03  Simon Josefsson  <jas@extundo.com>
55074
55075         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55076         * lib/progname.h: Don't include stdbool.h.
55077
55078 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55079
55080         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55081         * MODULES.html.sh (func_all_modules): Remove fatal.
55082
55083 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55084
55085         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55086
55087 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55088
55089         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55090         working.
55091
55092 2004-08-02  Simon Josefsson  <jas@extundo.com>
55093
55094         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55095         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55096         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55097
55098 2004-08-01  Simon Josefsson  <jas@extundo.com>
55099
55100         * lib/xgetdomainname.c: Include stdlib.h, for free().
55101
55102 2004-07-19  Bruno Haible  <bruno@clisp.org>
55103
55104         * MODULES.html.sh (func_all_modules): Add dummy.
55105
55106 2004-07-16  Simon Josefsson  <jas@extundo.com>
55107
55108         * modules/dummy: New file.
55109
55110 2004-07-16  Simon Josefsson  <jas@extundo.com>
55111
55112         * lib/dummy.c: New file.
55113
55114 2004-07-16  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/backupfile.h: Add extern "C" for C++.
55117         * lib/closeout.h: Likewise.
55118         * lib/copy-file.h: Likewise.
55119         * lib/findprog.h: Likewise.
55120         * lib/full-write.h: Likewise.
55121         * lib/pathname.h: Likewise.
55122         * lib/progname.h: Likewise.
55123         * lib/stpcpy.h: Likewise.
55124         * lib/stpncpy.h: Likewise.
55125         * lib/strcase.h: Likewise.
55126         * lib/strstr.h: Likewise.
55127         * lib/xalloc.h: Likewise.
55128
55129         * lib/mbswidth.h: Add extern "C" for C++.
55130         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55131
55132 2004-07-13  Robert Millan  <robertmh@gnu.org>
55133
55134         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55135
55136 2004-07-09  Simon Josefsson  <jas@extundo.com>
55137
55138         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55139         failed without this.)
55140
55141 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * modules/chown (Files): Add lib/fchown-stub.c, since
55144         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55145
55146 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55147
55148         * lib/fchown-stub.c: New file.
55149
55150 2004-06-24  Jim Meyering  <jim@meyering.net>
55151
55152         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55153
55154 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55155
55156         * modules/argz: Omit "#include".
55157
55158         * MODULES.html.sh (func_all_modules): Add calloc, to match
55159         2004-06-01 addition of calloc module.
55160
55161 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55162
55163         * m4/argz.m4: New file, which is autoupdated from libtool.
55164
55165 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55166
55167         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55168         libtool.
55169
55170 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55171
55172         * config/srclist-update: Don't insist on "USA." before the
55173         close-comment, as libtool omits the period and puts the */ on a
55174         separate line.
55175         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55176         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55177
55178 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55179
55180         * modules/argz: New file.
55181         * MODULES.html.sh (func_all_modules): Add argz.
55182
55183 2004-06-12  Jim Meyering  <jim@meyering.net>
55184         and  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         * modules/hash (Files): Add lib/xalloc.h.
55187         * modules/pipe (Depends-on): Add wait-process.
55188         * modules/stat (Depends-on): Add xalloc.
55189         * modules/userspec (Files): Add lib/userspec.h.
55190         * modules/xstrto
55191
55192         Upgrade from gettext-0.13.
55193         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55194         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55195         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55196
55197 2004-06-10  Jim Meyering  <jim@meyering.net>
55198
55199         * lib/calloc.c: New file.
55200
55201 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55202
55203         * lib/getdate.y (yylex): Allow space between sign and number.
55204         Problem reported by Dan Jacobson.
55205
55206 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55207
55208         Merge from coreutils CVS.
55209
55210         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55211         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55212         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55213         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55214         xstrtol.m4: Fix copyright date and/or serial number.
55215
55216         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55217         See if we need an fchown replacement.
55218         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55219         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55220         and use the replacement function if we detect either defect.
55221
55222         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55223         gl_UTIMECMP.
55224
55225 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55226         and  Jim Meyering  <jim@meyering.net>
55227
55228         Merge from coreutils CVS.
55229
55230         * lib/stat-macros.h: New file, with contents from file-type.h
55231         and coreutils' system.h.
55232         * lib/file-type.c: Include "stat-macros.h".
55233         * lib/file-type.h (file_type): Move all macro definitions to new file,
55234         stat-macros.h.
55235
55236         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55237         Wrap old code with this conditional.
55238         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55239         function that does not dereference symlinks.
55240         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55241
55242         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55243         dependency problems.
55244         (xreadlink): Accept new arg SIZE, for efficiency.
55245         All decls and uses changed.
55246         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55247
55248         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55249         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55250
55251         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55252         sysexits.h.
55253
55254 2004-06-01  Jim Meyering  <jim@meyering.net>
55255
55256         * m4/calloc.m4: New file.
55257
55258 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55261         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55262         Also, fix a typo in a diagnostic.
55263
55264 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55267         or AC_FUNC_REALLOC.
55268
55269 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55272         macros to be defined.
55273         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55274         the allocator returns NULL because the requested size is zero.
55275
55276 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55277
55278         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55279         var.  Add comment explaining why libc still defines it.  This
55280         merges the following patch from glibc:
55281         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55282
55283 2004-05-20  Andreas Schwab  <schwab@suse.de>
55284
55285         * m4/free.m4: Replace free if it not known to work, not the other
55286         way round.
55287
55288 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55291         present in glibc since revision 1.1 of this file.
55292         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55293         obstack_alignment_mask, obstack_alloc, obstack_base,
55294         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55295         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55296         obstack_grow0, obstack_init, obstack_int_grow,
55297         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55298         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55299         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55300         nonexistent functions.
55301
55302 2004-05-18  Karl Berry  <karl@gnu.org>
55303
55304         * config/srclist.txt: break link for vasnprintf.c.
55305
55306 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         Port obstack to the AS/400, where pointers are 16 bytes wide and
55309         you cannot cast an integer to a valid pointer.  This patch is
55310         currently waiting to be integrated into glibc; see
55311         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55312
55313         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55314         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55315         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55316         (struct obstack): temp member is now a union of a pointer and
55317         an integer, instead of an integer.  All integer uses changed.
55318         This does not affect the physical layout of struct obstack,
55319         except on hosts (like the AS/400) where the size or alignment of
55320         void * is greater than that of ptrdiff_t.
55321         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55322         __STDC__)]: Store temporary in pointer member of union, not
55323         integer member.
55324         * lib/obstack.c: Include <stddef.h>, for offsetof.
55325         (struct fooalign): Remove; it doesn't need a name.
55326         (union fooround): Change double to long double, and add void *.
55327         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55328         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55329         not a macro.  Hence the values are always int; so remove all
55330         casts-to-int in uses.
55331
55332 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55335         we can get this patch merged into glibc.
55336
55337 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55338             Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * m4/argp: Depend on alloca.
55341
55342 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55343             Paul Eggert  <eggert@cs.ucla.edu>
55344
55345         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55346         freecoding.
55347
55348 2004-05-17  Bruno Haible  <bruno@clisp.org>
55349
55350         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55351         precision that consists of a '.' followed by an empty digit string.
55352         Patch by Tor Lillqvist <tml@iki.fi>.
55353
55354 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55355
55356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55357         for backward compatibility with older code.  We need our own
55358         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55359         it under some other name, and our alloca.h will define it.
55360
55361 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55362             Derek Price  <derek@ximbiot.com>
55363
55364         * lib/alloca.c: Include <alloca.h>, to get our interface.
55365         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55366         include <alloca.h> first.  Use C89 prototype for alloca; this
55367         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55368         Use #elif for simplicity, since we can assume C89 now.
55369         Don't try to source the system alloca.h since it will not be found
55370         and to prevent recursively including its replacement.
55371         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55372         * lib/regex.c: Likewise.
55373
55374 2004-05-16  Derek Price  <derek@ximbiot.com>
55375             Paul Eggert  <eggert@cs.ucla.edu>
55376
55377         getline cleanup.  This changes the getndelim2 API: both order of
55378         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55379         no delimiter).
55380
55381         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55382         interface does that.
55383         (getline): Always use getdelim, so that we don't have two
55384         copies of this code.
55385         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55386         if available.
55387         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55388         (GETNDELIM2_MAXIMUM): New macro.
55389         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55390         instead of the old practice of delim2==0.  All callers changed.
55391         Return -1 on overflow, instead of returning junk.
55392         Do not set *linesize unless allocation succeeds.
55393         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55394         that we include sys/types.h.
55395         * lib/getnline.h: Likewise.
55396         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55397         (getndelim2): Reorder arguments.
55398         * lib/getnline.c (getnline, getndelim):
55399         Don't discard the NMAX argument.
55400         (getnline): Invoke getndelim, to avoid code duplication.
55401         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55402         of (size_t) -1 by callers of the getnline family.
55403
55404 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55405
55406         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55407         Check for gettimeofday.
55408         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55409         Check for settimeofday, stime.
55410
55411 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55412
55413         * lib/nanosleep.c (suspended): Change its type from int to
55414         sig_atomic_t volatile.
55415         (first_call): Make it private to rpl_nanosleep, and have it
55416         be zero initially as that's a bit faster.
55417         (my_usleep): Round up fractional times instead of truncating them,
55418         as this is the usual meaning for 'sleep'.
55419
55420         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55421         doesn't work.
55422         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55423         (ENOSYS): Define if not defined.
55424         (settime): Fall back on stime if it exists and settimeofday fails.
55425         But don't bother with fallbacks if a method fails with errno == EPERM.
55426
55427 2004-05-11  Jim Meyering  <jim@meyering.net>
55428
55429         Prior to this change, the save_cwd caller required read access to the
55430         current directory on most systems (ones with the fchdir function).
55431
55432         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55433         fails, try write-only, and finally, resort to using xgetcwd.
55434
55435 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * lib/obstack.c, obstack.h: Import changes from libc.
55438
55439 2004-04-28  Bruno Haible  <bruno@clisp.org>
55440
55441         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55442         also implicitly appends .exe to executables.
55443         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55444         accepts Windows pathnames.
55445         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55446         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55447         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55448         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55449         Reported by Derek Robert Price <derek@ximbiot.com>.
55450
55451 2004-04-21  Karl Berry  <karl@gnu.org>
55452
55453         * config/srclist.txt (localcharset.c): break sync.
55454
55455 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55456
55457         * m4/host-os.m4: Add a copyright notice.
55458
55459 2004-04-20  Jim Meyering  <jim@meyering.net>
55460
55461         Change UTILS_ to gl_ in AC_DEFINE'd names.
55462         Change utils_- and jm_-prefixed variables, too.
55463         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55464         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55466
55467         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55468         Don't emit trailing blanks.
55469         Also rename jm_-prefixed variables to have gl_ prefix.
55470
55471         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55472         Also rename jm_-prefixed variables to have gl_ prefix.
55473
55474         * m4/jm-macros.m4: Reflect the renamings.
55475         * m4/prereq.m4: Likewise.
55476
55477 2004-04-20  Jim Meyering  <jim@meyering.net>
55478
55479         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55480         memory.
55481
55482 2004-04-20  Jim Meyering  <jim@meyering.net>
55483             Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55486         memory when realloc fails.
55487
55488 2004-04-19  Jim Meyering  <jim@meyering.net>
55489
55490         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55491         now that readutmp.c may call `free (0)'.
55492
55493 2004-04-19  Bruno Haible  <bruno@clisp.org>
55494
55495         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55496         * m4/inttypes_h.m4: Likewise.
55497         * m4/stdint_h.m4: Likewise.
55498         * m4/intmax_t.m4: Likewise.
55499         * m4/uintmax_t.m4: Likewise.
55500
55501 2004-04-18  Jim Meyering  <jim@meyering.net>
55502
55503         * m4/prereq.m4: Don't forbid jm_ prefix.
55504
55505         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55506         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55507         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55508         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55509         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55510         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55511         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55512         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55513         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55514         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55515         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55516         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55517         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55518         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55519         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55520         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55521         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55522         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55523         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55524
55525 2004-04-18  Jim Meyering  <jim@meyering.net>
55526
55527         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55528         failure, don't leak memory and do call END_UTMP_ENT.
55529
55530 2004-04-16  Jim Meyering  <jim@meyering.net>
55531
55532         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55533         coreutils' stat program.
55534         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55535
55536 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55537
55538         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55539         C89.
55540         (CHAR_BIT): Remove, since we assume C89.
55541         Include <stdint.h> if available, as per current Autoconf CVS advice.
55542
55543 2004-03-31  Jim Meyering  <jim@meyering.net>
55544
55545         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55546         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55547         * m4/xalloc.m4: Likewise.
55548
55549 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55550
55551         Merge from coreutils.
55552
55553         * m4/inttostr.m4: New file.
55554         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55555         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55556         Require gl_CLOCK_TIME.
55557         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55558
55559 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55560
55561         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55562         not bool, to be more consistent with Unix conventions.
55563         Suggested by Bruno Haible.
55564
55565         Merge from coreutils.
55566
55567         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55568         * lib/umaxtostr.c: New files.
55569
55570         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55571         the usual <time.h> dance.
55572         (get_date): Change signature to support fractional time stamps.
55573         All callers changed.
55574         * lib/getdate.y: Include "getdate.h" first, as we can now
55575         assume C89 and don't need to worry about 'const'.
55576         Similarly, include "unlocked-io.h" near start, not in middle.
55577         Include <limits.h>.
55578         (textint.value): Use long int rather than int.
55579         (textint.digits): Use size_t rather than int.
55580         (BILLION, LOG10_BILLION): New constants.
55581         (parser_control): New member rel_ns.  Members day_ordinal,
55582         time_zone, month, day, hour, minutes, rel_year, rel_month,
55583         rel_day, rel_hour, rel_minutes, rel_seconds
55584         are now long int, not int.  Member seconds is now struct timespec,
55585         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55586         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55587         not int.
55588         (%union.intval): Now long int, not int.
55589         New member timespec.
55590         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55591         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55592         (spec): Now is a timespec or an item list.
55593         (timespec, items): New nonterminals.
55594         (time, rel, relunit, number, get_date):
55595         Add support for fractional seconds.
55596         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55597         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55598         (to_hour): First arg is now long int, not int.
55599         (to_year): Returns long int, not int.
55600         Don't treat year -70 like 70.
55601         (tm_diff): Returns long int, not int.
55602         (lookup_word): Use bool instead of int when appropriate.
55603         (yylex): Use size_t for count, not int.
55604         Detect overflow when parsing large integer constants.
55605         Add support for fractions.
55606         (get_date): Make pointers 'const' if possible.
55607         Use more-portable code to detect integer overflow.
55608         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55609         Don't use ctime; it's not reliable if the year has >4 digits.
55610
55611         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55612         This is for compatibility with BSD.
55613
55614         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55615         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55616         From coreutils' system.h.
55617
55618         * lib/userspec.c: Don't include "posixver.h".
55619         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55620         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55621         compatible extension.  Simplify code by removing a boolean int
55622         that was always nonzero if a string was nonnull.
55623
55624 2004-03-30  Jim Meyering  <jim@meyering.net>
55625
55626         Merge from coreutils.
55627
55628         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55629         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55630         on some systems one must include <grp.h> before it.
55631         Reported by Christian Krackowizer.
55632
55633 2004-03-30  Jim Meyering  <jim@meyering.net>
55634
55635         Merge from coreutils.
55636
55637         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55638
55639         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55640         an empty input stream.
55641
55642         * lib/readtokens.c: Include <stdbool.h>.
55643         (readtoken): Use `size_t' rather than int/long.
55644         All callers adjusted.
55645         Use `bool' rather than `int' where appropriate.
55646         Use memset rather than an explicit loop.
55647         Use x2nrealloc rather than xrealloc.
55648         Allow the use of `\0' as a delimiter.
55649         (readtokens): Likewise.
55650         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55651
55652 2004-03-30  Jim Meyering  <jim@meyering.net>
55653
55654         * m4/realloc.m4: Remove file, since now it does no more than
55655         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55656         the `configure.ac' section of module/realloc.
55657         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55658
55659 2004-03-30  Bruno Haible  <bruno@clisp.org>
55660
55661         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55662         nonnull.
55663
55664 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55665
55666         Merge changes to getloadavg.c from coreutils and Emacs.
55667
55668         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55669         Define to an expression, not to the empty string.
55670         Include cloexec.h and xalloc.h.
55671         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55672         Use set_cloexec_flag rather than rolling our own.
55673         * lib/cloexec.c, lib/cloexec.h: New files.
55674
55675 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55676
55677         * m4/cloexec.m4: New file.
55678
55679 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55680
55681         * lib/getopt.h: Sync with libc CVS.
55682
55683 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55684             Bruno Haible  <bruno@clisp.org>
55685
55686         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55687         mbswidth.
55688
55689 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55690             Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/mbswidth.h: Include <wchar.h> only if
55693         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55694         <wchar.h>.
55695         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55696
55697 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55698
55699         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55700         Sync with libc CVS.
55701         * lib/getopt_int.h: New file, also synced from libc.
55702
55703 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55704
55705         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55706         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55707         Bring back getopt.c, getopt.h, getopt1.c.
55708
55709 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55710
55711         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55712         All uses changed.  Check for sa_sigaction member; this fixes
55713         a bug first reported by Jason Andrade in
55714         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55715
55716 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55717
55718         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55719         '#if' expressions.  Unlike the code it replaces, it does not
55720         depend on (defined _SC_PAGESIZE).  However, it does depend on
55721         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55722         first reported by Jason Andrade in
55723         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55724
55725 2004-02-25  Simon Josefsson  <jas@extundo.com>
55726
55727         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55728
55729 2004-02-25  Simon Josefsson  <jas@extundo.com>
55730
55731         * lib/strdup.h: New file.
55732         * lib/strdup.c: Include it.
55733         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55734         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55735
55736 2004-02-23  Karl Berry  <karl@gnu.org>
55737
55738         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55739         (from fencepost.gnu.org:/gd/gnuorg).
55740
55741 2004-02-23  Karl Berry  <karl@gnu.org>
55742
55743         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55744         * config/srclist.txt: add maintain/standards documents.
55745
55746 2004-02-18  Bruno Haible  <bruno@clisp.org>
55747
55748         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55749         Reported by Derek Robert Price <derek@ximbiot.com>.
55750
55751 2004-02-16  Karl Berry  <karl@gnu.org>
55752
55753         * config/mkinstalldirs, install-sh: update from automake.
55754
55755 2004-02-06  Karl Berry  <karl@gnu.org>
55756
55757         * m4/po.m4: update from gettext 0.14.1.
55758
55759 2004-02-06  Karl Berry  <karl@gnu.org>
55760
55761         * lib/config.charset: update from gettext 0.14.1.
55762
55763 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55764
55765         Add comments and code, prompted by suggestions from Bruno Haible
55766         for sh-quote.
55767         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55768         describing the enum quoting_style values.
55769         * lib/quotearg.c (quotearg_alloc): New function.
55770         (quotearg_buffer_restyled): Treat lone { and } as special.
55771         Treat = as special.  Work around bug with older shells
55772         that "see" a '\' that is really the 2nd byte of a multibyte char.
55773         Quote empty string with shell_quoting_style.
55774
55775 2004-02-03  Bruno Haible  <bruno@clisp.org>
55776
55777         * m4/pipe.m4: New file, from GNU gettext.
55778
55779 2004-02-03  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/pipe.h: New file, from GNU gettext.
55782         * lib/pipe.c: New file, from GNU gettext.
55783
55784 2004-01-27  Bruno Haible  <bruno@clisp.org>
55785
55786         * m4/execute.m4: New file, from GNU gettext.
55787
55788 2004-01-27  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/execute.h: New file, from GNU gettext.
55791         * lib/execute.c: New file, from GNU gettext.
55792         * lib/w32spawn.h: New file, from GNU gettext.
55793
55794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55795
55796         Merge from diffutils.
55797
55798         * lib/file-type.c (file_type): Add typed memory objects.
55799         * lib/file-type.h (S_TYPEISTMO): New macro.
55800
55801         * lib/c-stack.h (c_stack_action): Remove argv argument.
55802         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55803         (die): Don't calculate message unless segv_action returns.
55804         (get_stack_location, min_address_from_argv, max_address_from_argv,
55805         volatile stack_base, volatile_stack_size): Remove.
55806         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55807         that every segmentation violation is a stack overflow.  (Ouch!)
55808         See Debian bug 136249 (still outstanding) for more info about why
55809         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55810
55811 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55812
55813         Exit-status fix from coreutils.
55814
55815         Use exit_failure consistently in place of EXIT_FAILURE,
55816         so that program exit statuses are consistent on failure.
55817
55818         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55819         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55820         * lib/argmatch.h: Comment fix to match the above.
55821         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55822         Now a macro referring to exit_failure, instead of a separate
55823         variable.  Include "exitfail.h" to get it.
55824         * lib/xstrtol.h: Include "exitfail.h".
55825         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55826
55827         * lib/long-options.c (parse_long_options): Use prototype
55828         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55829         for clarity.
55830
55831 2004-01-21  Jim Meyering  <jim@meyering.net>
55832
55833         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55834         so as not to conflict with a different-sized __mktime_internal
55835         function in GNU libc.
55836         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55837         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55838
55839 2004-01-20  Karl Berry  <karl@gnu.org>
55840
55841         * config/config.guess: update from config.
55842
55843         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55844
55845 2004-01-20  Bruno Haible  <bruno@clisp.org>
55846
55847         Safer stack allocation.
55848         * lib/setenv.c: Include allocsa.h.
55849         (alloca): Remove fallback definition.
55850         (freea): Remove macro.
55851         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55852         instead of freea.
55853
55854 2004-01-20  Bruno Haible  <bruno@clisp.org>
55855
55856         * m4/eealloc.m4: New file, from GNU gettext.
55857
55858 2004-01-20  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/allocsa.m4: New file, from GNU gettext.
55861
55862 2004-01-20  Bruno Haible  <bruno@clisp.org>
55863
55864         * lib/xallocsa.h: New file, from GNU gettext.
55865         * lib/xallocsa.c: New file, from GNU gettext.
55866
55867 2004-01-20  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55870
55871 2004-01-20  Bruno Haible  <bruno@clisp.org>
55872
55873         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55874         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55875         specially.
55876
55877 2004-01-20  Bruno Haible  <bruno@clisp.org>
55878
55879         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55880         patch.
55881
55882 2004-01-20  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55885
55886 2004-01-20  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/eealloc.h: New file.
55889
55890 2004-01-20  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/binary-io.h: Avoid warnings on Cygwin.
55893
55894 2004-01-20  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/allocsa.h: New file, from GNU gettext.
55897         * lib/allocsa.c: New file, from GNU gettext.
55898
55899 2004-01-18  Karl Berry  <karl@gnu.org>
55900
55901         * doc/gpl.texi, doc/lgpl.texi: new files.
55902
55903 2004-01-18  Karl Berry  <karl@gnu.org>
55904
55905         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55906         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55907
55908 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55909
55910         Merge from coreutils.
55911
55912         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55913         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55914         (gl_DEFAULT_POSIX2_VERSION): Move
55915         the documentation from 'configure' into 'config.hin',
55916         so that 'configure --help' isn't burdened by it and
55917         we don't have to worry about its formatting there.
55918         Reword the documentation so that it's more succinct
55919         and can be run together into a single paragraph.
55920         * m4/same.m4 (gl_SAME): Check for pathconf.
55921
55922 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55923
55924         Merge from coreutils.
55925
55926         * lib/posixver.c: Include posixver.h.
55927
55928         * lib/same.c: Include <stdbool.h>, <limits.h>.
55929         (_POSIX_NAME_MAX): Define if not defined.
55930         (MIN): New macro.
55931         (same_name): If file names are silently truncated, report
55932         that the file names are the same if they are the same after
55933         the silent truncation.
55934
55935         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55936         conversion function.
55937         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55938         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55939         longer needed.
55940
55941 2004-01-15  Jim Meyering  <jim@meyering.net>
55942
55943         Merge from coreutils.
55944
55945         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55946         if no library is required.
55947         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55948         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55949         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55950         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55951         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55952         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55953         value, $ac_cv_search_crypt, if it's "none required".
55954         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55955         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55956         not gl_FUNC_GETLOADAVG.
55957         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55958         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55959
55960 2004-01-15  Jim Meyering  <jim@meyering.net>
55961
55962         Merge from coreutils.
55963
55964         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55965         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55966         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55967
55968         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55969         optional configure-time default.
55970
55971         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55972
55973         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55974
55975 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55976
55977         Merge from coreutils.
55978
55979         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55980         value, $ac_cv_search_nanosleep, if it's "none required".
55981
55982 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55983
55984         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55985         with like-named macro in fnmatch.c.
55986         (EXT): Use an internal constant instead.
55987
55988         Merge fnmatch patches from glibc.
55989         * lib/fnmatch.c (mbsinit): Remove define.
55990         Add libc_hidden_ver (__fnmatch, fnmatch).
55991         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55992         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55993
55994 2004-01-14  Karl Berry  <karl@gnu.org>
55995
55996         * config/install-sh: update from automake.
55997
55998 2004-01-13  Karl Berry  <karl@gnu.org>
55999
56000         * config/install-sh: update from automake.
56001
56002 2004-01-09  Karl Berry  <karl@gnu.org>
56003
56004         * config/install-sh: update from automake.
56005
56006 2004-01-05  Karl Berry  <karl@gnu.org>
56007
56008         * config/config.{sub,guess}: update from config.
56009
56010 2003-12-31  Karl Berry  <karl@gnu.org>
56011
56012         * config/depcomp: update from automake.
56013
56014 2003-12-14  Karl Berry  <karl@gnu.org>
56015
56016         * lib/config.charset: update from gettext-runtime.
56017
56018 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56019
56020         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56021         Bug reported by Alfred M. Szmidt.
56022
56023 2003-12-03  Bruno Haible  <bruno@clisp.org>
56024
56025         * m4/gettext.m4: Upgrade from gettext-0.13.
56026         * m4/po.m4: Upgrade from gettext-0.13.
56027         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56028         * m4/intmax.m4: New file, from gettext-0.13.
56029         * m4/printf-posix.m4: New file, from gettext-0.13.
56030
56031 2003-11-29  Karl Berry  <karl@gnu.org>
56032
56033         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56034
56035 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56036             Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/printf-parse.h: Don't include sys/types.h.
56039         (ARG_NONE): New macro.
56040         (char_directive): Change type of *arg_index fields to size_t.
56041         * lib/printf-parse.c: Don't include sys/types.h.
56042         (SSIZE_MAX): Remove macro.
56043         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56044         Remove unnecessary overflow check.
56045         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56046         fields.
56047
56048 2003-11-25  Bruno Haible  <bruno@clisp.org>
56049
56050         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56051
56052 2003-11-25  Bruno Haible  <bruno@clisp.org>
56053
56054         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56055         gt_TYPE_SSIZE_T.
56056
56057 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56058
56059         * modules/alloca: Remove dependency on xalloc.
56060
56061 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56062
56063         * lib/alloca.c: Remove dependency on xalloc module.
56064         (xalloc_die): Remove.
56065         (memory_full) [!defined emacs]: New macro.
56066         [!defined emacs]: Don't include xalloc.h.
56067         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56068         address arithmetic overflows.  Change datatypes a bit to avoid
56069         unnecessary casts.
56070
56071 2003-11-22  Jim Meyering  <jim@meyering.net>
56072
56073         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56074         s/size/size_t/.
56075
56076 2003-11-21  Karl Berry  <karl@gnu.org>
56077
56078         * config/config.{sub,guess}: update from config.
56079
56080 2003-11-18  Karl Berry  <karl@gnu.org>
56081
56082         * config/config.{sub,guess}: update from config.
56083
56084         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56085
56086 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56087
56088         * README: Mention that S+T cannot overflow if S is the size of
56089         an existing object and T is sufficiently small.
56090
56091 2003-11-17  Jim Meyering  <jim@meyering.net>
56092
56093         On systems without utime and without a utimes function capable of
56094         dealing with a NULL struct utimbuf* argument, this utime replacement
56095         could -- in unusual circumstances -- leak a file descriptor.
56096         * lib/utime.c: Include <unistd.h> and <errno.h>.
56097         (utime_null): Be sure to close `fd' and to preserve errno.
56098         Reported by Geoff Collyer via Arnold Robbins.
56099
56100 2003-11-17  Bruno Haible  <bruno@clisp.org>
56101
56102         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56103         (Depends-on): Add xsize.
56104
56105 2003-11-17  Bruno Haible  <bruno@clisp.org>
56106
56107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56108
56109 2003-11-17  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/vasnprintf.c (alloca): Remove fallback definition.
56112         (freea): Remove definition.
56113         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56114         Reported by Paul Eggert.
56115
56116 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56117             Bruno Haible  <bruno@clisp.org>
56118
56119         Protect against address arithmetic overflow.
56120         * lib/printf-args.h: Include stddef.h.
56121         (arguments): Change type of field 'count' to size_t.
56122         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56123         'unsigned int' where appropriate.
56124         * lib/printf-parse.h: Include sys/types.h.
56125         (char_directive): Change type of *arg_index fields to ssize_t.
56126         (char_directives): Change type of fields 'count', max_*_length to
56127         size_t.
56128         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56129         (SSIZE_MAX): Define fallback value.
56130         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56131         instead of 'int' where appropriate. Check a_allocated, d_allocated
56132         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56133         * lib/vasnprintf.c: Include xsize.h.
56134         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56135         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56136         overflow. Avoid wraparound when converting a width or precision from
56137         decimal to binary.
56138
56139 2003-11-16  Bruno Haible  <bruno@clisp.org>
56140
56141         Update from GNU gettext.
56142         * lib/printf-parse.c: Generalize to it can be compiled for wide
56143         strings.
56144         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56145         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56146         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56147         SNPRINTF): New macros.
56148         Don't include <alloca.h> if the file is used inside libintl.
56149         (local_wcslen): New function, for Solaris 2.5.1.
56150         (VASNPRINTF): Use it instead of wcslen.
56151
56152 2003-11-16  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/xsize.h (xmax): New function.
56155         (xsum, xsum3, xsum4): Declare as "pure" functions.
56156
56157 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56158
56159         * modules/xalloc (Files): Undo latest change, since xalloc.h
56160         no longer needs SIZE_MAX or PTRDIFF_MAX.
56161
56162 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56163
56164         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56165         gl_PTRDIFF_MAX.
56166
56167 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56168
56169         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56170         "return", to pacify some unknown compiler.  Problem reported
56171         by Joerg Schilling.
56172
56173 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56174
56175         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56176         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56177         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56178         heuristic is just as accurate as far as we know, and it removes a
56179         dependency on size_max.m4 and ptrdiff_max.m4.
56180
56181 2003-11-11  Bruno Haible  <bruno@clisp.org>
56182
56183         * modules/xsize (Files): Add m4/size_max.m4.
56184         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56185
56186 2003-11-11  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/size_max.m4: New file.
56189         * m4/ptrdiff_max.m4: New file.
56190         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56191         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56192         (gl_XALLOC): Invoke it.
56193
56194 2003-11-11  Bruno Haible  <bruno@clisp.org>
56195
56196         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56197         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56198         defined.
56199
56200 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56201
56202         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56203         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56204         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56205         From Bruno Haible.
56206         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56207         not (size_t) -1, since it's defined here.
56208
56209 2003-11-09  Karl Berry  <karl@gnu.org>
56210
56211         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56212
56213 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56214
56215         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56216         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56217         Reject sizes of exactly SIZE_MAX bytes.
56218         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56219         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56220
56221 2003-11-05  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56224         SIZE_MAX defined in <limits.h> on Solaris.
56225
56226 2003-11-04  Jim Meyering  <jim@meyering.net>
56227
56228         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56229         variable names, rather than @VAR@.
56230         * modules/poll: Likewise.
56231
56232 2003-11-04  Bruno Haible  <bruno@clisp.org>
56233
56234         * modules/xsize: New file.
56235         * modules/linebreak: Depend on xsize.
56236         * MODULES.html.sh (func_all_modules): Add xsize.
56237
56238 2003-11-04  Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/xsize.m4: New file.
56241
56242 2003-11-04  Bruno Haible  <bruno@clisp.org>
56243
56244         * lib/xsize.h: New file.
56245         * lib/linebreak.c: Include xsize.h.
56246         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56247         argument for overflow.
56248         Suggested by Paul Eggert.
56249
56250 2003-11-03  Karl Berry  <karl@gnu.org>
56251
56252         * config/config.{guess,sub}: update from config.
56253
56254 2003-11-03  Jim Meyering  <jim@meyering.net>
56255
56256         * modules/userspec (lib_SOURCES): Add userspec.h.
56257         (Include): Add "userspec.h".
56258         Improve description.
56259
56260 2003-11-03  Jim Meyering  <jim@meyering.net>
56261
56262         * lib/userspec.c: Include "userspec.h".
56263         * lib/userspec.h: New file.
56264
56265 2003-11-03  Bruno Haible  <bruno@clisp.org>
56266
56267         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56268
56269 2003-11-03  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56272         available, to avoid (extremely rare) race condition.
56273         Suggested by Paul Eggert.
56274
56275 2003-11-02  Karl Berry  <karl@gnu.org>
56276
56277         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56278
56279 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56280
56281         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56282         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56283         (read_filesystem_list): Set and use me_type_malloced.
56284         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56285         whatever the type happens to be), for brevity and consistency.
56286         Check for size calculation overflow on Alphas running OSF/1.
56287
56288 2003-10-31  Jim Meyering  <jim@meyering.net>
56289
56290         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56291
56292         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56293
56294 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56295             Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56298         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56299
56300 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56301
56302         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56303         netbsd*-gnu*.  Suggested by Robert Millan.
56304
56305 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56306
56307         * modules/group-member: Depend on stdbool.
56308
56309 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56310
56311         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56312
56313 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56314
56315         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56316         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56317         after the 'gnu' in these cases.  This fixes some bugs in the
56318         previous change, and is based on suggestions by Robert Millan.
56319
56320 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56321
56322         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56323         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56324         no longer needed.
56325         * lib/quotearg.c (quotearg_n_options): Use it.
56326         * lib/group-member.c: Include <stdbool.h>.
56327         (free_group_info): Arg is now const *; don't free arg.
56328         (get_group_info): Now returns bool and accepts struct group_info *,
56329         rather than returning a malloc'ed struct group_info *.
56330         All uses changed.  Check for overflow in internal size calculation.
56331
56332         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56333         rather than xmalloc/xrealloc.
56334         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56335         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56336         conformance bug: the old code used a pointer after freeing the
56337         storage that it addressed.
56338         * lib/hash.c (hash_initialize): Simplify the code by using
56339         xalloc_oversized rather than doing it by hand.
56340         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56341         the buffer preserved.  Use free and xmalloc instead.
56342         * lib/quotearg.c (quotearg_n_options): Likewise.
56343         Use a simpler test for size overflow.  Don't use xalloc_oversized
56344         because unsigned int might be wider than size_t (!); this suggests
56345         that we should switch from unsigned int to size_t for slot numbers.
56346
56347 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56348
56349         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56350         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56351         NetBSD kernels.  Requested by Richard Stallman.
56352
56353 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56354
56355         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56356         to allocate the returned structure.  Do not allocate a subarray,
56357         as x2nrealloc will do that.
56358         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56359         instead of xnrealloc.
56360         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56361
56362 2003-10-27  Bruno Haible  <bruno@clisp.org>
56363
56364         * lib/stdbool_.h: Better support for BeOS.
56365
56366 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56367
56368         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56369         now uses inline.
56370
56371 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56372
56373         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56374         callers that want to do their own size-overflow checking.  Include
56375         <stdbool.h>, since xalloc_oversized returns bool.
56376         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56377         to use xalloc_oversized.
56378
56379         Add two functions x2realloc, x2nrealloc, for programs that grow
56380         arrays dynamically by doubling their sizes.
56381         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56382         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56383         New functions.
56384
56385         Port to C99 semantics for 'inline' of external functions.
56386         Bug reported by Bruno Haible.
56387         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56388         with the old contents of xnmalloc.
56389         (xnmalloc, xmalloc): Use it.
56390         (xnrealloc_inline): New static inline function,
56391         with the old contents of xnrealloc.
56392         (xnrealloc, xrealloc): Use it.
56393
56394         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56395         that.
56396
56397 2003-10-26  Karl Berry  <karl@gnu.org>
56398
56399         * config/srclist.txt (COPYING.DOC): no longer available from
56400         /gd/gnuorg; don't know where the ultimate source is.
56401
56402 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56403
56404         Fix several address-calculation bugs in the hash modules,
56405         plus some minor code cleanup.
56406
56407         * lib/hash.h: Include <stdbool.h>, for bool.
56408         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56409         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56410         hash_get_n_entries, hash_get_max_bucket_length,
56411         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56412         hash_rehash): Use size_t rather than unsigned.
56413         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56414         hash_get_n_buckets_used, hash_get_n_entries,
56415         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56416         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56417         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56418         Likewise.
56419         (SIZE_MAX): Define if not defined.
56420         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56421         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56422         hash_print):
56423         Use const * when possible.
56424         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56425         (check_tuning): Fix bug: if tuning parameters were very close to
56426         0 or 1, rounding errors could have caused subscript violations.
56427         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56428         (hash_initialize): Add 'fail:' label
56429         to free table and return NULL, and use it to simplify code.
56430         Use calloc rather than clearing the storage ourself.
56431         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56432         buffer size calculations.
56433         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56434         Include <stddef.h>, for size_t.
56435         * lib/hash-pjw.c (hash_pjw): Likewise.
56436         Switch to method described by Bruno Haible.
56437         Include <limits.h>, for CHAR_BIT.
56438         (SIZE_BITS): New macro.
56439
56440 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56441
56442         * m4/getline.m4 (AM_FUNC_GETLINE):
56443         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56444         hosts.  Problem reported by Derek Robert Price in
56445         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56446         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56447         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56448
56449 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56450
56451         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56452         ceiling the allocation at NMAX bytes rather than silently
56453         discarding input bytes before NMAX is reached.  This makes
56454         a difference only if NMAX exceeds SIZE_MAX / 2.
56455
56456         * lib/obstack.c: Merge from glibc.
56457         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56458         Add libc_hidden_def (_obstack_newchunk).
56459         (_obstack_free) [! defined _LIBC]: Remove.
56460         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56461         a clone of the function body.
56462         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56463         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56464
56465         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56466         glibc.
56467         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56468         arg to memcpy.
56469
56470         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56471         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56472         Don't use lvalue casts, as GCC plans to remove support for them
56473         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56474         was also present in the non-GCC version, indicating that this
56475         code had always been buggy and had never been widely used.
56476         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56477         Use the fast variant of each macro, rather than copying the
56478         definiens of the fast variant; that way, we'll be more likely to
56479         catch future bugs in the fast variants.
56480
56481 2003-10-20  Bruno Haible  <bruno@clisp.org>
56482
56483         * modules/wait-process: New file.
56484         * MODULES.html.sh (func_all_modules): Add wait-process.
56485
56486 2003-10-20  Bruno Haible  <bruno@clisp.org>
56487
56488         * m4/wait-process.m4: New file.
56489
56490 2003-10-20  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/wait-process.h: New file, from GNU gettext.
56493         * lib/wait-process.c: New file, from GNU gettext.
56494
56495 2003-10-19  Jim Meyering  <jim@meyering.net>
56496
56497         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56498         HPUX 10.20.
56499
56500 2003-10-18  Karl Berry  <karl@gnu.org>
56501
56502         * config/config.guess: update from config.
56503
56504 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56505
56506         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56507         (getgroups): First arg is int, not size_t.
56508         Don't let 'free' mangle errno.
56509
56510 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56511
56512         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56513
56514 2003-10-16  Karl Berry  <karl@gnu.org>
56515
56516         * config/config.{guess,sub}: update from config.
56517
56518 2003-10-16  Jim Meyering  <jim@meyering.net>
56519
56520         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56521         memcpy.
56522
56523 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56524
56525         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56526         (SIZE_MAX): Remove.
56527         (new_exclude, add_exclude_file): Initial size no longer needs to
56528         be a power of 2.
56529         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56530         our own address arithmetic overflow checking.
56531
56532         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56533         (fnmatch): Do not alloca more than 2000 wide characters;
56534         instead, use malloc for large buffers.
56535         Check for address arithmetic overflow, and return -1
56536         with errno set to ENOMEM in that case.
56537         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56538         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56539         instead, return -1.  Check for address arithmetic overflow.
56540
56541 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56542
56543         Handle invalid suffixes and overflow independently, so that
56544         callers can treat them independently as needed.  Fix some bugs in
56545         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56546         suffix for a human-readable blocksize.  The major caller-visible
56547         change is the addition of a new
56548         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56549         that both overflow and suffix chars were found.
56550
56551         * lib/human.c (humblock): Don't check separately for invalid suffix
56552         char; that is xstrtoumax's job (now that its bug is fixed).
56553         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56554         INTMAX_MAX]: New macros.
56555         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56556         TYPE_MAXIMUM): New macros.
56557         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56558         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56559         if overflow occurs, as it's what __strtol does and it's more useful
56560         in practice.
56561         (__xstrtol): If __strtol reports some error other than ERANGE,
56562         reflect it to the caller as LONGINT_INVALID.  If it reports
56563         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56564         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56565         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56566         value.
56567         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56568         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56569         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56570         [defined UINTMAX_MAX]: New macros.
56571
56572 2003-10-14  Bruno Haible  <bruno@clisp.org>
56573
56574         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56575
56576 2003-10-14  Bruno Haible  <bruno@clisp.org>
56577
56578         * m4/sig_atomic_t: New file, from GNU gettext.
56579         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56580
56581 2003-10-14  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56584         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56585         Also use volatile where needed.
56586
56587 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56588
56589         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56590         Change maintainer from Bruno Haible to 'all'.
56591
56592 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56593
56594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56595
56596 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56597
56598         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56599         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56600         and define in terms of the other primitives.
56601         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56602         (SIZE_MAX): Define if not already defined.
56603         (array_size_overflow): New function.
56604         (xalloc_die): Abort instead of exiting if 'error' returns.
56605         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56606         (xmalloc, xrealloc): Use them.
56607         (xcalloc): Check for address arithmetic overflow.
56608         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56609         a bit faster than strcpy.
56610
56611 2003-10-10  Simon Josefsson  <jas@extundo.com>
56612
56613         * modules/argp (Depends-on): Add restrict and strcase.
56614
56615 2003-10-10  Simon Josefsson  <jas@extundo.com>
56616
56617         * m4/argp.m4: Add AC_C_INLINE.
56618
56619 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56620
56621         Merge getpass from libc, plus a few fixes.
56622
56623         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56624         Include <stdbool.h>.
56625         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56626         __fsetlocking to empty.
56627         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56628         do include <bits/libc-lock.h>.
56629         Do not include <fcntl.h>; not needed.
56630         [_LIBC]: Include <wchar.h>.
56631         (NOTCANCEL_MODE): New macro.
56632         (flockfile, funlockfile) [_LIBC]: New macros.
56633         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56634         [!_LIBC]: New macros.
56635         (call_fclose): New function.
56636         (getpass): Use it.  Save tty stream separately; this simplifies the
56637         code and makes it more reliable if stdin happens to equal stdout.
56638         Invoke __fsetlocking on tty.
56639         Handle thread cancellation if needed.
56640         Namespace cleanup (use __tcgetattr, __getline).
56641         Use bool for Booleans.
56642         [USE_IN_LIBIO]: Handle wide streams.
56643         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56644         stream might go where.
56645
56646         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56647         doesn't have to include <stdio.h> before us.
56648         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56649         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56650         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56651         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56652         if not declared, so that we can use getpass.c code from libc without
56653         rewriting it.
56654         (flockfile, ftrylockfile, funlockfile): New macros.
56655
56656 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56657
56658         * modules/getpass: Depend on stdbool.
56659
56660 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56661
56662         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56663
56664 2003-10-07  Karl Berry  <karl@gnu.org>
56665
56666         * config/config.{guess,sub}: update from config.
56667
56668 2003-10-06  Jim Meyering  <jim@meyering.net>
56669             Bruno Haible  <bruno@clisp.org>
56670
56671         This lets translators provide better translations for the
56672         "Written by ..." part of --version output.
56673         * lib/version-etc.h: Include stdarg.h.
56674         (version_etc_copyright): Declare as readonly.
56675         (version_etc): Make this function variadic with a NULL-terminated list
56676         of author name strings.
56677         (version_etc_va): New declaration.
56678         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56679         (version_etc_copyright): Declare as readonly.
56680         (version_etc_va): New function. Provide a different translatable string
56681         for each possible number of authors < 10. Abbreviate when there are 10
56682         authors or more.
56683         (version_etc): Make this function variadic. Call version_etc_va.
56684         Suggestion from Gary V. Vaughan.
56685
56686         * lib/long-options.h (parse_long_options): Change prototype: the
56687         authors string is moved to the end and becomes variadic.
56688         * lib/long-options.c: Include stdarg.h.
56689         (parse_long_options): Make this function variadic, too.
56690         Call version_etc_va, not version_etc.
56691
56692 2003-10-06  Bruno Haible  <bruno@clisp.org>
56693
56694         * modules/version-etc-2: Remove file.
56695         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56696
56697 2003-10-06  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/fatal-signal: New file.
56700         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56701
56702 2003-10-06  Bruno Haible  <bruno@clisp.org>
56703
56704         * m4/fatal-signal.m4: New file.
56705         * m4/signalblocking.m4: New file, from GNU gettext.
56706
56707 2003-10-06  Bruno Haible  <bruno@clisp.org>
56708
56709         * lib/version-etc-2.h: Remove file.
56710         * lib/version-etc-2.c: Remove file.
56711
56712 2003-10-06  Bruno Haible  <bruno@clisp.org>
56713
56714         * lib/fatal-signal.h: New file, from GNU gettext.
56715         * lib/fatal-signal.c: New file, from GNU gettext.
56716
56717 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56718
56719         * README: Rework advice for preventing empty .o files.
56720         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56721         not <sys/types.h>.
56722
56723 2003-10-04  Karl Berry  <karl@gnu.org>
56724
56725         * lib/argp*: update from libc.
56726
56727 2003-10-04  Karl Berry  <karl@gnu.org>
56728
56729         * config/config.{guess,sub}: update from config.
56730
56731 2003-10-02  Bruno Haible  <bruno@clisp.org>
56732
56733         * modules/lchown (Include): Add lchown.h.
56734         * modules/time_r (Include): Use "..." syntax.
56735         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56736
56737 2003-10-01  Simon Josefsson  <jas@extundo.com>
56738
56739         * MODULES.html.sh (func_all_modules): Move gethostname from section
56740         'based on' to section 'lacking' POSIX:2001.
56741
56742 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56743
56744         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56745         to output mode on the same stream.
56746
56747 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56748
56749         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56750         Fix arg typo in previous patch.
56751
56752 2003-09-28  Jim Meyering  <jim@meyering.net>
56753
56754         * lib/error.c: Correct cpp indentation.
56755
56756 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56757
56758         * modules/free: New file.
56759
56760 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56761
56762         * m4/free.m4: New file.
56763
56764 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56765
56766         * lib/minmax.h (MIN, MAX)
56767         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56768         Omit the special code that used __typeof__, since we worry that
56769         it could be more trouble than it's worth.  See:
56770         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56771         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56772
56773         * lib/free.c: New file.
56774
56775 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56776
56777         Trivial fixes to Makefile.am parts of module listings.
56778         * modules/strstr: Append strstr.h to lib_SOURCES.
56779         * modules/strcase: Likewise, for strcase.h.
56780
56781 2003-09-27  Karl Berry  <karl@gnu.org>
56782
56783         * config/mkinstalldirs: update from automake.
56784
56785 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56786
56787         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56788         (error_tail): Do not loop, reallocating temporary buffer, since
56789         the output cannot contain more wide characters than the input
56790         contains bytes, the size must be big enough already.  This avoids
56791         one potential size overflow calculation.  Check for size overflow
56792         when calculating temporary buffer size.  Free temporary buffer
56793         when done, if it was allocated with malloc; this plugs a memory
56794         leak.  Remove casts from void * to pointers, that are no longer
56795         needed now that we're assuming C89 or better.
56796
56797         Merge error changes from glibc.
56798
56799         * lib/error.c, error.h: Update copyright notice header to match glibc.
56800         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56801         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56802         Disable cancellation while printing error.
56803         * lib/error.h: Prepend __ to parameter names.
56804
56805 2003-09-26  Jim Meyering  <jim@meyering.net>
56806
56807         * lib/error.c (error_tail): Move some declarations
56808         into inner scope where the local variables are used.
56809
56810 2003-09-26  Bruno Haible  <bruno@clisp.org>
56811
56812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56813         stpncpy().
56814         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56815
56816 2003-09-26  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56819         (stpncpy): Define as alias for gnu_stpncpy.
56820         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56821
56822 2003-09-25  Simon Josefsson  <jas@extundo.com>
56823
56824         * lib/xgetdomainname.h: New file.
56825         * lib/xgetdomainname.c: New file.
56826
56827 2003-09-25  Simon Josefsson  <jas@extundo.com>
56828             Bruno Haible  <bruno@clisp.org>
56829
56830         * modules/getdomainname: New file.
56831         * modules/xgetdomainname: New file.
56832         * MODULES.html.sh (func_all_modules): Add getdomainname,
56833         xgetdomainname.
56834
56835 2003-09-25  Simon Josefsson  <jas@extundo.com>
56836             Bruno Haible  <bruno@clisp.org>
56837
56838         * m4/getdomainname.m4: New file.
56839
56840 2003-09-25  Simon Josefsson  <jas@extundo.com>
56841             Bruno Haible  <bruno@clisp.org>
56842
56843         * lib/getdomainname.h: New file.
56844         * lib/getdomainname.c: New file.
56845
56846 2003-09-25  Karl Berry  <karl@gnu.org>
56847
56848         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56849
56850 2003-09-25  Karl Berry  <karl@gnu.org>
56851
56852         * config/install-sh: update from automake.
56853
56854 2003-09-25  Bruno Haible  <bruno@clisp.org>
56855
56856         * modules/version-etc-2: New file, from modules/version-etc with
56857         modifications.
56858         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56859
56860 2003-09-25  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56863         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56864
56865 2003-09-24  Simon Josefsson  <jas@extundo.com>
56866
56867         * modules/xgethostname: Add xgethostname.h.
56868
56869 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56870
56871         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56872         the buffer associated with the argument.  Bug reported by
56873         Simon Josefsson.
56874
56875 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56876
56877         * README: Document assumptions that 'int' is at least 32 bits
56878         wide, that integer arithmetic is 2's complement without overflow,
56879         that there are no holes in integer values, that adding sizes of
56880         two nonoverlapping objects can't overflow, and that all-bits-zero
56881         yields scalar zero.  Fix spelling and capitalization typos.
56882
56883 2003-09-19  Karl Berry  <karl@gnu.org>
56884
56885         * lib/argp.h: update from libc.
56886
56887 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56888
56889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56890         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56891         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56892
56893 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56894
56895         * gnulib-tool: Use "test -h", not "test -L", for portability
56896         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56897         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56898         (sed_extract_prog): Issue s commands one-by-one, rather than
56899         using \| in one s command.
56900
56901 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56902
56903         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56904         input error, instead of returning NULL the next time we are called
56905         (and therefore losing track of errno).
56906
56907 2003-09-16  Bruno Haible  <bruno@clisp.org>
56908
56909         * gnulib-tool (func_create_testdir): Warn about duplicated
56910         dependencies.
56911
56912 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56913
56914         * modules/argmatch, modules/fatal, modules/obstack,
56915         modules/xalloc, modules/xgethostname: Sort dependencies by
56916         importance, not alphabetically.
56917
56918 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56919
56920         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56921         fails, so that the caller gets the proper errno.
56922
56923         * lib/readutmp.c (read_utmp): Likewise.
56924         Check for fstat error.  Close stream and free storage
56925         when failing.
56926
56927 2003-09-14  Karl Berry  <karl@gnu.org>
56928
56929         * config/srclist.txt (strdup.c): disable for c89 changes.
56930
56931 2003-09-14  Jim Meyering  <jim@meyering.net>
56932
56933         * lib/getloadavg.c: Correct cpp indentation.
56934         * lib/strdup.c: Likewise.
56935         * lib/vasnprintf.c: Likewise.
56936
56937 2003-09-14  Bruno Haible  <bruno@clisp.org>
56938
56939         * modules/fwriteerror: New file.
56940         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56941
56942 2003-09-14  Bruno Haible  <bruno@clisp.org>
56943
56944         * lib/fwriteerror.h: New file.
56945         * lib/fwriteerror.c: New file.
56946
56947 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56948
56949         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56950         modules/xgethostname, modules/xalloc: Depend on exit.
56951
56952 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56953
56954         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56955
56956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56957         and AC_MINIX, too, so that their extensions are available.
56958
56959         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56960         This macro has been superseded by gl_BACKUPFILE.
56961
56962         More patches to assume C89 or better.
56963
56964         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56965
56966         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56967         unconditionally.
56968         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56969         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56970         Include <string.h>, <stdlib.h> unconditionally.
56971         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56972         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56973         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56974         headers or for string.h.
56975         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56976         or strtoul.
56977
56978         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56979         headers.
56980         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56981         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56982         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56983         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56985         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56986         memcpy, memset.
56987         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56988         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56989         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56990         strtol.
56991         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56992         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56993         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56994         strtoul.
56995
56996 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56997
56998         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56999         * lib/obstack.c [!defined _LIBC]: Likewise.
57000         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57001         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57002         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57003
57004         More changes to assume C89 or better.
57005
57006         * lib/error.c (error_tail): Assume vprintf.
57007
57008         * lib/argmatch.c (getenv): Remove decl.
57009         * lib/progreloc.c (get_full_program_name): Define via prototype.
57010         * lib/setenv.c (clearenv): Likewise.
57011         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57012         needed.
57013         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57014         (malloc, memcpy): Remove decls.
57015         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57016         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57017         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57018         (memcpy): Remove macro.
57019         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57020         (__P): Remove.  All uses removed.
57021         (PTR): Remove.  All uses changed to void *.
57022         (CHAR_BIT, NULL): Remove.
57023         (spaces, zeros, memset_space, memset_zero)
57024         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57025         Remove.
57026         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57027         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57028         Define with prototype.
57029         Remove now-unnecessary prototype decl.
57030         (extra_args_spec): Assume ANSI C.  All uses changed.
57031         (extra_args_spec_iso): Remove.
57032         (my_strftime, emacs_strftimeu): Define via prototype.
57033         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57034         unconditionally.
57035         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57036         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57037         (strtoul, strtol): Remove decls.
57038         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57039         LONG_MAX): Remove.
57040         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57041         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57042         (LOCALE_PARAM_PROTO): New macro.
57043         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57044         (INTERNAL (strtol), strtol): Define with a prototype.
57045         (PARAMS): Remove.  All uses removed.
57046         * lib/tempname.c: Include <string.h> unconditionally.
57047         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57048         * lib/xgethostname.c (main): Define with a prototype.
57049         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57050         Include <stdlib.h> unconditionally.
57051         (calloc, malloc, realloc, free): Remove decls.
57052         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57053         Include <stdlib.h> unconditionally.  Sort include file names.
57054         (strtod): Remove.
57055         (xstrtod): Define with a prototype.
57056         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57057         (strtol, strtoul): Remove decls.
57058
57059 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57060
57061         More patches to assume C89 or better.
57062         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57063         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57064         string.h, memchr, STDC_HEADERS.
57065
57066 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57067
57068         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57069         Include <stdlib.h>, <string.h> unconditionally.
57070         Remove now-unnecessary cast to char *.
57071         * lib/strnlen.c: Include <string.h> unconditionally.
57072         * lib/yesno.c (yesno): Define with a prototype.
57073
57074 2003-09-11  Bruno Haible  <bruno@clisp.org>
57075
57076         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57077
57078 2003-09-10  Jim Meyering  <jim@meyering.net>
57079
57080         * lib/error.c: Correct indentation of cpp directives.
57081
57082 2003-09-10  Bruno Haible  <bruno@clisp.org>
57083
57084         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57085         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57086         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57087         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57088         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57089         <stdlib.h> and <string.h> checks.
57090         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57091         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57092
57093 2003-09-10  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/strcspn.c: Include <string.h> unconditionally.
57096         * lib/strpbrk.c: Include <string.h> unconditionally.
57097         * lib/strstr.c: Include <string.h> unconditionally.
57098         * lib/unicodeio.c: Include <string.h> unconditionally.
57099         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57100         * lib/unsetenv.c: Likewise.
57101         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57102         * lib/yesno.c: Include <stdlib.h> unconditionally.
57103         (rpmatch): Add prototype.
57104
57105 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57106
57107         More patches to assume C89 or better.
57108         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57109         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57110         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57111         or for string.h.
57112         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57113         stdlib.h.
57114         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57115         C headers.
57116         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57117         string.h.
57118         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57119         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57120         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57121         or for string.h.
57122         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57123         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57124         C headers.
57125         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57126         memcpy.
57127         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57128         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57129         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57130         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57131         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57132         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57133         string.h, free.
57134         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57135         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57136         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57137         C headers, or for string.h.
57138         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57139         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57140         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57141         headers, memory.h, stdlib.h, string.h, strings.h.
57142         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57143         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57144         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57145         strchr.
57146         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57147         headers, memory.h, string.h.
57148         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57149         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57150         free.
57151         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57152         headers.
57153         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57154         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57155         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57156         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57157         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57158
57159 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57160
57161         More K&R removal.
57162
57163         * lib/acosl.c (main): Use a prototype.
57164         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57165         tanl.c: Likewise.
57166
57167         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57168
57169         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57170         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57171         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57172         with a prototype.
57173         * lib/getopt.c (const): Remove macro.
57174         Include <string.h> unconditionally.
57175         (my_index): Remove; all uses changed to strchr.
57176         (strlen): Remove decl.
57177         (exchange): Remove forward decl; no longer needed.
57178         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57179         Define with prototype.
57180         * lib/getopt1.c (const): Remove macro.
57181         (getopt_long, getopt_long_only, main): Define with prototype.
57182
57183         * lib/getugroups.c: Include <string.h> unconditionally.
57184
57185         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57186         (getusershell, setusershell, endusershell, readname, main):
57187         Define with prototypes.
57188
57189         * lib/group-member.c: Include group-member.h first.
57190         Include <stdlib.h> unconditionally.
57191
57192         * lib/hard-locale.c: Include hard-locale.h first.
57193         Include <stdlib.h>, <string.h> unconditionally.
57194
57195         * lib/hash.c (free, malloc): Remove decls.
57196         Include <stdlib.h> unconditionally.
57197
57198         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57199         (getenv): Do not declare.
57200
57201         * lib/idcache.c: Include <string.h> unconditionally.
57202
57203         * lib/long-options.c: Include long-options.h first, to test interface.
57204         Include <stdlib.h> unconditionally.
57205
57206         * lib/makepath.c: Include makepath.h first, to test interface.
57207         Include <stdlib.h> and <string.h> unconditionally.
57208
57209         * lib/linebuffer.c: Include <stdlib.h>.
57210         (free): Remove decl.
57211
57212         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57213         stddef.h. rpl_malloc returns void *, not char *.
57214         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57215         prototype.
57216
57217         * lib/md5.h: Include <limits.h> unconditionally.
57218         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57219         (__P): Remove; all uses removed.
57220         * lib/md5.c: Include "md5.h" first.
57221         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57222         md5_buffer, md5_process_bytes, md5_process_block):
57223         Define with prototypes.
57224         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57225         * lib/sha.c: Include "sha.h" first.
57226         Include <stdlib.h>, <string.h> unconditionally.
57227
57228         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57229         * lib/memcmp.c (__ptr_t): Likewise.
57230         * lib/memrchr.c (__ptr_t): Likewise.
57231         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57232         Include <string.h> unconditionally.
57233         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57234         * lib/memchr.c: Include <stdlib.h> unconditionally.
57235         * lib/memchr.c (LONG_MAX): Remove.
57236         * lib/memrchr.c (LONG_MAX): Likewise.
57237         * lib/memchr.c (__memchr): Define via a prototype.
57238         * lib/memrchr.c (__memrchr): Likewise.
57239         * lib/memcmp.c (__P): Remove, and remove all uses.
57240         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57241         Remove forward decls; no longer needed.
57242         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57243         Use types required by C89 in prototype.
57244
57245         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57246         * lib/savedir.c: Likewise.
57247         * lib/mkdir.c (free): Remove decl.
57248         * lib/rmdir.c (rmdir): Define with a prototype.
57249         * lib/savedir.c: Include savedir.h first, to test interface.
57250
57251         * lib/mktime.c (STDC_HEADERS): Remove.
57252         Include <stdlib.h>, <string.h> unconditionally.
57253
57254         * lib/modechange.c: Include <stdlib.h> unconditionally.
57255         (malloc): Remove decl.
57256
57257         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57258         (free): Remove decl.
57259
57260         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57261         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57262         (This type really should be intptr_t, but that's a C99ism.)
57263         (_obstack_memcpy): Remove: all uses changed to memcpy.
57264         Include <string.h> unconditionally.
57265         (struct obstack): Assume __STDC__ for types of members
57266         chunkfun, freefun, extra_arg.
57267         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57268         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57269         obstack_begin, obstack_specify_allocation,
57270         obstack_specify_allocation_with_arg, obstack_chunkfun,
57271         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57272         Remove unprototyped decls and the macros that use them.
57273         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57274         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57275         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57276         (defined __STDC__ && __STDC__)]:
57277         Remove nonprototyped code.
57278         Include <stdlib.h> unconditionally.
57279         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57280         _obstack_allocated_p, _obstack_free, obstack_free,
57281         _obstack_memory_used, print_and_abort):
57282         Define using prototypes.
57283         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57284         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57285         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57286         obstack_next_free, obstack_object_size, obstack_room) [0]:
57287         Remove unused, unprototyped code.
57288
57289         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57290
57291         * lib/physmem.c (physmem_total, physmem_available, main): Define
57292         with prototypes.
57293
57294         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57295         (main): Define with a prototype.
57296
57297         * lib/posixver.c (getenv): Remove decl.
57298
57299         * lib/putenv.c (malloc): Returns void *, not char *.
57300         Include <string.h> unconditionally.
57301         (strchr, memcpy, NULL): Do not define.
57302
57303         * lib/readtokens.c: Include readtokens.h first, to test interface.
57304         Include <stdlib.h>, <string.h> unconditionally.
57305         (init_tokenbuffer): Define with a prototype.
57306
57307         * lib/regex.c (PARAMS): Remove.  All uses removed.
57308         All uses of _RE_ARGS removed, too.
57309         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57310         unconditionally.
57311         (bzero): Assume memset exists.
57312         (memcmp, memcpy, NULL): Remove.
57313         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57314         char, or assignments to local vars of type signed char.
57315         (init_syntax_once, PREFIX(extract_number_and_incr),
57316         PREFIX(print_partial_compiled_pattern),
57317         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57318         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57319         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57320         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57321         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57322         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57323         wcs_compile_range, byte_compile_range, truncate_wchar,
57324         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57325         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57326         count_mbs_length, wcs_re_match_2_internal,
57327         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57328         PREFIX(alt_match_null_string_p),
57329         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57330         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57331         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57332         now-unnecessary declaration, if any.
57333         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57334         regcomp, regexec):
57335         Remove now-unnecessary casts among pointer types.
57336         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57337
57338         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57339         (free): Remove decl.
57340
57341         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57342
57343         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57344         (free): Remove decl.
57345
57346         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57347         * lib/xgetcwd.c: Likewise.
57348
57349         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57350         (free): Remove decl.
57351
57352         * lib/strchrnul.c (strchrnul): Define with a prototype.
57353         Fix bug: c_in was not converted to char before searching.
57354
57355         The following changes are not K&R related:
57356
57357         * lib/group-member.h: Include <sys/types.h>, so that this file is
57358         self-contained.
57359         * lib/makepath.h: Likewise.
57360
57361         * lib/getusershell.c (readname, default_index, line_size, readname):
57362         Use size_t, not int, for sizes.
57363         (readname): If the size overflows, report an error instead of
57364         looping forever.
57365
57366 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57367
57368         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57369         libc.
57370
57371 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57372
57373         * README: New section: portability guidelines.
57374
57375 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57376
57377         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57378         C89 spec.
57379
57380 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57381
57382         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57383
57384 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57385
57386         Assume C89 or better; remove K&R cruft.
57387         A few of these changes were first proposed by Derek Robert Price
57388         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57389
57390         * lib/addext.c: Include <string.h> unconditionally.
57391         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57392         Don't declare getenv or malloc.
57393
57394         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57395         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57396         (NULL): Remove.
57397         (find_stack_direction, alloca): Use prototypes.
57398
57399         * lib/atexit.c (atexit): Define using a prototype.
57400
57401         * lib/basename.c, dirname.c, stripslash.c:
57402         Include <string.h> unconditionally.
57403
57404         * lib/bcopy.c: Include <stddef.h>.
57405         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57406
57407         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57408
57409         * lib/error.h (error, error_at_line, error_print_progname)
57410         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57411         * lib/error.c: Include error.h first, to check interface.
57412         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57413         (VA_START): Remove; all uses changeed to va_start.
57414         (exit, strerror): Remove decls.
57415         (error_print_progname): Prototype uncondionally.
57416         Don't include <errno.h>; no longer needed.
57417         (private_strerror): Remove.
57418         (error_tail): Always define.
57419         (error, error_at_line): Assume C89 or better; always use prototypes.
57420         * lib/fatal.c: Include "fatal.h" first, to test interface.
57421         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57422         (VA_START): Remove; all uses changed to va_start.
57423         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57424         this case.
57425         (exit): Remove decl.
57426         (fatal): Prototype unconditionally.  Assume va_start works.
57427         Abort at end, to pacify gcc.
57428
57429         * lib/euidaccess.c (main): Define with a prototype.
57430
57431         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57432
57433         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57434
57435         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57436         prototypes.
57437         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57438         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57439         (getenv): Remove decl.
57440         (fnmatch): Define using a prototype.
57441         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57442         (FCT): Define using a prototype.
57443
57444         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57445
57446         * lib/gethostname.c: Include <stddef.h>.
57447         (gethostname): Define with prototype.  Length is size_t, not int.
57448
57449 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57450
57451         Assume C89 or better; remove K&R cruft.
57452         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57453         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57454         string.h, getenv, malloc.
57455         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57456         headers.
57457         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57458         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57459         do not check for strerror.
57460         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57461         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57462         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57463         do not check for doprnt or vprintf.
57464         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57465         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57466
57467 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57468
57469         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57470         getversion.c should have been removed then, but was accidentally
57471         preserved.
57472
57473         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57474         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57475
57476 2003-09-08  Karl Berry  <karl@gnu.org>
57477
57478         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57479                 config, forget about prep.
57480
57481         * config/depcomp, missing: update from automake.
57482
57483 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57484
57485         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57486         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57487
57488 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57489
57490         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57491         copy_tm_result.  Bug reported by Simon Josefsson in
57492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57493
57494 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57495
57496         * m4/time_r.m4: New file.
57497         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57498         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57499         is. Check for timegm declaration.
57500         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57501         Do not check for gmtime_r.
57502         Replace mktime if __mktime_internal does not exist and if mktime
57503         hasn't been replaced already.
57504
57505 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57506
57507         * lib/time_r.c, lib/time_r.h: New files.
57508
57509         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57510         __localtime_r.
57511         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57512         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57513
57514         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57515         __gmtime_r.
57516         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57517         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57518         Include <time_r.h>.
57519
57520         * lib/timegm.c: Switch to glibc implementation, with the following
57521         changes:
57522         [defined HAVE_CONFIG_H]: Include <config.h>.
57523         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57524         (__mktime_internal) [!defined _LIBC]: New decl.
57525         (__gmtime_r) [!defined _LIBC]: New macro and function.
57526         (timegm): Use a prototype, since gnulib assumes C89.
57527         Do not bother declaring tmp to be const, as it's not really usefu.
57528         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57529         (timegm): Declare only if HAVE_DECL_TIMEGM.
57530
57531 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57532
57533         * MODULES.html.sh (func_all_modules): Add time_r.
57534         * modules/time_r: New file.
57535         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57536         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57537
57538 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57539
57540         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57541         Bug reported by Lute Kamstra in
57542         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57543
57544         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57545         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57546         course with correspondingly smaller numbers for tomorrow and
57547         yesterday.  From Tadayoshi Funaba.  Originally installed into
57548         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57549         coreutils merge?).
57550
57551 2003-08-31  Simon Josefsson  <jas@extundo.com>
57552
57553         * modules/timegm: New file.
57554         * MODULES.html.sh (func_all_modules): Add timegm.
57555
57556 2003-08-31  Simon Josefsson  <jas@extundo.com>
57557
57558         * m4/timegm.m4: New file.
57559
57560 2003-08-31  Simon Josefsson  <jas@extundo.com>
57561
57562         * lib/timegm.h: New file.
57563         * lib/timegm.c: New file.  Based on
57564         wget-1.8.2/src/http.c:mktime_from_utc.
57565
57566 2003-08-31  Karl Berry  <karl@gnu.org>
57567
57568         * lib/argp.h: update from libc.
57569
57570 2003-08-28  Bruno Haible  <bruno@clisp.org>
57571
57572         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57573         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57574         followed by '#define fnmatch fnmatch_posix' gives an error.
57575
57576 2003-08-28  Bruno Haible  <bruno@clisp.org>
57577
57578         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57579         warning on QNX, which defines O_BINARY to 000000.
57580
57581 2003-08-27  Jim Meyering  <jim@meyering.net>
57582
57583         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57584         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57585         would fail after 32.  Reported by Danny Levinson.  Details here:
57586         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57587
57588 2003-08-24  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57591         MSVC7 <stdio.h> is included later.
57592
57593 2003-08-22  Simon Josefsson  <jas@extundo.com>
57594
57595         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57596
57597 2003-08-20  Karl Berry  <karl@gnu.org>
57598
57599         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57600
57601 2003-08-20  Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/progname: New file.
57604         * MODULES.html.sh (func_all_modules): Add progname.
57605
57606 2003-08-20  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/progname.h: New file, from GNU gettext.
57609         * lib/progname.c: New file, from GNU gettext.
57610         * lib/progreloc.c: New file, from GNU gettext.
57611
57612 2003-08-19  Jim Meyering  <jim@meyering.net>
57613
57614         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57615         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57616
57617 2003-08-19  Bruno Haible  <bruno@clisp.org>
57618
57619         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57620         more.
57621
57622 2003-08-19  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/xstrdup.c: Assume <string.h> exists.
57625
57626 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57627
57628         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57629         in makefile rules.
57630
57631 2003-08-18  Jim Meyering  <jim@meyering.net>
57632
57633         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57634         * m4/lib-ld.m4: Likewise.
57635
57636 2003-08-18  Jim Meyering  <jim@meyering.net>
57637
57638         * lib/setenv.h: Indent nested cpp directive.
57639         * lib/vasnprintf.c: Remove trailing blanks.
57640
57641 2003-08-17  Simon Josefsson  <jas@extundo.com>
57642
57643         * modules/xstrndup: New file.
57644         * MODULES.html.sh (func_all_modules): Add xstrndup.
57645
57646 2003-08-17  Simon Josefsson  <jas@extundo.com>
57647
57648         * modules/argp: Fix autoconf macro name. Add more dependencies.
57649
57650 2003-08-17  Simon Josefsson  <jas@extundo.com>
57651
57652         * m4/xstrndup.m4: New file.
57653
57654 2003-08-17  Simon Josefsson  <jas@extundo.com>
57655
57656         * m4/argp.m4: New file.
57657
57658 2003-08-17  Simon Josefsson  <jas@extundo.com>
57659             Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/xstrndup.h: New file.
57662         * lib/xstrndup.c: New file.
57663
57664 2003-08-17  Bruno Haible  <bruno@clisp.org>
57665
57666         * modules/strndup (Files, Include): Add lib/strndup.h.
57667
57668 2003-08-17  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/euidaccess (Files): Add lib/euidaccess.h.
57671
57672 2003-08-17  Bruno Haible  <bruno@clisp.org>
57673
57674         * lib/strndup.h: New file.
57675
57676 2003-08-17  Bruno Haible  <bruno@clisp.org>
57677
57678         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57679         like AC_GNU_SOURCE.
57680         * modules/extensions (configure.ac): Comment out the invocation of
57681         gl_USE_SYSTEM_EXTENSIONS.
57682
57683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57684
57685         Merges from coreutils, etc.
57686         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57687         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57688         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57689         fixing a typo.
57690         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57691         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57692
57693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57694
57695         Document merge from coreutils.
57696         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57697         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57698         * modules/utime: Add m4/utimes-null.m4.
57699
57700 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57701
57702         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57703         space, undoing this 2003-08-12 change:
57704         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57705
57706 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57707
57708         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57709         strtoul.c from libc, undoing this 2003-08-12 change:
57710         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57711
57712 2003-08-16  Jim Meyering  <jim@meyering.net>
57713
57714         Merges from coreutils.
57715         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57716         prefix.  Adjust cache variables similarly.  Create 500 rather than
57717         just 300 files, to exercise bug on Darwin6.5, too.
57718         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57719         $missing_dir.
57720         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57721         AM_SYS_POSIX_TERMIOS.
57722         Reported by mkc@mathdogs.com.
57723         Also change use of $am_cv_sys_posix_termios
57724         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57725         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57726         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57727         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57728         in /proc/mounts until it finds one with matching device number.  This
57729         is unnecessary when the FILE argument *is* a mount point.  No stat call
57730         is necessary in that case.  So, disable the statvfs-testing code on
57731         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57732         as RedHat bug# 84846.
57733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57734         to 1MB, so as not to render systems with no stack size limit (e.g.,
57735         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57736         Include <unistd.h>.  On some systems,
57737         it is required for the definition of _SC_PAGESIZE.
57738
57739 2003-08-16  Jim Meyering  <jim@meyering.net>
57740
57741         Merge from coreutils.
57742         * lib/xstrtoimax.c: #else #if -> #elif.
57743         * lib/xstrtoumax.c: Likewise.
57744
57745 2003-08-16  Jim Meyering  <jim@meyering.net>
57746
57747         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57748         * m4/utimes.m4: Removed.
57749         * m4/utimes-null.m4: Renamed from utimes.m4.
57750
57751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57752         to 1MB, so as not to render systems with no stack size limit (e.g.,
57753         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57754         Include <unistd.h>.  On some systems,
57755         it is required for the definition of _SC_PAGESIZE.
57756
57757 2003-08-16  Jim Meyering  <jim@meyering.net>
57758         and Paul Eggert  <eggert@cs.ucla.edu>
57759
57760         Merges from coreutils, etc.
57761
57762         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57763         using the latest version from cvs.  This avoids problems with #line
57764         directives using a vendor (Sun) compiler.
57765         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57766         Don't set GETGROUPS_LIB here; now it's
57767         done via getgroups.m4's wrapper function.
57768         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57769         rather than just in sh-util/configure.in, so that the
57770         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57771         same.
57772         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57773         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57774         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57775         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57776         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57777         Remove code that is now done by the newly-required macros.
57778         Append $(EXEEXT) to DF_PROG.
57779         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57780         Do not invoke or require the following here,
57781         since prereq.m4 or some gnulib .m4 now does this for us:
57782         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57783         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57784         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57785         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57786         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57787         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57788         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57789         AC_FUNC_OBSTACK.
57790         Do not replace the following functions, as this is now the job
57791         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57792         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57793         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57794         atexit getpass, strdup, getpagesize.
57795         Replace 'raise'.
57796         Do not check for the following functions, as this is now the job
57797         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57798         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57799         setregid.
57800         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57801         Check for sys/sysctl.h.
57802         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57803         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57804         of checking for ssize_t ourselves.
57805
57806         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57807         Require every macro that gnulib/modules/* suggests for us.
57808         (jm_PREREQ_ADDEXT): New macro.
57809         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57810         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57811
57812         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57813         (gl_PHYSMEM): Use it.
57814         Also check for `table' function.
57815         Check for new headers and functions.
57816         Add check for sys/sysmp.h.
57817         With suggestions from Kaveh Ghazi.
57818         Ignore headers that are present but cannot be compiled.  This
57819         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57820         C 5.4.
57821
57822 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57823
57824         Document merge from coreutils.
57825         * modules/userspec: Depend on posixver.
57826         * modules/strftime: Depend on tzset.
57827
57828 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57829
57830         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57831         rather than tab, after '#' in shell-script copyright notices.
57832         Suggested by Bruno Haible.
57833
57834 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57835
57836         * config/srclist-update: Use three spaces, rather than tab, after '#'
57837         in shell-script copyright notices.  Suggested by Bruno Haible.
57838         Remove unnecessary parenthesization in regular expression.
57839
57840 2003-08-15  Jim Meyering  <jim@meyering.net>
57841
57842         Merge from coreutils.
57843         * lib/xgethostname.c: Include <stdlib.h>.
57844         (xghostname): Don't exit for anything other than memory-related
57845         failure; just return NULL.
57846         * lib/userspec.c: Include "posixver.h".
57847         (parse_user_spec): Accept `.' as a separator only
57848         in pre-POSIX-200112 mode.
57849         * lib/strtoimax.c: Use #elif rather than #else #if.
57850         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57851         Remove function, now that we can rely on a working tzset function.
57852         [!_LIBC]: Ensure that the required autoconf test has been run.
57853         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57854         Use underlying_strftime for %r.
57855         * lib/sha.c: Merge in some clean-up and optimization changes from
57856         glibc.
57857         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57858         Ensure that it is a multiple of 64.
57859         Rearrange loop exit tests so as to avoid performing an
57860         additional fread after encountering an error or EOF.
57861         * lib/realloc.c: Update copyright date.
57862
57863 2003-08-15  Jim Meyering  <jim@meyering.net>
57864         and Paul Eggert  <eggert@twinsun.com>
57865
57866         Merge from coreutils.
57867         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57868         member but strut utmpx does not.  Needed for AIX 4.3.3.
57869         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57870
57871 2003-08-15  Jim Meyering  <jim@meyering.net>
57872         and Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         Merges from coreutils, etc.
57875         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57876         Require gl_FUNC_TZSET_CLOBBER.
57877         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57878         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57879         members.
57880
57881 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57882
57883         Help the merge from coreutils.
57884         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57885         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57886         * m4/tzset.m4: Use it too.
57887
57888 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57889
57890         * modules/tzset: New file.
57891
57892 2003-08-14  Jim Meyering  <jim@meyering.net>
57893
57894         Merges from coreutils.
57895         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57896         variable names, rather than @FNMATCH_H@.
57897         * modules/alloca: Likewise for $(ALLOCA_H).
57898
57899         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57900         the three copies of the literal target, `fnmatch.h'.
57901         * modules/alloca (alloca.h): Likewise.
57902
57903 2003-08-14  Jim Meyering  <jim@meyering.net>
57904
57905         Merge from coreutils.
57906         * m4/tzset.m4: New file.
57907         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57908         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57909         otherwise, AIX 5.1 systems would end up using the latter.
57910         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57911         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57912         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57913         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57914
57915 2003-08-14  Jim Meyering  <jim@meyering.net>
57916
57917         Merge from coreutils.
57918         * lib/obstack.h: Whitespace changes.
57919         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57920         and xcalloc return values.
57921         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57922         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57923         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57924         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57925         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57926         error from mntctl.
57927         Use mntctl's return value to drive the entry-processing loop, since
57928         we can't rely on the value of the vmt_length member in the last
57929         entry.  On some systems doing so could result in exhausting
57930         virtual memory.  Based in part on a patch from Mike Jetzer.
57931
57932 2003-08-14  Jim Meyering  <jim@meyering.net>
57933         and Paul Eggert  <eggert@twinsun.com>
57934
57935         Merges from coreutils, plus other fixes.
57936         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57937         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57938         for credits and details.  Thanks to Kaveh Ghazi for helping
57939         to keep these files in sync.
57940         (ARRAY_SIZE): Define it.
57941         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57942         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57943         (memcasecmp): Don't assume size_t fits in unsigned int.
57944         Remove casts and duplicate code.
57945         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57946         (memcpy): Remove definition.
57947         Merge in some clean-up and optimization changes from glibc.
57948         [BLOCKSIZE]: Move definition to top of file.
57949         Ensure that it is a multiple of 64.
57950         Rearrange loop exit tests so as to avoid performing an
57951         additional fread after encountering an error or EOF.
57952         * lib/md5.h (md5_uintptr): Define.
57953         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57954         return to the initial working directory.  Preserve errno
57955         for caller.
57956         * lib/idcache.c: Include "xalloc.h".
57957         (xmalloc, xrealloc): Remove decls.
57958         (getuser): Remove casts no longer required in C89.
57959         * lib/human.c: Include stdio.h, for sprintf.
57960         * lib/group-member.c: Include "xalloc.h".
57961         (xmalloc, xrealloc): Remove decls.
57962         (get_group_info): Remove casts no longer required in C89.
57963         * lib/getusershell.c (readname): Remove casts no longer required in
57964         C89.
57965         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57966         * lib/getline.c: Whitespace fix, from coreutils.
57967
57968 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57969
57970         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57971         Check for isascii.
57972
57973         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57974         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57975         Undo previous (whitespace-only) change.
57976
57977 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57978
57979         * lib/exclude.c: Include <ctype.h>
57980         (IN_CTYPE_DOMAIN): New macro.
57981         (is_space): New fn.
57982         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57983         and empty lines.
57984
57985         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57986         Undo previous (whitespace-only) change.
57987
57988 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57989
57990         * config/srclist-update: Change update back to the old behavior,
57991         leaving whitespace alone.  Use one 'sed' command rather than a
57992         pipeline.
57993         (fixlicense): Now a variable, not a function.
57994         (remove_trailing_blanks): Remove.
57995         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57996         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57997         Undo previous (whitespace-only) change.
57998
57999 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58000
58001         Merge from coreutils.
58002         * modules/euidaccess: Add lib_SOURCES, include for new
58003         file euidaccess.h
58004
58005 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58006
58007         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58008         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58009         Normalize leading white space and remove trailing white space.
58010
58011         Merge from coreutils
58012         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58013
58014         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58015         0.12.1.  These files are now being upgraded automatically by
58016         ../config/srclist-update.
58017
58018 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58019
58020         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58021         Normalize leading white space and remove trailing white space.
58022         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58023         notice, as per ../config/srclist-update.
58024
58025         Merge from coreutils.
58026         * lib/euidaccess.h: New file.
58027         * lib/euidaccess.c: Include it.
58028         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58029         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58030         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58031
58032 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58033
58034         * config/srclist-update: Add copyright notice.
58035         (remove_id_lines, remove_trailing_blanks): New constants.
58036         (fixfile): Use them to normalize spacing a bit in copied files.
58037         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58038         Normalize leading white space and remove trailing white space.
58039
58040         * config/texinfo.tex: Sync with texinfo.
58041
58042         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58043         strtoul.c from libc, to merge coreutils whitespace changes.
58044
58045         * config/srclist.txt: Get the following m4 files from gettext:
58046         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58047         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58048         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58049         wint_t.m4.
58050
58051 2003-08-12  Karl Berry  <karl@gnu.org>
58052
58053         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58054         been made.
58055
58056 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58057
58058         * modules/gnu-source, m4/gnu-source.m4:
58059         Remove; we're assuming Autoconf 2.54 or later now.
58060         Suggested by Bruno Haible.
58061         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58062
58063 2003-08-11  Bruno Haible  <bruno@clisp.org>
58064
58065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58066
58067 2003-08-11  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58070         (vasnprintf): Use it instead of wcslen.
58071
58072 2003-08-11  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58075         value to ensure that _Bool promotes to int. Use #define for _Bool when
58076         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58077
58078 2003-08-10  Karl Berry  <karl@gnu.org>
58079
58080         * lib/regex.h: update from libc (whitespace fix).
58081
58082 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58083
58084         Merge some files from coreutils.  These changes were
58085         originally made by Jim Meyering.
58086         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58087         many older Unixes require this.
58088         * lib/alloca.c (alloca): Remove cast to argument of free;
58089         no longer needed in C89.
58090         * lib/alloca_.h, regex.h: Fix white space to match
58091         what GNU indent does.
58092
58093 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58094
58095         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58096         apparently Emacs's Unicode mode got confused before my 2003-08-05
58097         checkin.
58098
58099 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58100
58101         * m4/extensions.m4: New file.
58102         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58103         Require gl_USE_SYSTEM_EXTENSIONS.
58104         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58105         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58106
58107 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58108
58109         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58110         * modules/extensions, modules/gnu-source: New files.
58111         * modules/timespec, modules/unlocked-io: Depend on extensions.
58112
58113 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58114
58115         * modules/restrict: New file.
58116         * MODULES.html.sh (func_all_modules): Add restrict.
58117         * modules/regex: Depend on restrict.
58118
58119 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58120
58121         * m4/restrict.m4: New file.
58122         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58123
58124 2003-08-07  Bruno Haible  <bruno@clisp.org>
58125
58126         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58127         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58128
58129 2003-08-07  Bruno Haible  <bruno@clisp.org>
58130
58131         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58132         makes the module 'getndelim2' compatible with the module 'getline'.
58133
58134 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58135
58136         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58137         byte with "\201" to avoid glitches when editing that source file
58138         with multi-gnome-terminal.
58139
58140 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58141
58142         * lib/bumpalloc.h: Remove.
58143
58144 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58145
58146         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58147         * modules/bumpalloc: Remove.
58148
58149 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58150
58151         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58152         GNU coding style.
58153
58154         Merge from coreutils.
58155         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58156         1. From glibc.
58157         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58158         from Karl Berry, implemented by Jim Meyering.
58159         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58160         from Dmitry V. Levin.
58161         Remove anachronistic cast of xrealloc.
58162         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58163         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58164         type. Otherwise, it wouldn't compile with at least /bin/cc on
58165         ymp-cray-unicos9.0.2.X.
58166         Combine two mostly-identical uses of alloca into one.
58167         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58168
58169 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58170
58171         [From Emacs.]
58172
58173         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58174         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58175         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58176         obsolete NLIST_NAME_UNION.
58177         [__GNU__]: Undef BSD and FSCALE.
58178         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58179
58180 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58181
58182         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58183         an enum type, so that it's guaranteed to promote to int.  See:
58184         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58185
58186 2003-08-03  Karl Berry  <karl@gnu.org>
58187
58188         * config/depcomp: update from automake.
58189
58190 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58191
58192         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58193         (strerror): Don't assume that a printable int fits in 14 bytes.
58194
58195 2003-07-31  Bruno Haible  <bruno@clisp.org>
58196
58197         * modules/getpass-gnu: New file.
58198         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58199
58200 2003-07-31  Bruno Haible  <bruno@clisp.org>
58201
58202         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58203
58204 2003-07-24  Karl Berry  <karl@gnu.org>
58205
58206         * config/missing: update from automake.
58207
58208 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58209             Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58212         * lib/getline.c (getline, getdelim): Likewise.
58213         Remove _GNU_SOURCE define; now it's defined in config.h through
58214         m4/getline.m4.
58215
58216 2003-07-23  Karl Berry  <karl@gnu.org>
58217
58218         * config/config.sub: update from prep.
58219
58220 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58221
58222         * modules/xalloc (Depends-on): Add exitfail.
58223         * modules/xmemcoll: Likewise.
58224
58225 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58226
58227         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58228         over-parenthesization in macros.
58229
58230         Sync with coreutils.
58231
58232         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58233         required by C99.
58234
58235         Use `exit_failure' for xalloc and xmemcoll instead of their own
58236         private exit-failure variables.
58237         * lib/xalloc.h (xalloc_exit_failure): Remove.
58238         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58239         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58240         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58241         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58242         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58243
58244 2003-07-20  Jim Meyering  <jim@meyering.net>
58245
58246         * modules/closeout (Depends-on): Add exitfail.
58247         Suggestion from Bruno Haible.
58248
58249 2003-07-19  Karl Berry  <karl@gnu.org>
58250
58251         * config/config.sub: update from prep.
58252
58253 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58254
58255         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58256         Remove.
58257         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58258         to test that it can stand by itself.  Include "exitfail.h".
58259         Clients should set exit_failure instead.
58260         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58261
58262 2003-07-18  Bruno Haible  <bruno@clisp.org>
58263
58264         * modules/getndelim2: New file.
58265         * modules/getline: Share files with module getndelim2.
58266         * modules/getnline: Depend on getndelim2 instead of sharing files with
58267         it. Add getnline.c to lib_SOURCES.
58268         * MODULES.html.sh (func_all_modules): Add getndelim2.
58269
58270 2003-07-18  Bruno Haible  <bruno@clisp.org>
58271
58272         * m4/getndelim2.m4: New file.
58273         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58274         invoke gl_PREREQ_GETNDELIM2.
58275         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58276         gl_PREREQ_GETNDELIM2.
58277         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58278         gl_GETNDELIM2.
58279
58280 2003-07-18  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/getndelim2.h: New file.
58283         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58284         getndelim2.h.
58285         (getndelim2): Make non-static. Change return type to ssize_t.
58286         * lib/getline.h: Change argument names.
58287         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58288         * lib/getnline.c: Include getndelim2.h.
58289
58290 2003-07-18  Andreas Schwab  <schwab@suse.de>
58291
58292         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58293
58294 2003-07-17  Karl Berry  <karl@gnu.org>
58295
58296         * config/config.sub: update from prep.
58297
58298 2003-07-17  Bruno Haible  <bruno@clisp.org>
58299
58300         * modules/getnline: New file.
58301         * modules/getline: Add lib/getndelim2.c to source file list.
58302         * MODULES.html.sh (func_all_modules): Add getnline.
58303
58304 2003-07-17  Bruno Haible  <bruno@clisp.org>
58305
58306         * m4/getnline.m4: New file.
58307
58308 2003-07-17  Bruno Haible  <bruno@clisp.org>
58309
58310         * m4/Makefile.am.in: Remove file.
58311         * m4/Makefile.am: Remove file.
58312         * m4/Makefile.in: Remove file.
58313
58314 2003-07-17  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/getnline.h: New file.
58317         * lib/getnline.c: New file.
58318         * lib/getndelim2.c: New file, extracted from getline.c.
58319         (getndelim2): Renamed from getdelim2, with added nmax argument.
58320         * lib/getline.c: Include getndelim2.c.
58321         (getdelim2): Moved out to getndelim2.c.
58322         (getline, getdelim): Update.
58323
58324 2003-07-17  Bruno Haible  <bruno@clisp.org>
58325
58326         * lib/Makefile.am: Remove file.
58327         * lib/Makefile.in: Remove file.
58328
58329 2003-07-17  Bruno Haible  <bruno@clisp.org>
58330
58331         * configure.in: Remove file.
58332         * Makefile.in: Remove file.
58333
58334 2003-07-17  Bruno Haible  <bruno@clisp.org>
58335
58336         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58337
58338 2003-07-16  Karl Berry  <karl@gnu.org>
58339
58340         * config/srclist-update: was running fixlicense twice, which caused
58341                 texinfo.tex to be nullified for some reason.  Simplify,
58342                 $gplsrc is no longer needed as far as I can see?
58343
58344 2003-07-16  Jim Meyering  <jim@meyering.net>
58345
58346         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58347
58348 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58349
58350         * config/srclist.txt: Get the following files from gettext-runtime/intl
58351         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58352         ref-del.sin.  From Bruno Haible.
58353         * config/srclist-update (fixfile): Change grep pattern again, since the
58354         previous fix didn't work (there was another trailing $).  Use
58355         '[$]' to escape the $s.
58356
58357 2003-07-15  Karl Berry  <karl@gnu.org>
58358
58359         * lib/vasnprintf.c: update from gettext.
58360
58361 2003-07-15  Karl Berry  <karl@gnu.org>
58362
58363         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58364         gets expanded when surrounded by '$'.
58365
58366 2003-07-15  Jim Meyering  <jim@meyering.net>
58367
58368         * modules/save-cwd: Don't depend on error.  From Derek Price.
58369
58370 2003-07-15  Jim Meyering  <jim@meyering.net>
58371
58372         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58373
58374 2003-07-14  Simon Josefsson  <jas@extundo.com>
58375
58376         * modules/mempcpy: New file.
58377         * MODULES.html.sh (func_all_modules): Add mempcpy.
58378
58379 2003-07-14  Simon Josefsson  <jas@extundo.com>
58380
58381         * m4/mempcpy.m4: New file.
58382
58383 2003-07-14  Simon Josefsson  <jas@extundo.com>
58384
58385         * lib/mempcpy.h: New file.
58386         * lib/mempcpy.c: New file.
58387
58388 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58389
58390         * modules/getdate, modules/posixtm: Depend on mktime.
58391
58392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58393
58394         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58395         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58396         unicodeio.c, unicodeio.h, unlocked-io.h:
58397         Switch from LGPL to GPL.
58398
58399 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58400
58401         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58402         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58403         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58404         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58405         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58406         updated automatically by ../config/srclist-update.  This changes
58407         their license from LPGL to GPL.
58408
58409 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58410
58411         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58412         assumed to refer to the root of the most recent stable gettext version.
58413         * config/srclistvars.sh: Add defaults for eggert.
58414         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58415         Match "This program" as well as "The program".  This is needed
58416         for gettext.
58417
58418 2003-07-14  Jim Meyering  <jim@meyering.net>
58419
58420         Don't emit diagnostics.  Let callers do that.
58421         * lib/save-cwd.c: Don't include "error.h".
58422         (save_cwd): Don't call error.  Ensure that errno is valid
58423         when returning nonzero.
58424
58425         * lib/save-cwd.h (restore_cwd): Update prototype.
58426         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58427         Simplify.  Don't call error upon failure.  Let callers do that.
58428         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58429         when auditing is enabled.  But don't bother updating the #if.
58430
58431 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58432
58433         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58434         it breaks C++ compilation.
58435         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58436
58437 2003-07-10  Simon Josefsson  <jas@extundo.com>
58438
58439         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58440
58441 2003-07-10  Jim Meyering  <jim@meyering.net>
58442
58443         * m4/clock_time.m4: Remove trailing blank.
58444         * m4/intmax_t.m4: Likewise.
58445
58446 2003-07-10  Jim Meyering  <jim@meyering.net>
58447
58448         * lib/vasnprintf.c: Remove trailing blanks.
58449         Make cpp indentation consistent.
58450
58451 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58452
58453         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58454         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58455         Switch from LGPL to GPL.
58456
58457 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58458
58459         * config/srclist.txt: Sort sublists.  Add
58460         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58461         that differ from gnulib for one reason or another; we'd like this list
58462         to be smaller but for now let's document what we have.
58463
58464 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58465
58466         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58467         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58468         and sweeter "eval x=$x".
58469         * config/srclist.txt: Get lib/argp* from glibc.
58470
58471 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58472
58473         * lib/mktime.c: Fix some boundary cases and remove need for floating
58474         point.
58475
58476         Issue a compile-time diagnostic if time_t is floating point, or if
58477         two's complement arithmetic is not in effect, or if arithmetic
58478         right shift does not propagate the sign.  These assumptions were
58479         all in the original code but they weren't checked.
58480
58481         (TIME_T_MIDPOINT, verify): New macros.
58482         (__isleap): Remove; it has integer overflow problems.
58483         (leapyear): New function, without those problems.
58484         (ydhms_tm_diff): Remove; splitting into two parts.
58485         (ydhms_diff): New function, containing the arithmetic part of
58486         the old ydhms_tm_diff function.  Issue a compile-time
58487         diagnostic if we are not using C99 integer division.
58488         Avoid casts when possible.
58489         (guess_time_tm): New function, containing the checking part of
58490         the old ydhms_tm_diff function.  Return the new value, rather than
58491         the difference between it and the old.  Accept a new argument T
58492         so that *T specifies the old value.  Check for overflow in the result.
58493
58494         (__mktime_internal): Use a time_t offset, not a long int offset.
58495         This undoes the 2003-06-04 change, which is no longer needed now
58496         that we have better overflow checking.
58497         (localtime_offset): Likewise.
58498
58499         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58500         and long are 64-bit but int is only 32-bit.
58501         (ydhms_diff): Use long int to store year1 and yday1.
58502         Issue a compile-time diagnostic if long int is not wide enough.
58503
58504         (__mktime_internal): Use long int to store adjusted year and yday.
58505         Use plain C rather than preprocessor commands, if that doesn't
58506         affect efficiency.
58507         Check for overflow (and try to repair) after each probe
58508         rather than checking only at the very end.  This avoids some bugs
58509         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58510         does not equal GMT offset at maximum time).
58511         Use integer to check for overflow rather than floating point; this
58512         is more portable to non-IEEE hosts, and is a tad faster.
58513         When we detect that we are oscillating between two values,
58514         don't check whether tm_isdst has the requested value, since
58515         we already know the answer.  When tm_isdst has the wrong value,
58516         use a different heuristic to find the right one, based on the
58517         extreme values actually observed in practice in tz2003a,
58518         rather than the (overly optimistic) "previous 3 calendar quarters".
58519
58520         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58521         "T const" to accommodate glibc style.
58522         (check_result): Use less-confusing report format.  "long" -> "long int.
58523         (main): Likewise.
58524         Don't loop if the iteration overflows time_t.
58525         Allow a negative step in the iteration.
58526
58527 2003-07-06  Karl Berry  <karl@gnu.org>
58528
58529         * config/depcomp: update from automake.
58530         * config/config.sub: update from prep.
58531
58532 2003-07-03  Karl Berry  <karl@gnu.org>
58533
58534         * config/config.guess: update from prep.
58535
58536 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58537
58538         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58539         xreadlink.c now includes it unconditionally.
58540
58541 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58542
58543         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58544         having it depend on HAVE_SYS_TYPES_H.
58545
58546 2003-07-01  Bruno Haible  <bruno@clisp.org>
58547
58548         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58549         <sys/types.h> should be sufficient.
58550         Reported by Paul Eggert.
58551
58552 2003-06-26  Karl Berry  <karl@gnu.org>
58553
58554         * config/depcomp: update from automake.
58555
58556 2003-06-26  Bruno Haible  <bruno@clisp.org>
58557
58558         * modules/human: Depend on module stdbool.
58559
58560 2003-06-25  Bruno Haible  <bruno@clisp.org>
58561
58562         * modules/readlink: New file.
58563         * modules/xreadlink: Depend on it.
58564         * MODULES.html.sh (func_all_modules): Add readlink.
58565
58566 2003-06-25  Bruno Haible  <bruno@clisp.org>
58567
58568         * m4/readlink.m4: New file.
58569
58570 2003-06-25  Bruno Haible  <bruno@clisp.org>
58571
58572         * lib/readlink.c: New file.
58573
58574 2003-06-22  Karl Berry  <karl@gnu.org>
58575
58576         * config/srclist.txt: update mkinstalldirs from automake.
58577         * config/mkinstalldirs: update.
58578
58579 2003-06-22  Bruno Haible  <bruno@clisp.org>
58580
58581         Portability to mingw32.
58582         * m4/ssize_t.m4: New file, from GNU gettext.
58583         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58584         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58585
58586 2003-06-22  Bruno Haible  <bruno@clisp.org>
58587
58588         * modules/safe-read: Add m4/ssize_t.m4.
58589         * modules/xreadlink: Add m4/ssize_t.m4.
58590
58591 2003-06-20  Bruno Haible  <bruno@clisp.org>
58592
58593         Assume C89, so PARAMS isn't needed.
58594         * lib/unicodeio.h (PARAMS): Remove.
58595         * lib/unicodeio.c: Don't use PARAMS.
58596
58597 2003-06-18  Karl Berry  <karl@gnu.org>
58598
58599         * config/config.{guess,sub}: update from prep.
58600
58601 2003-06-18  Jim Meyering  <jim@meyering.net>
58602
58603         Merge changes from coreutils.
58604         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58605         Remove explicit declarations of xmalloc and realloc.
58606         Include xalloc.h.
58607         (read_utmp): Remove anachronistic cast of xmalloc.
58608
58609 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58610
58611         Assume C89, so PARAMS isn't needed.
58612         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58613         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58614         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58615         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58616         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58617         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58618         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58619         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58620         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58621         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58622         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58623         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58624         no longer needed. Anyway, config.h should always be included before any
58625         other file.
58626
58627 2003-06-11  Simon Josefsson  <jas@extundo.com>
58628
58629         * modules/sysexits: New file.
58630         * MODULES.html.sh (func_all_modules): Add sysexits.
58631
58632 2003-06-11  Simon Josefsson  <jas@extundo.com>
58633
58634         * lib/sysexit_.h: New file.
58635
58636 2003-06-11  Derek Price  <derek@ximbiot.com>
58637
58638         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58639         necessary.
58640
58641 2003-06-11  Bruno Haible  <bruno@clisp.org>
58642
58643         * m4/sysexits.m4: New file.
58644
58645 2003-06-10  Simon Josefsson  <jas@extundo.com>
58646
58647         * lib/argp.h: New file, from glibc.
58648         * lib/argp-ba.c: New file, from glibc.
58649         * lib/argp-eexst.c: New file, from glibc.
58650         * lib/argp-fmtstream.c: New file, from glibc.
58651         * lib/argp-fmtstream.h: New file, from glibc.
58652         * lib/argp-fs-xinl.c: New file, from glibc.
58653         * lib/argp-help.c: New file, from glibc.
58654         * lib/argp-namefrob.h: New file, from glibc.
58655         * lib/argp-parse.c: New file, from glibc.
58656         * lib/argp-pv.c: New file, from glibc.
58657         * lib/argp-pvh.c: New file, from glibc.
58658         * lib/argp-xinl.c: New file, from glibc.
58659
58660 2003-06-10  Simon Josefsson  <jas@extundo.com>
58661
58662         * modules/strchrnul: New file.
58663
58664 2003-06-10  Simon Josefsson  <jas@extundo.com>
58665
58666         * modules/argp: New file.
58667
58668 2003-06-10  Simon Josefsson  <jas@extundo.com>
58669
58670         * m4/strchrnul.m4: New file.
58671
58672 2003-06-10  Simon Josefsson  <jas@extundo.com>
58673
58674         * lib/strchrnul.h: New file.
58675         * lib/strchrnul.c: New file.
58676
58677 2003-06-10  Bruno Haible  <bruno@clisp.org>
58678
58679         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58680
58681 2003-06-07  Karl Berry  <karl@gnu.org>
58682
58683         * config/config.{guess,sub}: update from prep.
58684
58685 2003-06-07  Jim Meyering  <jim@meyering.net>
58686
58687         * modules/strtod: Use $(...) notation, not @...@ for
58688         AC_REPLACE'd variables.
58689         * modules/localcharset: Likewise.
58690
58691 2003-06-07  Jim Meyering  <jim@meyering.net>
58692
58693         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58694         in place of my name in the copyright comment.
58695         Remove definition and uses of __P.
58696
58697         From coreutils.
58698         * lib/stat.c: Don't declare xmalloc explicitly.
58699         Instead, include "xalloc.h".
58700         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58701         xrealloc, and xcalloc return values.
58702         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58703         Improve comment.
58704         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58705
58706 2003-06-07  Bruno Haible  <bruno@clisp.org>
58707
58708         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58709         avoid AC_CONFIG_LINKS.
58710         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58711         fnmatch.h, to avoid AC_CONFIG_LINKS.
58712         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58713
58714 2003-06-07  Bruno Haible  <bruno@clisp.org>
58715
58716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58717         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58718         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58719         directory.
58720         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58721         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58722         directory.
58723
58724 2003-06-06  Jim Meyering  <jim@meyering.net>
58725
58726         Merge from coreutils.
58727         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58728         Consolidate declarations and initializations of *_base* locals.
58729
58730         Merge from coreutils.
58731         This avoids a core dump on systems without GNU putenv,
58732         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58733         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58734         (unsetenv): New static function, from GNU libc.
58735         (rpl_putenv): Use it.
58736
58737         * lib/modechange.c: Remove trailing blanks.
58738
58739         Merge from coreutils.
58740         * lib/fsusage.c: Remove declaration of statfs.
58741         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58742
58743         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58744
58745 2003-06-06  Jim Meyering  <jim@meyering.net>
58746
58747         * lib/stdbool_.h: Renamed from stdbool.h.in.
58748
58749 2003-06-06  Jim Meyering  <jim@meyering.net>
58750             Bruno Haible  <bruno@clisp.org>
58751
58752         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58753         Adjust Makefile.am snippet not to redirect directly to target.
58754         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58755
58756 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58757
58758         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58759         mismatch, look in future quarters as well as past.  This fixes a
58760         bug when processing fall-backwards gaps immediately after a long
58761         period of daylight-saving time.
58762
58763         * lib/mktime.c: Assume freestanding C89 or better.
58764         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58765         (__P): Remove; not used.
58766         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58767         (mktime, not_equal_tm, print_tm, check_result,
58768         main): Use prototypes.  Use const * where appropriate.
58769         (main): Fix typo in testing code that uncovered by above changes.
58770         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58771
58772 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58773
58774         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58775         locale.h, localeconv.  This merges changes from coreutils.
58776
58777         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58778         It can be removed after the next Autoconf is released.
58779         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58780         needed.
58781
58782 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58783
58784         * lib/mktime.c: Fix Debian bug 177940
58785         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58786         (localtime_offset): Now long int, not time_t, because we want it
58787         to be guaranteed to be signed.  All uses changed.
58788         (__mktime_internal): If overflow would occur when adding offset,
58789         don't add it.
58790
58791         Merge 'human' changes from coreutils.  Rewrite to support
58792         locale-specific notations like thousands separators.
58793         * lib/human.c: Simplify authorship notice.
58794         Include human.h immediately after config.h.
58795         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58796         <limits.h>: Do not include, since human.h does.
58797         (SIZE_MAX, UINTMAX_MAX): New macros.
58798         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58799         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58800         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58801         (power_letter): Renamed from suffixes.
58802         (generate_suffix_backwards): Remove.
58803         (adjust_value): Now takes int style (because of human.h changes)
58804         and long double value (for greater precision on some platforms).
58805         (group_number): New function.
58806         (human_readable): Use it.  Use integer options, not enum.
58807         Put the options before the sizes in the arg list.
58808         Support all the new options.
58809         The old human_readable function has been removed;
58810         use inttostr.h instead.
58811         (human_readable, default_block_size, humblock):
58812         Use uintmax_t, not int, for block sizes.
58813         (human_readable_inexact, block_size_types): Remove.
58814         (block_size_opts): New constant.
58815         (human_options): Renamed from human_block_size, with new signature
58816         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58817         * lib/human.h: Add copyright and authorship notice.
58818         Include <limits.h> and <stdbool.h> unconditionally.
58819         (PARAMS): Remove.  All uses removed.
58820         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58821         (enum human_inexact_style): Remove tag; now a nameless enum.
58822         (human_floor, human_ceiling, human_round_to_even): Now have
58823         values 2, 0, 1 rather than -1, 1, 0.
58824         (human_group_digits, human_suppress_point_zero, human_autoscale,
58825         human_base_1024, human_SI, human_B): New constants.
58826         (human_readable_inexact, human_block_size): Remove.
58827         (human_readable): Size args are now uintmax_t, not int.
58828         (human_options): New decl.
58829
58830         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58831         unnecessary now that we assume C89 or better.  This change
58832         imported from coreutils.
58833
58834         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58835         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58836         in the 2003-05-30 sync from glibc.
58837
58838         .h files should stand alone, but we shouldn't include <sys/types.h>
58839         if we can get away with just <stddef.h>.
58840
58841         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58842         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58843         rather than <sys/types.h>, as we merely need size_t.
58844         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58845         to get size_t.
58846         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58847         Include <stdio.h>, to get FILE.
58848         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58849         memcasecmp.h has included <stddef.h> and all we need is size_t.
58850         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58851         our interface, instead of including <sys/types.h>
58852
58853 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58854
58855         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58856         now, as glibc mktime is buggy on non-glibc systems.
58857
58858 2003-06-03  Karl Berry  <karl@gnu.org>
58859
58860         * config/config.sub: update from prep.
58861
58862 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58863
58864         [from coreutils]
58865         Fix some minor time-related bugs with POSIX time arguments.
58866         Some valid time stamps were being rejected (notably -1, and
58867         time stamps before 1900 on 64-bit hosts).  And some invalid
58868         time stamps were being accepted, e.g. September 31.
58869
58870         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58871         that we can return (time_t) -1 successfully.
58872         * lib/posixtm.c: Likewise.
58873         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58874         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58875         (t): Remove static var.
58876         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58877         of static var.  All uses changed.
58878         (year): Do not reject years before 1900; they can occur with
58879         64-bit time_t.
58880         (posix_time_parse): Do not check for out-of-range components;
58881         that is now the caller's responsibility, since our checks were
58882         only approximations.
58883         (posixtime): Use mktime to check for out-of-range components,
58884         since it knows them exactly.
58885         If mktime returns (time_t) -1, check whether an error actually occurred
58886         by invoking localtime on -1.
58887         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58888         posixtime failures better.
58889         Improve the test data (in comments only).
58890
58891 2003-06-02  Karl Berry  <karl@gnu.org>
58892
58893         * config/mkinstalldirs (version): new variable.
58894         (--version): new option.
58895         (usage): improve message.
58896
58897 2003-05-30  Karl Berry  <karl@gnu.org>
58898
58899         * lib/mktime.c: update from libc.
58900
58901 2003-05-30  Bruno Haible  <bruno@clisp.org>
58902
58903         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58904         * config/config.rpath: Upgrade to gettext-0.12.1.
58905
58906 2003-05-30  Bruno Haible  <bruno@clisp.org>
58907
58908         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58909         * m4/nls.m4: New file, from gettext-0.12.1.
58910         * m4/po.m4: New file, from gettext-0.12.1.
58911         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58912
58913 2003-05-30  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58916         * lib/localcharset.h: Likewise.
58917         * lib/localcharset.c: Likewise.
58918
58919 2003-05-29  Karl Berry  <karl@gnu.org>
58920
58921         * config/config.rpath: update from gettext.
58922
58923 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58924
58925         Assume the headers required for C89 freestanding compilers.
58926         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58927         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58928         * m4/human.m4 (gl_HUMAN): Likewise.
58929         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58930         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58931         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58932         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58933         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58934         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58935
58936 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58937
58938         Assume the headers required for C89 freestanding compilers.
58939         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58940         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58941         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58942         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58943         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58944         define, since <limits.h> is guaranteed to do that.
58945         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58946         * lib/exclude.c: Include <stdbool.h> unconditionally.
58947         * lib/tempname.c: Include <stddef.h> unconditionally.
58948         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58949         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58950         <stddef.h> does that.
58951         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58952         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58953         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58954         needed.
58955         * lib/xstrtol.c: Likewise.
58956         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58957         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58958
58959         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58960         warnings on some platforms.
58961
58962         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58963         arbitrarily.
58964
58965 2003-05-26  Jim Meyering  <jim@meyering.net>
58966
58967         Merge in a change from coreutils:
58968         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58969         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58970         that condition, rather than `-1' which is slightly misleading.
58971         Change the name of the cache variable to have the gl_ prefix.
58972         Prompted by a patch from Richard Dawe for DJGPP.
58973
58974 2003-05-24  Karl Berry  <karl@gnu.org>
58975
58976         * config/config.guess: update from prep.
58977
58978 2003-05-22  Karl Berry  <karl@gnu.org>
58979
58980         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58981
58982 2003-05-20  Karl Berry  <karl@gnu.org>
58983
58984         * config/config.guess: update from prep.
58985
58986 2003-05-18  Karl Berry  <karl@gnu.org>
58987
58988         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58989         might actually be set by the user.
58990
58991         * config/depcomp, install-sh, mdate-sh: update from automake.
58992
58993 2003-05-17  Bruno Haible  <bruno@clisp.org>
58994
58995         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58996         invalid expansion for AC_EGREP_CPP.
58997         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58998         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58999         Suggested by Akim Demaille <akim@epita.fr> in
59000         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59001
59002 2003-05-12  Jim Meyering  <jim@meyering.net>
59003
59004         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59005         the space-padded-by-default conversion specifiers, %e, %k, %l.
59006
59007 2003-05-12  Bruno Haible  <bruno@clisp.org>
59008
59009         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59010         the string is longer than 4 KB.
59011
59012 2003-05-11  Karl Berry  <karl@gnu.org>
59013
59014         * config/config.{guess,sub}: update from prep.
59015
59016 2003-05-09  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/error: Add m4/strerror_r.m4 to file list.
59019
59020 2003-05-03  Bruno Haible  <bruno@clisp.org>
59021
59022         Upgrade to Unicode-4.0.
59023         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59024         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59025         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59026         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59027         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59028         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59029         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59030         Change width of U+E0100..U+E01EF from 1 to 0.
59031
59032 2003-04-25  Jim Meyering  <jim@meyering.net>
59033
59034         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59035         of type size_t, not int.
59036
59037 2003-04-25  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/copy-file.c: Include <stddef.h>, for size_t.
59040
59041 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59042
59043         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59044         code which expansion is under static control.  Patch imported from
59045         Akim Demaille's patch to Bison; see
59046         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59047
59048 2003-04-14  Bruno Haible  <bruno@clisp.org>
59049
59050         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59051
59052 2003-04-11  Jim Meyering  <jim@meyering.net>
59053
59054         Merge changes from Coreutils.
59055
59056         2003-03-22  Jim Meyering  <jim@meyering.net>
59057
59058         * lib/strftime.c (widen): Cast alloca return value to proper type.
59059
59060         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59061
59062         From GNU libc.
59063         * lib/strftime.c (my_strftime): Handle very large width
59064         specifications for numeric values correctly.  Improve checks for
59065         overflow.
59066
59067         2003-01-19  Jim Meyering  <jim@meyering.net>
59068
59069         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59070         definitions.
59071         (nl_get_alt_digit) [! defined my_strftime]: Define.
59072         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59073         _nl_get_alt_digit and _nl_get_walt_digit.
59074
59075         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59076         libc. These changes have no effect outside of _LIBC.
59077
59078 2003-04-10  Bruno Haible  <bruno@clisp.org>
59079
59080         * modules/findprog: New file.
59081         * MODULES.html.sh (func_all_modules): Add it.
59082
59083 2003-04-10  Bruno Haible  <bruno@clisp.org>
59084
59085         * m4/findprog.m4: New file.
59086         * m4/eaccess.m4: New file.
59087
59088 2003-04-10  Bruno Haible  <bruno@clisp.org>
59089
59090         * lib/findprog.h: New file, from GNU gettext.
59091         * lib/findprog.c: New file, from GNU gettext.
59092
59093 2003-04-05  Jim Meyering  <jim@meyering.net>
59094
59095         Merge changes from Coreutils.
59096
59097         * lib/exclude.h (PARAMS): Remove definition and uses.
59098         * lib/exclude.c: Remove uses of `PARAMS'.
59099
59100         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59101         Add test-cases for DOS filenames. Declare program_name.
59102         (main): Set up program_name.  Patch by Rich Dawe.
59103
59104         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59105         error from mntctl.
59106         Use mntctl's return value to drive the entry-processing loop, since
59107         we can't rely on the value of the vmt_length member in the last
59108         entry.  On some systems doing so could result in exhausting
59109         virtual memory.  Based in part on a patch from Mike Jetzer.
59110
59111 2003-04-04  Bruno Haible  <bruno@clisp.org>
59112
59113         * modules/linebreak: New file.
59114         * MODULES.html.sh (func_all_modules): Add it.
59115
59116 2003-04-04  Bruno Haible  <bruno@clisp.org>
59117
59118         * m4/linebreak.m4: New file.
59119
59120 2003-04-04  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/linebreak.h: New file, from GNU gettext.
59123         * lib/linebreak.c: New file, from GNU gettext with slight
59124         modifications.
59125         * lib/lbrkprop.h: New file, from GNU gettext.
59126
59127 2003-04-03  Bruno Haible  <bruno@clisp.org>
59128
59129         * modules/utf8-ucs4: New file.
59130         * modules/utf16-ucs4: New file.
59131         * modules/ucs4-utf8: New file.
59132         * modules/ucs4-utf16: New file.
59133         * MODULES.html.sh (func_all_modules): Add them.
59134
59135 2003-04-03  Bruno Haible  <bruno@clisp.org>
59136
59137         * m4/utf-ucs4.m4: New file.
59138         * m4/ucs4-utf.m4: New file.
59139
59140 2003-04-03  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/utf8-ucs4.h: New file, from GNU gettext.
59143         * lib/utf16-ucs4.h: New file, from GNU gettext.
59144         * lib/ucs4-utf8.h: New file, from GNU gettext.
59145         * lib/ucs4-utf16.h: New file, from GNU gettext.
59146
59147 2003-04-02  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/binary-io: New file.
59150         * MODULES.html.sh (func_all_modules): Add it.
59151
59152 2003-04-02  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/binary-io.h: New file, from GNU gettext.
59155
59156 2003-04-01  Bruno Haible  <bruno@clisp.org>
59157
59158         * modules/pathname: New file.
59159         * MODULES.html.sh (func_all_modules): Add it.
59160
59161 2003-04-01  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/pathname.h: New file, from GNU gettext.
59164         * lib/concatpath.c: New file, from GNU gettext.
59165
59166 2003-03-30  Bruno Haible  <bruno@clisp.org>
59167
59168         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59169
59170 2003-03-30  Bruno Haible  <bruno@clisp.org>
59171
59172         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59173         function chown() doesn't exist.
59174
59175 2003-03-28  Bruno Haible  <bruno@clisp.org>
59176
59177         * modules/copy-file: New file.
59178         * MODULES.html.sh (func_all_modules): Add it.
59179
59180 2003-03-28  Bruno Haible  <bruno@clisp.org>
59181
59182         * m4/copy-file.m4: New file.
59183
59184 2003-03-28  Bruno Haible  <bruno@clisp.org>
59185
59186         * lib/copy-file.h: New file, from GNU gettext.
59187         * lib/copy-file.c: New file, from GNU gettext.
59188
59189 2003-03-18  Jim Meyering  <jim@meyering.net>
59190
59191         * lib/quote.c (quote_n): Fix typo in comment.
59192
59193 2003-03-18  Bruno Haible  <bruno@clisp.org>
59194
59195         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59196         checking.
59197         * m4/onceonly_2_57.m4: Likewise.
59198
59199 2003-03-17  Bruno Haible  <bruno@clisp.org>
59200
59201         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59202         (m4_quote): Remove macro.
59203         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59204
59205 2003-03-14  Jim Meyering  <jim@meyering.net>
59206
59207         Merge changes from Coreutils.
59208         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59209         to be const, in order to avoid warnings.
59210         (obstack_room): Likewise.
59211         (obstack_empty_p): Likewise.
59212
59213 2003-03-14  Bruno Haible  <bruno@clisp.org>
59214
59215         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59216         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59217
59218 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59219
59220         Merge changes from Bison.
59221         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59222         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59223         when compiling Bison 1.875's `bitset bset = obstack_alloc
59224         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59225         * lib/hash.c: Include <stdbool.h> unconditionally.
59226
59227 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59228
59229         * m4/onceonly.m4 (m4_quote): New macro.
59230         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59231         Quote AC_FOREACH variable-expansions properly.
59232
59233 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59234
59235         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59236
59237 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59238
59239         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59240         Reported by Bruce Becker; see:
59241         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59242
59243 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59244             Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59247         Reported by John Hughes, see
59248         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59249
59250 2003-02-20  Bruno Haible  <bruno@clisp.org>
59251
59252         * MODULES.html.sh (func_all_modules): Add poll.
59253
59254 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59255
59256         * modules/poll: New file.
59257
59258 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59259
59260         * lib/poll_.h: New file.
59261         * lib/poll.c: New file.
59262
59263 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59264
59265         * m4/poll.m4: New file.
59266
59267 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59268
59269         * modules/mathl: New file.
59270
59271 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59272
59273         * lib/mathl.h: New file.
59274         * lib/acosl.c: New file.
59275         * lib/asinl.c: New file.
59276         * lib/atanl.c: New file.
59277         * lib/ceill.c: New file.
59278         * lib/cosl.c: New file.
59279         * lib/expl.c: New file.
59280         * lib/floorl.c: New file.
59281         * lib/frexpl.c: New file.
59282         * lib/ldexpl.c: New file.
59283         * lib/logl.c: New file.
59284         * lib/sincosl.c: New file.
59285         * lib/sinl.c: New file.
59286         * lib/sqrtl.c: New file.
59287         * lib/tanl.c: New file.
59288         * lib/trigl.c: New file.
59289         * lib/trigl.h: New file.
59290
59291 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59292
59293         * m4/mathl.m4: New file.
59294
59295 2003-02-18  Bruno Haible  <bruno@clisp.org>
59296
59297         * MODULES.html.sh (func_all_modules): Add mathl.
59298
59299 2003-02-17  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/mkdtemp: New module.
59302         * MODULES.html.sh (func_all_modules): Add it.
59303
59304 2003-02-17  Bruno Haible  <bruno@clisp.org>
59305
59306         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59307
59308 2003-02-17  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/mkdtemp.h: New file, from GNU gettext.
59311         * lib/mkdtemp.c: New file, from GNU gettext.
59312
59313 2003-02-02  Jim Meyering  <jim@meyering.net>
59314
59315         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59316         e.g. glibc-2.2.93.
59317
59318 2003-01-31  Bruno Haible  <bruno@clisp.org>
59319
59320         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59321         'rpl_rename'.
59322         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59323         'rpl_strnlen'.
59324         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59325         'rpl_strtod'.
59326         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59327         'rpl_utime'.
59328
59329 2003-01-31  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/rename.c: #undef rename before defining rpl_rename.
59332         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59333
59334 2003-01-30  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/vasnprintf, modules/vasprintf: New modules.
59337         * MODULES.html.sh (func_all_modules): Add them.
59338
59339 2003-01-30  Bruno Haible  <bruno@clisp.org>
59340
59341         * m4/signed.m4: New file, from GNU gettext.
59342         * m4/longdouble.m4: New file, from GNU gettext.
59343         * m4/wchar_t.m4: New file, from GNU gettext.
59344         * m4/wint_t.m4: New file, from GNU gettext.
59345         * m4/vasnprintf.m4: New file.
59346         * m4/vasprintf.m4: New file.
59347
59348 2003-01-30  Bruno Haible  <bruno@clisp.org>
59349
59350         * lib/printf-args.h: New file, from GNU gettext.
59351         * lib/printf-args.c: New file, from GNU gettext.
59352         * lib/printf-parse.h: New file, from GNU gettext.
59353         * lib/printf-parse.c: New file, from GNU gettext.
59354         * lib/vasnprintf.h: New file, from GNU gettext.
59355         * lib/vasnprintf.c: New file, from GNU gettext.
59356         * lib/asnprintf.c: New file, from GNU gettext.
59357         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59358         * lib/vasprintf.c: New file, from GNU gettext.
59359         * lib/asprintf.c: New file, from GNU gettext.
59360
59361 2003-01-29  Bruno Haible  <bruno@clisp.org>
59362
59363         * modules/stpncpy: New module.
59364         * MODULES.html.sh (func_all_modules): Add it.
59365
59366 2003-01-29  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/stpncpy.m4: New file.
59369
59370 2003-01-29  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59373         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59374
59375 2003-01-28  Bruno Haible  <bruno@clisp.org>
59376
59377         * modules/c-ctype: New module.
59378         * MODULES.html.sh (func_all_modules): Add it.
59379
59380 2003-01-28  Bruno Haible  <bruno@clisp.org>
59381
59382         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59383         Paul Eggert.
59384         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59385         Paul Eggert.
59386
59387 2003-01-27  Bruno Haible  <bruno@clisp.org>
59388
59389         * modules/xsetenv: New module.
59390         * MODULES.html.sh (func_all_modules): Add it.
59391
59392 2003-01-27  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/xsetenv.h: New file, from GNU gettext.
59395         * lib/xsetenv.c: New file, from GNU gettext.
59396
59397 2003-01-23  Jim Meyering  <jim@meyering.net>
59398
59399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59400         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59401
59402 2003-01-23  Bruno Haible  <bruno@clisp.org>
59403
59404         * modules/minmax: New module.
59405         * MODULES.html.sh (func_all_modules): Add it.
59406
59407 2003-01-23  Bruno Haible  <bruno@clisp.org>
59408
59409         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59410         Eggert.
59411
59412 2003-01-22  Bruno Haible  <bruno@clisp.org>
59413
59414         * modules/exit: New module.
59415         * MODULES.html.sh (func_all_modules): Add it.
59416
59417 2003-01-22  Bruno Haible  <bruno@clisp.org>
59418
59419         * lib/exit.h: New file, from GNU gettext.
59420
59421 2003-01-19  Bruno Haible  <bruno@clisp.org>
59422
59423         * gnulib-tool: Recognize option --extract-maintainer.
59424         (func_get_maintainer): New function.
59425         * modules/*: Add Maintainer entry.
59426
59427 2003-01-16  Jim Meyering  <jim@meyering.net>
59428
59429         * m4/regex.m4: The `regex' struct is both input and output.
59430         Initialize it before each use.  Patch by Tim Waugh.
59431
59432 2003-01-16  Bruno Haible  <bruno@clisp.org>
59433
59434         * MODULES.html.sh: Add a table of contents. Add the module name as
59435         leftmost column. Add hyperlinks.
59436
59437 2003-01-15  Bruno Haible  <bruno@clisp.org>
59438
59439         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59440
59441 2003-01-15  Bruno Haible  <bruno@clisp.org>
59442
59443         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59444         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59445         suffix.
59446
59447 2003-01-15  Bruno Haible  <bruno@clisp.org>
59448
59449         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59450
59451 2003-01-15  Bruno Haible  <bruno@clisp.org>
59452
59453         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59454         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59455
59456 2003-01-14  Jim Meyering  <jim@meyering.net>
59457
59458         * lib/same.c (same_name): Tweak a comment.
59459
59460 2003-01-14  Bruno Haible  <bruno@clisp.org>
59461
59462         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59463         when a string comparison is sufficient.
59464
59465 2003-01-14  Bruno Haible  <bruno@clisp.org>
59466
59467         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59468         'unsigned int'.
59469
59470 2003-01-14  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/hash-pjw.c: Add comment about low quality of this function.
59473
59474 2003-01-13  Bruno Haible  <bruno@clisp.org>
59475
59476         * modules/stpcpy: Distribute lib/stpcpy.h.
59477         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59478
59479 2003-01-13  Bruno Haible  <bruno@clisp.org>
59480
59481         * modules/*: Add a description.
59482         * modules/strpbrk: Fix Makefile.am snippet.
59483         * modules/strtoimax: Fix dependencies.
59484         * modules/strtoumax: Likewise.
59485
59486 2003-01-13  Bruno Haible  <bruno@clisp.org>
59487
59488         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59489         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59490         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59491
59492 2003-01-13  Bruno Haible  <bruno@clisp.org>
59493
59494         * gnulib-tool (func_create_testdir): Store config/* files in the main
59495         directory.
59496         * config.rpath: Move to ...
59497         * config/config.rpath: ... here.
59498         * modules/gettext: Contains config/config.rpath, not config.rpath.
59499         * modules/iconv: Likewise.
59500
59501 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59502
59503         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59504         to avoid collisions with libcurses and libreadline.
59505
59506         * m4/getstr.m4: Remove.
59507         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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
59514         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59515         * lib/getstr.h, getstr.c: Remove.
59516         * lib/getline.c: Include "getline.h", to check interface.
59517         Move body of old getstr.c here: this defines MIN_CHUNK and
59518         declares getdelim2, which is renamed from getstr.
59519         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59520
59521         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59522         All uses changed.
59523         * lib/linebuffer.h: Likewise.
59524         (readline): Remove backward-compatibility macro.
59525
59526 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59527
59528         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59529         to avoid collisions with libcurses and libreadline.
59530         * getstr: Remove.
59531         * MODULES.html.sh: Remove getstr.
59532         * modules/getline: Depend on unlocked-io, not getstr.
59533
59534 2003-01-12  Jim Meyering  <jim@meyering.net>
59535
59536         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59537
59538 2003-01-10  Bruno Haible  <bruno@clisp.org>
59539
59540         * modules/alloca: Change Makefile.am requirements. Simplify Include
59541         requirements. Add lib/alloca_.h to file list.
59542
59543 2003-01-10  Bruno Haible  <bruno@clisp.org>
59544
59545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59546
59547 2003-01-10  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/alloca_.h: New file.
59550         * lib/getdate.y: Unconditionally include alloca.h.
59551         * lib/makepath.c: Likewise.
59552         * lib/setenv.c: Likewise.
59553         * lib/userspec.c: Likewise.
59554
59555 2003-01-09  Karl Berry  <karl@gnu.org>
59556
59557         * MODULES.html.sh: include `dirname $0` in PATH, to find
59558         gnulib-tool.
59559
59560 2003-01-09  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59563         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59564
59565 2003-01-09  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59568
59569 2003-01-09  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/stdbool.h.in: New file.
59572
59573 2003-01-09  Bruno Haible  <bruno@clisp.org>
59574
59575         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59576         * MODULES.html.sh: Likewise.
59577
59578 2003-01-08  Jim Meyering  <jim@meyering.net>
59579
59580         * lib/full-write.c: Undefine and define-away `const' after inclusion
59581         of errno.h, not before.  Suggestion from Bruno Haible.
59582
59583 2003-01-08  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/full-read: Depend on full-write.
59586
59587 2003-01-08  Bruno Haible  <bruno@clisp.org>
59588
59589         * lib/safe-read.c: Include specification header first, to ensure its
59590         selfcontainedness.
59591         * lib/full-write.c: Likewise.
59592
59593 2003-01-07  Jim Meyering  <jim@meyering.net>
59594
59595         * lib/full-write.c: Rework so that it may serve to define full_read,
59596         too.
59597         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59598
59599 2003-01-07  Bruno Haible  <bruno@clisp.org>
59600
59601         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59602         <inttypes.h>.
59603         * lib/xstrtol.h: Likewise.
59604         * lib/xstrtoimax.c: Likewise.
59605         * lib/xstrtoumax.c: Likewise.
59606         * lib/human.h: Likewise.
59607
59608         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59609         on systems that have <inttypes.h> but not <stdint.h>.
59610
59611 2003-01-07  Bruno Haible  <bruno@clisp.org>
59612
59613         * MODULES.html.sh: Add copyright notice.
59614         (missed_files): Omit CVS directory entries.
59615         (func_module): Make it work with sed-3.02.
59616         * MODULES.txt: Remove file.
59617
59618 2003-01-06  Jim Meyering  <jim@meyering.net>
59619
59620         * lib/version-etc.c: Update year in translatable copyright string.
59621
59622 2003-01-03  Karl Berry  <karl@gnu.org>
59623
59624         * config/config.{guess,sub}: update from prep.
59625
59626 2003-01-02  Karl Berry  <karl@gnu.org>
59627
59628         * doc/COPYING.DOC: belatedly updated to 1.2.
59629
59630 2003-01-01  Karl Berry  <karl@gnu.org>
59631
59632         * gnulib-tool (func_verify_module): report module name $module in
59633         error message, not $1.
59634         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59635         be created, only if it doesn't exist.
59636         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59637
59638 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59639
59640         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59641
59642 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59643
59644         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59645         memcmp if strcoll doesn't work.
59646
59647 2002-12-31  Bruno Haible  <bruno@clisp.org>
59648
59649         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59650         nonempty.
59651
59652 2002-12-31  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/memcoll.c (STRCOLL): New macro.
59655         (memcoll): Use it.
59656
59657 2002-12-31  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/localcharset.h: New file.
59660         * lib/localcharset.c: Include it.
59661         * lib/unicodeio.c: Likewise.
59662
59663 2002-12-31  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59666         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59667
59668 2002-12-31  Bruno Haible  <bruno@clisp.org>
59669
59670         * lib/getline.h: Include <stddef.h>, for size_t.
59671
59672         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59673         * lib/unicodeio.c: Don't include <stddef.h>.
59674
59675 2002-12-31  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59678         HAVE_TM_ZONE.
59679
59680 2002-12-24  Karl Berry  <karl@gnu.org>
59681
59682         * config/config.guess: update from prep.
59683
59684 2002-12-24  Bruno Haible  <bruno@clisp.org>
59685
59686         General infrasructure.
59687         * m4/README: Rewritten.
59688         * m4/onceonly.m4: New file.
59689         * m4/onceonly_2_57.m4: New file.
59690
59691         Module atexit.
59692         * m4/atexit.m4: New file.
59693
59694         Module strtod.
59695         * m4/strtod.m4: New file.
59696
59697         Module strtol.
59698         * m4/strtol.m4: New file.
59699
59700         Module strtoul.
59701         * m4/strtoul.m4: New file.
59702
59703         Module memchr.
59704         * m4/memchr.m4: New file.
59705
59706         Module memcmp.
59707         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59708         (jm_FUNC_MEMCMP): Invoke it.
59709
59710         Module memcpy.
59711         * m4/memcpy.m4: New file.
59712
59713         Module memmove.
59714         * m4/memmove.m4: New file.
59715
59716         Module memset.
59717         * m4/memset.m4: New file.
59718
59719         Module strcspn.
59720         * m4/strcspn.m4: New file.
59721
59722         Module strpbrk.
59723         * m4/strpbrk.m4: New file.
59724
59725         Module strstr.
59726         * m4/strstr.m4: New file.
59727
59728         Module strerror.
59729         * m4/strerror.m4: New file.
59730
59731         Module mktime.
59732         * m4/mktime.m4: Renamed from jm-mktime.m4.
59733         (gl_PREREQ_MKTIME): New macro.
59734         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59735
59736         Module malloc.
59737         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59738         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59739         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59740
59741         Module realloc.
59742         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59743         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59744         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59745
59746         Module strftime.
59747         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59748         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59749         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59750         gl_TM_GMTOFF.
59751         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59752
59753         Module xalloc.
59754         * m4/xalloc.m4: New file.
59755
59756         Module alloca.
59757         * m4/alloca.m4: New file.
59758
59759         Module putenv.
59760         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59761         (jm_FUNC_PUTENV): Invoke it.
59762
59763         Module setenv.
59764         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59765         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59766         when invoked twice.
59767         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59768         gt_FUNC_SETENV.
59769
59770         Module memrchr.
59771         * m4/memrchr.m4: New file.
59772
59773         Module stpcpy.
59774         * m4/stpcpy.m4: New file.
59775
59776         Module strcase.
59777         * m4/strcase.m4: New file.
59778
59779         Module strdup.
59780         * m4/strdup.m4: New file.
59781
59782         Module strnlen.
59783         * m4/strnlen.m4: New file.
59784
59785         Module strndup.
59786         * m4/strndup.m4: New file.
59787
59788         Module xstrtod.
59789         * m4/xstrtod.m4: New file.
59790
59791         Module xstrtol.
59792         * m4/xstrtol.m4: New file.
59793
59794         Module getdate.
59795         * m4/getdate.m4: New file.
59796
59797         Module unlocked-io.
59798         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59799         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59800         * m4/jm-glibc-io.m4n: Remove file.
59801
59802         Module long-options.
59803         * m4/long-options.m4: New file.
59804
59805         Module md5.
59806         * m4/md5.m4: New file.
59807
59808         Module sha.
59809         * m4/sha.m4: New file.
59810
59811         Module getstr.
59812         * m4/getstr.m4: New file.
59813
59814         Module getline.
59815         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59816         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59817         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59818         simply getline. Infoke gl_PREREQ_GETLINE.
59819
59820         Module obstack.
59821         * m4/obstack.m4: New file.
59822
59823         Module hash.
59824         * m4/hash.m4: New file.
59825
59826         Module readtokens.
59827         * m4/readtokens.m4: New file.
59828
59829         Module strverscmp.
59830         * m4/strverscmp.m4: New file.
59831
59832         Module stdbool.
59833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59834         OSF/1.
59835
59836         Module strtoll.
59837         * m4/strtoll.m4: New file.
59838
59839         Module strtoull.
59840         * m4/strtoull.m4: New file.
59841
59842         Module strtoimax.
59843         * m4/strtoimax.m4: New file.
59844
59845         Module strtoumax.
59846         * m4/strtoumax.m4: New file.
59847
59848         Module xstrtoimax.
59849         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59850         jm_AC_PREREQ_XSTRTOIMAX.
59851         Moved the strtol prerequisites to strtol.m4.
59852         Moved the strtoll prerequisites to strtoll.m4.
59853         Moved the strtoimax prerequisites to strtoimax.m4.
59854
59855         Module xstrtoumax.
59856         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59857         jm_AC_PREREQ_XSTRTOUMAX.
59858         Moved the strtoul prerequisites to strtoul.m4.
59859         Moved the strtoull prerequisites to strtoull.m4.
59860         Moved the strtoumax prerequisites to strtoumax.m4.
59861
59862         Module chown.
59863         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59864         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59865
59866         Module dup2.
59867         * m4/dup2.m4: New file.
59868
59869         Module ftruncate.
59870         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59871         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59872
59873         Module getgroups.
59874         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59875         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59876
59877         Module gettimeofday.
59878         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59879         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59880         gl_PREREQ_GETTIMEOFDAY.
59881
59882         Module mkdir.
59883         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59884         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59885
59886         Module mkstemp.
59887         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59888         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59889         jm_AC_TYPE_UINTMAX_T.
59890         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59891
59892         Module stat.
59893         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59894         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59895
59896         Module lstat.
59897         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59898         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59899
59900         Module timespec.
59901         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59902         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59903         * m4/st_mtim.m4: Indentation.
59904
59905         Module nanosleep.
59906         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59907         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59908         gl_PREREQ_NANOSLEEP.
59909
59910         Module regex.
59911         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59912         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59913         (gl_REGEX): New macro.
59914
59915         Module rename.
59916         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59917         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59918
59919         Module rmdir.
59920         * m4/rmdir.m4: New file.
59921
59922         Module utime.
59923         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59924         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59925         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59926
59927         Module dirname.
59928         * m4/dirname.m4: New file.
59929
59930         Module getopt.
59931         * m4/getopt.m4: New file.
59932
59933         Module unistd-safer.
59934         * m4/unistd-safer.m4: New file.
59935
59936         Module fnmatch.
59937         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59938         declaration.
59939         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59940         (gl_FUNC_FNMATCH_POSIX): New macro.
59941         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59942         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59943         simply fnmatch.
59944
59945         Module exclude.
59946         * m4/exclude.m4: New file.
59947
59948         Module human.
59949         * m4/human.m4: New file.
59950
59951         Module acl.
59952         * m4/acl.m4: Nop.
59953
59954         Module backupfile.
59955         * m4/backupfile.m4: New file.
59956         * m4/d-ino.m4: Indentation.
59957
59958         Module fsusage.
59959         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59960         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59961         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59962
59963         Module dirfd.
59964         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59965         requirements.
59966
59967         Module euidaccess.
59968         * m4/euidaccess.m4: New file.
59969
59970         Module file-type.
59971         * m4/file-type.m4: New file.
59972
59973         Module fileblocks.
59974         * m4/fileblocks.m4: New file.
59975
59976         Module filemode.
59977         * m4/filemode.m4: New file.
59978
59979         Module isdir.
59980         * m4/isdir.m4: New file.
59981
59982         Module lchown.
59983         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59984         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59985
59986         Module makepath.
59987         * m4/makepath.m4: New file.
59988
59989         Module modechange.
59990         * m4/modechange.m4: New file.
59991
59992         Module mountlist.
59993         * m4/mountlist.m4: New file.
59994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59995         Indentation.
59996
59997         Module path-concat.
59998         * m4/path-concat.m4: New file.
59999
60000         Module pathmax.
60001         * m4/pathmax.m4: New file.
60002
60003         Module same.
60004         * m4/same.m4: New file.
60005
60006         Module save-cwd.
60007         * m4/save-cwd.m4: New file.
60008
60009         Module savedir.
60010         * m4/savedir.m4: New file.
60011
60012         Module xgetcwd.
60013         * m4/xgetcwd.m4: New file.
60014         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60015
60016         Module xreadlink.
60017         * m4/xreadlink.m4: New file.
60018
60019         Module safe-read.
60020         * m4/safe-read.m4: New file.
60021
60022         Module safe-write.
60023         * m4/safe-write.m4: New file.
60024
60025         Module closeout.
60026         * m4/closeout.m4: New file.
60027
60028         Module stdio-safer.
60029         * m4/stdio-safer.m4: New file.
60030
60031         Module getpass.
60032         * m4/getpass.m4: New file.
60033
60034         Module getugroups.
60035         * m4/getugroups.m4: New file.
60036
60037         Module group-member.
60038         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60039         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60040
60041         Module idcache.
60042         * m4/idcache.m4: New file.
60043
60044         Module userspec.
60045         * m4/userspec.m4: New file.
60046
60047         Module gettime.
60048         * m4/clock_time.m4: New file.
60049         * m4/gettime.m4: New file.
60050
60051         Module settime.
60052         * m4/settime.m4: New file.
60053
60054         Module posixtm.
60055         * m4/posixtm.m4: New file.
60056
60057         Module gethostname.
60058         * m4/gethostname.m4: New file.
60059
60060         Module canon-host.
60061         * m4/canon-host.m4: New file.
60062
60063         Module gettext.
60064         * m4/codeset.m4: New file, from gettext-0.11.5.
60065         * m4/gettext.m4: New file, from gettext-0.11.5.
60066         * m4/glibc21.m4: New file, from gettext-0.11.5.
60067         * m4/iconv.m4: New file, from gettext-0.11.5.
60068         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60069         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60070         * m4/inttypes.m4: New file, from gettext-0.11.5.
60071         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60072         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60073         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60074         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60075         * m4/lib-link.m4: New file, from gettext-0.11.5.
60076         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60077         * m4/progtest.m4: New file, from gettext-0.11.5.
60078         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60079         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60080         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60081
60082         Module localcharset.
60083         * m4/localcharset.m4: New file.
60084
60085         Module hard-locale.
60086         * m4/hard-locale.m4: New file.
60087
60088         Module mbswidth.
60089         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60090         onceonly macros.
60091         * m4/mbrtowc.m4: Add comment.
60092
60093         Module memcasecmp.
60094         * m4/memcasecmp.m4: New file.
60095
60096         Module memcoll.
60097         * m4/memcoll.m4: New file.
60098
60099         Module unicodeio.
60100         * m4/unicodeio.m4: New file.
60101
60102         Module rpmatch.
60103         * m4/rpmatch.m4: New file.
60104
60105         Module yesno.
60106         * m4/yesno.m4: New file.
60107
60108         Module exitfail.
60109         * m4/exitfail.m4: New file.
60110
60111         Module c-stack.
60112         * m4/c-stack.m4 (gl_C_STACK): New macro.
60113         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60114
60115         Module error.
60116         * m4/error.m4 (gl_ERROR): New macro.
60117         (jm_PREREQ_ERROR): Use onceonly macros.
60118
60119         Module fatal.
60120         * m4/fatal.m4: New file.
60121
60122         Module getloadavg.
60123         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60124         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60125
60126         Module getpagesize.
60127         * m4/getpagesize.m4: New file.
60128
60129         Module getusershell.
60130         * m4/getusershell.m4: New file.
60131
60132         Module physmem.
60133         * m4/physmem.m4: New file.
60134
60135         Module posixver.
60136         * m4/posixver.m4: New file.
60137
60138         Module quotearg.
60139         * m4/quotearg.m4: New file.
60140
60141         Module quote.
60142         * m4/quote.m4: New file.
60143
60144         Module readutmp.
60145         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60146
60147         Module sig2str.
60148         * m4/sig2str.m4: New file.
60149
60150         Other.
60151         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60152         ulonglong.m4.
60153         * m4/intmax_t.m4: New file.
60154         * m4/d-type.m4: Indentation.
60155         * m4/jm-macros.m4: Update.
60156         * m4/prereq.m4 (jm_PREREQ): Update.
60157         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60158         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60159         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60160         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60161         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60162         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60163         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60164         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60165         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60166         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60167         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60168         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60169         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60170         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60171         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60172         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60173         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60174         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60175         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60176
60177 2002-12-24  Bruno Haible  <bruno@clisp.org>
60178
60179         * MODULES.txt: Update according to m4/ changes.
60180
60181         Module gettext.
60182         * config.rpath: New file, from gettext-0.11.5.
60183
60184         * modules/*: New module descriptions.
60185         * gnulib-tool: New file.
60186         * MODULES.html.sh: New file.
60187
60188 2002-12-21  Karl Berry  <karl@gnu.org>
60189
60190         * doc/fdl.texi: update to version 1.2.
60191
60192 2002-12-19  Karl Berry  <karl@gnu.org>
60193
60194         * config/config.guess: update from prep.
60195
60196 2002-12-18  Bruno Haible  <bruno@clisp.org>
60197
60198         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60199         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60200
60201 2002-12-17  Bruno Haible  <bruno@clisp.org>
60202
60203         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60204         stdlib.h, string.h.
60205
60206 2002-12-17  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/canon-host.c (strdup): Remove unused declaration.
60209
60210         * lib/fsusage.c: Include full_read.h.
60211         (get_fs_usage): Use full_read instead of safe_read.
60212
60213         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60214
60215 2002-12-12  Karl Berry  <karl@gnu.org>
60216
60217         * config/config.guess: update from prep.
60218
60219 2002-12-11  Bruno Haible  <bruno@clisp.org>
60220
60221         * m4/setenv.m4: New file, from gettext-0.11.5.
60222
60223 2002-12-11  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60226         not unsetenv().
60227         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60228         modifications:
60229
60230         2002-12-11  Bruno Haible  <bruno@clisp.org>
60231
60232                 * setenv.c (alloca): Fall back to malloc.
60233                 (freea): New macro.
60234                 (setenv): Use freea() to free memory allocated with alloca().
60235
60236         2002-11-13  Bruno Haible  <bruno@clisp.org>
60237
60238                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60239                 function declarations.
60240                 * unsetenv.c (unsetenv): Likewise.
60241
60242         2002-03-04  Bruno Haible  <bruno@clisp.org>
60243
60244                 Portability to AIX 4.3.3.
60245                 * unsetenv.c: New file, extracted from setenv.c.
60246                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60247
60248         2001-12-20  Bruno Haible  <bruno@clisp.org>
60249
60250                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60251                 use malloc instead. For SunOS 4.
60252
60253         2001-12-11  Bruno Haible  <bruno@clisp.org>
60254
60255                 * setenv.c: Declare alloca.
60256                 (compar_fn_t): New typedef.
60257                 (KNOWN_VALUE, STORE_VALUE): Use it.
60258
60259         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60260         setenv.h.
60261
60262 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60263
60264         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60265         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60266         Choose values that are less likely to collide with system fnmatch
60267         options.
60268         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60269         defined (e.g., a pure POSIX system).
60270         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60271         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60272
60273 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60274
60275         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60276         a pain in practice to deal with generated m4 files.  This change
60277         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60278
60279         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60280         and jm-glibc-io.m4, as they are no longer a special case.
60281         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60282         kludge and the auto-generation stuff.  Check only whether the
60283         functions are declared, not whether they exist, since older hosts
60284         that don't declare the functions can't use the optimization anyway.
60285
60286 2002-12-06  Jim Meyering  <jim@meyering.net>
60287
60288         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60289
60290         Merge in changes from libc's misc/error.c, in preparation
60291         for the merge of gnulib's changes back into libc.
60292
60293         * lib/error.c (_): Define only if not already defined.
60294         Move definition to follow all #include directives.
60295         Include unlocked-io.h only if !_LIBC.
60296         [_LIBC]: Include <libio/libioP.h>.
60297         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60298         (fflush): Tweak definition to use INTUSE.
60299         (putc): Define.
60300
60301 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60302
60303         * lib/alloca.c [defined emacs]: Include "lisp.h".
60304         (xalloc_die) [defined emacs]: New macro.
60305         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60306         [! defined emacs]: Include <xalloc.h>.
60307         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60308         (pointer): Typedef to POINTER_TYPE *.
60309         (malloc): Remove decl; we now always use xmalloc.
60310         (alloca): Use old-style definition, since Emacs needs this.
60311         Check for arithmetic overflow when computing combined size.
60312
60313 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60314
60315         Do not generate unlocked-io.h automatically, since it's easier to
60316         maintain it by hand.
60317
60318         * lib/unlocked-io.h: New file, from GNU diffutils,
60319         but with proper copyright notice and attribution.
60320         * lib/gen-uio: Remove.
60321         * lib/Makefile.am: Add copyright notice.
60322         (libfetish_a_SOURCES): Add unlocked-io.h.
60323         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60324         (DISTCLEANFILES, io_functions): Remove macros.
60325         (EXTRA_DIST): Remove gen_uio.
60326         (unlocked-io.h): Remove rule.
60327
60328 2002-12-04  Jim Meyering  <jim@meyering.net>
60329
60330         Reflect the fact that stat.c and lstat.c are no longer generated.
60331         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60332         (DISTCLEANFILES): Likewise.
60333         (EXTRA_DIST): Likewise.
60334         (all_local): Don't depend on stat.c or lstat.c.
60335         (stat.c, lstat.c): Remove rules.
60336         (EXTRA_DIST): Remove xstat.in.
60337
60338         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60339         * lib/stat.c: New file.  Contents mostly from xstat.in.
60340         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60341         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60342
60343         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60344         too.
60345         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60346
60347 2002-12-03  Jim Meyering  <jim@meyering.net>
60348
60349         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60350         but not semantics, to minimize the differences between these two files.
60351         (safe_read): Change comment to mention SAFE_READ_ERROR.
60352
60353         * lib/safe-read.c (IS_EINTR): Define.
60354         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60355
60356 2002-12-02  Jim Meyering  <jim@meyering.net>
60357
60358         * lib/safe-read.c (EINTR): Define.
60359         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60360         (INT_MAX): Provide fallback.
60361         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60362
60363         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60364
60365 2002-12-02  Bruno Haible  <bruno@clisp.org>
60366
60367         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60368         Define, taken from safe-read.c.
60369         (INT_MAX): Provide fallback.
60370         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60371         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60372
60373         * lib/safe-read.c (EINTR): Remove definition.
60374         (safe_read): Don't use EINTR if it is absent.
60375
60376 2002-12-01  Jim Meyering  <jim@meyering.net>
60377
60378         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60379         zero.
60380         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60381
60382 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60383
60384         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60385         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60386         with `if (! (value < limit)) abort ();', for readability.
60387
60388 2002-11-26  Karl Berry  <karl@gnu.org>
60389
60390         * lib/strdup.c: copy from libc again, with jim's ok.
60391         * lib/.cppi-disable: re-add strdup.c
60392
60393 2002-11-25  Karl Berry  <karl@gnu.org>
60394
60395         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60396         instead of "strtol.c".
60397
60398 2002-11-25  Karl Berry  <karl@gnu.org>
60399
60400         * config/install-sh: update from automake for variable quoting, $0 in
60401         error msgs, etc.
60402
60403         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60404         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60405         entry.
60406
60407 2002-11-25  Jim Meyering  <jim@meyering.net>
60408
60409         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60410
60411 2002-11-24  Karl Berry  <karl@gnu.org>
60412
60413         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60414         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60415
60416 2002-11-24  Jim Meyering  <jim@meyering.net>
60417
60418         Update from coreutils:
60419
60420         * lib/mktime.c: Merge in changes from libc.
60421
60422         Avoid a link-time failure on some Linux systems.
60423         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60424         (otherwise).
60425         (__mon_yday): Declare with the STATIC attribute.
60426         (__mktime_internal): Likewise.
60427         Based on a report from Greg Schafer.
60428
60429 2002-11-23  Jim Meyering  <jim@meyering.net>
60430
60431         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60432         Use `unsigned', not `int', as type of index.
60433
60434         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60435
60436         * lib/fsusage.c: Remove unneeded parentheses around operands of
60437         `defined'.
60438
60439 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60440
60441         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60442         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60443         so that we can be included first.
60444         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60445         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60446         No need to include stddef.h or sys/types.h any more.
60447         Surround local include files with "", not "<>".
60448         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60449         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60450         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60451         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60452         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60453         (ISPRINT): Remove; no longer needed now that we assume C89.
60454
60455         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60456         Preserve errno.
60457
60458         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60459         quotearg_char): Use SIZE_MAX rather than
60460         (size_t) -1 when we are talking about "infinity".
60461
60462         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60463
60464 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60465
60466         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60467         hint that one should use `if (! x) abort ();' rather than `assert
60468         (x);', and anyway it's one less thing to worry about configuring.
60469         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60470         hash_rehash, hash_insert): Use abort rather than assert.
60471
60472 2002-11-22  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/safe-read.h: Assume C89. Add comments.
60475         (safe_read): Change return type to size_t.
60476         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60477         byte counts > SSIZE_MAX correctly.
60478         * lib/safe-write.h: New file.
60479         * lib/safe-write.c: New file.
60480         * lib/full-read.h: New file.
60481         * lib/full-read.c: New file.
60482         * lib/full-write.h: Assume C89. Add comments.
60483         * lib/full-write.c: Include safe-write.h.
60484         (full_write): Rewritten to use safe_write.
60485         Suggested by Jim Meyering and Paul Eggert.
60486
60487 2002-11-21  Jim Meyering  <jim@meyering.net>
60488
60489         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60490
60491         Merge in changes from the coreutils.
60492
60493         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60494         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60495         <stdint.h>.
60496         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60497         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60498         int.  Work more efficiently if X is the same width as uintmax_t.
60499         Do not compare X to -1, to avoid bogus compiler warning.
60500         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60501         Don't assume that f_frsize and f_bsize are the same type.
60502
60503         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60504         warning on FreeBSD.
60505
60506         * lib/makepath.c (make_path): Restore umask *before* creating the final
60507         component.
60508         (make_path): Minor reformatting.
60509
60510         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60511         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60512         HAVE_MALLOC/HAVE_REALLOC.
60513
60514         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60515         dummy ones.  At least on GNU/Linux systems, `auto' means something
60516         else.
60517         From Michael Stone.
60518
60519 2002-11-21  Bruno Haible  <bruno@clisp.org>
60520
60521         Remove case insensitive option matching.
60522         * lib/argmatch.h (argcasematch): Remove declaration.
60523         (ARGCASEMATCH): Remove macro.
60524         (__xargmatch_internal): Remove case_sensitive argument.
60525         (XARGMATCH): Update.
60526         (XARGCASEMATCH): Remove macro.
60527         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60528         case_sensitive argument.
60529         (argcasematch): Remove function.
60530         (__xargmatch_internal): Remove case_sensitive argument.
60531         (main): Use XARGMATCH instead of XARGCASEMATCH.
60532
60533         * lib/xmalloc.c: Change compile-time error message. Add comment about
60534         required autoconf version.
60535
60536 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60537
60538         Merge argmatch cleanups from Bison.  Assume C89.
60539
60540         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60541         Include stdlib.h, for EXIT_FAILURE.
60542         Always include <string.h>, since we assume C89.
60543         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60544         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60545         Include <stddef.h> instead, since it's all we need for size_t.
60546         (PARAMS): Remove.  All uses removed.
60547         (ARRAY_CARDINALITY): Do not bother to #undef.
60548         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60549         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60550         Remove unnecessary parentheses.
60551         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60552         Insert necessary parentheses.
60553         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60554         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60555
60556 2002-11-19  Bruno Haible  <bruno@clisp.org>
60557
60558         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60559         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60560
60561         * lib/mbswidth.h (PARAMS): Remove macro.
60562         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60563         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60564
60565         * lib/gcd.h (PARAMS): Remove macro.
60566         (gcd): Use ANSI C function declarations.
60567         * lib/gcd.c (gcd): Likewise.
60568
60569 2002-11-15  Bruno Haible  <bruno@clisp.org>
60570
60571         * lib/strcspn.c: Include <stddef.h>.
60572         (strcspn): Use ANSI C function declaration. Change return type to
60573         size_t. Use NULL.
60574         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60575         (strpbrk): Use NULL.
60576         * lib/strpbrk.h (PARAMS): Remove macro.
60577         (strpbrk): Use ANSI C function declaration.
60578         * lib/strstr.c: Don't include <sys/types.h>.
60579         * lib/strstr.h (PARAMS): Remove macro.
60580         (strstr): Use ANSI C function declarations.
60581
60582 2002-11-14  Karl Berry  <karl@gnu.org>
60583
60584         * config/mkinstalldirs: `do' on separate line, instead of
60585         `for var; do'.
60586
60587 2002-11-06  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60590         * lib/gcd.c (gcd): Likewise.
60591
60592 2002-11-05  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/gcd.h: New file, from gettext-0.11.5.
60595         * lib/gcd.c: New file, from gettext-0.11.5.
60596
60597 2002-11-05  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60600         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60601         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60602         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60603
60604         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60605         <libintl.h>.
60606         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60607         <libintl.h>.
60608
60609         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60610         * lib/human.c: Include gettext.h instead of <libintl.h>.
60611         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60612         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60613         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60614         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60615         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60616         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60617         (textdomain): Remove definition.
60618         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60619
60620         * lib/long-options.c: Remove include of <libintl.h> and definition of
60621         _.
60622         * lib/same.c: Remove include of <libintl.h> and definition of _.
60623
60624 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60625
60626         * lib/config.charset: A few additions for Solaris.
60627
60628 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60629
60630         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60631         * lib/localcharset.c (locale_charset): Declare as extern "C".
60632
60633 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60634
60635         * lib/config.charset: msdos in uk_UA uses CP1125.
60636
60637 2002-11-04  Bruno Haible  <bruno@clisp.org>
60638
60639         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60640         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60641         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60642         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60643         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60644
60645 2002-11-04  Bruno Haible  <bruno@clisp.org>
60646
60647         * lib/localcharset.c (locale_charset): Don't return an empty string.
60648
60649 2002-11-04  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60652         aliases.
60653
60654 2002-11-04  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/config.charset: Update for newest glibc. Add canonical names
60657         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60658
60659 2002-11-04  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/config.charset: Add support for NetBSD.
60662
60663 2002-11-04  Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60666
60667 2002-11-01  Bruno Haible  <bruno@clisp.org>
60668
60669         * configure.in: Add AC_CONFIG_AUX_DIR call.
60670         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60671         test/Makefile.
60672         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60673
60674 2002-09-28  Karl Berry  <karl@gnu.org>
60675
60676         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60677         installed automake until the next release, since changes have been
60678         made.
60679
60680 2002-09-25  Karl Berry  <karl@gnu.org>
60681
60682         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60683         * lib/getopt*: copy from libc/posix.
60684         * lib/gettext.h: copy from gettext.
60685         * lib/.cppi-disable: add strdup.c, gettext.h.
60686
60687 2002-09-25  Karl Berry  <karl@gnu.org>
60688
60689         * config/srclist.txt: enable gettext.h check.
60690         * config/config.{guess,sub}: update from prep.
60691         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60692                 from automake 1.6.3.
60693         See srclist*.
60694
60695 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60696
60697         * regex.c (PATFETCH): Remove the translating fetch.
60698         (PATFETCH_RAW): Rename to PATFETCH.
60699         (set_image_of_range): New fun.
60700         (SET_RANGE_TABLE_WORK_AREA): Use it.
60701         (regex_compile): Don't translate the pattern chars so eagerly.
60702         Only do it when inserting an `exactn' bytecode or when handling
60703         a char-range.
60704         (mutually_exclusive_p): Avoid empty statement.
60705
60706 2002-07-06  Jim Meyering  <meyering@lucent.com>
60707
60708         * m4/README: Don't mention Makefile.am.in.
60709         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60710
60711 2002-07-01  Jim Meyering  <meyering@lucent.com>
60712
60713         * lib/c-stack.c: Include sys/time.h.
60714         From Volker Borchert.
60715
60716 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60717
60718         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60719
60720 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60721
60722         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60723         New macro.  Use it uniformly instead of
60724         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60725         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60726         reported by Vin Shelton.
60727
60728 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60729
60730         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60731         Do not assume SA_SIGINFO behavior.
60732         Bug reported by Jim Meyering on NetBSD 1.5.2.
60733
60734 2002-06-22  Jim Meyering  <meyering@lucent.com>
60735
60736         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60737         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60738
60739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60740         now that configure.ac uses AC_GNU_SOURCE.
60741         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60742         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60743
60744         Update to latest tools.  Suggestions from Paul Eggert.
60745         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60746         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60747         * m4/fnmatch.m4: Likewise.
60748         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60749         to AC_HEADER_STDBOOL
60750
60751 2002-06-22  Jim Meyering  <meyering@lucent.com>
60752
60753         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60754         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60755
60756 2002-06-22  Jim Meyering  <meyering@lucent.com>
60757
60758         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60759
60760         * lib/exitfail.c, exitfail.h: Likewise.
60761         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60762
60763         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60764         of fnmatch.h.
60765         (EXTRA_DIST): Add fnmatch_loop.c.
60766         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60767
60768         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60769         * lib/fnmatch.c: Update from diffutils-2.8.2.
60770         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60771         * lib/fnmatch.h: Remove file.
60772
60773 2002-06-21  Jim Meyering  <meyering@lucent.com>
60774
60775         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60776         * m4/mbrtowc.m4: Likewise.
60777
60778         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60779         * m4/mbswidth.m4: Reflect name change:
60780         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60782
60783         * m4/lib-link.m4: Update from gettext-0.11.2.
60784         * m4/gettext.m4: Likewise.
60785
60786         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60787         From Alfred M. Szmidt.
60788
60789 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60790
60791         * lib/file-type.h: Report an error if neither S_ISREG nor
60792         S_IFREG is defined, instead of using a test specific to glibc
60793         2.2.  This should be safe, since POSIX requires S_ISREG and
60794         Unix Version 7 had S_IFREG.  We don't need to check for
60795         <sys/types.h> since we don't use any symbols that it defines.
60796
60797 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60798
60799         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60800         $@-t, so that each temporary file name is unique and valid in the first
60801         8 characters, for operation under DOS.
60802
60803 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60804
60805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60806
60807 2002-06-15  Jim Meyering  <meyering@lucent.com>
60808
60809         Work even with DJGPP 2.03, which lacks support for symlinks.
60810         From Richard Dawe.
60811         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60812         is defined.
60813         * lib/lchown.c (S_ISLNK): Likewise.
60814
60815 2002-06-15  Jim Meyering  <meyering@lucent.com>
60816
60817         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60818         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60819         have been included before this file.
60820
60821 2002-06-14  Jim Meyering  <meyering@lucent.com>
60822
60823         * lib/file-type.h: Use the version from diffutils-2.8.2.
60824         * lib/file-type.c: Likewise.
60825
60826 2002-06-07  Jim Meyering  <meyering@lucent.com>
60827
60828         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60829         They're needed at least for NetBSD 1.5.2.
60830         ($statxfs_includes): Include those same headers.
60831         ($statxfs_includes): Include sys/vfs.h if available.
60832         ($statxfs_includes): Likewise for sys/statvfs.h.
60833         Check for the following members in both structs statfs and statvfs:
60834         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60835
60836 2002-06-01  Jim Meyering  <meyering@lucent.com>
60837
60838         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60839         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60840
60841 2002-05-28  Jim Meyering  <meyering@lucent.com>
60842
60843         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60844         Reported by Volker Borchert.
60845
60846 2002-05-27  Jim Meyering  <meyering@lucent.com>
60847
60848         Fix a problem seen only on nonconforming systems whereby ls.c's
60849         use of localtime, and then of gettimeofday would cause trouble:
60850         the localtime call used to initialize rpl_gettimeofday's save
60851         mechanism would clobber ls's current local time information so
60852         that in any long listing the first file would always be listed
60853         with date 1970-01-01.  Analysis by Volker Borchert.
60854
60855         * lib/gettimeofday.c (localtime): Undefine.
60856         (rpl_localtime): New function.
60857
60858 2002-05-27  Jim Meyering  <meyering@lucent.com>
60859
60860         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60861         localtime.
60862
60863         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60864         use the replacement function; it wouldn't resolve at link time.
60865         Reported by Volker Borchert.
60866
60867 2002-05-22  Jim Meyering  <meyering@lucent.com>
60868
60869         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60870         file-type.h.
60871         * lib/file-type.h: New file.
60872         * lib/file-type.c (file_type): New file/function.  Extracted from
60873         diffutils.
60874
60875 2002-04-30  Jim Meyering  <meyering@lucent.com>
60876
60877         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60878
60879 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60880
60881         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60882
60883 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60884
60885         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60886         Do not check for alloca.h (no longer used) or stdbool.h (was never
60887         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60888
60889 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60890
60891         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60892
60893 2002-04-29  Jim Meyering  <meyering@lucent.com>
60894
60895         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60896         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60897         Use AC_FUNC_STRNLEN here instead.
60898
60899         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60900         With autoconf-2.53a, it's part of AC_PROG_CC.
60901
60902 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60903
60904         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60905         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60906
60907 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60908
60909         * lib/sig2str.h, lib/sig2str.c: New files.
60910         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60911
60912 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60913
60914         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60915         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60916         of 127, since 64 is the largest conceivable number for ancient
60917         nonstandard hosts.
60918         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60919
60920 2002-04-28  Jim Meyering  <meyering@lucent.com>
60921
60922         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60923
60924 2002-04-24  Jim Meyering  <meyering@lucent.com>
60925
60926         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60927         (jm_PREREQ): Use it.
60928
60929         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60930         mach/mach.h fcntl.h.
60931         Check for this function: setlocale.
60932
60933 2002-04-24  Jim Meyering  <meyering@lucent.com>
60934
60935         * lib/gettext.h: New file, from Gettext.
60936         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60937         (libfetish_a_SOURCES): Add gettext.h.
60938
60939 2002-04-16  Jim Meyering  <meyering@lucent.com>
60940
60941         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60942         ut_pid, ut_id, ut_exit.
60943
60944 2002-04-16  Jim Meyering  <meyering@lucent.com>
60945
60946         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60947         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60948         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60949
60950 2002-04-12  Jim Meyering  <meyering@lucent.com>
60951
60952         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60953         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60954         existence of the getmntinfo function.  Needed for Darwin 5.3.
60955
60956         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60957         This is necessary at least on Darwin 5.3.
60958
60959         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60960         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60961         strnlen.o in the library, and that makes some versions of ranlib
60962         object.
60963
60964 2002-04-12  Jim Meyering  <meyering@lucent.com>
60965
60966         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60967
60968 2002-04-09  Jim Meyering  <meyering@lucent.com>
60969
60970         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60971         to be more precise.  Rather than saying we're checking whether the
60972         function `works', say what we're testing.
60973         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60974         Reported by Bruno Haible.
60975
60976 2002-03-10  Jim Meyering  <meyering@lucent.com>
60977
60978         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60979         Suggestion from Santiago Vila.
60980
60981 2002-03-08  Jim Meyering  <meyering@lucent.com>
60982
60983         * lib/rename.c: Mention that this wrapper is needed also on
60984         mips-dec-ultrix4.4 systems.
60985
60986 2002-03-02  Jim Meyering  <meyering@lucent.com>
60987
60988         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60989         not HAVE_CLOCK_SETTIME.
60990
60991 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60992
60993         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60994         Check for clock_settime.
60995
60996 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60997
60998         * lib/nanosleep.h: Rename to....
60999         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61000
61001         * lib/gettime.c: New file.
61002         * lib/settime.c: New file.
61003         * lib/stime.c: Remove.
61004
61005         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61006         timespec.h.  Remove nanosleep.h.
61007
61008 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61009
61010         * m4/acl.m4: New file.
61011         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61012         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61013
61014 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61015
61016         * lib/acl.c, lib/acl.h: New files.
61017         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61018
61019 2002-02-24  Jim Meyering  <meyering@lucent.com>
61020
61021         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61022         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61023         cause trouble.  Reported by Nelson Beebe.
61024
61025 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61026
61027         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61028         compilers that don't know that xalloc_die never returns.
61029
61030 2002-02-20  Jim Meyering  <meyering@lucent.com>
61031
61032         * lib/getdate.c: Regenerate using bison-1.33.
61033
61034 2002-02-17  Jim Meyering  <meyering@lucent.com>
61035
61036         * config/config.guess (main): Don't use `head -1'; it's no longer
61037         portable. Use `sed 1q' instead.
61038
61039 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61040
61041         * m4/codeset.m4: Upgrade to gettext-0.11.
61042         * m4/gettext.m4: Upgrade to gettext-0.11.
61043         * m4/glibc21.m4: Upgrade to gettext-0.11.
61044         * m4/iconv.m4: Upgrade to gettext-0.11.
61045         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61046         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61047         * m4/lib-ld.m4: New file, from gettext-0.11.
61048         * m4/lib-link.m4: New file, from gettext-0.11.
61049         * m4/lib-prefix.m4: New file, from gettext-0.11.
61050         * m4/progtest.m4: Upgrade to gettext-0.11.
61051
61052 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61053
61054         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61055         (jm_PREREQ): Use it.
61056
61057 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61058
61059         * lib/posixver.c, lib/posixver.h: New files.
61060         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61061
61062 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61063             Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61066         (fwrite_success_callback): New declaration.
61067         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61068         print_unicode_char. Call failure callback instead of error.
61069         (fwrite_success_callback): New function.
61070         (exit_failure_callback): New function.
61071         (fallback_failure_callback): New function.
61072         (print_unicode_char): Call unicode_to_mb.
61073
61074 2002-01-26  Jim Meyering  <meyering@lucent.com>
61075
61076         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61077         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61078
61079 2002-01-26  Jim Meyering  <meyering@lucent.com>
61080
61081         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61082
61083 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61084
61085         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61086
61087 2002-01-22  Jim Meyering  <meyering@lucent.com>
61088
61089         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61090         Otherwise, some versions of automake would omit the rule that makes
61091         Makefile from Makefile.in.
61092
61093 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61094
61095         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61096         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61097         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61098         (memcoll): Set errno to zero if there is no error.
61099
61100         * lib/quotearg.c (quotearg_buffer_restyled):
61101         Fix bug with quoting buffers containing NUL when backslashing escapes.
61102         This bug was exposed by the other changes in this patch.
61103         (quotearg_n_options): New arg ARGSIZE.
61104         All callers changed.
61105         (quoting_options_from_style): New function.
61106         (quotearg_n_style): Use it.
61107         (quotearg_n_style_mem): New function.
61108
61109         * lib/quotearg.h (quotearg_n_style_mem): New function.
61110
61111 2002-01-19  Jim Meyering  <meyering@lucent.com>
61112
61113         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61114         Remove useless quotes: DF_PROG="df".
61115         * m4/strnlen.m4: New file.
61116
61117 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61118
61119         * lib/backupfile.c (ISDIGIT): Comment fix.
61120         * lib/getdate.y (ISDIGIT): Likewise.
61121         * lib/posixtm.c (ISDIGIT, year): Likewise.
61122         * lib/strverscmp.c (ISDIGIT): Likewise.
61123         * lib/userspec.c (ISDIGIT): Likewise.
61124
61125 2002-01-16  Jim Meyering  <meyering@lucent.com>
61126
61127         * lib/getdate.y: Add three semicolons, each just before a closing
61128         brace. Bison (as of version 1.31) no longer papers over that mistake.
61129
61130 2002-01-05  Jim Meyering  <meyering@lucent.com>
61131
61132         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61133
61134 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61135
61136         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61137         not silently exit merely because the output buffer happens to
61138         have nothing pending.
61139
61140 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61141
61142         See the big note in ../ChangeLog.
61143         * lib/human.c (suffixes): Prefer K to k for 1024.
61144         (generate_suffix_backwards): New function.
61145         (human_readable_inexact): Use it.
61146         * lib/xstrtol.c (__xstrtol): If there is no number but there
61147         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61148         Accept 'K' as well as 'k'.
61149
61150 2001-12-15  Jim Meyering  <meyering@lucent.com>
61151
61152         * lib/regex.h (__restrict_arr): Update from libc.
61153
61154         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61155         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61156         (STREQ): Define.
61157
61158 2001-12-14  Jim Meyering  <meyering@lucent.com>
61159
61160         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61161         Suggestion from Bruno Haible.
61162
61163 2001-12-10  Jim Meyering  <meyering@lucent.com>
61164
61165         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61166         xrealloc, Instead, include "xalloc.h".
61167         (initbuffer): Don't cast xmalloc return value to char*.
61168         (readline): Reword comment.
61169         Don't cast xrealloc return value to char*
61170         Return NULL, not 0.
61171
61172 2001-12-09  Jim Meyering  <meyering@lucent.com>
61173
61174         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61175         about `signed and unsigned type in conditional expression'.
61176         * lib/posixtm.c (posix_time_parse): Likewise.
61177
61178         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61179
61180         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61181         to avoid a pedantic warning.
61182
61183         * lib/getstr.c: Don't include assert.h.
61184         (getstr): Remove warning-evoking assertions.
61185         Return -1 if offset parameter is out of bounds.
61186         Change the type of a local from int to size_t.
61187
61188         * lib/strftime.c (my_strftime_localtime_r): Include this function
61189         definition in the `#if ! HAVE_TM_GMTOFF' block.
61190
61191         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61192         Include xalloc.h instead.
61193
61194 2001-12-02  Jim Meyering  <meyering@lucent.com>
61195
61196         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61197         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61198         included.
61199
61200         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61201         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61202
61203 2001-11-30  Akim Demaille  <akim@epita.fr>
61204
61205         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61206         before being defined.
61207
61208 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61209
61210         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61211         First arg is int, not unsigned.
61212         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61213         (SIZE_MAX, UINT_MAX): New macros.
61214         (quotearg_n_options): Abort if N is negative.
61215         Avoid overflow check on hosts where size_t is 64 bits and int
61216         is 32 bits, as overflow is impossible there.
61217         Fix off-by-one typo that caused unnecessary reallocation.
61218
61219 2001-11-27  Jim Meyering  <meyering@lucent.com>
61220
61221         * lib/tempname.c: Merge with version from libc.
61222         * lib/regex.c: Likewise.
61223
61224         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61225         systems for which STDC_HEADERS is 0, it was not included, resulting in
61226         a warning about an integer-to-pointer conversion problem with getenv.
61227         Reported by Volker Borchert.
61228
61229 2001-11-26  Jim Meyering  <meyering@lucent.com>
61230
61231         * lib/gtod.h: Remove file.
61232         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61233         * lib/gettimeofday.c: Don't include gtod.h.
61234         (GTOD_init): Remove function.
61235         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61236         Suggestion from Volker Borchert.
61237
61238 2001-11-23  Jim Meyering  <meyering@lucent.com>
61239
61240         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61241         it.
61242         * lib/hash.c (struct hash_table): Define it here instead.
61243
61244 2001-11-22  Jim Meyering  <meyering@lucent.com>
61245
61246         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61247
61248 2001-11-20  Jim Meyering  <meyering@lucent.com>
61249
61250         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61251         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61252
61253 2001-11-19  Jim Meyering  <meyering@lucent.com>
61254
61255         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61256         directory.  Use "conftestXXXXXX" as the template.
61257         Suggestion from Paul Eggert.
61258
61259         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61260         immediately, so the test doesn't mistakenly hit the max-open-files
61261         limit.
61262
61263 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61264
61265         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61266         (TEMPORARIES): New macro.
61267         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61268         removes an artificial limitation (e.g. HP-UX 10.20, where
61269         TMP_MAX is 17576).
61270
61271 2001-11-18  Jim Meyering  <meyering@lucent.com>
61272
61273         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61274
61275 2001-11-18  Jim Meyering  <meyering@lucent.com>
61276
61277         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61278         on SunOS 4.
61279
61280         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61281         files will be created before anything else.
61282
61283 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61284
61285         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61286         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61287
61288 2001-11-17  Jim Meyering  <meyering@lucent.com>
61289
61290         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61291         Prompted by a report from Bob Proulx.
61292
61293         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61294         Instead, require UTILS_FUNC_MKSTEMP.
61295
61296 2001-11-17  Jim Meyering  <meyering@lucent.com>
61297
61298         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61299         Now, that's done as part of AC_FUNC_STRTOD.
61300
61301 2001-11-17  Jim Meyering  <meyering@lucent.com>
61302
61303         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61304         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61305         rather than group writable.  Patch by Juan F. Codagnone.
61306
61307         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61308         xrealloc, Instead, include "xalloc.h".
61309
61310         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61311         Remove explicit declarations of xmalloc, xrealloc,
61312         and xstrdup.  Instead, include "xalloc.h".
61313
61314         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61315         unlocked-io.h.
61316         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61317         Likewise.
61318         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61319
61320         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61321         Reported by Padraig Brady.
61322
61323         * lib/mkstemp.c: #undef mkstemp.
61324         Include config.h.
61325         (rpl_mkstemp): Rename from mkstemp.
61326         Protoize.
61327
61328 2001-11-16  Jim Meyering  <meyering@lucent.com>
61329
61330         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61331         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61332         determine the amount of total physical memory, use pstat_getstatic.
61333         HPUX-11 doesn't define _SC_PHYS_PAGES.
61334         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61335         If sysconf couldn't be used to determine the amount of available
61336         physical memory, use both pstat_getstatic and pstat_getdynamic.
61337         Based on a patch from Bob Proulx.
61338
61339 2001-11-10  Jim Meyering  <meyering@lucent.com>
61340
61341         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61342         (jm_PREREQ): Use it.
61343
61344 2001-11-09  Jim Meyering  <meyering@lucent.com>
61345
61346         * m4/jm-macros.m4: Require autoconf-2.52f.
61347         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61348         Use these AC_-prefixed names, not the AM_-prefixed ones.
61349
61350         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61351
61352 2001-11-05  Jim Meyering  <meyering@lucent.com>
61353
61354         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61355
61356 2001-11-04  Jim Meyering  <meyering@lucent.com>
61357
61358         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61359         $DEFS.
61360
61361 2001-11-03  Jim Meyering  <meyering@lucent.com>
61362
61363         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61364         of AC_DEFUN.
61365
61366         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61367         know the name of the variable in the macro definition.
61368
61369 2001-11-03  Jim Meyering  <meyering@lucent.com>
61370
61371         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61372         in argmatch_to_argument call.
61373
61374         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61375         argument.
61376
61377         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61378         e.g., a fault due to an attempt to free a NULL pointer.
61379
61380 2001-11-01  Jim Meyering  <meyering@lucent.com>
61381
61382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61383         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61384
61385 2001-11-01  Jim Meyering  <meyering@lucent.com>
61386
61387         * lib/dirfd.c, lib/dirfd.h: New files.
61388         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61389
61390         * lib/hash.c (hash_print) [TESTING]: Clean up.
61391
61392 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61393
61394         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61395         to avoid a warning if -Wall.
61396
61397 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61398
61399         * README: New file
61400         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61401         (per RMS's instructions, this is now the canonical source)
61402         * lgpl/, gpl/: New directories.
61403
61404 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61405
61406         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61407
61408 2001-10-21  Jim Meyering  <meyering@lucent.com>
61409
61410         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61411         this code would end up calling gettext even in packages built
61412         with --disable-nls.
61413         * lib/getopt.c (_): Likewise.
61414         * lib/regex.c (_): Likewise.
61415
61416 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61417
61418         * m4/error.m4 (jm_PREREQ_ERROR):
61419         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61420         AC_FUNC_STRERROR_R does that.
61421         Check for strerror declaration.
61422
61423         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61424         are supposed to have them these days.
61425         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61426         Merge changes from latest Autoconf CVS.
61427         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61428         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61429         POSIX decided to standardize on the int flavor of strerror_r.
61430
61431 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61432
61433         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61434         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61435         Use strerror_r that is only a macro, even if it is not a function.
61436         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61437         (private_strerror): Use prototypes, not old-style function definition.
61438         (print_errno_message): New function.
61439         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61440         char*-flavored one.
61441         (error_tail, error, error_at_line): Use it.
61442
61443 2001-10-11  Jim Meyering  <meyering@lucent.com>
61444
61445         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61446         and quote_n (1, ... to avoid clobbering a buffer.
61447
61448 2001-10-05  Jim Meyering  <meyering@lucent.com>
61449
61450         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61451         hash-pjw.h.
61452         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61453         * lib/hash-pjw.h: New file.
61454
61455 2001-09-30  Jim Meyering  <meyering@lucent.com>
61456
61457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61458         `struct fsstat' has the `f_fstypename' member.
61459         Use that to define FS_TYPE, which is now used to make
61460         the getfsstat link test tighter.
61461
61462 2001-09-30  Jim Meyering  <meyering@lucent.com>
61463
61464         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61465         Include <sys/ucred.h>, for Apple Darwin.
61466         Include sys/mount.h and sys/fs_types.h only if available.
61467         (FS_TYPE): Define.
61468         (read_filesystem_list): Use FS_TYPE.
61469
61470 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61471
61472         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61473         a boolean context.
61474
61475 2001-09-29  Jim Meyering  <meyering@lucent.com>
61476
61477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61478         [one-argument getmntent function]): Include stdio.h before mntent.h.
61479         SunOS 4.1.x needs it for the declaration of `FILE'.
61480         Patch by Volker Borchert.
61481
61482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61483         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61484         sys/fs_types.h, and make the link-test for getfsstat guard #include
61485         directives with appropriate #if HAVE_*_H tests so that we can
61486         detect getfsstat on Apple Darwin1.3.7 systems.
61487         Reported by Nelson Beebe.
61488         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61489
61490 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61491
61492         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61493         #defines strtoimax.  Also treat the other strto* functions
61494         like strtoimax.
61495
61496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61497         Check for strtoul and strtoumax,
61498         as those declarations are made even in the signed case.
61499         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61500         Likewise, for strtol and strtoimax.
61501
61502 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61503
61504         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61505         #defines strtoimax.  Also treat the other strto* functions
61506         like strtoimax.
61507
61508         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61509         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61510         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61511
61512 2001-09-26  Jim Meyering  <meyering@lucent.com>
61513
61514         Most macros in unlocked-io.h had the wrong number of arguments.
61515         * lib/gen-uio: New script.
61516         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61517         * lib/unlocked-io.hin: Remove file.
61518         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61519         rather than trying to embed it here.
61520         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61521         Reported by Padraig Brady.
61522
61523 2001-09-25  Volker Borchert  <bt@teknon.de>
61524
61525         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61526         `result'.
61527
61528 2001-09-24  Jim Meyering  <meyering@lucent.com>
61529
61530         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61531
61532 2001-09-23  Jim Meyering  <meyering@lucent.com>
61533
61534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61535         instead of the mere test for existence of mntent.h.  The latter
61536         would get a false-positive on AIX 3.4 systems.
61537         In the outer getmntent if-block, don't die if neither of the getmntent
61538         tests succeeds.  Instead, just fall through and continue with the
61539         remaining tests.
61540
61541 2001-09-23  Jim Meyering  <meyering@lucent.com>
61542
61543         * lib/mountlist.c: Remove useless parentheses in #if directives.
61544         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61545         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61546
61547 2001-09-22  Jim Meyering  <meyering@lucent.com>
61548
61549         * m4/gettext.m4: New file.  From gettext.
61550         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61551         * m4/progtest.m4: Likewise
61552         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61553         * m4/glibc21.m4: Likewise.
61554
61555         * m4/libintl.m4: Remove.  No longer used.
61556
61557 2001-09-22  Jim Meyering  <meyering@lucent.com>
61558
61559         * lib/localcharset.c: Update from latest gettext.
61560         * lib/config.charset: Likewise.
61561
61562 2001-09-20  Jim Meyering  <meyering@lucent.com>
61563
61564         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61565         strtoimax.
61566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61567         strtoumax.
61568
61569 2001-09-20  Jim Meyering  <meyering@lucent.com>
61570
61571         * lib/xstrtol.c (strtoimax): Guard declaration with
61572         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61573         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61574         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61575         (strtoumax): Likewise, for completeness (it wasn't necessary).
61576
61577 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61578
61579         * lib/strtoimax.c (HAVE_LONG_LONG):
61580         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61581         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61582         to work around bug in IBM C compiler.
61583
61584 2001-09-17  Jim Meyering  <meyering@lucent.com>
61585
61586         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61587         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61588         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61589         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61590         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61591         whenever the right hand side need not be expanded by the shell.
61592
61593 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61594
61595         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61596         library.  It's not correct, as some older glibcs are buggy.
61597         fnmatch wasn't fixed until glibc 2.2.
61598
61599         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61600         special shell magic here.
61601
61602 2001-09-16  Jim Meyering  <meyering@lucent.com>
61603
61604         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61605         * m4/jm-macros.m4: Require it.
61606
61607 2001-09-16  Jim Meyering  <meyering@lucent.com>
61608
61609         * lib/mkdir.c: New file.
61610
61611 2001-09-15  Jim Meyering  <meyering@lucent.com>
61612
61613         * m4/jm-macros.m4: Check for help2man.
61614
61615 2001-09-11  Jim Meyering  <meyering@lucent.com>
61616
61617         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61618         The body, by Paul Eggert, was moved here from configure.in.
61619         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61620
61621 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61622
61623         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61624         (jm_PREREQ): Use it.
61625
61626 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61627
61628         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61629         Use ssize_t, not int, to store result of readlink.
61630         Check for ssize_t overflow as well as size_t overflow,
61631         as POSIX says the result of readlink is implementation-defined
61632         when ssize_t overflows.
61633         Remove unnecessary cast to char*.
61634         Use free+malloc instead of realloc, as the storage doesn't need
61635         to be preserved and it's clearer and can be more efficient that way.
61636         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61637         * lib/xreadlink.h (xreadlink): Update prototype.
61638
61639 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61640
61641         * lib/xgetcwd.c: Revert some of the previous change; intead,
61642         fix the HAVE_GETCWD_NULL code to behave more like the
61643         !HAVE_GETCWD_NULL code used to.
61644
61645         Include "xalloc.h".
61646         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61647         invoke xalloc_die.
61648
61649 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61650
61651         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61652         sys/param.h, as pathmax.h includes them.
61653
61654 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61655
61656         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61657         (jm_PREREQ_XGETCWD): New macro.
61658
61659         * m4/getcwd.m4: New file.
61660
61661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61662
61663         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61664         like the HAVE_GETCWD_NULL code.
61665         Include pathmax.h if not HAVE_GETCWD.
61666         Do not include xalloc.h.
61667         (INITIAL_BUFFER_SIZE): New symbol.
61668         Do not use xmalloc / xrealloc, since the caller is responsible for
61669         handling errors.  Preserve errno around `free' during failure.
61670         Do not overrun buffer when using getwd.
61671
61672 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61673
61674         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61675         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61676         getcwd (NULL, 0).
61677
61678 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61679
61680         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61681         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61682         spotted by Jim Meyering.
61683
61684 2001-09-03  Jim Meyering  <meyering@lucent.com>
61685
61686         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61687         failure.
61688
61689 2001-09-02  Jim Meyering  <meyering@lucent.com>
61690
61691         * lib/error.c: Update from GNU libc.
61692
61693 2001-09-01  Jim Meyering  <meyering@lucent.com>
61694
61695         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61696         Used by df.
61697
61698 2001-09-01  Jim Meyering  <meyering@lucent.com>
61699
61700         * lib/xreadlink.c: New file.
61701         * lib/xreadlink.h: New file.
61702         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61703         xreadlink.h.
61704
61705         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61706         doesn't conflict with sparc Solaris 7's definition in
61707         /usr/include/sys/int_types.h.
61708
61709         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61710         files.
61711         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61712         and strncasecmp as r-values.  Unixware didn't have declarations.
61713
61714 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61715
61716         * lib/xstrtol.h: Add copyright notice.
61717         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61718         LONGINT_INVALID_SUFFIX_CHAR.
61719
61720 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61721
61722         * lib/xstrtol.c (strtoimax): New decl.
61723
61724 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61725
61726         * lib/xgetcwd.c: Don't include pathmax.h.
61727         Include stdlib.h and unistd.h if available.
61728         Include xalloc.h.
61729         (xmalloc, xstrdup, free): Remove decls.
61730         (xgetcwd): Don't assume sizes fit in unsigned.
61731         Check for overflow when computing sizes.
61732         Simplify reallocation code.
61733
61734 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61735
61736         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61737         a directory's st_size can have an arbitrary value, so the old
61738         usage could waste an arbitrary amount of memory.  All uses
61739         changed.
61740         * lib/savedir.h: Update prototype.
61741
61742 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61743
61744         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61745
61746         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61747         old strtoimax.c.
61748
61749         Also, make the following further changes to make this file's
61750         configuration more similar to that of strtol.c:
61751         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61752         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61753         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61754         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61755         changed to signed values.
61756
61757         And make the following changes as well:
61758         Fix copyright notice, as 1999 was missing.
61759         (verify): New macro.
61760         (strtoimax): Check sizes at compile-time, not run-time.
61761         Prefer strtol to strtoll if both work.
61762         (main): Remove; it was not that useful and was a pain to maintain.
61763
61764         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61765
61766 2001-08-31  Jim Meyering  <meyering@lucent.com>
61767
61768         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61769         Use an initial, malloc'd, buffer of length 128 rather than
61770         a statically allocated one of length 1024.
61771
61772 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61773
61774         Simplify code, partly by assuming autoconf 2.52 semantics.
61775
61776         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61777
61778         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61779         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61780         All uses removed.
61781         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61782         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61783         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61784         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61785         jm_AC_HEADER_INTTYPES_H.
61786         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61787
61788         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61789
61790         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61791         Quote first arg of AC_DEFUN.
61792         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61793         since they are needed to parse the include file even if we need
61794         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61795         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61796         but with opposite signedness.
61797
61798 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61799
61800         Merge 'exclude' changes from tar 1.13.22.
61801         This fixes one or two unlikely storage allocation overflow bugs,
61802         but doesn't change user-visible behavior otherwise.
61803
61804 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61805
61806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61807         (jm_PREREQ_EXCLUDE): New macro.
61808
61809 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61810
61811         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61812         tm to be declared.
61813
61814 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61815
61816         * lib/hash.c: Remove '2001' from copyright notice.
61817
61818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61819
61820         * lib/full-write.h: New file.
61821         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61822         * lib/full-write.c: Correct credits, as cccp.c no longer
61823         exists and anyway it was so heavily changed from the old cccp
61824         code as to be unrecognizable.  Include full-write.h.
61825         (full_write) Return size_t, with short writes meaning failure.
61826         All callers changed.  This fixes a bug with large buffers
61827         on 64-bit hosts.
61828         * lib/utime.c: Include full-write.h.
61829
61830 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61831
61832         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61833         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61834         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61835         Include if available.
61836         (<xalloc.h>): Include
61837         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61838         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61839         collide with FNM macros.
61840         (struct patopts): New struct.
61841         (struct exclude): Use it, as exclude patterns now come with options.
61842         (new_exclude): Support above changes.
61843         (new_exclude, add_exclude_file):
61844         Initial size must now be a power of two to simplify overflow checking.
61845         (free_exclude, fnmatch_no_wildcards): New function.
61846         (excluded_filename): No longer requires options arg, as the options
61847         are determined by add_exclude.  Now returns bool, not int.
61848         (excluded_filename, add_exclude):
61849         Add support for the fancy new exclusion options.
61850         (add_exclude, add_exclude_file): Now takes int options arg.
61851         Check for arithmetic overflow when computing sizes.
61852         (add_exclude_file): xrealloc might modify errno, so don't
61853         realloc until after errno might be used.
61854
61855         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61856         New macros.
61857         (free_exclude): New decl.
61858         (add_exclude, add_exclude_file): Now takes int options arg.
61859         (excluded_filename): No longer requires options arg, as the options
61860         are determined by add_exclude.  Now returns bool, not int.
61861
61862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61863
61864         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61865
61866 2001-08-27  Jim Meyering  <meyering@lucent.com>
61867
61868         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61869
61870         * lib/version-etc.c (N_): Remove definition.
61871         Revert most of last change.
61872         Instead, simply don't mark the `Copyright...' string for translation.
61873         Based on advice from Paul Eggert.
61874
61875         * lib/strtoxmax.c: Tweak comment.
61876
61877 2001-08-26  Jim Meyering  <meyering@lucent.com>
61878
61879         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61880
61881         * m4/xstrtoimax.m4: New file.
61882         * m4/xstrtoumax.m4: Add comments explaining why we
61883         AC_REPLACE_FUNCS(strtol).
61884
61885 2001-08-26  Jim Meyering  <meyering@lucent.com>
61886
61887         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61888         of copyright with `%s' so translators don't get an untranslated
61889         message in 2002.
61890         (COPYRIGHT_YEAR): Define.
61891         (version_etc): Use fprintf rather than fputs.
61892         Suggestion from Ulrich Drepper.
61893
61894         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61895
61896         * lib/strtoll.c: New file, from GNU libc.
61897         * lib/xstrtoimax.c: New file.
61898
61899         * lib/xstrtol.h: Add xstrtoimax.
61900         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61901         * lib/strtoimax.c: New file.  Likewise, but first define
61902         STRTOUXMAX_SIGNED.
61903
61904         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61905         ...
61906         * lib/strtoxmax.c: ... then renamed to this.
61907
61908 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61909
61910         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61911         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61912         (jm_AC_TYPE_INTMAX_T): New macro.
61913         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61914
61915         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61916
61917         * m4/longlong.m4: Renamed from ulonglong.m4.
61918         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61919         * m4/uintmax_t.m4: Removed.
61920
61921 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61922
61923         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61924         Port to Solaris 8, where 'sed' requires a space after the 'r'
61925         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61926         Redirect output to $tmp just once.
61927
61928 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61929
61930         * lib/addext.c (<errno.h>): Include.
61931         (errno): Declare if not defined.
61932         (addext): Work correctly when pathconf returns -1 and leaves
61933         errno alone because there is no limit.  Also, work even if
61934         pathconf returns a value greater than SIZE_MAX.
61935
61936 2001-08-12  Jim Meyering  <meyering@lucent.com>
61937
61938         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61939         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61940         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61941         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61942         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61943         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61944         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61945         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61946         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61947         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61948         utime.m4, utimes.m4, xstrtoumax.m4:
61949         Quote the first argument in each use of AC_DEFUN.
61950
61951 2001-08-12  Jim Meyering  <meyering@lucent.com>
61952
61953         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61954         Simply `return getcwd (NULL, 0);'.
61955         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61956         Use 1300 as initial value for length, not PATH_MAX.
61957
61958         * lib/pathmax.h: Clean up cpp syntax.
61959
61960 2001-08-12  Jim Meyering  <meyering@lucent.com>
61961
61962         * lib/gettimeofday.c: New file.
61963         * lib/gtod.h: New file.
61964         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61965
61966 2001-08-05  Jim Meyering  <meyering@lucent.com>
61967
61968         * m4/jm-macros.m4: Require autoconf-2.52.
61969
61970 2001-08-04  Jim Meyering  <meyering@lucent.com>
61971
61972         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61973         stmt, to get in sync with glibc.
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.
61979
61980         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61981         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61982         with inverted sense.  All uses changed.
61983
61984         * lib/mbswidth.c: Don't include <limits.h>.
61985         Include <stdlib.h> and <string.h> unconditionally.
61986         (iswcntrl, mbsinit, ISCNTRL): New macros.
61987         (mbsnwidth): Use K&R style function declarations.
61988         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61989         can optimize it when MB_CUR_MAX == 1.
61990         The width of control characters is zero, not 1.
61991
61992 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61993
61994         The following changes are from gettext 0.10.39 as maintained by
61995         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61996
61997         * m4/codeset.m4: Upgrade to serial AM1.
61998         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61999         all uses changed.  Quote first arg of AC_DEFUN.
62000         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62001
62002         * m4/iconv.m4: Upgrade to serial AM2.
62003         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62004         Add --with-libconv-prefix.
62005         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62006         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62007         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62008         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62009         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62010
62011         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62012         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62013         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62014         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62015         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62016         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62018         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62019         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62020
62021         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62022         string.h any more.
62023
62024         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62025         not the default value.
62026
62027         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62028         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62029         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62030         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62031         Also check for iswcntrl, used for wcwidth fallback.
62032         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62033         to Autoconf 2.13.
62034
62035 2001-08-03  Jim Meyering  <meyering@lucent.com>
62036
62037         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62038         as it was in the original.  Reported by Paul Eggert.
62039
62040 2001-07-16  Jim Meyering  <meyering@lucent.com>
62041
62042         * m4/gettimeofday.m4: New file.
62043         Prompted by a report from Bernhard Baehr.
62044
62045 2001-07-15  Jim Meyering  <meyering@lucent.com>
62046
62047         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62048         stuff. Now it's in ../Makefile.cfg.
62049
62050 2001-07-15  Jim Meyering  <meyering@lucent.com>
62051
62052         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62053         (BUILT_SOURCES): Add unlocked-io.h.
62054         (io_functions): Define.
62055         (unlocked-io.h): New rule.
62056         (DISTCLEANFILES): Add unlocked-io.h.
62057         (all-local): Depend on unlocked-io.h, to ensure it is created.
62058
62059         * lib/unlocked-io.hin: New file
62060
62061         * lib/regex.c: Update from glibc.
62062
62063 2001-07-05  Jim Meyering  <meyering@lucent.com>
62064
62065         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62066         recommendation.
62067         (libfetish_a_SOURCES): Put all .h files here instead.
62068         Remove a thus-exposed (better checks in automake) duplicate and
62069         two unnecessary .h files.
62070
62071 2001-07-04  Jim Meyering  <meyering@lucent.com>
62072
62073         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62074         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62075         distcheck failure.
62076
62077 2001-07-02  Jim Meyering  <meyering@lucent.com>
62078
62079         The following changes were prompted by suggestions from Bruno Haible.
62080
62081         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62082         is now generated.
62083         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62084         definition of EXTRA_DIST.
62085         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62086         ensure that the generated file is created/updated whenever the list
62087         of $(unlocked_functions) is changed.
62088         (jm-glibc-io.m4): New rule.
62089         (unlocked-io.h): New rule -- currently unused.
62090
62091 2001-06-24  Jim Meyering  <meyering@lucent.com>
62092
62093         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62094         unmatched right bracket, rather than kludging it with an extra,
62095         falsely-matching quote in a comment.  Patch by Akim Demaille.
62096
62097 2001-06-11  Jim Meyering  <meyering@lucent.com>
62098
62099         * lib/regex.c: Update from GNU libc.
62100
62101 2001-05-27  Jim Meyering  <meyering@lucent.com>
62102
62103         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62104         Check for ut_type in struct utmp.
62105
62106 2001-05-27  Jim Meyering  <meyering@lucent.com>
62107
62108         * lib/readutmp.h (UT_TYPE): Define.
62109
62110 2001-05-24  Jim Meyering  <meyering@lucent.com>
62111
62112         * lib/argmatch.c: Include "quote.h".
62113         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62114         quote function.  Reported by Göran Uddeborg.
62115
62116 2001-05-22  Jim Meyering  <meyering@lucent.com>
62117
62118         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62119         now that we use the package-supplied version unconditionally.
62120         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62121
62122 2001-05-21  Jim Meyering  <meyering@lucent.com>
62123
62124         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62125         shell syntax errors.
62126
62127 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62128
62129         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62130
62131 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62132
62133         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62134         Don't bother to check library strftime, since
62135         we'll be using our own my_strftime function anyway.
62136         Define my_strftime instead of strftime.
62137
62138 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62139
62140         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62141         which is not yet declared.
62142
62143 2001-05-15  Jim Meyering  <meyering@lucent.com>
62144
62145         * m4/regex.m4: Use proper quoting so brackets appear in the test
62146         program.
62147         Reported by, and with help from, Bruno Haible.
62148
62149 2001-05-13  Jim Meyering  <meyering@lucent.com>
62150
62151         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62152         undefined.
62153
62154 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62155
62156         dirname code cleanup.  base_name now behaves more compatibly
62157         with POSIX basename when given file names that have trailing
62158         slashes, and similarly for dir_name.  Add new primitives
62159         base_len and dir_len.  Put the directory-name-related decls
62160         into dirname.h.
62161
62162         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62163         * lib/backupfile.c (base_name): Likewise.
62164         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62165         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62166         * lib/makepath.c (strip_trailing_slashes): Likewise.
62167         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62168         ISSLASH): Likewise.
62169         * lib/rename.c (strip_trailing_slashes): Likewise.
62170         * lib/same.c (base_name): Likewise.
62171         * lib/stripslash.c (ISSLASH): Likewise.
62172
62173         * lib/addext.c: Include <dirname.h> after size_t is defined.
62174         * lib/backupfile.c: Likewise.
62175
62176         * lib/addext.c (addext): Use base_len to trim redundant
62177         trailing slashes instead of doing it ourselves.
62178         But do not trim the last slash if it is not redundant.
62179
62180         * lib/backupfile.c (find_backup_file_name,
62181         max_backup_version): Use base_len instead of rolling it ourselves.
62182         Handle the case of "" and (on DOS) "C:" correctly.
62183
62184         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62185         needed. Include <string.h>, <dirname.h>.
62186         (base_name): Allow file names ending in slashes, other than names
62187         that are all slashes.  In this case, return the basename followed
62188         by the slashes.  This is more general, and can be used in places
62189         where the original base_name purposely had an assertion failure.
62190         (base_len): New function.
62191
62192         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62193         Do not include <assert.h>; no longer needed.
62194         Include xalloc.h.
62195         (memrchr): Remove decl.
62196         (dir_name_r): Remove.
62197         (dir_len): Renamed from dirlen.  All callers changed.
62198         Rewrite in terms of base_name, for simplicity and consistency.
62199         (dir_name): Never return NULL.  All callers changed.
62200         Do not include <stdlib.h> in test program; no longer needed.
62201         return 0; is fine for test program.
62202
62203         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62204         New macros.
62205         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62206
62207         * lib/path-concat.c (path_concat): Use base_len to compute
62208         base length, not strlen; this means we cannot rely on memcpy
62209         to null-terminate.
62210
62211         * lib/same.c (STREQ): Remove.
62212         (same_name): Handle the case where the basename ends in trailing '/'.
62213
62214         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62215         a slash was stripped.  Do not strip the last slash after a
62216         file system prefix.
62217
62218 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62219
62220         * lib/Makefile.am (libfetish_a_SOURCES):
62221         Add strftime.c, since we now compile it on all hosts.
62222
62223         * lib/strftime.c (my_strftime):
62224         Define to nstrftime if emacs, but only if my_strftime is not defined.
62225         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62226         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62227         Add one more extra argument: a nanoseconds value.
62228         All uses changed.
62229         (ns): New macro.
62230         (my_strftime function): Add %N format.
62231         (emacs_strftimeu): Renamed from emacs_strftime,
62232         with extra ut argument.
62233
62234 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62235
62236         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62237
62238 2001-04-21  Jim Meyering  <meyering@lucent.com>
62239
62240         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62241         doesn't interfere.
62242
62243 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62244
62245         * m4/ftruncate.m4: Check for chsize.
62246         Link with ftruncate.o unconditionally if ftruncate is missing.
62247         This was required when cross-compiling to i586-mingw32msvc.
62248
62249 2001-04-08  Jim Meyering  <meyering@lucent.com>
62250
62251         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62252         recomputed; that's necessary when the offset spans a DST transition.
62253         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62254
62255 2001-04-02  Jim Meyering  <meyering@lucent.com>
62256
62257         * lib/regex.h, regex.c: Update from GNU libc.
62258
62259 2001-03-24  Jim Meyering  <meyering@lucent.com>
62260
62261         * m4/jm-macros.m4: Require autoconf-2.49d.
62262
62263 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62264
62265         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62266
62267 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62268
62269         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62270
62271 2001-03-17  Jim Meyering  <meyering@lucent.com>
62272
62273         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62274         now that the version in autoconf is equivalent.
62275         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62276
62277         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62278         Suggestion from Akim Demaille.
62279
62280         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62281         (jm_PREREQ_TEMPNAME): New function.
62282
62283 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62284
62285         * lib/tempname.c (uint64_t): Define to uintmax_t if
62286         not defined, and if UINT64_MAX is not defined.
62287         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62288         Reported by John David Anglin.
62289
62290 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62291
62292         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62293         resolve alias if codeset is empty.
62294         * lib/config.charset (BeOS): Use wildcard syntax.
62295
62296 2001-03-13  Jim Meyering  <meyering@lucent.com>
62297
62298         * lib/path-concat.c (path_concat)
62299         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62300         concatenating e.g., `C:' and `foo'.
62301         From Bruno Haible.
62302
62303 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62304
62305         * lib/localcharset.c (locale_charset): Don't use
62306         setlocale(LC_CTYPE,NULL). Don't return NULL.
62307         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62308
62309 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62310
62311         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62312         support for DOS/DJGPP.
62313
62314 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62315
62316         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62317         lacks mkstemp.  Compile our own tempname.c if we compile our own
62318         mkstemp.c, as mkstemp relies on tempname.
62319
62320 2001-03-01  Jim Meyering  <meyering@lucent.com>
62321
62322         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62323         AH_VERBATIM really does output its argument verbatim.
62324
62325 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62326
62327         * lib/Makefile.am (libfetish_a_SOURCES):
62328         Add dup-safer.c, fopen-safer.c.
62329         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62330
62331         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62332         * lib/unistd-safer.h: New files.
62333
62334 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62335
62336         The mkstemp replacement is taken from glibc 2.2.2, with some
62337         portability fixes for use outside glibc, as follows:
62338
62339         * lib/tempname.c (struct_stat64): New macro.
62340         (direxists, __gen_tempname): Use it.
62341         This avoids a portability problem with Solaris 8.
62342
62343         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62344         (<stddef.h>, <stdint.h>, <string.h>):
62345         Include only if STDC_HEADERS || _LIBC.
62346         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62347         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62348         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62349         (__set_errno): Define this macro if <errno.h> doesn't.
62350         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62351         Define these macros if <stdio.h> doesn't.
62352         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62353         Define these macros if <sys/stat.h>
62354         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62355         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62356         __xstat64): Define if not _LIBC.
62357         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62358         (__gen_tempname): Invoke gettimeofday only if
62359         HAVE_GETTIMEOFDAY || _LIBC;
62360         otherwise, fall back on plain "time".
62361         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62362
62363         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62364
62365         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62366
62367 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62368
62369         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62370
62371 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62372
62373         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62374         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62375         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62377
62378 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62379
62380         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62381         Remove workaround macros for hosts that have mbrtowc but not
62382         mbstate_t, as we now insist on proper declarations for both
62383         before using mbrtowc.
62384
62385 2001-02-17  Jim Meyering  <meyering@lucent.com>
62386
62387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62388         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62389         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62390         UnixWare 7.1.1.
62391
62392         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62393         rather than AC_CACHE_VAL.
62394
62395 2001-02-17  Jim Meyering  <meyering@lucent.com>
62396
62397         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62398         around included file name.
62399
62400         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62401
62402         * lib/strftime.c: Update from GNU libc (the only changes were to
62403         comments).
62404
62405 2001-02-17  Jim Meyering  <meyering@lucent.com>
62406
62407         * lib/regex.c: Update from libc.
62408
62409 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62410
62411         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62412         clash.
62413
62414 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62415
62416         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62417         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62418         Reported by Mark Hounschell via Paul Eggert.
62419
62420 2001-02-07  Jim Meyering  <meyering@lucent.com>
62421
62422         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62423
62424 2001-02-05  Jim Meyering  <meyering@lucent.com>
62425
62426         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62427         it includes the patch required for `large file' support with at least
62428         HP-UX's 10.20 /bin/cc.
62429
62430 2001-02-03  Jim Meyering  <meyering@lucent.com>
62431
62432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62433         AS_IF, now that it works once again (mysteriously).
62434         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62435
62436 2001-01-30  Jim Meyering  <meyering@lucent.com>
62437
62438         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62439         * m4/chown.m4: Rename conftestchown to conftest.chown.
62440         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62441         s/conftestdir2/conftest.d2/.
62442         * m4/utimes.m4: s/conftestdata/conftest.data/
62443         Inspired by Pavel Roskin's change in autoconf.
62444
62445 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62446
62447         * lib/config.charset: Update for FreeBSD 4.2.
62448
62449 2001-01-27  Jim Meyering  <meyering@lucent.com>
62450
62451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62452         a use of AS_IF.
62453         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62454
62455 2001-01-26  Jim Meyering  <meyering@lucent.com>
62456
62457         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62458         quotearg.c includes it.
62459
62460 2001-01-26  Jim Meyering  <meyering@lucent.com>
62461
62462         * lib/quotearg.c: Include stddef.h.
62463         * lib/quote.c: Include stddef.h.
62464         Reported by Axel Kittenberger.
62465
62466         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62467         line in double quotes so that it evokes a better diagnostic.
62468         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62469         Reported by Axel Kittenberger.
62470
62471 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62472
62473         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62474         as if it was a `charset'.
62475
62476 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62477
62478         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62479         has const.
62480
62481 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62482
62483         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62484         to avoid a warning.  Add back 'const' to inptr.
62485
62486 2001-01-20  Jim Meyering  <meyering@lucent.com>
62487
62488         Be sure that headers are checked before used in code compiled
62489         for the type checks.
62490         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62491         In place of that, invoke jm_CHECK_ALL_TYPES.
62492         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62493         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62494         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62495         The check for ssize_t was mistakenly run before the test for unistd.h.
62496
62497         The configure-time check for stdbool.h was missing.
62498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62499         (jm_PREREQ_HASH): New function.
62500
62501 2001-01-17  Jim Meyering  <meyering@lucent.com>
62502
62503         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62504         for autoconf-2.49c.
62505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62506
62507 2001-01-16  Jim Meyering  <meyering@lucent.com>
62508
62509         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62510         From Bruno Haible.
62511
62512 2001-01-14  Jim Meyering  <meyering@lucent.com>
62513
62514         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62515         foo and bar.  Create conftestdir/ in the script, not in the C code.
62516         Remove directories in the script, not in the C code.
62517         Remove conftestdir{,2} before trying to create the directory.
62518         Make the entire configure script fail if the mkdir fails.
62519
62520 2001-01-14  Jim Meyering  <meyering@lucent.com>
62521
62522         * lib/rename.c: New file.  From Volker Borchert.
62523         Include stdlib.h, string.h or strings.h, and xalloc.h.
62524         Use strip_trailing_slashes rather than open-coding it.
62525
62526 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62527
62528         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62529
62530 2001-01-03  Jim Meyering  <meyering@lucent.com>
62531
62532         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62533         of local `inptr' to avoid warning with some system declarations of
62534         iconv.
62535
62536 2001-01-02  Volker Borchert  <bt@teknon.de>
62537
62538         * m4/rename.m4: New file.
62539         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62540
62541 2001-01-01  Jim Meyering  <meyering@lucent.com>
62542
62543         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62544         even on systems with utmpx.h.  It's necessary for the declaration of
62545         utmp's ut_user member.  Reported by Andreas Jaeger.
62546
62547         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62548         available. They are required for the declarations of getgrgid and
62549         getpwuid resp.
62550         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62551         Reported by Andreas Jaeger.
62552
62553 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62554
62555         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62556         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62557         so `make install' also works in VPATH builds.
62558
62559 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62560
62561         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62562         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62563         can be used in subdirectories.
62564
62565 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62566
62567         * lib/modechange.c: Do not assume that mode_t uses the
62568         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62569         the other-execute bit of FOO even if S_IXOTH != 1.
62570
62571         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62572         WOTH, XOTH, ALLM): New macros.
62573         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62574          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62575         Use them.
62576         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62577         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62578         (mode_compile):
62579         No need to use uintmax_t; unsigned long is long enough.
62580         Don't bother to get suffix since we don't use it.
62581
62582 2000-12-26  Jim Meyering  <meyering@lucent.com>
62583
62584         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62585         better with autoheader.
62586
62587 2000-12-24  Jim Meyering  <meyering@lucent.com>
62588
62589         * lib/hash.c (is_prime): Return explicit boolean values.
62590         (hash_get_first): Return NULL to appease Irix5.6's 89.
62591         Reported by Nelson Beebe.
62592
62593 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62594
62595         * lib/localcharset.c (locale_charset): Add support for Win32.
62596
62597 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62598
62599         * lib/physmem.h, lib/physmem.c: New files.
62600
62601         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62602         (noinst_HEADERS): Add physmem.h.
62603
62604         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62605         't' for compatibility with Solaris 8 sort.
62606
62607 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62608
62609         * lib/config.charset: Add support for BeOS.
62610
62611 2000-12-17  Jim Meyering  <meyering@lucent.com>
62612
62613         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62614         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62615
62616 2000-12-16  Jim Meyering  <meyering@lucent.com>
62617
62618         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62619         N and M) would have treated it like `chown N:N FILE'.
62620
62621         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62622
62623 2000-12-16  Jim Meyering  <meyering@lucent.com>
62624
62625         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62626         SHELLS_FILE to a file name that's useful on djgpp systems.
62627         Include stdlib.h.
62628         (ADDITIONAL_DEFAULT_SHELLS): Define.
62629         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62630         Based mostly on a patch from Prashant TR.
62631
62632 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62633
62634         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62635         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62636         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62637
62638 2000-12-08  Andreas Schwab  <schwab@suse.de>
62639
62640         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62641         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62642
62643 2000-12-07  Jim Meyering  <meyering@lucent.com>
62644
62645         * lib/stripslash.c (ISSLASH): Define.
62646         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62647         `/'.
62648         From Prashant TR.
62649
62650         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62651         (dir_name_r): Declare this function as static.
62652         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62653         manifest itself on a name containing a mix of slashes and
62654         backslashes.
62655         Make this function work with names starting with a DOS-style
62656         drive letter and colon prefix.
62657         (dir_name): Append `.' if necessary.
62658         Based mostly on patches from Prashant TR and Eli Zaretskii.
62659
62660         * lib/dirname.h (dir_name_r): Remove prototype.
62661
62662 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62663
62664         * m4/off_t-format.m4: Remove this file.
62665         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62666
62667 2000-12-06  Jim Meyering  <meyering@lucent.com>
62668
62669         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62670         replacement strtoull, we may well need the replacement strtoul, too.
62671         Check for declarations of strtoul and strtoull.
62672         Check for strtol.  Mainly as a cue to cause automake to include
62673         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62674         Check for limits.h -- strtol.c needs it.
62675
62676 2000-12-05  Jim Meyering  <meyering@lucent.com>
62677
62678         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62679
62680 2000-12-04  Jim Meyering  <meyering@lucent.com>
62681
62682         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62683         Also include memory.h, stdlib.h, unistd.h if appropriate.
62684         Reported by Andreas Jaeger (conflicting declaration of malloc).
62685
62686 2000-12-02  Jim Meyering  <meyering@lucent.com>
62687
62688         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62689         * m4/jm-macros.m4 (jm_MACROS): require it.
62690
62691 2000-12-02  Jim Meyering  <meyering@lucent.com>
62692
62693         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62694
62695 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62696
62697         * lib/memrchr.c: Include <config.h> before any system include file.
62698
62699 2000-11-30  Jim Meyering  <meyering@lucent.com>
62700
62701         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62702
62703 2000-11-30  Jim Meyering  <meyering@lucent.com>
62704
62705         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62706
62707 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62708
62709         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62710
62711 2000-11-26  Jim Meyering  <meyering@lucent.com>
62712
62713         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62714
62715 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62716
62717         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62718         size of (size_t) -1; it's not portable.
62719
62720 2000-11-17  Jim Meyering  <meyering@lucent.com>
62721
62722         * lib/strstr.c: Update from GNU libc.
62723
62724 2000-11-17  Akim Demaille  <akim@epita.fr>
62725
62726         * lib/obstack.h: Formatting changes.
62727         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62728         prevent type checking.
62729         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62730         cast the value to (void *): assigning a `foo *' to a `void *'
62731         variable is valid.
62732         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62733
62734 2000-11-16  Jim Meyering  <meyering@lucent.com>
62735
62736         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62737
62738 2000-11-11  Jim Meyering  <meyering@lucent.com>
62739
62740         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62741
62742 2000-11-10  Jim Meyering  <meyering@lucent.com>
62743
62744         * lib/obstack.h: Update from GNU libc.
62745         * lib/obstack.c: Likewise.
62746
62747 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62748
62749         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62750
62751 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62752
62753         * lib/getusershell.c (setusershell): Use rewind rather than
62754         fseek/fseeko, to avoid configuration hassles with fseeko.
62755         Don't bother opening SHELLS_FILE if shellstream is NULL;
62756         it's not necessary.
62757
62758 2000-11-05  Jim Meyering  <meyering@lucent.com>
62759
62760         * lib/makepath.h (make_dir): Declare.
62761         * lib/makepath.c (make_dir): Remove `static' attribute.
62762         Tweak a comment.
62763
62764 2000-11-04  Jim Meyering  <meyering@lucent.com>
62765
62766         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62767
62768 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62769
62770         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62771         last one in a bucket, advance to the next bucket.
62772
62773 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62774
62775         * lib/fnmatch.c: Do not comment out all the code if we are using
62776         the GNU C library, because in some cases we are replacing buggy
62777         code in the GNU C library itself.
62778
62779 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62780
62781         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62782         (regex_compile): Catch bogus \(\1\).
62783
62784 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62785
62786         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62787         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62788         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62789
62790 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62791
62792         * lib/error.h, getline.h, modechange.h:
62793         Remove "2000" from Copyright line, as the file hasn't been
62794         changed this year other than in the copyright notice.
62795
62796         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62797         was changed this year.
62798
62799 2000-10-29  Jim Meyering  <meyering@lucent.com>
62800
62801         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62802         renaming.
62803         * m4/ls-mntd-fs.m4: Likewise
62804
62805 2000-10-29  Jim Meyering  <meyering@lucent.com>
62806
62807         * lib/xstat.in: Fix grammar in comment.
62808
62809 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62810
62811         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62812         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62813         doesn't define __restrict_arr.
62814
62815 2000-10-28  Jim Meyering  <meyering@lucent.com>
62816
62817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62818         (jm_PREREQ_MEMCHR): New function.
62819
62820 2000-10-28  Jim Meyering  <meyering@lucent.com>
62821
62822         * lib/memchr.c: Update from libc.
62823         Adjust for portability:
62824         [HAVE_STDLIB_H]: Include stdlib.h.
62825         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62826         Undef __memchr, too.
62827         [!weak_alias]: Define __memchr to memchr.
62828
62829         * lib/regex.c: Update from libc.
62830         * lib/regex.h: Likewise.
62831         * lib/getopt1.c: Likewise.
62832         * lib/memcmp.c: Likewise.
62833
62834         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62835         Avoid using fseek, when possible -- it's broken by design.
62836         Patch by Ulrich Drepper.
62837
62838 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62839
62840         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62841         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62842         Giving in to popular pressure to shut up the compiler with casts.
62843
62844 2000-10-26  Jim Meyering  <meyering@lucent.com>
62845
62846         * lib/strftime.c: Update from libc.
62847
62848 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62849
62850         * regex.c: More `unsigned char' -> `re_char' changes.
62851         Also change several `int' into `re_wchar_t'.
62852         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62853         (PUSH_FAILURE_POINTER): Don't cast any more.
62854         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62855         We want GCC to complain, since this piece of code makes
62856         re_match non-reentrant, which *should* be fixed.
62857         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62858         (EXTEND_BUFFER): Use RETALLOC.
62859         (SET_LIST_BIT): Don't cast.
62860         (re_wchar_t): New type.
62861         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62862         that those two functions will always properly return.
62863         (IMMEDIATE_QUIT_CHECK): Cast to void.
62864         (analyse_first): Use recursion rather than an explicit stack.
62865         (re_compile_fastmap): Can't fail anymore.
62866         (re_search_2): Don't check re_compile_fastmap for failure.
62867         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62868         Now also sets the new value (passed in a new argument).
62869         (re_match_2_internal): Use it.
62870         Also, use a new var `reg' of type size_t when looping through regs
62871         rather than reuse the inappropriate `mcnt'.
62872
62873 2000-10-25  Jim Meyering  <meyering@lucent.com>
62874
62875         * lib/obstack.c: Update from libc.
62876
62877 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62878
62879         * regex.c (regex_compile): Change the way of handling a range from
62880         a char less than 256 to a char not less than 256.
62881
62882 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62883
62884         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62885         NT-Emacs only.
62886         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62887         so that re_search functions only quit when callers expect them to.
62888
62889 2000-10-23  Jim Meyering  <meyering@lucent.com>
62890
62891         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62892         wrong.  That set_locale call must not have any side effects.
62893         From Paul Eggert.
62894
62895 2000-10-22  Jim Meyering  <meyering@lucent.com>
62896
62897         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62898         [CYCLIC]: Remove now-unused definition.
62899
62900         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62901         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62902         Suggestion from Ulrich Drepper.
62903
62904 2000-10-21  Jim Meyering  <meyering@lucent.com>
62905
62906         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62907         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62909
62910 2000-10-21  Jim Meyering  <meyering@lucent.com>
62911
62912         * lib/dirname.c (memrchr): Declare if necessary.
62913         (dir_name): Remove the restriction that there be no
62914         trailing slashes.  Now, this code skips past them, effectively
62915         ignoring them.
62916         [TEST_DIRNAME] (main): New unit tests.
62917
62918         * lib/memrchr.c: New file from GNU libc.
62919         Undef __memrchr, too.
62920         [!weak_alias]: Define __memrchr to memrchr.
62921         Guard weak_alias use with `#ifdef weak_alias'.
62922
62923 2000-10-21  Jim Meyering  <meyering@lucent.com>
62924
62925         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62926         (dir_name): Use dir_name_r.
62927         * lib/dirname.h (dir_name_r): Declare it.
62928
62929 2000-10-17  Jim Meyering  <meyering@lucent.com>
62930
62931         * lib/quote.h (PARAMS): Define and use.
62932         Reported by Akim Demaille.
62933
62934         * lib/getopt.c: Update from libc.
62935
62936 2000-10-16  Jim Meyering  <meyering@lucent.com>
62937
62938         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62939         setlocale.
62940         From Jan Fedak.
62941
62942 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62943
62944         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62945
62946 2000-09-25  Jim Meyering  <meyering@lucent.com>
62947
62948         * lib/md5.h (rol): Define (from GnuPG).
62949
62950         * lib/sha.c: Give credit (GnuPG) where due.
62951         (M): Use rol rather than open-coding it.
62952         Add a FIXME comment.
62953
62954 2000-09-21  Jim Meyering  <meyering@lucent.com>
62955
62956         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62957         Reported by Michael Stone.
62958
62959 2000-09-20  Jim Meyering  <meyering@lucent.com>
62960
62961         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62962         (noinst_HEADERS): Add sha.h.
62963         Based on code from Scott G. Miller and from GnuPG.
62964
62965 2000-09-18  Jim Meyering  <meyering@lucent.com>
62966
62967         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62968         LIBS. Otherwise, everyone ends up linking with -lelf for some
62969         configurations.
62970         Reported by Mike Stone.
62971
62972 2000-09-15  Jim Meyering  <meyering@lucent.com>
62973
62974         * lib/regex.c: Update from libc.
62975
62976 2000-09-10  Jim Meyering  <meyering@lucent.com>
62977
62978         * lib/getopt.c (_getopt_internal): Update from glibc.
62979
62980 2000-09-09  Jim Meyering  <meyering@lucent.com>
62981
62982         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62983         think it should be used as a general replacement for isascii.
62984         * lib/fnmatch.c: Likewise.
62985         * lib/mbswidth.c: Likewise
62986         * lib/regex.c: Likewise.
62987
62988         Don't use atoi.
62989         * lib/userspec.c: Include sys/param.h and limits.h.
62990         Include xstrtol.h.
62991         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62992         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62993         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62994         UID, GID.  Check range.
62995
62996 2000-09-06  Jim Meyering  <meyering@lucent.com>
62997
62998         * lib/getopt.c (_getopt_internal): Update from glibc.
62999
63000 2000-08-30  Jim Meyering  <meyering@lucent.com>
63001
63002         * lib/strftime.c: Merge in changes from GNU libc.
63003
63004 2000-08-26  Jim Meyering  <meyering@lucent.com>
63005
63006         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63007         * m4/fpending.m4: New file.
63008
63009 2000-08-26  Jim Meyering  <meyering@lucent.com>
63010
63011         * lib/closeout.c: Include "__fpending.h".
63012         (close_stdout_status): Return right away if there's nothing to flush.
63013
63014         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63015         * lib/__fpending.c: New file.
63016         * lib/__fpending.h: New file.
63017
63018 2000-08-20  Jim Meyering  <meyering@lucent.com>
63019
63020         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63021         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63022         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63023
63024 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63025
63026         Improve fileutils installation on systems where running
63027         programs (like install) can't be unlinked.
63028         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63029         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63030
63031 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63032
63033         Standardize on "memory exhausted" instead of "Memory exhausted"
63034         or "virtual memory exhausted".
63035         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63036         "virtual memory exhausted".
63037         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63038         our own message.
63039         * lib/userspec.c (parse_user_spec): Likewise.
63040         * lib/bumpalloc.h: comment fix
63041         * lib/same.c, userspec.c: Include xalloc.h.
63042
63043         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63044         not char *const and pointing to a constant array.
63045         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63046         (xrealloc): Comment fix.
63047
63048         * lib/userspec.c (parse_user_spec):
63049         Don't translate a message until just before returning,
63050         to avoid unnecessary translation.
63051
63052 2000-08-07  Jim Meyering  <meyering@lucent.com>
63053
63054         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63055         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63056         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63057         getgroups.c, gethostname.c, getopt.h, group-member.c,
63058         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63059         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63060         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63061         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63062         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63063         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63064         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63065         yesno.c: Back out Copyright date changes for each file with no change
63066         this year.  This eases coordination with other programs using the same
63067         source code modules.  From Paul Eggert.
63068
63069 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63070
63071         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63072         not char, for compatibility with glibc 2.1.3 strftime.c.
63073
63074 2000-08-03  Greg McGary  <greg@mcgary.org>
63075
63076         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63077         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63078         (EXTEND_BUFFER): Use them.
63079
63080 2000-08-01  Jim Meyering  <meyering@lucent.com>
63081
63082         * lib/dirname.c (ISSLASH): Define.
63083         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63084         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63085         both `\' and `/' may be use as path separators.
63086         Based on a patch from Prashant TR.
63087
63088 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63089
63090         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63091         slot vector a constant, since it might get modified.
63092
63093 2000-07-31  Jim Meyering  <meyering@lucent.com>
63094
63095         * lib/xmalloc.c: Use `virtual memory exhausted', not
63096         `Memory exhausted'.
63097         * lib/obstack.c (print_and_abort): Likewise.
63098
63099 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63100
63101         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63102         buffer, so that the caller can always quote one small
63103         component of a "memory exhausted" message in slot 0.
63104         From a suggestion by Jim Meyering.
63105
63106 2000-07-30  Jim Meyering  <meyering@lucent.com>
63107
63108         * lib/makepath.c (make_path): Quote the other instance, too.
63109
63110         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63111         (STATIC_BUF_SIZE): Define.
63112         (quotearg_n_options): Use only statically allocated storage when
63113         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63114         than STATIC_BUF_SIZE.
63115
63116 2000-07-29  Jim Meyering  <meyering@lucent.com>
63117
63118         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63119         * lib/dirname.c (dir_name): Likewise.
63120
63121         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63122         `/'.
63123
63124         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63125         (dir_name): Assert that there are no trailing slashes.
63126
63127 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63128
63129         * lib/mbswidth.h (mbswidth): Add a flags argument.
63130         (mbswidth): New declaration.
63131         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63132         * lib/mbswidth.c (mbswidth): Add a flags argument.
63133         (mbsnwidth): New function.
63134
63135 2000-07-24  Jim Meyering  <meyering@lucent.com>
63136
63137         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63138
63139 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63140
63141         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63142
63143 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63144
63145         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63146         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63147         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63148         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63149         invoke multibyte primitives.
63150
63151 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63152
63153         * lib/quotearg.c:
63154         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63155         so that mbstate_t is always defined.
63156
63157         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63158         be 1 in at least one GCC installation, and this configuration
63159         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63160         performance on hosts that have mbrtowc but have only unibyte
63161         locales, but I assume these hosts are rare.
63162
63163 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63164
63165         * lib/mbswidth.c (_XOPEN_SOURCE):
63166         Don't define; this causes problems on Solaris 7.
63167         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63168
63169 2000-07-23  Jim Meyering  <meyering@lucent.com>
63170
63171         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63172         too: getgrgid, getpwuid, getuid.
63173
63174 2000-07-23  Jim Meyering  <meyering@lucent.com>
63175
63176         * lib/basename.c (base_name): Add an assertion.
63177
63178 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63179
63180         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63181         shadow its mbsinit function.
63182
63183 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63184
63185         * lib/mbswidth.h: New file.
63186         * lib/mbswidth.c: New file.
63187         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63188         (noinst_HEADERS): Add mbswidth.h.
63189
63190 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63191
63192         * lib/config.charset: Add support for FreeBSD. Improve support for
63193         HP-UX and IRIX 6.
63194
63195 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63196
63197         * m4/mbswidth.m4: New file.
63198         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63199
63200 2000-07-15  Jim Meyering  <meyering@lucent.com>
63201
63202         * lib/makepath.c: Include quote.h.
63203         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63204         corresponding argument in a `quote (...)' call.
63205         Give better diagnostics.
63206
63207         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63208         (noinst_HEADERS): Add quote.h.
63209
63210         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63211         from tar's src/misc.c.
63212         * lib/quote.h: New file.  Prototypes for same.
63213
63214 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63215
63216         From a suggestion by Bruno Haible.
63217         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63218         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63219         to decide whether to define the BeOS workaround macro;
63220         this adjusts to the change to AC_MBSTATE_T.
63221
63222 2000-07-14  Jim Meyering  <meyering@lucent.com>
63223
63224         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63225         jm_AC_TYPE_UINTMAX_T.
63226
63227 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63228
63229         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63230
63231         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63232         quotearg_buffer_restyled): Add support for
63233         clocale_quoting_style.  Undo previous change to
63234         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63235         and "{RIGHT QUOTATION MARK}" msgids.
63236
63237 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63238
63239         From a suggestion by Bruno Haible.
63240         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63241         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63242         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63243         and mbstate_t, to a single-part test that simply defines mbstate_t.
63244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63245         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63246
63247 2000-07-10  Jim Meyering  <meyering@lucent.com>
63248
63249         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63250
63251         * m4/gnu-source.m4: Output to confdefs.h directly.
63252         Suggestion from Akim Demaille.
63253
63254 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63255
63256         The old behavior of quoting `like this' doesn't look good with
63257         newer, ISO-style fonts.  See:
63258         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63259
63260         Instead, quote "like this" by default.  Let the translator
63261         tailor the locale-specific quoting behavior by providing
63262         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63263
63264         * lib/quotearg.c (N_): New macro.
63265         (gettext_default): New function.
63266         (quotearg_buffer_restyled): Use
63267         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63268         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63269
63270 2000-07-09  Jim Meyering  <meyering@lucent.com>
63271
63272         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63273         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63274
63275         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63277
63278 2000-07-09  Jim Meyering  <meyering@lucent.com>
63279
63280         * lib/Most files: Update copyright dates to include 2000.
63281
63282 2000-07-08  Jim Meyering  <meyering@lucent.com>
63283
63284         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63285         if not defined.
63286         (xgethostname): Remove now-unnecessary #ifdef.
63287         Move declaration of `err' into loop where it's used.
63288
63289 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63290         and Bruno Haible  <haible@clisp.cons.org>
63291
63292         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63293         only if the test for an object-type mbstate_t fails.  This
63294         prevents us from mistakenly reporting that mbstate_t is a
63295         system object type after we "#define mbstate_t int" to work
63296         around its lack.
63297
63298 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63299         and Bruno Haible  <haible@clisp.cons.org>
63300
63301         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63302
63303 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63304
63305         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63306         to strerror_r.
63307         Include <ctype.h> for use of isalpha.
63308
63309 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63310
63311         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63312         by allocating a larger buffer. Test the gethostname return value for
63313         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63314         returns an error and ENAMETOOLONG isn't defined.
63315
63316 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63317
63318         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63319         dimension.
63320
63321 2000-07-04  Jim Meyering  <meyering@lucent.com>
63322
63323         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63324         of the deprecated AC_CHECKING.
63325
63326 2000-07-04  Jim Meyering  <meyering@lucent.com>
63327
63328         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63329         Reported by Bruno Haible.
63330
63331 2000-07-04  Jim Meyering  <meyering@lucent.com>
63332
63333         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63334         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63335         lacks mbrtowc.
63336
63337 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63338
63339         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63340         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63341
63342 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63343         and Bruno Haible  <haible@clisp.cons.org>
63344
63345         * lib/quotearg.c (mbrtowc):
63346         Assign to *pwc, and return 1 only if result is nonzero.
63347         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63348
63349 2000-07-03  Jim Meyering  <meyering@lucent.com>
63350
63351         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63352
63353 2000-07-03  Jim Meyering  <meyering@lucent.com>
63354
63355         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63356         This is necessary to get a definition of e.g., UTMP_FILE on
63357         HP-UX 10.20.
63358         From Bob Proulx.
63359
63360 2000-07-02  Jim Meyering  <meyering@lucent.com>
63361
63362         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63363
63364         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63365         AC_LIBOBJ(function_name).
63366         * m4/chown.m4: Likewise.
63367         * m4/fnmatch.m4: Likewise.
63368         * m4/ftruncate.m4: Likewise.
63369         * m4/getgroups.m4: Likewise.
63370         * m4/getline.m4: Likewise.
63371         * m4/group-member.m4: Likewise.
63372         * m4/jm-macros.m4: Likewise.
63373         * m4/lstat.m4: Likewise.
63374         * m4/malloc.m4: Likewise.
63375         * m4/memcmp.m4: Likewise.
63376         * m4/nanosleep.m4: Likewise.
63377         * m4/putenv.m4: Likewise.
63378         * m4/realloc.m4: Likewise.
63379         * m4/regex.m4: Likewise.
63380         * m4/stat.m4: Likewise.
63381         * m4/strftime.m4: Likewise.
63382
63383 2000-07-02  Jim Meyering  <meyering@lucent.com>
63384
63385         * lib/quotearg.c (mbstate_t): Don't define here.
63386
63387 2000-07-02  Jim Meyering  <meyering@lucent.com>
63388
63389         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63390
63391 2000-07-01  Jim Meyering  <meyering@lucent.com>
63392
63393         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63394
63395 2000-07-01  Jim Meyering  <meyering@lucent.com>
63396
63397         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63398         problem.
63399
63400 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63401
63402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63403         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63404
63405 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63406
63407         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63408         per change in ../m4/ls-mntd-fs.m4.
63409         (read_filesystem_list): Ignore symbolic links.
63410
63411 2000-06-29  Jim Meyering  <meyering@lucent.com>
63412
63413         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63414         for declaration of strcmp.
63415
63416         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63417
63418         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63419         Avoid warning by casting result to `char *' to remove `const'.
63420
63421 2000-06-28  Jim Meyering  <meyering@lucent.com>
63422
63423         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63424         included by quotearg.c, for which we perform this test.  From
63425         Bruno Haible.
63426
63427 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63428
63429         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63430         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63431         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63432
63433 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63434
63435         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63436
63437 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63438
63439         savedir now sets errno on failure and invokes xmalloc to get memory.
63440         Fix a couple of other minor bugs while we're at it.
63441
63442         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63443         (NAMLEN): Remove macro.
63444         (malloc, realloc): Remove decls.
63445         (stpcpy): Likewise.
63446         ("xalloc.h"): Include.
63447         (NAME_SIZE_DEFAULT): New macro.
63448         (savedir): Use xmalloc / xrealloc to allocate memory.
63449         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63450         Skip "" directory entries.
63451         Use strlen to calculate directory entry length, since the old method
63452         is rarely used these days and isn't worth supporting.
63453         Don't use a pointer after freeing it.
63454         Check for integer overflow when calculating allocation size.
63455         Use memcpy to copy entries, instead of stpcpy.
63456         Set errno properly when returning NULL.
63457         Check for readdir error.
63458
63459 2000-06-26  Jim Meyering  <meyering@lucent.com>
63460
63461         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63462
63463 2000-06-25  Jim Meyering  <meyering@lucent.com>
63464
63465         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63466         Linux header bug when _XOPEN_SOURCE is defined to 500.
63467
63468 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63469
63470         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63471         deficiency.
63472
63473 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63474
63475         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63476         Include xalloc.h.
63477         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63478
63479 2000-06-24  Jim Meyering  <meyering@lucent.com>
63480
63481         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63482         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63483         for which strerror does return char*, but which lacks a conveniently
63484         accessible declaration of the function.  If the compile-test says
63485         strerror_r doesn't work, then resort to a `run'-test that works on
63486         BeOS and segfaults on DEC Unix.
63487
63488 2000-06-24  Jim Meyering  <meyering@lucent.com>
63489
63490         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63491
63492 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63493
63494         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63495         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63496
63497 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63498
63499         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63500         (mbrtowc, mbstate_t): Define substitutes if
63501         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63502         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63503         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63504
63505 2000-06-23  Jim Meyering  <meyering@lucent.com>
63506
63507         * m4/afs.m4: Add missing AC_MSG_RESULT.
63508         Reported by Bruno Haible.
63509
63510         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63511         Suggestion from Bruno Haible.
63512
63513 2000-06-23  Jim Meyering  <meyering@lucent.com>
63514
63515         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63516
63517 2000-06-21  Jim Meyering  <meyering@lucent.com>
63518
63519         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63520
63521 2000-06-21  Jim Meyering  <meyering@lucent.com>
63522
63523         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63524         (noinst_HEADERS): Add getstr.h.
63525
63526         * lib/getline.c (getstr): Move into a separate file.
63527         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63528         the following changes: new parameter, delim2; both delim[12]
63529         parameters have type `int', not `char'.  The latter would lose
63530         with 8-bit delimiters.
63531         * lib/getstr.h: New file.
63532
63533 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63534
63535         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63536         than 1024, return a memory chunk of least possible size, instead
63537         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63538         Use free/xmalloc instead of xrealloc to avoid copying for very long
63539         paths.
63540
63541 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63542
63543         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63544         the empty string.
63545
63546 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63547
63548         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63549         address, not strdup.  Include <stdlib.h> and don't declare free().
63550
63551 2000-06-19  Jim Meyering  <meyering@lucent.com>
63552
63553         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63554
63555 2000-06-18  Jim Meyering  <meyering@lucent.com>
63556
63557         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63558
63559         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63560         `checking whether...' message to be consistent with that of the
63561         lstat test.
63562
63563 2000-06-18  Jim Meyering  <meyering@lucent.com>
63564
63565         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63566         Besides, these days every porting target provides a mkdir function.
63567
63568         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63569         needed. (this snippet comes from src/system.h).
63570
63571 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63572
63573         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63574
63575 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63576
63577         * lib/human.c (adjust_value): New function.
63578         (human_readable_inexact): Apply rounding style even when
63579         printing approximate values.
63580
63581 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63582
63583         * lib/human.c (human_readable_inexact): Allow an input block
63584         size that is not a multiple of the output block size, and vice versa.
63585         Reported by Piergiorgio Sartor.
63586
63587 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63588
63589         * lib/getdate.y (get_date): Apply relative times after time
63590         zone indicator, not before.  Reported by Todd A. Jacobs.
63591
63592 2000-06-13  Jim Meyering  <meyering@lucent.com>
63593
63594         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63595
63596         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63597
63598 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63599
63600         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63601
63602 2000-06-12  Jim Meyering  <meyering@lucent.com>
63603
63604         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63605         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63606         optional argument.
63607         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63608         the optional argument, `lib'.
63609
63610 2000-06-08  Jim Meyering  <meyering@lucent.com>
63611
63612         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63613
63614 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63615
63616         Rewrite largefile configuration so that we don't need to run
63617         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63618         AC_CANONICAL_HOST in configure.in -- jmm]
63619
63620         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63621         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63622         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63623         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63624         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63625         All uses changed.
63626         Instead of inspecting the output of getconf, try to compile the
63627         test program without and with the macro definition.
63628         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63629         for getconf.  Instead, check for the needed flags by compiling
63630         test programs.
63631
63632 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63633
63634         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63635
63636 2000-06-04  Jim Meyering  <meyering@lucent.com>
63637
63638         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63639         SunOS 4.1.4 for which gid_t is an unsigned type.
63640
63641 2000-06-03  Jim Meyering  <meyering@lucent.com>
63642
63643         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63644         now that autoconf requires that.
63645
63646         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63647         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63648         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63649
63650 2000-06-03  Jim Meyering  <meyering@lucent.com>
63651
63652         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63653
63654 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63655
63656         * m4/glibc21.m4: New file.
63657         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63658
63659 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63660
63661         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63662         newer, don't install charset.alias.
63663         * lib/config.charset: Change the Linux/glibc rules so they become empty
63664         on glibc-2.1 or newer.
63665
63666 2000-06-02  Jim Meyering  <meyering@lucent.com>
63667
63668         * lib/mountlist.c: Back out last change.  Instead, do this...
63669         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63670         me_dummy member using the same `ignore'-testing code.
63671         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63672         fs_type strings.
63673         From Mark D. Roth.
63674
63675 2000-05-29  Jim Meyering  <meyering@lucent.com>
63676
63677         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63678         mounts with the `ignore' attribute.  Based on a patch from
63679         Mark D. Roth.
63680
63681 2000-05-28  Jim Meyering  <meyering@lucent.com>
63682
63683         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63684         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63685         * m4/stat.m4: Likewise.
63686         * m4/lstat.m4: Likewise.
63687         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63688
63689         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63690         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63691
63692 2000-05-26  Jim Meyering  <meyering@lucent.com>
63693
63694         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63695
63696 2000-05-24  Jim Meyering  <meyering@lucent.com>
63697
63698         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63699         autoconf requires that.
63700         * m4/lib-check.m4: Likewise.
63701         * m4/jm-macros.m4: Likewise.
63702         * m4/strftime.m4: Likewise.
63703
63704         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63705         AC_CHECK_DECLS, now that autoconf requires that.
63706
63707 2000-05-22  Jim Meyering  <meyering@lucent.com>
63708
63709         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63710         * m4/lstat.m4: Likewise.
63711
63712 2000-05-22  Jim Meyering  <meyering@lucent.com>
63713
63714         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63715
63716 2000-05-20  Jim Meyering  <meyering@lucent.com>
63717
63718         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63719         (jm_PREREQ): Use it.
63720
63721 2000-05-18  Jim Meyering  <meyering@lucent.com>
63722
63723         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63724         back, too, since it may have been modified by allocate_entry.
63725         (hash_delete): Rewrite to use neither the assignment operator
63726         nor the comma operator in an if-expression.
63727
63728 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63729
63730         * lib/closeout.c:
63731         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63732         Remove; no longer needed.
63733         "quotearg.h": Add include.
63734         (file_name): Do not bother to explicitly initialize to NULL; it's less
63735         efficient on some hosts.
63736         (close_stdout_status): Remove test as to whether stdout was already
63737         closed; it breaks for the case "echo x | sort >&-".
63738         Quote file name colons.
63739         Do not assume that _("write error") lacks format strings.
63740
63741 2000-05-15  Jim Meyering  <meyering@lucent.com>
63742
63743         * lib/version-etc.c (version_etc_copyright): Update the copyright
63744         string used in all --version output.
63745
63746 2000-05-14  Jim Meyering  <meyering@lucent.com>
63747
63748         * lib/closeout.c (close_stdout_set_file_name): New function.
63749         (close_stdout_status): Use new file-scoped global.
63750         Return right away if fstat says the stdout file descriptor is invalid.
63751         * lib/closeout.h (close_stdout_set_file_name): Declare.
63752
63753 2000-05-10  Jim Meyering  <meyering@lucent.com>
63754
63755         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63756         (close_stdout_set_status): New function.
63757         * lib/closeout.h (close_stdout_set_status): Declare.
63758
63759 2000-05-09  Jim Meyering  <meyering@lucent.com>
63760
63761         * m4/gettext.m4: Rename this...
63762         * m4/libintl.m4: ...to this.
63763
63764 2000-05-08  Jim Meyering  <meyering@lucent.com>
63765
63766         * lib/long-options.c: Don't include closeout.h.
63767         (parse_long_options): Don't call close_stdout for --version.
63768
63769 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63770
63771         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63772         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63773         2.1.3 bug.  This avoids a clash when files like regex.c define
63774         _GNU_SOURCE.
63775
63776 2000-05-06  Jim Meyering  <meyering@lucent.com>
63777
63778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63779         (AC_REPLACE_FUNCS): Add strnlen.
63780
63781         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63782         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63783
63784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63785         AC_SEARCH_LIBS call for nanosleep.
63786         (LIB_NANOSLEEP): Set and AC_SUBST.
63787
63788 2000-05-06  Jim Meyering  <meyering@lucent.com>
63789
63790         * lib/strnlen.c: Undefine __strnlen and strnlen.
63791         [!weak_alias]: Define __strnlen to strnlen.
63792
63793         * lib/atexit.c: New file, from libiberty.
63794
63795 2000-05-06  Jim Meyering  <meyering@lucent.com>
63796
63797         * lib/closeout.c (close_stdout_status): Also check for errors on the
63798         stderr stream.
63799
63800 2000-05-05  Jim Meyering  <meyering@lucent.com>
63801
63802         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63803         AC_SEARCH_LIBS call for clock_gettime.
63804         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63805
63806         * m4/search-libs.m4: Update from autoconf.
63807
63808         su doesn't work on Solaris 2.6.
63809         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63810         <shadow.h>.  Reported by Dragos Harabor.
63811
63812 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63813
63814         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63815         memcpy instead of xmalloc, xrealloc, path_concat.
63816         (locale_charset): Treat empty environment variables as absent.
63817         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63818
63819 2000-05-04  Jim Meyering  <meyering@lucent.com>
63820
63821         * lib/getopt.c: Update from glibc.
63822         * lib/obstack.c: Likewise.
63823         * lib/obstack.h: Likewise.
63824         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63825         file
63826
63827         * lib/regex.h: Likewise.
63828         * lib/strndup.c: Likewise.
63829         * lib/strnlen.c: New file, from glibc.
63830
63831 2000-05-03  Jim Meyering  <meyering@lucent.com>
63832
63833         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63834
63835 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63836
63837         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63838         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63839         compile-time test, rather than inspecting host and OS, to
63840         decide whether to define _LARGEFILE_SOURCE.
63841
63842 2000-05-01  Jim Meyering  <meyering@lucent.com>
63843
63844         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63845
63846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63847         Based on a patch from Bruno Haible.
63848
63849 2000-05-01  Jim Meyering  <meyering@lucent.com>
63850
63851         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63852
63853 2000-04-29  Jim Meyering  <meyering@lucent.com>
63854
63855         * lib/path-concat.c: Declare strdup only if it's not defined.
63856         * lib/canon-host.c: Likewise.
63857
63858 2000-04-28  Jim Meyering  <meyering@lucent.com>
63859
63860         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63861         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63862         is included first, then limits.h is included by locale.h by libintl.h.
63863         From John David Anglin.
63864
63865 2000-04-25  Jim Meyering  <meyering@lucent.com>
63866
63867         * lib/makepath.c (S_IRWXUGO): Define.
63868         (make_path): Always perform explicit chmod if MODE specifies any
63869         of the `special' permission bits.  Prompted by a bug report against
63870         install from Mate Wierdl and Joost van Baal.
63871
63872 2000-04-18  Jim Meyering  <meyering@lucent.com>
63873
63874         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63875         (jm_PREREQ): Use it.
63876
63877 2000-04-18  Jim Meyering  <meyering@lucent.com>
63878
63879         * lib/README: New file.
63880
63881         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63882         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63883
63884 2000-04-17  Jim Meyering  <meyering@lucent.com>
63885
63886         Get it right :-)
63887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63888         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63889         Suggestion from Akim Demaille.
63890
63891 2000-04-17  Jim Meyering  <meyering@lucent.com>
63892
63893         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63894         the definition of it to rpl_strftime also defined-away the system's
63895         declaration.
63896
63897 2000-04-15  Jim Meyering  <meyering@lucent.com>
63898
63899         Use `C' to denote so-called `contiguous' files, the same way
63900         that tar does.
63901         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63902         (ftypelet): Use S_ISCTG.
63903         From Michael Deutschmann.
63904
63905 2000-04-14  Jim Meyering  <meyering@lucent.com>
63906
63907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63908         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63909         clobbered.
63910
63911 2000-04-14  Jim Meyering  <meyering@lucent.com>
63912
63913         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63914
63915 2000-04-13  Jim Meyering  <meyering@lucent.com>
63916
63917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63918         AH_VERBATIM to insert required #ifndef into config.h.in.
63919         Suggestion from Akim Demaille.
63920
63921 2000-04-12  Jim Meyering  <meyering@lucent.com>
63922
63923         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63924         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63925         Christian Krackowizer.
63926
63927         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63928         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63929         (AC_SYS_LARGEFILE): Require.
63930         (AM_C_PROTOTYPES): Require.
63931
63932 2000-04-08  Jim Meyering  <meyering@lucent.com>
63933
63934         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63935         names don't conflict.  Reported by Eli Zaretskii.
63936
63937 2000-04-07  Jim Meyering  <meyering@lucent.com>
63938
63939         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63940         sys/types.h, to work around system header problems on AIX 3.2.5.
63941         From Bruno Haible.
63942
63943 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63944
63945         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63946         bug.  Deal with the different error behavior of Irix iconv.
63947
63948 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63949
63950         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63951         IRIX if the installer said otherwise.
63952
63953 2000-04-05  Jim Meyering  <meyering@lucent.com>
63954
63955         Portability tweaks required for ultrix4.3.
63956         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63957         (jm_CHECK_DECLS): Add getutent to the list of functions.
63958         (_jm_DECL_HEADERS): Add utmpx.h.
63959         From John David Anglin.
63960
63961         * m4/strftime.m4: Back out the 2000-04-02 change.
63962         Instead of that change, simply undefine putenv in the test program.
63963
63964 2000-04-05  Jim Meyering  <meyering@lucent.com>
63965
63966         Portability tweaks required for ultrix4.3.
63967         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63968         getutent.
63969         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63970         * lib/canon-host.c: Declare strdup.
63971         * lib/path-concat.c: Likewise.
63972         From John David Anglin.
63973
63974 2000-04-04  Jim Meyering  <meyering@lucent.com>
63975
63976         Be more DOS 8.3-friendly.
63977         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63978         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63979         * lib/Makefile.am: Reflect renaming.
63980         Reported by Eli Zaretskii.
63981
63982         Use a temporary file name that won't clash with `charset.alias'
63983         in the DOS 8.3 name space.
63984         * lib/Makefile.am (charset_tmp): Define.
63985         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63986         (uninstall-local): Likewise.
63987         Reported by Eli Zaretskii.
63988
63989 2000-04-03  Jim Meyering  <meyering@lucent.com>
63990
63991         * m4/gettext.m4: Fix typo in comment.
63992
63993         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63994         textutils/configure.in).  Suggestion from Paul Eggert.
63995         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63996
63997 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63998
63999         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64000         variable in the shell rather than using putenv, which isn't
64001         portable.  This avoids the configure-time inter-test dependency
64002         on the potentially-renamed putenv function.
64003
64004 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64005
64006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64007         before checking struct stat.st_blksize, so that
64008         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64009
64010 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64011
64012         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64013         since strftime.c uses HAVE_STRFTIME to decide whether to use
64014         the underlying strftime.
64015
64016 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64017
64018         * lib/time/strftime.c (my_strftime): Make sure we call the system
64019         strftime, not ourselves, when invoking the underlying strftime.
64020
64021 2000-03-24  Jim Meyering  <meyering@lucent.com>
64022
64023         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64024         (charset_alias): Define.
64025         (install-exec-local): Factor out common code.
64026         (uninstall-local): Split lines longer than 80.
64027         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64028         (SUFFIXES): Define.
64029         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64030         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64031
64032 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64033
64034         * lib/config.charset: Output a line containing "Packages using this
64035         file".
64036         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64037         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64038         ref-del.sed): New rules.
64039
64040 2000-03-17  Jim Meyering  <meyering@lucent.com>
64041
64042         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64043         Otherwise, include <strings.h>
64044
64045 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64046
64047         * lib/unicodeio.c (utf8_wctomb): New function.
64048         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64049         format instead of in UCS-4 with platform dependent endianness.
64050
64051 2000-03-10  Jim Meyering  <meyering@lucent.com>
64052
64053         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64054         From Marco Franzen.
64055
64056 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64057
64058         * lib/savedir.c (savedir): Work even if directory size is
64059         negative; this can happen with some screwy NFS configurations.
64060
64061 2000-03-06  Jim Meyering  <meyering@lucent.com>
64062
64063         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64064         if it's NULL (because we ran out of memory).  From Bruno Haible.
64065
64066 2000-03-05  Jim Meyering  <meyering@lucent.com>
64067
64068         * lib/localcharset.c ("path-concat.h"): Include.
64069         (get_charset_aliases): Use path_concat instead of ANSI string
64070         concatenation.
64071
64072         * lib/unicodeio.h (PARAMS): Define.
64073         Use it to guard prototype.
64074
64075 2000-03-04  Jim Meyering  <meyering@lucent.com>
64076
64077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64078         for lib/localcharset.c.
64079
64080 2000-03-04  Jim Meyering  <meyering@lucent.com>
64081
64082         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64083         installing into it.
64084         (uninstall-local): Uncomment this rule so `make distcheck' works
64085         once again.
64086
64087         * lib/unicodeio.c (<errno.h>): Include it.
64088         (errno): Declare if not defined.
64089
64090         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64091
64092         * lib/config.charset: New version, incorporating remarks from a linux
64093         i18n mailing list.  From Bruno Haible.
64094
64095 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64096
64097         * m4/codeset.m4: New file.
64098         * m4/iconv.m4: New file.
64099         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64100
64101 2000-03-03  Jim Meyering  <meyering@lucent.com>
64102
64103         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64104
64105 2000-03-02  Jim Meyering  <meyering@lucent.com>
64106
64107         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64108         the messages come out on separate lines.
64109
64110         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64111         rather than jm_CHECK_DECLARATIONS.
64112         * m4/decl.m4: Remove now-unused file.
64113
64114         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64115         geteuid.
64116
64117 2000-03-02  Jim Meyering  <meyering@lucent.com>
64118
64119         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64120
64121 2000-03-01  Jim Meyering  <meyering@lucent.com>
64122
64123         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64124         * lib/unicodeio.c: Likewise.
64125
64126 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64127
64128         * lib/config.charset: New file.
64129         * lib/localcharset.c: New file.
64130         * lib/unicodeio.h, lib/unicodeio.c: New files.
64131         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64132         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64133         (noinst_HEADERS): Add unicodeio.h.
64134         (all-local, install-exec-local, charset.alias): New targets.
64135
64136 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64137
64138         * lib/quotearg.c (ALERT_CHAR): New macro.
64139         (quotearg_buffer_restyled): Use it.
64140
64141 2000-02-27  Jim Meyering  <meyering@lucent.com>
64142
64143         * m4/check-decl.m4: Add getenv to the list.
64144
64145 2000-02-27  Jim Meyering  <meyering@lucent.com>
64146
64147         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64148         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64149
64150         * lib/backupfile.c: Guard inclusion of stdlib.h with
64151         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64152         Declare malloc if needed.
64153
64154         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64155         `#ifndef HAVE_DECL..'
64156         now that autoconf always defines the HAVE_DECL_ symbols.
64157         * lib/human.c: Likewise.
64158         * lib/same.c: Likewise.
64159         * lib/strtoumax.c: Likewise.
64160
64161         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64162         declaration check was not run.
64163         * lib/hash.c: Likewise.
64164         * lib/human.c: Likewise.
64165         * lib/same.c: Likewise.
64166         * lib/strtoumax.c: Likewise.
64167
64168         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64169         `.', then first look up the entire `.'-containing string as a login
64170         name.
64171
64172 2000-02-23  Jim Meyering  <meyering@lucent.com>
64173
64174         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64175         in place of my hack.
64176
64177 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64178
64179         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64180         (textint): New typedef.
64181         (parser_control): Member year changed from int to textint.
64182         All uses changed.
64183         (YYSTYPE): Removed; replaced by %union with int and textint members.
64184         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64185         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64186         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64187         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64188         (date, number, to_year): Use width of number in digits, not its value,
64189         to determine whether it's a 2-digit year, or a 2-digit time.
64190         (yylex): Store number of digits of numeric tokens.
64191         Reported by John Kendall.
64192
64193         (parser_control): Changed from struct parser_control to typedef (for
64194         consistency).  All uses changed.
64195
64196         (tID): Removed; not used.
64197         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64198
64199 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64200
64201         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64202         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64203
64204 2000-02-12  Jim Meyering  <meyering@lucent.com>
64205
64206         * lib/userspec.c (ISDIGIT): Define it.
64207         (isdigit): Remove definition.
64208         (is_number): Use ISDIGIT, not isdigit.
64209         <libintl.h>: Include.
64210         (_ and N_): Define.
64211         (parse_user_spec): Mark translatable strings.
64212
64213 2000-02-10  Jim Meyering  <meyering@lucent.com>
64214
64215         With these changes, nanosleep.[ch] are finally enough like the other
64216         lib/* replacement files to compile on a few more losing systems.
64217
64218         * lib/nanosleep.h: Don't include config.h.
64219         Remove prototype from declaration of nanosleep.
64220         (PARAMS): Remove now-unneeded definition.
64221         * lib/nanosleep.c: #undef nanosleep.
64222         (rpl_nanosleep): Rename from nanosleep.
64223
64224 2000-02-10  Jim Meyering  <meyering@lucent.com>
64225
64226         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64227         gnu_nanosleep to rpl_nanosleep.
64228
64229 2000-02-09  Jim Meyering  <meyering@lucent.com>
64230
64231         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64232         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64233
64234 2000-02-08  Akim Demaille  <akim@epita.fr>
64235
64236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64237         `[' and `]' and remove uses of `changequote'.
64238         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64239         (AC_SYS_LARGEFILE): Likewise.
64240         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64241         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64242         of changequote.
64243         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64244         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64245         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64246         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64247
64248 2000-02-05  Jim Meyering  <meyering@lucent.com>
64249
64250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64251         Remove explicit use of AC_HEADER_TIME.  It is required by
64252         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64253         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64254         in autoconf whereby the expansion of the latter ended up preceding
64255         the expansion of its prerequisite, AC_HEADER_TIME.
64256         Reported by Volker Borchert.
64257
64258 2000-02-03  Jim Meyering  <meyering@lucent.com>
64259
64260         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64261
64262 2000-02-03  Jim Meyering  <meyering@lucent.com>
64263
64264         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64265         rather than with `#if HAVE_UTMPNAME'.
64266
64267 2000-02-02  Jim Meyering  <meyering@lucent.com>
64268
64269         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64270         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64271         Reported by Eli Zaretskii.
64272
64273 2000-02-01  Jim Meyering  <meyering@lucent.com>
64274
64275         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64276
64277 2000-01-31  Jim Meyering  <meyering@lucent.com>
64278
64279         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64280         functions.  Add the time.h and sys/time.h headers along with the
64281         AC_REQUIRE'ment of AC_HEADER_TIME.
64282
64283 2000-01-31  Jim Meyering  <meyering@lucent.com>
64284
64285         * lib/nanosleep.h (nanosleep): Guard declaration with
64286         `#if ! HAVE_DECL_NANOSLEEP'.
64287         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64288         the declaration in that vendor's sys/timers.h.
64289         Reported by Christian Krackowizer.
64290
64291         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64292         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64293         (ISPRINT): Likewise.
64294         Reported by Tom Tromey.
64295
64296 2000-01-30  Jim Meyering  <meyering@lucent.com>
64297
64298         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64299
64300         * m4/prereq.m4 (utmp_includes): Define.
64301         Check for ut_user and ut_name members in both struct utmpx
64302         and struct utmp.
64303
64304 2000-01-30  Jim Meyering  <meyering@lucent.com>
64305
64306         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64307         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64308         header files where only utmpx.ut_user is declared.
64309
64310         * lib/readutmp.h (UT_USER): Define.
64311
64312 2000-01-29  Jim Meyering  <meyering@lucent.com>
64313
64314         * m4/lib-check.m4: New file containing library-related checks from
64315         fileutils and sh-utils (textutils had none).
64316
64317 2000-01-28  Jim Meyering  <meyering@lucent.com>
64318
64319         * m4/perl.m4: Change format of warning message to look more like that
64320         from the missing script.  Suggestion from François Pinard.
64321
64322 2000-01-25  Jim Meyering  <meyering@lucent.com>
64323
64324         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64325         well as time.h in the compile check.
64326         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64327         Fix typo in cross-compiling case: s/yes/no/.
64328
64329 2000-01-23  Jim Meyering  <meyering@lucent.com>
64330
64331         * m4/jm-macros.m4: Move df-related tests here from
64332         fileutils/configure.in
64333
64334         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64335         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64336
64337         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64338         s/space/ac_fsusage_space/.
64339         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64340
64341         * m4/ftruncate.m4: New file (derived from part of
64342         fileutils/configure.in).
64343         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64344         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64345
64346         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64347         AC_SUBST these here, rather than just in sh-util/configure.in, so
64348         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64349         all the same.
64350         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64351         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64352         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64353         (AC_SUBST(POW_LIBM)): Likewise.
64354         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64355
64356 2000-01-23  Jim Meyering  <meyering@lucent.com>
64357
64358         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64359         obstack.c.
64360
64361 2000-01-22  Jim Meyering  <meyering@lucent.com>
64362
64363         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64364
64365         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64366
64367         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64368         configure.in
64369         (AC_CHECK_HEADERS): Likewise for sh-utils.
64370         (AC_CHECK_HEADERS): Likewise for textutils.
64371         Merge the three lists of headers.
64372
64373         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64374         from fileutils' configure.in.
64375
64376         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64377         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64378         check-decl.m4.
64379
64380         * m4/check-decl.m4: Use #if rather than #ifdef.
64381         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64382         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64383         (_jm_DECL_HEADERS): Define new function.
64384         (jm_CHECK_DECLARATIONS): Require it.
64385
64386 2000-01-22  Jim Meyering  <meyering@lucent.com>
64387
64388         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64389         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64390         Required for some AIX systems.  Reported by Christian Krackowizer.
64391         [TESTING] (main): New function.
64392
64393         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64394         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64395         letters.
64396
64397         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64398         iswprint.
64399
64400         * lib/strverscmp.c (ISDIGIT): Define.
64401         (strverscmp): Use ISDIGIT, not isdigit.
64402
64403 2000-01-19  Jim Meyering  <meyering@lucent.com>
64404
64405         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64406         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64407         defines `struct timespec' in <sys/time.h>
64408
64409         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64410         Thanks to Akim for explaining.
64411
64412 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64413
64414         * lib/nanosleep.c (nanosleep):
64415         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64416         POSIX.1 doesn't require SA_INTERRUPT and some systems
64417         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64418         it's been part of POSIX.1 since day 1 (in 1988).
64419
64420 2000-01-17  Jim Meyering  <meyering@lucent.com>
64421
64422         * lib/interlock: Remove unused file.  Reported by François Pinard.
64423
64424 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64425
64426         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64427         alert, backslash, formfeed, and vertical tab unnecessarily in
64428         shell quoting style.
64429
64430 2000-01-16  Jim Meyering  <meyering@lucent.com>
64431
64432         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64433         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64434         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64435         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64436
64437 2000-01-16  Jim Meyering  <meyering@lucent.com>
64438
64439         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64440         because the latter didn't work.
64441
64442 2000-01-15  Jim Meyering  <meyering@lucent.com>
64443
64444         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64445         (AC_REPLACE_FUNCS): Add memcpy and memset.
64446         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64447         Add strpbrk.
64448         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64449
64450 2000-01-12  Jim Meyering  <meyering@lucent.com>
64451
64452         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64453         (jm_PREREQ): Use it.
64454         (jm_PREREQ_READUTMP): New macro.
64455         (jm_PREREQ): Use it.
64456
64457 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64458
64459         Quote multibyte characters correctly.
64460         * m4/c-bs-a.m4: New file.
64461         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64462         (jm_PREREQ): Use it.
64463
64464 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64465
64466         * m4/uintmax_t.m4: Port to autoconf 2.13.
64467
64468 2000-01-08  Jim Meyering  <meyering@ascend.com>
64469
64470         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64471         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64472
64473 2000-01-04  Jim Meyering  <meyering@ascend.com>
64474
64475         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64476         jm_STRUCT_DIRENT_D_TYPE.
64477         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64478         jm_STRUCT_DIRENT_D_INO.
64479         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64480         jm_STRUCT_UTIMBUF.
64481         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64482         renamings.
64483         * m4/utime.m4: Likewise.
64484
64485         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64486         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64487
64488 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64489
64490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64491         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64492
64493 2000-01-02  Jim Meyering  <meyering@ascend.com>
64494
64495         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64496         remember if this is necessary.
64497
64498 1999-12-26  Jim Meyering  <meyering@ascend.com>
64499
64500         * m4/jm-macros.m4: Use it here.
64501         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64502
64503 1999-12-23  Jim Meyering  <meyering@ascend.com>
64504
64505         * m4/jm-macros.m4: Check for clock_gettime (moved from
64506         fileutils/configure.in)
64507         Check for gettimeofday.
64508
64509 1999-12-20  Jim Meyering  <meyering@ascend.com>
64510
64511         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64512         autoconf-2.14a-1999-12-20.
64513
64514 1999-12-19  Jim Meyering  <meyering@ascend.com>
64515
64516         * m4/lstat-slash.m4: New file.
64517         * m4/jm-macros.m4: Use the new macro:
64518         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64519
64520 1999-12-07  Jim Meyering  <meyering@ascend.com>
64521
64522         * m4/perl.m4: Require that File::Compare be available, too.
64523         Too many systems seem to lack it.
64524
64525         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64526         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64527
64528 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64529
64530         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64531         problem with the QNX 4.25 shell, which doesn't propagate exit
64532         status of failed commands inside shell assignments.
64533
64534 1999-11-17  Jim Meyering  <meyering@ascend.com>
64535
64536         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64537
64538 1999-11-07  Jim Meyering  <meyering@ascend.com>
64539
64540         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64541
64542 1999-11-06  Jim Meyering  <meyering@ascend.com>
64543
64544         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64545         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64546
64547 1999-11-05  Jim Meyering  <meyering@ascend.com>
64548
64549         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64550         configure.in of textutils, fileutils, and sh-utils into this one
64551         (shared between those packages) file.
64552         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64553         AC_STRUCT_ST_BLKSIZE.
64554
64555 1999-11-03  Jim Meyering  <meyering@ascend.com>
64556
64557         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64558         of AC_CHECK_TYPE checks includes unistd.h.
64559         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64560         Suggestion from Akim Demaille.
64561
64562 1999-10-30  Jim Meyering  <meyering@ascend.com>
64563
64564         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64565         m4-quoted string.
64566         * m4/ls-mntd-fs.m4: Likewise.
64567         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64568         * m4/jm-winsz1.m4: Likewise.
64569
64570         * m4/const.m4: Remove file, since the fix made it into the experimental
64571         version of autoconf.
64572         * m4/mktime.m4: Likewise.
64573
64574         * m4/check-type.m4: Remove file, now that the latest version of
64575         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64576
64577         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64578         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64579         AC_CHECK_TYPE.
64580
64581 1999-10-04  Jim Meyering  <meyering@ascend.com>
64582
64583         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64584
64585 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64586
64587         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64588         2.95.1 bug with HP-UX 10.20.
64589
64590 1999-09-17  Jim Meyering  <meyering@ascend.com>
64591
64592         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64593         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64594         due to missing strdup (against sh-utils-2.0).
64595
64596 1999-08-29  Jim Meyering  <meyering@ascend.com>
64597
64598         * m4/jm-macros.m4: Require jm_BISON.
64599         * m4/bison.m4: New file.
64600
64601 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64602
64603         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64604         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64605
64606 1999-08-05  Jim Meyering  <meyering@ascend.com>
64607
64608         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64609         to avoid conflicts with `conftest' on 8+3 filesystems.
64610         Suggestion from Eli Zaretskii.
64611
64612 1999-08-04  Jim Meyering  <meyering@ascend.com>
64613
64614         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64615         fileutils and sh-utils (textutils's getline test was inadequate).
64616         (AM_FUNC_GETLINE): Run this test.
64617         (AC_CHECK_FUNCS): Check for getdelim.
64618         Reported by Bob Proulx.
64619
64620 1999-08-02  Jim Meyering  <meyering@ascend.com>
64621
64622         * m4/jm-macros.m4: Add a comment.
64623
64624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64625
64626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64627         <inttypes.h> defines strtoumax as a macro (and not as a
64628         function).
64629
64630 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64631
64632         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64633         that we can shift, multiply and divide unsigned long long
64634         values; Ultrix cc can't do it.
64635
64636 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64637
64638         * m4/mktime.m4: New file, which is a preview of what should appear
64639         in the next public autoconf release.
64640
64641 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64642
64643         * m4/lfs.m4: Remove this file.
64644         * m4/largefile.m4: New file.  It contains the old contents of
64645         lfs.m4, except that all names with prefix AC_LFS have been
64646         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64647         compatible with future autoconf versions.  Also, some minor m4
64648         quoting problems have been fixed.
64649
64650 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64651
64652         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64653         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64654         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64655         and simplify the shell code.
64656
64657 1999-08-01  Jim Meyering  <meyering@ascend.com>
64658
64659         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64660         m4.
64661
64662 1999-07-20  Jim Meyering  <meyering@ascend.com>
64663
64664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64665
64666 1999-07-15  Jim Meyering  <meyering@ascend.com>
64667
64668         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64669
64670 1999-05-22  Jim Meyering  <meyering@ascend.com>
64671
64672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64673
64674 1999-05-20  Jim Meyering  <meyering@ascend.com>
64675
64676         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64677         Add a colon after each `then' in case $4 is empty.
64678
64679 1999-05-16  Jim Meyering  <meyering@ascend.com>
64680
64681         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64682
64683 1999-05-10  Jim Meyering  <meyering@ascend.com>
64684
64685         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64686
64687         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64688         AC_FUNC_MKTIME.
64689
64690 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64691
64692         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64693
64694 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64695
64696         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64697         not CPPFLAGS, so that linking works correctly in IRIX.
64698
64699 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64700
64701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64702
64703 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64704
64705         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64706         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64708         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64709         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64710
64711         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64712
64713 1999-04-20  Jim Meyering  <meyering@ascend.com>
64714
64715         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64716         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64717         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64718
64719 1999-04-18  Jim Meyering  <meyering@ascend.com>
64720
64721         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64722         * m4/jm-macros.m4: Use it.
64723
64724 1999-04-06  Jim Meyering  <meyering@ascend.com>
64725
64726         * m4/strftime.m4: Remove test for %f.
64727
64728 1999-03-29  Jim Meyering  <meyering@ascend.com>
64729
64730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64731         superset of the AC_TYPE_* checks in the textutils, fileutils,
64732         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64733         AC_TYPE_PID_T.
64734
64735 1999-03-28  Jim Meyering  <meyering@ascend.com>
64736
64737         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64738         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64739         replaced e.g., in the *.sh files of the sh-utils.
64740
64741 1999-03-20  Jim Meyering  <meyering@ascend.com>
64742
64743         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64744         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64745         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64746
64747 1999-03-19  Jim Meyering  <meyering@ascend.com>
64748
64749         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64750
64751 1999-03-12  Jim Meyering  <meyering@ascend.com>
64752
64753         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64754
64755 1999-03-07  Jim Meyering  <meyering@ascend.com>
64756
64757         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64758         declared.
64759
64760 1999-02-17  Jim Meyering  <meyering@ascend.com>
64761
64762         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64763         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64764
64765 1999-02-07  Jim Meyering  <meyering@ascend.com>
64766
64767         * m4/group-member.m4: New file -- extracted from sh-utils'
64768         configure.in.
64769
64770         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64771         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64772
64773 1999-02-06  Jim Meyering  <meyering@ascend.com>
64774
64775         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64776         * m4/fnmatch.m4: Likewise.
64777         * m4/getgroups.m4: Likewise.
64778         * m4/lstat.m4: Likewise.
64779         * m4/malloc.m4: Likewise.
64780         * m4/putenv.m4: Likewise.
64781         * m4/realloc.m4: Likewise.
64782         * m4/regex.m4: Likewise.
64783         * m4/stat.m4: Likewise.
64784         * m4/strftime.m4: Likewise.
64785         Suggestion from Alain Magloire.
64786
64787         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64788         * m4/fnmatch.m4: Likewise.
64789         * m4/getgroups.m4: Likewise.
64790         * m4/getline.m4: Likewise.
64791         * m4/lstat.m4: Likewise.
64792         * m4/malloc.m4: Likewise.
64793         * m4/memcmp.m4: Likewise.
64794         * m4/putenv.m4: Likewise.
64795         * m4/realloc.m4: Likewise.
64796         * m4/regex.m4: Likewise.
64797         * m4/stat.m4: Likewise.
64798         * m4/strftime.m4: Likewise.
64799         Suggestion from Alain Magloire.
64800
64801         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64802         an argument.
64803
64804         * m4/regex.m4: Add a run-time Test for proper operation of
64805         re_compile_pattern.
64806
64807 1999-01-31  Jim Meyering  <meyering@ascend.com>
64808
64809         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64810
64811 1999-01-30  Jim Meyering  <meyering@ascend.com>
64812
64813         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64814
64815         * m4/jm-mktime.m4: Make this a wrapper around the official
64816         AM_FUNC_MKTIME rather than my private copy, now that the official one
64817         is up to date.
64818         * m4/mktime.m4: Remove file.
64819
64820         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64821         * m4/uptime.m4: Likewise.
64822         * m4/uintmax_t.m4: Likewise.
64823
64824 1999-01-28  Jim Meyering  <meyering@ascend.com>
64825
64826         * m4/jm-macros.m4: Use jm_AFS.
64827         * m4/afs.m4: New file (from fileutils' configure.in).
64828
64829         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64830         * m4/chown.m4: Likewise.
64831         * m4/d-ino.m4: Likewise.
64832         * m4/d-type.m4: Likewise.
64833         * m4/fnmatch.m4: Likewise.
64834         * m4/getgroups.m4: Likewise.
64835         * m4/gettext.m4: Likewise.
64836         * m4/jm-mktime.m4: Likewise.
64837         * m4/jm-winsz2.m4: Likewise.
64838         * m4/lcmessage.m4: Likewise.
64839         * m4/ls-mntd-fs.m4: Likewise.
64840         * m4/malloc.m4: Likewise.
64841         * m4/memcmp.m4: Likewise.
64842         * m4/putenv.m4: Likewise.
64843         * m4/realloc.m4: Likewise.
64844         * m4/st_mtim.m4: Likewise.
64845         * m4/strftime.m4: Likewise.
64846
64847 1999-01-16  Jim Meyering  <meyering@ascend.com>
64848
64849         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64850         (ARGMATCH_DIE_DECL): Define.
64851
64852 1999-01-12  Jim Meyering  <meyering@ascend.com>
64853
64854         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64855         Reported by Lars Hecking.
64856
64857 1999-01-10  Jim Meyering  <meyering@ascend.com>
64858
64859         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64860         gross kludge.
64861         * m4/inttypes_h.m4: Likewise.
64862         * m4/lstat.m4: Likewise.
64863         * m4/malloc.m4: Likewise.
64864         * m4/readdir.m4: Likewise.
64865         * m4/realloc.m4: Likewise.
64866         * m4/st_dm_mode.m4: Likewise.
64867         * m4/stat.m4: Likewise.
64868         * m4/utimbuf.m4: Likewise.
64869         * m4/utimes.m4: Likewise.
64870
64871         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64872         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64873         comments in config.h.in are meaningful.
64874
64875         * m4/jm-macros.m4: Require autoconf-2.13 here.
64876
64877         * m4/regex.m4: By default, don't use the included regex.c on systems
64878         with glibc 2.  Suggestion from Uli Drepper.
64879
64880 1999-01-02  Jim Meyering  <meyering@ascend.com>
64881
64882         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64883
64884 1998-12-18  Jim Meyering  <meyering@ascend.com>
64885
64886         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64887         Based on a suggestion from Lars Hecking.
64888
64889 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64890
64891         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64892
64893 1998-11-16  Jim Meyering  <meyering@ascend.com>
64894
64895         * m4/lfs.m4: Double-quote the `uname...` expression.
64896
64897 1998-11-14  Jim Meyering  <meyering@ascend.com>
64898
64899         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64900         * m4/stat.m4: Likewise.
64901
64902 1998-11-03  Jim Meyering  <meyering@ascend.com>
64903
64904         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64905         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64906
64907 1998-10-18  Jim Meyering  <meyering@ascend.com>
64908
64909         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64910
64911 1998-10-17  Jim Meyering  <meyering@ascend.com>
64912
64913         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64914         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64915         calls for those previously hard-coded headers.  Instead, take a new
64916         parameter.
64917         (jm_CHECK_DECLARATIONS): Reflect interface change.
64918         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64919         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64920
64921         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64922
64923 1998-10-14  Jim Meyering  <meyering@ascend.com>
64924
64925         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64926         instead of "TZ=America/Vancouver".  From Paul Eggert.
64927
64928 1998-10-11  Jim Meyering  <meyering@ascend.com>
64929
64930         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64931         This adds a test for a recently added compatibility fix for mktime.c.
64932         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64933
64934 1998-09-27  Jim Meyering  <meyering@ascend.com>
64935
64936         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64937
64938         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64939         ../configure.in, including a change from Gordon Matzigkeit to allow
64940         cross-compiling for the Hurd.
64941
64942         * m4/glibc.m4: New file/macro to test for the GNU C Library
64943         versions 1 and 2.  From Gordon Matzigkeit.
64944         Indent.
64945
64946 1998-09-21  Jim Meyering  <meyering@ascend.com>
64947
64948         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64949
64950 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64951
64952         Port nanosecond-resolution times to UnixWare 2.1.2 and
64953         pedantic Solaris 2.6.
64954
64955         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64956         AC_STRUCT_ST_MTIM.
64957         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64958         Generate name of ns member, instead of just 1 or undef.
64959         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64960
64961 1998-08-15  Jim Meyering  <meyering@ascend.com>
64962
64963         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64964         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64965         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64966         instead of jm_TYPE_SSIZE_T.
64967
64968 1998-08-12  Jim Meyering  <meyering@ascend.com>
64969
64970         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64971
64972 1998-08-02  Jim Meyering  <meyering@ascend.com>
64973
64974         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64975         in acconfig.h manually.
64976
64977 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64978
64979         * m4/st_mtim.m4: New file.
64980
64981 1998-07-28  Jim Meyering  <meyering@ascend.com>
64982
64983         * m4/utimes.m4: Undef stat.
64984
64985 1998-07-25  Jim Meyering  <meyering@ascend.com>
64986
64987         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64988         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64989
64990 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64991
64992         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64993         uid and gid actually remain unchanged.
64994
64995 1998-07-07  Jim Meyering  <meyering@ascend.com>
64996
64997         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64998
64999 1998-07-04  Jim Meyering  <meyering@ascend.com>
65000
65001         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65002         to prove that this macro can be used in packages without regex.c.
65003
65004 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65005
65006         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65007         is to be used.
65008
65009 1998-07-03  Jim Meyering  <meyering@ascend.com>
65010
65011         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65012
65013         * m4/gettext.m4: New file -- from gettext-0.10.35.
65014         * m4/lcmessage.m4: Likewise.
65015         * m4/progtest.m4: Likewise.
65016
65017         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65018         * m4/jm-macros.m4: Require the new macro.
65019
65020 1998-06-29  Jim Meyering  <meyering@ascend.com>
65021
65022         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65023         for the definition of NGROUPS (used in a system header included
65024         by sys/mount.h).
65025
65026 1998-06-28  Jim Meyering  <meyering@ascend.com>
65027
65028         * m4/ls-mntd-fs.m4: New file.
65029         * m4/fstypename.m4: New file.
65030
65031         * m4/jm-macros.m4: Require the new macro.
65032         * m4/jm-glibc-io.m4: New file.
65033
65034 1998-05-19  Jim Meyering  <meyering@ascend.com>
65035
65036         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65037         * m4/lchown.m4: New file.
65038
65039         * m4/Makefile.am.in: New file.
65040         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65041
65042 1998-05-14  Jim Meyering  <meyering@ascend.com>
65043
65044         * m4/Makefile.am (EXTRA_DIST): Add them.
65045         * m4/jm-macros.m4: New file.
65046         * m4/utimbuf.m4: New file.
65047
65048 1998-05-12  Jim Meyering  <meyering@ascend.com>
65049
65050         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65051
65052 1998-05-11  Jim Meyering  <meyering@ascend.com>
65053
65054         * m4/isc-posix.m4: New file.
65055
65056 1998-05-10  Jim Meyering  <meyering@ascend.com>
65057
65058         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65059
65060 1998-05-09  Jim Meyering  <meyering@ascend.com>
65061
65062         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65063         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65064         with automake.
65065
65066         * m4/ssize_t.m4: New file.
65067         * m4/mktime.m4: Remove file -- the new automake has this now.
65068
65069 1998-04-26  Jim Meyering  <meyering@ascend.com>
65070
65071         * m4/assert.m4: New file.
65072         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65073
65074 1998-04-05  Jim Meyering  <meyering@ascend.com>
65075
65076         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65077         (jm_PREREQ): Use it here.
65078
65079 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65080
65081         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65082         in acconfig.h.
65083
65084 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65085
65086         * m4/prereq.m4: New file.
65087         * m4/error.m4: New file.
65088         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65089
65090 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65091
65092         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65093         cache-check for the same variable -- that defeated the purpose of
65094         the test; the test program was never run.  This was a problem only
65095         on systems with losing getline functions -- HP-UX 10.20 is one.
65096         Reported by Bjorn Helgaas.
65097
65098 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65099
65100         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65101
65102 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65103
65104         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65105
65106         * m4/const.m4: New file.  Use an initializer in this declaration
65107         typedef int charset[2]; const charset x;
65108         Reported by Bob Glickstein.
65109
65110 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65111
65112         * m4/chown.m4: Fix reversed types on -1 args to chown.
65113         From Kaveh Ghazi.
65114
65115 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65116
65117         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65118         Add lseek and memchr.
65119
65120         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65121         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65122         have a 20-character limit on names.
65123
65124 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65125
65126         * m4/inttypes_h.m4: New file.
65127         * m4/uintmax_t.m4: New file.
65128         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65129
65130
65131         -----
65132
65133         Local Variables:
65134         coding: utf-8
65135         End:
65136
65137         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65138
65139         Copying and distribution of this file, with or without
65140         modification, are permitted provided the copyright notice
65141         and this notice are preserved.